chiark / gitweb /
xf86-input-mtrack (0.3.1-1) unstable; urgency=medium
[xf86-input-mtrack.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-input-mtrack 0.2.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 :
20   emulate sh
21   NULLCMD=:
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+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
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
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
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'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
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 || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
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
158 as_fn_exit 255
159   fi
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 :
164   emulate sh
165   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
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; }
184
185 exitcode=0
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 :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || 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
201
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 :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
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 :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
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
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
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
267 exit 255
268 fi
269
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."
276   else
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
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
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
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
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 :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
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.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
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
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
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
475
476
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.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
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; }
499
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).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
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 ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
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'"
564
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'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
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`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
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'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 BUILD_TOOLS_FALSE
641 BUILD_TOOLS_TRUE
642 inputdir
643 DRIVER_NAME
644 XORG_LIBS
645 XORG_CFLAGS
646 MAN_SUBSTS
647 XORG_MAN_PAGE
648 ADMIN_MAN_DIR
649 DRIVER_MAN_DIR
650 MISC_MAN_DIR
651 FILE_MAN_DIR
652 LIB_MAN_DIR
653 APP_MAN_DIR
654 ADMIN_MAN_SUFFIX
655 DRIVER_MAN_SUFFIX
656 MISC_MAN_SUFFIX
657 FILE_MAN_SUFFIX
658 LIB_MAN_SUFFIX
659 APP_MAN_SUFFIX
660 INSTALL_CMD
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 CHANGELOG_CMD
665 STRICT_CFLAGS
666 CWARNFLAGS
667 BASE_CFLAGS
668 CPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 LIBTOOL
715 MAINT
716 MAINTAINER_MODE_FALSE
717 MAINTAINER_MODE_TRUE
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_maintainer_mode
788 enable_static
789 enable_shared
790 with_pic
791 enable_fast_install
792 enable_dependency_tracking
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_selective_werror
797 enable_strict_compilation
798 with_xorg_module_dir
799 enable_tools
800 enable_debug_gestures
801 enable_debug_mtstate
802 enable_debug_props
803 enable_debug_driver
804 enable_debug
805 '
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 PKG_CONFIG
816 PKG_CONFIG_PATH
817 PKG_CONFIG_LIBDIR
818 XORG_CFLAGS
819 XORG_LIBS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *=)   ac_optarg= ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error $? "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955       as_fn_error $? "invalid feature name: $ac_useropt"
956     ac_useropt_orig=$ac_useropt
957     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958     case $ac_user_opts in
959       *"
960 "enable_$ac_useropt"
961 "*) ;;
962       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963          ac_unrecognized_sep=', ';;
964     esac
965     eval enable_$ac_useropt=\$ac_optarg ;;
966
967   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969   | --exec | --exe | --ex)
970     ac_prev=exec_prefix ;;
971   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973   | --exec=* | --exe=* | --ex=*)
974     exec_prefix=$ac_optarg ;;
975
976   -gas | --gas | --ga | --g)
977     # Obsolete; use --with-gas.
978     with_gas=yes ;;
979
980   -help | --help | --hel | --he | -h)
981     ac_init_help=long ;;
982   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983     ac_init_help=recursive ;;
984   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985     ac_init_help=short ;;
986
987   -host | --host | --hos | --ho)
988     ac_prev=host_alias ;;
989   -host=* | --host=* | --hos=* | --ho=*)
990     host_alias=$ac_optarg ;;
991
992   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993     ac_prev=htmldir ;;
994   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995   | --ht=*)
996     htmldir=$ac_optarg ;;
997
998   -includedir | --includedir | --includedi | --included | --include \
999   | --includ | --inclu | --incl | --inc)
1000     ac_prev=includedir ;;
1001   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002   | --includ=* | --inclu=* | --incl=* | --inc=*)
1003     includedir=$ac_optarg ;;
1004
1005   -infodir | --infodir | --infodi | --infod | --info | --inf)
1006     ac_prev=infodir ;;
1007   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008     infodir=$ac_optarg ;;
1009
1010   -libdir | --libdir | --libdi | --libd)
1011     ac_prev=libdir ;;
1012   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013     libdir=$ac_optarg ;;
1014
1015   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016   | --libexe | --libex | --libe)
1017     ac_prev=libexecdir ;;
1018   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019   | --libexe=* | --libex=* | --libe=*)
1020     libexecdir=$ac_optarg ;;
1021
1022   -localedir | --localedir | --localedi | --localed | --locale)
1023     ac_prev=localedir ;;
1024   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025     localedir=$ac_optarg ;;
1026
1027   -localstatedir | --localstatedir | --localstatedi | --localstated \
1028   | --localstate | --localstat | --localsta | --localst | --locals)
1029     ac_prev=localstatedir ;;
1030   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032     localstatedir=$ac_optarg ;;
1033
1034   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035     ac_prev=mandir ;;
1036   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037     mandir=$ac_optarg ;;
1038
1039   -nfp | --nfp | --nf)
1040     # Obsolete; use --without-fp.
1041     with_fp=no ;;
1042
1043   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044   | --no-cr | --no-c | -n)
1045     no_create=yes ;;
1046
1047   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049     no_recursion=yes ;;
1050
1051   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053   | --oldin | --oldi | --old | --ol | --o)
1054     ac_prev=oldincludedir ;;
1055   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058     oldincludedir=$ac_optarg ;;
1059
1060   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061     ac_prev=prefix ;;
1062   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063     prefix=$ac_optarg ;;
1064
1065   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066   | --program-pre | --program-pr | --program-p)
1067     ac_prev=program_prefix ;;
1068   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070     program_prefix=$ac_optarg ;;
1071
1072   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073   | --program-suf | --program-su | --program-s)
1074     ac_prev=program_suffix ;;
1075   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077     program_suffix=$ac_optarg ;;
1078
1079   -program-transform-name | --program-transform-name \
1080   | --program-transform-nam | --program-transform-na \
1081   | --program-transform-n | --program-transform- \
1082   | --program-transform | --program-transfor \
1083   | --program-transfo | --program-transf \
1084   | --program-trans | --program-tran \
1085   | --progr-tra | --program-tr | --program-t)
1086     ac_prev=program_transform_name ;;
1087   -program-transform-name=* | --program-transform-name=* \
1088   | --program-transform-nam=* | --program-transform-na=* \
1089   | --program-transform-n=* | --program-transform-=* \
1090   | --program-transform=* | --program-transfor=* \
1091   | --program-transfo=* | --program-transf=* \
1092   | --program-trans=* | --program-tran=* \
1093   | --progr-tra=* | --program-tr=* | --program-t=*)
1094     program_transform_name=$ac_optarg ;;
1095
1096   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097     ac_prev=pdfdir ;;
1098   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099     pdfdir=$ac_optarg ;;
1100
1101   -psdir | --psdir | --psdi | --psd | --ps)
1102     ac_prev=psdir ;;
1103   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104     psdir=$ac_optarg ;;
1105
1106   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107   | -silent | --silent | --silen | --sile | --sil)
1108     silent=yes ;;
1109
1110   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111     ac_prev=sbindir ;;
1112   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113   | --sbi=* | --sb=*)
1114     sbindir=$ac_optarg ;;
1115
1116   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118   | --sharedst | --shareds | --shared | --share | --shar \
1119   | --sha | --sh)
1120     ac_prev=sharedstatedir ;;
1121   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124   | --sha=* | --sh=*)
1125     sharedstatedir=$ac_optarg ;;
1126
1127   -site | --site | --sit)
1128     ac_prev=site ;;
1129   -site=* | --site=* | --sit=*)
1130     site=$ac_optarg ;;
1131
1132   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133     ac_prev=srcdir ;;
1134   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135     srcdir=$ac_optarg ;;
1136
1137   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138   | --syscon | --sysco | --sysc | --sys | --sy)
1139     ac_prev=sysconfdir ;;
1140   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142     sysconfdir=$ac_optarg ;;
1143
1144   -target | --target | --targe | --targ | --tar | --ta | --t)
1145     ac_prev=target_alias ;;
1146   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147     target_alias=$ac_optarg ;;
1148
1149   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150     verbose=yes ;;
1151
1152   -version | --version | --versio | --versi | --vers | -V)
1153     ac_init_version=: ;;
1154
1155   -with-* | --with-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid package name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval with_$ac_useropt=\$ac_optarg ;;
1170
1171   -without-* | --without-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=no ;;
1186
1187   --x)
1188     # Obsolete; use --with-x.
1189     with_x=yes ;;
1190
1191   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192   | --x-incl | --x-inc | --x-in | --x-i)
1193     ac_prev=x_includes ;;
1194   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196     x_includes=$ac_optarg ;;
1197
1198   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200     ac_prev=x_libraries ;;
1201   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203     x_libraries=$ac_optarg ;;
1204
1205   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207     ;;
1208
1209   *=*)
1210     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211     # Reject names that are not valid shell variable names.
1212     case $ac_envvar in #(
1213       '' | [0-9]* | *[!_$as_cr_alnum]* )
1214       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215     esac
1216     eval $ac_envvar=\$ac_optarg
1217     export $ac_envvar ;;
1218
1219   *)
1220     # FIXME: should be removed in autoconf 3.0.
1221     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225     ;;
1226
1227   esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232   as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236   case $enable_option_checking in
1237     no) ;;
1238     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240   esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245                 datadir sysconfdir sharedstatedir localstatedir includedir \
1246                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247                 libdir localedir mandir
1248 do
1249   eval ac_val=\$$ac_var
1250   # Remove trailing slashes.
1251   case $ac_val in
1252     */ )
1253       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254       eval $ac_var=\$ac_val;;
1255   esac
1256   # Be sure to have absolute directory names.
1257   case $ac_val in
1258     [\\/$]* | ?:[\\/]* )  continue;;
1259     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260   esac
1261   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273   if test "x$build_alias" = x; then
1274     cross_compiling=maybe
1275   elif test "x$build_alias" != "x$host_alias"; then
1276     cross_compiling=yes
1277   fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289   as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291   as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296   ac_srcdir_defaulted=yes
1297   # Try the directory containing this script, then the parent directory.
1298   ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300          X"$as_myself" : 'X\(//\)[^/]' \| \
1301          X"$as_myself" : 'X\(//\)$' \| \
1302          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)[^/].*/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\/\)$/{
1313             s//\1/
1314             q
1315           }
1316           /^X\(\/\).*/{
1317             s//\1/
1318             q
1319           }
1320           s/.*/./; q'`
1321   srcdir=$ac_confdir
1322   if test ! -r "$srcdir/$ac_unique_file"; then
1323     srcdir=..
1324   fi
1325 else
1326   ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335         pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338   srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_env_${ac_var}_value=\$${ac_var}
1349   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357   # Omit some internal or obsolete options to make the list less imposing.
1358   # This message is too long to be a string in the A/UX 3.1 sh.
1359   cat <<_ACEOF
1360 \`configure' configures xf86-input-mtrack 0.2.0 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370   -h, --help              display this help and exit
1371       --help=short        display options specific to this package
1372       --help=recursive    display the short help of all the included packages
1373   -V, --version           display version information and exit
1374   -q, --quiet, --silent   do not print \`checking ...' messages
1375       --cache-file=FILE   cache test results in FILE [disabled]
1376   -C, --config-cache      alias for \`--cache-file=config.cache'
1377   -n, --no-create         do not create output files
1378       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381   --prefix=PREFIX         install architecture-independent files in PREFIX
1382                           [$ac_default_prefix]
1383   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                           [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394   --bindir=DIR            user executables [EPREFIX/bin]
1395   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396   --libexecdir=DIR        program executables [EPREFIX/libexec]
1397   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400   --libdir=DIR            object code libraries [EPREFIX/lib]
1401   --includedir=DIR        C header files [PREFIX/include]
1402   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405   --infodir=DIR           info documentation [DATAROOTDIR/info]
1406   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407   --mandir=DIR            man documentation [DATAROOTDIR/man]
1408   --docdir=DIR            documentation root
1409                           [DATAROOTDIR/doc/xf86-input-mtrack]
1410   --htmldir=DIR           html documentation [DOCDIR]
1411   --dvidir=DIR            dvi documentation [DOCDIR]
1412   --pdfdir=DIR            pdf documentation [DOCDIR]
1413   --psdir=DIR             ps documentation [DOCDIR]
1414 _ACEOF
1415
1416   cat <<\_ACEOF
1417
1418 Program names:
1419   --program-prefix=PREFIX            prepend PREFIX to installed program names
1420   --program-suffix=SUFFIX            append SUFFIX to installed program names
1421   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423 System types:
1424   --build=BUILD     configure for building on BUILD [guessed]
1425   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430   case $ac_init_help in
1431      short | recursive ) echo "Configuration of xf86-input-mtrack 0.2.0:";;
1432    esac
1433   cat <<\_ACEOF
1434
1435 Optional Features:
1436   --disable-option-checking  ignore unrecognized --enable/--with options
1437   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439   --enable-silent-rules   less verbose build output (undo: "make V=1")
1440   --disable-silent-rules  verbose build output (undo: "make V=0")
1441   --enable-maintainer-mode
1442                           enable make rules and dependencies not useful (and
1443                           sometimes confusing) to the casual installer
1444   --enable-static[=PKGS]  build static libraries [default=no]
1445   --enable-shared[=PKGS]  build shared libraries [default=yes]
1446   --enable-fast-install[=PKGS]
1447                           optimize for fast installation [default=yes]
1448   --enable-dependency-tracking
1449                           do not reject slow dependency extractors
1450   --disable-dependency-tracking
1451                           speeds up one-time build
1452   --disable-libtool-lock  avoid locking (might break parallel builds)
1453   --disable-selective-werror
1454                           Turn off selective compiler errors. (default:
1455                           enabled)
1456   --enable-strict-compilation
1457                           Enable all warnings from compiler and make them
1458                           errors (default: disabled)
1459   --enable-tools          Build extra tools (default: disabled)
1460   --enable-debug-gestures Enable gesture debugging (default: disabled)
1461   --enable-debug-mtstate  Enable multitouch state debugging (default:
1462                           disabled)
1463   --enable-debug-props    Enable property debugging (default: disabled)
1464   --enable-debug-driver   Enable property debugging (default: disabled)
1465   --enable-debug          Enable all debugging (default: disabled)
1466
1467 Optional Packages:
1468   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1471                           both]
1472   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1473   --with-sysroot=DIR Search for dependent libraries within DIR
1474                         (or the compiler's sysroot if not specified).
1475   --with-xorg-module-dir=DIR
1476                           Default xorg module directory
1477                           [[default=$libdir/xorg/modules]]
1478
1479 Some influential environment variables:
1480   CC          C compiler command
1481   CFLAGS      C compiler flags
1482   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483               nonstandard directory <lib dir>
1484   LIBS        libraries to pass to the linker, e.g. -l<library>
1485   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   CPP         C preprocessor
1488   PKG_CONFIG  path to pkg-config utility
1489   PKG_CONFIG_PATH
1490               directories to add to pkg-config's search path
1491   PKG_CONFIG_LIBDIR
1492               path overriding pkg-config's built-in search path
1493   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1494   XORG_LIBS   linker flags for XORG, overriding pkg-config
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505   # If there are subdirs, report their specific --help.
1506   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507     test -d "$ac_dir" ||
1508       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509       continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 xf86-input-mtrack configure 0.2.0
1563 generated by GNU Autoconf 2.69
1564
1565 Copyright (C) 2012 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1568 _ACEOF
1569   exit
1570 fi
1571
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1575
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1580 {
1581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582   rm -f conftest.$ac_objext
1583   if { { ac_try="$ac_compile"
1584 case "(($ac_try" in
1585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586   *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590   (eval "$ac_compile") 2>conftest.err
1591   ac_status=$?
1592   if test -s conftest.err; then
1593     grep -v '^ *+' conftest.err >conftest.er1
1594     cat conftest.er1 >&5
1595     mv -f conftest.er1 conftest.err
1596   fi
1597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598   test $ac_status = 0; } && {
1599          test -z "$ac_c_werror_flag" ||
1600          test ! -s conftest.err
1601        } && test -s conftest.$ac_objext; then :
1602   ac_retval=0
1603 else
1604   $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607         ac_retval=1
1608 fi
1609   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610   as_fn_set_status $ac_retval
1611
1612 } # ac_fn_c_try_compile
1613
1614 # ac_fn_c_try_link LINENO
1615 # -----------------------
1616 # Try to link conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_link ()
1618 {
1619   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620   rm -f conftest.$ac_objext conftest$ac_exeext
1621   if { { ac_try="$ac_link"
1622 case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_link") 2>conftest.err
1629   ac_status=$?
1630   if test -s conftest.err; then
1631     grep -v '^ *+' conftest.err >conftest.er1
1632     cat conftest.er1 >&5
1633     mv -f conftest.er1 conftest.err
1634   fi
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } && {
1637          test -z "$ac_c_werror_flag" ||
1638          test ! -s conftest.err
1639        } && test -s conftest$ac_exeext && {
1640          test "$cross_compiling" = yes ||
1641          test -x conftest$ac_exeext
1642        }; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648         ac_retval=1
1649 fi
1650   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1651   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1652   # interfere with the next link command; also delete a directory that is
1653   # left behind by Apple's compiler.  We do this before executing the actions.
1654   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656   as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_link
1659
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670   $as_echo_n "(cached) " >&6
1671 else
1672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h.  */
1674 $4
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678   eval "$3=yes"
1679 else
1680   eval "$3=no"
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_header_compile
1690
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_cpp ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705   ac_status=$?
1706   if test -s conftest.err; then
1707     grep -v '^ *+' conftest.err >conftest.er1
1708     cat conftest.er1 >&5
1709     mv -f conftest.er1 conftest.err
1710   fi
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } > conftest.i && {
1713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714          test ! -s conftest.err
1715        }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721     ac_retval=1
1722 fi
1723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724   as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_cpp
1727
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1732 ac_fn_c_try_run ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742   (eval "$ac_link") 2>&5
1743   ac_status=$?
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746   { { case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_try") 2>&5
1753   ac_status=$?
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; }; }; then :
1756   ac_retval=0
1757 else
1758   $as_echo "$as_me: program exited with status $ac_status" >&5
1759        $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762        ac_retval=$ac_status
1763 fi
1764   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_run
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779   $as_echo_n "(cached) " >&6
1780 else
1781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1785 #define $2 innocuous_$2
1786
1787 /* System header to define __stub macros and hopefully few prototypes,
1788     which can conflict with char $2 (); below.
1789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790     <limits.h> exists even on freestanding compilers.  */
1791
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1797
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801    Use char because int might match the return type of a GCC
1802    builtin and then its argument prototype would still apply.  */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808     to always fail with ENOSYS.  Some functions are actually named
1809     something starting with __ and the normal name is an alias.  */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main ()
1816 {
1817 return $2 ();
1818   ;
1819   return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823   eval "$3=yes"
1824 else
1825   eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext \
1828     conftest$ac_exeext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_func
1836
1837 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1838 # ---------------------------------------------
1839 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1840 # accordingly.
1841 ac_fn_c_check_decl ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   as_decl_name=`echo $2|sed 's/ *(.*//'`
1845   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1847 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1848 if eval \${$3+:} false; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 $4
1854 int
1855 main ()
1856 {
1857 #ifndef $as_decl_name
1858 #ifdef __cplusplus
1859   (void) $as_decl_use;
1860 #else
1861   (void) $as_decl_name;
1862 #endif
1863 #endif
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870   eval "$3=yes"
1871 else
1872   eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_decl
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1885
1886 It was created by xf86-input-mtrack $as_me 0.2.0, which was
1887 generated by GNU Autoconf 2.69.  Invocation command line was
1888
1889   $ $0 $@
1890
1891 _ACEOF
1892 exec 5>>config.log
1893 {
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1898
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1907
1908 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1909 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1912 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1913 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1914 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1915
1916 _ASUNAME
1917
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921   IFS=$as_save_IFS
1922   test -z "$as_dir" && as_dir=.
1923     $as_echo "PATH: $as_dir"
1924   done
1925 IFS=$as_save_IFS
1926
1927 } >&5
1928
1929 cat >&5 <<_ACEOF
1930
1931
1932 ## ----------- ##
1933 ## Core tests. ##
1934 ## ----------- ##
1935
1936 _ACEOF
1937
1938
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_configure_args=
1945 ac_configure_args0=
1946 ac_configure_args1=
1947 ac_must_keep_next=false
1948 for ac_pass in 1 2
1949 do
1950   for ac_arg
1951   do
1952     case $ac_arg in
1953     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955     | -silent | --silent | --silen | --sile | --sil)
1956       continue ;;
1957     *\'*)
1958       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     esac
1960     case $ac_pass in
1961     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962     2)
1963       as_fn_append ac_configure_args1 " '$ac_arg'"
1964       if test $ac_must_keep_next = true; then
1965         ac_must_keep_next=false # Got value, back to normal.
1966       else
1967         case $ac_arg in
1968           *=* | --config-cache | -C | -disable-* | --disable-* \
1969           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971           | -with-* | --with-* | -without-* | --without-* | --x)
1972             case "$ac_configure_args0 " in
1973               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974             esac
1975             ;;
1976           -* ) ac_must_keep_next=true ;;
1977         esac
1978       fi
1979       as_fn_append ac_configure_args " '$ac_arg'"
1980       ;;
1981     esac
1982   done
1983 done
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1986
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log.  We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993   # Save into config.log some information that might help in debugging.
1994   {
1995     echo
1996
1997     $as_echo "## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##"
2000     echo
2001     # The following way of writing the cache mishandles newlines in values,
2002 (
2003   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004     eval ac_val=\$$ac_var
2005     case $ac_val in #(
2006     *${as_nl}*)
2007       case $ac_var in #(
2008       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010       esac
2011       case $ac_var in #(
2012       _ | IFS | as_nl) ;; #(
2013       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014       *) { eval $ac_var=; unset $ac_var;} ;;
2015       esac ;;
2016     esac
2017   done
2018   (set) 2>&1 |
2019     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020     *${as_nl}ac_space=\ *)
2021       sed -n \
2022         "s/'\''/'\''\\\\'\'''\''/g;
2023           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024       ;; #(
2025     *)
2026       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027       ;;
2028     esac |
2029     sort
2030 )
2031     echo
2032
2033     $as_echo "## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##"
2036     echo
2037     for ac_var in $ac_subst_vars
2038     do
2039       eval ac_val=\$$ac_var
2040       case $ac_val in
2041       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042       esac
2043       $as_echo "$ac_var='\''$ac_val'\''"
2044     done | sort
2045     echo
2046
2047     if test -n "$ac_subst_files"; then
2048       $as_echo "## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##"
2051       echo
2052       for ac_var in $ac_subst_files
2053       do
2054         eval ac_val=\$$ac_var
2055         case $ac_val in
2056         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057         esac
2058         $as_echo "$ac_var='\''$ac_val'\''"
2059       done | sort
2060       echo
2061     fi
2062
2063     if test -s confdefs.h; then
2064       $as_echo "## ----------- ##
2065 ## confdefs.h. ##
2066 ## ----------- ##"
2067       echo
2068       cat confdefs.h
2069       echo
2070     fi
2071     test "$ac_signal" != 0 &&
2072       $as_echo "$as_me: caught signal $ac_signal"
2073     $as_echo "$as_me: exit $exit_status"
2074   } >&5
2075   rm -f core *.core core.conftest.* &&
2076     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077     exit $exit_status
2078 ' 0
2079 for ac_signal in 1 2 13 15; do
2080   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2083
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2086
2087 $as_echo "/* confdefs.h */" > confdefs.h
2088
2089 # Predefined preprocessor variables.
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2114
2115
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121   # We do not want a PATH search for config.site.
2122   case $CONFIG_SITE in #((
2123     -*)  ac_site_file1=./$CONFIG_SITE;;
2124     */*) ac_site_file1=$CONFIG_SITE;;
2125     *)   ac_site_file1=./$CONFIG_SITE;;
2126   esac
2127 elif test "x$prefix" != xNONE; then
2128   ac_site_file1=$prefix/share/config.site
2129   ac_site_file2=$prefix/etc/config.site
2130 else
2131   ac_site_file1=$ac_default_prefix/share/config.site
2132   ac_site_file2=$ac_default_prefix/etc/config.site
2133 fi
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135 do
2136   test "x$ac_site_file" = xNONE && continue
2137   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140     sed 's/^/| /' "$ac_site_file" >&5
2141     . "$ac_site_file" \
2142       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 as_fn_error $? "failed to load site script $ac_site_file
2145 See \`config.log' for more details" "$LINENO" 5; }
2146   fi
2147 done
2148
2149 if test -r "$cache_file"; then
2150   # Some versions of bash will fail to source /dev/null (special files
2151   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2152   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155     case $cache_file in
2156       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157       *)                      . "./$cache_file";;
2158     esac
2159   fi
2160 else
2161   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163   >$cache_file
2164 fi
2165
2166 # Check that the precious variables saved in the cache have kept the same
2167 # value.
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171   eval ac_new_set=\$ac_env_${ac_var}_set
2172   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173   eval ac_new_val=\$ac_env_${ac_var}_value
2174   case $ac_old_set,$ac_new_set in
2175     set,)
2176       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178       ac_cache_corrupted=: ;;
2179     ,set)
2180       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182       ac_cache_corrupted=: ;;
2183     ,);;
2184     *)
2185       if test "x$ac_old_val" != "x$ac_new_val"; then
2186         # differences in whitespace do not lead to failure.
2187         ac_old_val_w=`echo x $ac_old_val`
2188         ac_new_val_w=`echo x $ac_new_val`
2189         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192           ac_cache_corrupted=:
2193         else
2194           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196           eval $ac_var=\$ac_old_val
2197         fi
2198         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2199 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2200         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2202       fi;;
2203   esac
2204   # Pass precious variables to config.status.
2205   if test "$ac_new_set" = set; then
2206     case $ac_new_val in
2207     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208     *) ac_arg=$ac_var=$ac_new_val ;;
2209     esac
2210     case " $ac_configure_args " in
2211       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2212       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213     esac
2214   fi
2215 done
2216 if $ac_cache_corrupted; then
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222 fi
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2226
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
2233
2234
2235
2236 ac_config_headers="$ac_config_headers config.h"
2237
2238 ac_aux_dir=
2239 for ac_dir in . "$srcdir"/.; do
2240   if test -f "$ac_dir/install-sh"; then
2241     ac_aux_dir=$ac_dir
2242     ac_install_sh="$ac_aux_dir/install-sh -c"
2243     break
2244   elif test -f "$ac_dir/install.sh"; then
2245     ac_aux_dir=$ac_dir
2246     ac_install_sh="$ac_aux_dir/install.sh -c"
2247     break
2248   elif test -f "$ac_dir/shtool"; then
2249     ac_aux_dir=$ac_dir
2250     ac_install_sh="$ac_aux_dir/shtool install -c"
2251     break
2252   fi
2253 done
2254 if test -z "$ac_aux_dir"; then
2255   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2256 fi
2257
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2265
2266
2267
2268 # Initialize Automake
2269 am__api_version='1.15'
2270
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 # Reject install programs that cannot install multiple files.
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2287 if test -z "$INSTALL"; then
2288 if ${ac_cv_path_install+:} false; then :
2289   $as_echo_n "(cached) " >&6
2290 else
2291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296     # Account for people who put trailing slashes in PATH elements.
2297 case $as_dir/ in #((
2298   ./ | .// | /[cC]/* | \
2299   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2301   /usr/ucb/* ) ;;
2302   *)
2303     # OSF1 and SCO ODT 3.0 have their own names for install.
2304     # Don't use installbsd from OSF since it installs stuff as root
2305     # by default.
2306     for ac_prog in ginstall scoinst install; do
2307       for ac_exec_ext in '' $ac_executable_extensions; do
2308         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2309           if test $ac_prog = install &&
2310             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311             # AIX install.  It has an incompatible calling convention.
2312             :
2313           elif test $ac_prog = install &&
2314             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315             # program-specific install script used by HP pwplus--don't use.
2316             :
2317           else
2318             rm -rf conftest.one conftest.two conftest.dir
2319             echo one > conftest.one
2320             echo two > conftest.two
2321             mkdir conftest.dir
2322             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2323               test -s conftest.one && test -s conftest.two &&
2324               test -s conftest.dir/conftest.one &&
2325               test -s conftest.dir/conftest.two
2326             then
2327               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2328               break 3
2329             fi
2330           fi
2331         fi
2332       done
2333     done
2334     ;;
2335 esac
2336
2337   done
2338 IFS=$as_save_IFS
2339
2340 rm -rf conftest.one conftest.two conftest.dir
2341
2342 fi
2343   if test "${ac_cv_path_install+set}" = set; then
2344     INSTALL=$ac_cv_path_install
2345   else
2346     # As a last resort, use the slow shell script.  Don't cache a
2347     # value for INSTALL within a source directory, because that will
2348     # break other packages using the cache if that directory is
2349     # removed, or if the value is a relative name.
2350     INSTALL=$ac_install_sh
2351   fi
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2354 $as_echo "$INSTALL" >&6; }
2355
2356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2357 # It thinks the first close brace ends the variable substitution.
2358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2359
2360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2361
2362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2363
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2365 $as_echo_n "checking whether build environment is sane... " >&6; }
2366 # Reject unsafe characters in $srcdir or the absolute working directory
2367 # name.  Accept space and tab only in the latter.
2368 am_lf='
2369 '
2370 case `pwd` in
2371   *[\\\"\#\$\&\'\`$am_lf]*)
2372     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2373 esac
2374 case $srcdir in
2375   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2376     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2377 esac
2378
2379 # Do 'set' in a subshell so we don't clobber the current shell's
2380 # arguments.  Must try -L first in case configure is actually a
2381 # symlink; some systems play weird games with the mod time of symlinks
2382 # (eg FreeBSD returns the mod time of the symlink's containing
2383 # directory).
2384 if (
2385    am_has_slept=no
2386    for am_try in 1 2; do
2387      echo "timestamp, slept: $am_has_slept" > conftest.file
2388      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2389      if test "$*" = "X"; then
2390         # -L didn't work.
2391         set X `ls -t "$srcdir/configure" conftest.file`
2392      fi
2393      if test "$*" != "X $srcdir/configure conftest.file" \
2394         && test "$*" != "X conftest.file $srcdir/configure"; then
2395
2396         # If neither matched, then we have a broken ls.  This can happen
2397         # if, for instance, CONFIG_SHELL is bash and it inherits a
2398         # broken ls alias from the environment.  This has actually
2399         # happened.  Such a system could not be considered "sane".
2400         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2401   alias in your environment" "$LINENO" 5
2402      fi
2403      if test "$2" = conftest.file || test $am_try -eq 2; then
2404        break
2405      fi
2406      # Just in case.
2407      sleep 1
2408      am_has_slept=yes
2409    done
2410    test "$2" = conftest.file
2411    )
2412 then
2413    # Ok.
2414    :
2415 else
2416    as_fn_error $? "newly created file is older than distributed files!
2417 Check your system clock" "$LINENO" 5
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2420 $as_echo "yes" >&6; }
2421 # If we didn't sleep, we still need to ensure time stamps of config.status and
2422 # generated files are strictly newer.
2423 am_sleep_pid=
2424 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2425   ( sleep 1 ) &
2426   am_sleep_pid=$!
2427 fi
2428
2429 rm -f conftest.file
2430
2431 test "$program_prefix" != NONE &&
2432   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440
2441 # Expand $ac_aux_dir to an absolute path.
2442 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2443
2444 if test x"${MISSING+set}" != xset; then
2445   case $am_aux_dir in
2446   *\ * | *\     *)
2447     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2448   *)
2449     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2450   esac
2451 fi
2452 # Use eval to expand $SHELL
2453 if eval "$MISSING --is-lightweight"; then
2454   am_missing_run="$MISSING "
2455 else
2456   am_missing_run=
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2458 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2459 fi
2460
2461 if test x"${install_sh+set}" != xset; then
2462   case $am_aux_dir in
2463   *\ * | *\     *)
2464     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2465   *)
2466     install_sh="\${SHELL} $am_aux_dir/install-sh"
2467   esac
2468 fi
2469
2470 # Installed binaries are usually stripped using 'strip' when the user
2471 # run "make install-strip".  However 'strip' might not be the right
2472 # tool to use in cross-compilation environments, therefore Automake
2473 # will honor the 'STRIP' environment variable to overrule this program.
2474 if test "$cross_compiling" != no; then
2475   if test -n "$ac_tool_prefix"; then
2476   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2477 set dummy ${ac_tool_prefix}strip; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if ${ac_cv_prog_STRIP+:} false; then :
2481   $as_echo_n "(cached) " >&6
2482 else
2483   if test -n "$STRIP"; then
2484   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     for ac_exec_ext in '' $ac_executable_extensions; do
2492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498   done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 STRIP=$ac_cv_prog_STRIP
2504 if test -n "$STRIP"; then
2505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2506 $as_echo "$STRIP" >&6; }
2507 else
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512
2513 fi
2514 if test -z "$ac_cv_prog_STRIP"; then
2515   ac_ct_STRIP=$STRIP
2516   # Extract the first word of "strip", so it can be a program name with args.
2517 set dummy strip; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2521   $as_echo_n "(cached) " >&6
2522 else
2523   if test -n "$ac_ct_STRIP"; then
2524   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531     for ac_exec_ext in '' $ac_executable_extensions; do
2532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533     ac_cv_prog_ac_ct_STRIP="strip"
2534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538   done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2544 if test -n "$ac_ct_STRIP"; then
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2546 $as_echo "$ac_ct_STRIP" >&6; }
2547 else
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552   if test "x$ac_ct_STRIP" = x; then
2553     STRIP=":"
2554   else
2555     case $cross_compiling:$ac_tool_warned in
2556 yes:)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559 ac_tool_warned=yes ;;
2560 esac
2561     STRIP=$ac_ct_STRIP
2562   fi
2563 else
2564   STRIP="$ac_cv_prog_STRIP"
2565 fi
2566
2567 fi
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2571 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2572 if test -z "$MKDIR_P"; then
2573   if ${ac_cv_path_mkdir+:} false; then :
2574   $as_echo_n "(cached) " >&6
2575 else
2576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581     for ac_prog in mkdir gmkdir; do
2582          for ac_exec_ext in '' $ac_executable_extensions; do
2583            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2584            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2585              'mkdir (GNU coreutils) '* | \
2586              'mkdir (coreutils) '* | \
2587              'mkdir (fileutils) '4.1*)
2588                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2589                break 3;;
2590            esac
2591          done
2592        done
2593   done
2594 IFS=$as_save_IFS
2595
2596 fi
2597
2598   test -d ./--version && rmdir ./--version
2599   if test "${ac_cv_path_mkdir+set}" = set; then
2600     MKDIR_P="$ac_cv_path_mkdir -p"
2601   else
2602     # As a last resort, use the slow shell script.  Don't cache a
2603     # value for MKDIR_P within a source directory, because that will
2604     # break other packages using the cache if that directory is
2605     # removed, or if the value is a relative name.
2606     MKDIR_P="$ac_install_sh -d"
2607   fi
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2610 $as_echo "$MKDIR_P" >&6; }
2611
2612 for ac_prog in gawk mawk nawk awk
2613 do
2614   # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_AWK+:} false; then :
2619   $as_echo_n "(cached) " >&6
2620 else
2621   if test -n "$AWK"; then
2622   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629     for ac_exec_ext in '' $ac_executable_extensions; do
2630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631     ac_cv_prog_AWK="$ac_prog"
2632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636   done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 AWK=$ac_cv_prog_AWK
2642 if test -n "$AWK"; then
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2644 $as_echo "$AWK" >&6; }
2645 else
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650
2651   test -n "$AWK" && break
2652 done
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2656 set x ${MAKE-make}
2657 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2658 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   cat >conftest.make <<\_ACEOF
2662 SHELL = /bin/sh
2663 all:
2664         @echo '@@@%%%=$(MAKE)=@@@%%%'
2665 _ACEOF
2666 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2667 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2668   *@@@%%%=?*=@@@%%%*)
2669     eval ac_cv_prog_make_${ac_make}_set=yes;;
2670   *)
2671     eval ac_cv_prog_make_${ac_make}_set=no;;
2672 esac
2673 rm -f conftest.make
2674 fi
2675 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677 $as_echo "yes" >&6; }
2678   SET_MAKE=
2679 else
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682   SET_MAKE="MAKE=${MAKE-make}"
2683 fi
2684
2685 rm -rf .tst 2>/dev/null
2686 mkdir .tst 2>/dev/null
2687 if test -d .tst; then
2688   am__leading_dot=.
2689 else
2690   am__leading_dot=_
2691 fi
2692 rmdir .tst 2>/dev/null
2693
2694 # Check whether --enable-silent-rules was given.
2695 if test "${enable_silent_rules+set}" = set; then :
2696   enableval=$enable_silent_rules;
2697 fi
2698
2699 case $enable_silent_rules in # (((
2700   yes) AM_DEFAULT_VERBOSITY=0;;
2701    no) AM_DEFAULT_VERBOSITY=1;;
2702     *) AM_DEFAULT_VERBOSITY=1;;
2703 esac
2704 am_make=${MAKE-make}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2706 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2707 if ${am_cv_make_support_nested_variables+:} false; then :
2708   $as_echo_n "(cached) " >&6
2709 else
2710   if $as_echo 'TRUE=$(BAR$(V))
2711 BAR0=false
2712 BAR1=true
2713 V=1
2714 am__doit:
2715         @$(TRUE)
2716 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2717   am_cv_make_support_nested_variables=yes
2718 else
2719   am_cv_make_support_nested_variables=no
2720 fi
2721 fi
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2723 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2724 if test $am_cv_make_support_nested_variables = yes; then
2725     AM_V='$(V)'
2726   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2727 else
2728   AM_V=$AM_DEFAULT_VERBOSITY
2729   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2730 fi
2731 AM_BACKSLASH='\'
2732
2733 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2734   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2735   # is not polluted with repeated "-I."
2736   am__isrc=' -I$(srcdir)'
2737   # test to see if srcdir already configured
2738   if test -f $srcdir/config.status; then
2739     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2740   fi
2741 fi
2742
2743 # test whether we have cygpath
2744 if test -z "$CYGPATH_W"; then
2745   if (cygpath --version) >/dev/null 2>/dev/null; then
2746     CYGPATH_W='cygpath -w'
2747   else
2748     CYGPATH_W=echo
2749   fi
2750 fi
2751
2752
2753 # Define the identity of the package.
2754  PACKAGE='xf86-input-mtrack'
2755  VERSION='0.2.0'
2756
2757
2758 cat >>confdefs.h <<_ACEOF
2759 #define PACKAGE "$PACKAGE"
2760 _ACEOF
2761
2762
2763 cat >>confdefs.h <<_ACEOF
2764 #define VERSION "$VERSION"
2765 _ACEOF
2766
2767 # Some tools Automake needs.
2768
2769 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2770
2771
2772 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2773
2774
2775 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2776
2777
2778 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2779
2780
2781 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2782
2783 # For better backward compatibility.  To be removed once Automake 1.9.x
2784 # dies out for good.  For more background, see:
2785 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2786 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2787 mkdir_p='$(MKDIR_P)'
2788
2789 # We need awk for the "check" target (and possibly the TAP driver).  The
2790 # system "awk" is bad on some platforms.
2791 # Always define AMTAR for backward compatibility.  Yes, it's still used
2792 # in the wild :-(  We should find a proper way to deprecate it ...
2793 AMTAR='$${TAR-tar}'
2794
2795
2796 # We'll loop over all known methods to create a tar archive until one works.
2797 _am_tools='gnutar  pax cpio none'
2798
2799 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2800
2801
2802
2803
2804
2805
2806 # POSIX will say in a future version that running "rm -f" with no argument
2807 # is OK; and we want to be able to make that assumption in our Makefile
2808 # recipes.  So use an aggressive probe to check that the usage we want is
2809 # actually supported "in the wild" to an acceptable degree.
2810 # See automake bug#10828.
2811 # To make any issue more visible, cause the running configure to be aborted
2812 # by default if the 'rm' program in use doesn't match our expectations; the
2813 # user can still override this though.
2814 if rm -f && rm -fr && rm -rf; then : OK; else
2815   cat >&2 <<'END'
2816 Oops!
2817
2818 Your 'rm' program seems unable to run without file operands specified
2819 on the command line, even when the '-f' option is present.  This is contrary
2820 to the behaviour of most rm programs out there, and not conforming with
2821 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2822
2823 Please tell bug-automake@gnu.org about your system, including the value
2824 of your $PATH and any error possibly output before this message.  This
2825 can help us improve future automake versions.
2826
2827 END
2828   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2829     echo 'Configuration will proceed anyway, since you have set the' >&2
2830     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2831     echo >&2
2832   else
2833     cat >&2 <<'END'
2834 Aborting the configuration process, to ensure you take notice of the issue.
2835
2836 You can download and install GNU coreutils to get an 'rm' implementation
2837 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2838
2839 If you want to complete the configuration process using your problematic
2840 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2841 to "yes", and re-run configure.
2842
2843 END
2844     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2845   fi
2846 fi
2847
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2850 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2851     # Check whether --enable-maintainer-mode was given.
2852 if test "${enable_maintainer_mode+set}" = set; then :
2853   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2854 else
2855   USE_MAINTAINER_MODE=no
2856 fi
2857
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2859 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2860    if test $USE_MAINTAINER_MODE = yes; then
2861   MAINTAINER_MODE_TRUE=
2862   MAINTAINER_MODE_FALSE='#'
2863 else
2864   MAINTAINER_MODE_TRUE='#'
2865   MAINTAINER_MODE_FALSE=
2866 fi
2867
2868   MAINT=$MAINTAINER_MODE_TRUE
2869
2870
2871
2872 # Initialize libtool
2873 # Check whether --enable-static was given.
2874 if test "${enable_static+set}" = set; then :
2875   enableval=$enable_static; p=${PACKAGE-default}
2876     case $enableval in
2877     yes) enable_static=yes ;;
2878     no) enable_static=no ;;
2879     *)
2880      enable_static=no
2881       # Look at the argument we got.  We use all the common list separators.
2882       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2883       for pkg in $enableval; do
2884         IFS="$lt_save_ifs"
2885         if test "X$pkg" = "X$p"; then
2886           enable_static=yes
2887         fi
2888       done
2889       IFS="$lt_save_ifs"
2890       ;;
2891     esac
2892 else
2893   enable_static=no
2894 fi
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904 case `pwd` in
2905   *\ * | *\     *)
2906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2908 esac
2909
2910
2911
2912 macro_version='2.4.2'
2913 macro_revision='1.3337'
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927 ltmain="$ac_aux_dir/ltmain.sh"
2928
2929 # Make sure we can run config.sub.
2930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2931   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2932
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2934 $as_echo_n "checking build system type... " >&6; }
2935 if ${ac_cv_build+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   ac_build_alias=$build_alias
2939 test "x$ac_build_alias" = x &&
2940   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2941 test "x$ac_build_alias" = x &&
2942   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2944   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2945
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2948 $as_echo "$ac_cv_build" >&6; }
2949 case $ac_cv_build in
2950 *-*-*) ;;
2951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2952 esac
2953 build=$ac_cv_build
2954 ac_save_IFS=$IFS; IFS='-'
2955 set x $ac_cv_build
2956 shift
2957 build_cpu=$1
2958 build_vendor=$2
2959 shift; shift
2960 # Remember, the first character of IFS is used to create $*,
2961 # except with old shells:
2962 build_os=$*
2963 IFS=$ac_save_IFS
2964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2965
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2968 $as_echo_n "checking host system type... " >&6; }
2969 if ${ac_cv_host+:} false; then :
2970   $as_echo_n "(cached) " >&6
2971 else
2972   if test "x$host_alias" = x; then
2973   ac_cv_host=$ac_cv_build
2974 else
2975   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2976     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2977 fi
2978
2979 fi
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2981 $as_echo "$ac_cv_host" >&6; }
2982 case $ac_cv_host in
2983 *-*-*) ;;
2984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2985 esac
2986 host=$ac_cv_host
2987 ac_save_IFS=$IFS; IFS='-'
2988 set x $ac_cv_host
2989 shift
2990 host_cpu=$1
2991 host_vendor=$2
2992 shift; shift
2993 # Remember, the first character of IFS is used to create $*,
2994 # except with old shells:
2995 host_os=$*
2996 IFS=$ac_save_IFS
2997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2998
2999
3000 # Backslashify metacharacters that are still active within
3001 # double-quoted strings.
3002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3003
3004 # Same as above, but do not quote variable references.
3005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3006
3007 # Sed substitution to delay expansion of an escaped shell variable in a
3008 # double_quote_subst'ed string.
3009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3010
3011 # Sed substitution to delay expansion of an escaped single quote.
3012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3013
3014 # Sed substitution to avoid accidental globbing in evaled expressions
3015 no_glob_subst='s/\*/\\\*/g'
3016
3017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3022 $as_echo_n "checking how to print strings... " >&6; }
3023 # Test print first, because it will be a builtin if present.
3024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3025    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3026   ECHO='print -r --'
3027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3028   ECHO='printf %s\n'
3029 else
3030   # Use this function as a fallback that always works.
3031   func_fallback_echo ()
3032   {
3033     eval 'cat <<_LTECHO_EOF
3034 $1
3035 _LTECHO_EOF'
3036   }
3037   ECHO='func_fallback_echo'
3038 fi
3039
3040 # func_echo_all arg...
3041 # Invoke $ECHO with all args, space-separated.
3042 func_echo_all ()
3043 {
3044     $ECHO ""
3045 }
3046
3047 case "$ECHO" in
3048   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3049 $as_echo "printf" >&6; } ;;
3050   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3051 $as_echo "print -r" >&6; } ;;
3052   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3053 $as_echo "cat" >&6; } ;;
3054 esac
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069 DEPDIR="${am__leading_dot}deps"
3070
3071 ac_config_commands="$ac_config_commands depfiles"
3072
3073
3074 am_make=${MAKE-make}
3075 cat > confinc << 'END'
3076 am__doit:
3077         @echo this is the am__doit target
3078 .PHONY: am__doit
3079 END
3080 # If we don't find an include directive, just comment out the code.
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3082 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3083 am__include="#"
3084 am__quote=
3085 _am_result=none
3086 # First try GNU make style include.
3087 echo "include confinc" > confmf
3088 # Ignore all kinds of additional output from 'make'.
3089 case `$am_make -s -f confmf 2> /dev/null` in #(
3090 *the\ am__doit\ target*)
3091   am__include=include
3092   am__quote=
3093   _am_result=GNU
3094   ;;
3095 esac
3096 # Now try BSD make style include.
3097 if test "$am__include" = "#"; then
3098    echo '.include "confinc"' > confmf
3099    case `$am_make -s -f confmf 2> /dev/null` in #(
3100    *the\ am__doit\ target*)
3101      am__include=.include
3102      am__quote="\""
3103      _am_result=BSD
3104      ;;
3105    esac
3106 fi
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3110 $as_echo "$_am_result" >&6; }
3111 rm -f confinc confmf
3112
3113 # Check whether --enable-dependency-tracking was given.
3114 if test "${enable_dependency_tracking+set}" = set; then :
3115   enableval=$enable_dependency_tracking;
3116 fi
3117
3118 if test "x$enable_dependency_tracking" != xno; then
3119   am_depcomp="$ac_aux_dir/depcomp"
3120   AMDEPBACKSLASH='\'
3121   am__nodep='_no'
3122 fi
3123  if test "x$enable_dependency_tracking" != xno; then
3124   AMDEP_TRUE=
3125   AMDEP_FALSE='#'
3126 else
3127   AMDEP_TRUE='#'
3128   AMDEP_FALSE=
3129 fi
3130
3131
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$CC"; then
3146   ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 fi
3176 if test -z "$ac_cv_prog_CC"; then
3177   ac_ct_CC=$CC
3178   # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   if test -n "$ac_ct_CC"; then
3186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191   IFS=$as_save_IFS
3192   test -z "$as_dir" && as_dir=.
3193     for ac_exec_ext in '' $ac_executable_extensions; do
3194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195     ac_cv_prog_ac_ct_CC="gcc"
3196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197     break 2
3198   fi
3199 done
3200   done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214   if test "x$ac_ct_CC" = x; then
3215     CC=""
3216   else
3217     case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223     CC=$ac_ct_CC
3224   fi
3225 else
3226   CC="$ac_cv_prog_CC"
3227 fi
3228
3229 if test -z "$CC"; then
3230           if test -n "$ac_tool_prefix"; then
3231     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   if test -n "$CC"; then
3239   ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248     ac_cv_prog_CC="${ac_tool_prefix}cc"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268   fi
3269 fi
3270 if test -z "$CC"; then
3271   # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$CC"; then
3279   ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281   ac_prog_rejected=no
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285   IFS=$as_save_IFS
3286   test -z "$as_dir" && as_dir=.
3287     for ac_exec_ext in '' $ac_executable_extensions; do
3288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290        ac_prog_rejected=yes
3291        continue
3292      fi
3293     ac_cv_prog_CC="cc"
3294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298   done
3299 IFS=$as_save_IFS
3300
3301 if test $ac_prog_rejected = yes; then
3302   # We found a bogon in the path, so make sure we never use it.
3303   set dummy $ac_cv_prog_CC
3304   shift
3305   if test $# != 0; then
3306     # We chose a different compiler from the bogus one.
3307     # However, it has the same basename, so the bogon will be chosen
3308     # first if we set CC to just the basename; use the full file name.
3309     shift
3310     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3311   fi
3312 fi
3313 fi
3314 fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 fi
3326 if test -z "$CC"; then
3327   if test -n "$ac_tool_prefix"; then
3328   for ac_prog in cl.exe
3329   do
3330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   if test -n "$CC"; then
3338   ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345     for ac_exec_ext in '' $ac_executable_extensions; do
3346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352   done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367     test -n "$CC" && break
3368   done
3369 fi
3370 if test -z "$CC"; then
3371   ac_ct_CC=$CC
3372   for ac_prog in cl.exe
3373 do
3374   # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$ac_ct_CC"; then
3382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391     ac_cv_prog_ac_ct_CC="$ac_prog"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410
3411   test -n "$ac_ct_CC" && break
3412 done
3413
3414   if test "x$ac_ct_CC" = x; then
3415     CC=""
3416   else
3417     case $cross_compiling:$ac_tool_warned in
3418 yes:)
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3422 esac
3423     CC=$ac_ct_CC
3424   fi
3425 fi
3426
3427 fi
3428
3429
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5; }
3434
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3437 set X $ac_compile
3438 ac_compiler=$2
3439 for ac_option in --version -v -V -qversion; do
3440   { { ac_try="$ac_compiler $ac_option >&5"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448   ac_status=$?
3449   if test -s conftest.err; then
3450     sed '10a\
3451 ... rest of stderr output deleted ...
3452          10q' conftest.err >conftest.er1
3453     cat conftest.er1 >&5
3454   fi
3455   rm -f conftest.er1 conftest.err
3456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457   test $ac_status = 0; }
3458 done
3459
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3475 # of exeext.
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3482
3483 ac_rmfiles=
3484 for ac_file in $ac_files
3485 do
3486   case $ac_file in
3487     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3489   esac
3490 done
3491 rm -f $ac_rmfiles
3492
3493 if { { ac_try="$ac_link_default"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500   (eval "$ac_link_default") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }; then :
3504   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3508 # Autoconf.
3509 for ac_file in $ac_files ''
3510 do
3511   test -f "$ac_file" || continue
3512   case $ac_file in
3513     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3514         ;;
3515     [ab].out )
3516         # We found the default executable, but exeext='' is most
3517         # certainly right.
3518         break;;
3519     *.* )
3520         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521         then :; else
3522            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523         fi
3524         # We set ac_cv_exeext here because the later test for it is not
3525         # safe: cross compilers may not add the suffix if given an `-o'
3526         # argument, so we may need to know it at that point already.
3527         # Even if this section looks crufty: it has the advantage of
3528         # actually working.
3529         break;;
3530     * )
3531         break;;
3532   esac
3533 done
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3535
3536 else
3537   ac_file=''
3538 fi
3539 if test -z "$ac_file"; then :
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5; }
3549 else
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3558
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_link") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }; then :
3574   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3577 # `rm'.
3578 for ac_file in conftest.exe conftest conftest.*; do
3579   test -f "$ac_file" || continue
3580   case $ac_file in
3581     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583           break;;
3584     * ) break;;
3585   esac
3586 done
3587 else
3588   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 fi
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3596
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3599 ac_exeext=$EXEEXT
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602 #include <stdio.h>
3603 int
3604 main ()
3605 {
3606 FILE *f = fopen ("conftest.out", "w");
3607  return ferror (f) || fclose (f) != 0;
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run.  If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619   { { ac_try="$ac_link"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626   (eval "$ac_link") 2>&5
3627   ac_status=$?
3628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629   test $ac_status = 0; }
3630   if { ac_try='./conftest$ac_cv_exeext'
3631   { { case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640   test $ac_status = 0; }; }; then
3641     cross_compiling=no
3642   else
3643     if test "$cross_compiling" = maybe; then
3644         cross_compiling=yes
3645     else
3646         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5; }
3651     fi
3652   fi
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3656
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if ${ac_cv_objext+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666
3667 int
3668 main ()
3669 {
3670
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_compile") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }; then :
3687   for ac_file in conftest.o conftest.obj conftest.*; do
3688   test -f "$ac_file" || continue;
3689   case $ac_file in
3690     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692        break;;
3693   esac
3694 done
3695 else
3696   $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5; }
3703 fi
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3709 ac_objext=$OBJEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if ${ac_cv_c_compiler_gnu+:} false; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3717
3718 int
3719 main ()
3720 {
3721 #ifndef __GNUC__
3722        choke me
3723 #endif
3724
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730   ac_compiler_gnu=yes
3731 else
3732   ac_compiler_gnu=no
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3736
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741   GCC=yes
3742 else
3743   GCC=
3744 fi
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if ${ac_cv_prog_cc_g+:} false; then :
3750   $as_echo_n "(cached) " >&6
3751 else
3752   ac_save_c_werror_flag=$ac_c_werror_flag
3753    ac_c_werror_flag=yes
3754    ac_cv_prog_cc_g=no
3755    CFLAGS="-g"
3756    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h.  */
3758
3759 int
3760 main ()
3761 {
3762
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768   ac_cv_prog_cc_g=yes
3769 else
3770   CFLAGS=""
3771       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h.  */
3773
3774 int
3775 main ()
3776 {
3777
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783
3784 else
3785   ac_c_werror_flag=$ac_save_c_werror_flag
3786          CFLAGS="-g"
3787          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799   ac_cv_prog_cc_g=yes
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806    ac_c_werror_flag=$ac_save_c_werror_flag
3807 fi
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811   CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813   if test "$GCC" = yes; then
3814     CFLAGS="-g -O2"
3815   else
3816     CFLAGS="-g"
3817   fi
3818 else
3819   if test "$GCC" = yes; then
3820     CFLAGS="-O2"
3821   else
3822     CFLAGS=
3823   fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if ${ac_cv_prog_cc_c89+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h.  */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 struct stat;
3837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3838 struct buf { int x; };
3839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3840 static char *e (p, i)
3841      char **p;
3842      int i;
3843 {
3844   return p[i];
3845 }
3846 static char *f (char * (*g) (char **, int), char **p, ...)
3847 {
3848   char *s;
3849   va_list v;
3850   va_start (v,p);
3851   s = g (p, va_arg (v,int));
3852   va_end (v);
3853   return s;
3854 }
3855
3856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3857    function prototypes and stuff, but not '\xHH' hex character constants.
3858    These don't provoke an error unfortunately, instead are silently treated
3859    as 'x'.  The following induces an error, until -std is added to get
3860    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3861    array size at least.  It's necessary to write '\x00'==0 to get something
3862    that's true only with -std.  */
3863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3864
3865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3866    inside strings and character constants.  */
3867 #define FOO(x) 'x'
3868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3869
3870 int test (int i, double x);
3871 struct s1 {int (*f) (int a);};
3872 struct s2 {int (*f) (double a);};
3873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3874 int argc;
3875 char **argv;
3876 int
3877 main ()
3878 {
3879 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3885         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3886 do
3887   CC="$ac_save_CC $ac_arg"
3888   if ac_fn_c_try_compile "$LINENO"; then :
3889   ac_cv_prog_cc_c89=$ac_arg
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext
3892   test "x$ac_cv_prog_cc_c89" != "xno" && break
3893 done
3894 rm -f conftest.$ac_ext
3895 CC=$ac_save_CC
3896
3897 fi
3898 # AC_CACHE_VAL
3899 case "x$ac_cv_prog_cc_c89" in
3900   x)
3901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3903   xno)
3904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3906   *)
3907     CC="$CC $ac_cv_prog_cc_c89"
3908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3910 esac
3911 if test "x$ac_cv_prog_cc_c89" != xno; then :
3912
3913 fi
3914
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3927 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3928 if ${am_cv_prog_cc_c_o+:} false; then :
3929   $as_echo_n "(cached) " >&6
3930 else
3931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h.  */
3933
3934 int
3935 main ()
3936 {
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942   # Make sure it works both with $CC and with simple cc.
3943   # Following AC_PROG_CC_C_O, we do the test twice because some
3944   # compilers refuse to overwrite an existing .o file with -o,
3945   # though they will create one.
3946   am_cv_prog_cc_c_o=yes
3947   for am_i in 1 2; do
3948     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3949    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3950    ac_status=$?
3951    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952    (exit $ac_status); } \
3953          && test -f conftest2.$ac_objext; then
3954       : OK
3955     else
3956       am_cv_prog_cc_c_o=no
3957       break
3958     fi
3959   done
3960   rm -f core conftest*
3961   unset am_i
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3964 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3965 if test "$am_cv_prog_cc_c_o" != yes; then
3966    # Losing compiler, so override with the script.
3967    # FIXME: It is wrong to rewrite CC.
3968    # But if we don't then we get into trouble of one sort or another.
3969    # A longer-term fix would be to have automake use am__CC in this case,
3970    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3971    CC="$am_aux_dir/compile $CC"
3972 fi
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978
3979
3980 depcc="$CC"   am_compiler_list=
3981
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3983 $as_echo_n "checking dependency style of $depcc... " >&6; }
3984 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3988   # We make a subdir and do the tests there.  Otherwise we can end up
3989   # making bogus files that we don't know about and never remove.  For
3990   # instance it was reported that on HP-UX the gcc test will end up
3991   # making a dummy file named 'D' -- because '-MD' means "put the output
3992   # in D".
3993   rm -rf conftest.dir
3994   mkdir conftest.dir
3995   # Copy depcomp to subdir because otherwise we won't find it if we're
3996   # using a relative directory.
3997   cp "$am_depcomp" conftest.dir
3998   cd conftest.dir
3999   # We will build objects and dependencies in a subdirectory because
4000   # it helps to detect inapplicable dependency modes.  For instance
4001   # both Tru64's cc and ICC support -MD to output dependencies as a
4002   # side effect of compilation, but ICC will put the dependencies in
4003   # the current directory while Tru64 will put them in the object
4004   # directory.
4005   mkdir sub
4006
4007   am_cv_CC_dependencies_compiler_type=none
4008   if test "$am_compiler_list" = ""; then
4009      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4010   fi
4011   am__universal=false
4012   case " $depcc " in #(
4013      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4014      esac
4015
4016   for depmode in $am_compiler_list; do
4017     # Setup a source with many dependencies, because some compilers
4018     # like to wrap large dependency lists on column 80 (with \), and
4019     # we should not choose a depcomp mode which is confused by this.
4020     #
4021     # We need to recreate these files for each test, as the compiler may
4022     # overwrite some of them when testing with obscure command lines.
4023     # This happens at least with the AIX C compiler.
4024     : > sub/conftest.c
4025     for i in 1 2 3 4 5 6; do
4026       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4027       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4028       # Solaris 10 /bin/sh.
4029       echo '/* dummy */' > sub/conftst$i.h
4030     done
4031     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4032
4033     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4034     # mode.  It turns out that the SunPro C++ compiler does not properly
4035     # handle '-M -o', and we need to detect this.  Also, some Intel
4036     # versions had trouble with output in subdirs.
4037     am__obj=sub/conftest.${OBJEXT-o}
4038     am__minus_obj="-o $am__obj"
4039     case $depmode in
4040     gcc)
4041       # This depmode causes a compiler race in universal mode.
4042       test "$am__universal" = false || continue
4043       ;;
4044     nosideeffect)
4045       # After this tag, mechanisms are not by side-effect, so they'll
4046       # only be used when explicitly requested.
4047       if test "x$enable_dependency_tracking" = xyes; then
4048         continue
4049       else
4050         break
4051       fi
4052       ;;
4053     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4054       # This compiler won't grok '-c -o', but also, the minuso test has
4055       # not run yet.  These depmodes are late enough in the game, and
4056       # so weak that their functioning should not be impacted.
4057       am__obj=conftest.${OBJEXT-o}
4058       am__minus_obj=
4059       ;;
4060     none) break ;;
4061     esac
4062     if depmode=$depmode \
4063        source=sub/conftest.c object=$am__obj \
4064        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4065        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4066          >/dev/null 2>conftest.err &&
4067        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4068        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4069        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4070        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4071       # icc doesn't choke on unknown options, it will just issue warnings
4072       # or remarks (even with -Werror).  So we grep stderr for any message
4073       # that says an option was ignored or not supported.
4074       # When given -MP, icc 7.0 and 7.1 complain thusly:
4075       #   icc: Command line warning: ignoring option '-M'; no argument required
4076       # The diagnosis changed in icc 8.0:
4077       #   icc: Command line remark: option '-MP' not supported
4078       if (grep 'ignoring option' conftest.err ||
4079           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4080         am_cv_CC_dependencies_compiler_type=$depmode
4081         break
4082       fi
4083     fi
4084   done
4085
4086   cd ..
4087   rm -rf conftest.dir
4088 else
4089   am_cv_CC_dependencies_compiler_type=none
4090 fi
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4094 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4096
4097  if
4098   test "x$enable_dependency_tracking" != xno \
4099   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4100   am__fastdepCC_TRUE=
4101   am__fastdepCC_FALSE='#'
4102 else
4103   am__fastdepCC_TRUE='#'
4104   am__fastdepCC_FALSE=
4105 fi
4106
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4109 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4110 if ${ac_cv_path_SED+:} false; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4114      for ac_i in 1 2 3 4 5 6 7; do
4115        ac_script="$ac_script$as_nl$ac_script"
4116      done
4117      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4118      { ac_script=; unset ac_script;}
4119      if test -z "$SED"; then
4120   ac_path_SED_found=false
4121   # Loop through the user's path and test for each of PROGNAME-LIST
4122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127     for ac_prog in sed gsed; do
4128     for ac_exec_ext in '' $ac_executable_extensions; do
4129       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4130       as_fn_executable_p "$ac_path_SED" || continue
4131 # Check for GNU ac_path_SED and select it if it is found.
4132   # Check for GNU $ac_path_SED
4133 case `"$ac_path_SED" --version 2>&1` in
4134 *GNU*)
4135   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4136 *)
4137   ac_count=0
4138   $as_echo_n 0123456789 >"conftest.in"
4139   while :
4140   do
4141     cat "conftest.in" "conftest.in" >"conftest.tmp"
4142     mv "conftest.tmp" "conftest.in"
4143     cp "conftest.in" "conftest.nl"
4144     $as_echo '' >> "conftest.nl"
4145     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4147     as_fn_arith $ac_count + 1 && ac_count=$as_val
4148     if test $ac_count -gt ${ac_path_SED_max-0}; then
4149       # Best one so far, save it but keep looking for a better one
4150       ac_cv_path_SED="$ac_path_SED"
4151       ac_path_SED_max=$ac_count
4152     fi
4153     # 10*(2^10) chars as input seems more than enough
4154     test $ac_count -gt 10 && break
4155   done
4156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157 esac
4158
4159       $ac_path_SED_found && break 3
4160     done
4161   done
4162   done
4163 IFS=$as_save_IFS
4164   if test -z "$ac_cv_path_SED"; then
4165     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4166   fi
4167 else
4168   ac_cv_path_SED=$SED
4169 fi
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4173 $as_echo "$ac_cv_path_SED" >&6; }
4174  SED="$ac_cv_path_SED"
4175   rm -f conftest.sed
4176
4177 test -z "$SED" && SED=sed
4178 Xsed="$SED -e 1s/^X//"
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4191 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4192 if ${ac_cv_path_GREP+:} false; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   if test -z "$GREP"; then
4196   ac_path_GREP_found=false
4197   # Loop through the user's path and test for each of PROGNAME-LIST
4198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4200 do
4201   IFS=$as_save_IFS
4202   test -z "$as_dir" && as_dir=.
4203     for ac_prog in grep ggrep; do
4204     for ac_exec_ext in '' $ac_executable_extensions; do
4205       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4206       as_fn_executable_p "$ac_path_GREP" || continue
4207 # Check for GNU ac_path_GREP and select it if it is found.
4208   # Check for GNU $ac_path_GREP
4209 case `"$ac_path_GREP" --version 2>&1` in
4210 *GNU*)
4211   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4212 *)
4213   ac_count=0
4214   $as_echo_n 0123456789 >"conftest.in"
4215   while :
4216   do
4217     cat "conftest.in" "conftest.in" >"conftest.tmp"
4218     mv "conftest.tmp" "conftest.in"
4219     cp "conftest.in" "conftest.nl"
4220     $as_echo 'GREP' >> "conftest.nl"
4221     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4222     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4223     as_fn_arith $ac_count + 1 && ac_count=$as_val
4224     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4225       # Best one so far, save it but keep looking for a better one
4226       ac_cv_path_GREP="$ac_path_GREP"
4227       ac_path_GREP_max=$ac_count
4228     fi
4229     # 10*(2^10) chars as input seems more than enough
4230     test $ac_count -gt 10 && break
4231   done
4232   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4233 esac
4234
4235       $ac_path_GREP_found && break 3
4236     done
4237   done
4238   done
4239 IFS=$as_save_IFS
4240   if test -z "$ac_cv_path_GREP"; then
4241     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4242   fi
4243 else
4244   ac_cv_path_GREP=$GREP
4245 fi
4246
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4249 $as_echo "$ac_cv_path_GREP" >&6; }
4250  GREP="$ac_cv_path_GREP"
4251
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4254 $as_echo_n "checking for egrep... " >&6; }
4255 if ${ac_cv_path_EGREP+:} false; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4259    then ac_cv_path_EGREP="$GREP -E"
4260    else
4261      if test -z "$EGREP"; then
4262   ac_path_EGREP_found=false
4263   # Loop through the user's path and test for each of PROGNAME-LIST
4264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4266 do
4267   IFS=$as_save_IFS
4268   test -z "$as_dir" && as_dir=.
4269     for ac_prog in egrep; do
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4272       as_fn_executable_p "$ac_path_EGREP" || continue
4273 # Check for GNU ac_path_EGREP and select it if it is found.
4274   # Check for GNU $ac_path_EGREP
4275 case `"$ac_path_EGREP" --version 2>&1` in
4276 *GNU*)
4277   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4278 *)
4279   ac_count=0
4280   $as_echo_n 0123456789 >"conftest.in"
4281   while :
4282   do
4283     cat "conftest.in" "conftest.in" >"conftest.tmp"
4284     mv "conftest.tmp" "conftest.in"
4285     cp "conftest.in" "conftest.nl"
4286     $as_echo 'EGREP' >> "conftest.nl"
4287     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4289     as_fn_arith $ac_count + 1 && ac_count=$as_val
4290     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4291       # Best one so far, save it but keep looking for a better one
4292       ac_cv_path_EGREP="$ac_path_EGREP"
4293       ac_path_EGREP_max=$ac_count
4294     fi
4295     # 10*(2^10) chars as input seems more than enough
4296     test $ac_count -gt 10 && break
4297   done
4298   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299 esac
4300
4301       $ac_path_EGREP_found && break 3
4302     done
4303   done
4304   done
4305 IFS=$as_save_IFS
4306   if test -z "$ac_cv_path_EGREP"; then
4307     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4308   fi
4309 else
4310   ac_cv_path_EGREP=$EGREP
4311 fi
4312
4313    fi
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4316 $as_echo "$ac_cv_path_EGREP" >&6; }
4317  EGREP="$ac_cv_path_EGREP"
4318
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4321 $as_echo_n "checking for fgrep... " >&6; }
4322 if ${ac_cv_path_FGREP+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4326    then ac_cv_path_FGREP="$GREP -F"
4327    else
4328      if test -z "$FGREP"; then
4329   ac_path_FGREP_found=false
4330   # Loop through the user's path and test for each of PROGNAME-LIST
4331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336     for ac_prog in fgrep; do
4337     for ac_exec_ext in '' $ac_executable_extensions; do
4338       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4339       as_fn_executable_p "$ac_path_FGREP" || continue
4340 # Check for GNU ac_path_FGREP and select it if it is found.
4341   # Check for GNU $ac_path_FGREP
4342 case `"$ac_path_FGREP" --version 2>&1` in
4343 *GNU*)
4344   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4345 *)
4346   ac_count=0
4347   $as_echo_n 0123456789 >"conftest.in"
4348   while :
4349   do
4350     cat "conftest.in" "conftest.in" >"conftest.tmp"
4351     mv "conftest.tmp" "conftest.in"
4352     cp "conftest.in" "conftest.nl"
4353     $as_echo 'FGREP' >> "conftest.nl"
4354     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4355     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4356     as_fn_arith $ac_count + 1 && ac_count=$as_val
4357     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4358       # Best one so far, save it but keep looking for a better one
4359       ac_cv_path_FGREP="$ac_path_FGREP"
4360       ac_path_FGREP_max=$ac_count
4361     fi
4362     # 10*(2^10) chars as input seems more than enough
4363     test $ac_count -gt 10 && break
4364   done
4365   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4366 esac
4367
4368       $ac_path_FGREP_found && break 3
4369     done
4370   done
4371   done
4372 IFS=$as_save_IFS
4373   if test -z "$ac_cv_path_FGREP"; then
4374     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4375   fi
4376 else
4377   ac_cv_path_FGREP=$FGREP
4378 fi
4379
4380    fi
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4383 $as_echo "$ac_cv_path_FGREP" >&6; }
4384  FGREP="$ac_cv_path_FGREP"
4385
4386
4387 test -z "$GREP" && GREP=grep
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407 # Check whether --with-gnu-ld was given.
4408 if test "${with_gnu_ld+set}" = set; then :
4409   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4410 else
4411   with_gnu_ld=no
4412 fi
4413
4414 ac_prog=ld
4415 if test "$GCC" = yes; then
4416   # Check if gcc -print-prog-name=ld gives a path.
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4418 $as_echo_n "checking for ld used by $CC... " >&6; }
4419   case $host in
4420   *-*-mingw*)
4421     # gcc leaves a trailing carriage return which upsets mingw
4422     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4423   *)
4424     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4425   esac
4426   case $ac_prog in
4427     # Accept absolute paths.
4428     [\\/]* | ?:[\\/]*)
4429       re_direlt='/[^/][^/]*/\.\./'
4430       # Canonicalize the pathname of ld
4431       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4432       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4433         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4434       done
4435       test -z "$LD" && LD="$ac_prog"
4436       ;;
4437   "")
4438     # If it fails, then pretend we aren't using GCC.
4439     ac_prog=ld
4440     ;;
4441   *)
4442     # If it is relative, then search for the first ld in PATH.
4443     with_gnu_ld=unknown
4444     ;;
4445   esac
4446 elif test "$with_gnu_ld" = yes; then
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4448 $as_echo_n "checking for GNU ld... " >&6; }
4449 else
4450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4451 $as_echo_n "checking for non-GNU ld... " >&6; }
4452 fi
4453 if ${lt_cv_path_LD+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   if test -z "$LD"; then
4457   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458   for ac_dir in $PATH; do
4459     IFS="$lt_save_ifs"
4460     test -z "$ac_dir" && ac_dir=.
4461     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4462       lt_cv_path_LD="$ac_dir/$ac_prog"
4463       # Check to see if the program is GNU ld.  I'd rather use --version,
4464       # but apparently some variants of GNU ld only accept -v.
4465       # Break only if it was the GNU/non-GNU ld that we prefer.
4466       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4467       *GNU* | *'with BFD'*)
4468         test "$with_gnu_ld" != no && break
4469         ;;
4470       *)
4471         test "$with_gnu_ld" != yes && break
4472         ;;
4473       esac
4474     fi
4475   done
4476   IFS="$lt_save_ifs"
4477 else
4478   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4479 fi
4480 fi
4481
4482 LD="$lt_cv_path_LD"
4483 if test -n "$LD"; then
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4485 $as_echo "$LD" >&6; }
4486 else
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4493 if ${lt_cv_prog_gnu_ld+:} false; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4497 case `$LD -v 2>&1 </dev/null` in
4498 *GNU* | *'with BFD'*)
4499   lt_cv_prog_gnu_ld=yes
4500   ;;
4501 *)
4502   lt_cv_prog_gnu_ld=no
4503   ;;
4504 esac
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4507 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4508 with_gnu_ld=$lt_cv_prog_gnu_ld
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4519 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4520 if ${lt_cv_path_NM+:} false; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   if test -n "$NM"; then
4524   # Let the user override the test.
4525   lt_cv_path_NM="$NM"
4526 else
4527   lt_nm_to_check="${ac_tool_prefix}nm"
4528   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4529     lt_nm_to_check="$lt_nm_to_check nm"
4530   fi
4531   for lt_tmp_nm in $lt_nm_to_check; do
4532     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4533     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4534       IFS="$lt_save_ifs"
4535       test -z "$ac_dir" && ac_dir=.
4536       tmp_nm="$ac_dir/$lt_tmp_nm"
4537       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4538         # Check to see if the nm accepts a BSD-compat flag.
4539         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4540         #   nm: unknown option "B" ignored
4541         # Tru64's nm complains that /dev/null is an invalid object file
4542         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4543         */dev/null* | *'Invalid file or object type'*)
4544           lt_cv_path_NM="$tmp_nm -B"
4545           break
4546           ;;
4547         *)
4548           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4549           */dev/null*)
4550             lt_cv_path_NM="$tmp_nm -p"
4551             break
4552             ;;
4553           *)
4554             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4555             continue # so that we can try to find one that supports BSD flags
4556             ;;
4557           esac
4558           ;;
4559         esac
4560       fi
4561     done
4562     IFS="$lt_save_ifs"
4563   done
4564   : ${lt_cv_path_NM=no}
4565 fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4568 $as_echo "$lt_cv_path_NM" >&6; }
4569 if test "$lt_cv_path_NM" != "no"; then
4570   NM="$lt_cv_path_NM"
4571 else
4572   # Didn't find any BSD compatible name lister, look for dumpbin.
4573   if test -n "$DUMPBIN"; then :
4574     # Let the user override the test.
4575   else
4576     if test -n "$ac_tool_prefix"; then
4577   for ac_prog in dumpbin "link -dump"
4578   do
4579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_DUMPBIN+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   if test -n "$DUMPBIN"; then
4587   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594     for ac_exec_ext in '' $ac_executable_extensions; do
4595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601   done
4602 IFS=$as_save_IFS
4603
4604 fi
4605 fi
4606 DUMPBIN=$ac_cv_prog_DUMPBIN
4607 if test -n "$DUMPBIN"; then
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4609 $as_echo "$DUMPBIN" >&6; }
4610 else
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4613 fi
4614
4615
4616     test -n "$DUMPBIN" && break
4617   done
4618 fi
4619 if test -z "$DUMPBIN"; then
4620   ac_ct_DUMPBIN=$DUMPBIN
4621   for ac_prog in dumpbin "link -dump"
4622 do
4623   # Extract the first word of "$ac_prog", so it can be a program name with args.
4624 set dummy $ac_prog; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   if test -n "$ac_ct_DUMPBIN"; then
4631   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638     for ac_exec_ext in '' $ac_executable_extensions; do
4639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645   done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
4650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4651 if test -n "$ac_ct_DUMPBIN"; then
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4653 $as_echo "$ac_ct_DUMPBIN" >&6; }
4654 else
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4657 fi
4658
4659
4660   test -n "$ac_ct_DUMPBIN" && break
4661 done
4662
4663   if test "x$ac_ct_DUMPBIN" = x; then
4664     DUMPBIN=":"
4665   else
4666     case $cross_compiling:$ac_tool_warned in
4667 yes:)
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4670 ac_tool_warned=yes ;;
4671 esac
4672     DUMPBIN=$ac_ct_DUMPBIN
4673   fi
4674 fi
4675
4676     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4677     *COFF*)
4678       DUMPBIN="$DUMPBIN -symbols"
4679       ;;
4680     *)
4681       DUMPBIN=:
4682       ;;
4683     esac
4684   fi
4685
4686   if test "$DUMPBIN" != ":"; then
4687     NM="$DUMPBIN"
4688   fi
4689 fi
4690 test -z "$NM" && NM=nm
4691
4692
4693
4694
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4698 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4699 if ${lt_cv_nm_interface+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   lt_cv_nm_interface="BSD nm"
4703   echo "int some_variable = 0;" > conftest.$ac_ext
4704   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4705   (eval "$ac_compile" 2>conftest.err)
4706   cat conftest.err >&5
4707   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4708   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4709   cat conftest.err >&5
4710   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4711   cat conftest.out >&5
4712   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4713     lt_cv_nm_interface="MS dumpbin"
4714   fi
4715   rm -f conftest*
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4718 $as_echo "$lt_cv_nm_interface" >&6; }
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4721 $as_echo_n "checking whether ln -s works... " >&6; }
4722 LN_S=$as_ln_s
4723 if test "$LN_S" = "ln -s"; then
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725 $as_echo "yes" >&6; }
4726 else
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4728 $as_echo "no, using $LN_S" >&6; }
4729 fi
4730
4731 # find the maximum length of command line arguments
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4733 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4734 if ${lt_cv_sys_max_cmd_len+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737     i=0
4738   teststring="ABCD"
4739
4740   case $build_os in
4741   msdosdjgpp*)
4742     # On DJGPP, this test can blow up pretty badly due to problems in libc
4743     # (any single argument exceeding 2000 bytes causes a buffer overrun
4744     # during glob expansion).  Even if it were fixed, the result of this
4745     # check would be larger than it should be.
4746     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4747     ;;
4748
4749   gnu*)
4750     # Under GNU Hurd, this test is not required because there is
4751     # no limit to the length of command line arguments.
4752     # Libtool will interpret -1 as no limit whatsoever
4753     lt_cv_sys_max_cmd_len=-1;
4754     ;;
4755
4756   cygwin* | mingw* | cegcc*)
4757     # On Win9x/ME, this test blows up -- it succeeds, but takes
4758     # about 5 minutes as the teststring grows exponentially.
4759     # Worse, since 9x/ME are not pre-emptively multitasking,
4760     # you end up with a "frozen" computer, even though with patience
4761     # the test eventually succeeds (with a max line length of 256k).
4762     # Instead, let's just punt: use the minimum linelength reported by
4763     # all of the supported platforms: 8192 (on NT/2K/XP).
4764     lt_cv_sys_max_cmd_len=8192;
4765     ;;
4766
4767   mint*)
4768     # On MiNT this can take a long time and run out of memory.
4769     lt_cv_sys_max_cmd_len=8192;
4770     ;;
4771
4772   amigaos*)
4773     # On AmigaOS with pdksh, this test takes hours, literally.
4774     # So we just punt and use a minimum line length of 8192.
4775     lt_cv_sys_max_cmd_len=8192;
4776     ;;
4777
4778   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4779     # This has been around since 386BSD, at least.  Likely further.
4780     if test -x /sbin/sysctl; then
4781       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4782     elif test -x /usr/sbin/sysctl; then
4783       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4784     else
4785       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4786     fi
4787     # And add a safety zone
4788     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4789     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4790     ;;
4791
4792   interix*)
4793     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4794     lt_cv_sys_max_cmd_len=196608
4795     ;;
4796
4797   os2*)
4798     # The test takes a long time on OS/2.
4799     lt_cv_sys_max_cmd_len=8192
4800     ;;
4801
4802   osf*)
4803     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4804     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4805     # nice to cause kernel panics so lets avoid the loop below.
4806     # First set a reasonable default.
4807     lt_cv_sys_max_cmd_len=16384
4808     #
4809     if test -x /sbin/sysconfig; then
4810       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4811         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4812       esac
4813     fi
4814     ;;
4815   sco3.2v5*)
4816     lt_cv_sys_max_cmd_len=102400
4817     ;;
4818   sysv5* | sco5v6* | sysv4.2uw2*)
4819     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4820     if test -n "$kargmax"; then
4821       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4822     else
4823       lt_cv_sys_max_cmd_len=32768
4824     fi
4825     ;;
4826   *)
4827     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4828     if test -n "$lt_cv_sys_max_cmd_len"; then
4829       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4830       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4831     else
4832       # Make teststring a little bigger before we do anything with it.
4833       # a 1K string should be a reasonable start.
4834       for i in 1 2 3 4 5 6 7 8 ; do
4835         teststring=$teststring$teststring
4836       done
4837       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4838       # If test is not a shell built-in, we'll probably end up computing a
4839       # maximum length that is only half of the actual maximum length, but
4840       # we can't tell.
4841       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4842                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4843               test $i != 17 # 1/2 MB should be enough
4844       do
4845         i=`expr $i + 1`
4846         teststring=$teststring$teststring
4847       done
4848       # Only check the string length outside the loop.
4849       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4850       teststring=
4851       # Add a significant safety factor because C++ compilers can tack on
4852       # massive amounts of additional arguments before passing them to the
4853       # linker.  It appears as though 1/2 is a usable value.
4854       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4855     fi
4856     ;;
4857   esac
4858
4859 fi
4860
4861 if test -n $lt_cv_sys_max_cmd_len ; then
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4863 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4864 else
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4866 $as_echo "none" >&6; }
4867 fi
4868 max_cmd_len=$lt_cv_sys_max_cmd_len
4869
4870
4871
4872
4873
4874
4875 : ${CP="cp -f"}
4876 : ${MV="mv -f"}
4877 : ${RM="rm -f"}
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4880 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4881 # Try some XSI features
4882 xsi_shell=no
4883 ( _lt_dummy="a/b/c"
4884   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4885       = c,a/b,b/c, \
4886     && eval 'test $(( 1 + 1 )) -eq 2 \
4887     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4888   && xsi_shell=yes
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4890 $as_echo "$xsi_shell" >&6; }
4891
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4894 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4895 lt_shell_append=no
4896 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4897     >/dev/null 2>&1 \
4898   && lt_shell_append=yes
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4900 $as_echo "$lt_shell_append" >&6; }
4901
4902
4903 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4904   lt_unset=unset
4905 else
4906   lt_unset=false
4907 fi
4908
4909
4910
4911
4912
4913 # test EBCDIC or ASCII
4914 case `echo X|tr X '\101'` in
4915  A) # ASCII based system
4916     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4917   lt_SP2NL='tr \040 \012'
4918   lt_NL2SP='tr \015\012 \040\040'
4919   ;;
4920  *) # EBCDIC based system
4921   lt_SP2NL='tr \100 \n'
4922   lt_NL2SP='tr \r\n \100\100'
4923   ;;
4924 esac
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4935 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4936 if ${lt_cv_to_host_file_cmd+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   case $host in
4940   *-*-mingw* )
4941     case $build in
4942       *-*-mingw* ) # actually msys
4943         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4944         ;;
4945       *-*-cygwin* )
4946         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4947         ;;
4948       * ) # otherwise, assume *nix
4949         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4950         ;;
4951     esac
4952     ;;
4953   *-*-cygwin* )
4954     case $build in
4955       *-*-mingw* ) # actually msys
4956         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4957         ;;
4958       *-*-cygwin* )
4959         lt_cv_to_host_file_cmd=func_convert_file_noop
4960         ;;
4961       * ) # otherwise, assume *nix
4962         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4963         ;;
4964     esac
4965     ;;
4966   * ) # unhandled hosts (and "normal" native builds)
4967     lt_cv_to_host_file_cmd=func_convert_file_noop
4968     ;;
4969 esac
4970
4971 fi
4972
4973 to_host_file_cmd=$lt_cv_to_host_file_cmd
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4975 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4976
4977
4978
4979
4980
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4982 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4983 if ${lt_cv_to_tool_file_cmd+:} false; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   #assume ordinary cross tools, or native build.
4987 lt_cv_to_tool_file_cmd=func_convert_file_noop
4988 case $host in
4989   *-*-mingw* )
4990     case $build in
4991       *-*-mingw* ) # actually msys
4992         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4993         ;;
4994     esac
4995     ;;
4996 esac
4997
4998 fi
4999
5000 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5002 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5003
5004
5005
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5009 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5010 if ${lt_cv_ld_reload_flag+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   lt_cv_ld_reload_flag='-r'
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5016 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5017 reload_flag=$lt_cv_ld_reload_flag
5018 case $reload_flag in
5019 "" | " "*) ;;
5020 *) reload_flag=" $reload_flag" ;;
5021 esac
5022 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5023 case $host_os in
5024   cygwin* | mingw* | pw32* | cegcc*)
5025     if test "$GCC" != yes; then
5026       reload_cmds=false
5027     fi
5028     ;;
5029   darwin*)
5030     if test "$GCC" = yes; then
5031       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5032     else
5033       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5034     fi
5035     ;;
5036 esac
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 if test -n "$ac_tool_prefix"; then
5047   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_OBJDUMP+:} false; then :
5052   $as_echo_n "(cached) " >&6
5053 else
5054   if test -n "$OBJDUMP"; then
5055   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062     for ac_exec_ext in '' $ac_executable_extensions; do
5063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069   done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 OBJDUMP=$ac_cv_prog_OBJDUMP
5075 if test -n "$OBJDUMP"; then
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5077 $as_echo "$OBJDUMP" >&6; }
5078 else
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 fi
5085 if test -z "$ac_cv_prog_OBJDUMP"; then
5086   ac_ct_OBJDUMP=$OBJDUMP
5087   # Extract the first word of "objdump", so it can be a program name with args.
5088 set dummy objdump; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   if test -n "$ac_ct_OBJDUMP"; then
5095   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102     for ac_exec_ext in '' $ac_executable_extensions; do
5103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109   done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5115 if test -n "$ac_ct_OBJDUMP"; then
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5117 $as_echo "$ac_ct_OBJDUMP" >&6; }
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123   if test "x$ac_ct_OBJDUMP" = x; then
5124     OBJDUMP="false"
5125   else
5126     case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132     OBJDUMP=$ac_ct_OBJDUMP
5133   fi
5134 else
5135   OBJDUMP="$ac_cv_prog_OBJDUMP"
5136 fi
5137
5138 test -z "$OBJDUMP" && OBJDUMP=objdump
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5149 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5150 if ${lt_cv_deplibs_check_method+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   lt_cv_file_magic_cmd='$MAGIC_CMD'
5154 lt_cv_file_magic_test_file=
5155 lt_cv_deplibs_check_method='unknown'
5156 # Need to set the preceding variable on all platforms that support
5157 # interlibrary dependencies.
5158 # 'none' -- dependencies not supported.
5159 # `unknown' -- same as none, but documents that we really don't know.
5160 # 'pass_all' -- all dependencies passed with no checks.
5161 # 'test_compile' -- check by making test program.
5162 # 'file_magic [[regex]]' -- check by looking for files in library path
5163 # which responds to the $file_magic_cmd with a given extended regex.
5164 # If you have `file' or equivalent on your system and you're not sure
5165 # whether `pass_all' will *always* work, you probably want this one.
5166
5167 case $host_os in
5168 aix[4-9]*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 beos*)
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 bsdi[45]*)
5177   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5178   lt_cv_file_magic_cmd='/usr/bin/file -L'
5179   lt_cv_file_magic_test_file=/shlib/libc.so
5180   ;;
5181
5182 cygwin*)
5183   # func_win32_libid is a shell function defined in ltmain.sh
5184   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5185   lt_cv_file_magic_cmd='func_win32_libid'
5186   ;;
5187
5188 mingw* | pw32*)
5189   # Base MSYS/MinGW do not provide the 'file' command needed by
5190   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5191   # unless we find 'file', for example because we are cross-compiling.
5192   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5193   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5194     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5195     lt_cv_file_magic_cmd='func_win32_libid'
5196   else
5197     # Keep this pattern in sync with the one in func_win32_libid.
5198     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5199     lt_cv_file_magic_cmd='$OBJDUMP -f'
5200   fi
5201   ;;
5202
5203 cegcc*)
5204   # use the weaker test based on 'objdump'. See mingw*.
5205   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5206   lt_cv_file_magic_cmd='$OBJDUMP -f'
5207   ;;
5208
5209 darwin* | rhapsody*)
5210   lt_cv_deplibs_check_method=pass_all
5211   ;;
5212
5213 freebsd* | dragonfly*)
5214   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5215     case $host_cpu in
5216     i*86 )
5217       # Not sure whether the presence of OpenBSD here was a mistake.
5218       # Let's accept both of them until this is cleared up.
5219       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5220       lt_cv_file_magic_cmd=/usr/bin/file
5221       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5222       ;;
5223     esac
5224   else
5225     lt_cv_deplibs_check_method=pass_all
5226   fi
5227   ;;
5228
5229 gnu*)
5230   lt_cv_deplibs_check_method=pass_all
5231   ;;
5232
5233 haiku*)
5234   lt_cv_deplibs_check_method=pass_all
5235   ;;
5236
5237 hpux10.20* | hpux11*)
5238   lt_cv_file_magic_cmd=/usr/bin/file
5239   case $host_cpu in
5240   ia64*)
5241     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5242     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5243     ;;
5244   hppa*64*)
5245     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5246     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5247     ;;
5248   *)
5249     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5250     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5251     ;;
5252   esac
5253   ;;
5254
5255 interix[3-9]*)
5256   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5257   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5258   ;;
5259
5260 irix5* | irix6* | nonstopux*)
5261   case $LD in
5262   *-32|*"-32 ") libmagic=32-bit;;
5263   *-n32|*"-n32 ") libmagic=N32;;
5264   *-64|*"-64 ") libmagic=64-bit;;
5265   *) libmagic=never-match;;
5266   esac
5267   lt_cv_deplibs_check_method=pass_all
5268   ;;
5269
5270 # This must be glibc/ELF.
5271 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5272   lt_cv_deplibs_check_method=pass_all
5273   ;;
5274
5275 netbsd*)
5276   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5277     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5278   else
5279     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5280   fi
5281   ;;
5282
5283 newos6*)
5284   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5285   lt_cv_file_magic_cmd=/usr/bin/file
5286   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5287   ;;
5288
5289 *nto* | *qnx*)
5290   lt_cv_deplibs_check_method=pass_all
5291   ;;
5292
5293 openbsd*)
5294   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5295     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5296   else
5297     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5298   fi
5299   ;;
5300
5301 osf3* | osf4* | osf5*)
5302   lt_cv_deplibs_check_method=pass_all
5303   ;;
5304
5305 rdos*)
5306   lt_cv_deplibs_check_method=pass_all
5307   ;;
5308
5309 solaris*)
5310   lt_cv_deplibs_check_method=pass_all
5311   ;;
5312
5313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5314   lt_cv_deplibs_check_method=pass_all
5315   ;;
5316
5317 sysv4 | sysv4.3*)
5318   case $host_vendor in
5319   motorola)
5320     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5321     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5322     ;;
5323   ncr)
5324     lt_cv_deplibs_check_method=pass_all
5325     ;;
5326   sequent)
5327     lt_cv_file_magic_cmd='/bin/file'
5328     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5329     ;;
5330   sni)
5331     lt_cv_file_magic_cmd='/bin/file'
5332     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5333     lt_cv_file_magic_test_file=/lib/libc.so
5334     ;;
5335   siemens)
5336     lt_cv_deplibs_check_method=pass_all
5337     ;;
5338   pc)
5339     lt_cv_deplibs_check_method=pass_all
5340     ;;
5341   esac
5342   ;;
5343
5344 tpf*)
5345   lt_cv_deplibs_check_method=pass_all
5346   ;;
5347 esac
5348
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5351 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5352
5353 file_magic_glob=
5354 want_nocaseglob=no
5355 if test "$build" = "$host"; then
5356   case $host_os in
5357   mingw* | pw32*)
5358     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5359       want_nocaseglob=yes
5360     else
5361       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5362     fi
5363     ;;
5364   esac
5365 fi
5366
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
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
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
5399 else
5400   if test -n "$DLLTOOL"; then
5401   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
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
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
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; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 fi
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
5439 else
5440   if test -n "$ac_ct_DLLTOOL"; then
5441   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
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
5452     break 2
5453   fi
5454 done
5455   done
5456 IFS=$as_save_IFS
5457
5458 fi
5459 fi
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; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469   if test "x$ac_ct_DLLTOOL" = x; then
5470     DLLTOOL="false"
5471   else
5472     case $cross_compiling:$ac_tool_warned in
5473 yes:)
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 ;;
5477 esac
5478     DLLTOOL=$ac_ct_DLLTOOL
5479   fi
5480 else
5481   DLLTOOL="$ac_cv_prog_DLLTOOL"
5482 fi
5483
5484 test -z "$DLLTOOL" && DLLTOOL=dlltool
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
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
5499 else
5500   lt_cv_sharedlib_from_linklib_cmd='unknown'
5501
5502 case $host_os in
5503 cygwin* | mingw* | pw32* | cegcc*)
5504   # two different shell functions defined in ltmain.sh
5505   # decide which to use based on capabilities of $DLLTOOL
5506   case `$DLLTOOL --help 2>&1` in
5507   *--identify-strict*)
5508     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5509     ;;
5510   *)
5511     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5512     ;;
5513   esac
5514   ;;
5515 *)
5516   # fallback: assume linklib IS sharedlib
5517   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5518   ;;
5519 esac
5520
5521 fi
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
5526
5527
5528
5529
5530
5531
5532
5533
5534 if test -n "$ac_tool_prefix"; then
5535   for ac_prog in ar
5536   do
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
5543 else
5544   if test -n "$AR"; then
5545   ac_cv_prog_AR="$AR" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
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
5556     break 2
5557   fi
5558 done
5559   done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 AR=$ac_cv_prog_AR
5565 if test -n "$AR"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5567 $as_echo "$AR" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574     test -n "$AR" && break
5575   done
5576 fi
5577 if test -z "$AR"; then
5578   ac_ct_AR=$AR
5579   for ac_prog in ar
5580 do
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
5587 else
5588   if test -n "$ac_ct_AR"; then
5589   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
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
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
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; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618   test -n "$ac_ct_AR" && break
5619 done
5620
5621   if test "x$ac_ct_AR" = x; then
5622     AR="false"
5623   else
5624     case $cross_compiling:$ac_tool_warned in
5625 yes:)
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 ;;
5629 esac
5630     AR=$ac_ct_AR
5631   fi
5632 fi
5633
5634 : ${AR=ar}
5635 : ${AR_FLAGS=cru}
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
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
5651 else
5652   lt_cv_ar_at_file=no
5653    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h.  */
5655
5656 int
5657 main ()
5658 {
5659
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
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
5669   ac_status=$?
5670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671   test $ac_status = 0; }
5672       if test "$ac_status" -eq 0; then
5673         # Ensure the archiver fails upon bogus file names.
5674         rm -f conftest.$ac_objext libconftest.a
5675         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5676   (eval $lt_ar_try) 2>&5
5677   ac_status=$?
5678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679   test $ac_status = 0; }
5680         if test "$ac_status" -ne 0; then
5681           lt_cv_ar_at_file=@
5682         fi
5683       fi
5684       rm -f conftest.* libconftest.a
5685
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5691 $as_echo "$lt_cv_ar_at_file" >&6; }
5692
5693 if test "x$lt_cv_ar_at_file" = xno; then
5694   archiver_list_spec=
5695 else
5696   archiver_list_spec=$lt_cv_ar_at_file
5697 fi
5698
5699
5700
5701
5702
5703
5704
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
5712 else
5713   if test -n "$STRIP"; then
5714   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
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
5725     break 2
5726   fi
5727 done
5728   done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
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; }
5737 else
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742
5743 fi
5744 if test -z "$ac_cv_prog_STRIP"; then
5745   ac_ct_STRIP=$STRIP
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
5752 else
5753   if test -n "$ac_ct_STRIP"; then
5754   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
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
5765     break 2
5766   fi
5767 done
5768   done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
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; }
5777 else
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 fi
5781
5782   if test "x$ac_ct_STRIP" = x; then
5783     STRIP=":"
5784   else
5785     case $cross_compiling:$ac_tool_warned in
5786 yes:)
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 ;;
5790 esac
5791     STRIP=$ac_ct_STRIP
5792   fi
5793 else
5794   STRIP="$ac_cv_prog_STRIP"
5795 fi
5796
5797 test -z "$STRIP" && STRIP=:
5798
5799
5800
5801
5802
5803
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
5811 else
5812   if test -n "$RANLIB"; then
5813   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
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
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
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; }
5836 else
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 fi
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
5851 else
5852   if test -n "$ac_ct_RANLIB"; then
5853   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
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
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
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; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881   if test "x$ac_ct_RANLIB" = x; then
5882     RANLIB=":"
5883   else
5884     case $cross_compiling:$ac_tool_warned in
5885 yes:)
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 ;;
5889 esac
5890     RANLIB=$ac_ct_RANLIB
5891   fi
5892 else
5893   RANLIB="$ac_cv_prog_RANLIB"
5894 fi
5895
5896 test -z "$RANLIB" && RANLIB=:
5897
5898
5899
5900
5901
5902
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=
5907
5908 if test -n "$RANLIB"; then
5909   case $host_os in
5910   openbsd*)
5911     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5912     ;;
5913   *)
5914     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5915     ;;
5916   esac
5917   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5918 fi
5919
5920 case $host_os in
5921   darwin*)
5922     lock_old_archive_extraction=yes ;;
5923   *)
5924     lock_old_archive_extraction=no ;;
5925 esac
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 # If no C compiler was specified, use CC.
5966 LTCC=${LTCC-"$CC"}
5967
5968 # If no C compiler flags were specified, use CFLAGS.
5969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5970
5971 # Allow CC to be a program name with arguments.
5972 compiler=$CC
5973
5974
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
5980 else
5981
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?!! ;)]
5984
5985 # Character class describing NM global symbol codes.
5986 symcode='[BCDEGRST]'
5987
5988 # Regexp to match symbols that can be accessed directly from C.
5989 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5990
5991 # Define system-specific variables.
5992 case $host_os in
5993 aix*)
5994   symcode='[BCDT]'
5995   ;;
5996 cygwin* | mingw* | pw32* | cegcc*)
5997   symcode='[ABCDGISTW]'
5998   ;;
5999 hpux*)
6000   if test "$host_cpu" = ia64; then
6001     symcode='[ABCDEGRST]'
6002   fi
6003   ;;
6004 irix* | nonstopux*)
6005   symcode='[BCDEGRST]'
6006   ;;
6007 osf*)
6008   symcode='[BCDEGQRST]'
6009   ;;
6010 solaris*)
6011   symcode='[BDRT]'
6012   ;;
6013 sco3.2v5*)
6014   symcode='[DT]'
6015   ;;
6016 sysv4.2uw2*)
6017   symcode='[DT]'
6018   ;;
6019 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6020   symcode='[ABDT]'
6021   ;;
6022 sysv4)
6023   symcode='[DFNSTU]'
6024   ;;
6025 esac
6026
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]' ;;
6031 esac
6032
6033 # Transform an extracted symbol line into a proper C declaration.
6034 # Some systems (esp. on ia64) link data and code symbols differently,
6035 # so use this general approach.
6036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6037
6038 # Transform an extracted symbol line into symbol name and symbol address
6039 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6040 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6041
6042 # Handle CRLF in mingw tool chain
6043 opt_cr=
6044 case $build_os in
6045 mingw*)
6046   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6047   ;;
6048 esac
6049
6050 # Try without a prefix underscore, then with it.
6051 for ac_symprfx in "" "_"; do
6052
6053   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6054   symxfrm="\\1 $ac_symprfx\\2 \\2"
6055
6056   # Write the raw and C identifiers.
6057   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6058     # Fake it for dumpbin and say T for any non-static function
6059     # and D for any global variable.
6060     # Also find C++ and __fastcall symbols from MSVC++,
6061     # which start with @ or ?.
6062     lt_cv_sys_global_symbol_pipe="$AWK '"\
6063 "     {last_section=section; section=\$ 3};"\
6064 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6065 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6066 "     \$ 0!~/External *\|/{next};"\
6067 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6068 "     {if(hide[section]) next};"\
6069 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6070 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6071 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6072 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6073 "     ' prfx=^$ac_symprfx"
6074   else
6075     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6076   fi
6077   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6078
6079   # Check to see that the pipe works correctly.
6080   pipe_works=no
6081
6082   rm -f conftest*
6083   cat > conftest.$ac_ext <<_LT_EOF
6084 #ifdef __cplusplus
6085 extern "C" {
6086 #endif
6087 char nm_test_var;
6088 void nm_test_func(void);
6089 void nm_test_func(void){}
6090 #ifdef __cplusplus
6091 }
6092 #endif
6093 int main(){nm_test_var='a';nm_test_func();return(0);}
6094 _LT_EOF
6095
6096   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097   (eval $ac_compile) 2>&5
6098   ac_status=$?
6099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100   test $ac_status = 0; }; then
6101     # Now try to grab the symbols.
6102     nlist=conftest.nm
6103     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6104   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6105   ac_status=$?
6106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107   test $ac_status = 0; } && test -s "$nlist"; then
6108       # Try sorting and uniquifying the output.
6109       if sort "$nlist" | uniq > "$nlist"T; then
6110         mv -f "$nlist"T "$nlist"
6111       else
6112         rm -f "$nlist"T
6113       fi
6114
6115       # Make sure that we snagged all the symbols we need.
6116       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6117         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6118           cat <<_LT_EOF > conftest.$ac_ext
6119 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6120 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6121 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6122    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6123 # define LT_DLSYM_CONST
6124 #elif defined(__osf__)
6125 /* This system does not cope well with relocations in const data.  */
6126 # define LT_DLSYM_CONST
6127 #else
6128 # define LT_DLSYM_CONST const
6129 #endif
6130
6131 #ifdef __cplusplus
6132 extern "C" {
6133 #endif
6134
6135 _LT_EOF
6136           # Now generate the symbol file.
6137           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6138
6139           cat <<_LT_EOF >> conftest.$ac_ext
6140
6141 /* The mapping between symbol names and symbols.  */
6142 LT_DLSYM_CONST struct {
6143   const char *name;
6144   void       *address;
6145 }
6146 lt__PROGRAM__LTX_preloaded_symbols[] =
6147 {
6148   { "@PROGRAM@", (void *) 0 },
6149 _LT_EOF
6150           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6151           cat <<\_LT_EOF >> conftest.$ac_ext
6152   {0, (void *) 0}
6153 };
6154
6155 /* This works around a problem in FreeBSD linker */
6156 #ifdef FREEBSD_WORKAROUND
6157 static const void *lt_preloaded_setup() {
6158   return lt__PROGRAM__LTX_preloaded_symbols;
6159 }
6160 #endif
6161
6162 #ifdef __cplusplus
6163 }
6164 #endif
6165 _LT_EOF
6166           # Now try linking the two files.
6167           mv conftest.$ac_objext conftstm.$ac_objext
6168           lt_globsym_save_LIBS=$LIBS
6169           lt_globsym_save_CFLAGS=$CFLAGS
6170           LIBS="conftstm.$ac_objext"
6171           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6172           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6173   (eval $ac_link) 2>&5
6174   ac_status=$?
6175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6177             pipe_works=yes
6178           fi
6179           LIBS=$lt_globsym_save_LIBS
6180           CFLAGS=$lt_globsym_save_CFLAGS
6181         else
6182           echo "cannot find nm_test_func in $nlist" >&5
6183         fi
6184       else
6185         echo "cannot find nm_test_var in $nlist" >&5
6186       fi
6187     else
6188       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6189     fi
6190   else
6191     echo "$progname: failed program was:" >&5
6192     cat conftest.$ac_ext >&5
6193   fi
6194   rm -rf conftest* conftst*
6195
6196   # Do not use the global_symbol_pipe unless it works.
6197   if test "$pipe_works" = yes; then
6198     break
6199   else
6200     lt_cv_sys_global_symbol_pipe=
6201   fi
6202 done
6203
6204 fi
6205
6206 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6207   lt_cv_sys_global_symbol_to_cdecl=
6208 fi
6209 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6211 $as_echo "failed" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6214 $as_echo "ok" >&6; }
6215 fi
6216
6217 # Response file support.
6218 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6219   nm_file_list_spec='@'
6220 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6221   nm_file_list_spec='@'
6222 fi
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6251 $as_echo_n "checking for sysroot... " >&6; }
6252
6253 # Check whether --with-sysroot was given.
6254 if test "${with_sysroot+set}" = set; then :
6255   withval=$with_sysroot;
6256 else
6257   with_sysroot=no
6258 fi
6259
6260
6261 lt_sysroot=
6262 case ${with_sysroot} in #(
6263  yes)
6264    if test "$GCC" = yes; then
6265      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6266    fi
6267    ;; #(
6268  /*)
6269    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6270    ;; #(
6271  no|'')
6272    ;; #(
6273  *)
6274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6275 $as_echo "${with_sysroot}" >&6; }
6276    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6277    ;;
6278 esac
6279
6280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6281 $as_echo "${lt_sysroot:-no}" >&6; }
6282
6283
6284
6285
6286
6287 # Check whether --enable-libtool-lock was given.
6288 if test "${enable_libtool_lock+set}" = set; then :
6289   enableval=$enable_libtool_lock;
6290 fi
6291
6292 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6293
6294 # Some flags need to be propagated to the compiler or linker for good
6295 # libtool support.
6296 case $host in
6297 ia64-*-hpux*)
6298   # Find out which ABI we are using.
6299   echo 'int i;' > conftest.$ac_ext
6300   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6301   (eval $ac_compile) 2>&5
6302   ac_status=$?
6303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304   test $ac_status = 0; }; then
6305     case `/usr/bin/file conftest.$ac_objext` in
6306       *ELF-32*)
6307         HPUX_IA64_MODE="32"
6308         ;;
6309       *ELF-64*)
6310         HPUX_IA64_MODE="64"
6311         ;;
6312     esac
6313   fi
6314   rm -rf conftest*
6315   ;;
6316 *-*-irix6*)
6317   # Find out which ABI we are using.
6318   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6319   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320   (eval $ac_compile) 2>&5
6321   ac_status=$?
6322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323   test $ac_status = 0; }; then
6324     if test "$lt_cv_prog_gnu_ld" = yes; then
6325       case `/usr/bin/file conftest.$ac_objext` in
6326         *32-bit*)
6327           LD="${LD-ld} -melf32bsmip"
6328           ;;
6329         *N32*)
6330           LD="${LD-ld} -melf32bmipn32"
6331           ;;
6332         *64-bit*)
6333           LD="${LD-ld} -melf64bmip"
6334         ;;
6335       esac
6336     else
6337       case `/usr/bin/file conftest.$ac_objext` in
6338         *32-bit*)
6339           LD="${LD-ld} -32"
6340           ;;
6341         *N32*)
6342           LD="${LD-ld} -n32"
6343           ;;
6344         *64-bit*)
6345           LD="${LD-ld} -64"
6346           ;;
6347       esac
6348     fi
6349   fi
6350   rm -rf conftest*
6351   ;;
6352
6353 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6354 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6355   # Find out which ABI we are using.
6356   echo 'int i;' > conftest.$ac_ext
6357   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358   (eval $ac_compile) 2>&5
6359   ac_status=$?
6360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361   test $ac_status = 0; }; then
6362     case `/usr/bin/file conftest.o` in
6363       *32-bit*)
6364         case $host in
6365           x86_64-*kfreebsd*-gnu)
6366             LD="${LD-ld} -m elf_i386_fbsd"
6367             ;;
6368           x86_64-*linux*)
6369             LD="${LD-ld} -m elf_i386"
6370             ;;
6371           ppc64-*linux*|powerpc64-*linux*)
6372             LD="${LD-ld} -m elf32ppclinux"
6373             ;;
6374           s390x-*linux*)
6375             LD="${LD-ld} -m elf_s390"
6376             ;;
6377           sparc64-*linux*)
6378             LD="${LD-ld} -m elf32_sparc"
6379             ;;
6380         esac
6381         ;;
6382       *64-bit*)
6383         case $host in
6384           x86_64-*kfreebsd*-gnu)
6385             LD="${LD-ld} -m elf_x86_64_fbsd"
6386             ;;
6387           x86_64-*linux*)
6388             LD="${LD-ld} -m elf_x86_64"
6389             ;;
6390           ppc*-*linux*|powerpc*-*linux*)
6391             LD="${LD-ld} -m elf64ppc"
6392             ;;
6393           s390*-*linux*|s390*-*tpf*)
6394             LD="${LD-ld} -m elf64_s390"
6395             ;;
6396           sparc*-*linux*)
6397             LD="${LD-ld} -m elf64_sparc"
6398             ;;
6399         esac
6400         ;;
6401     esac
6402   fi
6403   rm -rf conftest*
6404   ;;
6405
6406 *-*-sco3.2v5*)
6407   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6408   SAVE_CFLAGS="$CFLAGS"
6409   CFLAGS="$CFLAGS -belf"
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6411 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6412 if ${lt_cv_cc_needs_belf+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   ac_ext=c
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6420
6421      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h.  */
6423
6424 int
6425 main ()
6426 {
6427
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_link "$LINENO"; then :
6433   lt_cv_cc_needs_belf=yes
6434 else
6435   lt_cv_cc_needs_belf=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext \
6438     conftest$ac_exeext conftest.$ac_ext
6439      ac_ext=c
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444
6445 fi
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6447 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6448   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6449     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6450     CFLAGS="$SAVE_CFLAGS"
6451   fi
6452   ;;
6453 *-*solaris*)
6454   # Find out which ABI we are using.
6455   echo 'int i;' > conftest.$ac_ext
6456   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6457   (eval $ac_compile) 2>&5
6458   ac_status=$?
6459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460   test $ac_status = 0; }; then
6461     case `/usr/bin/file conftest.o` in
6462     *64-bit*)
6463       case $lt_cv_prog_gnu_ld in
6464       yes*)
6465         case $host in
6466         i?86-*-solaris*)
6467           LD="${LD-ld} -m elf_x86_64"
6468           ;;
6469         sparc*-*-solaris*)
6470           LD="${LD-ld} -m elf64_sparc"
6471           ;;
6472         esac
6473         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6474         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6475           LD="${LD-ld}_sol2"
6476         fi
6477         ;;
6478       *)
6479         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6480           LD="${LD-ld} -64"
6481         fi
6482         ;;
6483       esac
6484       ;;
6485     esac
6486   fi
6487   rm -rf conftest*
6488   ;;
6489 esac
6490
6491 need_locks="$enable_libtool_lock"
6492
6493 if test -n "$ac_tool_prefix"; then
6494   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}mt; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$MANIFEST_TOOL"; then
6502   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_exec_ext in '' $ac_executable_extensions; do
6510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516   done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6522 if test -n "$MANIFEST_TOOL"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6524 $as_echo "$MANIFEST_TOOL" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530
6531 fi
6532 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6533   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6534   # Extract the first word of "mt", so it can be a program name with args.
6535 set dummy mt; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   if test -n "$ac_ct_MANIFEST_TOOL"; then
6542   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549     for ac_exec_ext in '' $ac_executable_extensions; do
6550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556   done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6562 if test -n "$ac_ct_MANIFEST_TOOL"; then
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6564 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6565 else
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6571     MANIFEST_TOOL=":"
6572   else
6573     case $cross_compiling:$ac_tool_warned in
6574 yes:)
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6578 esac
6579     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6580   fi
6581 else
6582   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6583 fi
6584
6585 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6587 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6588 if ${lt_cv_path_mainfest_tool+:} false; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   lt_cv_path_mainfest_tool=no
6592   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6593   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6594   cat conftest.err >&5
6595   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6596     lt_cv_path_mainfest_tool=yes
6597   fi
6598   rm -f conftest*
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6601 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6602 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6603   MANIFEST_TOOL=:
6604 fi
6605
6606
6607
6608
6609
6610
6611   case $host_os in
6612     rhapsody* | darwin*)
6613     if test -n "$ac_tool_prefix"; then
6614   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6619   $as_echo_n "(cached) " >&6
6620 else
6621   if test -n "$DSYMUTIL"; then
6622   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629     for ac_exec_ext in '' $ac_executable_extensions; do
6630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636   done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6642 if test -n "$DSYMUTIL"; then
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6644 $as_echo "$DSYMUTIL" >&6; }
6645 else
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650
6651 fi
6652 if test -z "$ac_cv_prog_DSYMUTIL"; then
6653   ac_ct_DSYMUTIL=$DSYMUTIL
6654   # Extract the first word of "dsymutil", so it can be a program name with args.
6655 set dummy dsymutil; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$ac_ct_DSYMUTIL"; then
6662   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6682 if test -n "$ac_ct_DSYMUTIL"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6684 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690   if test "x$ac_ct_DSYMUTIL" = x; then
6691     DSYMUTIL=":"
6692   else
6693     case $cross_compiling:$ac_tool_warned in
6694 yes:)
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699     DSYMUTIL=$ac_ct_DSYMUTIL
6700   fi
6701 else
6702   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6703 fi
6704
6705     if test -n "$ac_tool_prefix"; then
6706   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_NMEDIT+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$NMEDIT"; then
6714   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 NMEDIT=$ac_cv_prog_NMEDIT
6734 if test -n "$NMEDIT"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6736 $as_echo "$NMEDIT" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743 fi
6744 if test -z "$ac_cv_prog_NMEDIT"; then
6745   ac_ct_NMEDIT=$NMEDIT
6746   # Extract the first word of "nmedit", so it can be a program name with args.
6747 set dummy nmedit; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$ac_ct_NMEDIT"; then
6754   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6774 if test -n "$ac_ct_NMEDIT"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6776 $as_echo "$ac_ct_NMEDIT" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782   if test "x$ac_ct_NMEDIT" = x; then
6783     NMEDIT=":"
6784   else
6785     case $cross_compiling:$ac_tool_warned in
6786 yes:)
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6790 esac
6791     NMEDIT=$ac_ct_NMEDIT
6792   fi
6793 else
6794   NMEDIT="$ac_cv_prog_NMEDIT"
6795 fi
6796
6797     if test -n "$ac_tool_prefix"; then
6798   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_LIPO+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test -n "$LIPO"; then
6806   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 LIPO=$ac_cv_prog_LIPO
6826 if test -n "$LIPO"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6828 $as_echo "$LIPO" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_LIPO"; then
6837   ac_ct_LIPO=$LIPO
6838   # Extract the first word of "lipo", so it can be a program name with args.
6839 set dummy lipo; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$ac_ct_LIPO"; then
6846   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853     for ac_exec_ext in '' $ac_executable_extensions; do
6854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855     ac_cv_prog_ac_ct_LIPO="lipo"
6856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860   done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6866 if test -n "$ac_ct_LIPO"; then
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6868 $as_echo "$ac_ct_LIPO" >&6; }
6869 else
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874   if test "x$ac_ct_LIPO" = x; then
6875     LIPO=":"
6876   else
6877     case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883     LIPO=$ac_ct_LIPO
6884   fi
6885 else
6886   LIPO="$ac_cv_prog_LIPO"
6887 fi
6888
6889     if test -n "$ac_tool_prefix"; then
6890   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}otool; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_OTOOL+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   if test -n "$OTOOL"; then
6898   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912   done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 OTOOL=$ac_cv_prog_OTOOL
6918 if test -n "$OTOOL"; then
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6920 $as_echo "$OTOOL" >&6; }
6921 else
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926
6927 fi
6928 if test -z "$ac_cv_prog_OTOOL"; then
6929   ac_ct_OTOOL=$OTOOL
6930   # Extract the first word of "otool", so it can be a program name with args.
6931 set dummy otool; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   if test -n "$ac_ct_OTOOL"; then
6938   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945     for ac_exec_ext in '' $ac_executable_extensions; do
6946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947     ac_cv_prog_ac_ct_OTOOL="otool"
6948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952   done
6953 IFS=$as_save_IFS
6954
6955 fi
6956 fi
6957 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6958 if test -n "$ac_ct_OTOOL"; then
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6960 $as_echo "$ac_ct_OTOOL" >&6; }
6961 else
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966   if test "x$ac_ct_OTOOL" = x; then
6967     OTOOL=":"
6968   else
6969     case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975     OTOOL=$ac_ct_OTOOL
6976   fi
6977 else
6978   OTOOL="$ac_cv_prog_OTOOL"
6979 fi
6980
6981     if test -n "$ac_tool_prefix"; then
6982   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_OTOOL64+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   if test -n "$OTOOL64"; then
6990   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 OTOOL64=$ac_cv_prog_OTOOL64
7010 if test -n "$OTOOL64"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7012 $as_echo "$OTOOL64" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_OTOOL64"; then
7021   ac_ct_OTOOL64=$OTOOL64
7022   # Extract the first word of "otool64", so it can be a program name with args.
7023 set dummy otool64; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   if test -n "$ac_ct_OTOOL64"; then
7030   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037     for ac_exec_ext in '' $ac_executable_extensions; do
7038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039     ac_cv_prog_ac_ct_OTOOL64="otool64"
7040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044   done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7050 if test -n "$ac_ct_OTOOL64"; then
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7052 $as_echo "$ac_ct_OTOOL64" >&6; }
7053 else
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058   if test "x$ac_ct_OTOOL64" = x; then
7059     OTOOL64=":"
7060   else
7061     case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067     OTOOL64=$ac_ct_OTOOL64
7068   fi
7069 else
7070   OTOOL64="$ac_cv_prog_OTOOL64"
7071 fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7100 $as_echo_n "checking for -single_module linker flag... " >&6; }
7101 if ${lt_cv_apple_cc_single_mod+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   lt_cv_apple_cc_single_mod=no
7105       if test -z "${LT_MULTI_MODULE}"; then
7106         # By default we will add the -single_module flag. You can override
7107         # by either setting the environment variable LT_MULTI_MODULE
7108         # non-empty at configure time, or by adding -multi_module to the
7109         # link flags.
7110         rm -rf libconftest.dylib*
7111         echo "int foo(void){return 1;}" > conftest.c
7112         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7113 -dynamiclib -Wl,-single_module conftest.c" >&5
7114         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7115           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7116         _lt_result=$?
7117         # If there is a non-empty error log, and "single_module"
7118         # appears in it, assume the flag caused a linker warning
7119         if test -s conftest.err && $GREP single_module conftest.err; then
7120           cat conftest.err >&5
7121         # Otherwise, if the output was created with a 0 exit code from
7122         # the compiler, it worked.
7123         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7124           lt_cv_apple_cc_single_mod=yes
7125         else
7126           cat conftest.err >&5
7127         fi
7128         rm -rf libconftest.dylib*
7129         rm -f conftest.*
7130       fi
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7133 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7134
7135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7136 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7137 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7138   $as_echo_n "(cached) " >&6
7139 else
7140   lt_cv_ld_exported_symbols_list=no
7141       save_LDFLAGS=$LDFLAGS
7142       echo "_main" > conftest.sym
7143       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7144       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146
7147 int
7148 main ()
7149 {
7150
7151   ;
7152   return 0;
7153 }
7154 _ACEOF
7155 if ac_fn_c_try_link "$LINENO"; then :
7156   lt_cv_ld_exported_symbols_list=yes
7157 else
7158   lt_cv_ld_exported_symbols_list=no
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext \
7161     conftest$ac_exeext conftest.$ac_ext
7162         LDFLAGS="$save_LDFLAGS"
7163
7164 fi
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7166 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7167
7168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7169 $as_echo_n "checking for -force_load linker flag... " >&6; }
7170 if ${lt_cv_ld_force_load+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   lt_cv_ld_force_load=no
7174       cat > conftest.c << _LT_EOF
7175 int forced_loaded() { return 2;}
7176 _LT_EOF
7177       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7178       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7179       echo "$AR cru libconftest.a conftest.o" >&5
7180       $AR cru libconftest.a conftest.o 2>&5
7181       echo "$RANLIB libconftest.a" >&5
7182       $RANLIB libconftest.a 2>&5
7183       cat > conftest.c << _LT_EOF
7184 int main() { return 0;}
7185 _LT_EOF
7186       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7187       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7188       _lt_result=$?
7189       if test -s conftest.err && $GREP force_load conftest.err; then
7190         cat conftest.err >&5
7191       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7192         lt_cv_ld_force_load=yes
7193       else
7194         cat conftest.err >&5
7195       fi
7196         rm -f conftest.err libconftest.a conftest conftest.c
7197         rm -rf conftest.dSYM
7198
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7201 $as_echo "$lt_cv_ld_force_load" >&6; }
7202     case $host_os in
7203     rhapsody* | darwin1.[012])
7204       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7205     darwin1.*)
7206       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7207     darwin*) # darwin 5.x on
7208       # if running on 10.5 or later, the deployment target defaults
7209       # to the OS version, if on x86, and 10.4, the deployment
7210       # target defaults to 10.4. Don't you love it?
7211       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7212         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7213           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7214         10.[012]*)
7215           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7216         10.*)
7217           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7218       esac
7219     ;;
7220   esac
7221     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7222       _lt_dar_single_mod='$single_module'
7223     fi
7224     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7225       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7226     else
7227       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7228     fi
7229     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7230       _lt_dsymutil='~$DSYMUTIL $lib || :'
7231     else
7232       _lt_dsymutil=
7233     fi
7234     ;;
7235   esac
7236
7237 ac_ext=c
7238 ac_cpp='$CPP $CPPFLAGS'
7239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7244 # On Suns, sometimes $CPP names a directory.
7245 if test -n "$CPP" && test -d "$CPP"; then
7246   CPP=
7247 fi
7248 if test -z "$CPP"; then
7249   if ${ac_cv_prog_CPP+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252       # Double quotes because CPP needs to be expanded
7253     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7254     do
7255       ac_preproc_ok=false
7256 for ac_c_preproc_warn_flag in '' yes
7257 do
7258   # Use a header file that comes with gcc, so configuring glibc
7259   # with a fresh cross-compiler works.
7260   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7261   # <limits.h> exists even on freestanding compilers.
7262   # On the NeXT, cc -E runs the code through the compiler's parser,
7263   # not just through cpp. "Syntax error" is here to catch this case.
7264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266 #ifdef __STDC__
7267 # include <limits.h>
7268 #else
7269 # include <assert.h>
7270 #endif
7271                      Syntax error
7272 _ACEOF
7273 if ac_fn_c_try_cpp "$LINENO"; then :
7274
7275 else
7276   # Broken: fails on valid input.
7277 continue
7278 fi
7279 rm -f conftest.err conftest.i conftest.$ac_ext
7280
7281   # OK, works on sane cases.  Now check whether nonexistent headers
7282   # can be detected and how.
7283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h.  */
7285 #include <ac_nonexistent.h>
7286 _ACEOF
7287 if ac_fn_c_try_cpp "$LINENO"; then :
7288   # Broken: success on invalid input.
7289 continue
7290 else
7291   # Passes both tests.
7292 ac_preproc_ok=:
7293 break
7294 fi
7295 rm -f conftest.err conftest.i conftest.$ac_ext
7296
7297 done
7298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7299 rm -f conftest.i conftest.err conftest.$ac_ext
7300 if $ac_preproc_ok; then :
7301   break
7302 fi
7303
7304     done
7305     ac_cv_prog_CPP=$CPP
7306
7307 fi
7308   CPP=$ac_cv_prog_CPP
7309 else
7310   ac_cv_prog_CPP=$CPP
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7313 $as_echo "$CPP" >&6; }
7314 ac_preproc_ok=false
7315 for ac_c_preproc_warn_flag in '' yes
7316 do
7317   # Use a header file that comes with gcc, so configuring glibc
7318   # with a fresh cross-compiler works.
7319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7320   # <limits.h> exists even on freestanding compilers.
7321   # On the NeXT, cc -E runs the code through the compiler's parser,
7322   # not just through cpp. "Syntax error" is here to catch this case.
7323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h.  */
7325 #ifdef __STDC__
7326 # include <limits.h>
7327 #else
7328 # include <assert.h>
7329 #endif
7330                      Syntax error
7331 _ACEOF
7332 if ac_fn_c_try_cpp "$LINENO"; then :
7333
7334 else
7335   # Broken: fails on valid input.
7336 continue
7337 fi
7338 rm -f conftest.err conftest.i conftest.$ac_ext
7339
7340   # OK, works on sane cases.  Now check whether nonexistent headers
7341   # can be detected and how.
7342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344 #include <ac_nonexistent.h>
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7347   # Broken: success on invalid input.
7348 continue
7349 else
7350   # Passes both tests.
7351 ac_preproc_ok=:
7352 break
7353 fi
7354 rm -f conftest.err conftest.i conftest.$ac_ext
7355
7356 done
7357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7358 rm -f conftest.i conftest.err conftest.$ac_ext
7359 if $ac_preproc_ok; then :
7360
7361 else
7362   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7365 See \`config.log' for more details" "$LINENO" 5; }
7366 fi
7367
7368 ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7376 $as_echo_n "checking for ANSI C header files... " >&6; }
7377 if ${ac_cv_header_stdc+:} false; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h.  */
7382 #include <stdlib.h>
7383 #include <stdarg.h>
7384 #include <string.h>
7385 #include <float.h>
7386
7387 int
7388 main ()
7389 {
7390
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 if ac_fn_c_try_compile "$LINENO"; then :
7396   ac_cv_header_stdc=yes
7397 else
7398   ac_cv_header_stdc=no
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401
7402 if test $ac_cv_header_stdc = yes; then
7403   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h.  */
7406 #include <string.h>
7407
7408 _ACEOF
7409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7410   $EGREP "memchr" >/dev/null 2>&1; then :
7411
7412 else
7413   ac_cv_header_stdc=no
7414 fi
7415 rm -f conftest*
7416
7417 fi
7418
7419 if test $ac_cv_header_stdc = yes; then
7420   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h.  */
7423 #include <stdlib.h>
7424
7425 _ACEOF
7426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7427   $EGREP "free" >/dev/null 2>&1; then :
7428
7429 else
7430   ac_cv_header_stdc=no
7431 fi
7432 rm -f conftest*
7433
7434 fi
7435
7436 if test $ac_cv_header_stdc = yes; then
7437   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7438   if test "$cross_compiling" = yes; then :
7439   :
7440 else
7441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h.  */
7443 #include <ctype.h>
7444 #include <stdlib.h>
7445 #if ((' ' & 0x0FF) == 0x020)
7446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7448 #else
7449 # define ISLOWER(c) \
7450                    (('a' <= (c) && (c) <= 'i') \
7451                      || ('j' <= (c) && (c) <= 'r') \
7452                      || ('s' <= (c) && (c) <= 'z'))
7453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7454 #endif
7455
7456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7457 int
7458 main ()
7459 {
7460   int i;
7461   for (i = 0; i < 256; i++)
7462     if (XOR (islower (i), ISLOWER (i))
7463         || toupper (i) != TOUPPER (i))
7464       return 2;
7465   return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_run "$LINENO"; then :
7469
7470 else
7471   ac_cv_header_stdc=no
7472 fi
7473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7474   conftest.$ac_objext conftest.beam conftest.$ac_ext
7475 fi
7476
7477 fi
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7480 $as_echo "$ac_cv_header_stdc" >&6; }
7481 if test $ac_cv_header_stdc = yes; then
7482
7483 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7484
7485 fi
7486
7487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7488 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7489                   inttypes.h stdint.h unistd.h
7490 do :
7491   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7492 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7493 "
7494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7495   cat >>confdefs.h <<_ACEOF
7496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7497 _ACEOF
7498
7499 fi
7500
7501 done
7502
7503
7504 for ac_header in dlfcn.h
7505 do :
7506   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7507 "
7508 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7509   cat >>confdefs.h <<_ACEOF
7510 #define HAVE_DLFCN_H 1
7511 _ACEOF
7512
7513 fi
7514
7515 done
7516
7517
7518
7519
7520
7521 # Set options
7522
7523
7524
7525         enable_dlopen=no
7526
7527
7528   enable_win32_dll=no
7529
7530
7531             # Check whether --enable-shared was given.
7532 if test "${enable_shared+set}" = set; then :
7533   enableval=$enable_shared; p=${PACKAGE-default}
7534     case $enableval in
7535     yes) enable_shared=yes ;;
7536     no) enable_shared=no ;;
7537     *)
7538       enable_shared=no
7539       # Look at the argument we got.  We use all the common list separators.
7540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7541       for pkg in $enableval; do
7542         IFS="$lt_save_ifs"
7543         if test "X$pkg" = "X$p"; then
7544           enable_shared=yes
7545         fi
7546       done
7547       IFS="$lt_save_ifs"
7548       ;;
7549     esac
7550 else
7551   enable_shared=yes
7552 fi
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564 # Check whether --with-pic was given.
7565 if test "${with_pic+set}" = set; then :
7566   withval=$with_pic; lt_p=${PACKAGE-default}
7567     case $withval in
7568     yes|no) pic_mode=$withval ;;
7569     *)
7570       pic_mode=default
7571       # Look at the argument we got.  We use all the common list separators.
7572       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7573       for lt_pkg in $withval; do
7574         IFS="$lt_save_ifs"
7575         if test "X$lt_pkg" = "X$lt_p"; then
7576           pic_mode=yes
7577         fi
7578       done
7579       IFS="$lt_save_ifs"
7580       ;;
7581     esac
7582 else
7583   pic_mode=default
7584 fi
7585
7586
7587 test -z "$pic_mode" && pic_mode=default
7588
7589
7590
7591
7592
7593
7594
7595   # Check whether --enable-fast-install was given.
7596 if test "${enable_fast_install+set}" = set; then :
7597   enableval=$enable_fast_install; p=${PACKAGE-default}
7598     case $enableval in
7599     yes) enable_fast_install=yes ;;
7600     no) enable_fast_install=no ;;
7601     *)
7602       enable_fast_install=no
7603       # Look at the argument we got.  We use all the common list separators.
7604       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7605       for pkg in $enableval; do
7606         IFS="$lt_save_ifs"
7607         if test "X$pkg" = "X$p"; then
7608           enable_fast_install=yes
7609         fi
7610       done
7611       IFS="$lt_save_ifs"
7612       ;;
7613     esac
7614 else
7615   enable_fast_install=yes
7616 fi
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 # This can be used to rebuild libtool when needed
7629 LIBTOOL_DEPS="$ltmain"
7630
7631 # Always use our own libtool.
7632 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663 test -z "$LN_S" && LN_S="ln -s"
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 if test -n "${ZSH_VERSION+set}" ; then
7679    setopt NO_GLOB_SUBST
7680 fi
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7683 $as_echo_n "checking for objdir... " >&6; }
7684 if ${lt_cv_objdir+:} false; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687   rm -f .libs 2>/dev/null
7688 mkdir .libs 2>/dev/null
7689 if test -d .libs; then
7690   lt_cv_objdir=.libs
7691 else
7692   # MS-DOS does not allow filenames that begin with a dot.
7693   lt_cv_objdir=_libs
7694 fi
7695 rmdir .libs 2>/dev/null
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7698 $as_echo "$lt_cv_objdir" >&6; }
7699 objdir=$lt_cv_objdir
7700
7701
7702
7703
7704
7705 cat >>confdefs.h <<_ACEOF
7706 #define LT_OBJDIR "$lt_cv_objdir/"
7707 _ACEOF
7708
7709
7710
7711
7712 case $host_os in
7713 aix3*)
7714   # AIX sometimes has problems with the GCC collect2 program.  For some
7715   # reason, if we set the COLLECT_NAMES environment variable, the problems
7716   # vanish in a puff of smoke.
7717   if test "X${COLLECT_NAMES+set}" != Xset; then
7718     COLLECT_NAMES=
7719     export COLLECT_NAMES
7720   fi
7721   ;;
7722 esac
7723
7724 # Global variables:
7725 ofile=libtool
7726 can_build_shared=yes
7727
7728 # All known linkers require a `.a' archive for static linking (except MSVC,
7729 # which needs '.lib').
7730 libext=a
7731
7732 with_gnu_ld="$lt_cv_prog_gnu_ld"
7733
7734 old_CC="$CC"
7735 old_CFLAGS="$CFLAGS"
7736
7737 # Set sane defaults for various variables
7738 test -z "$CC" && CC=cc
7739 test -z "$LTCC" && LTCC=$CC
7740 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7741 test -z "$LD" && LD=ld
7742 test -z "$ac_objext" && ac_objext=o
7743
7744 for cc_temp in $compiler""; do
7745   case $cc_temp in
7746     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7747     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7748     \-*) ;;
7749     *) break;;
7750   esac
7751 done
7752 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7753
7754
7755 # Only perform the check for file, if the check method requires it
7756 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7757 case $deplibs_check_method in
7758 file_magic*)
7759   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7761 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7762 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   case $MAGIC_CMD in
7766 [\\/*] |  ?:[\\/]*)
7767   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7768   ;;
7769 *)
7770   lt_save_MAGIC_CMD="$MAGIC_CMD"
7771   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7772   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7773   for ac_dir in $ac_dummy; do
7774     IFS="$lt_save_ifs"
7775     test -z "$ac_dir" && ac_dir=.
7776     if test -f $ac_dir/${ac_tool_prefix}file; then
7777       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7778       if test -n "$file_magic_test_file"; then
7779         case $deplibs_check_method in
7780         "file_magic "*)
7781           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7782           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7783           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7784             $EGREP "$file_magic_regex" > /dev/null; then
7785             :
7786           else
7787             cat <<_LT_EOF 1>&2
7788
7789 *** Warning: the command libtool uses to detect shared libraries,
7790 *** $file_magic_cmd, produces output that libtool cannot recognize.
7791 *** The result is that libtool may fail to recognize shared libraries
7792 *** as such.  This will affect the creation of libtool libraries that
7793 *** depend on shared libraries, but programs linked with such libtool
7794 *** libraries will work regardless of this problem.  Nevertheless, you
7795 *** may want to report the problem to your system manager and/or to
7796 *** bug-libtool@gnu.org
7797
7798 _LT_EOF
7799           fi ;;
7800         esac
7801       fi
7802       break
7803     fi
7804   done
7805   IFS="$lt_save_ifs"
7806   MAGIC_CMD="$lt_save_MAGIC_CMD"
7807   ;;
7808 esac
7809 fi
7810
7811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7812 if test -n "$MAGIC_CMD"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7814 $as_echo "$MAGIC_CMD" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821
7822
7823
7824 if test -z "$lt_cv_path_MAGIC_CMD"; then
7825   if test -n "$ac_tool_prefix"; then
7826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7827 $as_echo_n "checking for file... " >&6; }
7828 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   case $MAGIC_CMD in
7832 [\\/*] |  ?:[\\/]*)
7833   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7834   ;;
7835 *)
7836   lt_save_MAGIC_CMD="$MAGIC_CMD"
7837   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7838   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7839   for ac_dir in $ac_dummy; do
7840     IFS="$lt_save_ifs"
7841     test -z "$ac_dir" && ac_dir=.
7842     if test -f $ac_dir/file; then
7843       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7844       if test -n "$file_magic_test_file"; then
7845         case $deplibs_check_method in
7846         "file_magic "*)
7847           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7848           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7849           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7850             $EGREP "$file_magic_regex" > /dev/null; then
7851             :
7852           else
7853             cat <<_LT_EOF 1>&2
7854
7855 *** Warning: the command libtool uses to detect shared libraries,
7856 *** $file_magic_cmd, produces output that libtool cannot recognize.
7857 *** The result is that libtool may fail to recognize shared libraries
7858 *** as such.  This will affect the creation of libtool libraries that
7859 *** depend on shared libraries, but programs linked with such libtool
7860 *** libraries will work regardless of this problem.  Nevertheless, you
7861 *** may want to report the problem to your system manager and/or to
7862 *** bug-libtool@gnu.org
7863
7864 _LT_EOF
7865           fi ;;
7866         esac
7867       fi
7868       break
7869     fi
7870   done
7871   IFS="$lt_save_ifs"
7872   MAGIC_CMD="$lt_save_MAGIC_CMD"
7873   ;;
7874 esac
7875 fi
7876
7877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7878 if test -n "$MAGIC_CMD"; then
7879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7880 $as_echo "$MAGIC_CMD" >&6; }
7881 else
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7884 fi
7885
7886
7887   else
7888     MAGIC_CMD=:
7889   fi
7890 fi
7891
7892   fi
7893   ;;
7894 esac
7895
7896 # Use C for the default configuration in the libtool script
7897
7898 lt_save_CC="$CC"
7899 ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906 # Source file extension for C test sources.
7907 ac_ext=c
7908
7909 # Object file extension for compiled C test sources.
7910 objext=o
7911 objext=$objext
7912
7913 # Code to be used in simple compile tests
7914 lt_simple_compile_test_code="int some_variable = 0;"
7915
7916 # Code to be used in simple link tests
7917 lt_simple_link_test_code='int main(){return(0);}'
7918
7919
7920
7921
7922
7923
7924
7925 # If no C compiler was specified, use CC.
7926 LTCC=${LTCC-"$CC"}
7927
7928 # If no C compiler flags were specified, use CFLAGS.
7929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7930
7931 # Allow CC to be a program name with arguments.
7932 compiler=$CC
7933
7934 # Save the default compiler, since it gets overwritten when the other
7935 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7936 compiler_DEFAULT=$CC
7937
7938 # save warnings/boilerplate of simple test code
7939 ac_outfile=conftest.$ac_objext
7940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7942 _lt_compiler_boilerplate=`cat conftest.err`
7943 $RM conftest*
7944
7945 ac_outfile=conftest.$ac_objext
7946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7948 _lt_linker_boilerplate=`cat conftest.err`
7949 $RM -r conftest*
7950
7951
7952 ## CAVEAT EMPTOR:
7953 ## There is no encapsulation within the following macros, do not change
7954 ## the running order or otherwise move them around unless you know exactly
7955 ## what you are doing...
7956 if test -n "$compiler"; then
7957
7958 lt_prog_compiler_no_builtin_flag=
7959
7960 if test "$GCC" = yes; then
7961   case $cc_basename in
7962   nvcc*)
7963     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7964   *)
7965     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7966   esac
7967
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7969 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7970 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   lt_cv_prog_compiler_rtti_exceptions=no
7974    ac_outfile=conftest.$ac_objext
7975    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976    lt_compiler_flag="-fno-rtti -fno-exceptions"
7977    # Insert the option either (1) after the last *FLAGS variable, or
7978    # (2) before a word containing "conftest.", or (3) at the end.
7979    # Note that $ac_compile itself does not contain backslashes and begins
7980    # with a dollar sign (not a hyphen), so the echo should work correctly.
7981    # The option is referenced via a variable to avoid confusing sed.
7982    lt_compile=`echo "$ac_compile" | $SED \
7983    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985    -e 's:$: $lt_compiler_flag:'`
7986    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7987    (eval "$lt_compile" 2>conftest.err)
7988    ac_status=$?
7989    cat conftest.err >&5
7990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991    if (exit $ac_status) && test -s "$ac_outfile"; then
7992      # The compiler can only warn and ignore the option if not recognized
7993      # So say no if there are warnings other than the usual output.
7994      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7995      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7997        lt_cv_prog_compiler_rtti_exceptions=yes
7998      fi
7999    fi
8000    $RM conftest*
8001
8002 fi
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8004 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8005
8006 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8007     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8008 else
8009     :
8010 fi
8011
8012 fi
8013
8014
8015
8016
8017
8018
8019   lt_prog_compiler_wl=
8020 lt_prog_compiler_pic=
8021 lt_prog_compiler_static=
8022
8023
8024   if test "$GCC" = yes; then
8025     lt_prog_compiler_wl='-Wl,'
8026     lt_prog_compiler_static='-static'
8027
8028     case $host_os in
8029       aix*)
8030       # All AIX code is PIC.
8031       if test "$host_cpu" = ia64; then
8032         # AIX 5 now supports IA64 processor
8033         lt_prog_compiler_static='-Bstatic'
8034       fi
8035       ;;
8036
8037     amigaos*)
8038       case $host_cpu in
8039       powerpc)
8040             # see comment about AmigaOS4 .so support
8041             lt_prog_compiler_pic='-fPIC'
8042         ;;
8043       m68k)
8044             # FIXME: we need at least 68020 code to build shared libraries, but
8045             # adding the `-m68020' flag to GCC prevents building anything better,
8046             # like `-m68040'.
8047             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8048         ;;
8049       esac
8050       ;;
8051
8052     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8053       # PIC is the default for these OSes.
8054       ;;
8055
8056     mingw* | cygwin* | pw32* | os2* | cegcc*)
8057       # This hack is so that the source file can tell whether it is being
8058       # built for inclusion in a dll (and should export symbols for example).
8059       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8060       # (--disable-auto-import) libraries
8061       lt_prog_compiler_pic='-DDLL_EXPORT'
8062       ;;
8063
8064     darwin* | rhapsody*)
8065       # PIC is the default on this platform
8066       # Common symbols not allowed in MH_DYLIB files
8067       lt_prog_compiler_pic='-fno-common'
8068       ;;
8069
8070     haiku*)
8071       # PIC is the default for Haiku.
8072       # The "-static" flag exists, but is broken.
8073       lt_prog_compiler_static=
8074       ;;
8075
8076     hpux*)
8077       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8079       # sets the default TLS model and affects inlining.
8080       case $host_cpu in
8081       hppa*64*)
8082         # +Z the default
8083         ;;
8084       *)
8085         lt_prog_compiler_pic='-fPIC'
8086         ;;
8087       esac
8088       ;;
8089
8090     interix[3-9]*)
8091       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092       # Instead, we relocate shared libraries at runtime.
8093       ;;
8094
8095     msdosdjgpp*)
8096       # Just because we use GCC doesn't mean we suddenly get shared libraries
8097       # on systems that don't support them.
8098       lt_prog_compiler_can_build_shared=no
8099       enable_shared=no
8100       ;;
8101
8102     *nto* | *qnx*)
8103       # QNX uses GNU C++, but need to define -shared option too, otherwise
8104       # it will coredump.
8105       lt_prog_compiler_pic='-fPIC -shared'
8106       ;;
8107
8108     sysv4*MP*)
8109       if test -d /usr/nec; then
8110         lt_prog_compiler_pic=-Kconform_pic
8111       fi
8112       ;;
8113
8114     *)
8115       lt_prog_compiler_pic='-fPIC'
8116       ;;
8117     esac
8118
8119     case $cc_basename in
8120     nvcc*) # Cuda Compiler Driver 2.2
8121       lt_prog_compiler_wl='-Xlinker '
8122       if test -n "$lt_prog_compiler_pic"; then
8123         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8124       fi
8125       ;;
8126     esac
8127   else
8128     # PORTME Check for flag to pass linker flags through the system compiler.
8129     case $host_os in
8130     aix*)
8131       lt_prog_compiler_wl='-Wl,'
8132       if test "$host_cpu" = ia64; then
8133         # AIX 5 now supports IA64 processor
8134         lt_prog_compiler_static='-Bstatic'
8135       else
8136         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8137       fi
8138       ;;
8139
8140     mingw* | cygwin* | pw32* | os2* | cegcc*)
8141       # This hack is so that the source file can tell whether it is being
8142       # built for inclusion in a dll (and should export symbols for example).
8143       lt_prog_compiler_pic='-DDLL_EXPORT'
8144       ;;
8145
8146     hpux9* | hpux10* | hpux11*)
8147       lt_prog_compiler_wl='-Wl,'
8148       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8149       # not for PA HP-UX.
8150       case $host_cpu in
8151       hppa*64*|ia64*)
8152         # +Z the default
8153         ;;
8154       *)
8155         lt_prog_compiler_pic='+Z'
8156         ;;
8157       esac
8158       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8159       lt_prog_compiler_static='${wl}-a ${wl}archive'
8160       ;;
8161
8162     irix5* | irix6* | nonstopux*)
8163       lt_prog_compiler_wl='-Wl,'
8164       # PIC (with -KPIC) is the default.
8165       lt_prog_compiler_static='-non_shared'
8166       ;;
8167
8168     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8169       case $cc_basename in
8170       # old Intel for x86_64 which still supported -KPIC.
8171       ecc*)
8172         lt_prog_compiler_wl='-Wl,'
8173         lt_prog_compiler_pic='-KPIC'
8174         lt_prog_compiler_static='-static'
8175         ;;
8176       # icc used to be incompatible with GCC.
8177       # ICC 10 doesn't accept -KPIC any more.
8178       icc* | ifort*)
8179         lt_prog_compiler_wl='-Wl,'
8180         lt_prog_compiler_pic='-fPIC'
8181         lt_prog_compiler_static='-static'
8182         ;;
8183       # Lahey Fortran 8.1.
8184       lf95*)
8185         lt_prog_compiler_wl='-Wl,'
8186         lt_prog_compiler_pic='--shared'
8187         lt_prog_compiler_static='--static'
8188         ;;
8189       nagfor*)
8190         # NAG Fortran compiler
8191         lt_prog_compiler_wl='-Wl,-Wl,,'
8192         lt_prog_compiler_pic='-PIC'
8193         lt_prog_compiler_static='-Bstatic'
8194         ;;
8195       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8196         # Portland Group compilers (*not* the Pentium gcc compiler,
8197         # which looks to be a dead project)
8198         lt_prog_compiler_wl='-Wl,'
8199         lt_prog_compiler_pic='-fpic'
8200         lt_prog_compiler_static='-Bstatic'
8201         ;;
8202       ccc*)
8203         lt_prog_compiler_wl='-Wl,'
8204         # All Alpha code is PIC.
8205         lt_prog_compiler_static='-non_shared'
8206         ;;
8207       xl* | bgxl* | bgf* | mpixl*)
8208         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8209         lt_prog_compiler_wl='-Wl,'
8210         lt_prog_compiler_pic='-qpic'
8211         lt_prog_compiler_static='-qstaticlink'
8212         ;;
8213       *)
8214         case `$CC -V 2>&1 | sed 5q` in
8215         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8216           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8217           lt_prog_compiler_pic='-KPIC'
8218           lt_prog_compiler_static='-Bstatic'
8219           lt_prog_compiler_wl=''
8220           ;;
8221         *Sun\ F* | *Sun*Fortran*)
8222           lt_prog_compiler_pic='-KPIC'
8223           lt_prog_compiler_static='-Bstatic'
8224           lt_prog_compiler_wl='-Qoption ld '
8225           ;;
8226         *Sun\ C*)
8227           # Sun C 5.9
8228           lt_prog_compiler_pic='-KPIC'
8229           lt_prog_compiler_static='-Bstatic'
8230           lt_prog_compiler_wl='-Wl,'
8231           ;;
8232         *Intel*\ [CF]*Compiler*)
8233           lt_prog_compiler_wl='-Wl,'
8234           lt_prog_compiler_pic='-fPIC'
8235           lt_prog_compiler_static='-static'
8236           ;;
8237         *Portland\ Group*)
8238           lt_prog_compiler_wl='-Wl,'
8239           lt_prog_compiler_pic='-fpic'
8240           lt_prog_compiler_static='-Bstatic'
8241           ;;
8242         esac
8243         ;;
8244       esac
8245       ;;
8246
8247     newsos6)
8248       lt_prog_compiler_pic='-KPIC'
8249       lt_prog_compiler_static='-Bstatic'
8250       ;;
8251
8252     *nto* | *qnx*)
8253       # QNX uses GNU C++, but need to define -shared option too, otherwise
8254       # it will coredump.
8255       lt_prog_compiler_pic='-fPIC -shared'
8256       ;;
8257
8258     osf3* | osf4* | osf5*)
8259       lt_prog_compiler_wl='-Wl,'
8260       # All OSF/1 code is PIC.
8261       lt_prog_compiler_static='-non_shared'
8262       ;;
8263
8264     rdos*)
8265       lt_prog_compiler_static='-non_shared'
8266       ;;
8267
8268     solaris*)
8269       lt_prog_compiler_pic='-KPIC'
8270       lt_prog_compiler_static='-Bstatic'
8271       case $cc_basename in
8272       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8273         lt_prog_compiler_wl='-Qoption ld ';;
8274       *)
8275         lt_prog_compiler_wl='-Wl,';;
8276       esac
8277       ;;
8278
8279     sunos4*)
8280       lt_prog_compiler_wl='-Qoption ld '
8281       lt_prog_compiler_pic='-PIC'
8282       lt_prog_compiler_static='-Bstatic'
8283       ;;
8284
8285     sysv4 | sysv4.2uw2* | sysv4.3*)
8286       lt_prog_compiler_wl='-Wl,'
8287       lt_prog_compiler_pic='-KPIC'
8288       lt_prog_compiler_static='-Bstatic'
8289       ;;
8290
8291     sysv4*MP*)
8292       if test -d /usr/nec ;then
8293         lt_prog_compiler_pic='-Kconform_pic'
8294         lt_prog_compiler_static='-Bstatic'
8295       fi
8296       ;;
8297
8298     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8299       lt_prog_compiler_wl='-Wl,'
8300       lt_prog_compiler_pic='-KPIC'
8301       lt_prog_compiler_static='-Bstatic'
8302       ;;
8303
8304     unicos*)
8305       lt_prog_compiler_wl='-Wl,'
8306       lt_prog_compiler_can_build_shared=no
8307       ;;
8308
8309     uts4*)
8310       lt_prog_compiler_pic='-pic'
8311       lt_prog_compiler_static='-Bstatic'
8312       ;;
8313
8314     *)
8315       lt_prog_compiler_can_build_shared=no
8316       ;;
8317     esac
8318   fi
8319
8320 case $host_os in
8321   # For platforms which do not support PIC, -DPIC is meaningless:
8322   *djgpp*)
8323     lt_prog_compiler_pic=
8324     ;;
8325   *)
8326     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8327     ;;
8328 esac
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8331 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8332 if ${lt_cv_prog_compiler_pic+:} false; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8338 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8339 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8340
8341 #
8342 # Check to make sure the PIC flag actually works.
8343 #
8344 if test -n "$lt_prog_compiler_pic"; then
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8346 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8347 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8348   $as_echo_n "(cached) " >&6
8349 else
8350   lt_cv_prog_compiler_pic_works=no
8351    ac_outfile=conftest.$ac_objext
8352    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8353    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8354    # Insert the option either (1) after the last *FLAGS variable, or
8355    # (2) before a word containing "conftest.", or (3) at the end.
8356    # Note that $ac_compile itself does not contain backslashes and begins
8357    # with a dollar sign (not a hyphen), so the echo should work correctly.
8358    # The option is referenced via a variable to avoid confusing sed.
8359    lt_compile=`echo "$ac_compile" | $SED \
8360    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8362    -e 's:$: $lt_compiler_flag:'`
8363    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8364    (eval "$lt_compile" 2>conftest.err)
8365    ac_status=$?
8366    cat conftest.err >&5
8367    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368    if (exit $ac_status) && test -s "$ac_outfile"; then
8369      # The compiler can only warn and ignore the option if not recognized
8370      # So say no if there are warnings other than the usual output.
8371      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8372      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8373      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8374        lt_cv_prog_compiler_pic_works=yes
8375      fi
8376    fi
8377    $RM conftest*
8378
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8381 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8382
8383 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8384     case $lt_prog_compiler_pic in
8385      "" | " "*) ;;
8386      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8387      esac
8388 else
8389     lt_prog_compiler_pic=
8390      lt_prog_compiler_can_build_shared=no
8391 fi
8392
8393 fi
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 #
8406 # Check to make sure the static flag actually works.
8407 #
8408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8410 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8411 if ${lt_cv_prog_compiler_static_works+:} false; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   lt_cv_prog_compiler_static_works=no
8415    save_LDFLAGS="$LDFLAGS"
8416    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8417    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8418    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8419      # The linker can only warn and ignore the option if not recognized
8420      # So say no if there are warnings
8421      if test -s conftest.err; then
8422        # Append any errors to the config.log.
8423        cat conftest.err 1>&5
8424        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8425        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8426        if diff conftest.exp conftest.er2 >/dev/null; then
8427          lt_cv_prog_compiler_static_works=yes
8428        fi
8429      else
8430        lt_cv_prog_compiler_static_works=yes
8431      fi
8432    fi
8433    $RM -r conftest*
8434    LDFLAGS="$save_LDFLAGS"
8435
8436 fi
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8438 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8439
8440 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8441     :
8442 else
8443     lt_prog_compiler_static=
8444 fi
8445
8446
8447
8448
8449
8450
8451
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8454 if ${lt_cv_prog_compiler_c_o+:} false; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   lt_cv_prog_compiler_c_o=no
8458    $RM -r conftest 2>/dev/null
8459    mkdir conftest
8460    cd conftest
8461    mkdir out
8462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8463
8464    lt_compiler_flag="-o out/conftest2.$ac_objext"
8465    # Insert the option either (1) after the last *FLAGS variable, or
8466    # (2) before a word containing "conftest.", or (3) at the end.
8467    # Note that $ac_compile itself does not contain backslashes and begins
8468    # with a dollar sign (not a hyphen), so the echo should work correctly.
8469    lt_compile=`echo "$ac_compile" | $SED \
8470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8472    -e 's:$: $lt_compiler_flag:'`
8473    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8474    (eval "$lt_compile" 2>out/conftest.err)
8475    ac_status=$?
8476    cat out/conftest.err >&5
8477    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8479    then
8480      # The compiler can only warn and ignore the option if not recognized
8481      # So say no if there are warnings
8482      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8483      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8484      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8485        lt_cv_prog_compiler_c_o=yes
8486      fi
8487    fi
8488    chmod u+w . 2>&5
8489    $RM conftest*
8490    # SGI C++ compiler will create directory out/ii_files/ for
8491    # template instantiation
8492    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8493    $RM out/* && rmdir out
8494    cd ..
8495    $RM -r conftest
8496    $RM conftest*
8497
8498 fi
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8501
8502
8503
8504
8505
8506
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8509 if ${lt_cv_prog_compiler_c_o+:} false; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   lt_cv_prog_compiler_c_o=no
8513    $RM -r conftest 2>/dev/null
8514    mkdir conftest
8515    cd conftest
8516    mkdir out
8517    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8518
8519    lt_compiler_flag="-o out/conftest2.$ac_objext"
8520    # Insert the option either (1) after the last *FLAGS variable, or
8521    # (2) before a word containing "conftest.", or (3) at the end.
8522    # Note that $ac_compile itself does not contain backslashes and begins
8523    # with a dollar sign (not a hyphen), so the echo should work correctly.
8524    lt_compile=`echo "$ac_compile" | $SED \
8525    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8527    -e 's:$: $lt_compiler_flag:'`
8528    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8529    (eval "$lt_compile" 2>out/conftest.err)
8530    ac_status=$?
8531    cat out/conftest.err >&5
8532    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8534    then
8535      # The compiler can only warn and ignore the option if not recognized
8536      # So say no if there are warnings
8537      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8538      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8539      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8540        lt_cv_prog_compiler_c_o=yes
8541      fi
8542    fi
8543    chmod u+w . 2>&5
8544    $RM conftest*
8545    # SGI C++ compiler will create directory out/ii_files/ for
8546    # template instantiation
8547    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8548    $RM out/* && rmdir out
8549    cd ..
8550    $RM -r conftest
8551    $RM conftest*
8552
8553 fi
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8555 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8556
8557
8558
8559
8560 hard_links="nottested"
8561 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8562   # do not overwrite the value of need_locks provided by the user
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8564 $as_echo_n "checking if we can lock with hard links... " >&6; }
8565   hard_links=yes
8566   $RM conftest*
8567   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8568   touch conftest.a
8569   ln conftest.a conftest.b 2>&5 || hard_links=no
8570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8572 $as_echo "$hard_links" >&6; }
8573   if test "$hard_links" = no; then
8574     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8575 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8576     need_locks=warn
8577   fi
8578 else
8579   need_locks=no
8580 fi
8581
8582
8583
8584
8585
8586
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8588 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8589
8590   runpath_var=
8591   allow_undefined_flag=
8592   always_export_symbols=no
8593   archive_cmds=
8594   archive_expsym_cmds=
8595   compiler_needs_object=no
8596   enable_shared_with_static_runtimes=no
8597   export_dynamic_flag_spec=
8598   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8599   hardcode_automatic=no
8600   hardcode_direct=no
8601   hardcode_direct_absolute=no
8602   hardcode_libdir_flag_spec=
8603   hardcode_libdir_separator=
8604   hardcode_minus_L=no
8605   hardcode_shlibpath_var=unsupported
8606   inherit_rpath=no
8607   link_all_deplibs=unknown
8608   module_cmds=
8609   module_expsym_cmds=
8610   old_archive_from_new_cmds=
8611   old_archive_from_expsyms_cmds=
8612   thread_safe_flag_spec=
8613   whole_archive_flag_spec=
8614   # include_expsyms should be a list of space-separated symbols to be *always*
8615   # included in the symbol list
8616   include_expsyms=
8617   # exclude_expsyms can be an extended regexp of symbols to exclude
8618   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8619   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8620   # as well as any symbol that contains `d'.
8621   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8622   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8623   # platforms (ab)use it in PIC code, but their linkers get confused if
8624   # the symbol is explicitly referenced.  Since portable code cannot
8625   # rely on this symbol name, it's probably fine to never include it in
8626   # preloaded symbol tables.
8627   # Exclude shared library initialization/finalization symbols.
8628   extract_expsyms_cmds=
8629
8630   case $host_os in
8631   cygwin* | mingw* | pw32* | cegcc*)
8632     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8633     # When not using gcc, we currently assume that we are using
8634     # Microsoft Visual C++.
8635     if test "$GCC" != yes; then
8636       with_gnu_ld=no
8637     fi
8638     ;;
8639   interix*)
8640     # we just hope/assume this is gcc and not c89 (= MSVC++)
8641     with_gnu_ld=yes
8642     ;;
8643   openbsd*)
8644     with_gnu_ld=no
8645     ;;
8646   esac
8647
8648   ld_shlibs=yes
8649
8650   # On some targets, GNU ld is compatible enough with the native linker
8651   # that we're better off using the native interface for both.
8652   lt_use_gnu_ld_interface=no
8653   if test "$with_gnu_ld" = yes; then
8654     case $host_os in
8655       aix*)
8656         # The AIX port of GNU ld has always aspired to compatibility
8657         # with the native linker.  However, as the warning in the GNU ld
8658         # block says, versions before 2.19.5* couldn't really create working
8659         # shared libraries, regardless of the interface used.
8660         case `$LD -v 2>&1` in
8661           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8662           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8663           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8664           *)
8665             lt_use_gnu_ld_interface=yes
8666             ;;
8667         esac
8668         ;;
8669       *)
8670         lt_use_gnu_ld_interface=yes
8671         ;;
8672     esac
8673   fi
8674
8675   if test "$lt_use_gnu_ld_interface" = yes; then
8676     # If archive_cmds runs LD, not CC, wlarc should be empty
8677     wlarc='${wl}'
8678
8679     # Set some defaults for GNU ld with shared library support. These
8680     # are reset later if shared libraries are not supported. Putting them
8681     # here allows them to be overridden if necessary.
8682     runpath_var=LD_RUN_PATH
8683     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8684     export_dynamic_flag_spec='${wl}--export-dynamic'
8685     # ancient GNU ld didn't support --whole-archive et. al.
8686     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8687       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8688     else
8689       whole_archive_flag_spec=
8690     fi
8691     supports_anon_versioning=no
8692     case `$LD -v 2>&1` in
8693       *GNU\ gold*) supports_anon_versioning=yes ;;
8694       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8695       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8696       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8697       *\ 2.11.*) ;; # other 2.11 versions
8698       *) supports_anon_versioning=yes ;;
8699     esac
8700
8701     # See if GNU ld supports shared libraries.
8702     case $host_os in
8703     aix[3-9]*)
8704       # On AIX/PPC, the GNU linker is very broken
8705       if test "$host_cpu" != ia64; then
8706         ld_shlibs=no
8707         cat <<_LT_EOF 1>&2
8708
8709 *** Warning: the GNU linker, at least up to release 2.19, is reported
8710 *** to be unable to reliably create shared libraries on AIX.
8711 *** Therefore, libtool is disabling shared libraries support.  If you
8712 *** really care for shared libraries, you may want to install binutils
8713 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8714 *** You will then need to restart the configuration process.
8715
8716 _LT_EOF
8717       fi
8718       ;;
8719
8720     amigaos*)
8721       case $host_cpu in
8722       powerpc)
8723             # see comment about AmigaOS4 .so support
8724             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725             archive_expsym_cmds=''
8726         ;;
8727       m68k)
8728             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8729             hardcode_libdir_flag_spec='-L$libdir'
8730             hardcode_minus_L=yes
8731         ;;
8732       esac
8733       ;;
8734
8735     beos*)
8736       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8737         allow_undefined_flag=unsupported
8738         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8739         # support --undefined.  This deserves some investigation.  FIXME
8740         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741       else
8742         ld_shlibs=no
8743       fi
8744       ;;
8745
8746     cygwin* | mingw* | pw32* | cegcc*)
8747       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8748       # as there is no search path for DLLs.
8749       hardcode_libdir_flag_spec='-L$libdir'
8750       export_dynamic_flag_spec='${wl}--export-all-symbols'
8751       allow_undefined_flag=unsupported
8752       always_export_symbols=no
8753       enable_shared_with_static_runtimes=yes
8754       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8755       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8756
8757       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8759         # If the export-symbols file already is a .def file (1st line
8760         # is EXPORTS), use it as is; otherwise, prepend...
8761         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8762           cp $export_symbols $output_objdir/$soname.def;
8763         else
8764           echo EXPORTS > $output_objdir/$soname.def;
8765           cat $export_symbols >> $output_objdir/$soname.def;
8766         fi~
8767         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8768       else
8769         ld_shlibs=no
8770       fi
8771       ;;
8772
8773     haiku*)
8774       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775       link_all_deplibs=yes
8776       ;;
8777
8778     interix[3-9]*)
8779       hardcode_direct=no
8780       hardcode_shlibpath_var=no
8781       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782       export_dynamic_flag_spec='${wl}-E'
8783       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8784       # Instead, shared libraries are loaded at an image base (0x10000000 by
8785       # default) and relocated if they conflict, which is a slow very memory
8786       # consuming and fragmenting process.  To avoid this, we pick a random,
8787       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8788       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8789       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8790       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8791       ;;
8792
8793     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8794       tmp_diet=no
8795       if test "$host_os" = linux-dietlibc; then
8796         case $cc_basename in
8797           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8798         esac
8799       fi
8800       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8801          && test "$tmp_diet" = no
8802       then
8803         tmp_addflag=' $pic_flag'
8804         tmp_sharedflag='-shared'
8805         case $cc_basename,$host_cpu in
8806         pgcc*)                          # Portland Group C compiler
8807           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8808           tmp_addflag=' $pic_flag'
8809           ;;
8810         pgf77* | pgf90* | pgf95* | pgfortran*)
8811                                         # Portland Group f77 and f90 compilers
8812           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8813           tmp_addflag=' $pic_flag -Mnomain' ;;
8814         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8815           tmp_addflag=' -i_dynamic' ;;
8816         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8817           tmp_addflag=' -i_dynamic -nofor_main' ;;
8818         ifc* | ifort*)                  # Intel Fortran compiler
8819           tmp_addflag=' -nofor_main' ;;
8820         lf95*)                          # Lahey Fortran 8.1
8821           whole_archive_flag_spec=
8822           tmp_sharedflag='--shared' ;;
8823         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8824           tmp_sharedflag='-qmkshrobj'
8825           tmp_addflag= ;;
8826         nvcc*)  # Cuda Compiler Driver 2.2
8827           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8828           compiler_needs_object=yes
8829           ;;
8830         esac
8831         case `$CC -V 2>&1 | sed 5q` in
8832         *Sun\ C*)                       # Sun C 5.9
8833           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8834           compiler_needs_object=yes
8835           tmp_sharedflag='-G' ;;
8836         *Sun\ F*)                       # Sun Fortran 8.3
8837           tmp_sharedflag='-G' ;;
8838         esac
8839         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840
8841         if test "x$supports_anon_versioning" = xyes; then
8842           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8843             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8844             echo "local: *; };" >> $output_objdir/$libname.ver~
8845             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8846         fi
8847
8848         case $cc_basename in
8849         xlf* | bgf* | bgxlf* | mpixlf*)
8850           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8851           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8852           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8854           if test "x$supports_anon_versioning" = xyes; then
8855             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8856               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8857               echo "local: *; };" >> $output_objdir/$libname.ver~
8858               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8859           fi
8860           ;;
8861         esac
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866
8867     netbsd*)
8868       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8869         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8870         wlarc=
8871       else
8872         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8874       fi
8875       ;;
8876
8877     solaris*)
8878       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8879         ld_shlibs=no
8880         cat <<_LT_EOF 1>&2
8881
8882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8883 *** create shared libraries on Solaris systems.  Therefore, libtool
8884 *** is disabling shared libraries support.  We urge you to upgrade GNU
8885 *** binutils to release 2.9.1 or newer.  Another option is to modify
8886 *** your PATH or compiler configuration so that the native linker is
8887 *** used, and then restart.
8888
8889 _LT_EOF
8890       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8893       else
8894         ld_shlibs=no
8895       fi
8896       ;;
8897
8898     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8899       case `$LD -v 2>&1` in
8900         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8901         ld_shlibs=no
8902         cat <<_LT_EOF 1>&2
8903
8904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8905 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8906 *** is disabling shared libraries support.  We urge you to upgrade GNU
8907 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8908 *** your PATH or compiler configuration so that the native linker is
8909 *** used, and then restart.
8910
8911 _LT_EOF
8912         ;;
8913         *)
8914           # For security reasons, it is highly recommended that you always
8915           # use absolute paths for naming shared libraries, and exclude the
8916           # DT_RUNPATH tag from executables and libraries.  But doing so
8917           # requires that you compile everything twice, which is a pain.
8918           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922           else
8923             ld_shlibs=no
8924           fi
8925         ;;
8926       esac
8927       ;;
8928
8929     sunos4*)
8930       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8931       wlarc=
8932       hardcode_direct=yes
8933       hardcode_shlibpath_var=no
8934       ;;
8935
8936     *)
8937       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940       else
8941         ld_shlibs=no
8942       fi
8943       ;;
8944     esac
8945
8946     if test "$ld_shlibs" = no; then
8947       runpath_var=
8948       hardcode_libdir_flag_spec=
8949       export_dynamic_flag_spec=
8950       whole_archive_flag_spec=
8951     fi
8952   else
8953     # PORTME fill in a description of your system's linker (not GNU ld)
8954     case $host_os in
8955     aix3*)
8956       allow_undefined_flag=unsupported
8957       always_export_symbols=yes
8958       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8959       # Note: this linker hardcodes the directories in LIBPATH if there
8960       # are no directories specified by -L.
8961       hardcode_minus_L=yes
8962       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8963         # Neither direct hardcoding nor static linking is supported with a
8964         # broken collect2.
8965         hardcode_direct=unsupported
8966       fi
8967       ;;
8968
8969     aix[4-9]*)
8970       if test "$host_cpu" = ia64; then
8971         # On IA64, the linker does run time linking by default, so we don't
8972         # have to do anything special.
8973         aix_use_runtimelinking=no
8974         exp_sym_flag='-Bexport'
8975         no_entry_flag=""
8976       else
8977         # If we're using GNU nm, then we don't want the "-C" option.
8978         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8979         # Also, AIX nm treats weak defined symbols like other global
8980         # defined symbols, whereas GNU nm marks them as "W".
8981         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8982           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8983         else
8984           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8985         fi
8986         aix_use_runtimelinking=no
8987
8988         # Test if we are trying to use run time linking or normal
8989         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8990         # need to do runtime linking.
8991         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8992           for ld_flag in $LDFLAGS; do
8993           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8994             aix_use_runtimelinking=yes
8995             break
8996           fi
8997           done
8998           ;;
8999         esac
9000
9001         exp_sym_flag='-bexport'
9002         no_entry_flag='-bnoentry'
9003       fi
9004
9005       # When large executables or shared objects are built, AIX ld can
9006       # have problems creating the table of contents.  If linking a library
9007       # or program results in "error TOC overflow" add -mminimal-toc to
9008       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9009       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9010
9011       archive_cmds=''
9012       hardcode_direct=yes
9013       hardcode_direct_absolute=yes
9014       hardcode_libdir_separator=':'
9015       link_all_deplibs=yes
9016       file_list_spec='${wl}-f,'
9017
9018       if test "$GCC" = yes; then
9019         case $host_os in aix4.[012]|aix4.[012].*)
9020         # We only want to do this on AIX 4.2 and lower, the check
9021         # below for broken collect2 doesn't work under 4.3+
9022           collect2name=`${CC} -print-prog-name=collect2`
9023           if test -f "$collect2name" &&
9024            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9025           then
9026           # We have reworked collect2
9027           :
9028           else
9029           # We have old collect2
9030           hardcode_direct=unsupported
9031           # It fails to find uninstalled libraries when the uninstalled
9032           # path is not listed in the libpath.  Setting hardcode_minus_L
9033           # to unsupported forces relinking
9034           hardcode_minus_L=yes
9035           hardcode_libdir_flag_spec='-L$libdir'
9036           hardcode_libdir_separator=
9037           fi
9038           ;;
9039         esac
9040         shared_flag='-shared'
9041         if test "$aix_use_runtimelinking" = yes; then
9042           shared_flag="$shared_flag "'${wl}-G'
9043         fi
9044       else
9045         # not using gcc
9046         if test "$host_cpu" = ia64; then
9047         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9048         # chokes on -Wl,-G. The following line is correct:
9049           shared_flag='-G'
9050         else
9051           if test "$aix_use_runtimelinking" = yes; then
9052             shared_flag='${wl}-G'
9053           else
9054             shared_flag='${wl}-bM:SRE'
9055           fi
9056         fi
9057       fi
9058
9059       export_dynamic_flag_spec='${wl}-bexpall'
9060       # It seems that -bexpall does not export symbols beginning with
9061       # underscore (_), so it is better to generate a list of symbols to export.
9062       always_export_symbols=yes
9063       if test "$aix_use_runtimelinking" = yes; then
9064         # Warning - without using the other runtime loading flags (-brtl),
9065         # -berok will link without error, but may produce a broken library.
9066         allow_undefined_flag='-berok'
9067         # Determine the default libpath from the value encoded in an
9068         # empty executable.
9069         if test "${lt_cv_aix_libpath+set}" = set; then
9070   aix_libpath=$lt_cv_aix_libpath
9071 else
9072   if ${lt_cv_aix_libpath_+:} false; then :
9073   $as_echo_n "(cached) " >&6
9074 else
9075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h.  */
9077
9078 int
9079 main ()
9080 {
9081
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_link "$LINENO"; then :
9087
9088   lt_aix_libpath_sed='
9089       /Import File Strings/,/^$/ {
9090           /^0/ {
9091               s/^0  *\([^ ]*\) *$/\1/
9092               p
9093           }
9094       }'
9095   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9096   # Check for a 64-bit object if we didn't find anything.
9097   if test -z "$lt_cv_aix_libpath_"; then
9098     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099   fi
9100 fi
9101 rm -f core conftest.err conftest.$ac_objext \
9102     conftest$ac_exeext conftest.$ac_ext
9103   if test -z "$lt_cv_aix_libpath_"; then
9104     lt_cv_aix_libpath_="/usr/lib:/lib"
9105   fi
9106
9107 fi
9108
9109   aix_libpath=$lt_cv_aix_libpath_
9110 fi
9111
9112         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9113         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9114       else
9115         if test "$host_cpu" = ia64; then
9116           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9117           allow_undefined_flag="-z nodefs"
9118           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9119         else
9120          # Determine the default libpath from the value encoded in an
9121          # empty executable.
9122          if test "${lt_cv_aix_libpath+set}" = set; then
9123   aix_libpath=$lt_cv_aix_libpath
9124 else
9125   if ${lt_cv_aix_libpath_+:} false; then :
9126   $as_echo_n "(cached) " >&6
9127 else
9128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h.  */
9130
9131 int
9132 main ()
9133 {
9134
9135   ;
9136   return 0;
9137 }
9138 _ACEOF
9139 if ac_fn_c_try_link "$LINENO"; then :
9140
9141   lt_aix_libpath_sed='
9142       /Import File Strings/,/^$/ {
9143           /^0/ {
9144               s/^0  *\([^ ]*\) *$/\1/
9145               p
9146           }
9147       }'
9148   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9149   # Check for a 64-bit object if we didn't find anything.
9150   if test -z "$lt_cv_aix_libpath_"; then
9151     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9152   fi
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext \
9155     conftest$ac_exeext conftest.$ac_ext
9156   if test -z "$lt_cv_aix_libpath_"; then
9157     lt_cv_aix_libpath_="/usr/lib:/lib"
9158   fi
9159
9160 fi
9161
9162   aix_libpath=$lt_cv_aix_libpath_
9163 fi
9164
9165          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9166           # Warning - without using the other run time loading flags,
9167           # -berok will link without error, but may produce a broken library.
9168           no_undefined_flag=' ${wl}-bernotok'
9169           allow_undefined_flag=' ${wl}-berok'
9170           if test "$with_gnu_ld" = yes; then
9171             # We only use this code for GNU lds that support --whole-archive.
9172             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9173           else
9174             # Exported symbols can be pulled into shared objects from archives
9175             whole_archive_flag_spec='$convenience'
9176           fi
9177           archive_cmds_need_lc=yes
9178           # This is similar to how AIX traditionally builds its shared libraries.
9179           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9180         fi
9181       fi
9182       ;;
9183
9184     amigaos*)
9185       case $host_cpu in
9186       powerpc)
9187             # see comment about AmigaOS4 .so support
9188             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189             archive_expsym_cmds=''
9190         ;;
9191       m68k)
9192             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9193             hardcode_libdir_flag_spec='-L$libdir'
9194             hardcode_minus_L=yes
9195         ;;
9196       esac
9197       ;;
9198
9199     bsdi[45]*)
9200       export_dynamic_flag_spec=-rdynamic
9201       ;;
9202
9203     cygwin* | mingw* | pw32* | cegcc*)
9204       # When not using gcc, we currently assume that we are using
9205       # Microsoft Visual C++.
9206       # hardcode_libdir_flag_spec is actually meaningless, as there is
9207       # no search path for DLLs.
9208       case $cc_basename in
9209       cl*)
9210         # Native MSVC
9211         hardcode_libdir_flag_spec=' '
9212         allow_undefined_flag=unsupported
9213         always_export_symbols=yes
9214         file_list_spec='@'
9215         # Tell ltmain to make .lib files, not .a files.
9216         libext=lib
9217         # Tell ltmain to make .dll files, not .so files.
9218         shrext_cmds=".dll"
9219         # FIXME: Setting linknames here is a bad hack.
9220         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9221         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9222             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9223           else
9224             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9225           fi~
9226           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9227           linknames='
9228         # The linker will not automatically build a static lib if we build a DLL.
9229         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9230         enable_shared_with_static_runtimes=yes
9231         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9232         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9233         # Don't use ranlib
9234         old_postinstall_cmds='chmod 644 $oldlib'
9235         postlink_cmds='lt_outputfile="@OUTPUT@"~
9236           lt_tool_outputfile="@TOOL_OUTPUT@"~
9237           case $lt_outputfile in
9238             *.exe|*.EXE) ;;
9239             *)
9240               lt_outputfile="$lt_outputfile.exe"
9241               lt_tool_outputfile="$lt_tool_outputfile.exe"
9242               ;;
9243           esac~
9244           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9245             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9246             $RM "$lt_outputfile.manifest";
9247           fi'
9248         ;;
9249       *)
9250         # Assume MSVC wrapper
9251         hardcode_libdir_flag_spec=' '
9252         allow_undefined_flag=unsupported
9253         # Tell ltmain to make .lib files, not .a files.
9254         libext=lib
9255         # Tell ltmain to make .dll files, not .so files.
9256         shrext_cmds=".dll"
9257         # FIXME: Setting linknames here is a bad hack.
9258         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9259         # The linker will automatically build a .lib file if we build a DLL.
9260         old_archive_from_new_cmds='true'
9261         # FIXME: Should let the user specify the lib program.
9262         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9263         enable_shared_with_static_runtimes=yes
9264         ;;
9265       esac
9266       ;;
9267
9268     darwin* | rhapsody*)
9269
9270
9271   archive_cmds_need_lc=no
9272   hardcode_direct=no
9273   hardcode_automatic=yes
9274   hardcode_shlibpath_var=unsupported
9275   if test "$lt_cv_ld_force_load" = "yes"; then
9276     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9277
9278   else
9279     whole_archive_flag_spec=''
9280   fi
9281   link_all_deplibs=yes
9282   allow_undefined_flag="$_lt_dar_allow_undefined"
9283   case $cc_basename in
9284      ifort*) _lt_dar_can_shared=yes ;;
9285      *) _lt_dar_can_shared=$GCC ;;
9286   esac
9287   if test "$_lt_dar_can_shared" = "yes"; then
9288     output_verbose_link_cmd=func_echo_all
9289     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9290     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9291     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9292     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9293
9294   else
9295   ld_shlibs=no
9296   fi
9297
9298       ;;
9299
9300     dgux*)
9301       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302       hardcode_libdir_flag_spec='-L$libdir'
9303       hardcode_shlibpath_var=no
9304       ;;
9305
9306     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9307     # support.  Future versions do this automatically, but an explicit c++rt0.o
9308     # does not break anything, and helps significantly (at the cost of a little
9309     # extra space).
9310     freebsd2.2*)
9311       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9312       hardcode_libdir_flag_spec='-R$libdir'
9313       hardcode_direct=yes
9314       hardcode_shlibpath_var=no
9315       ;;
9316
9317     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9318     freebsd2.*)
9319       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320       hardcode_direct=yes
9321       hardcode_minus_L=yes
9322       hardcode_shlibpath_var=no
9323       ;;
9324
9325     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9326     freebsd* | dragonfly*)
9327       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9328       hardcode_libdir_flag_spec='-R$libdir'
9329       hardcode_direct=yes
9330       hardcode_shlibpath_var=no
9331       ;;
9332
9333     hpux9*)
9334       if test "$GCC" = yes; then
9335         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9336       else
9337         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9338       fi
9339       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9340       hardcode_libdir_separator=:
9341       hardcode_direct=yes
9342
9343       # hardcode_minus_L: Not really in the search PATH,
9344       # but as the default location of the library.
9345       hardcode_minus_L=yes
9346       export_dynamic_flag_spec='${wl}-E'
9347       ;;
9348
9349     hpux10*)
9350       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9351         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9352       else
9353         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9354       fi
9355       if test "$with_gnu_ld" = no; then
9356         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357         hardcode_libdir_separator=:
9358         hardcode_direct=yes
9359         hardcode_direct_absolute=yes
9360         export_dynamic_flag_spec='${wl}-E'
9361         # hardcode_minus_L: Not really in the search PATH,
9362         # but as the default location of the library.
9363         hardcode_minus_L=yes
9364       fi
9365       ;;
9366
9367     hpux11*)
9368       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9369         case $host_cpu in
9370         hppa*64*)
9371           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372           ;;
9373         ia64*)
9374           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9375           ;;
9376         *)
9377           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9378           ;;
9379         esac
9380       else
9381         case $host_cpu in
9382         hppa*64*)
9383           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9384           ;;
9385         ia64*)
9386           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9387           ;;
9388         *)
9389
9390           # Older versions of the 11.00 compiler do not understand -b yet
9391           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9392           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9393 $as_echo_n "checking if $CC understands -b... " >&6; }
9394 if ${lt_cv_prog_compiler__b+:} false; then :
9395   $as_echo_n "(cached) " >&6
9396 else
9397   lt_cv_prog_compiler__b=no
9398    save_LDFLAGS="$LDFLAGS"
9399    LDFLAGS="$LDFLAGS -b"
9400    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9401    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9402      # The linker can only warn and ignore the option if not recognized
9403      # So say no if there are warnings
9404      if test -s conftest.err; then
9405        # Append any errors to the config.log.
9406        cat conftest.err 1>&5
9407        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9408        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9409        if diff conftest.exp conftest.er2 >/dev/null; then
9410          lt_cv_prog_compiler__b=yes
9411        fi
9412      else
9413        lt_cv_prog_compiler__b=yes
9414      fi
9415    fi
9416    $RM -r conftest*
9417    LDFLAGS="$save_LDFLAGS"
9418
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9421 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9422
9423 if test x"$lt_cv_prog_compiler__b" = xyes; then
9424     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9425 else
9426     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9427 fi
9428
9429           ;;
9430         esac
9431       fi
9432       if test "$with_gnu_ld" = no; then
9433         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434         hardcode_libdir_separator=:
9435
9436         case $host_cpu in
9437         hppa*64*|ia64*)
9438           hardcode_direct=no
9439           hardcode_shlibpath_var=no
9440           ;;
9441         *)
9442           hardcode_direct=yes
9443           hardcode_direct_absolute=yes
9444           export_dynamic_flag_spec='${wl}-E'
9445
9446           # hardcode_minus_L: Not really in the search PATH,
9447           # but as the default location of the library.
9448           hardcode_minus_L=yes
9449           ;;
9450         esac
9451       fi
9452       ;;
9453
9454     irix5* | irix6* | nonstopux*)
9455       if test "$GCC" = yes; then
9456         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9457         # Try to use the -exported_symbol ld option, if it does not
9458         # work, assume that -exports_file does not work either and
9459         # implicitly export all symbols.
9460         # This should be the same for all languages, so no per-tag cache variable.
9461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9462 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9463 if ${lt_cv_irix_exported_symbol+:} false; then :
9464   $as_echo_n "(cached) " >&6
9465 else
9466   save_LDFLAGS="$LDFLAGS"
9467            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9468            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h.  */
9470 int foo (void) { return 0; }
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473   lt_cv_irix_exported_symbol=yes
9474 else
9475   lt_cv_irix_exported_symbol=no
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478     conftest$ac_exeext conftest.$ac_ext
9479            LDFLAGS="$save_LDFLAGS"
9480 fi
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9482 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9483         if test "$lt_cv_irix_exported_symbol" = yes; then
9484           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9485         fi
9486       else
9487         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9488         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9489       fi
9490       archive_cmds_need_lc='no'
9491       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9492       hardcode_libdir_separator=:
9493       inherit_rpath=yes
9494       link_all_deplibs=yes
9495       ;;
9496
9497     netbsd*)
9498       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9499         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9500       else
9501         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9502       fi
9503       hardcode_libdir_flag_spec='-R$libdir'
9504       hardcode_direct=yes
9505       hardcode_shlibpath_var=no
9506       ;;
9507
9508     newsos6)
9509       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510       hardcode_direct=yes
9511       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512       hardcode_libdir_separator=:
9513       hardcode_shlibpath_var=no
9514       ;;
9515
9516     *nto* | *qnx*)
9517       ;;
9518
9519     openbsd*)
9520       if test -f /usr/libexec/ld.so; then
9521         hardcode_direct=yes
9522         hardcode_shlibpath_var=no
9523         hardcode_direct_absolute=yes
9524         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9525           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9526           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9527           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9528           export_dynamic_flag_spec='${wl}-E'
9529         else
9530           case $host_os in
9531            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9532              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9533              hardcode_libdir_flag_spec='-R$libdir'
9534              ;;
9535            *)
9536              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9537              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538              ;;
9539           esac
9540         fi
9541       else
9542         ld_shlibs=no
9543       fi
9544       ;;
9545
9546     os2*)
9547       hardcode_libdir_flag_spec='-L$libdir'
9548       hardcode_minus_L=yes
9549       allow_undefined_flag=unsupported
9550       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9551       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9552       ;;
9553
9554     osf3*)
9555       if test "$GCC" = yes; then
9556         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9557         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9558       else
9559         allow_undefined_flag=' -expect_unresolved \*'
9560         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9561       fi
9562       archive_cmds_need_lc='no'
9563       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564       hardcode_libdir_separator=:
9565       ;;
9566
9567     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9568       if test "$GCC" = yes; then
9569         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9570         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9571         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572       else
9573         allow_undefined_flag=' -expect_unresolved \*'
9574         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9575         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9576         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9577
9578         # Both c and cxx compiler support -rpath directly
9579         hardcode_libdir_flag_spec='-rpath $libdir'
9580       fi
9581       archive_cmds_need_lc='no'
9582       hardcode_libdir_separator=:
9583       ;;
9584
9585     solaris*)
9586       no_undefined_flag=' -z defs'
9587       if test "$GCC" = yes; then
9588         wlarc='${wl}'
9589         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9590         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9591           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9592       else
9593         case `$CC -V 2>&1` in
9594         *"Compilers 5.0"*)
9595           wlarc=''
9596           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9598           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9599           ;;
9600         *)
9601           wlarc='${wl}'
9602           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9603           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9604           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9605           ;;
9606         esac
9607       fi
9608       hardcode_libdir_flag_spec='-R$libdir'
9609       hardcode_shlibpath_var=no
9610       case $host_os in
9611       solaris2.[0-5] | solaris2.[0-5].*) ;;
9612       *)
9613         # The compiler driver will combine and reorder linker options,
9614         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9615         # but is careful enough not to reorder.
9616         # Supported since Solaris 2.6 (maybe 2.5.1?)
9617         if test "$GCC" = yes; then
9618           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9619         else
9620           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9621         fi
9622         ;;
9623       esac
9624       link_all_deplibs=yes
9625       ;;
9626
9627     sunos4*)
9628       if test "x$host_vendor" = xsequent; then
9629         # Use $CC to link under sequent, because it throws in some extra .o
9630         # files that make .init and .fini sections work.
9631         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9632       else
9633         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9634       fi
9635       hardcode_libdir_flag_spec='-L$libdir'
9636       hardcode_direct=yes
9637       hardcode_minus_L=yes
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     sysv4)
9642       case $host_vendor in
9643         sni)
9644           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645           hardcode_direct=yes # is this really true???
9646         ;;
9647         siemens)
9648           ## LD is ld it makes a PLAMLIB
9649           ## CC just makes a GrossModule.
9650           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9651           reload_cmds='$CC -r -o $output$reload_objs'
9652           hardcode_direct=no
9653         ;;
9654         motorola)
9655           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9657         ;;
9658       esac
9659       runpath_var='LD_RUN_PATH'
9660       hardcode_shlibpath_var=no
9661       ;;
9662
9663     sysv4.3*)
9664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665       hardcode_shlibpath_var=no
9666       export_dynamic_flag_spec='-Bexport'
9667       ;;
9668
9669     sysv4*MP*)
9670       if test -d /usr/nec; then
9671         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672         hardcode_shlibpath_var=no
9673         runpath_var=LD_RUN_PATH
9674         hardcode_runpath_var=yes
9675         ld_shlibs=yes
9676       fi
9677       ;;
9678
9679     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9680       no_undefined_flag='${wl}-z,text'
9681       archive_cmds_need_lc=no
9682       hardcode_shlibpath_var=no
9683       runpath_var='LD_RUN_PATH'
9684
9685       if test "$GCC" = yes; then
9686         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688       else
9689         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691       fi
9692       ;;
9693
9694     sysv5* | sco3.2v5* | sco5v6*)
9695       # Note: We can NOT use -z defs as we might desire, because we do not
9696       # link with -lc, and that would cause any symbols used from libc to
9697       # always be unresolved, which means just about no library would
9698       # ever link correctly.  If we're not using GNU ld we use -z text
9699       # though, which does catch some bad symbols but isn't as heavy-handed
9700       # as -z defs.
9701       no_undefined_flag='${wl}-z,text'
9702       allow_undefined_flag='${wl}-z,nodefs'
9703       archive_cmds_need_lc=no
9704       hardcode_shlibpath_var=no
9705       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9706       hardcode_libdir_separator=':'
9707       link_all_deplibs=yes
9708       export_dynamic_flag_spec='${wl}-Bexport'
9709       runpath_var='LD_RUN_PATH'
9710
9711       if test "$GCC" = yes; then
9712         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714       else
9715         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717       fi
9718       ;;
9719
9720     uts4*)
9721       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722       hardcode_libdir_flag_spec='-L$libdir'
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     *)
9727       ld_shlibs=no
9728       ;;
9729     esac
9730
9731     if test x$host_vendor = xsni; then
9732       case $host in
9733       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9734         export_dynamic_flag_spec='${wl}-Blargedynsym'
9735         ;;
9736       esac
9737     fi
9738   fi
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9741 $as_echo "$ld_shlibs" >&6; }
9742 test "$ld_shlibs" = no && can_build_shared=no
9743
9744 with_gnu_ld=$with_gnu_ld
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760 #
9761 # Do we need to explicitly link libc?
9762 #
9763 case "x$archive_cmds_need_lc" in
9764 x|xyes)
9765   # Assume -lc should be added
9766   archive_cmds_need_lc=yes
9767
9768   if test "$enable_shared" = yes && test "$GCC" = yes; then
9769     case $archive_cmds in
9770     *'~'*)
9771       # FIXME: we may have to deal with multi-command sequences.
9772       ;;
9773     '$CC '*)
9774       # Test whether the compiler implicitly links with -lc since on some
9775       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9776       # to ld, don't add -lc before -lgcc.
9777       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9778 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9779 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9780   $as_echo_n "(cached) " >&6
9781 else
9782   $RM conftest*
9783         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9784
9785         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9786   (eval $ac_compile) 2>&5
9787   ac_status=$?
9788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9789   test $ac_status = 0; } 2>conftest.err; then
9790           soname=conftest
9791           lib=conftest
9792           libobjs=conftest.$ac_objext
9793           deplibs=
9794           wl=$lt_prog_compiler_wl
9795           pic_flag=$lt_prog_compiler_pic
9796           compiler_flags=-v
9797           linker_flags=-v
9798           verstring=
9799           output_objdir=.
9800           libname=conftest
9801           lt_save_allow_undefined_flag=$allow_undefined_flag
9802           allow_undefined_flag=
9803           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9804   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9805   ac_status=$?
9806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9807   test $ac_status = 0; }
9808           then
9809             lt_cv_archive_cmds_need_lc=no
9810           else
9811             lt_cv_archive_cmds_need_lc=yes
9812           fi
9813           allow_undefined_flag=$lt_save_allow_undefined_flag
9814         else
9815           cat conftest.err 1>&5
9816         fi
9817         $RM conftest*
9818
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9821 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9822       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9823       ;;
9824     esac
9825   fi
9826   ;;
9827 esac
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9981 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9982
9983 if test "$GCC" = yes; then
9984   case $host_os in
9985     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9986     *) lt_awk_arg="/^libraries:/" ;;
9987   esac
9988   case $host_os in
9989     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9990     *) lt_sed_strip_eq="s,=/,/,g" ;;
9991   esac
9992   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9993   case $lt_search_path_spec in
9994   *\;*)
9995     # if the path contains ";" then we assume it to be the separator
9996     # otherwise default to the standard path separator (i.e. ":") - it is
9997     # assumed that no part of a normal pathname contains ";" but that should
9998     # okay in the real world where ";" in dirpaths is itself problematic.
9999     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10000     ;;
10001   *)
10002     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10003     ;;
10004   esac
10005   # Ok, now we have the path, separated by spaces, we can step through it
10006   # and add multilib dir if necessary.
10007   lt_tmp_lt_search_path_spec=
10008   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10009   for lt_sys_path in $lt_search_path_spec; do
10010     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10011       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10012     else
10013       test -d "$lt_sys_path" && \
10014         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10015     fi
10016   done
10017   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10018 BEGIN {RS=" "; FS="/|\n";} {
10019   lt_foo="";
10020   lt_count=0;
10021   for (lt_i = NF; lt_i > 0; lt_i--) {
10022     if ($lt_i != "" && $lt_i != ".") {
10023       if ($lt_i == "..") {
10024         lt_count++;
10025       } else {
10026         if (lt_count == 0) {
10027           lt_foo="/" $lt_i lt_foo;
10028         } else {
10029           lt_count--;
10030         }
10031       }
10032     }
10033   }
10034   if (lt_foo != "") { lt_freq[lt_foo]++; }
10035   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10036 }'`
10037   # AWK program above erroneously prepends '/' to C:/dos/paths
10038   # for these hosts.
10039   case $host_os in
10040     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10041       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10042   esac
10043   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10044 else
10045   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10046 fi
10047 library_names_spec=
10048 libname_spec='lib$name'
10049 soname_spec=
10050 shrext_cmds=".so"
10051 postinstall_cmds=
10052 postuninstall_cmds=
10053 finish_cmds=
10054 finish_eval=
10055 shlibpath_var=
10056 shlibpath_overrides_runpath=unknown
10057 version_type=none
10058 dynamic_linker="$host_os ld.so"
10059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10060 need_lib_prefix=unknown
10061 hardcode_into_libs=no
10062
10063 # when you set need_version to no, make sure it does not cause -set_version
10064 # flags to be left without arguments
10065 need_version=unknown
10066
10067 case $host_os in
10068 aix3*)
10069   version_type=linux # correct to gnu/linux during the next big refactor
10070   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10071   shlibpath_var=LIBPATH
10072
10073   # AIX 3 has no versioning support, so we append a major version to the name.
10074   soname_spec='${libname}${release}${shared_ext}$major'
10075   ;;
10076
10077 aix[4-9]*)
10078   version_type=linux # correct to gnu/linux during the next big refactor
10079   need_lib_prefix=no
10080   need_version=no
10081   hardcode_into_libs=yes
10082   if test "$host_cpu" = ia64; then
10083     # AIX 5 supports IA64
10084     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10085     shlibpath_var=LD_LIBRARY_PATH
10086   else
10087     # With GCC up to 2.95.x, collect2 would create an import file
10088     # for dependence libraries.  The import file would start with
10089     # the line `#! .'.  This would cause the generated library to
10090     # depend on `.', always an invalid library.  This was fixed in
10091     # development snapshots of GCC prior to 3.0.
10092     case $host_os in
10093       aix4 | aix4.[01] | aix4.[01].*)
10094       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10095            echo ' yes '
10096            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10097         :
10098       else
10099         can_build_shared=no
10100       fi
10101       ;;
10102     esac
10103     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10104     # soname into executable. Probably we can add versioning support to
10105     # collect2, so additional links can be useful in future.
10106     if test "$aix_use_runtimelinking" = yes; then
10107       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10108       # instead of lib<name>.a to let people know that these are not
10109       # typical AIX shared libraries.
10110       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111     else
10112       # We preserve .a as extension for shared libraries through AIX4.2
10113       # and later when we are not doing run time linking.
10114       library_names_spec='${libname}${release}.a $libname.a'
10115       soname_spec='${libname}${release}${shared_ext}$major'
10116     fi
10117     shlibpath_var=LIBPATH
10118   fi
10119   ;;
10120
10121 amigaos*)
10122   case $host_cpu in
10123   powerpc)
10124     # Since July 2007 AmigaOS4 officially supports .so libraries.
10125     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127     ;;
10128   m68k)
10129     library_names_spec='$libname.ixlibrary $libname.a'
10130     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10131     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10132     ;;
10133   esac
10134   ;;
10135
10136 beos*)
10137   library_names_spec='${libname}${shared_ext}'
10138   dynamic_linker="$host_os ld.so"
10139   shlibpath_var=LIBRARY_PATH
10140   ;;
10141
10142 bsdi[45]*)
10143   version_type=linux # correct to gnu/linux during the next big refactor
10144   need_version=no
10145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10148   shlibpath_var=LD_LIBRARY_PATH
10149   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10150   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10151   # the default ld.so.conf also contains /usr/contrib/lib and
10152   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10153   # libtool to hard-code these into programs
10154   ;;
10155
10156 cygwin* | mingw* | pw32* | cegcc*)
10157   version_type=windows
10158   shrext_cmds=".dll"
10159   need_version=no
10160   need_lib_prefix=no
10161
10162   case $GCC,$cc_basename in
10163   yes,*)
10164     # gcc
10165     library_names_spec='$libname.dll.a'
10166     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10167     postinstall_cmds='base_file=`basename \${file}`~
10168       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10169       dldir=$destdir/`dirname \$dlpath`~
10170       test -d \$dldir || mkdir -p \$dldir~
10171       $install_prog $dir/$dlname \$dldir/$dlname~
10172       chmod a+x \$dldir/$dlname~
10173       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10174         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10175       fi'
10176     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10177       dlpath=$dir/\$dldll~
10178        $RM \$dlpath'
10179     shlibpath_overrides_runpath=yes
10180
10181     case $host_os in
10182     cygwin*)
10183       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10184       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10185
10186       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10187       ;;
10188     mingw* | cegcc*)
10189       # MinGW DLLs use traditional 'lib' prefix
10190       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10191       ;;
10192     pw32*)
10193       # pw32 DLLs use 'pw' prefix rather than 'lib'
10194       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10195       ;;
10196     esac
10197     dynamic_linker='Win32 ld.exe'
10198     ;;
10199
10200   *,cl*)
10201     # Native MSVC
10202     libname_spec='$name'
10203     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204     library_names_spec='${libname}.dll.lib'
10205
10206     case $build_os in
10207     mingw*)
10208       sys_lib_search_path_spec=
10209       lt_save_ifs=$IFS
10210       IFS=';'
10211       for lt_path in $LIB
10212       do
10213         IFS=$lt_save_ifs
10214         # Let DOS variable expansion print the short 8.3 style file name.
10215         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10216         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10217       done
10218       IFS=$lt_save_ifs
10219       # Convert to MSYS style.
10220       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10221       ;;
10222     cygwin*)
10223       # Convert to unix form, then to dos form, then back to unix form
10224       # but this time dos style (no spaces!) so that the unix form looks
10225       # like /cygdrive/c/PROGRA~1:/cygdr...
10226       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10227       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10228       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10229       ;;
10230     *)
10231       sys_lib_search_path_spec="$LIB"
10232       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10233         # It is most probably a Windows format PATH.
10234         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10235       else
10236         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10237       fi
10238       # FIXME: find the short name or the path components, as spaces are
10239       # common. (e.g. "Program Files" -> "PROGRA~1")
10240       ;;
10241     esac
10242
10243     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10244     postinstall_cmds='base_file=`basename \${file}`~
10245       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10246       dldir=$destdir/`dirname \$dlpath`~
10247       test -d \$dldir || mkdir -p \$dldir~
10248       $install_prog $dir/$dlname \$dldir/$dlname'
10249     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10250       dlpath=$dir/\$dldll~
10251        $RM \$dlpath'
10252     shlibpath_overrides_runpath=yes
10253     dynamic_linker='Win32 link.exe'
10254     ;;
10255
10256   *)
10257     # Assume MSVC wrapper
10258     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10259     dynamic_linker='Win32 ld.exe'
10260     ;;
10261   esac
10262   # FIXME: first we should search . and the directory the executable is in
10263   shlibpath_var=PATH
10264   ;;
10265
10266 darwin* | rhapsody*)
10267   dynamic_linker="$host_os dyld"
10268   version_type=darwin
10269   need_lib_prefix=no
10270   need_version=no
10271   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10272   soname_spec='${libname}${release}${major}$shared_ext'
10273   shlibpath_overrides_runpath=yes
10274   shlibpath_var=DYLD_LIBRARY_PATH
10275   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10276
10277   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10278   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10279   ;;
10280
10281 dgux*)
10282   version_type=linux # correct to gnu/linux during the next big refactor
10283   need_lib_prefix=no
10284   need_version=no
10285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10286   soname_spec='${libname}${release}${shared_ext}$major'
10287   shlibpath_var=LD_LIBRARY_PATH
10288   ;;
10289
10290 freebsd* | dragonfly*)
10291   # DragonFly does not have aout.  When/if they implement a new
10292   # versioning mechanism, adjust this.
10293   if test -x /usr/bin/objformat; then
10294     objformat=`/usr/bin/objformat`
10295   else
10296     case $host_os in
10297     freebsd[23].*) objformat=aout ;;
10298     *) objformat=elf ;;
10299     esac
10300   fi
10301   # Handle Gentoo/FreeBSD as it was Linux
10302   case $host_vendor in
10303     gentoo)
10304       version_type=linux ;;
10305     *)
10306       version_type=freebsd-$objformat ;;
10307   esac
10308
10309   case $version_type in
10310     freebsd-elf*)
10311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10312       need_version=no
10313       need_lib_prefix=no
10314       ;;
10315     freebsd-*)
10316       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10317       need_version=yes
10318       ;;
10319     linux)
10320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10321       soname_spec='${libname}${release}${shared_ext}$major'
10322       need_lib_prefix=no
10323       need_version=no
10324       ;;
10325   esac
10326   shlibpath_var=LD_LIBRARY_PATH
10327   case $host_os in
10328   freebsd2.*)
10329     shlibpath_overrides_runpath=yes
10330     ;;
10331   freebsd3.[01]* | freebsdelf3.[01]*)
10332     shlibpath_overrides_runpath=yes
10333     hardcode_into_libs=yes
10334     ;;
10335   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10336   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10337     shlibpath_overrides_runpath=no
10338     hardcode_into_libs=yes
10339     ;;
10340   *) # from 4.6 on, and DragonFly
10341     shlibpath_overrides_runpath=yes
10342     hardcode_into_libs=yes
10343     ;;
10344   esac
10345   ;;
10346
10347 gnu*)
10348   version_type=linux # correct to gnu/linux during the next big refactor
10349   need_lib_prefix=no
10350   need_version=no
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352   soname_spec='${libname}${release}${shared_ext}$major'
10353   shlibpath_var=LD_LIBRARY_PATH
10354   shlibpath_overrides_runpath=no
10355   hardcode_into_libs=yes
10356   ;;
10357
10358 haiku*)
10359   version_type=linux # correct to gnu/linux during the next big refactor
10360   need_lib_prefix=no
10361   need_version=no
10362   dynamic_linker="$host_os runtime_loader"
10363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10364   soname_spec='${libname}${release}${shared_ext}$major'
10365   shlibpath_var=LIBRARY_PATH
10366   shlibpath_overrides_runpath=yes
10367   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10368   hardcode_into_libs=yes
10369   ;;
10370
10371 hpux9* | hpux10* | hpux11*)
10372   # Give a soname corresponding to the major version so that dld.sl refuses to
10373   # link against other versions.
10374   version_type=sunos
10375   need_lib_prefix=no
10376   need_version=no
10377   case $host_cpu in
10378   ia64*)
10379     shrext_cmds='.so'
10380     hardcode_into_libs=yes
10381     dynamic_linker="$host_os dld.so"
10382     shlibpath_var=LD_LIBRARY_PATH
10383     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385     soname_spec='${libname}${release}${shared_ext}$major'
10386     if test "X$HPUX_IA64_MODE" = X32; then
10387       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10388     else
10389       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10390     fi
10391     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10392     ;;
10393   hppa*64*)
10394     shrext_cmds='.sl'
10395     hardcode_into_libs=yes
10396     dynamic_linker="$host_os dld.sl"
10397     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10398     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400     soname_spec='${libname}${release}${shared_ext}$major'
10401     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10402     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10403     ;;
10404   *)
10405     shrext_cmds='.sl'
10406     dynamic_linker="$host_os dld.sl"
10407     shlibpath_var=SHLIB_PATH
10408     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410     soname_spec='${libname}${release}${shared_ext}$major'
10411     ;;
10412   esac
10413   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10414   postinstall_cmds='chmod 555 $lib'
10415   # or fails outright, so override atomically:
10416   install_override_mode=555
10417   ;;
10418
10419 interix[3-9]*)
10420   version_type=linux # correct to gnu/linux during the next big refactor
10421   need_lib_prefix=no
10422   need_version=no
10423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10424   soname_spec='${libname}${release}${shared_ext}$major'
10425   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10426   shlibpath_var=LD_LIBRARY_PATH
10427   shlibpath_overrides_runpath=no
10428   hardcode_into_libs=yes
10429   ;;
10430
10431 irix5* | irix6* | nonstopux*)
10432   case $host_os in
10433     nonstopux*) version_type=nonstopux ;;
10434     *)
10435         if test "$lt_cv_prog_gnu_ld" = yes; then
10436                 version_type=linux # correct to gnu/linux during the next big refactor
10437         else
10438                 version_type=irix
10439         fi ;;
10440   esac
10441   need_lib_prefix=no
10442   need_version=no
10443   soname_spec='${libname}${release}${shared_ext}$major'
10444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10445   case $host_os in
10446   irix5* | nonstopux*)
10447     libsuff= shlibsuff=
10448     ;;
10449   *)
10450     case $LD in # libtool.m4 will add one of these switches to LD
10451     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10452       libsuff= shlibsuff= libmagic=32-bit;;
10453     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10454       libsuff=32 shlibsuff=N32 libmagic=N32;;
10455     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10456       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10457     *) libsuff= shlibsuff= libmagic=never-match;;
10458     esac
10459     ;;
10460   esac
10461   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10462   shlibpath_overrides_runpath=no
10463   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10464   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10465   hardcode_into_libs=yes
10466   ;;
10467
10468 # No shared lib support for Linux oldld, aout, or coff.
10469 linux*oldld* | linux*aout* | linux*coff*)
10470   dynamic_linker=no
10471   ;;
10472
10473 # This must be glibc/ELF.
10474 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10475   version_type=linux # correct to gnu/linux during the next big refactor
10476   need_lib_prefix=no
10477   need_version=no
10478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479   soname_spec='${libname}${release}${shared_ext}$major'
10480   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10481   shlibpath_var=LD_LIBRARY_PATH
10482   shlibpath_overrides_runpath=no
10483
10484   # Some binutils ld are patched to set DT_RUNPATH
10485   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   lt_cv_shlibpath_overrides_runpath=no
10489     save_LDFLAGS=$LDFLAGS
10490     save_libdir=$libdir
10491     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10492          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10493     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h.  */
10495
10496 int
10497 main ()
10498 {
10499
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10506   lt_cv_shlibpath_overrides_runpath=yes
10507 fi
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext \
10510     conftest$ac_exeext conftest.$ac_ext
10511     LDFLAGS=$save_LDFLAGS
10512     libdir=$save_libdir
10513
10514 fi
10515
10516   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10517
10518   # This implies no fast_install, which is unacceptable.
10519   # Some rework will be needed to allow for fast_install
10520   # before this can be enabled.
10521   hardcode_into_libs=yes
10522
10523   # Append ld.so.conf contents to the search path
10524   if test -f /etc/ld.so.conf; then
10525     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10526     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10527   fi
10528
10529   # We used to test for /lib/ld.so.1 and disable shared libraries on
10530   # powerpc, because MkLinux only supported shared libraries with the
10531   # GNU dynamic linker.  Since this was broken with cross compilers,
10532   # most powerpc-linux boxes support dynamic linking these days and
10533   # people can always --disable-shared, the test was removed, and we
10534   # assume the GNU/Linux dynamic linker is in use.
10535   dynamic_linker='GNU/Linux ld.so'
10536   ;;
10537
10538 netbsd*)
10539   version_type=sunos
10540   need_lib_prefix=no
10541   need_version=no
10542   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10544     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10545     dynamic_linker='NetBSD (a.out) ld.so'
10546   else
10547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10548     soname_spec='${libname}${release}${shared_ext}$major'
10549     dynamic_linker='NetBSD ld.elf_so'
10550   fi
10551   shlibpath_var=LD_LIBRARY_PATH
10552   shlibpath_overrides_runpath=yes
10553   hardcode_into_libs=yes
10554   ;;
10555
10556 newsos6)
10557   version_type=linux # correct to gnu/linux during the next big refactor
10558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559   shlibpath_var=LD_LIBRARY_PATH
10560   shlibpath_overrides_runpath=yes
10561   ;;
10562
10563 *nto* | *qnx*)
10564   version_type=qnx
10565   need_lib_prefix=no
10566   need_version=no
10567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568   soname_spec='${libname}${release}${shared_ext}$major'
10569   shlibpath_var=LD_LIBRARY_PATH
10570   shlibpath_overrides_runpath=no
10571   hardcode_into_libs=yes
10572   dynamic_linker='ldqnx.so'
10573   ;;
10574
10575 openbsd*)
10576   version_type=sunos
10577   sys_lib_dlsearch_path_spec="/usr/lib"
10578   need_lib_prefix=no
10579   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10580   case $host_os in
10581     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10582     *)                          need_version=no  ;;
10583   esac
10584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10586   shlibpath_var=LD_LIBRARY_PATH
10587   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10588     case $host_os in
10589       openbsd2.[89] | openbsd2.[89].*)
10590         shlibpath_overrides_runpath=no
10591         ;;
10592       *)
10593         shlibpath_overrides_runpath=yes
10594         ;;
10595       esac
10596   else
10597     shlibpath_overrides_runpath=yes
10598   fi
10599   ;;
10600
10601 os2*)
10602   libname_spec='$name'
10603   shrext_cmds=".dll"
10604   need_lib_prefix=no
10605   library_names_spec='$libname${shared_ext} $libname.a'
10606   dynamic_linker='OS/2 ld.exe'
10607   shlibpath_var=LIBPATH
10608   ;;
10609
10610 osf3* | osf4* | osf5*)
10611   version_type=osf
10612   need_lib_prefix=no
10613   need_version=no
10614   soname_spec='${libname}${release}${shared_ext}$major'
10615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616   shlibpath_var=LD_LIBRARY_PATH
10617   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10618   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10619   ;;
10620
10621 rdos*)
10622   dynamic_linker=no
10623   ;;
10624
10625 solaris*)
10626   version_type=linux # correct to gnu/linux during the next big refactor
10627   need_lib_prefix=no
10628   need_version=no
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630   soname_spec='${libname}${release}${shared_ext}$major'
10631   shlibpath_var=LD_LIBRARY_PATH
10632   shlibpath_overrides_runpath=yes
10633   hardcode_into_libs=yes
10634   # ldd complains unless libraries are executable
10635   postinstall_cmds='chmod +x $lib'
10636   ;;
10637
10638 sunos4*)
10639   version_type=sunos
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10641   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10642   shlibpath_var=LD_LIBRARY_PATH
10643   shlibpath_overrides_runpath=yes
10644   if test "$with_gnu_ld" = yes; then
10645     need_lib_prefix=no
10646   fi
10647   need_version=yes
10648   ;;
10649
10650 sysv4 | sysv4.3*)
10651   version_type=linux # correct to gnu/linux during the next big refactor
10652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653   soname_spec='${libname}${release}${shared_ext}$major'
10654   shlibpath_var=LD_LIBRARY_PATH
10655   case $host_vendor in
10656     sni)
10657       shlibpath_overrides_runpath=no
10658       need_lib_prefix=no
10659       runpath_var=LD_RUN_PATH
10660       ;;
10661     siemens)
10662       need_lib_prefix=no
10663       ;;
10664     motorola)
10665       need_lib_prefix=no
10666       need_version=no
10667       shlibpath_overrides_runpath=no
10668       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10669       ;;
10670   esac
10671   ;;
10672
10673 sysv4*MP*)
10674   if test -d /usr/nec ;then
10675     version_type=linux # correct to gnu/linux during the next big refactor
10676     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10677     soname_spec='$libname${shared_ext}.$major'
10678     shlibpath_var=LD_LIBRARY_PATH
10679   fi
10680   ;;
10681
10682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10683   version_type=freebsd-elf
10684   need_lib_prefix=no
10685   need_version=no
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10687   soname_spec='${libname}${release}${shared_ext}$major'
10688   shlibpath_var=LD_LIBRARY_PATH
10689   shlibpath_overrides_runpath=yes
10690   hardcode_into_libs=yes
10691   if test "$with_gnu_ld" = yes; then
10692     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10693   else
10694     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10695     case $host_os in
10696       sco3.2v5*)
10697         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10698         ;;
10699     esac
10700   fi
10701   sys_lib_dlsearch_path_spec='/usr/lib'
10702   ;;
10703
10704 tpf*)
10705   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10706   version_type=linux # correct to gnu/linux during the next big refactor
10707   need_lib_prefix=no
10708   need_version=no
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710   shlibpath_var=LD_LIBRARY_PATH
10711   shlibpath_overrides_runpath=no
10712   hardcode_into_libs=yes
10713   ;;
10714
10715 uts4*)
10716   version_type=linux # correct to gnu/linux during the next big refactor
10717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718   soname_spec='${libname}${release}${shared_ext}$major'
10719   shlibpath_var=LD_LIBRARY_PATH
10720   ;;
10721
10722 *)
10723   dynamic_linker=no
10724   ;;
10725 esac
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10727 $as_echo "$dynamic_linker" >&6; }
10728 test "$dynamic_linker" = no && can_build_shared=no
10729
10730 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10731 if test "$GCC" = yes; then
10732   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10733 fi
10734
10735 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10736   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10737 fi
10738 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10739   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10740 fi
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10834 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10835 hardcode_action=
10836 if test -n "$hardcode_libdir_flag_spec" ||
10837    test -n "$runpath_var" ||
10838    test "X$hardcode_automatic" = "Xyes" ; then
10839
10840   # We can hardcode non-existent directories.
10841   if test "$hardcode_direct" != no &&
10842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10843      # have to relink, otherwise we might link with an installed library
10844      # when we should be linking with a yet-to-be-installed one
10845      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10846      test "$hardcode_minus_L" != no; then
10847     # Linking always hardcodes the temporary library directory.
10848     hardcode_action=relink
10849   else
10850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10851     hardcode_action=immediate
10852   fi
10853 else
10854   # We cannot hardcode anything, or else we can only hardcode existing
10855   # directories.
10856   hardcode_action=unsupported
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10859 $as_echo "$hardcode_action" >&6; }
10860
10861 if test "$hardcode_action" = relink ||
10862    test "$inherit_rpath" = yes; then
10863   # Fast installation is not supported
10864   enable_fast_install=no
10865 elif test "$shlibpath_overrides_runpath" = yes ||
10866      test "$enable_shared" = no; then
10867   # Fast installation is not necessary
10868   enable_fast_install=needless
10869 fi
10870
10871
10872
10873
10874
10875
10876   if test "x$enable_dlopen" != xyes; then
10877   enable_dlopen=unknown
10878   enable_dlopen_self=unknown
10879   enable_dlopen_self_static=unknown
10880 else
10881   lt_cv_dlopen=no
10882   lt_cv_dlopen_libs=
10883
10884   case $host_os in
10885   beos*)
10886     lt_cv_dlopen="load_add_on"
10887     lt_cv_dlopen_libs=
10888     lt_cv_dlopen_self=yes
10889     ;;
10890
10891   mingw* | pw32* | cegcc*)
10892     lt_cv_dlopen="LoadLibrary"
10893     lt_cv_dlopen_libs=
10894     ;;
10895
10896   cygwin*)
10897     lt_cv_dlopen="dlopen"
10898     lt_cv_dlopen_libs=
10899     ;;
10900
10901   darwin*)
10902   # if libdl is installed we need to link against it
10903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10904 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10905 if ${ac_cv_lib_dl_dlopen+:} false; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908   ac_check_lib_save_LIBS=$LIBS
10909 LIBS="-ldl  $LIBS"
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h.  */
10912
10913 /* Override any GCC internal prototype to avoid an error.
10914    Use char because int might match the return type of a GCC
10915    builtin and then its argument prototype would still apply.  */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char dlopen ();
10920 int
10921 main ()
10922 {
10923 return dlopen ();
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 if ac_fn_c_try_link "$LINENO"; then :
10929   ac_cv_lib_dl_dlopen=yes
10930 else
10931   ac_cv_lib_dl_dlopen=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext \
10934     conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_check_lib_save_LIBS
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10940   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10941 else
10942
10943     lt_cv_dlopen="dyld"
10944     lt_cv_dlopen_libs=
10945     lt_cv_dlopen_self=yes
10946
10947 fi
10948
10949     ;;
10950
10951   *)
10952     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10953 if test "x$ac_cv_func_shl_load" = xyes; then :
10954   lt_cv_dlopen="shl_load"
10955 else
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10957 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10958 if ${ac_cv_lib_dld_shl_load+:} false; then :
10959   $as_echo_n "(cached) " >&6
10960 else
10961   ac_check_lib_save_LIBS=$LIBS
10962 LIBS="-ldld  $LIBS"
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h.  */
10965
10966 /* Override any GCC internal prototype to avoid an error.
10967    Use char because int might match the return type of a GCC
10968    builtin and then its argument prototype would still apply.  */
10969 #ifdef __cplusplus
10970 extern "C"
10971 #endif
10972 char shl_load ();
10973 int
10974 main ()
10975 {
10976 return shl_load ();
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"; then :
10982   ac_cv_lib_dld_shl_load=yes
10983 else
10984   ac_cv_lib_dld_shl_load=no
10985 fi
10986 rm -f core conftest.err conftest.$ac_objext \
10987     conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10989 fi
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10991 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10992 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10993   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10994 else
10995   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10996 if test "x$ac_cv_func_dlopen" = xyes; then :
10997   lt_cv_dlopen="dlopen"
10998 else
10999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11001 if ${ac_cv_lib_dl_dlopen+:} false; then :
11002   $as_echo_n "(cached) " >&6
11003 else
11004   ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldl  $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h.  */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010    Use char because int might match the return type of a GCC
11011    builtin and then its argument prototype would still apply.  */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dlopen ();
11016 int
11017 main ()
11018 {
11019 return dlopen ();
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025   ac_cv_lib_dl_dlopen=yes
11026 else
11027   ac_cv_lib_dl_dlopen=no
11028 fi
11029 rm -f core conftest.err conftest.$ac_objext \
11030     conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11035 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11036   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11037 else
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11039 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11040 if ${ac_cv_lib_svld_dlopen+:} false; then :
11041   $as_echo_n "(cached) " >&6
11042 else
11043   ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-lsvld  $LIBS"
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h.  */
11047
11048 /* Override any GCC internal prototype to avoid an error.
11049    Use char because int might match the return type of a GCC
11050    builtin and then its argument prototype would still apply.  */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 char dlopen ();
11055 int
11056 main ()
11057 {
11058 return dlopen ();
11059   ;
11060   return 0;
11061 }
11062 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then :
11064   ac_cv_lib_svld_dlopen=yes
11065 else
11066   ac_cv_lib_svld_dlopen=no
11067 fi
11068 rm -f core conftest.err conftest.$ac_objext \
11069     conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS
11071 fi
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11073 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11074 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11075   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11076 else
11077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11078 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11079 if ${ac_cv_lib_dld_dld_link+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   ac_check_lib_save_LIBS=$LIBS
11083 LIBS="-ldld  $LIBS"
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h.  */
11086
11087 /* Override any GCC internal prototype to avoid an error.
11088    Use char because int might match the return type of a GCC
11089    builtin and then its argument prototype would still apply.  */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char dld_link ();
11094 int
11095 main ()
11096 {
11097 return dld_link ();
11098   ;
11099   return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_c_try_link "$LINENO"; then :
11103   ac_cv_lib_dld_dld_link=yes
11104 else
11105   ac_cv_lib_dld_dld_link=no
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext \
11108     conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11112 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11113 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11114   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11115 fi
11116
11117
11118 fi
11119
11120
11121 fi
11122
11123
11124 fi
11125
11126
11127 fi
11128
11129
11130 fi
11131
11132     ;;
11133   esac
11134
11135   if test "x$lt_cv_dlopen" != xno; then
11136     enable_dlopen=yes
11137   else
11138     enable_dlopen=no
11139   fi
11140
11141   case $lt_cv_dlopen in
11142   dlopen)
11143     save_CPPFLAGS="$CPPFLAGS"
11144     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11145
11146     save_LDFLAGS="$LDFLAGS"
11147     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11148
11149     save_LIBS="$LIBS"
11150     LIBS="$lt_cv_dlopen_libs $LIBS"
11151
11152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11153 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11154 if ${lt_cv_dlopen_self+:} false; then :
11155   $as_echo_n "(cached) " >&6
11156 else
11157           if test "$cross_compiling" = yes; then :
11158   lt_cv_dlopen_self=cross
11159 else
11160   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11161   lt_status=$lt_dlunknown
11162   cat > conftest.$ac_ext <<_LT_EOF
11163 #line $LINENO "configure"
11164 #include "confdefs.h"
11165
11166 #if HAVE_DLFCN_H
11167 #include <dlfcn.h>
11168 #endif
11169
11170 #include <stdio.h>
11171
11172 #ifdef RTLD_GLOBAL
11173 #  define LT_DLGLOBAL           RTLD_GLOBAL
11174 #else
11175 #  ifdef DL_GLOBAL
11176 #    define LT_DLGLOBAL         DL_GLOBAL
11177 #  else
11178 #    define LT_DLGLOBAL         0
11179 #  endif
11180 #endif
11181
11182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11183    find out it does not work in some platform. */
11184 #ifndef LT_DLLAZY_OR_NOW
11185 #  ifdef RTLD_LAZY
11186 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11187 #  else
11188 #    ifdef DL_LAZY
11189 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11190 #    else
11191 #      ifdef RTLD_NOW
11192 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11193 #      else
11194 #        ifdef DL_NOW
11195 #          define LT_DLLAZY_OR_NOW      DL_NOW
11196 #        else
11197 #          define LT_DLLAZY_OR_NOW      0
11198 #        endif
11199 #      endif
11200 #    endif
11201 #  endif
11202 #endif
11203
11204 /* When -fvisbility=hidden is used, assume the code has been annotated
11205    correspondingly for the symbols needed.  */
11206 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11207 int fnord () __attribute__((visibility("default")));
11208 #endif
11209
11210 int fnord () { return 42; }
11211 int main ()
11212 {
11213   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11214   int status = $lt_dlunknown;
11215
11216   if (self)
11217     {
11218       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11219       else
11220         {
11221           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11222           else puts (dlerror ());
11223         }
11224       /* dlclose (self); */
11225     }
11226   else
11227     puts (dlerror ());
11228
11229   return status;
11230 }
11231 _LT_EOF
11232   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11233   (eval $ac_link) 2>&5
11234   ac_status=$?
11235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11236   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11237     (./conftest; exit; ) >&5 2>/dev/null
11238     lt_status=$?
11239     case x$lt_status in
11240       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11241       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11242       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11243     esac
11244   else :
11245     # compilation failed
11246     lt_cv_dlopen_self=no
11247   fi
11248 fi
11249 rm -fr conftest*
11250
11251
11252 fi
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11254 $as_echo "$lt_cv_dlopen_self" >&6; }
11255
11256     if test "x$lt_cv_dlopen_self" = xyes; then
11257       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11258       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11259 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11260 if ${lt_cv_dlopen_self_static+:} false; then :
11261   $as_echo_n "(cached) " >&6
11262 else
11263           if test "$cross_compiling" = yes; then :
11264   lt_cv_dlopen_self_static=cross
11265 else
11266   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11267   lt_status=$lt_dlunknown
11268   cat > conftest.$ac_ext <<_LT_EOF
11269 #line $LINENO "configure"
11270 #include "confdefs.h"
11271
11272 #if HAVE_DLFCN_H
11273 #include <dlfcn.h>
11274 #endif
11275
11276 #include <stdio.h>
11277
11278 #ifdef RTLD_GLOBAL
11279 #  define LT_DLGLOBAL           RTLD_GLOBAL
11280 #else
11281 #  ifdef DL_GLOBAL
11282 #    define LT_DLGLOBAL         DL_GLOBAL
11283 #  else
11284 #    define LT_DLGLOBAL         0
11285 #  endif
11286 #endif
11287
11288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11289    find out it does not work in some platform. */
11290 #ifndef LT_DLLAZY_OR_NOW
11291 #  ifdef RTLD_LAZY
11292 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11293 #  else
11294 #    ifdef DL_LAZY
11295 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11296 #    else
11297 #      ifdef RTLD_NOW
11298 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11299 #      else
11300 #        ifdef DL_NOW
11301 #          define LT_DLLAZY_OR_NOW      DL_NOW
11302 #        else
11303 #          define LT_DLLAZY_OR_NOW      0
11304 #        endif
11305 #      endif
11306 #    endif
11307 #  endif
11308 #endif
11309
11310 /* When -fvisbility=hidden is used, assume the code has been annotated
11311    correspondingly for the symbols needed.  */
11312 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11313 int fnord () __attribute__((visibility("default")));
11314 #endif
11315
11316 int fnord () { return 42; }
11317 int main ()
11318 {
11319   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11320   int status = $lt_dlunknown;
11321
11322   if (self)
11323     {
11324       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11325       else
11326         {
11327           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11328           else puts (dlerror ());
11329         }
11330       /* dlclose (self); */
11331     }
11332   else
11333     puts (dlerror ());
11334
11335   return status;
11336 }
11337 _LT_EOF
11338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11339   (eval $ac_link) 2>&5
11340   ac_status=$?
11341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11343     (./conftest; exit; ) >&5 2>/dev/null
11344     lt_status=$?
11345     case x$lt_status in
11346       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11347       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11348       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11349     esac
11350   else :
11351     # compilation failed
11352     lt_cv_dlopen_self_static=no
11353   fi
11354 fi
11355 rm -fr conftest*
11356
11357
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11360 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11361     fi
11362
11363     CPPFLAGS="$save_CPPFLAGS"
11364     LDFLAGS="$save_LDFLAGS"
11365     LIBS="$save_LIBS"
11366     ;;
11367   esac
11368
11369   case $lt_cv_dlopen_self in
11370   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11371   *) enable_dlopen_self=unknown ;;
11372   esac
11373
11374   case $lt_cv_dlopen_self_static in
11375   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11376   *) enable_dlopen_self_static=unknown ;;
11377   esac
11378 fi
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396 striplib=
11397 old_striplib=
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11399 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11400 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11401   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11402   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; }
11405 else
11406 # FIXME - insert some real tests, host_os isn't really good enough
11407   case $host_os in
11408   darwin*)
11409     if test -n "$STRIP" ; then
11410       striplib="$STRIP -x"
11411       old_striplib="$STRIP -S"
11412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413 $as_echo "yes" >&6; }
11414     else
11415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11417     fi
11418     ;;
11419   *)
11420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11422     ;;
11423   esac
11424 fi
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437   # Report which library types will actually be built
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11439 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11441 $as_echo "$can_build_shared" >&6; }
11442
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11444 $as_echo_n "checking whether to build shared libraries... " >&6; }
11445   test "$can_build_shared" = "no" && enable_shared=no
11446
11447   # On AIX, shared libraries and static libraries use the same namespace, and
11448   # are all built from PIC.
11449   case $host_os in
11450   aix3*)
11451     test "$enable_shared" = yes && enable_static=no
11452     if test -n "$RANLIB"; then
11453       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11454       postinstall_cmds='$RANLIB $lib'
11455     fi
11456     ;;
11457
11458   aix[4-9]*)
11459     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11460       test "$enable_shared" = yes && enable_static=no
11461     fi
11462     ;;
11463   esac
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11465 $as_echo "$enable_shared" >&6; }
11466
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11468 $as_echo_n "checking whether to build static libraries... " >&6; }
11469   # Make sure either enable_shared or enable_static is yes.
11470   test "$enable_shared" = yes || enable_static=yes
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11472 $as_echo "$enable_static" >&6; }
11473
11474
11475
11476
11477 fi
11478 ac_ext=c
11479 ac_cpp='$CPP $CPPFLAGS'
11480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11483
11484 CC="$lt_save_CC"
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500         ac_config_commands="$ac_config_commands libtool"
11501
11502
11503
11504
11505 # Only expand once:
11506
11507
11508
11509 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11522 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11523 if ${ac_cv_prog_cc_c99+:} false; then :
11524   $as_echo_n "(cached) " >&6
11525 else
11526   ac_cv_prog_cc_c99=no
11527 ac_save_CC=$CC
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h.  */
11530 #include <stdarg.h>
11531 #include <stdbool.h>
11532 #include <stdlib.h>
11533 #include <wchar.h>
11534 #include <stdio.h>
11535
11536 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11537 #define debug(...) fprintf (stderr, __VA_ARGS__)
11538 #define showlist(...) puts (#__VA_ARGS__)
11539 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11540 static void
11541 test_varargs_macros (void)
11542 {
11543   int x = 1234;
11544   int y = 5678;
11545   debug ("Flag");
11546   debug ("X = %d\n", x);
11547   showlist (The first, second, and third items.);
11548   report (x>y, "x is %d but y is %d", x, y);
11549 }
11550
11551 // Check long long types.
11552 #define BIG64 18446744073709551615ull
11553 #define BIG32 4294967295ul
11554 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11555 #if !BIG_OK
11556   your preprocessor is broken;
11557 #endif
11558 #if BIG_OK
11559 #else
11560   your preprocessor is broken;
11561 #endif
11562 static long long int bignum = -9223372036854775807LL;
11563 static unsigned long long int ubignum = BIG64;
11564
11565 struct incomplete_array
11566 {
11567   int datasize;
11568   double data[];
11569 };
11570
11571 struct named_init {
11572   int number;
11573   const wchar_t *name;
11574   double average;
11575 };
11576
11577 typedef const char *ccp;
11578
11579 static inline int
11580 test_restrict (ccp restrict text)
11581 {
11582   // See if C++-style comments work.
11583   // Iterate through items via the restricted pointer.
11584   // Also check for declarations in for loops.
11585   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11586     continue;
11587   return 0;
11588 }
11589
11590 // Check varargs and va_copy.
11591 static void
11592 test_varargs (const char *format, ...)
11593 {
11594   va_list args;
11595   va_start (args, format);
11596   va_list args_copy;
11597   va_copy (args_copy, args);
11598
11599   const char *str;
11600   int number;
11601   float fnumber;
11602
11603   while (*format)
11604     {
11605       switch (*format++)
11606         {
11607         case 's': // string
11608           str = va_arg (args_copy, const char *);
11609           break;
11610         case 'd': // int
11611           number = va_arg (args_copy, int);
11612           break;
11613         case 'f': // float
11614           fnumber = va_arg (args_copy, double);
11615           break;
11616         default:
11617           break;
11618         }
11619     }
11620   va_end (args_copy);
11621   va_end (args);
11622 }
11623
11624 int
11625 main ()
11626 {
11627
11628   // Check bool.
11629   _Bool success = false;
11630
11631   // Check restrict.
11632   if (test_restrict ("String literal") == 0)
11633     success = true;
11634   char *restrict newvar = "Another string";
11635
11636   // Check varargs.
11637   test_varargs ("s, d' f .", "string", 65, 34.234);
11638   test_varargs_macros ();
11639
11640   // Check flexible array members.
11641   struct incomplete_array *ia =
11642     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11643   ia->datasize = 10;
11644   for (int i = 0; i < ia->datasize; ++i)
11645     ia->data[i] = i * 1.234;
11646
11647   // Check named initializers.
11648   struct named_init ni = {
11649     .number = 34,
11650     .name = L"Test wide string",
11651     .average = 543.34343,
11652   };
11653
11654   ni.number = 58;
11655
11656   int dynamic_array[ni.number];
11657   dynamic_array[ni.number - 1] = 543;
11658
11659   // work around unused variable warnings
11660   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11661           || dynamic_array[ni.number - 1] != 543);
11662
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11668 do
11669   CC="$ac_save_CC $ac_arg"
11670   if ac_fn_c_try_compile "$LINENO"; then :
11671   ac_cv_prog_cc_c99=$ac_arg
11672 fi
11673 rm -f core conftest.err conftest.$ac_objext
11674   test "x$ac_cv_prog_cc_c99" != "xno" && break
11675 done
11676 rm -f conftest.$ac_ext
11677 CC=$ac_save_CC
11678
11679 fi
11680 # AC_CACHE_VAL
11681 case "x$ac_cv_prog_cc_c99" in
11682   x)
11683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11684 $as_echo "none needed" >&6; } ;;
11685   xno)
11686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11687 $as_echo "unsupported" >&6; } ;;
11688   *)
11689     CC="$CC $ac_cv_prog_cc_c99"
11690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11691 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11692 esac
11693 if test "x$ac_cv_prog_cc_c99" != xno; then :
11694
11695 fi
11696
11697
11698
11699
11700
11701
11702 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11703 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11704   CLANGCC="yes"
11705 else
11706   CLANGCC="no"
11707 fi
11708
11709 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11710 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11711   INTELCC="yes"
11712 else
11713   INTELCC="no"
11714 fi
11715
11716 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11717 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11718   SUNCC="yes"
11719 else
11720   SUNCC="no"
11721 fi
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11732         if test -n "$ac_tool_prefix"; then
11733   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11734 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11738   $as_echo_n "(cached) " >&6
11739 else
11740   case $PKG_CONFIG in
11741   [\\/]* | ?:[\\/]*)
11742   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11743   ;;
11744   *)
11745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   test -z "$as_dir" && as_dir=.
11750     for ac_exec_ext in '' $ac_executable_extensions; do
11751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757   done
11758 IFS=$as_save_IFS
11759
11760   ;;
11761 esac
11762 fi
11763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11764 if test -n "$PKG_CONFIG"; then
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11766 $as_echo "$PKG_CONFIG" >&6; }
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772
11773 fi
11774 if test -z "$ac_cv_path_PKG_CONFIG"; then
11775   ac_pt_PKG_CONFIG=$PKG_CONFIG
11776   # Extract the first word of "pkg-config", so it can be a program name with args.
11777 set dummy pkg-config; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   case $ac_pt_PKG_CONFIG in
11784   [\\/]* | ?:[\\/]*)
11785   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11786   ;;
11787   *)
11788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793     for ac_exec_ext in '' $ac_executable_extensions; do
11794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800   done
11801 IFS=$as_save_IFS
11802
11803   ;;
11804 esac
11805 fi
11806 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11807 if test -n "$ac_pt_PKG_CONFIG"; then
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11809 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814
11815   if test "x$ac_pt_PKG_CONFIG" = x; then
11816     PKG_CONFIG=""
11817   else
11818     case $cross_compiling:$ac_tool_warned in
11819 yes:)
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11822 ac_tool_warned=yes ;;
11823 esac
11824     PKG_CONFIG=$ac_pt_PKG_CONFIG
11825   fi
11826 else
11827   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11828 fi
11829
11830 fi
11831 if test -n "$PKG_CONFIG"; then
11832         _pkg_min_version=0.9.0
11833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11834 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11835         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11836                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11838         else
11839                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841                 PKG_CONFIG=""
11842         fi
11843 fi
11844
11845
11846
11847
11848
11849 # Check whether --enable-selective-werror was given.
11850 if test "${enable_selective_werror+set}" = set; then :
11851   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11852 else
11853   SELECTIVE_WERROR=yes
11854 fi
11855
11856
11857
11858
11859
11860 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11861 if test "x$SUNCC" = "xyes"; then
11862     BASE_CFLAGS="-v"
11863 else
11864     BASE_CFLAGS=""
11865 fi
11866
11867 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 xorg_testset_save_CFLAGS="$CFLAGS"
11882
11883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11884         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11885         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11886 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11887 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h.  */
11892 int i;
11893 _ACEOF
11894 if ac_fn_c_try_compile "$LINENO"; then :
11895   xorg_cv_cc_flag_unknown_warning_option=yes
11896 else
11897   xorg_cv_cc_flag_unknown_warning_option=no
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11902 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11903         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11904         CFLAGS="$xorg_testset_save_CFLAGS"
11905 fi
11906
11907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11908         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11909                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11910         fi
11911         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11913 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11914 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11915   $as_echo_n "(cached) " >&6
11916 else
11917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h.  */
11919 int i;
11920 _ACEOF
11921 if ac_fn_c_try_compile "$LINENO"; then :
11922   xorg_cv_cc_flag_unused_command_line_argument=yes
11923 else
11924   xorg_cv_cc_flag_unused_command_line_argument=no
11925 fi
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11929 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11930         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11931         CFLAGS="$xorg_testset_save_CFLAGS"
11932 fi
11933
11934 found="no"
11935
11936         if test $found = "no" ; then
11937                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11938                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11939                 fi
11940
11941                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11942                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11943                 fi
11944
11945                 CFLAGS="$CFLAGS -Wall"
11946
11947                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11948 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11949                 cacheid=xorg_cv_cc_flag__Wall
11950                 if eval \${$cacheid+:} false; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h.  */
11955 int i;
11956 int
11957 main ()
11958 {
11959
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_link "$LINENO"; then :
11965   eval $cacheid=yes
11966 else
11967   eval $cacheid=no
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext \
11970     conftest$ac_exeext conftest.$ac_ext
11971 fi
11972
11973
11974                 CFLAGS="$xorg_testset_save_CFLAGS"
11975
11976                 eval supported=\$$cacheid
11977                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11978 $as_echo "$supported" >&6; }
11979                 if test "$supported" = "yes" ; then
11980                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
11981                         found="yes"
11982                 fi
11983         fi
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 xorg_testset_save_CFLAGS="$CFLAGS"
12000
12001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12002         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12004 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12005 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12006   $as_echo_n "(cached) " >&6
12007 else
12008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h.  */
12010 int i;
12011 _ACEOF
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013   xorg_cv_cc_flag_unknown_warning_option=yes
12014 else
12015   xorg_cv_cc_flag_unknown_warning_option=no
12016 fi
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12020 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12021         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12022         CFLAGS="$xorg_testset_save_CFLAGS"
12023 fi
12024
12025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12026         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12027                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12028         fi
12029         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12031 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12032 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037 int i;
12038 _ACEOF
12039 if ac_fn_c_try_compile "$LINENO"; then :
12040   xorg_cv_cc_flag_unused_command_line_argument=yes
12041 else
12042   xorg_cv_cc_flag_unused_command_line_argument=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 fi
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12047 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12048         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12049         CFLAGS="$xorg_testset_save_CFLAGS"
12050 fi
12051
12052 found="no"
12053
12054         if test $found = "no" ; then
12055                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12056                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12057                 fi
12058
12059                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12060                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12061                 fi
12062
12063                 CFLAGS="$CFLAGS -Wpointer-arith"
12064
12065                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12066 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12067                 cacheid=xorg_cv_cc_flag__Wpointer_arith
12068                 if eval \${$cacheid+:} false; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h.  */
12073 int i;
12074 int
12075 main ()
12076 {
12077
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083   eval $cacheid=yes
12084 else
12085   eval $cacheid=no
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext \
12088     conftest$ac_exeext conftest.$ac_ext
12089 fi
12090
12091
12092                 CFLAGS="$xorg_testset_save_CFLAGS"
12093
12094                 eval supported=\$$cacheid
12095                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12096 $as_echo "$supported" >&6; }
12097                 if test "$supported" = "yes" ; then
12098                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12099                         found="yes"
12100                 fi
12101         fi
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117 xorg_testset_save_CFLAGS="$CFLAGS"
12118
12119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12120         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12124   $as_echo_n "(cached) " >&6
12125 else
12126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h.  */
12128 int i;
12129 _ACEOF
12130 if ac_fn_c_try_compile "$LINENO"; then :
12131   xorg_cv_cc_flag_unknown_warning_option=yes
12132 else
12133   xorg_cv_cc_flag_unknown_warning_option=no
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12139         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12140         CFLAGS="$xorg_testset_save_CFLAGS"
12141 fi
12142
12143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12144         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12145                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12146         fi
12147         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12151   $as_echo_n "(cached) " >&6
12152 else
12153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h.  */
12155 int i;
12156 _ACEOF
12157 if ac_fn_c_try_compile "$LINENO"; then :
12158   xorg_cv_cc_flag_unused_command_line_argument=yes
12159 else
12160   xorg_cv_cc_flag_unused_command_line_argument=no
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12166         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12167         CFLAGS="$xorg_testset_save_CFLAGS"
12168 fi
12169
12170 found="no"
12171
12172         if test $found = "no" ; then
12173                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12174                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12175                 fi
12176
12177                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12178                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12179                 fi
12180
12181                 CFLAGS="$CFLAGS -Wmissing-declarations"
12182
12183                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12184 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12185                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12186                 if eval \${$cacheid+:} false; then :
12187   $as_echo_n "(cached) " >&6
12188 else
12189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h.  */
12191 int i;
12192 int
12193 main ()
12194 {
12195
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 if ac_fn_c_try_link "$LINENO"; then :
12201   eval $cacheid=yes
12202 else
12203   eval $cacheid=no
12204 fi
12205 rm -f core conftest.err conftest.$ac_objext \
12206     conftest$ac_exeext conftest.$ac_ext
12207 fi
12208
12209
12210                 CFLAGS="$xorg_testset_save_CFLAGS"
12211
12212                 eval supported=\$$cacheid
12213                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12214 $as_echo "$supported" >&6; }
12215                 if test "$supported" = "yes" ; then
12216                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12217                         found="yes"
12218                 fi
12219         fi
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235 xorg_testset_save_CFLAGS="$CFLAGS"
12236
12237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12238         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12240 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12241 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h.  */
12246 int i;
12247 _ACEOF
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249   xorg_cv_cc_flag_unknown_warning_option=yes
12250 else
12251   xorg_cv_cc_flag_unknown_warning_option=no
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12256 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12257         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12258         CFLAGS="$xorg_testset_save_CFLAGS"
12259 fi
12260
12261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12262         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12263                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12264         fi
12265         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12267 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12268 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h.  */
12273 int i;
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"; then :
12276   xorg_cv_cc_flag_unused_command_line_argument=yes
12277 else
12278   xorg_cv_cc_flag_unused_command_line_argument=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12283 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12284         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12285         CFLAGS="$xorg_testset_save_CFLAGS"
12286 fi
12287
12288 found="no"
12289
12290         if test $found = "no" ; then
12291                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12292                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12293                 fi
12294
12295                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12296                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12297                 fi
12298
12299                 CFLAGS="$CFLAGS -Wformat=2"
12300
12301                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12302 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12303                 cacheid=xorg_cv_cc_flag__Wformat_2
12304                 if eval \${$cacheid+:} false; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h.  */
12309 int i;
12310 int
12311 main ()
12312 {
12313
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"; then :
12319   eval $cacheid=yes
12320 else
12321   eval $cacheid=no
12322 fi
12323 rm -f core conftest.err conftest.$ac_objext \
12324     conftest$ac_exeext conftest.$ac_ext
12325 fi
12326
12327
12328                 CFLAGS="$xorg_testset_save_CFLAGS"
12329
12330                 eval supported=\$$cacheid
12331                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12332 $as_echo "$supported" >&6; }
12333                 if test "$supported" = "yes" ; then
12334                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12335                         found="yes"
12336                 fi
12337         fi
12338
12339         if test $found = "no" ; then
12340                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12341                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12342                 fi
12343
12344                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12345                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12346                 fi
12347
12348                 CFLAGS="$CFLAGS -Wformat"
12349
12350                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12351 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12352                 cacheid=xorg_cv_cc_flag__Wformat
12353                 if eval \${$cacheid+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h.  */
12358 int i;
12359 int
12360 main ()
12361 {
12362
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"; then :
12368   eval $cacheid=yes
12369 else
12370   eval $cacheid=no
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext \
12373     conftest$ac_exeext conftest.$ac_ext
12374 fi
12375
12376
12377                 CFLAGS="$xorg_testset_save_CFLAGS"
12378
12379                 eval supported=\$$cacheid
12380                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12381 $as_echo "$supported" >&6; }
12382                 if test "$supported" = "yes" ; then
12383                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12384                         found="yes"
12385                 fi
12386         fi
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404 xorg_testset_save_CFLAGS="$CFLAGS"
12405
12406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12407         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h.  */
12415 int i;
12416 _ACEOF
12417 if ac_fn_c_try_compile "$LINENO"; then :
12418   xorg_cv_cc_flag_unknown_warning_option=yes
12419 else
12420   xorg_cv_cc_flag_unknown_warning_option=no
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12426         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12427         CFLAGS="$xorg_testset_save_CFLAGS"
12428 fi
12429
12430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12431         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12432                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12433         fi
12434         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h.  */
12442 int i;
12443 _ACEOF
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445   xorg_cv_cc_flag_unused_command_line_argument=yes
12446 else
12447   xorg_cv_cc_flag_unused_command_line_argument=no
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12453         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12454         CFLAGS="$xorg_testset_save_CFLAGS"
12455 fi
12456
12457 found="no"
12458
12459         if test $found = "no" ; then
12460                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12461                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12462                 fi
12463
12464                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12465                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12466                 fi
12467
12468                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12469
12470                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12471 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12472                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12473                 if eval \${$cacheid+:} false; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h.  */
12478 int i;
12479 int
12480 main ()
12481 {
12482
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488   eval $cacheid=yes
12489 else
12490   eval $cacheid=no
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext \
12493     conftest$ac_exeext conftest.$ac_ext
12494 fi
12495
12496
12497                 CFLAGS="$xorg_testset_save_CFLAGS"
12498
12499                 eval supported=\$$cacheid
12500                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12501 $as_echo "$supported" >&6; }
12502                 if test "$supported" = "yes" ; then
12503                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12504                         found="yes"
12505                 fi
12506         fi
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522 xorg_testset_save_CFLAGS="$CFLAGS"
12523
12524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12525         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12528 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12529   $as_echo_n "(cached) " >&6
12530 else
12531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h.  */
12533 int i;
12534 _ACEOF
12535 if ac_fn_c_try_compile "$LINENO"; then :
12536   xorg_cv_cc_flag_unknown_warning_option=yes
12537 else
12538   xorg_cv_cc_flag_unknown_warning_option=no
12539 fi
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12544         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12545         CFLAGS="$xorg_testset_save_CFLAGS"
12546 fi
12547
12548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12549         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12550                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12551         fi
12552         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12553         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h.  */
12560 int i;
12561 _ACEOF
12562 if ac_fn_c_try_compile "$LINENO"; then :
12563   xorg_cv_cc_flag_unused_command_line_argument=yes
12564 else
12565   xorg_cv_cc_flag_unused_command_line_argument=no
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568 fi
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12571         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12572         CFLAGS="$xorg_testset_save_CFLAGS"
12573 fi
12574
12575 found="no"
12576
12577         if test $found = "no" ; then
12578                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12579                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12580                 fi
12581
12582                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12583                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12584                 fi
12585
12586                 CFLAGS="$CFLAGS -Wmissing-prototypes"
12587
12588                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12589 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12590                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12591                 if eval \${$cacheid+:} false; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h.  */
12596 int i;
12597 int
12598 main ()
12599 {
12600
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606   eval $cacheid=yes
12607 else
12608   eval $cacheid=no
12609 fi
12610 rm -f core conftest.err conftest.$ac_objext \
12611     conftest$ac_exeext conftest.$ac_ext
12612 fi
12613
12614
12615                 CFLAGS="$xorg_testset_save_CFLAGS"
12616
12617                 eval supported=\$$cacheid
12618                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12619 $as_echo "$supported" >&6; }
12620                 if test "$supported" = "yes" ; then
12621                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12622                         found="yes"
12623                 fi
12624         fi
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640 xorg_testset_save_CFLAGS="$CFLAGS"
12641
12642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12643         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12647   $as_echo_n "(cached) " >&6
12648 else
12649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h.  */
12651 int i;
12652 _ACEOF
12653 if ac_fn_c_try_compile "$LINENO"; then :
12654   xorg_cv_cc_flag_unknown_warning_option=yes
12655 else
12656   xorg_cv_cc_flag_unknown_warning_option=no
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12662         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12663         CFLAGS="$xorg_testset_save_CFLAGS"
12664 fi
12665
12666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12667         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12668                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12669         fi
12670         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12674   $as_echo_n "(cached) " >&6
12675 else
12676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h.  */
12678 int i;
12679 _ACEOF
12680 if ac_fn_c_try_compile "$LINENO"; then :
12681   xorg_cv_cc_flag_unused_command_line_argument=yes
12682 else
12683   xorg_cv_cc_flag_unused_command_line_argument=no
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 fi
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12689         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12690         CFLAGS="$xorg_testset_save_CFLAGS"
12691 fi
12692
12693 found="no"
12694
12695         if test $found = "no" ; then
12696                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12697                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12698                 fi
12699
12700                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12701                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12702                 fi
12703
12704                 CFLAGS="$CFLAGS -Wnested-externs"
12705
12706                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12707 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12708                 cacheid=xorg_cv_cc_flag__Wnested_externs
12709                 if eval \${$cacheid+:} false; then :
12710   $as_echo_n "(cached) " >&6
12711 else
12712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h.  */
12714 int i;
12715 int
12716 main ()
12717 {
12718
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724   eval $cacheid=yes
12725 else
12726   eval $cacheid=no
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext \
12729     conftest$ac_exeext conftest.$ac_ext
12730 fi
12731
12732
12733                 CFLAGS="$xorg_testset_save_CFLAGS"
12734
12735                 eval supported=\$$cacheid
12736                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12737 $as_echo "$supported" >&6; }
12738                 if test "$supported" = "yes" ; then
12739                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12740                         found="yes"
12741                 fi
12742         fi
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758 xorg_testset_save_CFLAGS="$CFLAGS"
12759
12760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12761         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12762         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h.  */
12769 int i;
12770 _ACEOF
12771 if ac_fn_c_try_compile "$LINENO"; then :
12772   xorg_cv_cc_flag_unknown_warning_option=yes
12773 else
12774   xorg_cv_cc_flag_unknown_warning_option=no
12775 fi
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12780         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12781         CFLAGS="$xorg_testset_save_CFLAGS"
12782 fi
12783
12784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12785         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12786                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12787         fi
12788         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12792   $as_echo_n "(cached) " >&6
12793 else
12794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h.  */
12796 int i;
12797 _ACEOF
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799   xorg_cv_cc_flag_unused_command_line_argument=yes
12800 else
12801   xorg_cv_cc_flag_unused_command_line_argument=no
12802 fi
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12807         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12808         CFLAGS="$xorg_testset_save_CFLAGS"
12809 fi
12810
12811 found="no"
12812
12813         if test $found = "no" ; then
12814                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12815                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12816                 fi
12817
12818                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12819                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12820                 fi
12821
12822                 CFLAGS="$CFLAGS -Wbad-function-cast"
12823
12824                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12825 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12826                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12827                 if eval \${$cacheid+:} false; then :
12828   $as_echo_n "(cached) " >&6
12829 else
12830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h.  */
12832 int i;
12833 int
12834 main ()
12835 {
12836
12837   ;
12838   return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_link "$LINENO"; then :
12842   eval $cacheid=yes
12843 else
12844   eval $cacheid=no
12845 fi
12846 rm -f core conftest.err conftest.$ac_objext \
12847     conftest$ac_exeext conftest.$ac_ext
12848 fi
12849
12850
12851                 CFLAGS="$xorg_testset_save_CFLAGS"
12852
12853                 eval supported=\$$cacheid
12854                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12855 $as_echo "$supported" >&6; }
12856                 if test "$supported" = "yes" ; then
12857                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12858                         found="yes"
12859                 fi
12860         fi
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876 xorg_testset_save_CFLAGS="$CFLAGS"
12877
12878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12879         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12881 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12882 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12883   $as_echo_n "(cached) " >&6
12884 else
12885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h.  */
12887 int i;
12888 _ACEOF
12889 if ac_fn_c_try_compile "$LINENO"; then :
12890   xorg_cv_cc_flag_unknown_warning_option=yes
12891 else
12892   xorg_cv_cc_flag_unknown_warning_option=no
12893 fi
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 fi
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12897 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12898         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12899         CFLAGS="$xorg_testset_save_CFLAGS"
12900 fi
12901
12902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12903         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12904                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12905         fi
12906         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12908 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12909 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12910   $as_echo_n "(cached) " >&6
12911 else
12912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h.  */
12914 int i;
12915 _ACEOF
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917   xorg_cv_cc_flag_unused_command_line_argument=yes
12918 else
12919   xorg_cv_cc_flag_unused_command_line_argument=no
12920 fi
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 fi
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12924 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12925         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12926         CFLAGS="$xorg_testset_save_CFLAGS"
12927 fi
12928
12929 found="no"
12930
12931         if test $found = "no" ; then
12932                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12933                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12934                 fi
12935
12936                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12937                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12938                 fi
12939
12940                 CFLAGS="$CFLAGS -Wold-style-definition"
12941
12942                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12943 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12944                 cacheid=xorg_cv_cc_flag__Wold_style_definition
12945                 if eval \${$cacheid+:} false; then :
12946   $as_echo_n "(cached) " >&6
12947 else
12948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h.  */
12950 int i;
12951 int
12952 main ()
12953 {
12954
12955   ;
12956   return 0;
12957 }
12958 _ACEOF
12959 if ac_fn_c_try_link "$LINENO"; then :
12960   eval $cacheid=yes
12961 else
12962   eval $cacheid=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext \
12965     conftest$ac_exeext conftest.$ac_ext
12966 fi
12967
12968
12969                 CFLAGS="$xorg_testset_save_CFLAGS"
12970
12971                 eval supported=\$$cacheid
12972                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12973 $as_echo "$supported" >&6; }
12974                 if test "$supported" = "yes" ; then
12975                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12976                         found="yes"
12977                 fi
12978         fi
12979
12980         if test $found = "no" ; then
12981                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12982                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12983                 fi
12984
12985                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12986                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12987                 fi
12988
12989                 CFLAGS="$CFLAGS -fd"
12990
12991                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12992 $as_echo_n "checking if $CC supports -fd... " >&6; }
12993                 cacheid=xorg_cv_cc_flag__fd
12994                 if eval \${$cacheid+:} false; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h.  */
12999 int i;
13000 int
13001 main ()
13002 {
13003
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 if ac_fn_c_try_link "$LINENO"; then :
13009   eval $cacheid=yes
13010 else
13011   eval $cacheid=no
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext \
13014     conftest$ac_exeext conftest.$ac_ext
13015 fi
13016
13017
13018                 CFLAGS="$xorg_testset_save_CFLAGS"
13019
13020                 eval supported=\$$cacheid
13021                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13022 $as_echo "$supported" >&6; }
13023                 if test "$supported" = "yes" ; then
13024                         BASE_CFLAGS="$BASE_CFLAGS -fd"
13025                         found="yes"
13026                 fi
13027         fi
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043 xorg_testset_save_CFLAGS="$CFLAGS"
13044
13045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13046         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13047         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13050   $as_echo_n "(cached) " >&6
13051 else
13052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h.  */
13054 int i;
13055 _ACEOF
13056 if ac_fn_c_try_compile "$LINENO"; then :
13057   xorg_cv_cc_flag_unknown_warning_option=yes
13058 else
13059   xorg_cv_cc_flag_unknown_warning_option=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13065         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13066         CFLAGS="$xorg_testset_save_CFLAGS"
13067 fi
13068
13069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13070         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13071                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13072         fi
13073         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13077   $as_echo_n "(cached) " >&6
13078 else
13079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h.  */
13081 int i;
13082 _ACEOF
13083 if ac_fn_c_try_compile "$LINENO"; then :
13084   xorg_cv_cc_flag_unused_command_line_argument=yes
13085 else
13086   xorg_cv_cc_flag_unused_command_line_argument=no
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 fi
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13092         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13093         CFLAGS="$xorg_testset_save_CFLAGS"
13094 fi
13095
13096 found="no"
13097
13098         if test $found = "no" ; then
13099                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13100                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13101                 fi
13102
13103                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13104                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13105                 fi
13106
13107                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13108
13109                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13110 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13111                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13112                 if eval \${$cacheid+:} false; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h.  */
13117 int i;
13118 int
13119 main ()
13120 {
13121
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 if ac_fn_c_try_link "$LINENO"; then :
13127   eval $cacheid=yes
13128 else
13129   eval $cacheid=no
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext \
13132     conftest$ac_exeext conftest.$ac_ext
13133 fi
13134
13135
13136                 CFLAGS="$xorg_testset_save_CFLAGS"
13137
13138                 eval supported=\$$cacheid
13139                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13140 $as_echo "$supported" >&6; }
13141                 if test "$supported" = "yes" ; then
13142                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13143                         found="yes"
13144                 fi
13145         fi
13146
13147
13148
13149
13150
13151 # This chunk adds additional warnings that could catch undesired effects.
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165 xorg_testset_save_CFLAGS="$CFLAGS"
13166
13167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13168         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13169         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13172   $as_echo_n "(cached) " >&6
13173 else
13174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h.  */
13176 int i;
13177 _ACEOF
13178 if ac_fn_c_try_compile "$LINENO"; then :
13179   xorg_cv_cc_flag_unknown_warning_option=yes
13180 else
13181   xorg_cv_cc_flag_unknown_warning_option=no
13182 fi
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 fi
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13187         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13188         CFLAGS="$xorg_testset_save_CFLAGS"
13189 fi
13190
13191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13192         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13193                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13194         fi
13195         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13199   $as_echo_n "(cached) " >&6
13200 else
13201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h.  */
13203 int i;
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206   xorg_cv_cc_flag_unused_command_line_argument=yes
13207 else
13208   xorg_cv_cc_flag_unused_command_line_argument=no
13209 fi
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 fi
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13214         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13215         CFLAGS="$xorg_testset_save_CFLAGS"
13216 fi
13217
13218 found="no"
13219
13220         if test $found = "no" ; then
13221                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13222                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13223                 fi
13224
13225                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13226                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13227                 fi
13228
13229                 CFLAGS="$CFLAGS -Wunused"
13230
13231                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13232 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13233                 cacheid=xorg_cv_cc_flag__Wunused
13234                 if eval \${$cacheid+:} false; then :
13235   $as_echo_n "(cached) " >&6
13236 else
13237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h.  */
13239 int i;
13240 int
13241 main ()
13242 {
13243
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 if ac_fn_c_try_link "$LINENO"; then :
13249   eval $cacheid=yes
13250 else
13251   eval $cacheid=no
13252 fi
13253 rm -f core conftest.err conftest.$ac_objext \
13254     conftest$ac_exeext conftest.$ac_ext
13255 fi
13256
13257
13258                 CFLAGS="$xorg_testset_save_CFLAGS"
13259
13260                 eval supported=\$$cacheid
13261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13262 $as_echo "$supported" >&6; }
13263                 if test "$supported" = "yes" ; then
13264                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13265                         found="yes"
13266                 fi
13267         fi
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283 xorg_testset_save_CFLAGS="$CFLAGS"
13284
13285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13286         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13290   $as_echo_n "(cached) " >&6
13291 else
13292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h.  */
13294 int i;
13295 _ACEOF
13296 if ac_fn_c_try_compile "$LINENO"; then :
13297   xorg_cv_cc_flag_unknown_warning_option=yes
13298 else
13299   xorg_cv_cc_flag_unknown_warning_option=no
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13305         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13306         CFLAGS="$xorg_testset_save_CFLAGS"
13307 fi
13308
13309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13310         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13311                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13312         fi
13313         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13317   $as_echo_n "(cached) " >&6
13318 else
13319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h.  */
13321 int i;
13322 _ACEOF
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324   xorg_cv_cc_flag_unused_command_line_argument=yes
13325 else
13326   xorg_cv_cc_flag_unused_command_line_argument=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13332         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13333         CFLAGS="$xorg_testset_save_CFLAGS"
13334 fi
13335
13336 found="no"
13337
13338         if test $found = "no" ; then
13339                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13340                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13341                 fi
13342
13343                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13344                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13345                 fi
13346
13347                 CFLAGS="$CFLAGS -Wuninitialized"
13348
13349                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13350 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13351                 cacheid=xorg_cv_cc_flag__Wuninitialized
13352                 if eval \${$cacheid+:} false; then :
13353   $as_echo_n "(cached) " >&6
13354 else
13355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h.  */
13357 int i;
13358 int
13359 main ()
13360 {
13361
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367   eval $cacheid=yes
13368 else
13369   eval $cacheid=no
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext \
13372     conftest$ac_exeext conftest.$ac_ext
13373 fi
13374
13375
13376                 CFLAGS="$xorg_testset_save_CFLAGS"
13377
13378                 eval supported=\$$cacheid
13379                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13380 $as_echo "$supported" >&6; }
13381                 if test "$supported" = "yes" ; then
13382                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13383                         found="yes"
13384                 fi
13385         fi
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401 xorg_testset_save_CFLAGS="$CFLAGS"
13402
13403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13404         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13408   $as_echo_n "(cached) " >&6
13409 else
13410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h.  */
13412 int i;
13413 _ACEOF
13414 if ac_fn_c_try_compile "$LINENO"; then :
13415   xorg_cv_cc_flag_unknown_warning_option=yes
13416 else
13417   xorg_cv_cc_flag_unknown_warning_option=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13423         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13424         CFLAGS="$xorg_testset_save_CFLAGS"
13425 fi
13426
13427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13428         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13429                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13430         fi
13431         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13435   $as_echo_n "(cached) " >&6
13436 else
13437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h.  */
13439 int i;
13440 _ACEOF
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442   xorg_cv_cc_flag_unused_command_line_argument=yes
13443 else
13444   xorg_cv_cc_flag_unused_command_line_argument=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13450         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13451         CFLAGS="$xorg_testset_save_CFLAGS"
13452 fi
13453
13454 found="no"
13455
13456         if test $found = "no" ; then
13457                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13458                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13459                 fi
13460
13461                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13462                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13463                 fi
13464
13465                 CFLAGS="$CFLAGS -Wshadow"
13466
13467                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13468 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13469                 cacheid=xorg_cv_cc_flag__Wshadow
13470                 if eval \${$cacheid+:} false; then :
13471   $as_echo_n "(cached) " >&6
13472 else
13473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h.  */
13475 int i;
13476 int
13477 main ()
13478 {
13479
13480   ;
13481   return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485   eval $cacheid=yes
13486 else
13487   eval $cacheid=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490     conftest$ac_exeext conftest.$ac_ext
13491 fi
13492
13493
13494                 CFLAGS="$xorg_testset_save_CFLAGS"
13495
13496                 eval supported=\$$cacheid
13497                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13498 $as_echo "$supported" >&6; }
13499                 if test "$supported" = "yes" ; then
13500                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13501                         found="yes"
13502                 fi
13503         fi
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519 xorg_testset_save_CFLAGS="$CFLAGS"
13520
13521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13522         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13523         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13524 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13525 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h.  */
13530 int i;
13531 _ACEOF
13532 if ac_fn_c_try_compile "$LINENO"; then :
13533   xorg_cv_cc_flag_unknown_warning_option=yes
13534 else
13535   xorg_cv_cc_flag_unknown_warning_option=no
13536 fi
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 fi
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13540 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13541         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13542         CFLAGS="$xorg_testset_save_CFLAGS"
13543 fi
13544
13545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13546         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13547                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13548         fi
13549         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13550         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13551 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13552 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13553   $as_echo_n "(cached) " >&6
13554 else
13555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557 int i;
13558 _ACEOF
13559 if ac_fn_c_try_compile "$LINENO"; then :
13560   xorg_cv_cc_flag_unused_command_line_argument=yes
13561 else
13562   xorg_cv_cc_flag_unused_command_line_argument=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 fi
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13567 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13568         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13569         CFLAGS="$xorg_testset_save_CFLAGS"
13570 fi
13571
13572 found="no"
13573
13574         if test $found = "no" ; then
13575                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13576                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13577                 fi
13578
13579                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13580                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13581                 fi
13582
13583                 CFLAGS="$CFLAGS -Wmissing-noreturn"
13584
13585                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13586 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13587                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13588                 if eval \${$cacheid+:} false; then :
13589   $as_echo_n "(cached) " >&6
13590 else
13591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h.  */
13593 int i;
13594 int
13595 main ()
13596 {
13597
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 if ac_fn_c_try_link "$LINENO"; then :
13603   eval $cacheid=yes
13604 else
13605   eval $cacheid=no
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext \
13608     conftest$ac_exeext conftest.$ac_ext
13609 fi
13610
13611
13612                 CFLAGS="$xorg_testset_save_CFLAGS"
13613
13614                 eval supported=\$$cacheid
13615                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13616 $as_echo "$supported" >&6; }
13617                 if test "$supported" = "yes" ; then
13618                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13619                         found="yes"
13620                 fi
13621         fi
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637 xorg_testset_save_CFLAGS="$CFLAGS"
13638
13639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13640         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13644   $as_echo_n "(cached) " >&6
13645 else
13646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h.  */
13648 int i;
13649 _ACEOF
13650 if ac_fn_c_try_compile "$LINENO"; then :
13651   xorg_cv_cc_flag_unknown_warning_option=yes
13652 else
13653   xorg_cv_cc_flag_unknown_warning_option=no
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 fi
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13659         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13660         CFLAGS="$xorg_testset_save_CFLAGS"
13661 fi
13662
13663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13664         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13665                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666         fi
13667         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13671   $as_echo_n "(cached) " >&6
13672 else
13673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h.  */
13675 int i;
13676 _ACEOF
13677 if ac_fn_c_try_compile "$LINENO"; then :
13678   xorg_cv_cc_flag_unused_command_line_argument=yes
13679 else
13680   xorg_cv_cc_flag_unused_command_line_argument=no
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13686         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13687         CFLAGS="$xorg_testset_save_CFLAGS"
13688 fi
13689
13690 found="no"
13691
13692         if test $found = "no" ; then
13693                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13694                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13695                 fi
13696
13697                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13698                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13699                 fi
13700
13701                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13702
13703                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13704 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13705                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13706                 if eval \${$cacheid+:} false; then :
13707   $as_echo_n "(cached) " >&6
13708 else
13709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h.  */
13711 int i;
13712 int
13713 main ()
13714 {
13715
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 if ac_fn_c_try_link "$LINENO"; then :
13721   eval $cacheid=yes
13722 else
13723   eval $cacheid=no
13724 fi
13725 rm -f core conftest.err conftest.$ac_objext \
13726     conftest$ac_exeext conftest.$ac_ext
13727 fi
13728
13729
13730                 CFLAGS="$xorg_testset_save_CFLAGS"
13731
13732                 eval supported=\$$cacheid
13733                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13734 $as_echo "$supported" >&6; }
13735                 if test "$supported" = "yes" ; then
13736                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13737                         found="yes"
13738                 fi
13739         fi
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755 xorg_testset_save_CFLAGS="$CFLAGS"
13756
13757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13758         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13760 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13761 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13762   $as_echo_n "(cached) " >&6
13763 else
13764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h.  */
13766 int i;
13767 _ACEOF
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769   xorg_cv_cc_flag_unknown_warning_option=yes
13770 else
13771   xorg_cv_cc_flag_unknown_warning_option=no
13772 fi
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13776 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13777         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13778         CFLAGS="$xorg_testset_save_CFLAGS"
13779 fi
13780
13781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13782         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13783                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13784         fi
13785         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13786         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13787 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13788 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13789   $as_echo_n "(cached) " >&6
13790 else
13791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h.  */
13793 int i;
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"; then :
13796   xorg_cv_cc_flag_unused_command_line_argument=yes
13797 else
13798   xorg_cv_cc_flag_unused_command_line_argument=no
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13803 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13804         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13805         CFLAGS="$xorg_testset_save_CFLAGS"
13806 fi
13807
13808 found="no"
13809
13810         if test $found = "no" ; then
13811                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13812                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13813                 fi
13814
13815                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13816                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13817                 fi
13818
13819                 CFLAGS="$CFLAGS -Wredundant-decls"
13820
13821                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13822 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13823                 cacheid=xorg_cv_cc_flag__Wredundant_decls
13824                 if eval \${$cacheid+:} false; then :
13825   $as_echo_n "(cached) " >&6
13826 else
13827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h.  */
13829 int i;
13830 int
13831 main ()
13832 {
13833
13834   ;
13835   return 0;
13836 }
13837 _ACEOF
13838 if ac_fn_c_try_link "$LINENO"; then :
13839   eval $cacheid=yes
13840 else
13841   eval $cacheid=no
13842 fi
13843 rm -f core conftest.err conftest.$ac_objext \
13844     conftest$ac_exeext conftest.$ac_ext
13845 fi
13846
13847
13848                 CFLAGS="$xorg_testset_save_CFLAGS"
13849
13850                 eval supported=\$$cacheid
13851                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13852 $as_echo "$supported" >&6; }
13853                 if test "$supported" = "yes" ; then
13854                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13855                         found="yes"
13856                 fi
13857         fi
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873 xorg_testset_save_CFLAGS="$CFLAGS"
13874
13875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13876         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13878 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13879 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13880   $as_echo_n "(cached) " >&6
13881 else
13882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h.  */
13884 int i;
13885 _ACEOF
13886 if ac_fn_c_try_compile "$LINENO"; then :
13887   xorg_cv_cc_flag_unknown_warning_option=yes
13888 else
13889   xorg_cv_cc_flag_unknown_warning_option=no
13890 fi
13891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 fi
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13894 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13895         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13896         CFLAGS="$xorg_testset_save_CFLAGS"
13897 fi
13898
13899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13900         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13901                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13902         fi
13903         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13906 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13907   $as_echo_n "(cached) " >&6
13908 else
13909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h.  */
13911 int i;
13912 _ACEOF
13913 if ac_fn_c_try_compile "$LINENO"; then :
13914   xorg_cv_cc_flag_unused_command_line_argument=yes
13915 else
13916   xorg_cv_cc_flag_unused_command_line_argument=no
13917 fi
13918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13921 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13922         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13923         CFLAGS="$xorg_testset_save_CFLAGS"
13924 fi
13925
13926 found="no"
13927
13928         if test $found = "no" ; then
13929                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13930                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13931                 fi
13932
13933                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13934                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13935                 fi
13936
13937                 CFLAGS="$CFLAGS -Wlogical-op"
13938
13939                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13940 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13941                 cacheid=xorg_cv_cc_flag__Wlogical_op
13942                 if eval \${$cacheid+:} false; then :
13943   $as_echo_n "(cached) " >&6
13944 else
13945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h.  */
13947 int i;
13948 int
13949 main ()
13950 {
13951
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 if ac_fn_c_try_link "$LINENO"; then :
13957   eval $cacheid=yes
13958 else
13959   eval $cacheid=no
13960 fi
13961 rm -f core conftest.err conftest.$ac_objext \
13962     conftest$ac_exeext conftest.$ac_ext
13963 fi
13964
13965
13966                 CFLAGS="$xorg_testset_save_CFLAGS"
13967
13968                 eval supported=\$$cacheid
13969                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13970 $as_echo "$supported" >&6; }
13971                 if test "$supported" = "yes" ; then
13972                         BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13973                         found="yes"
13974                 fi
13975         fi
13976
13977
13978
13979 # These are currently disabled because they are noisy.  They will be enabled
13980 # in the future once the codebase is sufficiently modernized to silence
13981 # them.  For now, I don't want them to drown out the other warnings.
13982 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13983 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13984 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13985
13986 # Turn some warnings into errors, so we don't accidently get successful builds
13987 # when there are problems that should be fixed.
13988
13989 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003 xorg_testset_save_CFLAGS="$CFLAGS"
14004
14005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14006         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14007         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14010   $as_echo_n "(cached) " >&6
14011 else
14012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h.  */
14014 int i;
14015 _ACEOF
14016 if ac_fn_c_try_compile "$LINENO"; then :
14017   xorg_cv_cc_flag_unknown_warning_option=yes
14018 else
14019   xorg_cv_cc_flag_unknown_warning_option=no
14020 fi
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14025         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14026         CFLAGS="$xorg_testset_save_CFLAGS"
14027 fi
14028
14029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14030         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14031                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14032         fi
14033         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14037   $as_echo_n "(cached) " >&6
14038 else
14039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h.  */
14041 int i;
14042 _ACEOF
14043 if ac_fn_c_try_compile "$LINENO"; then :
14044   xorg_cv_cc_flag_unused_command_line_argument=yes
14045 else
14046   xorg_cv_cc_flag_unused_command_line_argument=no
14047 fi
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14052         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14053         CFLAGS="$xorg_testset_save_CFLAGS"
14054 fi
14055
14056 found="no"
14057
14058         if test $found = "no" ; then
14059                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14060                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14061                 fi
14062
14063                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14064                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14065                 fi
14066
14067                 CFLAGS="$CFLAGS -Werror=implicit"
14068
14069                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14070 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14071                 cacheid=xorg_cv_cc_flag__Werror_implicit
14072                 if eval \${$cacheid+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h.  */
14077 int i;
14078 int
14079 main ()
14080 {
14081
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14087   eval $cacheid=yes
14088 else
14089   eval $cacheid=no
14090 fi
14091 rm -f core conftest.err conftest.$ac_objext \
14092     conftest$ac_exeext conftest.$ac_ext
14093 fi
14094
14095
14096                 CFLAGS="$xorg_testset_save_CFLAGS"
14097
14098                 eval supported=\$$cacheid
14099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14100 $as_echo "$supported" >&6; }
14101                 if test "$supported" = "yes" ; then
14102                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14103                         found="yes"
14104                 fi
14105         fi
14106
14107         if test $found = "no" ; then
14108                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14109                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14110                 fi
14111
14112                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14113                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14114                 fi
14115
14116                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14117
14118                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14119 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14120                 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14121                 if eval \${$cacheid+:} false; then :
14122   $as_echo_n "(cached) " >&6
14123 else
14124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h.  */
14126 int i;
14127 int
14128 main ()
14129 {
14130
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 if ac_fn_c_try_link "$LINENO"; then :
14136   eval $cacheid=yes
14137 else
14138   eval $cacheid=no
14139 fi
14140 rm -f core conftest.err conftest.$ac_objext \
14141     conftest$ac_exeext conftest.$ac_ext
14142 fi
14143
14144
14145                 CFLAGS="$xorg_testset_save_CFLAGS"
14146
14147                 eval supported=\$$cacheid
14148                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14149 $as_echo "$supported" >&6; }
14150                 if test "$supported" = "yes" ; then
14151                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14152                         found="yes"
14153                 fi
14154         fi
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170 xorg_testset_save_CFLAGS="$CFLAGS"
14171
14172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14173         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h.  */
14181 int i;
14182 _ACEOF
14183 if ac_fn_c_try_compile "$LINENO"; then :
14184   xorg_cv_cc_flag_unknown_warning_option=yes
14185 else
14186   xorg_cv_cc_flag_unknown_warning_option=no
14187 fi
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 fi
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14192         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14193         CFLAGS="$xorg_testset_save_CFLAGS"
14194 fi
14195
14196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14197         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14198                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14199         fi
14200         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14204   $as_echo_n "(cached) " >&6
14205 else
14206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h.  */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"; then :
14211   xorg_cv_cc_flag_unused_command_line_argument=yes
14212 else
14213   xorg_cv_cc_flag_unused_command_line_argument=no
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14219         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14220         CFLAGS="$xorg_testset_save_CFLAGS"
14221 fi
14222
14223 found="no"
14224
14225         if test $found = "no" ; then
14226                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14227                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14228                 fi
14229
14230                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14231                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14232                 fi
14233
14234                 CFLAGS="$CFLAGS -Werror=nonnull"
14235
14236                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14237 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14238                 cacheid=xorg_cv_cc_flag__Werror_nonnull
14239                 if eval \${$cacheid+:} false; then :
14240   $as_echo_n "(cached) " >&6
14241 else
14242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h.  */
14244 int i;
14245 int
14246 main ()
14247 {
14248
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 if ac_fn_c_try_link "$LINENO"; then :
14254   eval $cacheid=yes
14255 else
14256   eval $cacheid=no
14257 fi
14258 rm -f core conftest.err conftest.$ac_objext \
14259     conftest$ac_exeext conftest.$ac_ext
14260 fi
14261
14262
14263                 CFLAGS="$xorg_testset_save_CFLAGS"
14264
14265                 eval supported=\$$cacheid
14266                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14267 $as_echo "$supported" >&6; }
14268                 if test "$supported" = "yes" ; then
14269                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14270                         found="yes"
14271                 fi
14272         fi
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288 xorg_testset_save_CFLAGS="$CFLAGS"
14289
14290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14291         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14293 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14294 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14295   $as_echo_n "(cached) " >&6
14296 else
14297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h.  */
14299 int i;
14300 _ACEOF
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302   xorg_cv_cc_flag_unknown_warning_option=yes
14303 else
14304   xorg_cv_cc_flag_unknown_warning_option=no
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14309 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14310         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14311         CFLAGS="$xorg_testset_save_CFLAGS"
14312 fi
14313
14314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14315         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14316                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14317         fi
14318         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14320 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14321 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14322   $as_echo_n "(cached) " >&6
14323 else
14324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h.  */
14326 int i;
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329   xorg_cv_cc_flag_unused_command_line_argument=yes
14330 else
14331   xorg_cv_cc_flag_unused_command_line_argument=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14336 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14337         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14338         CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 found="no"
14342
14343         if test $found = "no" ; then
14344                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346                 fi
14347
14348                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14349                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350                 fi
14351
14352                 CFLAGS="$CFLAGS -Werror=init-self"
14353
14354                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14355 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14356                 cacheid=xorg_cv_cc_flag__Werror_init_self
14357                 if eval \${$cacheid+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h.  */
14362 int i;
14363 int
14364 main ()
14365 {
14366
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 if ac_fn_c_try_link "$LINENO"; then :
14372   eval $cacheid=yes
14373 else
14374   eval $cacheid=no
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext \
14377     conftest$ac_exeext conftest.$ac_ext
14378 fi
14379
14380
14381                 CFLAGS="$xorg_testset_save_CFLAGS"
14382
14383                 eval supported=\$$cacheid
14384                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14385 $as_echo "$supported" >&6; }
14386                 if test "$supported" = "yes" ; then
14387                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14388                         found="yes"
14389                 fi
14390         fi
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406 xorg_testset_save_CFLAGS="$CFLAGS"
14407
14408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14409         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14410         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14413   $as_echo_n "(cached) " >&6
14414 else
14415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h.  */
14417 int i;
14418 _ACEOF
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420   xorg_cv_cc_flag_unknown_warning_option=yes
14421 else
14422   xorg_cv_cc_flag_unknown_warning_option=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14428         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14429         CFLAGS="$xorg_testset_save_CFLAGS"
14430 fi
14431
14432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14433         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14434                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14435         fi
14436         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14440   $as_echo_n "(cached) " >&6
14441 else
14442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h.  */
14444 int i;
14445 _ACEOF
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447   xorg_cv_cc_flag_unused_command_line_argument=yes
14448 else
14449   xorg_cv_cc_flag_unused_command_line_argument=no
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14455         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14456         CFLAGS="$xorg_testset_save_CFLAGS"
14457 fi
14458
14459 found="no"
14460
14461         if test $found = "no" ; then
14462                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14463                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14464                 fi
14465
14466                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14467                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14468                 fi
14469
14470                 CFLAGS="$CFLAGS -Werror=main"
14471
14472                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14473 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14474                 cacheid=xorg_cv_cc_flag__Werror_main
14475                 if eval \${$cacheid+:} false; then :
14476   $as_echo_n "(cached) " >&6
14477 else
14478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h.  */
14480 int i;
14481 int
14482 main ()
14483 {
14484
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"; then :
14490   eval $cacheid=yes
14491 else
14492   eval $cacheid=no
14493 fi
14494 rm -f core conftest.err conftest.$ac_objext \
14495     conftest$ac_exeext conftest.$ac_ext
14496 fi
14497
14498
14499                 CFLAGS="$xorg_testset_save_CFLAGS"
14500
14501                 eval supported=\$$cacheid
14502                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14503 $as_echo "$supported" >&6; }
14504                 if test "$supported" = "yes" ; then
14505                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14506                         found="yes"
14507                 fi
14508         fi
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524 xorg_testset_save_CFLAGS="$CFLAGS"
14525
14526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14527         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14528         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14529 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14530 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14531   $as_echo_n "(cached) " >&6
14532 else
14533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h.  */
14535 int i;
14536 _ACEOF
14537 if ac_fn_c_try_compile "$LINENO"; then :
14538   xorg_cv_cc_flag_unknown_warning_option=yes
14539 else
14540   xorg_cv_cc_flag_unknown_warning_option=no
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14545 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14546         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14547         CFLAGS="$xorg_testset_save_CFLAGS"
14548 fi
14549
14550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14551         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14552                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14553         fi
14554         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14556 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14557 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14558   $as_echo_n "(cached) " >&6
14559 else
14560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h.  */
14562 int i;
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565   xorg_cv_cc_flag_unused_command_line_argument=yes
14566 else
14567   xorg_cv_cc_flag_unused_command_line_argument=no
14568 fi
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14572 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14573         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14574         CFLAGS="$xorg_testset_save_CFLAGS"
14575 fi
14576
14577 found="no"
14578
14579         if test $found = "no" ; then
14580                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14581                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14582                 fi
14583
14584                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14585                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14586                 fi
14587
14588                 CFLAGS="$CFLAGS -Werror=missing-braces"
14589
14590                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14591 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14592                 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14593                 if eval \${$cacheid+:} false; then :
14594   $as_echo_n "(cached) " >&6
14595 else
14596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h.  */
14598 int i;
14599 int
14600 main ()
14601 {
14602
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 if ac_fn_c_try_link "$LINENO"; then :
14608   eval $cacheid=yes
14609 else
14610   eval $cacheid=no
14611 fi
14612 rm -f core conftest.err conftest.$ac_objext \
14613     conftest$ac_exeext conftest.$ac_ext
14614 fi
14615
14616
14617                 CFLAGS="$xorg_testset_save_CFLAGS"
14618
14619                 eval supported=\$$cacheid
14620                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14621 $as_echo "$supported" >&6; }
14622                 if test "$supported" = "yes" ; then
14623                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14624                         found="yes"
14625                 fi
14626         fi
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642 xorg_testset_save_CFLAGS="$CFLAGS"
14643
14644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14645         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14646         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14649   $as_echo_n "(cached) " >&6
14650 else
14651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h.  */
14653 int i;
14654 _ACEOF
14655 if ac_fn_c_try_compile "$LINENO"; then :
14656   xorg_cv_cc_flag_unknown_warning_option=yes
14657 else
14658   xorg_cv_cc_flag_unknown_warning_option=no
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 fi
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14664         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14665         CFLAGS="$xorg_testset_save_CFLAGS"
14666 fi
14667
14668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14669         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14670                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14671         fi
14672         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14676   $as_echo_n "(cached) " >&6
14677 else
14678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h.  */
14680 int i;
14681 _ACEOF
14682 if ac_fn_c_try_compile "$LINENO"; then :
14683   xorg_cv_cc_flag_unused_command_line_argument=yes
14684 else
14685   xorg_cv_cc_flag_unused_command_line_argument=no
14686 fi
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 fi
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14691         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14692         CFLAGS="$xorg_testset_save_CFLAGS"
14693 fi
14694
14695 found="no"
14696
14697         if test $found = "no" ; then
14698                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14699                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700                 fi
14701
14702                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14703                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14704                 fi
14705
14706                 CFLAGS="$CFLAGS -Werror=sequence-point"
14707
14708                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14709 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14710                 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14711                 if eval \${$cacheid+:} false; then :
14712   $as_echo_n "(cached) " >&6
14713 else
14714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h.  */
14716 int i;
14717 int
14718 main ()
14719 {
14720
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 if ac_fn_c_try_link "$LINENO"; then :
14726   eval $cacheid=yes
14727 else
14728   eval $cacheid=no
14729 fi
14730 rm -f core conftest.err conftest.$ac_objext \
14731     conftest$ac_exeext conftest.$ac_ext
14732 fi
14733
14734
14735                 CFLAGS="$xorg_testset_save_CFLAGS"
14736
14737                 eval supported=\$$cacheid
14738                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14739 $as_echo "$supported" >&6; }
14740                 if test "$supported" = "yes" ; then
14741                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14742                         found="yes"
14743                 fi
14744         fi
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760 xorg_testset_save_CFLAGS="$CFLAGS"
14761
14762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14763         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14767   $as_echo_n "(cached) " >&6
14768 else
14769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h.  */
14771 int i;
14772 _ACEOF
14773 if ac_fn_c_try_compile "$LINENO"; then :
14774   xorg_cv_cc_flag_unknown_warning_option=yes
14775 else
14776   xorg_cv_cc_flag_unknown_warning_option=no
14777 fi
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 fi
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14782         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14783         CFLAGS="$xorg_testset_save_CFLAGS"
14784 fi
14785
14786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14787         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14788                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14789         fi
14790         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14794   $as_echo_n "(cached) " >&6
14795 else
14796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h.  */
14798 int i;
14799 _ACEOF
14800 if ac_fn_c_try_compile "$LINENO"; then :
14801   xorg_cv_cc_flag_unused_command_line_argument=yes
14802 else
14803   xorg_cv_cc_flag_unused_command_line_argument=no
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14809         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14810         CFLAGS="$xorg_testset_save_CFLAGS"
14811 fi
14812
14813 found="no"
14814
14815         if test $found = "no" ; then
14816                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818                 fi
14819
14820                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14821                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14822                 fi
14823
14824                 CFLAGS="$CFLAGS -Werror=return-type"
14825
14826                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14827 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14828                 cacheid=xorg_cv_cc_flag__Werror_return_type
14829                 if eval \${$cacheid+:} false; then :
14830   $as_echo_n "(cached) " >&6
14831 else
14832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h.  */
14834 int i;
14835 int
14836 main ()
14837 {
14838
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 if ac_fn_c_try_link "$LINENO"; then :
14844   eval $cacheid=yes
14845 else
14846   eval $cacheid=no
14847 fi
14848 rm -f core conftest.err conftest.$ac_objext \
14849     conftest$ac_exeext conftest.$ac_ext
14850 fi
14851
14852
14853                 CFLAGS="$xorg_testset_save_CFLAGS"
14854
14855                 eval supported=\$$cacheid
14856                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14857 $as_echo "$supported" >&6; }
14858                 if test "$supported" = "yes" ; then
14859                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14860                         found="yes"
14861                 fi
14862         fi
14863
14864         if test $found = "no" ; then
14865                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14866                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14867                 fi
14868
14869                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14870                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14871                 fi
14872
14873                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14874
14875                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14876 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14877                 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14878                 if eval \${$cacheid+:} false; then :
14879   $as_echo_n "(cached) " >&6
14880 else
14881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h.  */
14883 int i;
14884 int
14885 main ()
14886 {
14887
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 if ac_fn_c_try_link "$LINENO"; then :
14893   eval $cacheid=yes
14894 else
14895   eval $cacheid=no
14896 fi
14897 rm -f core conftest.err conftest.$ac_objext \
14898     conftest$ac_exeext conftest.$ac_ext
14899 fi
14900
14901
14902                 CFLAGS="$xorg_testset_save_CFLAGS"
14903
14904                 eval supported=\$$cacheid
14905                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14906 $as_echo "$supported" >&6; }
14907                 if test "$supported" = "yes" ; then
14908                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14909                         found="yes"
14910                 fi
14911         fi
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927 xorg_testset_save_CFLAGS="$CFLAGS"
14928
14929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14930         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14934   $as_echo_n "(cached) " >&6
14935 else
14936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h.  */
14938 int i;
14939 _ACEOF
14940 if ac_fn_c_try_compile "$LINENO"; then :
14941   xorg_cv_cc_flag_unknown_warning_option=yes
14942 else
14943   xorg_cv_cc_flag_unknown_warning_option=no
14944 fi
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14949         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14950         CFLAGS="$xorg_testset_save_CFLAGS"
14951 fi
14952
14953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14954         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14955                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14956         fi
14957         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14961   $as_echo_n "(cached) " >&6
14962 else
14963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h.  */
14965 int i;
14966 _ACEOF
14967 if ac_fn_c_try_compile "$LINENO"; then :
14968   xorg_cv_cc_flag_unused_command_line_argument=yes
14969 else
14970   xorg_cv_cc_flag_unused_command_line_argument=no
14971 fi
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 fi
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14976         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14977         CFLAGS="$xorg_testset_save_CFLAGS"
14978 fi
14979
14980 found="no"
14981
14982         if test $found = "no" ; then
14983                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14984                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14985                 fi
14986
14987                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14988                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14989                 fi
14990
14991                 CFLAGS="$CFLAGS -Werror=trigraphs"
14992
14993                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14994 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14995                 cacheid=xorg_cv_cc_flag__Werror_trigraphs
14996                 if eval \${$cacheid+:} false; then :
14997   $as_echo_n "(cached) " >&6
14998 else
14999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h.  */
15001 int i;
15002 int
15003 main ()
15004 {
15005
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 if ac_fn_c_try_link "$LINENO"; then :
15011   eval $cacheid=yes
15012 else
15013   eval $cacheid=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016     conftest$ac_exeext conftest.$ac_ext
15017 fi
15018
15019
15020                 CFLAGS="$xorg_testset_save_CFLAGS"
15021
15022                 eval supported=\$$cacheid
15023                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15024 $as_echo "$supported" >&6; }
15025                 if test "$supported" = "yes" ; then
15026                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15027                         found="yes"
15028                 fi
15029         fi
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045 xorg_testset_save_CFLAGS="$CFLAGS"
15046
15047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15048         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15052   $as_echo_n "(cached) " >&6
15053 else
15054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h.  */
15056 int i;
15057 _ACEOF
15058 if ac_fn_c_try_compile "$LINENO"; then :
15059   xorg_cv_cc_flag_unknown_warning_option=yes
15060 else
15061   xorg_cv_cc_flag_unknown_warning_option=no
15062 fi
15063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064 fi
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15067         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15068         CFLAGS="$xorg_testset_save_CFLAGS"
15069 fi
15070
15071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15072         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15073                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15074         fi
15075         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15079   $as_echo_n "(cached) " >&6
15080 else
15081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h.  */
15083 int i;
15084 _ACEOF
15085 if ac_fn_c_try_compile "$LINENO"; then :
15086   xorg_cv_cc_flag_unused_command_line_argument=yes
15087 else
15088   xorg_cv_cc_flag_unused_command_line_argument=no
15089 fi
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 fi
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15094         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15095         CFLAGS="$xorg_testset_save_CFLAGS"
15096 fi
15097
15098 found="no"
15099
15100         if test $found = "no" ; then
15101                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15102                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15103                 fi
15104
15105                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15106                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107                 fi
15108
15109                 CFLAGS="$CFLAGS -Werror=array-bounds"
15110
15111                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15112 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15113                 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15114                 if eval \${$cacheid+:} false; then :
15115   $as_echo_n "(cached) " >&6
15116 else
15117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h.  */
15119 int i;
15120 int
15121 main ()
15122 {
15123
15124   ;
15125   return 0;
15126 }
15127 _ACEOF
15128 if ac_fn_c_try_link "$LINENO"; then :
15129   eval $cacheid=yes
15130 else
15131   eval $cacheid=no
15132 fi
15133 rm -f core conftest.err conftest.$ac_objext \
15134     conftest$ac_exeext conftest.$ac_ext
15135 fi
15136
15137
15138                 CFLAGS="$xorg_testset_save_CFLAGS"
15139
15140                 eval supported=\$$cacheid
15141                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15142 $as_echo "$supported" >&6; }
15143                 if test "$supported" = "yes" ; then
15144                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15145                         found="yes"
15146                 fi
15147         fi
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163 xorg_testset_save_CFLAGS="$CFLAGS"
15164
15165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15166         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15170   $as_echo_n "(cached) " >&6
15171 else
15172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h.  */
15174 int i;
15175 _ACEOF
15176 if ac_fn_c_try_compile "$LINENO"; then :
15177   xorg_cv_cc_flag_unknown_warning_option=yes
15178 else
15179   xorg_cv_cc_flag_unknown_warning_option=no
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15185         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15186         CFLAGS="$xorg_testset_save_CFLAGS"
15187 fi
15188
15189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15190         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15191                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15192         fi
15193         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15197   $as_echo_n "(cached) " >&6
15198 else
15199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h.  */
15201 int i;
15202 _ACEOF
15203 if ac_fn_c_try_compile "$LINENO"; then :
15204   xorg_cv_cc_flag_unused_command_line_argument=yes
15205 else
15206   xorg_cv_cc_flag_unused_command_line_argument=no
15207 fi
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 fi
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15212         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15213         CFLAGS="$xorg_testset_save_CFLAGS"
15214 fi
15215
15216 found="no"
15217
15218         if test $found = "no" ; then
15219                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221                 fi
15222
15223                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15224                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15225                 fi
15226
15227                 CFLAGS="$CFLAGS -Werror=write-strings"
15228
15229                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15230 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15231                 cacheid=xorg_cv_cc_flag__Werror_write_strings
15232                 if eval \${$cacheid+:} false; then :
15233   $as_echo_n "(cached) " >&6
15234 else
15235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h.  */
15237 int i;
15238 int
15239 main ()
15240 {
15241
15242   ;
15243   return 0;
15244 }
15245 _ACEOF
15246 if ac_fn_c_try_link "$LINENO"; then :
15247   eval $cacheid=yes
15248 else
15249   eval $cacheid=no
15250 fi
15251 rm -f core conftest.err conftest.$ac_objext \
15252     conftest$ac_exeext conftest.$ac_ext
15253 fi
15254
15255
15256                 CFLAGS="$xorg_testset_save_CFLAGS"
15257
15258                 eval supported=\$$cacheid
15259                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15260 $as_echo "$supported" >&6; }
15261                 if test "$supported" = "yes" ; then
15262                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15263                         found="yes"
15264                 fi
15265         fi
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281 xorg_testset_save_CFLAGS="$CFLAGS"
15282
15283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15284         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15288   $as_echo_n "(cached) " >&6
15289 else
15290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h.  */
15292 int i;
15293 _ACEOF
15294 if ac_fn_c_try_compile "$LINENO"; then :
15295   xorg_cv_cc_flag_unknown_warning_option=yes
15296 else
15297   xorg_cv_cc_flag_unknown_warning_option=no
15298 fi
15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15300 fi
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15303         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15304         CFLAGS="$xorg_testset_save_CFLAGS"
15305 fi
15306
15307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15308         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15309                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15310         fi
15311         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15315   $as_echo_n "(cached) " >&6
15316 else
15317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h.  */
15319 int i;
15320 _ACEOF
15321 if ac_fn_c_try_compile "$LINENO"; then :
15322   xorg_cv_cc_flag_unused_command_line_argument=yes
15323 else
15324   xorg_cv_cc_flag_unused_command_line_argument=no
15325 fi
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327 fi
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15330         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15331         CFLAGS="$xorg_testset_save_CFLAGS"
15332 fi
15333
15334 found="no"
15335
15336         if test $found = "no" ; then
15337                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15338                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15339                 fi
15340
15341                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15342                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15343                 fi
15344
15345                 CFLAGS="$CFLAGS -Werror=address"
15346
15347                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15348 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15349                 cacheid=xorg_cv_cc_flag__Werror_address
15350                 if eval \${$cacheid+:} false; then :
15351   $as_echo_n "(cached) " >&6
15352 else
15353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h.  */
15355 int i;
15356 int
15357 main ()
15358 {
15359
15360   ;
15361   return 0;
15362 }
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"; then :
15365   eval $cacheid=yes
15366 else
15367   eval $cacheid=no
15368 fi
15369 rm -f core conftest.err conftest.$ac_objext \
15370     conftest$ac_exeext conftest.$ac_ext
15371 fi
15372
15373
15374                 CFLAGS="$xorg_testset_save_CFLAGS"
15375
15376                 eval supported=\$$cacheid
15377                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15378 $as_echo "$supported" >&6; }
15379                 if test "$supported" = "yes" ; then
15380                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15381                         found="yes"
15382                 fi
15383         fi
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399 xorg_testset_save_CFLAGS="$CFLAGS"
15400
15401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15402         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15406   $as_echo_n "(cached) " >&6
15407 else
15408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h.  */
15410 int i;
15411 _ACEOF
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413   xorg_cv_cc_flag_unknown_warning_option=yes
15414 else
15415   xorg_cv_cc_flag_unknown_warning_option=no
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 fi
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15421         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15422         CFLAGS="$xorg_testset_save_CFLAGS"
15423 fi
15424
15425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15426         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15427                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15428         fi
15429         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15430         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15433   $as_echo_n "(cached) " >&6
15434 else
15435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h.  */
15437 int i;
15438 _ACEOF
15439 if ac_fn_c_try_compile "$LINENO"; then :
15440   xorg_cv_cc_flag_unused_command_line_argument=yes
15441 else
15442   xorg_cv_cc_flag_unused_command_line_argument=no
15443 fi
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 fi
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15448         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15449         CFLAGS="$xorg_testset_save_CFLAGS"
15450 fi
15451
15452 found="no"
15453
15454         if test $found = "no" ; then
15455                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15456                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15457                 fi
15458
15459                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15460                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15461                 fi
15462
15463                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15464
15465                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15466 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15467                 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15468                 if eval \${$cacheid+:} false; then :
15469   $as_echo_n "(cached) " >&6
15470 else
15471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h.  */
15473 int i;
15474 int
15475 main ()
15476 {
15477
15478   ;
15479   return 0;
15480 }
15481 _ACEOF
15482 if ac_fn_c_try_link "$LINENO"; then :
15483   eval $cacheid=yes
15484 else
15485   eval $cacheid=no
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext \
15488     conftest$ac_exeext conftest.$ac_ext
15489 fi
15490
15491
15492                 CFLAGS="$xorg_testset_save_CFLAGS"
15493
15494                 eval supported=\$$cacheid
15495                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15496 $as_echo "$supported" >&6; }
15497                 if test "$supported" = "yes" ; then
15498                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15499                         found="yes"
15500                 fi
15501         fi
15502
15503         if test $found = "no" ; then
15504                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15505                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15506                 fi
15507
15508                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15509                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15510                 fi
15511
15512                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15513
15514                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15515 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15516                 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15517                 if eval \${$cacheid+:} false; then :
15518   $as_echo_n "(cached) " >&6
15519 else
15520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h.  */
15522 int i;
15523 int
15524 main ()
15525 {
15526
15527   ;
15528   return 0;
15529 }
15530 _ACEOF
15531 if ac_fn_c_try_link "$LINENO"; then :
15532   eval $cacheid=yes
15533 else
15534   eval $cacheid=no
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext \
15537     conftest$ac_exeext conftest.$ac_ext
15538 fi
15539
15540
15541                 CFLAGS="$xorg_testset_save_CFLAGS"
15542
15543                 eval supported=\$$cacheid
15544                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15545 $as_echo "$supported" >&6; }
15546                 if test "$supported" = "yes" ; then
15547                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15548                         found="yes"
15549                 fi
15550         fi
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566 xorg_testset_save_CFLAGS="$CFLAGS"
15567
15568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15569         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15573   $as_echo_n "(cached) " >&6
15574 else
15575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h.  */
15577 int i;
15578 _ACEOF
15579 if ac_fn_c_try_compile "$LINENO"; then :
15580   xorg_cv_cc_flag_unknown_warning_option=yes
15581 else
15582   xorg_cv_cc_flag_unknown_warning_option=no
15583 fi
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 fi
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15588         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15589         CFLAGS="$xorg_testset_save_CFLAGS"
15590 fi
15591
15592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15593         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15594                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15595         fi
15596         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15600   $as_echo_n "(cached) " >&6
15601 else
15602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h.  */
15604 int i;
15605 _ACEOF
15606 if ac_fn_c_try_compile "$LINENO"; then :
15607   xorg_cv_cc_flag_unused_command_line_argument=yes
15608 else
15609   xorg_cv_cc_flag_unused_command_line_argument=no
15610 fi
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15615         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15616         CFLAGS="$xorg_testset_save_CFLAGS"
15617 fi
15618
15619 found="no"
15620
15621         if test $found = "no" ; then
15622                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15623                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15624                 fi
15625
15626                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15627                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15628                 fi
15629
15630                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15631
15632                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15633 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15634                 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15635                 if eval \${$cacheid+:} false; then :
15636   $as_echo_n "(cached) " >&6
15637 else
15638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h.  */
15640 int i;
15641 int
15642 main ()
15643 {
15644
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"; then :
15650   eval $cacheid=yes
15651 else
15652   eval $cacheid=no
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext \
15655     conftest$ac_exeext conftest.$ac_ext
15656 fi
15657
15658
15659                 CFLAGS="$xorg_testset_save_CFLAGS"
15660
15661                 eval supported=\$$cacheid
15662                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15663 $as_echo "$supported" >&6; }
15664                 if test "$supported" = "yes" ; then
15665                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15666                         found="yes"
15667                 fi
15668         fi
15669
15670  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15671 else
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15673 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687 xorg_testset_save_CFLAGS="$CFLAGS"
15688
15689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15690         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15694   $as_echo_n "(cached) " >&6
15695 else
15696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h.  */
15698 int i;
15699 _ACEOF
15700 if ac_fn_c_try_compile "$LINENO"; then :
15701   xorg_cv_cc_flag_unknown_warning_option=yes
15702 else
15703   xorg_cv_cc_flag_unknown_warning_option=no
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 fi
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15709         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15710         CFLAGS="$xorg_testset_save_CFLAGS"
15711 fi
15712
15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15714         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15715                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15716         fi
15717         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15718         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15721   $as_echo_n "(cached) " >&6
15722 else
15723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h.  */
15725 int i;
15726 _ACEOF
15727 if ac_fn_c_try_compile "$LINENO"; then :
15728   xorg_cv_cc_flag_unused_command_line_argument=yes
15729 else
15730   xorg_cv_cc_flag_unused_command_line_argument=no
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 fi
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15736         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15737         CFLAGS="$xorg_testset_save_CFLAGS"
15738 fi
15739
15740 found="no"
15741
15742         if test $found = "no" ; then
15743                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15744                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15745                 fi
15746
15747                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15748                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15749                 fi
15750
15751                 CFLAGS="$CFLAGS -Wimplicit"
15752
15753                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15754 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15755                 cacheid=xorg_cv_cc_flag__Wimplicit
15756                 if eval \${$cacheid+:} false; then :
15757   $as_echo_n "(cached) " >&6
15758 else
15759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h.  */
15761 int i;
15762 int
15763 main ()
15764 {
15765
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 if ac_fn_c_try_link "$LINENO"; then :
15771   eval $cacheid=yes
15772 else
15773   eval $cacheid=no
15774 fi
15775 rm -f core conftest.err conftest.$ac_objext \
15776     conftest$ac_exeext conftest.$ac_ext
15777 fi
15778
15779
15780                 CFLAGS="$xorg_testset_save_CFLAGS"
15781
15782                 eval supported=\$$cacheid
15783                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15784 $as_echo "$supported" >&6; }
15785                 if test "$supported" = "yes" ; then
15786                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15787                         found="yes"
15788                 fi
15789         fi
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805 xorg_testset_save_CFLAGS="$CFLAGS"
15806
15807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15808         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15809         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15812   $as_echo_n "(cached) " >&6
15813 else
15814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h.  */
15816 int i;
15817 _ACEOF
15818 if ac_fn_c_try_compile "$LINENO"; then :
15819   xorg_cv_cc_flag_unknown_warning_option=yes
15820 else
15821   xorg_cv_cc_flag_unknown_warning_option=no
15822 fi
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 fi
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15827         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15828         CFLAGS="$xorg_testset_save_CFLAGS"
15829 fi
15830
15831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15832         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15833                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15834         fi
15835         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15836         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15839   $as_echo_n "(cached) " >&6
15840 else
15841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843 int i;
15844 _ACEOF
15845 if ac_fn_c_try_compile "$LINENO"; then :
15846   xorg_cv_cc_flag_unused_command_line_argument=yes
15847 else
15848   xorg_cv_cc_flag_unused_command_line_argument=no
15849 fi
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 fi
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15854         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15855         CFLAGS="$xorg_testset_save_CFLAGS"
15856 fi
15857
15858 found="no"
15859
15860         if test $found = "no" ; then
15861                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15862                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15863                 fi
15864
15865                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15866                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15867                 fi
15868
15869                 CFLAGS="$CFLAGS -Wnonnull"
15870
15871                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15872 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15873                 cacheid=xorg_cv_cc_flag__Wnonnull
15874                 if eval \${$cacheid+:} false; then :
15875   $as_echo_n "(cached) " >&6
15876 else
15877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h.  */
15879 int i;
15880 int
15881 main ()
15882 {
15883
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889   eval $cacheid=yes
15890 else
15891   eval $cacheid=no
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext \
15894     conftest$ac_exeext conftest.$ac_ext
15895 fi
15896
15897
15898                 CFLAGS="$xorg_testset_save_CFLAGS"
15899
15900                 eval supported=\$$cacheid
15901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15902 $as_echo "$supported" >&6; }
15903                 if test "$supported" = "yes" ; then
15904                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15905                         found="yes"
15906                 fi
15907         fi
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923 xorg_testset_save_CFLAGS="$CFLAGS"
15924
15925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15926         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15930   $as_echo_n "(cached) " >&6
15931 else
15932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h.  */
15934 int i;
15935 _ACEOF
15936 if ac_fn_c_try_compile "$LINENO"; then :
15937   xorg_cv_cc_flag_unknown_warning_option=yes
15938 else
15939   xorg_cv_cc_flag_unknown_warning_option=no
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942 fi
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15945         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15946         CFLAGS="$xorg_testset_save_CFLAGS"
15947 fi
15948
15949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15950         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15951                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15952         fi
15953         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15957   $as_echo_n "(cached) " >&6
15958 else
15959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h.  */
15961 int i;
15962 _ACEOF
15963 if ac_fn_c_try_compile "$LINENO"; then :
15964   xorg_cv_cc_flag_unused_command_line_argument=yes
15965 else
15966   xorg_cv_cc_flag_unused_command_line_argument=no
15967 fi
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15972         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15973         CFLAGS="$xorg_testset_save_CFLAGS"
15974 fi
15975
15976 found="no"
15977
15978         if test $found = "no" ; then
15979                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15980                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15981                 fi
15982
15983                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15984                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15985                 fi
15986
15987                 CFLAGS="$CFLAGS -Winit-self"
15988
15989                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15990 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15991                 cacheid=xorg_cv_cc_flag__Winit_self
15992                 if eval \${$cacheid+:} false; then :
15993   $as_echo_n "(cached) " >&6
15994 else
15995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h.  */
15997 int i;
15998 int
15999 main ()
16000 {
16001
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 if ac_fn_c_try_link "$LINENO"; then :
16007   eval $cacheid=yes
16008 else
16009   eval $cacheid=no
16010 fi
16011 rm -f core conftest.err conftest.$ac_objext \
16012     conftest$ac_exeext conftest.$ac_ext
16013 fi
16014
16015
16016                 CFLAGS="$xorg_testset_save_CFLAGS"
16017
16018                 eval supported=\$$cacheid
16019                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16020 $as_echo "$supported" >&6; }
16021                 if test "$supported" = "yes" ; then
16022                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16023                         found="yes"
16024                 fi
16025         fi
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041 xorg_testset_save_CFLAGS="$CFLAGS"
16042
16043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16044         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16048   $as_echo_n "(cached) " >&6
16049 else
16050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h.  */
16052 int i;
16053 _ACEOF
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055   xorg_cv_cc_flag_unknown_warning_option=yes
16056 else
16057   xorg_cv_cc_flag_unknown_warning_option=no
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 fi
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16063         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16064         CFLAGS="$xorg_testset_save_CFLAGS"
16065 fi
16066
16067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16068         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16069                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16070         fi
16071         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16075   $as_echo_n "(cached) " >&6
16076 else
16077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h.  */
16079 int i;
16080 _ACEOF
16081 if ac_fn_c_try_compile "$LINENO"; then :
16082   xorg_cv_cc_flag_unused_command_line_argument=yes
16083 else
16084   xorg_cv_cc_flag_unused_command_line_argument=no
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087 fi
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16090         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16091         CFLAGS="$xorg_testset_save_CFLAGS"
16092 fi
16093
16094 found="no"
16095
16096         if test $found = "no" ; then
16097                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16098                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16099                 fi
16100
16101                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16102                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16103                 fi
16104
16105                 CFLAGS="$CFLAGS -Wmain"
16106
16107                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16108 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16109                 cacheid=xorg_cv_cc_flag__Wmain
16110                 if eval \${$cacheid+:} false; then :
16111   $as_echo_n "(cached) " >&6
16112 else
16113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h.  */
16115 int i;
16116 int
16117 main ()
16118 {
16119
16120   ;
16121   return 0;
16122 }
16123 _ACEOF
16124 if ac_fn_c_try_link "$LINENO"; then :
16125   eval $cacheid=yes
16126 else
16127   eval $cacheid=no
16128 fi
16129 rm -f core conftest.err conftest.$ac_objext \
16130     conftest$ac_exeext conftest.$ac_ext
16131 fi
16132
16133
16134                 CFLAGS="$xorg_testset_save_CFLAGS"
16135
16136                 eval supported=\$$cacheid
16137                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16138 $as_echo "$supported" >&6; }
16139                 if test "$supported" = "yes" ; then
16140                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16141                         found="yes"
16142                 fi
16143         fi
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159 xorg_testset_save_CFLAGS="$CFLAGS"
16160
16161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16162         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16166   $as_echo_n "(cached) " >&6
16167 else
16168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h.  */
16170 int i;
16171 _ACEOF
16172 if ac_fn_c_try_compile "$LINENO"; then :
16173   xorg_cv_cc_flag_unknown_warning_option=yes
16174 else
16175   xorg_cv_cc_flag_unknown_warning_option=no
16176 fi
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 fi
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16181         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16182         CFLAGS="$xorg_testset_save_CFLAGS"
16183 fi
16184
16185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16186         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16187                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16188         fi
16189         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16190         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16193   $as_echo_n "(cached) " >&6
16194 else
16195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h.  */
16197 int i;
16198 _ACEOF
16199 if ac_fn_c_try_compile "$LINENO"; then :
16200   xorg_cv_cc_flag_unused_command_line_argument=yes
16201 else
16202   xorg_cv_cc_flag_unused_command_line_argument=no
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 fi
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16208         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16209         CFLAGS="$xorg_testset_save_CFLAGS"
16210 fi
16211
16212 found="no"
16213
16214         if test $found = "no" ; then
16215                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16216                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16217                 fi
16218
16219                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16220                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16221                 fi
16222
16223                 CFLAGS="$CFLAGS -Wmissing-braces"
16224
16225                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16226 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16227                 cacheid=xorg_cv_cc_flag__Wmissing_braces
16228                 if eval \${$cacheid+:} false; then :
16229   $as_echo_n "(cached) " >&6
16230 else
16231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h.  */
16233 int i;
16234 int
16235 main ()
16236 {
16237
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 if ac_fn_c_try_link "$LINENO"; then :
16243   eval $cacheid=yes
16244 else
16245   eval $cacheid=no
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext \
16248     conftest$ac_exeext conftest.$ac_ext
16249 fi
16250
16251
16252                 CFLAGS="$xorg_testset_save_CFLAGS"
16253
16254                 eval supported=\$$cacheid
16255                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16256 $as_echo "$supported" >&6; }
16257                 if test "$supported" = "yes" ; then
16258                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16259                         found="yes"
16260                 fi
16261         fi
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277 xorg_testset_save_CFLAGS="$CFLAGS"
16278
16279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16280         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16284   $as_echo_n "(cached) " >&6
16285 else
16286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h.  */
16288 int i;
16289 _ACEOF
16290 if ac_fn_c_try_compile "$LINENO"; then :
16291   xorg_cv_cc_flag_unknown_warning_option=yes
16292 else
16293   xorg_cv_cc_flag_unknown_warning_option=no
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16299         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16300         CFLAGS="$xorg_testset_save_CFLAGS"
16301 fi
16302
16303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16304         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306         fi
16307         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16311   $as_echo_n "(cached) " >&6
16312 else
16313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h.  */
16315 int i;
16316 _ACEOF
16317 if ac_fn_c_try_compile "$LINENO"; then :
16318   xorg_cv_cc_flag_unused_command_line_argument=yes
16319 else
16320   xorg_cv_cc_flag_unused_command_line_argument=no
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 fi
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16326         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16327         CFLAGS="$xorg_testset_save_CFLAGS"
16328 fi
16329
16330 found="no"
16331
16332         if test $found = "no" ; then
16333                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16334                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16335                 fi
16336
16337                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16338                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16339                 fi
16340
16341                 CFLAGS="$CFLAGS -Wsequence-point"
16342
16343                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16344 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16345                 cacheid=xorg_cv_cc_flag__Wsequence_point
16346                 if eval \${$cacheid+:} false; then :
16347   $as_echo_n "(cached) " >&6
16348 else
16349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h.  */
16351 int i;
16352 int
16353 main ()
16354 {
16355
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 if ac_fn_c_try_link "$LINENO"; then :
16361   eval $cacheid=yes
16362 else
16363   eval $cacheid=no
16364 fi
16365 rm -f core conftest.err conftest.$ac_objext \
16366     conftest$ac_exeext conftest.$ac_ext
16367 fi
16368
16369
16370                 CFLAGS="$xorg_testset_save_CFLAGS"
16371
16372                 eval supported=\$$cacheid
16373                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16374 $as_echo "$supported" >&6; }
16375                 if test "$supported" = "yes" ; then
16376                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16377                         found="yes"
16378                 fi
16379         fi
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395 xorg_testset_save_CFLAGS="$CFLAGS"
16396
16397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16398         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16399         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16402   $as_echo_n "(cached) " >&6
16403 else
16404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h.  */
16406 int i;
16407 _ACEOF
16408 if ac_fn_c_try_compile "$LINENO"; then :
16409   xorg_cv_cc_flag_unknown_warning_option=yes
16410 else
16411   xorg_cv_cc_flag_unknown_warning_option=no
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 fi
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16417         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16418         CFLAGS="$xorg_testset_save_CFLAGS"
16419 fi
16420
16421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16422         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424         fi
16425         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16429   $as_echo_n "(cached) " >&6
16430 else
16431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h.  */
16433 int i;
16434 _ACEOF
16435 if ac_fn_c_try_compile "$LINENO"; then :
16436   xorg_cv_cc_flag_unused_command_line_argument=yes
16437 else
16438   xorg_cv_cc_flag_unused_command_line_argument=no
16439 fi
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 fi
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16444         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16445         CFLAGS="$xorg_testset_save_CFLAGS"
16446 fi
16447
16448 found="no"
16449
16450         if test $found = "no" ; then
16451                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16452                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453                 fi
16454
16455                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16456                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16457                 fi
16458
16459                 CFLAGS="$CFLAGS -Wreturn-type"
16460
16461                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16462 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16463                 cacheid=xorg_cv_cc_flag__Wreturn_type
16464                 if eval \${$cacheid+:} false; then :
16465   $as_echo_n "(cached) " >&6
16466 else
16467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h.  */
16469 int i;
16470 int
16471 main ()
16472 {
16473
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 if ac_fn_c_try_link "$LINENO"; then :
16479   eval $cacheid=yes
16480 else
16481   eval $cacheid=no
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext \
16484     conftest$ac_exeext conftest.$ac_ext
16485 fi
16486
16487
16488                 CFLAGS="$xorg_testset_save_CFLAGS"
16489
16490                 eval supported=\$$cacheid
16491                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16492 $as_echo "$supported" >&6; }
16493                 if test "$supported" = "yes" ; then
16494                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16495                         found="yes"
16496                 fi
16497         fi
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513 xorg_testset_save_CFLAGS="$CFLAGS"
16514
16515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16516         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16520   $as_echo_n "(cached) " >&6
16521 else
16522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h.  */
16524 int i;
16525 _ACEOF
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527   xorg_cv_cc_flag_unknown_warning_option=yes
16528 else
16529   xorg_cv_cc_flag_unknown_warning_option=no
16530 fi
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 fi
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16535         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16536         CFLAGS="$xorg_testset_save_CFLAGS"
16537 fi
16538
16539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16540         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16541                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16542         fi
16543         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16547   $as_echo_n "(cached) " >&6
16548 else
16549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h.  */
16551 int i;
16552 _ACEOF
16553 if ac_fn_c_try_compile "$LINENO"; then :
16554   xorg_cv_cc_flag_unused_command_line_argument=yes
16555 else
16556   xorg_cv_cc_flag_unused_command_line_argument=no
16557 fi
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 fi
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16562         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16563         CFLAGS="$xorg_testset_save_CFLAGS"
16564 fi
16565
16566 found="no"
16567
16568         if test $found = "no" ; then
16569                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16570                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16571                 fi
16572
16573                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16574                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16575                 fi
16576
16577                 CFLAGS="$CFLAGS -Wtrigraphs"
16578
16579                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16580 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16581                 cacheid=xorg_cv_cc_flag__Wtrigraphs
16582                 if eval \${$cacheid+:} false; then :
16583   $as_echo_n "(cached) " >&6
16584 else
16585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h.  */
16587 int i;
16588 int
16589 main ()
16590 {
16591
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 if ac_fn_c_try_link "$LINENO"; then :
16597   eval $cacheid=yes
16598 else
16599   eval $cacheid=no
16600 fi
16601 rm -f core conftest.err conftest.$ac_objext \
16602     conftest$ac_exeext conftest.$ac_ext
16603 fi
16604
16605
16606                 CFLAGS="$xorg_testset_save_CFLAGS"
16607
16608                 eval supported=\$$cacheid
16609                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16610 $as_echo "$supported" >&6; }
16611                 if test "$supported" = "yes" ; then
16612                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16613                         found="yes"
16614                 fi
16615         fi
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631 xorg_testset_save_CFLAGS="$CFLAGS"
16632
16633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16634         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16636 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16637 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16638   $as_echo_n "(cached) " >&6
16639 else
16640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h.  */
16642 int i;
16643 _ACEOF
16644 if ac_fn_c_try_compile "$LINENO"; then :
16645   xorg_cv_cc_flag_unknown_warning_option=yes
16646 else
16647   xorg_cv_cc_flag_unknown_warning_option=no
16648 fi
16649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650 fi
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16652 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16653         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16654         CFLAGS="$xorg_testset_save_CFLAGS"
16655 fi
16656
16657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16658         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16659                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16660         fi
16661         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16663 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16664 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16665   $as_echo_n "(cached) " >&6
16666 else
16667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h.  */
16669 int i;
16670 _ACEOF
16671 if ac_fn_c_try_compile "$LINENO"; then :
16672   xorg_cv_cc_flag_unused_command_line_argument=yes
16673 else
16674   xorg_cv_cc_flag_unused_command_line_argument=no
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677 fi
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16679 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16680         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16681         CFLAGS="$xorg_testset_save_CFLAGS"
16682 fi
16683
16684 found="no"
16685
16686         if test $found = "no" ; then
16687                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16688                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16689                 fi
16690
16691                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16692                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16693                 fi
16694
16695                 CFLAGS="$CFLAGS -Warray-bounds"
16696
16697                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16698 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16699                 cacheid=xorg_cv_cc_flag__Warray_bounds
16700                 if eval \${$cacheid+:} false; then :
16701   $as_echo_n "(cached) " >&6
16702 else
16703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h.  */
16705 int i;
16706 int
16707 main ()
16708 {
16709
16710   ;
16711   return 0;
16712 }
16713 _ACEOF
16714 if ac_fn_c_try_link "$LINENO"; then :
16715   eval $cacheid=yes
16716 else
16717   eval $cacheid=no
16718 fi
16719 rm -f core conftest.err conftest.$ac_objext \
16720     conftest$ac_exeext conftest.$ac_ext
16721 fi
16722
16723
16724                 CFLAGS="$xorg_testset_save_CFLAGS"
16725
16726                 eval supported=\$$cacheid
16727                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16728 $as_echo "$supported" >&6; }
16729                 if test "$supported" = "yes" ; then
16730                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16731                         found="yes"
16732                 fi
16733         fi
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749 xorg_testset_save_CFLAGS="$CFLAGS"
16750
16751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16752         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16754 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16755 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16756   $as_echo_n "(cached) " >&6
16757 else
16758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h.  */
16760 int i;
16761 _ACEOF
16762 if ac_fn_c_try_compile "$LINENO"; then :
16763   xorg_cv_cc_flag_unknown_warning_option=yes
16764 else
16765   xorg_cv_cc_flag_unknown_warning_option=no
16766 fi
16767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16768 fi
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16770 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16771         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16772         CFLAGS="$xorg_testset_save_CFLAGS"
16773 fi
16774
16775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16776         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16777                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16778         fi
16779         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16781 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16782 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16783   $as_echo_n "(cached) " >&6
16784 else
16785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h.  */
16787 int i;
16788 _ACEOF
16789 if ac_fn_c_try_compile "$LINENO"; then :
16790   xorg_cv_cc_flag_unused_command_line_argument=yes
16791 else
16792   xorg_cv_cc_flag_unused_command_line_argument=no
16793 fi
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 fi
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16797 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16798         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16799         CFLAGS="$xorg_testset_save_CFLAGS"
16800 fi
16801
16802 found="no"
16803
16804         if test $found = "no" ; then
16805                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16806                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16807                 fi
16808
16809                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16810                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16811                 fi
16812
16813                 CFLAGS="$CFLAGS -Wwrite-strings"
16814
16815                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16816 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16817                 cacheid=xorg_cv_cc_flag__Wwrite_strings
16818                 if eval \${$cacheid+:} false; then :
16819   $as_echo_n "(cached) " >&6
16820 else
16821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h.  */
16823 int i;
16824 int
16825 main ()
16826 {
16827
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 if ac_fn_c_try_link "$LINENO"; then :
16833   eval $cacheid=yes
16834 else
16835   eval $cacheid=no
16836 fi
16837 rm -f core conftest.err conftest.$ac_objext \
16838     conftest$ac_exeext conftest.$ac_ext
16839 fi
16840
16841
16842                 CFLAGS="$xorg_testset_save_CFLAGS"
16843
16844                 eval supported=\$$cacheid
16845                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16846 $as_echo "$supported" >&6; }
16847                 if test "$supported" = "yes" ; then
16848                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16849                         found="yes"
16850                 fi
16851         fi
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867 xorg_testset_save_CFLAGS="$CFLAGS"
16868
16869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16870         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16871         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16872 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16873 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16874   $as_echo_n "(cached) " >&6
16875 else
16876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h.  */
16878 int i;
16879 _ACEOF
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881   xorg_cv_cc_flag_unknown_warning_option=yes
16882 else
16883   xorg_cv_cc_flag_unknown_warning_option=no
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 fi
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16888 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16889         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16890         CFLAGS="$xorg_testset_save_CFLAGS"
16891 fi
16892
16893 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16894         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16895                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16896         fi
16897         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16898         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16899 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16900 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16901   $as_echo_n "(cached) " >&6
16902 else
16903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h.  */
16905 int i;
16906 _ACEOF
16907 if ac_fn_c_try_compile "$LINENO"; then :
16908   xorg_cv_cc_flag_unused_command_line_argument=yes
16909 else
16910   xorg_cv_cc_flag_unused_command_line_argument=no
16911 fi
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913 fi
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16915 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16916         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16917         CFLAGS="$xorg_testset_save_CFLAGS"
16918 fi
16919
16920 found="no"
16921
16922         if test $found = "no" ; then
16923                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16924                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16925                 fi
16926
16927                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16928                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16929                 fi
16930
16931                 CFLAGS="$CFLAGS -Waddress"
16932
16933                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16934 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16935                 cacheid=xorg_cv_cc_flag__Waddress
16936                 if eval \${$cacheid+:} false; then :
16937   $as_echo_n "(cached) " >&6
16938 else
16939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h.  */
16941 int i;
16942 int
16943 main ()
16944 {
16945
16946   ;
16947   return 0;
16948 }
16949 _ACEOF
16950 if ac_fn_c_try_link "$LINENO"; then :
16951   eval $cacheid=yes
16952 else
16953   eval $cacheid=no
16954 fi
16955 rm -f core conftest.err conftest.$ac_objext \
16956     conftest$ac_exeext conftest.$ac_ext
16957 fi
16958
16959
16960                 CFLAGS="$xorg_testset_save_CFLAGS"
16961
16962                 eval supported=\$$cacheid
16963                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16964 $as_echo "$supported" >&6; }
16965                 if test "$supported" = "yes" ; then
16966                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16967                         found="yes"
16968                 fi
16969         fi
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985 xorg_testset_save_CFLAGS="$CFLAGS"
16986
16987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16988         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16990 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16991 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16992   $as_echo_n "(cached) " >&6
16993 else
16994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h.  */
16996 int i;
16997 _ACEOF
16998 if ac_fn_c_try_compile "$LINENO"; then :
16999   xorg_cv_cc_flag_unknown_warning_option=yes
17000 else
17001   xorg_cv_cc_flag_unknown_warning_option=no
17002 fi
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 fi
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17006 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17007         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17008         CFLAGS="$xorg_testset_save_CFLAGS"
17009 fi
17010
17011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17012         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17013                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17014         fi
17015         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17017 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17018 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17019   $as_echo_n "(cached) " >&6
17020 else
17021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h.  */
17023 int i;
17024 _ACEOF
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026   xorg_cv_cc_flag_unused_command_line_argument=yes
17027 else
17028   xorg_cv_cc_flag_unused_command_line_argument=no
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 fi
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17033 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17034         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17035         CFLAGS="$xorg_testset_save_CFLAGS"
17036 fi
17037
17038 found="no"
17039
17040         if test $found = "no" ; then
17041                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17042                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17043                 fi
17044
17045                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17046                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17047                 fi
17048
17049                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17050
17051                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17052 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17053                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17054                 if eval \${$cacheid+:} false; then :
17055   $as_echo_n "(cached) " >&6
17056 else
17057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h.  */
17059 int i;
17060 int
17061 main ()
17062 {
17063
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 if ac_fn_c_try_link "$LINENO"; then :
17069   eval $cacheid=yes
17070 else
17071   eval $cacheid=no
17072 fi
17073 rm -f core conftest.err conftest.$ac_objext \
17074     conftest$ac_exeext conftest.$ac_ext
17075 fi
17076
17077
17078                 CFLAGS="$xorg_testset_save_CFLAGS"
17079
17080                 eval supported=\$$cacheid
17081                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17082 $as_echo "$supported" >&6; }
17083                 if test "$supported" = "yes" ; then
17084                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17085                         found="yes"
17086                 fi
17087         fi
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103 xorg_testset_save_CFLAGS="$CFLAGS"
17104
17105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17106         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17110   $as_echo_n "(cached) " >&6
17111 else
17112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h.  */
17114 int i;
17115 _ACEOF
17116 if ac_fn_c_try_compile "$LINENO"; then :
17117   xorg_cv_cc_flag_unknown_warning_option=yes
17118 else
17119   xorg_cv_cc_flag_unknown_warning_option=no
17120 fi
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17125         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17126         CFLAGS="$xorg_testset_save_CFLAGS"
17127 fi
17128
17129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17130         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17131                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17132         fi
17133         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17134         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17137   $as_echo_n "(cached) " >&6
17138 else
17139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h.  */
17141 int i;
17142 _ACEOF
17143 if ac_fn_c_try_compile "$LINENO"; then :
17144   xorg_cv_cc_flag_unused_command_line_argument=yes
17145 else
17146   xorg_cv_cc_flag_unused_command_line_argument=no
17147 fi
17148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 fi
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17152         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17153         CFLAGS="$xorg_testset_save_CFLAGS"
17154 fi
17155
17156 found="no"
17157
17158         if test $found = "no" ; then
17159                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17160                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17161                 fi
17162
17163                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17164                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17165                 fi
17166
17167                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17168
17169                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17170 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17171                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17172                 if eval \${$cacheid+:} false; then :
17173   $as_echo_n "(cached) " >&6
17174 else
17175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h.  */
17177 int i;
17178 int
17179 main ()
17180 {
17181
17182   ;
17183   return 0;
17184 }
17185 _ACEOF
17186 if ac_fn_c_try_link "$LINENO"; then :
17187   eval $cacheid=yes
17188 else
17189   eval $cacheid=no
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext \
17192     conftest$ac_exeext conftest.$ac_ext
17193 fi
17194
17195
17196                 CFLAGS="$xorg_testset_save_CFLAGS"
17197
17198                 eval supported=\$$cacheid
17199                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17200 $as_echo "$supported" >&6; }
17201                 if test "$supported" = "yes" ; then
17202                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17203                         found="yes"
17204                 fi
17205         fi
17206
17207
17208 fi
17209
17210
17211
17212
17213
17214
17215
17216                 CWARNFLAGS="$BASE_CFLAGS"
17217                 if  test "x$GCC" = xyes ; then
17218                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17219                 fi
17220
17221
17222
17223
17224
17225
17226
17227
17228 # Check whether --enable-strict-compilation was given.
17229 if test "${enable_strict_compilation+set}" = set; then :
17230   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17231 else
17232   STRICT_COMPILE=no
17233 fi
17234
17235
17236
17237
17238
17239
17240 STRICT_CFLAGS=""
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254 xorg_testset_save_CFLAGS="$CFLAGS"
17255
17256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17257         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17261   $as_echo_n "(cached) " >&6
17262 else
17263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264 /* end confdefs.h.  */
17265 int i;
17266 _ACEOF
17267 if ac_fn_c_try_compile "$LINENO"; then :
17268   xorg_cv_cc_flag_unknown_warning_option=yes
17269 else
17270   xorg_cv_cc_flag_unknown_warning_option=no
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 fi
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17276         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17277         CFLAGS="$xorg_testset_save_CFLAGS"
17278 fi
17279
17280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17281         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17282                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17283         fi
17284         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17288   $as_echo_n "(cached) " >&6
17289 else
17290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h.  */
17292 int i;
17293 _ACEOF
17294 if ac_fn_c_try_compile "$LINENO"; then :
17295   xorg_cv_cc_flag_unused_command_line_argument=yes
17296 else
17297   xorg_cv_cc_flag_unused_command_line_argument=no
17298 fi
17299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17300 fi
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17303         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17304         CFLAGS="$xorg_testset_save_CFLAGS"
17305 fi
17306
17307 found="no"
17308
17309         if test $found = "no" ; then
17310                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17311                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17312                 fi
17313
17314                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17315                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17316                 fi
17317
17318                 CFLAGS="$CFLAGS -pedantic"
17319
17320                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17321 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17322                 cacheid=xorg_cv_cc_flag__pedantic
17323                 if eval \${$cacheid+:} false; then :
17324   $as_echo_n "(cached) " >&6
17325 else
17326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h.  */
17328 int i;
17329 int
17330 main ()
17331 {
17332
17333   ;
17334   return 0;
17335 }
17336 _ACEOF
17337 if ac_fn_c_try_link "$LINENO"; then :
17338   eval $cacheid=yes
17339 else
17340   eval $cacheid=no
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext \
17343     conftest$ac_exeext conftest.$ac_ext
17344 fi
17345
17346
17347                 CFLAGS="$xorg_testset_save_CFLAGS"
17348
17349                 eval supported=\$$cacheid
17350                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17351 $as_echo "$supported" >&6; }
17352                 if test "$supported" = "yes" ; then
17353                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17354                         found="yes"
17355                 fi
17356         fi
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372 xorg_testset_save_CFLAGS="$CFLAGS"
17373
17374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17375         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17379   $as_echo_n "(cached) " >&6
17380 else
17381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h.  */
17383 int i;
17384 _ACEOF
17385 if ac_fn_c_try_compile "$LINENO"; then :
17386   xorg_cv_cc_flag_unknown_warning_option=yes
17387 else
17388   xorg_cv_cc_flag_unknown_warning_option=no
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 fi
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17394         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17395         CFLAGS="$xorg_testset_save_CFLAGS"
17396 fi
17397
17398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17399         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17400                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17401         fi
17402         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17406   $as_echo_n "(cached) " >&6
17407 else
17408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h.  */
17410 int i;
17411 _ACEOF
17412 if ac_fn_c_try_compile "$LINENO"; then :
17413   xorg_cv_cc_flag_unused_command_line_argument=yes
17414 else
17415   xorg_cv_cc_flag_unused_command_line_argument=no
17416 fi
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 fi
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17421         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17422         CFLAGS="$xorg_testset_save_CFLAGS"
17423 fi
17424
17425 found="no"
17426
17427         if test $found = "no" ; then
17428                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17429                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17430                 fi
17431
17432                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17433                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17434                 fi
17435
17436                 CFLAGS="$CFLAGS -Werror"
17437
17438                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17439 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17440                 cacheid=xorg_cv_cc_flag__Werror
17441                 if eval \${$cacheid+:} false; then :
17442   $as_echo_n "(cached) " >&6
17443 else
17444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h.  */
17446 int i;
17447 int
17448 main ()
17449 {
17450
17451   ;
17452   return 0;
17453 }
17454 _ACEOF
17455 if ac_fn_c_try_link "$LINENO"; then :
17456   eval $cacheid=yes
17457 else
17458   eval $cacheid=no
17459 fi
17460 rm -f core conftest.err conftest.$ac_objext \
17461     conftest$ac_exeext conftest.$ac_ext
17462 fi
17463
17464
17465                 CFLAGS="$xorg_testset_save_CFLAGS"
17466
17467                 eval supported=\$$cacheid
17468                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17469 $as_echo "$supported" >&6; }
17470                 if test "$supported" = "yes" ; then
17471                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17472                         found="yes"
17473                 fi
17474         fi
17475
17476         if test $found = "no" ; then
17477                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17478                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17479                 fi
17480
17481                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17482                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17483                 fi
17484
17485                 CFLAGS="$CFLAGS -errwarn"
17486
17487                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17488 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17489                 cacheid=xorg_cv_cc_flag__errwarn
17490                 if eval \${$cacheid+:} false; then :
17491   $as_echo_n "(cached) " >&6
17492 else
17493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h.  */
17495 int i;
17496 int
17497 main ()
17498 {
17499
17500   ;
17501   return 0;
17502 }
17503 _ACEOF
17504 if ac_fn_c_try_link "$LINENO"; then :
17505   eval $cacheid=yes
17506 else
17507   eval $cacheid=no
17508 fi
17509 rm -f core conftest.err conftest.$ac_objext \
17510     conftest$ac_exeext conftest.$ac_ext
17511 fi
17512
17513
17514                 CFLAGS="$xorg_testset_save_CFLAGS"
17515
17516                 eval supported=\$$cacheid
17517                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17518 $as_echo "$supported" >&6; }
17519                 if test "$supported" = "yes" ; then
17520                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17521                         found="yes"
17522                 fi
17523         fi
17524
17525
17526
17527 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17528 # activate it with -Werror, so we add it here explicitly.
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542 xorg_testset_save_CFLAGS="$CFLAGS"
17543
17544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17545         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17547 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17548 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17549   $as_echo_n "(cached) " >&6
17550 else
17551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h.  */
17553 int i;
17554 _ACEOF
17555 if ac_fn_c_try_compile "$LINENO"; then :
17556   xorg_cv_cc_flag_unknown_warning_option=yes
17557 else
17558   xorg_cv_cc_flag_unknown_warning_option=no
17559 fi
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17563 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17564         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17565         CFLAGS="$xorg_testset_save_CFLAGS"
17566 fi
17567
17568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17569         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17570                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17571         fi
17572         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17574 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17575 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17576   $as_echo_n "(cached) " >&6
17577 else
17578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h.  */
17580 int i;
17581 _ACEOF
17582 if ac_fn_c_try_compile "$LINENO"; then :
17583   xorg_cv_cc_flag_unused_command_line_argument=yes
17584 else
17585   xorg_cv_cc_flag_unused_command_line_argument=no
17586 fi
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 fi
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17590 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17591         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17592         CFLAGS="$xorg_testset_save_CFLAGS"
17593 fi
17594
17595 found="no"
17596
17597         if test $found = "no" ; then
17598                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17599                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17600                 fi
17601
17602                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17603                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17604                 fi
17605
17606                 CFLAGS="$CFLAGS -Werror=attributes"
17607
17608                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17609 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17610                 cacheid=xorg_cv_cc_flag__Werror_attributes
17611                 if eval \${$cacheid+:} false; then :
17612   $as_echo_n "(cached) " >&6
17613 else
17614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h.  */
17616 int i;
17617 int
17618 main ()
17619 {
17620
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 if ac_fn_c_try_link "$LINENO"; then :
17626   eval $cacheid=yes
17627 else
17628   eval $cacheid=no
17629 fi
17630 rm -f core conftest.err conftest.$ac_objext \
17631     conftest$ac_exeext conftest.$ac_ext
17632 fi
17633
17634
17635                 CFLAGS="$xorg_testset_save_CFLAGS"
17636
17637                 eval supported=\$$cacheid
17638                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17639 $as_echo "$supported" >&6; }
17640                 if test "$supported" = "yes" ; then
17641                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17642                         found="yes"
17643                 fi
17644         fi
17645
17646
17647
17648 if test "x$STRICT_COMPILE" = "xyes"; then
17649     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17650     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17651 fi
17652
17653
17654
17655
17656
17657
17658 cat >>confdefs.h <<_ACEOF
17659 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17660 _ACEOF
17661
17662         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17663         if test "x$PVM" = "x"; then
17664                 PVM="0"
17665         fi
17666
17667 cat >>confdefs.h <<_ACEOF
17668 #define PACKAGE_VERSION_MINOR $PVM
17669 _ACEOF
17670
17671         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17672         if test "x$PVP" = "x"; then
17673                 PVP="0"
17674         fi
17675
17676 cat >>confdefs.h <<_ACEOF
17677 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17678 _ACEOF
17679
17680
17681
17682 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17683 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17684 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17685 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17686
17687
17688
17689
17690 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17691 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17692 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17693 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17694 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17695
17696
17697
17698
17699
17700
17701 if test x$APP_MAN_SUFFIX = x    ; then
17702     APP_MAN_SUFFIX=1
17703 fi
17704 if test x$APP_MAN_DIR = x    ; then
17705     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17706 fi
17707
17708 if test x$LIB_MAN_SUFFIX = x    ; then
17709     LIB_MAN_SUFFIX=3
17710 fi
17711 if test x$LIB_MAN_DIR = x    ; then
17712     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17713 fi
17714
17715 if test x$FILE_MAN_SUFFIX = x    ; then
17716     case $host_os in
17717         solaris*)       FILE_MAN_SUFFIX=4  ;;
17718         *)              FILE_MAN_SUFFIX=5  ;;
17719     esac
17720 fi
17721 if test x$FILE_MAN_DIR = x    ; then
17722     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17723 fi
17724
17725 if test x$MISC_MAN_SUFFIX = x    ; then
17726     case $host_os in
17727         solaris*)       MISC_MAN_SUFFIX=5  ;;
17728         *)              MISC_MAN_SUFFIX=7  ;;
17729     esac
17730 fi
17731 if test x$MISC_MAN_DIR = x    ; then
17732     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17733 fi
17734
17735 if test x$DRIVER_MAN_SUFFIX = x    ; then
17736     case $host_os in
17737         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
17738         *)              DRIVER_MAN_SUFFIX=4  ;;
17739     esac
17740 fi
17741 if test x$DRIVER_MAN_DIR = x    ; then
17742     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17743 fi
17744
17745 if test x$ADMIN_MAN_SUFFIX = x    ; then
17746     case $host_os in
17747         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
17748         *)              ADMIN_MAN_SUFFIX=8  ;;
17749     esac
17750 fi
17751 if test x$ADMIN_MAN_DIR = x    ; then
17752     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17753 fi
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769 XORG_MAN_PAGE="X Version 11"
17770
17771 MAN_SUBSTS="\
17772         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17773         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17774         -e 's|__xservername__|Xorg|g' \
17775         -e 's|__xconfigfile__|xorg.conf|g' \
17776         -e 's|__projectroot__|\$(prefix)|g' \
17777         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17778         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17779         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17780         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17781         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17782         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17783         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17784
17785
17786
17787 # Check whether --enable-silent-rules was given.
17788 if test "${enable_silent_rules+set}" = set; then :
17789   enableval=$enable_silent_rules;
17790 fi
17791
17792 case $enable_silent_rules in # (((
17793   yes) AM_DEFAULT_VERBOSITY=0;;
17794    no) AM_DEFAULT_VERBOSITY=1;;
17795     *) AM_DEFAULT_VERBOSITY=0;;
17796 esac
17797 am_make=${MAKE-make}
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17799 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17800 if ${am_cv_make_support_nested_variables+:} false; then :
17801   $as_echo_n "(cached) " >&6
17802 else
17803   if $as_echo 'TRUE=$(BAR$(V))
17804 BAR0=false
17805 BAR1=true
17806 V=1
17807 am__doit:
17808         @$(TRUE)
17809 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17810   am_cv_make_support_nested_variables=yes
17811 else
17812   am_cv_make_support_nested_variables=no
17813 fi
17814 fi
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17816 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17817 if test $am_cv_make_support_nested_variables = yes; then
17818     AM_V='$(V)'
17819   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17820 else
17821   AM_V=$AM_DEFAULT_VERBOSITY
17822   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17823 fi
17824 AM_BACKSLASH='\'
17825
17826
17827
17828 # Checks for libraries.
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mtdev_open in -lmtdev" >&5
17830 $as_echo_n "checking for mtdev_open in -lmtdev... " >&6; }
17831 if ${ac_cv_lib_mtdev_mtdev_open+:} false; then :
17832   $as_echo_n "(cached) " >&6
17833 else
17834   ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-lmtdev  $LIBS"
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h.  */
17838
17839 /* Override any GCC internal prototype to avoid an error.
17840    Use char because int might match the return type of a GCC
17841    builtin and then its argument prototype would still apply.  */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char mtdev_open ();
17846 int
17847 main ()
17848 {
17849 return mtdev_open ();
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 if ac_fn_c_try_link "$LINENO"; then :
17855   ac_cv_lib_mtdev_mtdev_open=yes
17856 else
17857   ac_cv_lib_mtdev_mtdev_open=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext \
17860     conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17862 fi
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtdev_mtdev_open" >&5
17864 $as_echo "$ac_cv_lib_mtdev_mtdev_open" >&6; }
17865 if test "x$ac_cv_lib_mtdev_mtdev_open" = xyes; then :
17866   cat >>confdefs.h <<_ACEOF
17867 #define HAVE_LIBMTDEV 1
17868 _ACEOF
17869
17870   LIBS="-lmtdev $LIBS"
17871
17872 fi
17873
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
17875 $as_echo_n "checking for atan2 in -lm... " >&6; }
17876 if ${ac_cv_lib_m_atan2+:} false; then :
17877   $as_echo_n "(cached) " >&6
17878 else
17879   ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-lm  $LIBS"
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h.  */
17883
17884 /* Override any GCC internal prototype to avoid an error.
17885    Use char because int might match the return type of a GCC
17886    builtin and then its argument prototype would still apply.  */
17887 #ifdef __cplusplus
17888 extern "C"
17889 #endif
17890 char atan2 ();
17891 int
17892 main ()
17893 {
17894 return atan2 ();
17895   ;
17896   return 0;
17897 }
17898 _ACEOF
17899 if ac_fn_c_try_link "$LINENO"; then :
17900   ac_cv_lib_m_atan2=yes
17901 else
17902   ac_cv_lib_m_atan2=no
17903 fi
17904 rm -f core conftest.err conftest.$ac_objext \
17905     conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17907 fi
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
17909 $as_echo "$ac_cv_lib_m_atan2" >&6; }
17910 if test "x$ac_cv_lib_m_atan2" = xyes; then :
17911   cat >>confdefs.h <<_ACEOF
17912 #define HAVE_LIBM 1
17913 _ACEOF
17914
17915   LIBS="-lm $LIBS"
17916
17917 fi
17918
17919
17920 # Obtain compiler/linker options for the mtrack driver dependencies
17921
17922 pkg_failed=no
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17924 $as_echo_n "checking for XORG... " >&6; }
17925
17926 if test -n "$XORG_CFLAGS"; then
17927     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17928  elif test -n "$PKG_CONFIG"; then
17929     if test -n "$PKG_CONFIG" && \
17930     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
17931   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
17932   ac_status=$?
17933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17934   test $ac_status = 0; }; then
17935   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
17936                       test "x$?" != "x0" && pkg_failed=yes
17937 else
17938   pkg_failed=yes
17939 fi
17940  else
17941     pkg_failed=untried
17942 fi
17943 if test -n "$XORG_LIBS"; then
17944     pkg_cv_XORG_LIBS="$XORG_LIBS"
17945  elif test -n "$PKG_CONFIG"; then
17946     if test -n "$PKG_CONFIG" && \
17947     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
17948   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
17949   ac_status=$?
17950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17951   test $ac_status = 0; }; then
17952   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
17953                       test "x$?" != "x0" && pkg_failed=yes
17954 else
17955   pkg_failed=yes
17956 fi
17957  else
17958     pkg_failed=untried
17959 fi
17960
17961
17962
17963 if test $pkg_failed = yes; then
17964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17966
17967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17968         _pkg_short_errors_supported=yes
17969 else
17970         _pkg_short_errors_supported=no
17971 fi
17972         if test $_pkg_short_errors_supported = yes; then
17973                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
17974         else
17975                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
17976         fi
17977         # Put the nasty error message in config.log where it belongs
17978         echo "$XORG_PKG_ERRORS" >&5
17979
17980         as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES) were not met:
17981
17982 $XORG_PKG_ERRORS
17983
17984 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17985 installed software in a non-standard prefix.
17986
17987 Alternatively, you may set the environment variables XORG_CFLAGS
17988 and XORG_LIBS to avoid the need to call pkg-config.
17989 See the pkg-config man page for more details." "$LINENO" 5
17990 elif test $pkg_failed = untried; then
17991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17992 $as_echo "no" >&6; }
17993         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17995 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17996 is in your PATH or set the PKG_CONFIG environment variable to the full
17997 path to pkg-config.
17998
17999 Alternatively, you may set the environment variables XORG_CFLAGS
18000 and XORG_LIBS to avoid the need to call pkg-config.
18001 See the pkg-config man page for more details.
18002
18003 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18004 See \`config.log' for more details" "$LINENO" 5; }
18005 else
18006         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18007         XORG_LIBS=$pkg_cv_XORG_LIBS
18008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18009 $as_echo "yes" >&6; }
18010
18011 fi
18012
18013 # Set driver name
18014 DRIVER_NAME=mtrack
18015
18016
18017 # configure option for module install directory
18018
18019 # Check whether --with-xorg-module-dir was given.
18020 if test "${with_xorg_module_dir+set}" = set; then :
18021   withval=$with_xorg_module_dir; moduledir="$withval"
18022 else
18023   moduledir="$libdir/xorg/modules"
18024 fi
18025
18026 inputdir=${moduledir}/input
18027
18028
18029 # configure option to build extra tools
18030 # Check whether --enable-tools was given.
18031 if test "${enable_tools+set}" = set; then :
18032   enableval=$enable_tools; ENABLE_TOOLS=yes
18033 else
18034   ENABLE_TOOLS=no
18035 fi
18036
18037  if test "x$ENABLE_TOOLS" = xyes; then
18038   BUILD_TOOLS_TRUE=
18039   BUILD_TOOLS_FALSE='#'
18040 else
18041   BUILD_TOOLS_TRUE='#'
18042   BUILD_TOOLS_FALSE=
18043 fi
18044
18045
18046 # configure option to enable gesture ate debugging
18047 # Check whether --enable-debug-gestures was given.
18048 if test "${enable_debug_gestures+set}" = set; then :
18049   enableval=$enable_debug_gestures; DEBUG_GESTURES=yes
18050 else
18051   DEBUG_GESTURES=no
18052 fi
18053
18054 if test "x$DEBUG_GESTURES" = xyes; then
18055
18056 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18057
18058 fi
18059
18060 # configure option to enable multitouch state debugging
18061 # Check whether --enable-debug-mtstate was given.
18062 if test "${enable_debug_mtstate+set}" = set; then :
18063   enableval=$enable_debug_mtstate; DEBUG_MTSTATE=yes
18064 else
18065   DEBUG_MTSTATE=no
18066 fi
18067
18068 if test "x$DEBUG_MTSTATE" = xyes; then
18069
18070 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18071
18072 fi
18073
18074 # configure option to enable property debugging
18075 # Check whether --enable-debug-props was given.
18076 if test "${enable_debug_props+set}" = set; then :
18077   enableval=$enable_debug_props; DEBUG_PROPS=yes
18078 else
18079   DEBUG_PROPS=no
18080 fi
18081
18082 if test "x$DEBUG_PROPS" = xyes; then
18083
18084 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18085
18086 fi
18087
18088 # configure option to enable driver debugging
18089 # Check whether --enable-debug-driver was given.
18090 if test "${enable_debug_driver+set}" = set; then :
18091   enableval=$enable_debug_driver; DEBUG_DRIVER=yes
18092 else
18093   DEBUG_DRIVER=no
18094 fi
18095
18096 if test "x$DEBUG_DRIVER" = xyes; then
18097
18098 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18099
18100 fi
18101
18102
18103 # configure option to enable all debugging
18104 # Check whether --enable-debug was given.
18105 if test "${enable_debug+set}" = set; then :
18106   enableval=$enable_debug; DEBUG_ALL=$enableval
18107 else
18108   DEBUG_ALL=no
18109 fi
18110
18111 if test "x$DEBUG_ALL" = xyes; then
18112
18113 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18114
18115
18116 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18117
18118
18119 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18120
18121
18122 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18123
18124 fi
18125
18126 # Everything else
18127 ac_ext=c
18128 ac_cpp='$CPP $CPPFLAGS'
18129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18132 if test -n "$ac_tool_prefix"; then
18133   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18136 $as_echo_n "checking for $ac_word... " >&6; }
18137 if ${ac_cv_prog_CC+:} false; then :
18138   $as_echo_n "(cached) " >&6
18139 else
18140   if test -n "$CC"; then
18141   ac_cv_prog_CC="$CC" # Let the user override the test.
18142 else
18143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18144 for as_dir in $PATH
18145 do
18146   IFS=$as_save_IFS
18147   test -z "$as_dir" && as_dir=.
18148     for ac_exec_ext in '' $ac_executable_extensions; do
18149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18150     ac_cv_prog_CC="${ac_tool_prefix}gcc"
18151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18152     break 2
18153   fi
18154 done
18155   done
18156 IFS=$as_save_IFS
18157
18158 fi
18159 fi
18160 CC=$ac_cv_prog_CC
18161 if test -n "$CC"; then
18162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18163 $as_echo "$CC" >&6; }
18164 else
18165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18166 $as_echo "no" >&6; }
18167 fi
18168
18169
18170 fi
18171 if test -z "$ac_cv_prog_CC"; then
18172   ac_ct_CC=$CC
18173   # Extract the first word of "gcc", so it can be a program name with args.
18174 set dummy gcc; ac_word=$2
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18176 $as_echo_n "checking for $ac_word... " >&6; }
18177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18178   $as_echo_n "(cached) " >&6
18179 else
18180   if test -n "$ac_ct_CC"; then
18181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18182 else
18183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184 for as_dir in $PATH
18185 do
18186   IFS=$as_save_IFS
18187   test -z "$as_dir" && as_dir=.
18188     for ac_exec_ext in '' $ac_executable_extensions; do
18189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18190     ac_cv_prog_ac_ct_CC="gcc"
18191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18192     break 2
18193   fi
18194 done
18195   done
18196 IFS=$as_save_IFS
18197
18198 fi
18199 fi
18200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18201 if test -n "$ac_ct_CC"; then
18202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18203 $as_echo "$ac_ct_CC" >&6; }
18204 else
18205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206 $as_echo "no" >&6; }
18207 fi
18208
18209   if test "x$ac_ct_CC" = x; then
18210     CC=""
18211   else
18212     case $cross_compiling:$ac_tool_warned in
18213 yes:)
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18216 ac_tool_warned=yes ;;
18217 esac
18218     CC=$ac_ct_CC
18219   fi
18220 else
18221   CC="$ac_cv_prog_CC"
18222 fi
18223
18224 if test -z "$CC"; then
18225           if test -n "$ac_tool_prefix"; then
18226     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18227 set dummy ${ac_tool_prefix}cc; ac_word=$2
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18229 $as_echo_n "checking for $ac_word... " >&6; }
18230 if ${ac_cv_prog_CC+:} false; then :
18231   $as_echo_n "(cached) " >&6
18232 else
18233   if test -n "$CC"; then
18234   ac_cv_prog_CC="$CC" # Let the user override the test.
18235 else
18236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18237 for as_dir in $PATH
18238 do
18239   IFS=$as_save_IFS
18240   test -z "$as_dir" && as_dir=.
18241     for ac_exec_ext in '' $ac_executable_extensions; do
18242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18243     ac_cv_prog_CC="${ac_tool_prefix}cc"
18244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18245     break 2
18246   fi
18247 done
18248   done
18249 IFS=$as_save_IFS
18250
18251 fi
18252 fi
18253 CC=$ac_cv_prog_CC
18254 if test -n "$CC"; then
18255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18256 $as_echo "$CC" >&6; }
18257 else
18258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18259 $as_echo "no" >&6; }
18260 fi
18261
18262
18263   fi
18264 fi
18265 if test -z "$CC"; then
18266   # Extract the first word of "cc", so it can be a program name with args.
18267 set dummy cc; ac_word=$2
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18269 $as_echo_n "checking for $ac_word... " >&6; }
18270 if ${ac_cv_prog_CC+:} false; then :
18271   $as_echo_n "(cached) " >&6
18272 else
18273   if test -n "$CC"; then
18274   ac_cv_prog_CC="$CC" # Let the user override the test.
18275 else
18276   ac_prog_rejected=no
18277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18278 for as_dir in $PATH
18279 do
18280   IFS=$as_save_IFS
18281   test -z "$as_dir" && as_dir=.
18282     for ac_exec_ext in '' $ac_executable_extensions; do
18283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18284     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18285        ac_prog_rejected=yes
18286        continue
18287      fi
18288     ac_cv_prog_CC="cc"
18289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18290     break 2
18291   fi
18292 done
18293   done
18294 IFS=$as_save_IFS
18295
18296 if test $ac_prog_rejected = yes; then
18297   # We found a bogon in the path, so make sure we never use it.
18298   set dummy $ac_cv_prog_CC
18299   shift
18300   if test $# != 0; then
18301     # We chose a different compiler from the bogus one.
18302     # However, it has the same basename, so the bogon will be chosen
18303     # first if we set CC to just the basename; use the full file name.
18304     shift
18305     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18306   fi
18307 fi
18308 fi
18309 fi
18310 CC=$ac_cv_prog_CC
18311 if test -n "$CC"; then
18312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18313 $as_echo "$CC" >&6; }
18314 else
18315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18316 $as_echo "no" >&6; }
18317 fi
18318
18319
18320 fi
18321 if test -z "$CC"; then
18322   if test -n "$ac_tool_prefix"; then
18323   for ac_prog in cl.exe
18324   do
18325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18328 $as_echo_n "checking for $ac_word... " >&6; }
18329 if ${ac_cv_prog_CC+:} false; then :
18330   $as_echo_n "(cached) " >&6
18331 else
18332   if test -n "$CC"; then
18333   ac_cv_prog_CC="$CC" # Let the user override the test.
18334 else
18335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18336 for as_dir in $PATH
18337 do
18338   IFS=$as_save_IFS
18339   test -z "$as_dir" && as_dir=.
18340     for ac_exec_ext in '' $ac_executable_extensions; do
18341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18342     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18344     break 2
18345   fi
18346 done
18347   done
18348 IFS=$as_save_IFS
18349
18350 fi
18351 fi
18352 CC=$ac_cv_prog_CC
18353 if test -n "$CC"; then
18354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18355 $as_echo "$CC" >&6; }
18356 else
18357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18358 $as_echo "no" >&6; }
18359 fi
18360
18361
18362     test -n "$CC" && break
18363   done
18364 fi
18365 if test -z "$CC"; then
18366   ac_ct_CC=$CC
18367   for ac_prog in cl.exe
18368 do
18369   # Extract the first word of "$ac_prog", so it can be a program name with args.
18370 set dummy $ac_prog; ac_word=$2
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18372 $as_echo_n "checking for $ac_word... " >&6; }
18373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18374   $as_echo_n "(cached) " >&6
18375 else
18376   if test -n "$ac_ct_CC"; then
18377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18378 else
18379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18380 for as_dir in $PATH
18381 do
18382   IFS=$as_save_IFS
18383   test -z "$as_dir" && as_dir=.
18384     for ac_exec_ext in '' $ac_executable_extensions; do
18385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18386     ac_cv_prog_ac_ct_CC="$ac_prog"
18387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18388     break 2
18389   fi
18390 done
18391   done
18392 IFS=$as_save_IFS
18393
18394 fi
18395 fi
18396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18397 if test -n "$ac_ct_CC"; then
18398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18399 $as_echo "$ac_ct_CC" >&6; }
18400 else
18401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18403 fi
18404
18405
18406   test -n "$ac_ct_CC" && break
18407 done
18408
18409   if test "x$ac_ct_CC" = x; then
18410     CC=""
18411   else
18412     case $cross_compiling:$ac_tool_warned in
18413 yes:)
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18416 ac_tool_warned=yes ;;
18417 esac
18418     CC=$ac_ct_CC
18419   fi
18420 fi
18421
18422 fi
18423
18424
18425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18427 as_fn_error $? "no acceptable C compiler found in \$PATH
18428 See \`config.log' for more details" "$LINENO" 5; }
18429
18430 # Provide some information about the compiler.
18431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18432 set X $ac_compile
18433 ac_compiler=$2
18434 for ac_option in --version -v -V -qversion; do
18435   { { ac_try="$ac_compiler $ac_option >&5"
18436 case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18441 $as_echo "$ac_try_echo"; } >&5
18442   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18443   ac_status=$?
18444   if test -s conftest.err; then
18445     sed '10a\
18446 ... rest of stderr output deleted ...
18447          10q' conftest.err >conftest.er1
18448     cat conftest.er1 >&5
18449   fi
18450   rm -f conftest.er1 conftest.err
18451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18452   test $ac_status = 0; }
18453 done
18454
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18457 if ${ac_cv_c_compiler_gnu+:} false; then :
18458   $as_echo_n "(cached) " >&6
18459 else
18460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h.  */
18462
18463 int
18464 main ()
18465 {
18466 #ifndef __GNUC__
18467        choke me
18468 #endif
18469
18470   ;
18471   return 0;
18472 }
18473 _ACEOF
18474 if ac_fn_c_try_compile "$LINENO"; then :
18475   ac_compiler_gnu=yes
18476 else
18477   ac_compiler_gnu=no
18478 fi
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18481
18482 fi
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18485 if test $ac_compiler_gnu = yes; then
18486   GCC=yes
18487 else
18488   GCC=
18489 fi
18490 ac_test_CFLAGS=${CFLAGS+set}
18491 ac_save_CFLAGS=$CFLAGS
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18494 if ${ac_cv_prog_cc_g+:} false; then :
18495   $as_echo_n "(cached) " >&6
18496 else
18497   ac_save_c_werror_flag=$ac_c_werror_flag
18498    ac_c_werror_flag=yes
18499    ac_cv_prog_cc_g=no
18500    CFLAGS="-g"
18501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h.  */
18503
18504 int
18505 main ()
18506 {
18507
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 if ac_fn_c_try_compile "$LINENO"; then :
18513   ac_cv_prog_cc_g=yes
18514 else
18515   CFLAGS=""
18516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h.  */
18518
18519 int
18520 main ()
18521 {
18522
18523   ;
18524   return 0;
18525 }
18526 _ACEOF
18527 if ac_fn_c_try_compile "$LINENO"; then :
18528
18529 else
18530   ac_c_werror_flag=$ac_save_c_werror_flag
18531          CFLAGS="-g"
18532          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h.  */
18534
18535 int
18536 main ()
18537 {
18538
18539   ;
18540   return 0;
18541 }
18542 _ACEOF
18543 if ac_fn_c_try_compile "$LINENO"; then :
18544   ac_cv_prog_cc_g=yes
18545 fi
18546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18547 fi
18548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18549 fi
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551    ac_c_werror_flag=$ac_save_c_werror_flag
18552 fi
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18554 $as_echo "$ac_cv_prog_cc_g" >&6; }
18555 if test "$ac_test_CFLAGS" = set; then
18556   CFLAGS=$ac_save_CFLAGS
18557 elif test $ac_cv_prog_cc_g = yes; then
18558   if test "$GCC" = yes; then
18559     CFLAGS="-g -O2"
18560   else
18561     CFLAGS="-g"
18562   fi
18563 else
18564   if test "$GCC" = yes; then
18565     CFLAGS="-O2"
18566   else
18567     CFLAGS=
18568   fi
18569 fi
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18572 if ${ac_cv_prog_cc_c89+:} false; then :
18573   $as_echo_n "(cached) " >&6
18574 else
18575   ac_cv_prog_cc_c89=no
18576 ac_save_CC=$CC
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h.  */
18579 #include <stdarg.h>
18580 #include <stdio.h>
18581 struct stat;
18582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18583 struct buf { int x; };
18584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18585 static char *e (p, i)
18586      char **p;
18587      int i;
18588 {
18589   return p[i];
18590 }
18591 static char *f (char * (*g) (char **, int), char **p, ...)
18592 {
18593   char *s;
18594   va_list v;
18595   va_start (v,p);
18596   s = g (p, va_arg (v,int));
18597   va_end (v);
18598   return s;
18599 }
18600
18601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
18602    function prototypes and stuff, but not '\xHH' hex character constants.
18603    These don't provoke an error unfortunately, instead are silently treated
18604    as 'x'.  The following induces an error, until -std is added to get
18605    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
18606    array size at least.  It's necessary to write '\x00'==0 to get something
18607    that's true only with -std.  */
18608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18609
18610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18611    inside strings and character constants.  */
18612 #define FOO(x) 'x'
18613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18614
18615 int test (int i, double x);
18616 struct s1 {int (*f) (int a);};
18617 struct s2 {int (*f) (double a);};
18618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18619 int argc;
18620 char **argv;
18621 int
18622 main ()
18623 {
18624 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18630         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18631 do
18632   CC="$ac_save_CC $ac_arg"
18633   if ac_fn_c_try_compile "$LINENO"; then :
18634   ac_cv_prog_cc_c89=$ac_arg
18635 fi
18636 rm -f core conftest.err conftest.$ac_objext
18637   test "x$ac_cv_prog_cc_c89" != "xno" && break
18638 done
18639 rm -f conftest.$ac_ext
18640 CC=$ac_save_CC
18641
18642 fi
18643 # AC_CACHE_VAL
18644 case "x$ac_cv_prog_cc_c89" in
18645   x)
18646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18647 $as_echo "none needed" >&6; } ;;
18648   xno)
18649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18650 $as_echo "unsupported" >&6; } ;;
18651   *)
18652     CC="$CC $ac_cv_prog_cc_c89"
18653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18655 esac
18656 if test "x$ac_cv_prog_cc_c89" != xno; then :
18657
18658 fi
18659
18660 ac_ext=c
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18665
18666 ac_ext=c
18667 ac_cpp='$CPP $CPPFLAGS'
18668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18672 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18673 if ${am_cv_prog_cc_c_o+:} false; then :
18674   $as_echo_n "(cached) " >&6
18675 else
18676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h.  */
18678
18679 int
18680 main ()
18681 {
18682
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687   # Make sure it works both with $CC and with simple cc.
18688   # Following AC_PROG_CC_C_O, we do the test twice because some
18689   # compilers refuse to overwrite an existing .o file with -o,
18690   # though they will create one.
18691   am_cv_prog_cc_c_o=yes
18692   for am_i in 1 2; do
18693     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18694    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18695    ac_status=$?
18696    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697    (exit $ac_status); } \
18698          && test -f conftest2.$ac_objext; then
18699       : OK
18700     else
18701       am_cv_prog_cc_c_o=no
18702       break
18703     fi
18704   done
18705   rm -f core conftest*
18706   unset am_i
18707 fi
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18709 $as_echo "$am_cv_prog_cc_c_o" >&6; }
18710 if test "$am_cv_prog_cc_c_o" != yes; then
18711    # Losing compiler, so override with the script.
18712    # FIXME: It is wrong to rewrite CC.
18713    # But if we don't then we get into trouble of one sort or another.
18714    # A longer-term fix would be to have automake use am__CC in this case,
18715    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18716    CC="$am_aux_dir/compile $CC"
18717 fi
18718 ac_ext=c
18719 ac_cpp='$CPP $CPPFLAGS'
18720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18723
18724
18725 depcc="$CC"   am_compiler_list=
18726
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18728 $as_echo_n "checking dependency style of $depcc... " >&6; }
18729 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
18730   $as_echo_n "(cached) " >&6
18731 else
18732   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18733   # We make a subdir and do the tests there.  Otherwise we can end up
18734   # making bogus files that we don't know about and never remove.  For
18735   # instance it was reported that on HP-UX the gcc test will end up
18736   # making a dummy file named 'D' -- because '-MD' means "put the output
18737   # in D".
18738   rm -rf conftest.dir
18739   mkdir conftest.dir
18740   # Copy depcomp to subdir because otherwise we won't find it if we're
18741   # using a relative directory.
18742   cp "$am_depcomp" conftest.dir
18743   cd conftest.dir
18744   # We will build objects and dependencies in a subdirectory because
18745   # it helps to detect inapplicable dependency modes.  For instance
18746   # both Tru64's cc and ICC support -MD to output dependencies as a
18747   # side effect of compilation, but ICC will put the dependencies in
18748   # the current directory while Tru64 will put them in the object
18749   # directory.
18750   mkdir sub
18751
18752   am_cv_CC_dependencies_compiler_type=none
18753   if test "$am_compiler_list" = ""; then
18754      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18755   fi
18756   am__universal=false
18757   case " $depcc " in #(
18758      *\ -arch\ *\ -arch\ *) am__universal=true ;;
18759      esac
18760
18761   for depmode in $am_compiler_list; do
18762     # Setup a source with many dependencies, because some compilers
18763     # like to wrap large dependency lists on column 80 (with \), and
18764     # we should not choose a depcomp mode which is confused by this.
18765     #
18766     # We need to recreate these files for each test, as the compiler may
18767     # overwrite some of them when testing with obscure command lines.
18768     # This happens at least with the AIX C compiler.
18769     : > sub/conftest.c
18770     for i in 1 2 3 4 5 6; do
18771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
18772       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18773       # Solaris 10 /bin/sh.
18774       echo '/* dummy */' > sub/conftst$i.h
18775     done
18776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18777
18778     # We check with '-c' and '-o' for the sake of the "dashmstdout"
18779     # mode.  It turns out that the SunPro C++ compiler does not properly
18780     # handle '-M -o', and we need to detect this.  Also, some Intel
18781     # versions had trouble with output in subdirs.
18782     am__obj=sub/conftest.${OBJEXT-o}
18783     am__minus_obj="-o $am__obj"
18784     case $depmode in
18785     gcc)
18786       # This depmode causes a compiler race in universal mode.
18787       test "$am__universal" = false || continue
18788       ;;
18789     nosideeffect)
18790       # After this tag, mechanisms are not by side-effect, so they'll
18791       # only be used when explicitly requested.
18792       if test "x$enable_dependency_tracking" = xyes; then
18793         continue
18794       else
18795         break
18796       fi
18797       ;;
18798     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18799       # This compiler won't grok '-c -o', but also, the minuso test has
18800       # not run yet.  These depmodes are late enough in the game, and
18801       # so weak that their functioning should not be impacted.
18802       am__obj=conftest.${OBJEXT-o}
18803       am__minus_obj=
18804       ;;
18805     none) break ;;
18806     esac
18807     if depmode=$depmode \
18808        source=sub/conftest.c object=$am__obj \
18809        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18810        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18811          >/dev/null 2>conftest.err &&
18812        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18813        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18814        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18815        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18816       # icc doesn't choke on unknown options, it will just issue warnings
18817       # or remarks (even with -Werror).  So we grep stderr for any message
18818       # that says an option was ignored or not supported.
18819       # When given -MP, icc 7.0 and 7.1 complain thusly:
18820       #   icc: Command line warning: ignoring option '-M'; no argument required
18821       # The diagnosis changed in icc 8.0:
18822       #   icc: Command line remark: option '-MP' not supported
18823       if (grep 'ignoring option' conftest.err ||
18824           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18825         am_cv_CC_dependencies_compiler_type=$depmode
18826         break
18827       fi
18828     fi
18829   done
18830
18831   cd ..
18832   rm -rf conftest.dir
18833 else
18834   am_cv_CC_dependencies_compiler_type=none
18835 fi
18836
18837 fi
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18841
18842  if
18843   test "x$enable_dependency_tracking" != xno \
18844   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18845   am__fastdepCC_TRUE=
18846   am__fastdepCC_FALSE='#'
18847 else
18848   am__fastdepCC_TRUE='#'
18849   am__fastdepCC_FALSE=
18850 fi
18851
18852
18853
18854 ac_config_files="$ac_config_files Makefile"
18855
18856 cat >confcache <<\_ACEOF
18857 # This file is a shell script that caches the results of configure
18858 # tests run on this system so they can be shared between configure
18859 # scripts and configure runs, see configure's option --config-cache.
18860 # It is not useful on other systems.  If it contains results you don't
18861 # want to keep, you may remove or edit it.
18862 #
18863 # config.status only pays attention to the cache file if you give it
18864 # the --recheck option to rerun configure.
18865 #
18866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18868 # following values.
18869
18870 _ACEOF
18871
18872 # The following way of writing the cache mishandles newlines in values,
18873 # but we know of no workaround that is simple, portable, and efficient.
18874 # So, we kill variables containing newlines.
18875 # Ultrix sh set writes to stderr and can't be redirected directly,
18876 # and sets the high bit in the cache file unless we assign to the vars.
18877 (
18878   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18879     eval ac_val=\$$ac_var
18880     case $ac_val in #(
18881     *${as_nl}*)
18882       case $ac_var in #(
18883       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18885       esac
18886       case $ac_var in #(
18887       _ | IFS | as_nl) ;; #(
18888       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18889       *) { eval $ac_var=; unset $ac_var;} ;;
18890       esac ;;
18891     esac
18892   done
18893
18894   (set) 2>&1 |
18895     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18896     *${as_nl}ac_space=\ *)
18897       # `set' does not quote correctly, so add quotes: double-quote
18898       # substitution turns \\\\ into \\, and sed turns \\ into \.
18899       sed -n \
18900         "s/'/'\\\\''/g;
18901           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18902       ;; #(
18903     *)
18904       # `set' quotes correctly as required by POSIX, so do not add quotes.
18905       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18906       ;;
18907     esac |
18908     sort
18909 ) |
18910   sed '
18911      /^ac_cv_env_/b end
18912      t clear
18913      :clear
18914      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18915      t end
18916      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18917      :end' >>confcache
18918 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18919   if test -w "$cache_file"; then
18920     if test "x$cache_file" != "x/dev/null"; then
18921       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18922 $as_echo "$as_me: updating cache $cache_file" >&6;}
18923       if test ! -f "$cache_file" || test -h "$cache_file"; then
18924         cat confcache >"$cache_file"
18925       else
18926         case $cache_file in #(
18927         */* | ?:*)
18928           mv -f confcache "$cache_file"$$ &&
18929           mv -f "$cache_file"$$ "$cache_file" ;; #(
18930         *)
18931           mv -f confcache "$cache_file" ;;
18932         esac
18933       fi
18934     fi
18935   else
18936     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18937 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18938   fi
18939 fi
18940 rm -f confcache
18941
18942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18943 # Let make expand exec_prefix.
18944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18945
18946 DEFS=-DHAVE_CONFIG_H
18947
18948 ac_libobjs=
18949 ac_ltlibobjs=
18950 U=
18951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18952   # 1. Remove the extension, and $U if already installed.
18953   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18954   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18955   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18956   #    will be set to the directory where LIBOBJS objects are built.
18957   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18958   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18959 done
18960 LIBOBJS=$ac_libobjs
18961
18962 LTLIBOBJS=$ac_ltlibobjs
18963
18964
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18966 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18967    if test -n "$am_sleep_pid"; then
18968      # Hide warnings about reused PIDs.
18969      wait $am_sleep_pid 2>/dev/null
18970    fi
18971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18972 $as_echo "done" >&6; }
18973  if test -n "$EXEEXT"; then
18974   am__EXEEXT_TRUE=
18975   am__EXEEXT_FALSE='#'
18976 else
18977   am__EXEEXT_TRUE='#'
18978   am__EXEEXT_FALSE=
18979 fi
18980
18981 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18982   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18984 fi
18985 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18986   as_fn_error $? "conditional \"AMDEP\" was never defined.
18987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18988 fi
18989 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18990   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18992 fi
18993 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
18994   as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
18995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18996 fi
18997 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18998   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19000 fi
19001
19002 : "${CONFIG_STATUS=./config.status}"
19003 ac_write_fail=0
19004 ac_clean_files_save=$ac_clean_files
19005 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19007 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19008 as_write_fail=0
19009 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19010 #! $SHELL
19011 # Generated by $as_me.
19012 # Run this file to recreate the current configuration.
19013 # Compiler output produced by configure, useful for debugging
19014 # configure, is in config.log if it exists.
19015
19016 debug=false
19017 ac_cs_recheck=false
19018 ac_cs_silent=false
19019
19020 SHELL=\${CONFIG_SHELL-$SHELL}
19021 export SHELL
19022 _ASEOF
19023 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19024 ## -------------------- ##
19025 ## M4sh Initialization. ##
19026 ## -------------------- ##
19027
19028 # Be more Bourne compatible
19029 DUALCASE=1; export DUALCASE # for MKS sh
19030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19031   emulate sh
19032   NULLCMD=:
19033   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19034   # is contrary to our usage.  Disable this feature.
19035   alias -g '${1+"$@"}'='"$@"'
19036   setopt NO_GLOB_SUBST
19037 else
19038   case `(set -o) 2>/dev/null` in #(
19039   *posix*) :
19040     set -o posix ;; #(
19041   *) :
19042      ;;
19043 esac
19044 fi
19045
19046
19047 as_nl='
19048 '
19049 export as_nl
19050 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19051 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19054 # Prefer a ksh shell builtin over an external printf program on Solaris,
19055 # but without wasting forks for bash or zsh.
19056 if test -z "$BASH_VERSION$ZSH_VERSION" \
19057     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19058   as_echo='print -r --'
19059   as_echo_n='print -rn --'
19060 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19061   as_echo='printf %s\n'
19062   as_echo_n='printf %s'
19063 else
19064   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19065     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19066     as_echo_n='/usr/ucb/echo -n'
19067   else
19068     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19069     as_echo_n_body='eval
19070       arg=$1;
19071       case $arg in #(
19072       *"$as_nl"*)
19073         expr "X$arg" : "X\\(.*\\)$as_nl";
19074         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19075       esac;
19076       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19077     '
19078     export as_echo_n_body
19079     as_echo_n='sh -c $as_echo_n_body as_echo'
19080   fi
19081   export as_echo_body
19082   as_echo='sh -c $as_echo_body as_echo'
19083 fi
19084
19085 # The user is always right.
19086 if test "${PATH_SEPARATOR+set}" != set; then
19087   PATH_SEPARATOR=:
19088   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19089     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19090       PATH_SEPARATOR=';'
19091   }
19092 fi
19093
19094
19095 # IFS
19096 # We need space, tab and new line, in precisely that order.  Quoting is
19097 # there to prevent editors from complaining about space-tab.
19098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19099 # splitting by setting IFS to empty value.)
19100 IFS=" ""        $as_nl"
19101
19102 # Find who we are.  Look in the path if we contain no directory separator.
19103 as_myself=
19104 case $0 in #((
19105   *[\\/]* ) as_myself=$0 ;;
19106   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19107 for as_dir in $PATH
19108 do
19109   IFS=$as_save_IFS
19110   test -z "$as_dir" && as_dir=.
19111     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19112   done
19113 IFS=$as_save_IFS
19114
19115      ;;
19116 esac
19117 # We did not find ourselves, most probably we were run as `sh COMMAND'
19118 # in which case we are not to be found in the path.
19119 if test "x$as_myself" = x; then
19120   as_myself=$0
19121 fi
19122 if test ! -f "$as_myself"; then
19123   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19124   exit 1
19125 fi
19126
19127 # Unset variables that we do not need and which cause bugs (e.g. in
19128 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19129 # suppresses any "Segmentation fault" message there.  '((' could
19130 # trigger a bug in pdksh 5.2.14.
19131 for as_var in BASH_ENV ENV MAIL MAILPATH
19132 do eval test x\${$as_var+set} = xset \
19133   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19134 done
19135 PS1='$ '
19136 PS2='> '
19137 PS4='+ '
19138
19139 # NLS nuisances.
19140 LC_ALL=C
19141 export LC_ALL
19142 LANGUAGE=C
19143 export LANGUAGE
19144
19145 # CDPATH.
19146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19147
19148
19149 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19150 # ----------------------------------------
19151 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19152 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19153 # script with STATUS, using 1 if that was 0.
19154 as_fn_error ()
19155 {
19156   as_status=$1; test $as_status -eq 0 && as_status=1
19157   if test "$4"; then
19158     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19159     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19160   fi
19161   $as_echo "$as_me: error: $2" >&2
19162   as_fn_exit $as_status
19163 } # as_fn_error
19164
19165
19166 # as_fn_set_status STATUS
19167 # -----------------------
19168 # Set $? to STATUS, without forking.
19169 as_fn_set_status ()
19170 {
19171   return $1
19172 } # as_fn_set_status
19173
19174 # as_fn_exit STATUS
19175 # -----------------
19176 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19177 as_fn_exit ()
19178 {
19179   set +e
19180   as_fn_set_status $1
19181   exit $1
19182 } # as_fn_exit
19183
19184 # as_fn_unset VAR
19185 # ---------------
19186 # Portably unset VAR.
19187 as_fn_unset ()
19188 {
19189   { eval $1=; unset $1;}
19190 }
19191 as_unset=as_fn_unset
19192 # as_fn_append VAR VALUE
19193 # ----------------------
19194 # Append the text in VALUE to the end of the definition contained in VAR. Take
19195 # advantage of any shell optimizations that allow amortized linear growth over
19196 # repeated appends, instead of the typical quadratic growth present in naive
19197 # implementations.
19198 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19199   eval 'as_fn_append ()
19200   {
19201     eval $1+=\$2
19202   }'
19203 else
19204   as_fn_append ()
19205   {
19206     eval $1=\$$1\$2
19207   }
19208 fi # as_fn_append
19209
19210 # as_fn_arith ARG...
19211 # ------------------
19212 # Perform arithmetic evaluation on the ARGs, and store the result in the
19213 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19214 # must be portable across $(()) and expr.
19215 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19216   eval 'as_fn_arith ()
19217   {
19218     as_val=$(( $* ))
19219   }'
19220 else
19221   as_fn_arith ()
19222   {
19223     as_val=`expr "$@" || test $? -eq 1`
19224   }
19225 fi # as_fn_arith
19226
19227
19228 if expr a : '\(a\)' >/dev/null 2>&1 &&
19229    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19230   as_expr=expr
19231 else
19232   as_expr=false
19233 fi
19234
19235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19236   as_basename=basename
19237 else
19238   as_basename=false
19239 fi
19240
19241 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19242   as_dirname=dirname
19243 else
19244   as_dirname=false
19245 fi
19246
19247 as_me=`$as_basename -- "$0" ||
19248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19249          X"$0" : 'X\(//\)$' \| \
19250          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19251 $as_echo X/"$0" |
19252     sed '/^.*\/\([^/][^/]*\)\/*$/{
19253             s//\1/
19254             q
19255           }
19256           /^X\/\(\/\/\)$/{
19257             s//\1/
19258             q
19259           }
19260           /^X\/\(\/\).*/{
19261             s//\1/
19262             q
19263           }
19264           s/.*/./; q'`
19265
19266 # Avoid depending upon Character Ranges.
19267 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19268 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19269 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19270 as_cr_digits='0123456789'
19271 as_cr_alnum=$as_cr_Letters$as_cr_digits
19272
19273 ECHO_C= ECHO_N= ECHO_T=
19274 case `echo -n x` in #(((((
19275 -n*)
19276   case `echo 'xy\c'` in
19277   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19278   xy)  ECHO_C='\c';;
19279   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19280        ECHO_T=' ';;
19281   esac;;
19282 *)
19283   ECHO_N='-n';;
19284 esac
19285
19286 rm -f conf$$ conf$$.exe conf$$.file
19287 if test -d conf$$.dir; then
19288   rm -f conf$$.dir/conf$$.file
19289 else
19290   rm -f conf$$.dir
19291   mkdir conf$$.dir 2>/dev/null
19292 fi
19293 if (echo >conf$$.file) 2>/dev/null; then
19294   if ln -s conf$$.file conf$$ 2>/dev/null; then
19295     as_ln_s='ln -s'
19296     # ... but there are two gotchas:
19297     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19298     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19299     # In both cases, we have to default to `cp -pR'.
19300     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19301       as_ln_s='cp -pR'
19302   elif ln conf$$.file conf$$ 2>/dev/null; then
19303     as_ln_s=ln
19304   else
19305     as_ln_s='cp -pR'
19306   fi
19307 else
19308   as_ln_s='cp -pR'
19309 fi
19310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19311 rmdir conf$$.dir 2>/dev/null
19312
19313
19314 # as_fn_mkdir_p
19315 # -------------
19316 # Create "$as_dir" as a directory, including parents if necessary.
19317 as_fn_mkdir_p ()
19318 {
19319
19320   case $as_dir in #(
19321   -*) as_dir=./$as_dir;;
19322   esac
19323   test -d "$as_dir" || eval $as_mkdir_p || {
19324     as_dirs=
19325     while :; do
19326       case $as_dir in #(
19327       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19328       *) as_qdir=$as_dir;;
19329       esac
19330       as_dirs="'$as_qdir' $as_dirs"
19331       as_dir=`$as_dirname -- "$as_dir" ||
19332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19333          X"$as_dir" : 'X\(//\)[^/]' \| \
19334          X"$as_dir" : 'X\(//\)$' \| \
19335          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19336 $as_echo X"$as_dir" |
19337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19338             s//\1/
19339             q
19340           }
19341           /^X\(\/\/\)[^/].*/{
19342             s//\1/
19343             q
19344           }
19345           /^X\(\/\/\)$/{
19346             s//\1/
19347             q
19348           }
19349           /^X\(\/\).*/{
19350             s//\1/
19351             q
19352           }
19353           s/.*/./; q'`
19354       test -d "$as_dir" && break
19355     done
19356     test -z "$as_dirs" || eval "mkdir $as_dirs"
19357   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19358
19359
19360 } # as_fn_mkdir_p
19361 if mkdir -p . 2>/dev/null; then
19362   as_mkdir_p='mkdir -p "$as_dir"'
19363 else
19364   test -d ./-p && rmdir ./-p
19365   as_mkdir_p=false
19366 fi
19367
19368
19369 # as_fn_executable_p FILE
19370 # -----------------------
19371 # Test if FILE is an executable regular file.
19372 as_fn_executable_p ()
19373 {
19374   test -f "$1" && test -x "$1"
19375 } # as_fn_executable_p
19376 as_test_x='test -x'
19377 as_executable_p=as_fn_executable_p
19378
19379 # Sed expression to map a string onto a valid CPP name.
19380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19381
19382 # Sed expression to map a string onto a valid variable name.
19383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19384
19385
19386 exec 6>&1
19387 ## ----------------------------------- ##
19388 ## Main body of $CONFIG_STATUS script. ##
19389 ## ----------------------------------- ##
19390 _ASEOF
19391 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19392
19393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19394 # Save the log message, to keep $0 and so on meaningful, and to
19395 # report actual input values of CONFIG_FILES etc. instead of their
19396 # values after options handling.
19397 ac_log="
19398 This file was extended by xf86-input-mtrack $as_me 0.2.0, which was
19399 generated by GNU Autoconf 2.69.  Invocation command line was
19400
19401   CONFIG_FILES    = $CONFIG_FILES
19402   CONFIG_HEADERS  = $CONFIG_HEADERS
19403   CONFIG_LINKS    = $CONFIG_LINKS
19404   CONFIG_COMMANDS = $CONFIG_COMMANDS
19405   $ $0 $@
19406
19407 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19408 "
19409
19410 _ACEOF
19411
19412 case $ac_config_files in *"
19413 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19414 esac
19415
19416 case $ac_config_headers in *"
19417 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19418 esac
19419
19420
19421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19422 # Files that config.status was made for.
19423 config_files="$ac_config_files"
19424 config_headers="$ac_config_headers"
19425 config_commands="$ac_config_commands"
19426
19427 _ACEOF
19428
19429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19430 ac_cs_usage="\
19431 \`$as_me' instantiates files and other configuration actions
19432 from templates according to the current configuration.  Unless the files
19433 and actions are specified as TAGs, all are instantiated by default.
19434
19435 Usage: $0 [OPTION]... [TAG]...
19436
19437   -h, --help       print this help, then exit
19438   -V, --version    print version number and configuration settings, then exit
19439       --config     print configuration, then exit
19440   -q, --quiet, --silent
19441                    do not print progress messages
19442   -d, --debug      don't remove temporary files
19443       --recheck    update $as_me by reconfiguring in the same conditions
19444       --file=FILE[:TEMPLATE]
19445                    instantiate the configuration file FILE
19446       --header=FILE[:TEMPLATE]
19447                    instantiate the configuration header FILE
19448
19449 Configuration files:
19450 $config_files
19451
19452 Configuration headers:
19453 $config_headers
19454
19455 Configuration commands:
19456 $config_commands
19457
19458 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19459
19460 _ACEOF
19461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19462 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19463 ac_cs_version="\\
19464 xf86-input-mtrack config.status 0.2.0
19465 configured by $0, generated by GNU Autoconf 2.69,
19466   with options \\"\$ac_cs_config\\"
19467
19468 Copyright (C) 2012 Free Software Foundation, Inc.
19469 This config.status script is free software; the Free Software Foundation
19470 gives unlimited permission to copy, distribute and modify it."
19471
19472 ac_pwd='$ac_pwd'
19473 srcdir='$srcdir'
19474 INSTALL='$INSTALL'
19475 MKDIR_P='$MKDIR_P'
19476 AWK='$AWK'
19477 test -n "\$AWK" || AWK=awk
19478 _ACEOF
19479
19480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481 # The default lists apply if the user does not specify any file.
19482 ac_need_defaults=:
19483 while test $# != 0
19484 do
19485   case $1 in
19486   --*=?*)
19487     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19488     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19489     ac_shift=:
19490     ;;
19491   --*=)
19492     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19493     ac_optarg=
19494     ac_shift=:
19495     ;;
19496   *)
19497     ac_option=$1
19498     ac_optarg=$2
19499     ac_shift=shift
19500     ;;
19501   esac
19502
19503   case $ac_option in
19504   # Handling of the options.
19505   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19506     ac_cs_recheck=: ;;
19507   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19508     $as_echo "$ac_cs_version"; exit ;;
19509   --config | --confi | --conf | --con | --co | --c )
19510     $as_echo "$ac_cs_config"; exit ;;
19511   --debug | --debu | --deb | --de | --d | -d )
19512     debug=: ;;
19513   --file | --fil | --fi | --f )
19514     $ac_shift
19515     case $ac_optarg in
19516     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19517     '') as_fn_error $? "missing file argument" ;;
19518     esac
19519     as_fn_append CONFIG_FILES " '$ac_optarg'"
19520     ac_need_defaults=false;;
19521   --header | --heade | --head | --hea )
19522     $ac_shift
19523     case $ac_optarg in
19524     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19525     esac
19526     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19527     ac_need_defaults=false;;
19528   --he | --h)
19529     # Conflict between --help and --header
19530     as_fn_error $? "ambiguous option: \`$1'
19531 Try \`$0 --help' for more information.";;
19532   --help | --hel | -h )
19533     $as_echo "$ac_cs_usage"; exit ;;
19534   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19535   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19536     ac_cs_silent=: ;;
19537
19538   # This is an error.
19539   -*) as_fn_error $? "unrecognized option: \`$1'
19540 Try \`$0 --help' for more information." ;;
19541
19542   *) as_fn_append ac_config_targets " $1"
19543      ac_need_defaults=false ;;
19544
19545   esac
19546   shift
19547 done
19548
19549 ac_configure_extra_args=
19550
19551 if $ac_cs_silent; then
19552   exec 6>/dev/null
19553   ac_configure_extra_args="$ac_configure_extra_args --silent"
19554 fi
19555
19556 _ACEOF
19557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19558 if \$ac_cs_recheck; then
19559   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19560   shift
19561   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19562   CONFIG_SHELL='$SHELL'
19563   export CONFIG_SHELL
19564   exec "\$@"
19565 fi
19566
19567 _ACEOF
19568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19569 exec 5>>config.log
19570 {
19571   echo
19572   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19573 ## Running $as_me. ##
19574 _ASBOX
19575   $as_echo "$ac_log"
19576 } >&5
19577
19578 _ACEOF
19579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19580 #
19581 # INIT-COMMANDS
19582 #
19583 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19584
19585
19586 # The HP-UX ksh and POSIX shell print the target directory to stdout
19587 # if CDPATH is set.
19588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19589
19590 sed_quote_subst='$sed_quote_subst'
19591 double_quote_subst='$double_quote_subst'
19592 delay_variable_subst='$delay_variable_subst'
19593 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19594 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19595 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19596 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19597 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19598 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19599 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19600 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19601 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19602 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19603 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19604 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19605 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19606 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19607 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19608 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19609 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19610 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19611 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19612 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19613 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19614 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19615 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19616 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19617 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19618 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19619 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19620 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19621 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19622 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19623 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19624 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19625 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19626 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19627 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19628 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19629 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19630 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19631 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19632 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19633 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19634 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19635 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19636 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19637 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19638 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19639 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19640 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19641 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19642 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19643 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19644 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19645 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19646 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19647 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19648 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19649 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19650 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19651 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19716 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19717 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19718 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19719 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19720 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19721 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19722 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19723
19724 LTCC='$LTCC'
19725 LTCFLAGS='$LTCFLAGS'
19726 compiler='$compiler_DEFAULT'
19727
19728 # A function that is used when there is no print builtin or printf.
19729 func_fallback_echo ()
19730 {
19731   eval 'cat <<_LTECHO_EOF
19732 \$1
19733 _LTECHO_EOF'
19734 }
19735
19736 # Quote evaled strings.
19737 for var in SHELL \
19738 ECHO \
19739 PATH_SEPARATOR \
19740 SED \
19741 GREP \
19742 EGREP \
19743 FGREP \
19744 LD \
19745 NM \
19746 LN_S \
19747 lt_SP2NL \
19748 lt_NL2SP \
19749 reload_flag \
19750 OBJDUMP \
19751 deplibs_check_method \
19752 file_magic_cmd \
19753 file_magic_glob \
19754 want_nocaseglob \
19755 DLLTOOL \
19756 sharedlib_from_linklib_cmd \
19757 AR \
19758 AR_FLAGS \
19759 archiver_list_spec \
19760 STRIP \
19761 RANLIB \
19762 CC \
19763 CFLAGS \
19764 compiler \
19765 lt_cv_sys_global_symbol_pipe \
19766 lt_cv_sys_global_symbol_to_cdecl \
19767 lt_cv_sys_global_symbol_to_c_name_address \
19768 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19769 nm_file_list_spec \
19770 lt_prog_compiler_no_builtin_flag \
19771 lt_prog_compiler_pic \
19772 lt_prog_compiler_wl \
19773 lt_prog_compiler_static \
19774 lt_cv_prog_compiler_c_o \
19775 need_locks \
19776 MANIFEST_TOOL \
19777 DSYMUTIL \
19778 NMEDIT \
19779 LIPO \
19780 OTOOL \
19781 OTOOL64 \
19782 shrext_cmds \
19783 export_dynamic_flag_spec \
19784 whole_archive_flag_spec \
19785 compiler_needs_object \
19786 with_gnu_ld \
19787 allow_undefined_flag \
19788 no_undefined_flag \
19789 hardcode_libdir_flag_spec \
19790 hardcode_libdir_separator \
19791 exclude_expsyms \
19792 include_expsyms \
19793 file_list_spec \
19794 variables_saved_for_relink \
19795 libname_spec \
19796 library_names_spec \
19797 soname_spec \
19798 install_override_mode \
19799 finish_eval \
19800 old_striplib \
19801 striplib; do
19802     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19803     *[\\\\\\\`\\"\\\$]*)
19804       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19805       ;;
19806     *)
19807       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19808       ;;
19809     esac
19810 done
19811
19812 # Double-quote double-evaled strings.
19813 for var in reload_cmds \
19814 old_postinstall_cmds \
19815 old_postuninstall_cmds \
19816 old_archive_cmds \
19817 extract_expsyms_cmds \
19818 old_archive_from_new_cmds \
19819 old_archive_from_expsyms_cmds \
19820 archive_cmds \
19821 archive_expsym_cmds \
19822 module_cmds \
19823 module_expsym_cmds \
19824 export_symbols_cmds \
19825 prelink_cmds \
19826 postlink_cmds \
19827 postinstall_cmds \
19828 postuninstall_cmds \
19829 finish_cmds \
19830 sys_lib_search_path_spec \
19831 sys_lib_dlsearch_path_spec; do
19832     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19833     *[\\\\\\\`\\"\\\$]*)
19834       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19835       ;;
19836     *)
19837       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19838       ;;
19839     esac
19840 done
19841
19842 ac_aux_dir='$ac_aux_dir'
19843 xsi_shell='$xsi_shell'
19844 lt_shell_append='$lt_shell_append'
19845
19846 # See if we are running on zsh, and set the options which allow our
19847 # commands through without removal of \ escapes INIT.
19848 if test -n "\${ZSH_VERSION+set}" ; then
19849    setopt NO_GLOB_SUBST
19850 fi
19851
19852
19853     PACKAGE='$PACKAGE'
19854     VERSION='$VERSION'
19855     TIMESTAMP='$TIMESTAMP'
19856     RM='$RM'
19857     ofile='$ofile'
19858
19859
19860
19861
19862 _ACEOF
19863
19864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19865
19866 # Handling of arguments.
19867 for ac_config_target in $ac_config_targets
19868 do
19869   case $ac_config_target in
19870     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19871     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19872     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19873     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19874
19875   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19876   esac
19877 done
19878
19879
19880 # If the user did not use the arguments to specify the items to instantiate,
19881 # then the envvar interface is used.  Set only those that are not.
19882 # We use the long form for the default assignment because of an extremely
19883 # bizarre bug on SunOS 4.1.3.
19884 if $ac_need_defaults; then
19885   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19886   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19887   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19888 fi
19889
19890 # Have a temporary directory for convenience.  Make it in the build tree
19891 # simply because there is no reason against having it here, and in addition,
19892 # creating and moving files from /tmp can sometimes cause problems.
19893 # Hook for its removal unless debugging.
19894 # Note that there is a small window in which the directory will not be cleaned:
19895 # after its creation but before its name has been assigned to `$tmp'.
19896 $debug ||
19897 {
19898   tmp= ac_tmp=
19899   trap 'exit_status=$?
19900   : "${ac_tmp:=$tmp}"
19901   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19902 ' 0
19903   trap 'as_fn_exit 1' 1 2 13 15
19904 }
19905 # Create a (secure) tmp directory for tmp files.
19906
19907 {
19908   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19909   test -d "$tmp"
19910 }  ||
19911 {
19912   tmp=./conf$$-$RANDOM
19913   (umask 077 && mkdir "$tmp")
19914 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19915 ac_tmp=$tmp
19916
19917 # Set up the scripts for CONFIG_FILES section.
19918 # No need to generate them if there are no CONFIG_FILES.
19919 # This happens for instance with `./config.status config.h'.
19920 if test -n "$CONFIG_FILES"; then
19921
19922
19923 ac_cr=`echo X | tr X '\015'`
19924 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19925 # But we know of no other shell where ac_cr would be empty at this
19926 # point, so we can use a bashism as a fallback.
19927 if test "x$ac_cr" = x; then
19928   eval ac_cr=\$\'\\r\'
19929 fi
19930 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19931 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19932   ac_cs_awk_cr='\\r'
19933 else
19934   ac_cs_awk_cr=$ac_cr
19935 fi
19936
19937 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19938 _ACEOF
19939
19940
19941 {
19942   echo "cat >conf$$subs.awk <<_ACEOF" &&
19943   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19944   echo "_ACEOF"
19945 } >conf$$subs.sh ||
19946   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19947 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19948 ac_delim='%!_!# '
19949 for ac_last_try in false false false false false :; do
19950   . ./conf$$subs.sh ||
19951     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19952
19953   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19954   if test $ac_delim_n = $ac_delim_num; then
19955     break
19956   elif $ac_last_try; then
19957     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19958   else
19959     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19960   fi
19961 done
19962 rm -f conf$$subs.sh
19963
19964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19965 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19966 _ACEOF
19967 sed -n '
19968 h
19969 s/^/S["/; s/!.*/"]=/
19970 p
19971 g
19972 s/^[^!]*!//
19973 :repl
19974 t repl
19975 s/'"$ac_delim"'$//
19976 t delim
19977 :nl
19978 h
19979 s/\(.\{148\}\)..*/\1/
19980 t more1
19981 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19982 p
19983 n
19984 b repl
19985 :more1
19986 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19987 p
19988 g
19989 s/.\{148\}//
19990 t nl
19991 :delim
19992 h
19993 s/\(.\{148\}\)..*/\1/
19994 t more2
19995 s/["\\]/\\&/g; s/^/"/; s/$/"/
19996 p
19997 b
19998 :more2
19999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20000 p
20001 g
20002 s/.\{148\}//
20003 t delim
20004 ' <conf$$subs.awk | sed '
20005 /^[^""]/{
20006   N
20007   s/\n//
20008 }
20009 ' >>$CONFIG_STATUS || ac_write_fail=1
20010 rm -f conf$$subs.awk
20011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20012 _ACAWK
20013 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20014   for (key in S) S_is_set[key] = 1
20015   FS = "\a"
20016
20017 }
20018 {
20019   line = $ 0
20020   nfields = split(line, field, "@")
20021   substed = 0
20022   len = length(field[1])
20023   for (i = 2; i < nfields; i++) {
20024     key = field[i]
20025     keylen = length(key)
20026     if (S_is_set[key]) {
20027       value = S[key]
20028       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20029       len += length(value) + length(field[++i])
20030       substed = 1
20031     } else
20032       len += 1 + keylen
20033   }
20034
20035   print line
20036 }
20037
20038 _ACAWK
20039 _ACEOF
20040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20041 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20042   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20043 else
20044   cat
20045 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20046   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20047 _ACEOF
20048
20049 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20050 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20051 # trailing colons and then remove the whole line if VPATH becomes empty
20052 # (actually we leave an empty line to preserve line numbers).
20053 if test "x$srcdir" = x.; then
20054   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20055 h
20056 s///
20057 s/^/:/
20058 s/[      ]*$/:/
20059 s/:\$(srcdir):/:/g
20060 s/:\${srcdir}:/:/g
20061 s/:@srcdir@:/:/g
20062 s/^:*//
20063 s/:*$//
20064 x
20065 s/\(=[   ]*\).*/\1/
20066 G
20067 s/\n//
20068 s/^[^=]*=[       ]*$//
20069 }'
20070 fi
20071
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073 fi # test -n "$CONFIG_FILES"
20074
20075 # Set up the scripts for CONFIG_HEADERS section.
20076 # No need to generate them if there are no CONFIG_HEADERS.
20077 # This happens for instance with `./config.status Makefile'.
20078 if test -n "$CONFIG_HEADERS"; then
20079 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20080 BEGIN {
20081 _ACEOF
20082
20083 # Transform confdefs.h into an awk script `defines.awk', embedded as
20084 # here-document in config.status, that substitutes the proper values into
20085 # config.h.in to produce config.h.
20086
20087 # Create a delimiter string that does not exist in confdefs.h, to ease
20088 # handling of long lines.
20089 ac_delim='%!_!# '
20090 for ac_last_try in false false :; do
20091   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20092   if test -z "$ac_tt"; then
20093     break
20094   elif $ac_last_try; then
20095     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20096   else
20097     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20098   fi
20099 done
20100
20101 # For the awk script, D is an array of macro values keyed by name,
20102 # likewise P contains macro parameters if any.  Preserve backslash
20103 # newline sequences.
20104
20105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20106 sed -n '
20107 s/.\{148\}/&'"$ac_delim"'/g
20108 t rset
20109 :rset
20110 s/^[     ]*#[    ]*define[       ][      ]*/ /
20111 t def
20112 d
20113 :def
20114 s/\\$//
20115 t bsnl
20116 s/["\\]/\\&/g
20117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20118 D["\1"]=" \3"/p
20119 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20120 d
20121 :bsnl
20122 s/["\\]/\\&/g
20123 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20124 D["\1"]=" \3\\\\\\n"\\/p
20125 t cont
20126 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20127 t cont
20128 d
20129 :cont
20130 n
20131 s/.\{148\}/&'"$ac_delim"'/g
20132 t clear
20133 :clear
20134 s/\\$//
20135 t bsnlc
20136 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20137 d
20138 :bsnlc
20139 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20140 b cont
20141 ' <confdefs.h | sed '
20142 s/'"$ac_delim"'/"\\\
20143 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20144
20145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20146   for (key in D) D_is_set[key] = 1
20147   FS = "\a"
20148 }
20149 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20150   line = \$ 0
20151   split(line, arg, " ")
20152   if (arg[1] == "#") {
20153     defundef = arg[2]
20154     mac1 = arg[3]
20155   } else {
20156     defundef = substr(arg[1], 2)
20157     mac1 = arg[2]
20158   }
20159   split(mac1, mac2, "(") #)
20160   macro = mac2[1]
20161   prefix = substr(line, 1, index(line, defundef) - 1)
20162   if (D_is_set[macro]) {
20163     # Preserve the white space surrounding the "#".
20164     print prefix "define", macro P[macro] D[macro]
20165     next
20166   } else {
20167     # Replace #undef with comments.  This is necessary, for example,
20168     # in the case of _POSIX_SOURCE, which is predefined and required
20169     # on some systems where configure will not decide to define it.
20170     if (defundef == "undef") {
20171       print "/*", prefix defundef, macro, "*/"
20172       next
20173     }
20174   }
20175 }
20176 { print }
20177 _ACAWK
20178 _ACEOF
20179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20180   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20181 fi # test -n "$CONFIG_HEADERS"
20182
20183
20184 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20185 shift
20186 for ac_tag
20187 do
20188   case $ac_tag in
20189   :[FHLC]) ac_mode=$ac_tag; continue;;
20190   esac
20191   case $ac_mode$ac_tag in
20192   :[FHL]*:*);;
20193   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20194   :[FH]-) ac_tag=-:-;;
20195   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20196   esac
20197   ac_save_IFS=$IFS
20198   IFS=:
20199   set x $ac_tag
20200   IFS=$ac_save_IFS
20201   shift
20202   ac_file=$1
20203   shift
20204
20205   case $ac_mode in
20206   :L) ac_source=$1;;
20207   :[FH])
20208     ac_file_inputs=
20209     for ac_f
20210     do
20211       case $ac_f in
20212       -) ac_f="$ac_tmp/stdin";;
20213       *) # Look for the file first in the build tree, then in the source tree
20214          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20215          # because $ac_f cannot contain `:'.
20216          test -f "$ac_f" ||
20217            case $ac_f in
20218            [\\/$]*) false;;
20219            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20220            esac ||
20221            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20222       esac
20223       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20224       as_fn_append ac_file_inputs " '$ac_f'"
20225     done
20226
20227     # Let's still pretend it is `configure' which instantiates (i.e., don't
20228     # use $as_me), people would be surprised to read:
20229     #    /* config.h.  Generated by config.status.  */
20230     configure_input='Generated from '`
20231           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20232         `' by configure.'
20233     if test x"$ac_file" != x-; then
20234       configure_input="$ac_file.  $configure_input"
20235       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20236 $as_echo "$as_me: creating $ac_file" >&6;}
20237     fi
20238     # Neutralize special characters interpreted by sed in replacement strings.
20239     case $configure_input in #(
20240     *\&* | *\|* | *\\* )
20241        ac_sed_conf_input=`$as_echo "$configure_input" |
20242        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20243     *) ac_sed_conf_input=$configure_input;;
20244     esac
20245
20246     case $ac_tag in
20247     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20248       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20249     esac
20250     ;;
20251   esac
20252
20253   ac_dir=`$as_dirname -- "$ac_file" ||
20254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20255          X"$ac_file" : 'X\(//\)[^/]' \| \
20256          X"$ac_file" : 'X\(//\)$' \| \
20257          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20258 $as_echo X"$ac_file" |
20259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20260             s//\1/
20261             q
20262           }
20263           /^X\(\/\/\)[^/].*/{
20264             s//\1/
20265             q
20266           }
20267           /^X\(\/\/\)$/{
20268             s//\1/
20269             q
20270           }
20271           /^X\(\/\).*/{
20272             s//\1/
20273             q
20274           }
20275           s/.*/./; q'`
20276   as_dir="$ac_dir"; as_fn_mkdir_p
20277   ac_builddir=.
20278
20279 case "$ac_dir" in
20280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20281 *)
20282   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20283   # A ".." for each directory in $ac_dir_suffix.
20284   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20285   case $ac_top_builddir_sub in
20286   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20287   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20288   esac ;;
20289 esac
20290 ac_abs_top_builddir=$ac_pwd
20291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20292 # for backward compatibility:
20293 ac_top_builddir=$ac_top_build_prefix
20294
20295 case $srcdir in
20296   .)  # We are building in place.
20297     ac_srcdir=.
20298     ac_top_srcdir=$ac_top_builddir_sub
20299     ac_abs_top_srcdir=$ac_pwd ;;
20300   [\\/]* | ?:[\\/]* )  # Absolute name.
20301     ac_srcdir=$srcdir$ac_dir_suffix;
20302     ac_top_srcdir=$srcdir
20303     ac_abs_top_srcdir=$srcdir ;;
20304   *) # Relative name.
20305     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20306     ac_top_srcdir=$ac_top_build_prefix$srcdir
20307     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20308 esac
20309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20310
20311
20312   case $ac_mode in
20313   :F)
20314   #
20315   # CONFIG_FILE
20316   #
20317
20318   case $INSTALL in
20319   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20320   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20321   esac
20322   ac_MKDIR_P=$MKDIR_P
20323   case $MKDIR_P in
20324   [\\/$]* | ?:[\\/]* ) ;;
20325   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20326   esac
20327 _ACEOF
20328
20329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20330 # If the template does not know about datarootdir, expand it.
20331 # FIXME: This hack should be removed a few years after 2.60.
20332 ac_datarootdir_hack=; ac_datarootdir_seen=
20333 ac_sed_dataroot='
20334 /datarootdir/ {
20335   p
20336   q
20337 }
20338 /@datadir@/p
20339 /@docdir@/p
20340 /@infodir@/p
20341 /@localedir@/p
20342 /@mandir@/p'
20343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20344 *datarootdir*) ac_datarootdir_seen=yes;;
20345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20346   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20348 _ACEOF
20349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20350   ac_datarootdir_hack='
20351   s&@datadir@&$datadir&g
20352   s&@docdir@&$docdir&g
20353   s&@infodir@&$infodir&g
20354   s&@localedir@&$localedir&g
20355   s&@mandir@&$mandir&g
20356   s&\\\${datarootdir}&$datarootdir&g' ;;
20357 esac
20358 _ACEOF
20359
20360 # Neutralize VPATH when `$srcdir' = `.'.
20361 # Shell code in configure.ac might set extrasub.
20362 # FIXME: do we really want to maintain this feature?
20363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20364 ac_sed_extra="$ac_vpsub
20365 $extrasub
20366 _ACEOF
20367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20368 :t
20369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20370 s|@configure_input@|$ac_sed_conf_input|;t t
20371 s&@top_builddir@&$ac_top_builddir_sub&;t t
20372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20373 s&@srcdir@&$ac_srcdir&;t t
20374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20375 s&@top_srcdir@&$ac_top_srcdir&;t t
20376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20377 s&@builddir@&$ac_builddir&;t t
20378 s&@abs_builddir@&$ac_abs_builddir&;t t
20379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20380 s&@INSTALL@&$ac_INSTALL&;t t
20381 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20382 $ac_datarootdir_hack
20383 "
20384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20385   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20386
20387 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20388   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20389   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20390       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20391   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20392 which seems to be undefined.  Please make sure it is defined" >&5
20393 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20394 which seems to be undefined.  Please make sure it is defined" >&2;}
20395
20396   rm -f "$ac_tmp/stdin"
20397   case $ac_file in
20398   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20399   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20400   esac \
20401   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20402  ;;
20403   :H)
20404   #
20405   # CONFIG_HEADER
20406   #
20407   if test x"$ac_file" != x-; then
20408     {
20409       $as_echo "/* $configure_input  */" \
20410       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20411     } >"$ac_tmp/config.h" \
20412       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20413     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20414       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20415 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20416     else
20417       rm -f "$ac_file"
20418       mv "$ac_tmp/config.h" "$ac_file" \
20419         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20420     fi
20421   else
20422     $as_echo "/* $configure_input  */" \
20423       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20424       || as_fn_error $? "could not create -" "$LINENO" 5
20425   fi
20426 # Compute "$ac_file"'s index in $config_headers.
20427 _am_arg="$ac_file"
20428 _am_stamp_count=1
20429 for _am_header in $config_headers :; do
20430   case $_am_header in
20431     $_am_arg | $_am_arg:* )
20432       break ;;
20433     * )
20434       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20435   esac
20436 done
20437 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20438 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20439          X"$_am_arg" : 'X\(//\)[^/]' \| \
20440          X"$_am_arg" : 'X\(//\)$' \| \
20441          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20442 $as_echo X"$_am_arg" |
20443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20444             s//\1/
20445             q
20446           }
20447           /^X\(\/\/\)[^/].*/{
20448             s//\1/
20449             q
20450           }
20451           /^X\(\/\/\)$/{
20452             s//\1/
20453             q
20454           }
20455           /^X\(\/\).*/{
20456             s//\1/
20457             q
20458           }
20459           s/.*/./; q'`/stamp-h$_am_stamp_count
20460  ;;
20461
20462   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20463 $as_echo "$as_me: executing $ac_file commands" >&6;}
20464  ;;
20465   esac
20466
20467
20468   case $ac_file$ac_mode in
20469     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20470   # Older Autoconf quotes --file arguments for eval, but not when files
20471   # are listed without --file.  Let's play safe and only enable the eval
20472   # if we detect the quoting.
20473   case $CONFIG_FILES in
20474   *\'*) eval set x "$CONFIG_FILES" ;;
20475   *)   set x $CONFIG_FILES ;;
20476   esac
20477   shift
20478   for mf
20479   do
20480     # Strip MF so we end up with the name of the file.
20481     mf=`echo "$mf" | sed -e 's/:.*$//'`
20482     # Check whether this is an Automake generated Makefile or not.
20483     # We used to match only the files named 'Makefile.in', but
20484     # some people rename them; so instead we look at the file content.
20485     # Grep'ing the first line is not enough: some people post-process
20486     # each Makefile.in and add a new line on top of each file to say so.
20487     # Grep'ing the whole file is not good either: AIX grep has a line
20488     # limit of 2048, but all sed's we know have understand at least 4000.
20489     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20490       dirpart=`$as_dirname -- "$mf" ||
20491 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20492          X"$mf" : 'X\(//\)[^/]' \| \
20493          X"$mf" : 'X\(//\)$' \| \
20494          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20495 $as_echo X"$mf" |
20496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20497             s//\1/
20498             q
20499           }
20500           /^X\(\/\/\)[^/].*/{
20501             s//\1/
20502             q
20503           }
20504           /^X\(\/\/\)$/{
20505             s//\1/
20506             q
20507           }
20508           /^X\(\/\).*/{
20509             s//\1/
20510             q
20511           }
20512           s/.*/./; q'`
20513     else
20514       continue
20515     fi
20516     # Extract the definition of DEPDIR, am__include, and am__quote
20517     # from the Makefile without running 'make'.
20518     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20519     test -z "$DEPDIR" && continue
20520     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20521     test -z "$am__include" && continue
20522     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20523     # Find all dependency output files, they are included files with
20524     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20525     # simplest approach to changing $(DEPDIR) to its actual value in the
20526     # expansion.
20527     for file in `sed -n "
20528       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20529          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20530       # Make sure the directory exists.
20531       test -f "$dirpart/$file" && continue
20532       fdir=`$as_dirname -- "$file" ||
20533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20534          X"$file" : 'X\(//\)[^/]' \| \
20535          X"$file" : 'X\(//\)$' \| \
20536          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20537 $as_echo X"$file" |
20538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20539             s//\1/
20540             q
20541           }
20542           /^X\(\/\/\)[^/].*/{
20543             s//\1/
20544             q
20545           }
20546           /^X\(\/\/\)$/{
20547             s//\1/
20548             q
20549           }
20550           /^X\(\/\).*/{
20551             s//\1/
20552             q
20553           }
20554           s/.*/./; q'`
20555       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20556       # echo "creating $dirpart/$file"
20557       echo '# dummy' > "$dirpart/$file"
20558     done
20559   done
20560 }
20561  ;;
20562     "libtool":C)
20563
20564     # See if we are running on zsh, and set the options which allow our
20565     # commands through without removal of \ escapes.
20566     if test -n "${ZSH_VERSION+set}" ; then
20567       setopt NO_GLOB_SUBST
20568     fi
20569
20570     cfgfile="${ofile}T"
20571     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20572     $RM "$cfgfile"
20573
20574     cat <<_LT_EOF >> "$cfgfile"
20575 #! $SHELL
20576
20577 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20578 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20581 #
20582 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20583 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20584 #                 Foundation, Inc.
20585 #   Written by Gordon Matzigkeit, 1996
20586 #
20587 #   This file is part of GNU Libtool.
20588 #
20589 # GNU Libtool is free software; you can redistribute it and/or
20590 # modify it under the terms of the GNU General Public License as
20591 # published by the Free Software Foundation; either version 2 of
20592 # the License, or (at your option) any later version.
20593 #
20594 # As a special exception to the GNU General Public License,
20595 # if you distribute this file as part of a program or library that
20596 # is built using GNU Libtool, you may include this file under the
20597 # same distribution terms that you use for the rest of that program.
20598 #
20599 # GNU Libtool is distributed in the hope that it will be useful,
20600 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20602 # GNU General Public License for more details.
20603 #
20604 # You should have received a copy of the GNU General Public License
20605 # along with GNU Libtool; see the file COPYING.  If not, a copy
20606 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20607 # obtained by writing to the Free Software Foundation, Inc.,
20608 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20609
20610
20611 # The names of the tagged configurations supported by this script.
20612 available_tags=""
20613
20614 # ### BEGIN LIBTOOL CONFIG
20615
20616 # Whether or not to build static libraries.
20617 build_old_libs=$enable_static
20618
20619 # Which release of libtool.m4 was used?
20620 macro_version=$macro_version
20621 macro_revision=$macro_revision
20622
20623 # Whether or not to build shared libraries.
20624 build_libtool_libs=$enable_shared
20625
20626 # What type of objects to build.
20627 pic_mode=$pic_mode
20628
20629 # Whether or not to optimize for fast installation.
20630 fast_install=$enable_fast_install
20631
20632 # Shell to use when invoking shell scripts.
20633 SHELL=$lt_SHELL
20634
20635 # An echo program that protects backslashes.
20636 ECHO=$lt_ECHO
20637
20638 # The PATH separator for the build system.
20639 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20640
20641 # The host system.
20642 host_alias=$host_alias
20643 host=$host
20644 host_os=$host_os
20645
20646 # The build system.
20647 build_alias=$build_alias
20648 build=$build
20649 build_os=$build_os
20650
20651 # A sed program that does not truncate output.
20652 SED=$lt_SED
20653
20654 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20655 Xsed="\$SED -e 1s/^X//"
20656
20657 # A grep program that handles long lines.
20658 GREP=$lt_GREP
20659
20660 # An ERE matcher.
20661 EGREP=$lt_EGREP
20662
20663 # A literal string matcher.
20664 FGREP=$lt_FGREP
20665
20666 # A BSD- or MS-compatible name lister.
20667 NM=$lt_NM
20668
20669 # Whether we need soft or hard links.
20670 LN_S=$lt_LN_S
20671
20672 # What is the maximum length of a command?
20673 max_cmd_len=$max_cmd_len
20674
20675 # Object file suffix (normally "o").
20676 objext=$ac_objext
20677
20678 # Executable file suffix (normally "").
20679 exeext=$exeext
20680
20681 # whether the shell understands "unset".
20682 lt_unset=$lt_unset
20683
20684 # turn spaces into newlines.
20685 SP2NL=$lt_lt_SP2NL
20686
20687 # turn newlines into spaces.
20688 NL2SP=$lt_lt_NL2SP
20689
20690 # convert \$build file names to \$host format.
20691 to_host_file_cmd=$lt_cv_to_host_file_cmd
20692
20693 # convert \$build files to toolchain format.
20694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20695
20696 # An object symbol dumper.
20697 OBJDUMP=$lt_OBJDUMP
20698
20699 # Method to check whether dependent libraries are shared objects.
20700 deplibs_check_method=$lt_deplibs_check_method
20701
20702 # Command to use when deplibs_check_method = "file_magic".
20703 file_magic_cmd=$lt_file_magic_cmd
20704
20705 # How to find potential files when deplibs_check_method = "file_magic".
20706 file_magic_glob=$lt_file_magic_glob
20707
20708 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20709 want_nocaseglob=$lt_want_nocaseglob
20710
20711 # DLL creation program.
20712 DLLTOOL=$lt_DLLTOOL
20713
20714 # Command to associate shared and link libraries.
20715 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20716
20717 # The archiver.
20718 AR=$lt_AR
20719
20720 # Flags to create an archive.
20721 AR_FLAGS=$lt_AR_FLAGS
20722
20723 # How to feed a file listing to the archiver.
20724 archiver_list_spec=$lt_archiver_list_spec
20725
20726 # A symbol stripping program.
20727 STRIP=$lt_STRIP
20728
20729 # Commands used to install an old-style archive.
20730 RANLIB=$lt_RANLIB
20731 old_postinstall_cmds=$lt_old_postinstall_cmds
20732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20733
20734 # Whether to use a lock for old archive extraction.
20735 lock_old_archive_extraction=$lock_old_archive_extraction
20736
20737 # A C compiler.
20738 LTCC=$lt_CC
20739
20740 # LTCC compiler flags.
20741 LTCFLAGS=$lt_CFLAGS
20742
20743 # Take the output of nm and produce a listing of raw symbols and C names.
20744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20745
20746 # Transform the output of nm in a proper C declaration.
20747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20748
20749 # Transform the output of nm in a C name address pair.
20750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20751
20752 # Transform the output of nm in a C name address pair when lib prefix is needed.
20753 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20754
20755 # Specify filename containing input files for \$NM.
20756 nm_file_list_spec=$lt_nm_file_list_spec
20757
20758 # The root where to search for dependent libraries,and in which our libraries should be installed.
20759 lt_sysroot=$lt_sysroot
20760
20761 # The name of the directory that contains temporary libtool files.
20762 objdir=$objdir
20763
20764 # Used to examine libraries when file_magic_cmd begins with "file".
20765 MAGIC_CMD=$MAGIC_CMD
20766
20767 # Must we lock files when doing compilation?
20768 need_locks=$lt_need_locks
20769
20770 # Manifest tool.
20771 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20772
20773 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20774 DSYMUTIL=$lt_DSYMUTIL
20775
20776 # Tool to change global to local symbols on Mac OS X.
20777 NMEDIT=$lt_NMEDIT
20778
20779 # Tool to manipulate fat objects and archives on Mac OS X.
20780 LIPO=$lt_LIPO
20781
20782 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20783 OTOOL=$lt_OTOOL
20784
20785 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20786 OTOOL64=$lt_OTOOL64
20787
20788 # Old archive suffix (normally "a").
20789 libext=$libext
20790
20791 # Shared library suffix (normally ".so").
20792 shrext_cmds=$lt_shrext_cmds
20793
20794 # The commands to extract the exported symbol list from a shared archive.
20795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20796
20797 # Variables whose values should be saved in libtool wrapper scripts and
20798 # restored at link time.
20799 variables_saved_for_relink=$lt_variables_saved_for_relink
20800
20801 # Do we need the "lib" prefix for modules?
20802 need_lib_prefix=$need_lib_prefix
20803
20804 # Do we need a version for libraries?
20805 need_version=$need_version
20806
20807 # Library versioning type.
20808 version_type=$version_type
20809
20810 # Shared library runtime path variable.
20811 runpath_var=$runpath_var
20812
20813 # Shared library path variable.
20814 shlibpath_var=$shlibpath_var
20815
20816 # Is shlibpath searched before the hard-coded library search path?
20817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20818
20819 # Format of library name prefix.
20820 libname_spec=$lt_libname_spec
20821
20822 # List of archive names.  First name is the real one, the rest are links.
20823 # The last name is the one that the linker finds with -lNAME
20824 library_names_spec=$lt_library_names_spec
20825
20826 # The coded name of the library, if different from the real name.
20827 soname_spec=$lt_soname_spec
20828
20829 # Permission mode override for installation of shared libraries.
20830 install_override_mode=$lt_install_override_mode
20831
20832 # Command to use after installation of a shared archive.
20833 postinstall_cmds=$lt_postinstall_cmds
20834
20835 # Command to use after uninstallation of a shared archive.
20836 postuninstall_cmds=$lt_postuninstall_cmds
20837
20838 # Commands used to finish a libtool library installation in a directory.
20839 finish_cmds=$lt_finish_cmds
20840
20841 # As "finish_cmds", except a single script fragment to be evaled but
20842 # not shown.
20843 finish_eval=$lt_finish_eval
20844
20845 # Whether we should hardcode library paths into libraries.
20846 hardcode_into_libs=$hardcode_into_libs
20847
20848 # Compile-time system search path for libraries.
20849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20850
20851 # Run-time system search path for libraries.
20852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20853
20854 # Whether dlopen is supported.
20855 dlopen_support=$enable_dlopen
20856
20857 # Whether dlopen of programs is supported.
20858 dlopen_self=$enable_dlopen_self
20859
20860 # Whether dlopen of statically linked programs is supported.
20861 dlopen_self_static=$enable_dlopen_self_static
20862
20863 # Commands to strip libraries.
20864 old_striplib=$lt_old_striplib
20865 striplib=$lt_striplib
20866
20867
20868 # The linker used to build libraries.
20869 LD=$lt_LD
20870
20871 # How to create reloadable object files.
20872 reload_flag=$lt_reload_flag
20873 reload_cmds=$lt_reload_cmds
20874
20875 # Commands used to build an old-style archive.
20876 old_archive_cmds=$lt_old_archive_cmds
20877
20878 # A language specific compiler.
20879 CC=$lt_compiler
20880
20881 # Is the compiler the GNU compiler?
20882 with_gcc=$GCC
20883
20884 # Compiler flag to turn off builtin functions.
20885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20886
20887 # Additional compiler flags for building library objects.
20888 pic_flag=$lt_lt_prog_compiler_pic
20889
20890 # How to pass a linker flag through the compiler.
20891 wl=$lt_lt_prog_compiler_wl
20892
20893 # Compiler flag to prevent dynamic linking.
20894 link_static_flag=$lt_lt_prog_compiler_static
20895
20896 # Does compiler simultaneously support -c and -o options?
20897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20898
20899 # Whether or not to add -lc for building shared libraries.
20900 build_libtool_need_lc=$archive_cmds_need_lc
20901
20902 # Whether or not to disallow shared libs when runtime libs are static.
20903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20904
20905 # Compiler flag to allow reflexive dlopens.
20906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20907
20908 # Compiler flag to generate shared objects directly from archives.
20909 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20910
20911 # Whether the compiler copes with passing no objects directly.
20912 compiler_needs_object=$lt_compiler_needs_object
20913
20914 # Create an old-style archive from a shared archive.
20915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20916
20917 # Create a temporary old-style archive to link instead of a shared archive.
20918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20919
20920 # Commands used to build a shared archive.
20921 archive_cmds=$lt_archive_cmds
20922 archive_expsym_cmds=$lt_archive_expsym_cmds
20923
20924 # Commands used to build a loadable module if different from building
20925 # a shared archive.
20926 module_cmds=$lt_module_cmds
20927 module_expsym_cmds=$lt_module_expsym_cmds
20928
20929 # Whether we are building with GNU ld or not.
20930 with_gnu_ld=$lt_with_gnu_ld
20931
20932 # Flag that allows shared libraries with undefined symbols to be built.
20933 allow_undefined_flag=$lt_allow_undefined_flag
20934
20935 # Flag that enforces no undefined symbols.
20936 no_undefined_flag=$lt_no_undefined_flag
20937
20938 # Flag to hardcode \$libdir into a binary during linking.
20939 # This must work even if \$libdir does not exist
20940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20941
20942 # Whether we need a single "-rpath" flag with a separated argument.
20943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20944
20945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20946 # DIR into the resulting binary.
20947 hardcode_direct=$hardcode_direct
20948
20949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20950 # DIR into the resulting binary and the resulting library dependency is
20951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20952 # library is relocated.
20953 hardcode_direct_absolute=$hardcode_direct_absolute
20954
20955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20956 # into the resulting binary.
20957 hardcode_minus_L=$hardcode_minus_L
20958
20959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20960 # into the resulting binary.
20961 hardcode_shlibpath_var=$hardcode_shlibpath_var
20962
20963 # Set to "yes" if building a shared library automatically hardcodes DIR
20964 # into the library and all subsequent libraries and executables linked
20965 # against it.
20966 hardcode_automatic=$hardcode_automatic
20967
20968 # Set to yes if linker adds runtime paths of dependent libraries
20969 # to runtime path list.
20970 inherit_rpath=$inherit_rpath
20971
20972 # Whether libtool must link a program against all its dependency libraries.
20973 link_all_deplibs=$link_all_deplibs
20974
20975 # Set to "yes" if exported symbols are required.
20976 always_export_symbols=$always_export_symbols
20977
20978 # The commands to list exported symbols.
20979 export_symbols_cmds=$lt_export_symbols_cmds
20980
20981 # Symbols that should not be listed in the preloaded symbols.
20982 exclude_expsyms=$lt_exclude_expsyms
20983
20984 # Symbols that must always be exported.
20985 include_expsyms=$lt_include_expsyms
20986
20987 # Commands necessary for linking programs (against libraries) with templates.
20988 prelink_cmds=$lt_prelink_cmds
20989
20990 # Commands necessary for finishing linking programs.
20991 postlink_cmds=$lt_postlink_cmds
20992
20993 # Specify filename containing input files.
20994 file_list_spec=$lt_file_list_spec
20995
20996 # How to hardcode a shared library path into an executable.
20997 hardcode_action=$hardcode_action
20998
20999 # ### END LIBTOOL CONFIG
21000
21001 _LT_EOF
21002
21003   case $host_os in
21004   aix3*)
21005     cat <<\_LT_EOF >> "$cfgfile"
21006 # AIX sometimes has problems with the GCC collect2 program.  For some
21007 # reason, if we set the COLLECT_NAMES environment variable, the problems
21008 # vanish in a puff of smoke.
21009 if test "X${COLLECT_NAMES+set}" != Xset; then
21010   COLLECT_NAMES=
21011   export COLLECT_NAMES
21012 fi
21013 _LT_EOF
21014     ;;
21015   esac
21016
21017
21018 ltmain="$ac_aux_dir/ltmain.sh"
21019
21020
21021   # We use sed instead of cat because bash on DJGPP gets confused if
21022   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21023   # text mode, it properly converts lines to CR/LF.  This bash problem
21024   # is reportedly fixed, but why not run on old versions too?
21025   sed '$q' "$ltmain" >> "$cfgfile" \
21026      || (rm -f "$cfgfile"; exit 1)
21027
21028   if test x"$xsi_shell" = xyes; then
21029   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21030 func_dirname ()\
21031 {\
21032 \    case ${1} in\
21033 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21034 \      *  ) func_dirname_result="${3}" ;;\
21035 \    esac\
21036 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21037   && mv -f "$cfgfile.tmp" "$cfgfile" \
21038     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21039 test 0 -eq $? || _lt_function_replace_fail=:
21040
21041
21042   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21043 func_basename ()\
21044 {\
21045 \    func_basename_result="${1##*/}"\
21046 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21047   && mv -f "$cfgfile.tmp" "$cfgfile" \
21048     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21049 test 0 -eq $? || _lt_function_replace_fail=:
21050
21051
21052   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21053 func_dirname_and_basename ()\
21054 {\
21055 \    case ${1} in\
21056 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21057 \      *  ) func_dirname_result="${3}" ;;\
21058 \    esac\
21059 \    func_basename_result="${1##*/}"\
21060 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21061   && mv -f "$cfgfile.tmp" "$cfgfile" \
21062     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21063 test 0 -eq $? || _lt_function_replace_fail=:
21064
21065
21066   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21067 func_stripname ()\
21068 {\
21069 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21070 \    # positional parameters, so assign one to ordinary parameter first.\
21071 \    func_stripname_result=${3}\
21072 \    func_stripname_result=${func_stripname_result#"${1}"}\
21073 \    func_stripname_result=${func_stripname_result%"${2}"}\
21074 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21075   && mv -f "$cfgfile.tmp" "$cfgfile" \
21076     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21077 test 0 -eq $? || _lt_function_replace_fail=:
21078
21079
21080   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21081 func_split_long_opt ()\
21082 {\
21083 \    func_split_long_opt_name=${1%%=*}\
21084 \    func_split_long_opt_arg=${1#*=}\
21085 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21086   && mv -f "$cfgfile.tmp" "$cfgfile" \
21087     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21088 test 0 -eq $? || _lt_function_replace_fail=:
21089
21090
21091   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21092 func_split_short_opt ()\
21093 {\
21094 \    func_split_short_opt_arg=${1#??}\
21095 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21096 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21097   && mv -f "$cfgfile.tmp" "$cfgfile" \
21098     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21099 test 0 -eq $? || _lt_function_replace_fail=:
21100
21101
21102   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21103 func_lo2o ()\
21104 {\
21105 \    case ${1} in\
21106 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21107 \      *)    func_lo2o_result=${1} ;;\
21108 \    esac\
21109 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21110   && mv -f "$cfgfile.tmp" "$cfgfile" \
21111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21112 test 0 -eq $? || _lt_function_replace_fail=:
21113
21114
21115   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21116 func_xform ()\
21117 {\
21118     func_xform_result=${1%.*}.lo\
21119 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21120   && mv -f "$cfgfile.tmp" "$cfgfile" \
21121     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21122 test 0 -eq $? || _lt_function_replace_fail=:
21123
21124
21125   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21126 func_arith ()\
21127 {\
21128     func_arith_result=$(( $* ))\
21129 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21130   && mv -f "$cfgfile.tmp" "$cfgfile" \
21131     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21132 test 0 -eq $? || _lt_function_replace_fail=:
21133
21134
21135   sed -e '/^func_len ()$/,/^} # func_len /c\
21136 func_len ()\
21137 {\
21138     func_len_result=${#1}\
21139 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21140   && mv -f "$cfgfile.tmp" "$cfgfile" \
21141     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21142 test 0 -eq $? || _lt_function_replace_fail=:
21143
21144 fi
21145
21146 if test x"$lt_shell_append" = xyes; then
21147   sed -e '/^func_append ()$/,/^} # func_append /c\
21148 func_append ()\
21149 {\
21150     eval "${1}+=\\${2}"\
21151 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21152   && mv -f "$cfgfile.tmp" "$cfgfile" \
21153     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21154 test 0 -eq $? || _lt_function_replace_fail=:
21155
21156
21157   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21158 func_append_quoted ()\
21159 {\
21160 \    func_quote_for_eval "${2}"\
21161 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21162 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21163   && mv -f "$cfgfile.tmp" "$cfgfile" \
21164     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21165 test 0 -eq $? || _lt_function_replace_fail=:
21166
21167
21168   # Save a `func_append' function call where possible by direct use of '+='
21169   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21170     && mv -f "$cfgfile.tmp" "$cfgfile" \
21171       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21172   test 0 -eq $? || _lt_function_replace_fail=:
21173 else
21174   # Save a `func_append' function call even when '+=' is not available
21175   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21176     && mv -f "$cfgfile.tmp" "$cfgfile" \
21177       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21178   test 0 -eq $? || _lt_function_replace_fail=:
21179 fi
21180
21181 if test x"$_lt_function_replace_fail" = x":"; then
21182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21183 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21184 fi
21185
21186
21187    mv -f "$cfgfile" "$ofile" ||
21188     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21189   chmod +x "$ofile"
21190
21191  ;;
21192
21193   esac
21194 done # for ac_tag
21195
21196
21197 as_fn_exit 0
21198 _ACEOF
21199 ac_clean_files=$ac_clean_files_save
21200
21201 test $ac_write_fail = 0 ||
21202   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21203
21204
21205 # configure is writing to config.log, and then calls config.status.
21206 # config.status does its own redirection, appending to config.log.
21207 # Unfortunately, on DOS this fails, as config.log is still kept open
21208 # by configure, so config.status won't be able to write to it; its
21209 # output is simply discarded.  So we exec the FD to /dev/null,
21210 # effectively closing config.log, so it can be properly (re)opened and
21211 # appended to by config.status.  When coming back to configure, we
21212 # need to make the FD available again.
21213 if test "$no_create" != yes; then
21214   ac_cs_success=:
21215   ac_config_status_args=
21216   test "$silent" = yes &&
21217     ac_config_status_args="$ac_config_status_args --quiet"
21218   exec 5>/dev/null
21219   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21220   exec 5>>config.log
21221   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21222   # would make configure fail if this is the last instruction.
21223   $ac_cs_success || as_fn_exit 1
21224 fi
21225 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21226   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21227 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21228 fi
21229
21230