spec cleanup
[platform/upstream/libXmu.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXmu 1.1.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550 as_awk_strverscmp='
551   # Use only awk features that work with 7th edition Unix awk (1978).
552   # My, what an old awk you have, Mr. Solaris!
553   END {
554     while (length(v1) && length(v2)) {
555       # Set d1 to be the next thing to compare from v1, and likewise for d2.
556       # Normally this is a single character, but if v1 and v2 contain digits,
557       # compare them as integers and fractions as strverscmp does.
558       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559         # Split v1 and v2 into their leading digit string components d1 and d2,
560         # and advance v1 and v2 past the leading digit strings.
561         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565         if (d1 ~ /^0/) {
566           if (d2 ~ /^0/) {
567             # Compare two fractions.
568             while (d1 ~ /^0/ && d2 ~ /^0/) {
569               d1 = substr(d1, 2); len1--
570               d2 = substr(d2, 2); len2--
571             }
572             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573               # The two components differ in length, and the common prefix
574               # contains only leading zeros.  Consider the longer to be less.
575               d1 = -len1
576               d2 = -len2
577             } else {
578               # Otherwise, compare as strings.
579               d1 = "x" d1
580               d2 = "x" d2
581             }
582           } else {
583             # A fraction is less than an integer.
584             exit 1
585           }
586         } else {
587           if (d2 ~ /^0/) {
588             # An integer is greater than a fraction.
589             exit 2
590           } else {
591             # Compare two integers.
592             d1 += 0
593             d2 += 0
594           }
595         }
596       } else {
597         # The normal case, without worrying about digits.
598         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600       }
601       if (d1 < d2) exit 1
602       if (d1 > d2) exit 2
603     }
604     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605     # which mishandles some comparisons of empty strings to integers.
606     if (length(v2)) exit 1
607     if (length(v1)) exit 2
608   }
609 '
610
611 test -n "$DJDIR" || exec 7<&0 </dev/null
612 exec 6>&1
613
614 # Name of the host.
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619 #
620 # Initializations.
621 #
622 ac_default_prefix=/usr/local
623 ac_clean_files=
624 ac_config_libobj_dir=.
625 LIBOBJS=
626 cross_compiling=no
627 subdirs=
628 MFLAGS=
629 MAKEFLAGS=
630
631 # Identity of this package.
632 PACKAGE_NAME='libXmu'
633 PACKAGE_TARNAME='libXmu'
634 PACKAGE_VERSION='1.1.1'
635 PACKAGE_STRING='libXmu 1.1.1'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637 PACKAGE_URL=''
638
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
642 #include <stdio.h>
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef STDC_HEADERS
650 # include <stdlib.h>
651 # include <stddef.h>
652 #else
653 # ifdef HAVE_STDLIB_H
654 #  include <stdlib.h>
655 # endif
656 #endif
657 #ifdef HAVE_STRING_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659 #  include <memory.h>
660 # endif
661 # include <string.h>
662 #endif
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
665 #endif
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
668 #endif
669 #ifdef HAVE_STDINT_H
670 # include <stdint.h>
671 #endif
672 #ifdef HAVE_UNISTD_H
673 # include <unistd.h>
674 #endif"
675
676 ac_subst_vars='am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 LINTLIBUU
681 MAKE_LINT_LIB_FALSE
682 MAKE_LINT_LIB_TRUE
683 LINTLIB
684 LINT_FALSE
685 LINT_TRUE
686 LINT_FLAGS
687 LINT
688 XMUU_LIBS
689 XMUU_CFLAGS
690 XMU_LIBS
691 XMU_CFLAGS
692 HAVE_STYLESHEETS_FALSE
693 HAVE_STYLESHEETS_TRUE
694 XSL_STYLESHEET
695 STYLESHEET_SRCDIR
696 XORG_SGML_PATH
697 HAVE_XSLTPROC_FALSE
698 HAVE_XSLTPROC_TRUE
699 XSLTPROC
700 HAVE_FOP_FALSE
701 HAVE_FOP_TRUE
702 FOP
703 HAVE_XMLTO_FALSE
704 HAVE_XMLTO_TRUE
705 HAVE_XMLTO_TEXT_FALSE
706 HAVE_XMLTO_TEXT_TRUE
707 XMLTO
708 ENABLE_DOCS_FALSE
709 ENABLE_DOCS_TRUE
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 MAN_SUBSTS
713 XORG_MAN_PAGE
714 ADMIN_MAN_DIR
715 DRIVER_MAN_DIR
716 MISC_MAN_DIR
717 FILE_MAN_DIR
718 LIB_MAN_DIR
719 APP_MAN_DIR
720 ADMIN_MAN_SUFFIX
721 DRIVER_MAN_SUFFIX
722 MISC_MAN_SUFFIX
723 FILE_MAN_SUFFIX
724 LIB_MAN_SUFFIX
725 APP_MAN_SUFFIX
726 INSTALL_CMD
727 PKG_CONFIG
728 CHANGELOG_CMD
729 STRICT_CFLAGS
730 CWARNFLAGS
731 BASE_CFLAGS
732 CPP
733 OTOOL64
734 OTOOL
735 LIPO
736 NMEDIT
737 DSYMUTIL
738 MANIFEST_TOOL
739 RANLIB
740 ac_ct_AR
741 AR
742 DLLTOOL
743 OBJDUMP
744 LN_S
745 NM
746 ac_ct_DUMPBIN
747 DUMPBIN
748 LD
749 FGREP
750 EGREP
751 GREP
752 SED
753 am__fastdepCC_FALSE
754 am__fastdepCC_TRUE
755 CCDEPMODE
756 AMDEPBACKSLASH
757 AMDEP_FALSE
758 AMDEP_TRUE
759 am__quote
760 am__include
761 DEPDIR
762 OBJEXT
763 EXEEXT
764 ac_ct_CC
765 CPPFLAGS
766 LDFLAGS
767 CFLAGS
768 CC
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 LIBTOOL
778 MAINT
779 MAINTAINER_MODE_FALSE
780 MAINTAINER_MODE_TRUE
781 am__untar
782 am__tar
783 AMTAR
784 am__leading_dot
785 SET_MAKE
786 AWK
787 mkdir_p
788 MKDIR_P
789 INSTALL_STRIP_PROGRAM
790 STRIP
791 install_sh
792 MAKEINFO
793 AUTOHEADER
794 AUTOMAKE
795 AUTOCONF
796 ACLOCAL
797 VERSION
798 PACKAGE
799 CYGPATH_W
800 am__isrc
801 INSTALL_DATA
802 INSTALL_SCRIPT
803 INSTALL_PROGRAM
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 localstatedir
824 sharedstatedir
825 sysconfdir
826 datadir
827 datarootdir
828 libexecdir
829 sbindir
830 bindir
831 program_transform_name
832 prefix
833 exec_prefix
834 PACKAGE_URL
835 PACKAGE_BUGREPORT
836 PACKAGE_STRING
837 PACKAGE_VERSION
838 PACKAGE_TARNAME
839 PACKAGE_NAME
840 PATH_SEPARATOR
841 SHELL'
842 ac_subst_files=''
843 ac_user_opts='
844 enable_option_checking
845 enable_maintainer_mode
846 enable_shared
847 enable_static
848 with_pic
849 enable_fast_install
850 enable_dependency_tracking
851 with_gnu_ld
852 with_sysroot
853 enable_libtool_lock
854 enable_selective_werror
855 enable_strict_compilation
856 enable_silent_rules
857 enable_docs
858 with_xmlto
859 with_fop
860 with_xsltproc
861 enable_unix_transport
862 enable_tcp_transport
863 enable_ipv6
864 enable_local_transport
865 with_lint
866 enable_lint_library
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 PKG_CONFIG
878 XMLTO
879 FOP
880 XSLTPROC
881 XMU_CFLAGS
882 XMU_LIBS
883 XMUU_CFLAGS
884 XMUU_LIBS
885 LINT
886 LINT_FLAGS'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941   # If the previous option needs an argument, assign it.
942   if test -n "$ac_prev"; then
943     eval $ac_prev=\$ac_option
944     ac_prev=
945     continue
946   fi
947
948   case $ac_option in
949   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950   *=)   ac_optarg= ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error $? "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022       as_fn_error $? "invalid feature name: $ac_useropt"
1023     ac_useropt_orig=$ac_useropt
1024     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025     case $ac_user_opts in
1026       *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030          ac_unrecognized_sep=', ';;
1031     esac
1032     eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036   | --exec | --exe | --ex)
1037     ac_prev=exec_prefix ;;
1038   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040   | --exec=* | --exe=* | --ex=*)
1041     exec_prefix=$ac_optarg ;;
1042
1043   -gas | --gas | --ga | --g)
1044     # Obsolete; use --with-gas.
1045     with_gas=yes ;;
1046
1047   -help | --help | --hel | --he | -h)
1048     ac_init_help=long ;;
1049   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050     ac_init_help=recursive ;;
1051   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052     ac_init_help=short ;;
1053
1054   -host | --host | --hos | --ho)
1055     ac_prev=host_alias ;;
1056   -host=* | --host=* | --hos=* | --ho=*)
1057     host_alias=$ac_optarg ;;
1058
1059   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060     ac_prev=htmldir ;;
1061   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062   | --ht=*)
1063     htmldir=$ac_optarg ;;
1064
1065   -includedir | --includedir | --includedi | --included | --include \
1066   | --includ | --inclu | --incl | --inc)
1067     ac_prev=includedir ;;
1068   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069   | --includ=* | --inclu=* | --incl=* | --inc=*)
1070     includedir=$ac_optarg ;;
1071
1072   -infodir | --infodir | --infodi | --infod | --info | --inf)
1073     ac_prev=infodir ;;
1074   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075     infodir=$ac_optarg ;;
1076
1077   -libdir | --libdir | --libdi | --libd)
1078     ac_prev=libdir ;;
1079   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080     libdir=$ac_optarg ;;
1081
1082   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083   | --libexe | --libex | --libe)
1084     ac_prev=libexecdir ;;
1085   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086   | --libexe=* | --libex=* | --libe=*)
1087     libexecdir=$ac_optarg ;;
1088
1089   -localedir | --localedir | --localedi | --localed | --locale)
1090     ac_prev=localedir ;;
1091   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092     localedir=$ac_optarg ;;
1093
1094   -localstatedir | --localstatedir | --localstatedi | --localstated \
1095   | --localstate | --localstat | --localsta | --localst | --locals)
1096     ac_prev=localstatedir ;;
1097   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099     localstatedir=$ac_optarg ;;
1100
1101   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102     ac_prev=mandir ;;
1103   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104     mandir=$ac_optarg ;;
1105
1106   -nfp | --nfp | --nf)
1107     # Obsolete; use --without-fp.
1108     with_fp=no ;;
1109
1110   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111   | --no-cr | --no-c | -n)
1112     no_create=yes ;;
1113
1114   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116     no_recursion=yes ;;
1117
1118   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120   | --oldin | --oldi | --old | --ol | --o)
1121     ac_prev=oldincludedir ;;
1122   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125     oldincludedir=$ac_optarg ;;
1126
1127   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128     ac_prev=prefix ;;
1129   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130     prefix=$ac_optarg ;;
1131
1132   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133   | --program-pre | --program-pr | --program-p)
1134     ac_prev=program_prefix ;;
1135   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137     program_prefix=$ac_optarg ;;
1138
1139   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140   | --program-suf | --program-su | --program-s)
1141     ac_prev=program_suffix ;;
1142   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144     program_suffix=$ac_optarg ;;
1145
1146   -program-transform-name | --program-transform-name \
1147   | --program-transform-nam | --program-transform-na \
1148   | --program-transform-n | --program-transform- \
1149   | --program-transform | --program-transfor \
1150   | --program-transfo | --program-transf \
1151   | --program-trans | --program-tran \
1152   | --progr-tra | --program-tr | --program-t)
1153     ac_prev=program_transform_name ;;
1154   -program-transform-name=* | --program-transform-name=* \
1155   | --program-transform-nam=* | --program-transform-na=* \
1156   | --program-transform-n=* | --program-transform-=* \
1157   | --program-transform=* | --program-transfor=* \
1158   | --program-transfo=* | --program-transf=* \
1159   | --program-trans=* | --program-tran=* \
1160   | --progr-tra=* | --program-tr=* | --program-t=*)
1161     program_transform_name=$ac_optarg ;;
1162
1163   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164     ac_prev=pdfdir ;;
1165   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166     pdfdir=$ac_optarg ;;
1167
1168   -psdir | --psdir | --psdi | --psd | --ps)
1169     ac_prev=psdir ;;
1170   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171     psdir=$ac_optarg ;;
1172
1173   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174   | -silent | --silent | --silen | --sile | --sil)
1175     silent=yes ;;
1176
1177   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178     ac_prev=sbindir ;;
1179   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180   | --sbi=* | --sb=*)
1181     sbindir=$ac_optarg ;;
1182
1183   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185   | --sharedst | --shareds | --shared | --share | --shar \
1186   | --sha | --sh)
1187     ac_prev=sharedstatedir ;;
1188   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191   | --sha=* | --sh=*)
1192     sharedstatedir=$ac_optarg ;;
1193
1194   -site | --site | --sit)
1195     ac_prev=site ;;
1196   -site=* | --site=* | --sit=*)
1197     site=$ac_optarg ;;
1198
1199   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200     ac_prev=srcdir ;;
1201   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202     srcdir=$ac_optarg ;;
1203
1204   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205   | --syscon | --sysco | --sysc | --sys | --sy)
1206     ac_prev=sysconfdir ;;
1207   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209     sysconfdir=$ac_optarg ;;
1210
1211   -target | --target | --targe | --targ | --tar | --ta | --t)
1212     ac_prev=target_alias ;;
1213   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214     target_alias=$ac_optarg ;;
1215
1216   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217     verbose=yes ;;
1218
1219   -version | --version | --versio | --versi | --vers | -V)
1220     ac_init_version=: ;;
1221
1222   -with-* | --with-*)
1223     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226       as_fn_error $? "invalid package name: $ac_useropt"
1227     ac_useropt_orig=$ac_useropt
1228     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229     case $ac_user_opts in
1230       *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234          ac_unrecognized_sep=', ';;
1235     esac
1236     eval with_$ac_useropt=\$ac_optarg ;;
1237
1238   -without-* | --without-*)
1239     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242       as_fn_error $? "invalid package name: $ac_useropt"
1243     ac_useropt_orig=$ac_useropt
1244     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245     case $ac_user_opts in
1246       *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250          ac_unrecognized_sep=', ';;
1251     esac
1252     eval with_$ac_useropt=no ;;
1253
1254   --x)
1255     # Obsolete; use --with-x.
1256     with_x=yes ;;
1257
1258   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259   | --x-incl | --x-inc | --x-in | --x-i)
1260     ac_prev=x_includes ;;
1261   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263     x_includes=$ac_optarg ;;
1264
1265   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267     ac_prev=x_libraries ;;
1268   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270     x_libraries=$ac_optarg ;;
1271
1272   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1274     ;;
1275
1276   *=*)
1277     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278     # Reject names that are not valid shell variable names.
1279     case $ac_envvar in #(
1280       '' | [0-9]* | *[!_$as_cr_alnum]* )
1281       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282     esac
1283     eval $ac_envvar=\$ac_optarg
1284     export $ac_envvar ;;
1285
1286   *)
1287     # FIXME: should be removed in autoconf 3.0.
1288     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292     ;;
1293
1294   esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299   as_fn_error $? "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303   case $enable_option_checking in
1304     no) ;;
1305     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307   esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312                 datadir sysconfdir sharedstatedir localstatedir includedir \
1313                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314                 libdir localedir mandir
1315 do
1316   eval ac_val=\$$ac_var
1317   # Remove trailing slashes.
1318   case $ac_val in
1319     */ )
1320       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321       eval $ac_var=\$ac_val;;
1322   esac
1323   # Be sure to have absolute directory names.
1324   case $ac_val in
1325     [\\/$]* | ?:[\\/]* )  continue;;
1326     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327   esac
1328   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340   if test "x$build_alias" = x; then
1341     cross_compiling=maybe
1342     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1343     If a cross compiler is detected then cross compile mode will be used" >&2
1344   elif test "x$build_alias" != "x$host_alias"; then
1345     cross_compiling=yes
1346   fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358   as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360   as_fn_error $? "pwd does not report name of working directory"
1361
1362
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365   ac_srcdir_defaulted=yes
1366   # Try the directory containing this script, then the parent directory.
1367   ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369          X"$as_myself" : 'X\(//\)[^/]' \| \
1370          X"$as_myself" : 'X\(//\)$' \| \
1371          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\/\)[^/].*/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\/\)$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\).*/{
1386             s//\1/
1387             q
1388           }
1389           s/.*/./; q'`
1390   srcdir=$ac_confdir
1391   if test ! -r "$srcdir/$ac_unique_file"; then
1392     srcdir=..
1393   fi
1394 else
1395   ac_srcdir_defaulted=no
1396 fi
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404         pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407   srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_env_${ac_var}_value=\$${ac_var}
1418   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426   # Omit some internal or obsolete options to make the list less imposing.
1427   # This message is too long to be a string in the A/UX 3.1 sh.
1428   cat <<_ACEOF
1429 \`configure' configures libXmu 1.1.1 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE.  See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439   -h, --help              display this help and exit
1440       --help=short        display options specific to this package
1441       --help=recursive    display the short help of all the included packages
1442   -V, --version           display version information and exit
1443   -q, --quiet, --silent   do not print \`checking ...' messages
1444       --cache-file=FILE   cache test results in FILE [disabled]
1445   -C, --config-cache      alias for \`--cache-file=config.cache'
1446   -n, --no-create         do not create output files
1447       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450   --prefix=PREFIX         install architecture-independent files in PREFIX
1451                           [$ac_default_prefix]
1452   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1453                           [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463   --bindir=DIR            user executables [EPREFIX/bin]
1464   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1465   --libexecdir=DIR        program executables [EPREFIX/libexec]
1466   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1467   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1468   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1469   --libdir=DIR            object code libraries [EPREFIX/lib]
1470   --includedir=DIR        C header files [PREFIX/include]
1471   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1472   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1473   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1474   --infodir=DIR           info documentation [DATAROOTDIR/info]
1475   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1476   --mandir=DIR            man documentation [DATAROOTDIR/man]
1477   --docdir=DIR            documentation root [DATAROOTDIR/doc/libXmu]
1478   --htmldir=DIR           html documentation [DOCDIR]
1479   --dvidir=DIR            dvi documentation [DOCDIR]
1480   --pdfdir=DIR            pdf documentation [DOCDIR]
1481   --psdir=DIR             ps documentation [DOCDIR]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 Program names:
1487   --program-prefix=PREFIX            prepend PREFIX to installed program names
1488   --program-suffix=SUFFIX            append SUFFIX to installed program names
1489   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491 System types:
1492   --build=BUILD     configure for building on BUILD [guessed]
1493   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498   case $ac_init_help in
1499      short | recursive ) echo "Configuration of libXmu 1.1.1:";;
1500    esac
1501   cat <<\_ACEOF
1502
1503 Optional Features:
1504   --disable-option-checking  ignore unrecognized --enable/--with options
1505   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507   --enable-maintainer-mode  enable make rules and dependencies not useful
1508                           (and sometimes confusing) to the casual installer
1509   --enable-shared[=PKGS]  build shared libraries [default=yes]
1510   --enable-static[=PKGS]  build static libraries [default=yes]
1511   --enable-fast-install[=PKGS]
1512                           optimize for fast installation [default=yes]
1513   --disable-dependency-tracking  speeds up one-time build
1514   --enable-dependency-tracking   do not reject slow dependency extractors
1515   --disable-libtool-lock  avoid locking (might break parallel builds)
1516   --disable-selective-werror
1517                           Turn off selective compiler errors. (default:
1518                           enabled)
1519   --enable-strict-compilation
1520                           Enable all warnings from compiler and make them
1521                           errors (default: disabled)
1522   --enable-silent-rules          less verbose build output (undo: `make V=1')
1523   --disable-silent-rules         verbose build output (undo: `make V=0')
1524   --enable-docs           Enable building the documentation (default: yes)
1525   --enable-unix-transport Enable UNIX domain socket transport
1526   --enable-tcp-transport  Enable TCP socket transport
1527   --enable-ipv6           Enable IPv6 support
1528   --enable-local-transport
1529                           Enable os-specific local transport
1530   --enable-lint-library   Create lint library (default: disabled)
1531
1532 Optional Packages:
1533   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535   --with-pic              try to use only PIC/non-PIC objects [default=use
1536                           both]
1537   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1538   --with-sysroot=DIR Search for dependent libraries within DIR
1539                         (or the compiler's sysroot if not specified).
1540   --with-xmlto            Use xmlto to regenerate documentation (default:
1541                           auto)
1542   --with-fop              Use fop to regenerate documentation (default: auto)
1543   --with-xsltproc         Use xsltproc for the transformation of XML documents
1544                           (default: auto)
1545   --with-lint             Use a lint-style source code checker (default:
1546                           disabled)
1547
1548 Some influential environment variables:
1549   CC          C compiler command
1550   CFLAGS      C compiler flags
1551   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1552               nonstandard directory <lib dir>
1553   LIBS        libraries to pass to the linker, e.g. -l<library>
1554   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555               you have headers in a nonstandard directory <include dir>
1556   CPP         C preprocessor
1557   PKG_CONFIG  path to pkg-config utility
1558   XMLTO       Path to xmlto command
1559   FOP         Path to fop command
1560   XSLTPROC    Path to xsltproc command
1561   XMU_CFLAGS  C compiler flags for XMU, overriding pkg-config
1562   XMU_LIBS    linker flags for XMU, overriding pkg-config
1563   XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config
1564   XMUU_LIBS   linker flags for XMUU, overriding pkg-config
1565   LINT        Path to a lint-style command
1566   LINT_FLAGS  Flags for the lint-style command
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" ||
1580       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581       continue
1582     ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588   # A ".." for each directory in $ac_dir_suffix.
1589   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590   case $ac_top_builddir_sub in
1591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593   esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601   .)  # We are building in place.
1602     ac_srcdir=.
1603     ac_top_srcdir=$ac_top_builddir_sub
1604     ac_abs_top_srcdir=$ac_pwd ;;
1605   [\\/]* | ?:[\\/]* )  # Absolute name.
1606     ac_srcdir=$srcdir$ac_dir_suffix;
1607     ac_top_srcdir=$srcdir
1608     ac_abs_top_srcdir=$srcdir ;;
1609   *) # Relative name.
1610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611     ac_top_srcdir=$ac_top_build_prefix$srcdir
1612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616     cd "$ac_dir" || { ac_status=$?; continue; }
1617     # Check for guested configure.
1618     if test -f "$ac_srcdir/configure.gnu"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621     elif test -f "$ac_srcdir/configure"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure" --help=recursive
1624     else
1625       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626     fi || ac_status=$?
1627     cd "$ac_pwd" || { ac_status=$?; break; }
1628   done
1629 fi
1630
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633   cat <<\_ACEOF
1634 libXmu configure 1.1.1
1635 generated by GNU Autoconf 2.68
1636
1637 Copyright (C) 2010 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641   exit
1642 fi
1643
1644 ## ------------------------ ##
1645 ## Autoconf initialization. ##
1646 ## ------------------------ ##
1647
1648 # ac_fn_c_try_compile LINENO
1649 # --------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_compile ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   rm -f conftest.$ac_objext
1655   if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_compile") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && {
1671          test -z "$ac_c_werror_flag" ||
1672          test ! -s conftest.err
1673        } && test -s conftest.$ac_objext; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679         ac_retval=1
1680 fi
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682   as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_compile
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   rm -f conftest.$ac_objext conftest$ac_exeext
1693   if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_link") 2>conftest.err
1701   ac_status=$?
1702   if test -s conftest.err; then
1703     grep -v '^ *+' conftest.err >conftest.er1
1704     cat conftest.er1 >&5
1705     mv -f conftest.er1 conftest.err
1706   fi
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && {
1709          test -z "$ac_c_werror_flag" ||
1710          test ! -s conftest.err
1711        } && test -s conftest$ac_exeext && {
1712          test "$cross_compiling" = yes ||
1713          $as_test_x conftest$ac_exeext
1714        }; then :
1715   ac_retval=0
1716 else
1717   $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720         ac_retval=1
1721 fi
1722   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724   # interfere with the next link command; also delete a directory that is
1725   # left behind by Apple's compiler.  We do this before executing the actions.
1726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728   as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
1731
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750   eval "$3=yes"
1751 else
1752   eval "$3=no"
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_header_compile
1762
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_cpp ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } > conftest.i && {
1785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        }; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793     ac_retval=1
1794 fi
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_cpp
1799
1800 # ac_fn_c_try_run LINENO
1801 # ----------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1803 # that executables *can* be run.
1804 ac_fn_c_try_run ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_link") 2>&5
1815   ac_status=$?
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1818   { { case "(($ac_try" in
1819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820   *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824   (eval "$ac_try") 2>&5
1825   ac_status=$?
1826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827   test $ac_status = 0; }; }; then :
1828   ac_retval=0
1829 else
1830   $as_echo "$as_me: program exited with status $ac_status" >&5
1831        $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834        ac_retval=$ac_status
1835 fi
1836   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838   as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_run
1841
1842 # ac_fn_c_check_func LINENO FUNC VAR
1843 # ----------------------------------
1844 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1845 ac_fn_c_check_func ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851   $as_echo_n "(cached) " >&6
1852 else
1853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1857 #define $2 innocuous_$2
1858
1859 /* System header to define __stub macros and hopefully few prototypes,
1860     which can conflict with char $2 (); below.
1861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862     <limits.h> exists even on freestanding compilers.  */
1863
1864 #ifdef __STDC__
1865 # include <limits.h>
1866 #else
1867 # include <assert.h>
1868 #endif
1869
1870 #undef $2
1871
1872 /* Override any GCC internal prototype to avoid an error.
1873    Use char because int might match the return type of a GCC
1874    builtin and then its argument prototype would still apply.  */
1875 #ifdef __cplusplus
1876 extern "C"
1877 #endif
1878 char $2 ();
1879 /* The GNU C library defines this for functions which it implements
1880     to always fail with ENOSYS.  Some functions are actually named
1881     something starting with __ and the normal name is an alias.  */
1882 #if defined __stub_$2 || defined __stub___$2
1883 choke me
1884 #endif
1885
1886 int
1887 main ()
1888 {
1889 return $2 ();
1890   ;
1891   return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_link "$LINENO"; then :
1895   eval "$3=yes"
1896 else
1897   eval "$3=no"
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext \
1900     conftest$ac_exeext conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907 } # ac_fn_c_check_func
1908
1909 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1910 # ---------------------------------------------
1911 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1912 # accordingly.
1913 ac_fn_c_check_decl ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   as_decl_name=`echo $2|sed 's/ *(.*//'`
1917   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1919 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1920 if eval \${$3+:} false; then :
1921   $as_echo_n "(cached) " >&6
1922 else
1923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 $4
1926 int
1927 main ()
1928 {
1929 #ifndef $as_decl_name
1930 #ifdef __cplusplus
1931   (void) $as_decl_use;
1932 #else
1933   (void) $as_decl_name;
1934 #endif
1935 #endif
1936
1937   ;
1938   return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942   eval "$3=yes"
1943 else
1944   eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953 } # ac_fn_c_check_decl
1954
1955 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1956 # ----------------------------------------------------
1957 # Tries to find if the field MEMBER exists in type AGGR, after including
1958 # INCLUDES, setting cache variable VAR accordingly.
1959 ac_fn_c_check_member ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1963 $as_echo_n "checking for $2.$3... " >&6; }
1964 if eval \${$4+:} false; then :
1965   $as_echo_n "(cached) " >&6
1966 else
1967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 $5
1970 int
1971 main ()
1972 {
1973 static $2 ac_aggr;
1974 if (ac_aggr.$3)
1975 return 0;
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981   eval "$4=yes"
1982 else
1983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $5
1986 int
1987 main ()
1988 {
1989 static $2 ac_aggr;
1990 if (sizeof ac_aggr.$3)
1991 return 0;
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   eval "$4=yes"
1998 else
1999   eval "$4=no"
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$4
2006                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_c_check_member
2011
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022   $as_echo_n "(cached) " >&6
2023 else
2024   eval "$3=no"
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 if (sizeof ($2))
2032          return 0;
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof (($2)))
2045             return 0;
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051
2052 else
2053   eval "$3=yes"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064 } # ac_fn_c_check_type
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2068
2069 It was created by libXmu $as_me 1.1.1, which was
2070 generated by GNU Autoconf 2.68.  Invocation command line was
2071
2072   $ $0 $@
2073
2074 _ACEOF
2075 exec 5>>config.log
2076 {
2077 cat <<_ASUNAME
2078 ## --------- ##
2079 ## Platform. ##
2080 ## --------- ##
2081
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2090
2091 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2092 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2095 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2096 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2097 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2098
2099 _ASUNAME
2100
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106     $as_echo "PATH: $as_dir"
2107   done
2108 IFS=$as_save_IFS
2109
2110 } >&5
2111
2112 cat >&5 <<_ACEOF
2113
2114
2115 ## ----------- ##
2116 ## Core tests. ##
2117 ## ----------- ##
2118
2119 _ACEOF
2120
2121
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_configure_args=
2128 ac_configure_args0=
2129 ac_configure_args1=
2130 ac_must_keep_next=false
2131 for ac_pass in 1 2
2132 do
2133   for ac_arg
2134   do
2135     case $ac_arg in
2136     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138     | -silent | --silent | --silen | --sile | --sil)
2139       continue ;;
2140     *\'*)
2141       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142     esac
2143     case $ac_pass in
2144     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145     2)
2146       as_fn_append ac_configure_args1 " '$ac_arg'"
2147       if test $ac_must_keep_next = true; then
2148         ac_must_keep_next=false # Got value, back to normal.
2149       else
2150         case $ac_arg in
2151           *=* | --config-cache | -C | -disable-* | --disable-* \
2152           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154           | -with-* | --with-* | -without-* | --without-* | --x)
2155             case "$ac_configure_args0 " in
2156               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157             esac
2158             ;;
2159           -* ) ac_must_keep_next=true ;;
2160         esac
2161       fi
2162       as_fn_append ac_configure_args " '$ac_arg'"
2163       ;;
2164     esac
2165   done
2166 done
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2169
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log.  We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176   # Save into config.log some information that might help in debugging.
2177   {
2178     echo
2179
2180     $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2183     echo
2184     # The following way of writing the cache mishandles newlines in values,
2185 (
2186   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187     eval ac_val=\$$ac_var
2188     case $ac_val in #(
2189     *${as_nl}*)
2190       case $ac_var in #(
2191       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193       esac
2194       case $ac_var in #(
2195       _ | IFS | as_nl) ;; #(
2196       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197       *) { eval $ac_var=; unset $ac_var;} ;;
2198       esac ;;
2199     esac
2200   done
2201   (set) 2>&1 |
2202     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203     *${as_nl}ac_space=\ *)
2204       sed -n \
2205         "s/'\''/'\''\\\\'\'''\''/g;
2206           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207       ;; #(
2208     *)
2209       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210       ;;
2211     esac |
2212     sort
2213 )
2214     echo
2215
2216     $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2219     echo
2220     for ac_var in $ac_subst_vars
2221     do
2222       eval ac_val=\$$ac_var
2223       case $ac_val in
2224       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225       esac
2226       $as_echo "$ac_var='\''$ac_val'\''"
2227     done | sort
2228     echo
2229
2230     if test -n "$ac_subst_files"; then
2231       $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2234       echo
2235       for ac_var in $ac_subst_files
2236       do
2237         eval ac_val=\$$ac_var
2238         case $ac_val in
2239         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240         esac
2241         $as_echo "$ac_var='\''$ac_val'\''"
2242       done | sort
2243       echo
2244     fi
2245
2246     if test -s confdefs.h; then
2247       $as_echo "## ----------- ##
2248 ## confdefs.h. ##
2249 ## ----------- ##"
2250       echo
2251       cat confdefs.h
2252       echo
2253     fi
2254     test "$ac_signal" != 0 &&
2255       $as_echo "$as_me: caught signal $ac_signal"
2256     $as_echo "$as_me: exit $exit_status"
2257   } >&5
2258   rm -f core *.core core.conftest.* &&
2259     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260     exit $exit_status
2261 ' 0
2262 for ac_signal in 1 2 13 15; do
2263   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2266
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2269
2270 $as_echo "/* confdefs.h */" > confdefs.h
2271
2272 # Predefined preprocessor variables.
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2296 _ACEOF
2297
2298
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2301 ac_site_file1=NONE
2302 ac_site_file2=NONE
2303 if test -n "$CONFIG_SITE"; then
2304   # We do not want a PATH search for config.site.
2305   case $CONFIG_SITE in #((
2306     -*)  ac_site_file1=./$CONFIG_SITE;;
2307     */*) ac_site_file1=$CONFIG_SITE;;
2308     *)   ac_site_file1=./$CONFIG_SITE;;
2309   esac
2310 elif test "x$prefix" != xNONE; then
2311   ac_site_file1=$prefix/share/config.site
2312   ac_site_file2=$prefix/etc/config.site
2313 else
2314   ac_site_file1=$ac_default_prefix/share/config.site
2315   ac_site_file2=$ac_default_prefix/etc/config.site
2316 fi
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2318 do
2319   test "x$ac_site_file" = xNONE && continue
2320   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323     sed 's/^/| /' "$ac_site_file" >&5
2324     . "$ac_site_file" \
2325       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2329   fi
2330 done
2331
2332 if test -r "$cache_file"; then
2333   # Some versions of bash will fail to source /dev/null (special files
2334   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2335   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2338     case $cache_file in
2339       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340       *)                      . "./$cache_file";;
2341     esac
2342   fi
2343 else
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2346   >$cache_file
2347 fi
2348
2349 # Check that the precious variables saved in the cache have kept the same
2350 # value.
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354   eval ac_new_set=\$ac_env_${ac_var}_set
2355   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356   eval ac_new_val=\$ac_env_${ac_var}_value
2357   case $ac_old_set,$ac_new_set in
2358     set,)
2359       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361       ac_cache_corrupted=: ;;
2362     ,set)
2363       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365       ac_cache_corrupted=: ;;
2366     ,);;
2367     *)
2368       if test "x$ac_old_val" != "x$ac_new_val"; then
2369         # differences in whitespace do not lead to failure.
2370         ac_old_val_w=`echo x $ac_old_val`
2371         ac_new_val_w=`echo x $ac_new_val`
2372         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375           ac_cache_corrupted=:
2376         else
2377           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379           eval $ac_var=\$ac_old_val
2380         fi
2381         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2382 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2383         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2384 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2385       fi;;
2386   esac
2387   # Pass precious variables to config.status.
2388   if test "$ac_new_set" = set; then
2389     case $ac_new_val in
2390     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391     *) ac_arg=$ac_var=$ac_new_val ;;
2392     esac
2393     case " $ac_configure_args " in
2394       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2395       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396     esac
2397   fi
2398 done
2399 if $ac_cache_corrupted; then
2400   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2405 fi
2406 ## -------------------- ##
2407 ## Main body of script. ##
2408 ## -------------------- ##
2409
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415
2416
2417
2418 ac_config_headers="$ac_config_headers config.h"
2419
2420
2421 # Initialize Automake
2422 am__api_version='1.11'
2423
2424 ac_aux_dir=
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426   if test -f "$ac_dir/install-sh"; then
2427     ac_aux_dir=$ac_dir
2428     ac_install_sh="$ac_aux_dir/install-sh -c"
2429     break
2430   elif test -f "$ac_dir/install.sh"; then
2431     ac_aux_dir=$ac_dir
2432     ac_install_sh="$ac_aux_dir/install.sh -c"
2433     break
2434   elif test -f "$ac_dir/shtool"; then
2435     ac_aux_dir=$ac_dir
2436     ac_install_sh="$ac_aux_dir/shtool install -c"
2437     break
2438   fi
2439 done
2440 if test -z "$ac_aux_dir"; then
2441   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2442 fi
2443
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2451
2452
2453 # Find a good install program.  We prefer a C program (faster),
2454 # so one script is as good as another.  But avoid the broken or
2455 # incompatible versions:
2456 # SysV /etc/install, /usr/sbin/install
2457 # SunOS /usr/etc/install
2458 # IRIX /sbin/install
2459 # AIX /bin/install
2460 # AmigaOS /C/install, which installs bootblocks on floppy discs
2461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2464 # OS/2's system install, which has a completely different semantic
2465 # ./install, which can be erroneously created by make from ./install.sh.
2466 # Reject install programs that cannot install multiple files.
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2468 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2469 if test -z "$INSTALL"; then
2470 if ${ac_cv_path_install+:} false; then :
2471   $as_echo_n "(cached) " >&6
2472 else
2473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478     # Account for people who put trailing slashes in PATH elements.
2479 case $as_dir/ in #((
2480   ./ | .// | /[cC]/* | \
2481   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2482   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2483   /usr/ucb/* ) ;;
2484   *)
2485     # OSF1 and SCO ODT 3.0 have their own names for install.
2486     # Don't use installbsd from OSF since it installs stuff as root
2487     # by default.
2488     for ac_prog in ginstall scoinst install; do
2489       for ac_exec_ext in '' $ac_executable_extensions; do
2490         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2491           if test $ac_prog = install &&
2492             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493             # AIX install.  It has an incompatible calling convention.
2494             :
2495           elif test $ac_prog = install &&
2496             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497             # program-specific install script used by HP pwplus--don't use.
2498             :
2499           else
2500             rm -rf conftest.one conftest.two conftest.dir
2501             echo one > conftest.one
2502             echo two > conftest.two
2503             mkdir conftest.dir
2504             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2505               test -s conftest.one && test -s conftest.two &&
2506               test -s conftest.dir/conftest.one &&
2507               test -s conftest.dir/conftest.two
2508             then
2509               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2510               break 3
2511             fi
2512           fi
2513         fi
2514       done
2515     done
2516     ;;
2517 esac
2518
2519   done
2520 IFS=$as_save_IFS
2521
2522 rm -rf conftest.one conftest.two conftest.dir
2523
2524 fi
2525   if test "${ac_cv_path_install+set}" = set; then
2526     INSTALL=$ac_cv_path_install
2527   else
2528     # As a last resort, use the slow shell script.  Don't cache a
2529     # value for INSTALL within a source directory, because that will
2530     # break other packages using the cache if that directory is
2531     # removed, or if the value is a relative name.
2532     INSTALL=$ac_install_sh
2533   fi
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2536 $as_echo "$INSTALL" >&6; }
2537
2538 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2539 # It thinks the first close brace ends the variable substitution.
2540 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2541
2542 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2543
2544 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2547 $as_echo_n "checking whether build environment is sane... " >&6; }
2548 # Just in case
2549 sleep 1
2550 echo timestamp > conftest.file
2551 # Reject unsafe characters in $srcdir or the absolute working directory
2552 # name.  Accept space and tab only in the latter.
2553 am_lf='
2554 '
2555 case `pwd` in
2556   *[\\\"\#\$\&\'\`$am_lf]*)
2557     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2558 esac
2559 case $srcdir in
2560   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2561     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2562 esac
2563
2564 # Do `set' in a subshell so we don't clobber the current shell's
2565 # arguments.  Must try -L first in case configure is actually a
2566 # symlink; some systems play weird games with the mod time of symlinks
2567 # (eg FreeBSD returns the mod time of the symlink's containing
2568 # directory).
2569 if (
2570    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2571    if test "$*" = "X"; then
2572       # -L didn't work.
2573       set X `ls -t "$srcdir/configure" conftest.file`
2574    fi
2575    rm -f conftest.file
2576    if test "$*" != "X $srcdir/configure conftest.file" \
2577       && test "$*" != "X conftest.file $srcdir/configure"; then
2578
2579       # If neither matched, then we have a broken ls.  This can happen
2580       # if, for instance, CONFIG_SHELL is bash and it inherits a
2581       # broken ls alias from the environment.  This has actually
2582       # happened.  Such a system could not be considered "sane".
2583       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2584 alias in your environment" "$LINENO" 5
2585    fi
2586
2587    test "$2" = conftest.file
2588    )
2589 then
2590    # Ok.
2591    :
2592 else
2593    as_fn_error $? "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 test "$program_prefix" != NONE &&
2599   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2600 # Use a double $ so make ignores it.
2601 test "$program_suffix" != NONE &&
2602   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2603 # Double any \ or $.
2604 # By default was `s,x,x', remove it if useless.
2605 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2606 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2607
2608 # expand $ac_aux_dir to an absolute path
2609 am_aux_dir=`cd $ac_aux_dir && pwd`
2610
2611 if test x"${MISSING+set}" != xset; then
2612   case $am_aux_dir in
2613   *\ * | *\     *)
2614     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2615   *)
2616     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2617   esac
2618 fi
2619 # Use eval to expand $SHELL
2620 if eval "$MISSING --run true"; then
2621   am_missing_run="$MISSING --run "
2622 else
2623   am_missing_run=
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2625 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2626 fi
2627
2628 if test x"${install_sh}" != xset; then
2629   case $am_aux_dir in
2630   *\ * | *\     *)
2631     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2632   *)
2633     install_sh="\${SHELL} $am_aux_dir/install-sh"
2634   esac
2635 fi
2636
2637 # Installed binaries are usually stripped using `strip' when the user
2638 # run `make install-strip'.  However `strip' might not be the right
2639 # tool to use in cross-compilation environments, therefore Automake
2640 # will honor the `STRIP' environment variable to overrule this program.
2641 if test "$cross_compiling" != no; then
2642   if test -n "$ac_tool_prefix"; then
2643   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}strip; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_STRIP+:} false; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$STRIP"; then
2651   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 STRIP=$ac_cv_prog_STRIP
2671 if test -n "$STRIP"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2673 $as_echo "$STRIP" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 fi
2681 if test -z "$ac_cv_prog_STRIP"; then
2682   ac_ct_STRIP=$STRIP
2683   # Extract the first word of "strip", so it can be a program name with args.
2684 set dummy strip; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2688   $as_echo_n "(cached) " >&6
2689 else
2690   if test -n "$ac_ct_STRIP"; then
2691   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696   IFS=$as_save_IFS
2697   test -z "$as_dir" && as_dir=.
2698     for ac_exec_ext in '' $ac_executable_extensions; do
2699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700     ac_cv_prog_ac_ct_STRIP="strip"
2701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702     break 2
2703   fi
2704 done
2705   done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2711 if test -n "$ac_ct_STRIP"; then
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2713 $as_echo "$ac_ct_STRIP" >&6; }
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719   if test "x$ac_ct_STRIP" = x; then
2720     STRIP=":"
2721   else
2722     case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     STRIP=$ac_ct_STRIP
2729   fi
2730 else
2731   STRIP="$ac_cv_prog_STRIP"
2732 fi
2733
2734 fi
2735 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2738 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2739 if test -z "$MKDIR_P"; then
2740   if ${ac_cv_path_mkdir+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748     for ac_prog in mkdir gmkdir; do
2749          for ac_exec_ext in '' $ac_executable_extensions; do
2750            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2751            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2752              'mkdir (GNU coreutils) '* | \
2753              'mkdir (coreutils) '* | \
2754              'mkdir (fileutils) '4.1*)
2755                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2756                break 3;;
2757            esac
2758          done
2759        done
2760   done
2761 IFS=$as_save_IFS
2762
2763 fi
2764
2765   test -d ./--version && rmdir ./--version
2766   if test "${ac_cv_path_mkdir+set}" = set; then
2767     MKDIR_P="$ac_cv_path_mkdir -p"
2768   else
2769     # As a last resort, use the slow shell script.  Don't cache a
2770     # value for MKDIR_P within a source directory, because that will
2771     # break other packages using the cache if that directory is
2772     # removed, or if the value is a relative name.
2773     MKDIR_P="$ac_install_sh -d"
2774   fi
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2777 $as_echo "$MKDIR_P" >&6; }
2778
2779 mkdir_p="$MKDIR_P"
2780 case $mkdir_p in
2781   [\\/$]* | ?:[\\/]*) ;;
2782   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2783 esac
2784
2785 for ac_prog in gawk mawk nawk awk
2786 do
2787   # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_AWK+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test -n "$AWK"; then
2795   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802     for ac_exec_ext in '' $ac_executable_extensions; do
2803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804     ac_cv_prog_AWK="$ac_prog"
2805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809   done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 AWK=$ac_cv_prog_AWK
2815 if test -n "$AWK"; then
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817 $as_echo "$AWK" >&6; }
2818 else
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824   test -n "$AWK" && break
2825 done
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2829 set x ${MAKE-make}
2830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   cat >conftest.make <<\_ACEOF
2835 SHELL = /bin/sh
2836 all:
2837         @echo '@@@%%%=$(MAKE)=@@@%%%'
2838 _ACEOF
2839 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2841   *@@@%%%=?*=@@@%%%*)
2842     eval ac_cv_prog_make_${ac_make}_set=yes;;
2843   *)
2844     eval ac_cv_prog_make_${ac_make}_set=no;;
2845 esac
2846 rm -f conftest.make
2847 fi
2848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2851   SET_MAKE=
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855   SET_MAKE="MAKE=${MAKE-make}"
2856 fi
2857
2858 rm -rf .tst 2>/dev/null
2859 mkdir .tst 2>/dev/null
2860 if test -d .tst; then
2861   am__leading_dot=.
2862 else
2863   am__leading_dot=_
2864 fi
2865 rmdir .tst 2>/dev/null
2866
2867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869   # is not polluted with repeated "-I."
2870   am__isrc=' -I$(srcdir)'
2871   # test to see if srcdir already configured
2872   if test -f $srcdir/config.status; then
2873     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2874   fi
2875 fi
2876
2877 # test whether we have cygpath
2878 if test -z "$CYGPATH_W"; then
2879   if (cygpath --version) >/dev/null 2>/dev/null; then
2880     CYGPATH_W='cygpath -w'
2881   else
2882     CYGPATH_W=echo
2883   fi
2884 fi
2885
2886
2887 # Define the identity of the package.
2888  PACKAGE='libXmu'
2889  VERSION='1.1.1'
2890
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE "$PACKAGE"
2894 _ACEOF
2895
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define VERSION "$VERSION"
2899 _ACEOF
2900
2901 # Some tools Automake needs.
2902
2903 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2904
2905
2906 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2907
2908
2909 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2910
2911
2912 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2913
2914
2915 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2916
2917 # We need awk for the "check" target.  The system "awk" is bad on
2918 # some platforms.
2919 # Always define AMTAR for backward compatibility.
2920
2921 AMTAR=${AMTAR-"${am_missing_run}tar"}
2922
2923 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2924
2925
2926
2927
2928
2929
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2931 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2932     # Check whether --enable-maintainer-mode was given.
2933 if test "${enable_maintainer_mode+set}" = set; then :
2934   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2935 else
2936   USE_MAINTAINER_MODE=no
2937 fi
2938
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2940 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2941    if test $USE_MAINTAINER_MODE = yes; then
2942   MAINTAINER_MODE_TRUE=
2943   MAINTAINER_MODE_FALSE='#'
2944 else
2945   MAINTAINER_MODE_TRUE='#'
2946   MAINTAINER_MODE_FALSE=
2947 fi
2948
2949   MAINT=$MAINTAINER_MODE_TRUE
2950
2951
2952
2953 # Initialize libtool
2954 case `pwd` in
2955   *\ * | *\     *)
2956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2957 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2958 esac
2959
2960
2961
2962 macro_version='2.4'
2963 macro_revision='1.3293'
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977 ltmain="$ac_aux_dir/ltmain.sh"
2978
2979 # Make sure we can run config.sub.
2980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2981   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2984 $as_echo_n "checking build system type... " >&6; }
2985 if ${ac_cv_build+:} false; then :
2986   $as_echo_n "(cached) " >&6
2987 else
2988   ac_build_alias=$build_alias
2989 test "x$ac_build_alias" = x &&
2990   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2991 test "x$ac_build_alias" = x &&
2992   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2994   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2995
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2998 $as_echo "$ac_cv_build" >&6; }
2999 case $ac_cv_build in
3000 *-*-*) ;;
3001 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3002 esac
3003 build=$ac_cv_build
3004 ac_save_IFS=$IFS; IFS='-'
3005 set x $ac_cv_build
3006 shift
3007 build_cpu=$1
3008 build_vendor=$2
3009 shift; shift
3010 # Remember, the first character of IFS is used to create $*,
3011 # except with old shells:
3012 build_os=$*
3013 IFS=$ac_save_IFS
3014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3015
3016
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3018 $as_echo_n "checking host system type... " >&6; }
3019 if ${ac_cv_host+:} false; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   if test "x$host_alias" = x; then
3023   ac_cv_host=$ac_cv_build
3024 else
3025   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3026     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3027 fi
3028
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3031 $as_echo "$ac_cv_host" >&6; }
3032 case $ac_cv_host in
3033 *-*-*) ;;
3034 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3035 esac
3036 host=$ac_cv_host
3037 ac_save_IFS=$IFS; IFS='-'
3038 set x $ac_cv_host
3039 shift
3040 host_cpu=$1
3041 host_vendor=$2
3042 shift; shift
3043 # Remember, the first character of IFS is used to create $*,
3044 # except with old shells:
3045 host_os=$*
3046 IFS=$ac_save_IFS
3047 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3048
3049
3050 # Backslashify metacharacters that are still active within
3051 # double-quoted strings.
3052 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3053
3054 # Same as above, but do not quote variable references.
3055 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3056
3057 # Sed substitution to delay expansion of an escaped shell variable in a
3058 # double_quote_subst'ed string.
3059 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3060
3061 # Sed substitution to delay expansion of an escaped single quote.
3062 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3063
3064 # Sed substitution to avoid accidental globbing in evaled expressions
3065 no_glob_subst='s/\*/\\\*/g'
3066
3067 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3072 $as_echo_n "checking how to print strings... " >&6; }
3073 # Test print first, because it will be a builtin if present.
3074 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3075    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3076   ECHO='print -r --'
3077 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3078   ECHO='printf %s\n'
3079 else
3080   # Use this function as a fallback that always works.
3081   func_fallback_echo ()
3082   {
3083     eval 'cat <<_LTECHO_EOF
3084 $1
3085 _LTECHO_EOF'
3086   }
3087   ECHO='func_fallback_echo'
3088 fi
3089
3090 # func_echo_all arg...
3091 # Invoke $ECHO with all args, space-separated.
3092 func_echo_all ()
3093 {
3094     $ECHO ""
3095 }
3096
3097 case "$ECHO" in
3098   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3099 $as_echo "printf" >&6; } ;;
3100   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3101 $as_echo "print -r" >&6; } ;;
3102   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3103 $as_echo "cat" >&6; } ;;
3104 esac
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119 DEPDIR="${am__leading_dot}deps"
3120
3121 ac_config_commands="$ac_config_commands depfiles"
3122
3123
3124 am_make=${MAKE-make}
3125 cat > confinc << 'END'
3126 am__doit:
3127         @echo this is the am__doit target
3128 .PHONY: am__doit
3129 END
3130 # If we don't find an include directive, just comment out the code.
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3132 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3133 am__include="#"
3134 am__quote=
3135 _am_result=none
3136 # First try GNU make style include.
3137 echo "include confinc" > confmf
3138 # Ignore all kinds of additional output from `make'.
3139 case `$am_make -s -f confmf 2> /dev/null` in #(
3140 *the\ am__doit\ target*)
3141   am__include=include
3142   am__quote=
3143   _am_result=GNU
3144   ;;
3145 esac
3146 # Now try BSD make style include.
3147 if test "$am__include" = "#"; then
3148    echo '.include "confinc"' > confmf
3149    case `$am_make -s -f confmf 2> /dev/null` in #(
3150    *the\ am__doit\ target*)
3151      am__include=.include
3152      am__quote="\""
3153      _am_result=BSD
3154      ;;
3155    esac
3156 fi
3157
3158
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3160 $as_echo "$_am_result" >&6; }
3161 rm -f confinc confmf
3162
3163 # Check whether --enable-dependency-tracking was given.
3164 if test "${enable_dependency_tracking+set}" = set; then :
3165   enableval=$enable_dependency_tracking;
3166 fi
3167
3168 if test "x$enable_dependency_tracking" != xno; then
3169   am_depcomp="$ac_aux_dir/depcomp"
3170   AMDEPBACKSLASH='\'
3171 fi
3172  if test "x$enable_dependency_tracking" != xno; then
3173   AMDEP_TRUE=
3174   AMDEP_FALSE='#'
3175 else
3176   AMDEP_TRUE='#'
3177   AMDEP_FALSE=
3178 fi
3179
3180
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 if test -n "$ac_tool_prefix"; then
3187   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   if test -n "$CC"; then
3195   ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202     for ac_exec_ext in '' $ac_executable_extensions; do
3203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209   done
3210 IFS=$as_save_IFS
3211
3212 fi
3213 fi
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 fi
3225 if test -z "$ac_cv_prog_CC"; then
3226   ac_ct_CC=$CC
3227   # Extract the first word of "gcc", so it can be a program name with args.
3228 set dummy gcc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3232   $as_echo_n "(cached) " >&6
3233 else
3234   if test -n "$ac_ct_CC"; then
3235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242     for ac_exec_ext in '' $ac_executable_extensions; do
3243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244     ac_cv_prog_ac_ct_CC="gcc"
3245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249   done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3255 if test -n "$ac_ct_CC"; then
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3257 $as_echo "$ac_ct_CC" >&6; }
3258 else
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263   if test "x$ac_ct_CC" = x; then
3264     CC=""
3265   else
3266     case $cross_compiling:$ac_tool_warned in
3267 yes:)
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3270 ac_tool_warned=yes ;;
3271 esac
3272     CC=$ac_ct_CC
3273   fi
3274 else
3275   CC="$ac_cv_prog_CC"
3276 fi
3277
3278 if test -z "$CC"; then
3279           if test -n "$ac_tool_prefix"; then
3280     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3281 set dummy ${ac_tool_prefix}cc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285   $as_echo_n "(cached) " >&6
3286 else
3287   if test -n "$CC"; then
3288   ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295     for ac_exec_ext in '' $ac_executable_extensions; do
3296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297     ac_cv_prog_CC="${ac_tool_prefix}cc"
3298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299     break 2
3300   fi
3301 done
3302   done
3303 IFS=$as_save_IFS
3304
3305 fi
3306 fi
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3311 else
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 fi
3315
3316
3317   fi
3318 fi
3319 if test -z "$CC"; then
3320   # Extract the first word of "cc", so it can be a program name with args.
3321 set dummy cc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$CC"; then
3328   ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330   ac_prog_rejected=no
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336     for ac_exec_ext in '' $ac_executable_extensions; do
3337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3339        ac_prog_rejected=yes
3340        continue
3341      fi
3342     ac_cv_prog_CC="cc"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 if test $ac_prog_rejected = yes; then
3351   # We found a bogon in the path, so make sure we never use it.
3352   set dummy $ac_cv_prog_CC
3353   shift
3354   if test $# != 0; then
3355     # We chose a different compiler from the bogus one.
3356     # However, it has the same basename, so the bogon will be chosen
3357     # first if we set CC to just the basename; use the full file name.
3358     shift
3359     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3360   fi
3361 fi
3362 fi
3363 fi
3364 CC=$ac_cv_prog_CC
3365 if test -n "$CC"; then
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 $as_echo "$CC" >&6; }
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373
3374 fi
3375 if test -z "$CC"; then
3376   if test -n "$ac_tool_prefix"; then
3377   for ac_prog in cl.exe
3378   do
3379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_CC+:} false; then :
3384   $as_echo_n "(cached) " >&6
3385 else
3386   if test -n "$CC"; then
3387   ac_cv_prog_CC="$CC" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394     for ac_exec_ext in '' $ac_executable_extensions; do
3395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401   done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 CC=$ac_cv_prog_CC
3407 if test -n "$CC"; then
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3410 else
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414
3415
3416     test -n "$CC" && break
3417   done
3418 fi
3419 if test -z "$CC"; then
3420   ac_ct_CC=$CC
3421   for ac_prog in cl.exe
3422 do
3423   # Extract the first word of "$ac_prog", so it can be a program name with args.
3424 set dummy $ac_prog; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   if test -n "$ac_ct_CC"; then
3431   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436   IFS=$as_save_IFS
3437   test -z "$as_dir" && as_dir=.
3438     for ac_exec_ext in '' $ac_executable_extensions; do
3439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440     ac_cv_prog_ac_ct_CC="$ac_prog"
3441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442     break 2
3443   fi
3444 done
3445   done
3446 IFS=$as_save_IFS
3447
3448 fi
3449 fi
3450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3451 if test -n "$ac_ct_CC"; then
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3453 $as_echo "$ac_ct_CC" >&6; }
3454 else
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3457 fi
3458
3459
3460   test -n "$ac_ct_CC" && break
3461 done
3462
3463   if test "x$ac_ct_CC" = x; then
3464     CC=""
3465   else
3466     case $cross_compiling:$ac_tool_warned in
3467 yes:)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472     CC=$ac_ct_CC
3473   fi
3474 fi
3475
3476 fi
3477
3478
3479 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "no acceptable C compiler found in \$PATH
3482 See \`config.log' for more details" "$LINENO" 5; }
3483
3484 # Provide some information about the compiler.
3485 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3486 set X $ac_compile
3487 ac_compiler=$2
3488 for ac_option in --version -v -V -qversion; do
3489   { { ac_try="$ac_compiler $ac_option >&5"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3497   ac_status=$?
3498   if test -s conftest.err; then
3499     sed '10a\
3500 ... rest of stderr output deleted ...
3501          10q' conftest.err >conftest.er1
3502     cat conftest.er1 >&5
3503   fi
3504   rm -f conftest.er1 conftest.err
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }
3507 done
3508
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h.  */
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 ac_clean_files_save=$ac_clean_files
3521 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3522 # Try to create an executable without -o first, disregard a.out.
3523 # It will help us diagnose broken compilers, and finding out an intuition
3524 # of exeext.
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3526 $as_echo_n "checking whether the C compiler works... " >&6; }
3527 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3528
3529 # The possible output files:
3530 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3531
3532 ac_rmfiles=
3533 for ac_file in $ac_files
3534 do
3535   case $ac_file in
3536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3538   esac
3539 done
3540 rm -f $ac_rmfiles
3541
3542 if { { ac_try="$ac_link_default"
3543 case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549   (eval "$ac_link_default") 2>&5
3550   ac_status=$?
3551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552   test $ac_status = 0; }; then :
3553   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3554 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3555 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3556 # so that the user can short-circuit this test for compilers unknown to
3557 # Autoconf.
3558 for ac_file in $ac_files ''
3559 do
3560   test -f "$ac_file" || continue
3561   case $ac_file in
3562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3563         ;;
3564     [ab].out )
3565         # We found the default executable, but exeext='' is most
3566         # certainly right.
3567         break;;
3568     *.* )
3569         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3570         then :; else
3571            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572         fi
3573         # We set ac_cv_exeext here because the later test for it is not
3574         # safe: cross compilers may not add the suffix if given an `-o'
3575         # argument, so we may need to know it at that point already.
3576         # Even if this section looks crufty: it has the advantage of
3577         # actually working.
3578         break;;
3579     * )
3580         break;;
3581   esac
3582 done
3583 test "$ac_cv_exeext" = no && ac_cv_exeext=
3584
3585 else
3586   ac_file=''
3587 fi
3588 if test -z "$ac_file"; then :
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591 $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error 77 "C compiler cannot create executables
3597 See \`config.log' for more details" "$LINENO" 5; }
3598 else
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3603 $as_echo_n "checking for C compiler default output file name... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605 $as_echo "$ac_file" >&6; }
3606 ac_exeext=$ac_cv_exeext
3607
3608 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3609 ac_clean_files=$ac_clean_files_save
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3611 $as_echo_n "checking for suffix of executables... " >&6; }
3612 if { { ac_try="$ac_link"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619   (eval "$ac_link") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }; then :
3623   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3624 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3625 # work properly (i.e., refer to `conftest.exe'), while it won't with
3626 # `rm'.
3627 for ac_file in conftest.exe conftest conftest.*; do
3628   test -f "$ac_file" || continue
3629   case $ac_file in
3630     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3632           break;;
3633     * ) break;;
3634   esac
3635 done
3636 else
3637   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 fi
3642 rm -f conftest conftest$ac_cv_exeext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3644 $as_echo "$ac_cv_exeext" >&6; }
3645
3646 rm -f conftest.$ac_ext
3647 EXEEXT=$ac_cv_exeext
3648 ac_exeext=$EXEEXT
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651 #include <stdio.h>
3652 int
3653 main ()
3654 {
3655 FILE *f = fopen ("conftest.out", "w");
3656  return ferror (f) || fclose (f) != 0;
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 ac_clean_files="$ac_clean_files conftest.out"
3663 # Check that the compiler produces executables we can run.  If not, either
3664 # the compiler is broken, or we cross compile.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3666 $as_echo_n "checking whether we are cross compiling... " >&6; }
3667 if test "$cross_compiling" != yes; then
3668   { { ac_try="$ac_link"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675   (eval "$ac_link") 2>&5
3676   ac_status=$?
3677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678   test $ac_status = 0; }
3679   if { ac_try='./conftest$ac_cv_exeext'
3680   { { case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689   test $ac_status = 0; }; }; then
3690     cross_compiling=no
3691   else
3692     if test "$cross_compiling" = maybe; then
3693         cross_compiling=yes
3694     else
3695         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot run C compiled programs.
3698 If you meant to cross compile, use \`--host'.
3699 See \`config.log' for more details" "$LINENO" 5; }
3700     fi
3701   fi
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3704 $as_echo "$cross_compiling" >&6; }
3705
3706 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3707 ac_clean_files=$ac_clean_files_save
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3709 $as_echo_n "checking for suffix of object files... " >&6; }
3710 if ${ac_cv_objext+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h.  */
3715
3716 int
3717 main ()
3718 {
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest.o conftest.obj
3725 if { { ac_try="$ac_compile"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732   (eval "$ac_compile") 2>&5
3733   ac_status=$?
3734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735   test $ac_status = 0; }; then :
3736   for ac_file in conftest.o conftest.obj conftest.*; do
3737   test -f "$ac_file" || continue;
3738   case $ac_file in
3739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3740     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3741        break;;
3742   esac
3743 done
3744 else
3745   $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot compute suffix of object files: cannot compile
3751 See \`config.log' for more details" "$LINENO" 5; }
3752 fi
3753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3756 $as_echo "$ac_cv_objext" >&6; }
3757 OBJEXT=$ac_cv_objext
3758 ac_objext=$OBJEXT
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3760 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3761 if ${ac_cv_c_compiler_gnu+:} false; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h.  */
3766
3767 int
3768 main ()
3769 {
3770 #ifndef __GNUC__
3771        choke me
3772 #endif
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779   ac_compiler_gnu=yes
3780 else
3781   ac_compiler_gnu=no
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3785
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3788 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3789 if test $ac_compiler_gnu = yes; then
3790   GCC=yes
3791 else
3792   GCC=
3793 fi
3794 ac_test_CFLAGS=${CFLAGS+set}
3795 ac_save_CFLAGS=$CFLAGS
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3797 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3798 if ${ac_cv_prog_cc_g+:} false; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   ac_save_c_werror_flag=$ac_c_werror_flag
3802    ac_c_werror_flag=yes
3803    ac_cv_prog_cc_g=no
3804    CFLAGS="-g"
3805    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h.  */
3807
3808 int
3809 main ()
3810 {
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817   ac_cv_prog_cc_g=yes
3818 else
3819   CFLAGS=""
3820       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822
3823 int
3824 main ()
3825 {
3826
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832
3833 else
3834   ac_c_werror_flag=$ac_save_c_werror_flag
3835          CFLAGS="-g"
3836          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848   ac_cv_prog_cc_g=yes
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855    ac_c_werror_flag=$ac_save_c_werror_flag
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3858 $as_echo "$ac_cv_prog_cc_g" >&6; }
3859 if test "$ac_test_CFLAGS" = set; then
3860   CFLAGS=$ac_save_CFLAGS
3861 elif test $ac_cv_prog_cc_g = yes; then
3862   if test "$GCC" = yes; then
3863     CFLAGS="-g -O2"
3864   else
3865     CFLAGS="-g"
3866   fi
3867 else
3868   if test "$GCC" = yes; then
3869     CFLAGS="-O2"
3870   else
3871     CFLAGS=
3872   fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3875 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3876 if ${ac_cv_prog_cc_c89+:} false; then :
3877   $as_echo_n "(cached) " >&6
3878 else
3879   ac_cv_prog_cc_c89=no
3880 ac_save_CC=$CC
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883 #include <stdarg.h>
3884 #include <stdio.h>
3885 #include <sys/types.h>
3886 #include <sys/stat.h>
3887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3888 struct buf { int x; };
3889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3890 static char *e (p, i)
3891      char **p;
3892      int i;
3893 {
3894   return p[i];
3895 }
3896 static char *f (char * (*g) (char **, int), char **p, ...)
3897 {
3898   char *s;
3899   va_list v;
3900   va_start (v,p);
3901   s = g (p, va_arg (v,int));
3902   va_end (v);
3903   return s;
3904 }
3905
3906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3907    function prototypes and stuff, but not '\xHH' hex character constants.
3908    These don't provoke an error unfortunately, instead are silently treated
3909    as 'x'.  The following induces an error, until -std is added to get
3910    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3911    array size at least.  It's necessary to write '\x00'==0 to get something
3912    that's true only with -std.  */
3913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3914
3915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3916    inside strings and character constants.  */
3917 #define FOO(x) 'x'
3918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3919
3920 int test (int i, double x);
3921 struct s1 {int (*f) (int a);};
3922 struct s2 {int (*f) (double a);};
3923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3924 int argc;
3925 char **argv;
3926 int
3927 main ()
3928 {
3929 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3935         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3936 do
3937   CC="$ac_save_CC $ac_arg"
3938   if ac_fn_c_try_compile "$LINENO"; then :
3939   ac_cv_prog_cc_c89=$ac_arg
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext
3942   test "x$ac_cv_prog_cc_c89" != "xno" && break
3943 done
3944 rm -f conftest.$ac_ext
3945 CC=$ac_save_CC
3946
3947 fi
3948 # AC_CACHE_VAL
3949 case "x$ac_cv_prog_cc_c89" in
3950   x)
3951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3952 $as_echo "none needed" >&6; } ;;
3953   xno)
3954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3955 $as_echo "unsupported" >&6; } ;;
3956   *)
3957     CC="$CC $ac_cv_prog_cc_c89"
3958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3960 esac
3961 if test "x$ac_cv_prog_cc_c89" != xno; then :
3962
3963 fi
3964
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970
3971 depcc="$CC"   am_compiler_list=
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979   # We make a subdir and do the tests there.  Otherwise we can end up
3980   # making bogus files that we don't know about and never remove.  For
3981   # instance it was reported that on HP-UX the gcc test will end up
3982   # making a dummy file named `D' -- because `-MD' means `put the output
3983   # in D'.
3984   mkdir conftest.dir
3985   # Copy depcomp to subdir because otherwise we won't find it if we're
3986   # using a relative directory.
3987   cp "$am_depcomp" conftest.dir
3988   cd conftest.dir
3989   # We will build objects and dependencies in a subdirectory because
3990   # it helps to detect inapplicable dependency modes.  For instance
3991   # both Tru64's cc and ICC support -MD to output dependencies as a
3992   # side effect of compilation, but ICC will put the dependencies in
3993   # the current directory while Tru64 will put them in the object
3994   # directory.
3995   mkdir sub
3996
3997   am_cv_CC_dependencies_compiler_type=none
3998   if test "$am_compiler_list" = ""; then
3999      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4000   fi
4001   am__universal=false
4002   case " $depcc " in #(
4003      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4004      esac
4005
4006   for depmode in $am_compiler_list; do
4007     # Setup a source with many dependencies, because some compilers
4008     # like to wrap large dependency lists on column 80 (with \), and
4009     # we should not choose a depcomp mode which is confused by this.
4010     #
4011     # We need to recreate these files for each test, as the compiler may
4012     # overwrite some of them when testing with obscure command lines.
4013     # This happens at least with the AIX C compiler.
4014     : > sub/conftest.c
4015     for i in 1 2 3 4 5 6; do
4016       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4018       # Solaris 8's {/usr,}/bin/sh.
4019       touch sub/conftst$i.h
4020     done
4021     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4022
4023     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4024     # mode.  It turns out that the SunPro C++ compiler does not properly
4025     # handle `-M -o', and we need to detect this.  Also, some Intel
4026     # versions had trouble with output in subdirs
4027     am__obj=sub/conftest.${OBJEXT-o}
4028     am__minus_obj="-o $am__obj"
4029     case $depmode in
4030     gcc)
4031       # This depmode causes a compiler race in universal mode.
4032       test "$am__universal" = false || continue
4033       ;;
4034     nosideeffect)
4035       # after this tag, mechanisms are not by side-effect, so they'll
4036       # only be used when explicitly requested
4037       if test "x$enable_dependency_tracking" = xyes; then
4038         continue
4039       else
4040         break
4041       fi
4042       ;;
4043     msvisualcpp | msvcmsys)
4044       # This compiler won't grok `-c -o', but also, the minuso test has
4045       # not run yet.  These depmodes are late enough in the game, and
4046       # so weak that their functioning should not be impacted.
4047       am__obj=conftest.${OBJEXT-o}
4048       am__minus_obj=
4049       ;;
4050     none) break ;;
4051     esac
4052     if depmode=$depmode \
4053        source=sub/conftest.c object=$am__obj \
4054        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4056          >/dev/null 2>conftest.err &&
4057        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4058        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4059        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4060        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4061       # icc doesn't choke on unknown options, it will just issue warnings
4062       # or remarks (even with -Werror).  So we grep stderr for any message
4063       # that says an option was ignored or not supported.
4064       # When given -MP, icc 7.0 and 7.1 complain thusly:
4065       #   icc: Command line warning: ignoring option '-M'; no argument required
4066       # The diagnosis changed in icc 8.0:
4067       #   icc: Command line remark: option '-MP' not supported
4068       if (grep 'ignoring option' conftest.err ||
4069           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4070         am_cv_CC_dependencies_compiler_type=$depmode
4071         break
4072       fi
4073     fi
4074   done
4075
4076   cd ..
4077   rm -rf conftest.dir
4078 else
4079   am_cv_CC_dependencies_compiler_type=none
4080 fi
4081
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4084 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4085 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4086
4087  if
4088   test "x$enable_dependency_tracking" != xno \
4089   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4090   am__fastdepCC_TRUE=
4091   am__fastdepCC_FALSE='#'
4092 else
4093   am__fastdepCC_TRUE='#'
4094   am__fastdepCC_FALSE=
4095 fi
4096
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4099 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4100 if ${ac_cv_path_SED+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4104      for ac_i in 1 2 3 4 5 6 7; do
4105        ac_script="$ac_script$as_nl$ac_script"
4106      done
4107      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4108      { ac_script=; unset ac_script;}
4109      if test -z "$SED"; then
4110   ac_path_SED_found=false
4111   # Loop through the user's path and test for each of PROGNAME-LIST
4112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115   IFS=$as_save_IFS
4116   test -z "$as_dir" && as_dir=.
4117     for ac_prog in sed gsed; do
4118     for ac_exec_ext in '' $ac_executable_extensions; do
4119       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4120       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4121 # Check for GNU ac_path_SED and select it if it is found.
4122   # Check for GNU $ac_path_SED
4123 case `"$ac_path_SED" --version 2>&1` in
4124 *GNU*)
4125   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4126 *)
4127   ac_count=0
4128   $as_echo_n 0123456789 >"conftest.in"
4129   while :
4130   do
4131     cat "conftest.in" "conftest.in" >"conftest.tmp"
4132     mv "conftest.tmp" "conftest.in"
4133     cp "conftest.in" "conftest.nl"
4134     $as_echo '' >> "conftest.nl"
4135     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137     as_fn_arith $ac_count + 1 && ac_count=$as_val
4138     if test $ac_count -gt ${ac_path_SED_max-0}; then
4139       # Best one so far, save it but keep looking for a better one
4140       ac_cv_path_SED="$ac_path_SED"
4141       ac_path_SED_max=$ac_count
4142     fi
4143     # 10*(2^10) chars as input seems more than enough
4144     test $ac_count -gt 10 && break
4145   done
4146   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4147 esac
4148
4149       $ac_path_SED_found && break 3
4150     done
4151   done
4152   done
4153 IFS=$as_save_IFS
4154   if test -z "$ac_cv_path_SED"; then
4155     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4156   fi
4157 else
4158   ac_cv_path_SED=$SED
4159 fi
4160
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4163 $as_echo "$ac_cv_path_SED" >&6; }
4164  SED="$ac_cv_path_SED"
4165   rm -f conftest.sed
4166
4167 test -z "$SED" && SED=sed
4168 Xsed="$SED -e 1s/^X//"
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4181 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4182 if ${ac_cv_path_GREP+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   if test -z "$GREP"; then
4186   ac_path_GREP_found=false
4187   # Loop through the user's path and test for each of PROGNAME-LIST
4188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193     for ac_prog in grep ggrep; do
4194     for ac_exec_ext in '' $ac_executable_extensions; do
4195       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4196       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4197 # Check for GNU ac_path_GREP and select it if it is found.
4198   # Check for GNU $ac_path_GREP
4199 case `"$ac_path_GREP" --version 2>&1` in
4200 *GNU*)
4201   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4202 *)
4203   ac_count=0
4204   $as_echo_n 0123456789 >"conftest.in"
4205   while :
4206   do
4207     cat "conftest.in" "conftest.in" >"conftest.tmp"
4208     mv "conftest.tmp" "conftest.in"
4209     cp "conftest.in" "conftest.nl"
4210     $as_echo 'GREP' >> "conftest.nl"
4211     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4212     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4213     as_fn_arith $ac_count + 1 && ac_count=$as_val
4214     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4215       # Best one so far, save it but keep looking for a better one
4216       ac_cv_path_GREP="$ac_path_GREP"
4217       ac_path_GREP_max=$ac_count
4218     fi
4219     # 10*(2^10) chars as input seems more than enough
4220     test $ac_count -gt 10 && break
4221   done
4222   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223 esac
4224
4225       $ac_path_GREP_found && break 3
4226     done
4227   done
4228   done
4229 IFS=$as_save_IFS
4230   if test -z "$ac_cv_path_GREP"; then
4231     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4232   fi
4233 else
4234   ac_cv_path_GREP=$GREP
4235 fi
4236
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4239 $as_echo "$ac_cv_path_GREP" >&6; }
4240  GREP="$ac_cv_path_GREP"
4241
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4244 $as_echo_n "checking for egrep... " >&6; }
4245 if ${ac_cv_path_EGREP+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4249    then ac_cv_path_EGREP="$GREP -E"
4250    else
4251      if test -z "$EGREP"; then
4252   ac_path_EGREP_found=false
4253   # Loop through the user's path and test for each of PROGNAME-LIST
4254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259     for ac_prog in egrep; do
4260     for ac_exec_ext in '' $ac_executable_extensions; do
4261       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4262       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4263 # Check for GNU ac_path_EGREP and select it if it is found.
4264   # Check for GNU $ac_path_EGREP
4265 case `"$ac_path_EGREP" --version 2>&1` in
4266 *GNU*)
4267   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4268 *)
4269   ac_count=0
4270   $as_echo_n 0123456789 >"conftest.in"
4271   while :
4272   do
4273     cat "conftest.in" "conftest.in" >"conftest.tmp"
4274     mv "conftest.tmp" "conftest.in"
4275     cp "conftest.in" "conftest.nl"
4276     $as_echo 'EGREP' >> "conftest.nl"
4277     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279     as_fn_arith $ac_count + 1 && ac_count=$as_val
4280     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4281       # Best one so far, save it but keep looking for a better one
4282       ac_cv_path_EGREP="$ac_path_EGREP"
4283       ac_path_EGREP_max=$ac_count
4284     fi
4285     # 10*(2^10) chars as input seems more than enough
4286     test $ac_count -gt 10 && break
4287   done
4288   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 esac
4290
4291       $ac_path_EGREP_found && break 3
4292     done
4293   done
4294   done
4295 IFS=$as_save_IFS
4296   if test -z "$ac_cv_path_EGREP"; then
4297     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298   fi
4299 else
4300   ac_cv_path_EGREP=$EGREP
4301 fi
4302
4303    fi
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4306 $as_echo "$ac_cv_path_EGREP" >&6; }
4307  EGREP="$ac_cv_path_EGREP"
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4311 $as_echo_n "checking for fgrep... " >&6; }
4312 if ${ac_cv_path_FGREP+:} false; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4316    then ac_cv_path_FGREP="$GREP -F"
4317    else
4318      if test -z "$FGREP"; then
4319   ac_path_FGREP_found=false
4320   # Loop through the user's path and test for each of PROGNAME-LIST
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326     for ac_prog in fgrep; do
4327     for ac_exec_ext in '' $ac_executable_extensions; do
4328       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4329       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4330 # Check for GNU ac_path_FGREP and select it if it is found.
4331   # Check for GNU $ac_path_FGREP
4332 case `"$ac_path_FGREP" --version 2>&1` in
4333 *GNU*)
4334   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4335 *)
4336   ac_count=0
4337   $as_echo_n 0123456789 >"conftest.in"
4338   while :
4339   do
4340     cat "conftest.in" "conftest.in" >"conftest.tmp"
4341     mv "conftest.tmp" "conftest.in"
4342     cp "conftest.in" "conftest.nl"
4343     $as_echo 'FGREP' >> "conftest.nl"
4344     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346     as_fn_arith $ac_count + 1 && ac_count=$as_val
4347     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4348       # Best one so far, save it but keep looking for a better one
4349       ac_cv_path_FGREP="$ac_path_FGREP"
4350       ac_path_FGREP_max=$ac_count
4351     fi
4352     # 10*(2^10) chars as input seems more than enough
4353     test $ac_count -gt 10 && break
4354   done
4355   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356 esac
4357
4358       $ac_path_FGREP_found && break 3
4359     done
4360   done
4361   done
4362 IFS=$as_save_IFS
4363   if test -z "$ac_cv_path_FGREP"; then
4364     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365   fi
4366 else
4367   ac_cv_path_FGREP=$FGREP
4368 fi
4369
4370    fi
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4373 $as_echo "$ac_cv_path_FGREP" >&6; }
4374  FGREP="$ac_cv_path_FGREP"
4375
4376
4377 test -z "$GREP" && GREP=grep
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397 # Check whether --with-gnu-ld was given.
4398 if test "${with_gnu_ld+set}" = set; then :
4399   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4400 else
4401   with_gnu_ld=no
4402 fi
4403
4404 ac_prog=ld
4405 if test "$GCC" = yes; then
4406   # Check if gcc -print-prog-name=ld gives a path.
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4408 $as_echo_n "checking for ld used by $CC... " >&6; }
4409   case $host in
4410   *-*-mingw*)
4411     # gcc leaves a trailing carriage return which upsets mingw
4412     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4413   *)
4414     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4415   esac
4416   case $ac_prog in
4417     # Accept absolute paths.
4418     [\\/]* | ?:[\\/]*)
4419       re_direlt='/[^/][^/]*/\.\./'
4420       # Canonicalize the pathname of ld
4421       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4422       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4423         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4424       done
4425       test -z "$LD" && LD="$ac_prog"
4426       ;;
4427   "")
4428     # If it fails, then pretend we aren't using GCC.
4429     ac_prog=ld
4430     ;;
4431   *)
4432     # If it is relative, then search for the first ld in PATH.
4433     with_gnu_ld=unknown
4434     ;;
4435   esac
4436 elif test "$with_gnu_ld" = yes; then
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4438 $as_echo_n "checking for GNU ld... " >&6; }
4439 else
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4441 $as_echo_n "checking for non-GNU ld... " >&6; }
4442 fi
4443 if ${lt_cv_path_LD+:} false; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -z "$LD"; then
4447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4448   for ac_dir in $PATH; do
4449     IFS="$lt_save_ifs"
4450     test -z "$ac_dir" && ac_dir=.
4451     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4452       lt_cv_path_LD="$ac_dir/$ac_prog"
4453       # Check to see if the program is GNU ld.  I'd rather use --version,
4454       # but apparently some variants of GNU ld only accept -v.
4455       # Break only if it was the GNU/non-GNU ld that we prefer.
4456       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4457       *GNU* | *'with BFD'*)
4458         test "$with_gnu_ld" != no && break
4459         ;;
4460       *)
4461         test "$with_gnu_ld" != yes && break
4462         ;;
4463       esac
4464     fi
4465   done
4466   IFS="$lt_save_ifs"
4467 else
4468   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4469 fi
4470 fi
4471
4472 LD="$lt_cv_path_LD"
4473 if test -n "$LD"; then
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4475 $as_echo "$LD" >&6; }
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4482 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4483 if ${lt_cv_prog_gnu_ld+:} false; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4487 case `$LD -v 2>&1 </dev/null` in
4488 *GNU* | *'with BFD'*)
4489   lt_cv_prog_gnu_ld=yes
4490   ;;
4491 *)
4492   lt_cv_prog_gnu_ld=no
4493   ;;
4494 esac
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4497 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4498 with_gnu_ld=$lt_cv_prog_gnu_ld
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4509 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4510 if ${lt_cv_path_NM+:} false; then :
4511   $as_echo_n "(cached) " >&6
4512 else
4513   if test -n "$NM"; then
4514   # Let the user override the test.
4515   lt_cv_path_NM="$NM"
4516 else
4517   lt_nm_to_check="${ac_tool_prefix}nm"
4518   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4519     lt_nm_to_check="$lt_nm_to_check nm"
4520   fi
4521   for lt_tmp_nm in $lt_nm_to_check; do
4522     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4523     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4524       IFS="$lt_save_ifs"
4525       test -z "$ac_dir" && ac_dir=.
4526       tmp_nm="$ac_dir/$lt_tmp_nm"
4527       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4528         # Check to see if the nm accepts a BSD-compat flag.
4529         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4530         #   nm: unknown option "B" ignored
4531         # Tru64's nm complains that /dev/null is an invalid object file
4532         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4533         */dev/null* | *'Invalid file or object type'*)
4534           lt_cv_path_NM="$tmp_nm -B"
4535           break
4536           ;;
4537         *)
4538           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4539           */dev/null*)
4540             lt_cv_path_NM="$tmp_nm -p"
4541             break
4542             ;;
4543           *)
4544             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4545             continue # so that we can try to find one that supports BSD flags
4546             ;;
4547           esac
4548           ;;
4549         esac
4550       fi
4551     done
4552     IFS="$lt_save_ifs"
4553   done
4554   : ${lt_cv_path_NM=no}
4555 fi
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4558 $as_echo "$lt_cv_path_NM" >&6; }
4559 if test "$lt_cv_path_NM" != "no"; then
4560   NM="$lt_cv_path_NM"
4561 else
4562   # Didn't find any BSD compatible name lister, look for dumpbin.
4563   if test -n "$DUMPBIN"; then :
4564     # Let the user override the test.
4565   else
4566     if test -n "$ac_tool_prefix"; then
4567   for ac_prog in dumpbin "link -dump"
4568   do
4569     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_DUMPBIN+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   if test -n "$DUMPBIN"; then
4577   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584     for ac_exec_ext in '' $ac_executable_extensions; do
4585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591   done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 DUMPBIN=$ac_cv_prog_DUMPBIN
4597 if test -n "$DUMPBIN"; then
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4599 $as_echo "$DUMPBIN" >&6; }
4600 else
4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606     test -n "$DUMPBIN" && break
4607   done
4608 fi
4609 if test -z "$DUMPBIN"; then
4610   ac_ct_DUMPBIN=$DUMPBIN
4611   for ac_prog in dumpbin "link -dump"
4612 do
4613   # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -n "$ac_ct_DUMPBIN"; then
4621   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628     for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635   done
4636 IFS=$as_save_IFS
4637
4638 fi
4639 fi
4640 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4641 if test -n "$ac_ct_DUMPBIN"; then
4642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4643 $as_echo "$ac_ct_DUMPBIN" >&6; }
4644 else
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648
4649
4650   test -n "$ac_ct_DUMPBIN" && break
4651 done
4652
4653   if test "x$ac_ct_DUMPBIN" = x; then
4654     DUMPBIN=":"
4655   else
4656     case $cross_compiling:$ac_tool_warned in
4657 yes:)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4660 ac_tool_warned=yes ;;
4661 esac
4662     DUMPBIN=$ac_ct_DUMPBIN
4663   fi
4664 fi
4665
4666     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4667     *COFF*)
4668       DUMPBIN="$DUMPBIN -symbols"
4669       ;;
4670     *)
4671       DUMPBIN=:
4672       ;;
4673     esac
4674   fi
4675
4676   if test "$DUMPBIN" != ":"; then
4677     NM="$DUMPBIN"
4678   fi
4679 fi
4680 test -z "$NM" && NM=nm
4681
4682
4683
4684
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4688 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4689 if ${lt_cv_nm_interface+:} false; then :
4690   $as_echo_n "(cached) " >&6
4691 else
4692   lt_cv_nm_interface="BSD nm"
4693   echo "int some_variable = 0;" > conftest.$ac_ext
4694   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4695   (eval "$ac_compile" 2>conftest.err)
4696   cat conftest.err >&5
4697   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4698   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4699   cat conftest.err >&5
4700   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4701   cat conftest.out >&5
4702   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4703     lt_cv_nm_interface="MS dumpbin"
4704   fi
4705   rm -f conftest*
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4708 $as_echo "$lt_cv_nm_interface" >&6; }
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4711 $as_echo_n "checking whether ln -s works... " >&6; }
4712 LN_S=$as_ln_s
4713 if test "$LN_S" = "ln -s"; then
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4715 $as_echo "yes" >&6; }
4716 else
4717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4718 $as_echo "no, using $LN_S" >&6; }
4719 fi
4720
4721 # find the maximum length of command line arguments
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4723 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4724 if ${lt_cv_sys_max_cmd_len+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727     i=0
4728   teststring="ABCD"
4729
4730   case $build_os in
4731   msdosdjgpp*)
4732     # On DJGPP, this test can blow up pretty badly due to problems in libc
4733     # (any single argument exceeding 2000 bytes causes a buffer overrun
4734     # during glob expansion).  Even if it were fixed, the result of this
4735     # check would be larger than it should be.
4736     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4737     ;;
4738
4739   gnu*)
4740     # Under GNU Hurd, this test is not required because there is
4741     # no limit to the length of command line arguments.
4742     # Libtool will interpret -1 as no limit whatsoever
4743     lt_cv_sys_max_cmd_len=-1;
4744     ;;
4745
4746   cygwin* | mingw* | cegcc*)
4747     # On Win9x/ME, this test blows up -- it succeeds, but takes
4748     # about 5 minutes as the teststring grows exponentially.
4749     # Worse, since 9x/ME are not pre-emptively multitasking,
4750     # you end up with a "frozen" computer, even though with patience
4751     # the test eventually succeeds (with a max line length of 256k).
4752     # Instead, let's just punt: use the minimum linelength reported by
4753     # all of the supported platforms: 8192 (on NT/2K/XP).
4754     lt_cv_sys_max_cmd_len=8192;
4755     ;;
4756
4757   mint*)
4758     # On MiNT this can take a long time and run out of memory.
4759     lt_cv_sys_max_cmd_len=8192;
4760     ;;
4761
4762   amigaos*)
4763     # On AmigaOS with pdksh, this test takes hours, literally.
4764     # So we just punt and use a minimum line length of 8192.
4765     lt_cv_sys_max_cmd_len=8192;
4766     ;;
4767
4768   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4769     # This has been around since 386BSD, at least.  Likely further.
4770     if test -x /sbin/sysctl; then
4771       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4772     elif test -x /usr/sbin/sysctl; then
4773       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4774     else
4775       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4776     fi
4777     # And add a safety zone
4778     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4779     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4780     ;;
4781
4782   interix*)
4783     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4784     lt_cv_sys_max_cmd_len=196608
4785     ;;
4786
4787   osf*)
4788     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4789     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4790     # nice to cause kernel panics so lets avoid the loop below.
4791     # First set a reasonable default.
4792     lt_cv_sys_max_cmd_len=16384
4793     #
4794     if test -x /sbin/sysconfig; then
4795       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4796         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4797       esac
4798     fi
4799     ;;
4800   sco3.2v5*)
4801     lt_cv_sys_max_cmd_len=102400
4802     ;;
4803   sysv5* | sco5v6* | sysv4.2uw2*)
4804     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4805     if test -n "$kargmax"; then
4806       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4807     else
4808       lt_cv_sys_max_cmd_len=32768
4809     fi
4810     ;;
4811   *)
4812     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4813     if test -n "$lt_cv_sys_max_cmd_len"; then
4814       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4815       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4816     else
4817       # Make teststring a little bigger before we do anything with it.
4818       # a 1K string should be a reasonable start.
4819       for i in 1 2 3 4 5 6 7 8 ; do
4820         teststring=$teststring$teststring
4821       done
4822       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4823       # If test is not a shell built-in, we'll probably end up computing a
4824       # maximum length that is only half of the actual maximum length, but
4825       # we can't tell.
4826       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4827                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4828               test $i != 17 # 1/2 MB should be enough
4829       do
4830         i=`expr $i + 1`
4831         teststring=$teststring$teststring
4832       done
4833       # Only check the string length outside the loop.
4834       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4835       teststring=
4836       # Add a significant safety factor because C++ compilers can tack on
4837       # massive amounts of additional arguments before passing them to the
4838       # linker.  It appears as though 1/2 is a usable value.
4839       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4840     fi
4841     ;;
4842   esac
4843
4844 fi
4845
4846 if test -n $lt_cv_sys_max_cmd_len ; then
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4848 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4849 else
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4851 $as_echo "none" >&6; }
4852 fi
4853 max_cmd_len=$lt_cv_sys_max_cmd_len
4854
4855
4856
4857
4858
4859
4860 : ${CP="cp -f"}
4861 : ${MV="mv -f"}
4862 : ${RM="rm -f"}
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4865 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4866 # Try some XSI features
4867 xsi_shell=no
4868 ( _lt_dummy="a/b/c"
4869   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4870       = c,a/b,b/c, \
4871     && eval 'test $(( 1 + 1 )) -eq 2 \
4872     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4873   && xsi_shell=yes
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4875 $as_echo "$xsi_shell" >&6; }
4876
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4879 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4880 lt_shell_append=no
4881 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4882     >/dev/null 2>&1 \
4883   && lt_shell_append=yes
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4885 $as_echo "$lt_shell_append" >&6; }
4886
4887
4888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4889   lt_unset=unset
4890 else
4891   lt_unset=false
4892 fi
4893
4894
4895
4896
4897
4898 # test EBCDIC or ASCII
4899 case `echo X|tr X '\101'` in
4900  A) # ASCII based system
4901     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4902   lt_SP2NL='tr \040 \012'
4903   lt_NL2SP='tr \015\012 \040\040'
4904   ;;
4905  *) # EBCDIC based system
4906   lt_SP2NL='tr \100 \n'
4907   lt_NL2SP='tr \r\n \100\100'
4908   ;;
4909 esac
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4920 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4921 if ${lt_cv_to_host_file_cmd+:} false; then :
4922   $as_echo_n "(cached) " >&6
4923 else
4924   case $host in
4925   *-*-mingw* )
4926     case $build in
4927       *-*-mingw* ) # actually msys
4928         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4929         ;;
4930       *-*-cygwin* )
4931         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4932         ;;
4933       * ) # otherwise, assume *nix
4934         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4935         ;;
4936     esac
4937     ;;
4938   *-*-cygwin* )
4939     case $build in
4940       *-*-mingw* ) # actually msys
4941         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4942         ;;
4943       *-*-cygwin* )
4944         lt_cv_to_host_file_cmd=func_convert_file_noop
4945         ;;
4946       * ) # otherwise, assume *nix
4947         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4948         ;;
4949     esac
4950     ;;
4951   * ) # unhandled hosts (and "normal" native builds)
4952     lt_cv_to_host_file_cmd=func_convert_file_noop
4953     ;;
4954 esac
4955
4956 fi
4957
4958 to_host_file_cmd=$lt_cv_to_host_file_cmd
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4960 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4961
4962
4963
4964
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4967 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4968 if ${lt_cv_to_tool_file_cmd+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   #assume ordinary cross tools, or native build.
4972 lt_cv_to_tool_file_cmd=func_convert_file_noop
4973 case $host in
4974   *-*-mingw* )
4975     case $build in
4976       *-*-mingw* ) # actually msys
4977         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4978         ;;
4979     esac
4980     ;;
4981 esac
4982
4983 fi
4984
4985 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4987 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4988
4989
4990
4991
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4995 if ${lt_cv_ld_reload_flag+:} false; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   lt_cv_ld_reload_flag='-r'
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5002 reload_flag=$lt_cv_ld_reload_flag
5003 case $reload_flag in
5004 "" | " "*) ;;
5005 *) reload_flag=" $reload_flag" ;;
5006 esac
5007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5008 case $host_os in
5009   cygwin* | mingw* | pw32* | cegcc*)
5010     if test "$GCC" != yes; then
5011       reload_cmds=false
5012     fi
5013     ;;
5014   darwin*)
5015     if test "$GCC" = yes; then
5016       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5017     else
5018       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5019     fi
5020     ;;
5021 esac
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 if test -n "$ac_tool_prefix"; then
5032   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_OBJDUMP+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   if test -n "$OBJDUMP"; then
5040   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_exec_ext in '' $ac_executable_extensions; do
5048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054   done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 OBJDUMP=$ac_cv_prog_OBJDUMP
5060 if test -n "$OBJDUMP"; then
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5062 $as_echo "$OBJDUMP" >&6; }
5063 else
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 fi
5070 if test -z "$ac_cv_prog_OBJDUMP"; then
5071   ac_ct_OBJDUMP=$OBJDUMP
5072   # Extract the first word of "objdump", so it can be a program name with args.
5073 set dummy objdump; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$ac_ct_OBJDUMP"; then
5080   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5100 if test -n "$ac_ct_OBJDUMP"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5102 $as_echo "$ac_ct_OBJDUMP" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108   if test "x$ac_ct_OBJDUMP" = x; then
5109     OBJDUMP="false"
5110   else
5111     case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117     OBJDUMP=$ac_ct_OBJDUMP
5118   fi
5119 else
5120   OBJDUMP="$ac_cv_prog_OBJDUMP"
5121 fi
5122
5123 test -z "$OBJDUMP" && OBJDUMP=objdump
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5134 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5135 if ${lt_cv_deplibs_check_method+:} false; then :
5136   $as_echo_n "(cached) " >&6
5137 else
5138   lt_cv_file_magic_cmd='$MAGIC_CMD'
5139 lt_cv_file_magic_test_file=
5140 lt_cv_deplibs_check_method='unknown'
5141 # Need to set the preceding variable on all platforms that support
5142 # interlibrary dependencies.
5143 # 'none' -- dependencies not supported.
5144 # `unknown' -- same as none, but documents that we really don't know.
5145 # 'pass_all' -- all dependencies passed with no checks.
5146 # 'test_compile' -- check by making test program.
5147 # 'file_magic [[regex]]' -- check by looking for files in library path
5148 # which responds to the $file_magic_cmd with a given extended regex.
5149 # If you have `file' or equivalent on your system and you're not sure
5150 # whether `pass_all' will *always* work, you probably want this one.
5151
5152 case $host_os in
5153 aix[4-9]*)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 beos*)
5158   lt_cv_deplibs_check_method=pass_all
5159   ;;
5160
5161 bsdi[45]*)
5162   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5163   lt_cv_file_magic_cmd='/usr/bin/file -L'
5164   lt_cv_file_magic_test_file=/shlib/libc.so
5165   ;;
5166
5167 cygwin*)
5168   # func_win32_libid is a shell function defined in ltmain.sh
5169   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5170   lt_cv_file_magic_cmd='func_win32_libid'
5171   ;;
5172
5173 mingw* | pw32*)
5174   # Base MSYS/MinGW do not provide the 'file' command needed by
5175   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5176   # unless we find 'file', for example because we are cross-compiling.
5177   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5178   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5179     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5180     lt_cv_file_magic_cmd='func_win32_libid'
5181   else
5182     # Keep this pattern in sync with the one in func_win32_libid.
5183     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5184     lt_cv_file_magic_cmd='$OBJDUMP -f'
5185   fi
5186   ;;
5187
5188 cegcc*)
5189   # use the weaker test based on 'objdump'. See mingw*.
5190   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5191   lt_cv_file_magic_cmd='$OBJDUMP -f'
5192   ;;
5193
5194 darwin* | rhapsody*)
5195   lt_cv_deplibs_check_method=pass_all
5196   ;;
5197
5198 freebsd* | dragonfly*)
5199   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5200     case $host_cpu in
5201     i*86 )
5202       # Not sure whether the presence of OpenBSD here was a mistake.
5203       # Let's accept both of them until this is cleared up.
5204       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5205       lt_cv_file_magic_cmd=/usr/bin/file
5206       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5207       ;;
5208     esac
5209   else
5210     lt_cv_deplibs_check_method=pass_all
5211   fi
5212   ;;
5213
5214 gnu*)
5215   lt_cv_deplibs_check_method=pass_all
5216   ;;
5217
5218 haiku*)
5219   lt_cv_deplibs_check_method=pass_all
5220   ;;
5221
5222 hpux10.20* | hpux11*)
5223   lt_cv_file_magic_cmd=/usr/bin/file
5224   case $host_cpu in
5225   ia64*)
5226     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5227     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5228     ;;
5229   hppa*64*)
5230     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]'
5231     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5232     ;;
5233   *)
5234     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5235     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5236     ;;
5237   esac
5238   ;;
5239
5240 interix[3-9]*)
5241   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5242   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5243   ;;
5244
5245 irix5* | irix6* | nonstopux*)
5246   case $LD in
5247   *-32|*"-32 ") libmagic=32-bit;;
5248   *-n32|*"-n32 ") libmagic=N32;;
5249   *-64|*"-64 ") libmagic=64-bit;;
5250   *) libmagic=never-match;;
5251   esac
5252   lt_cv_deplibs_check_method=pass_all
5253   ;;
5254
5255 # This must be Linux ELF.
5256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5257   lt_cv_deplibs_check_method=pass_all
5258   ;;
5259
5260 netbsd*)
5261   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5262     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5263   else
5264     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5265   fi
5266   ;;
5267
5268 newos6*)
5269   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5270   lt_cv_file_magic_cmd=/usr/bin/file
5271   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5272   ;;
5273
5274 *nto* | *qnx*)
5275   lt_cv_deplibs_check_method=pass_all
5276   ;;
5277
5278 openbsd*)
5279   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5280     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5281   else
5282     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5283   fi
5284   ;;
5285
5286 osf3* | osf4* | osf5*)
5287   lt_cv_deplibs_check_method=pass_all
5288   ;;
5289
5290 rdos*)
5291   lt_cv_deplibs_check_method=pass_all
5292   ;;
5293
5294 solaris*)
5295   lt_cv_deplibs_check_method=pass_all
5296   ;;
5297
5298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5299   lt_cv_deplibs_check_method=pass_all
5300   ;;
5301
5302 sysv4 | sysv4.3*)
5303   case $host_vendor in
5304   motorola)
5305     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]'
5306     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5307     ;;
5308   ncr)
5309     lt_cv_deplibs_check_method=pass_all
5310     ;;
5311   sequent)
5312     lt_cv_file_magic_cmd='/bin/file'
5313     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5314     ;;
5315   sni)
5316     lt_cv_file_magic_cmd='/bin/file'
5317     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5318     lt_cv_file_magic_test_file=/lib/libc.so
5319     ;;
5320   siemens)
5321     lt_cv_deplibs_check_method=pass_all
5322     ;;
5323   pc)
5324     lt_cv_deplibs_check_method=pass_all
5325     ;;
5326   esac
5327   ;;
5328
5329 tpf*)
5330   lt_cv_deplibs_check_method=pass_all
5331   ;;
5332 esac
5333
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5336 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5337
5338 file_magic_glob=
5339 want_nocaseglob=no
5340 if test "$build" = "$host"; then
5341   case $host_os in
5342   mingw* | pw32*)
5343     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5344       want_nocaseglob=yes
5345     else
5346       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5347     fi
5348     ;;
5349   esac
5350 fi
5351
5352 file_magic_cmd=$lt_cv_file_magic_cmd
5353 deplibs_check_method=$lt_cv_deplibs_check_method
5354 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 if test -n "$ac_tool_prefix"; then
5378   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5379 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_DLLTOOL+:} false; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   if test -n "$DLLTOOL"; then
5386   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 DLLTOOL=$ac_cv_prog_DLLTOOL
5406 if test -n "$DLLTOOL"; then
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5408 $as_echo "$DLLTOOL" >&6; }
5409 else
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 fi
5416 if test -z "$ac_cv_prog_DLLTOOL"; then
5417   ac_ct_DLLTOOL=$DLLTOOL
5418   # Extract the first word of "dlltool", so it can be a program name with args.
5419 set dummy dlltool; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   if test -n "$ac_ct_DLLTOOL"; then
5426   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437     break 2
5438   fi
5439 done
5440   done
5441 IFS=$as_save_IFS
5442
5443 fi
5444 fi
5445 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5446 if test -n "$ac_ct_DLLTOOL"; then
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5448 $as_echo "$ac_ct_DLLTOOL" >&6; }
5449 else
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454   if test "x$ac_ct_DLLTOOL" = x; then
5455     DLLTOOL="false"
5456   else
5457     case $cross_compiling:$ac_tool_warned in
5458 yes:)
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463     DLLTOOL=$ac_ct_DLLTOOL
5464   fi
5465 else
5466   DLLTOOL="$ac_cv_prog_DLLTOOL"
5467 fi
5468
5469 test -z "$DLLTOOL" && DLLTOOL=dlltool
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5481 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5482 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   lt_cv_sharedlib_from_linklib_cmd='unknown'
5486
5487 case $host_os in
5488 cygwin* | mingw* | pw32* | cegcc*)
5489   # two different shell functions defined in ltmain.sh
5490   # decide which to use based on capabilities of $DLLTOOL
5491   case `$DLLTOOL --help 2>&1` in
5492   *--identify-strict*)
5493     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5494     ;;
5495   *)
5496     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5497     ;;
5498   esac
5499   ;;
5500 *)
5501   # fallback: assume linklib IS sharedlib
5502   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5503   ;;
5504 esac
5505
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5508 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5509 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5510 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5511
5512
5513
5514
5515
5516
5517
5518
5519 if test -n "$ac_tool_prefix"; then
5520   for ac_prog in ar
5521   do
5522     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_AR+:} false; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   if test -n "$AR"; then
5530   ac_cv_prog_AR="$AR" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547 fi
5548 fi
5549 AR=$ac_cv_prog_AR
5550 if test -n "$AR"; then
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5552 $as_echo "$AR" >&6; }
5553 else
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5557
5558
5559     test -n "$AR" && break
5560   done
5561 fi
5562 if test -z "$AR"; then
5563   ac_ct_AR=$AR
5564   for ac_prog in ar
5565 do
5566   # Extract the first word of "$ac_prog", so it can be a program name with args.
5567 set dummy $ac_prog; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   if test -n "$ac_ct_AR"; then
5574   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581     for ac_exec_ext in '' $ac_executable_extensions; do
5582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583     ac_cv_prog_ac_ct_AR="$ac_prog"
5584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585     break 2
5586   fi
5587 done
5588   done
5589 IFS=$as_save_IFS
5590
5591 fi
5592 fi
5593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5594 if test -n "$ac_ct_AR"; then
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5596 $as_echo "$ac_ct_AR" >&6; }
5597 else
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603   test -n "$ac_ct_AR" && break
5604 done
5605
5606   if test "x$ac_ct_AR" = x; then
5607     AR="false"
5608   else
5609     case $cross_compiling:$ac_tool_warned in
5610 yes:)
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615     AR=$ac_ct_AR
5616   fi
5617 fi
5618
5619 : ${AR=ar}
5620 : ${AR_FLAGS=cru}
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5633 $as_echo_n "checking for archiver @FILE support... " >&6; }
5634 if ${lt_cv_ar_at_file+:} false; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   lt_cv_ar_at_file=no
5638    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640
5641 int
5642 main ()
5643 {
5644
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650   echo conftest.$ac_objext > conftest.lst
5651       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5652       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5653   (eval $lt_ar_try) 2>&5
5654   ac_status=$?
5655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656   test $ac_status = 0; }
5657       if test "$ac_status" -eq 0; then
5658         # Ensure the archiver fails upon bogus file names.
5659         rm -f conftest.$ac_objext libconftest.a
5660         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5661   (eval $lt_ar_try) 2>&5
5662   ac_status=$?
5663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664   test $ac_status = 0; }
5665         if test "$ac_status" -ne 0; then
5666           lt_cv_ar_at_file=@
5667         fi
5668       fi
5669       rm -f conftest.* libconftest.a
5670
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5676 $as_echo "$lt_cv_ar_at_file" >&6; }
5677
5678 if test "x$lt_cv_ar_at_file" = xno; then
5679   archiver_list_spec=
5680 else
5681   archiver_list_spec=$lt_cv_ar_at_file
5682 fi
5683
5684
5685
5686
5687
5688
5689
5690 if test -n "$ac_tool_prefix"; then
5691   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}strip; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_STRIP+:} false; then :
5696   $as_echo_n "(cached) " >&6
5697 else
5698   if test -n "$STRIP"; then
5699   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 STRIP=$ac_cv_prog_STRIP
5719 if test -n "$STRIP"; then
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5721 $as_echo "$STRIP" >&6; }
5722 else
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 fi
5729 if test -z "$ac_cv_prog_STRIP"; then
5730   ac_ct_STRIP=$STRIP
5731   # Extract the first word of "strip", so it can be a program name with args.
5732 set dummy strip; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   if test -n "$ac_ct_STRIP"; then
5739   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746     for ac_exec_ext in '' $ac_executable_extensions; do
5747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748     ac_cv_prog_ac_ct_STRIP="strip"
5749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753   done
5754 IFS=$as_save_IFS
5755
5756 fi
5757 fi
5758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5759 if test -n "$ac_ct_STRIP"; then
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5761 $as_echo "$ac_ct_STRIP" >&6; }
5762 else
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5765 fi
5766
5767   if test "x$ac_ct_STRIP" = x; then
5768     STRIP=":"
5769   else
5770     case $cross_compiling:$ac_tool_warned in
5771 yes:)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5775 esac
5776     STRIP=$ac_ct_STRIP
5777   fi
5778 else
5779   STRIP="$ac_cv_prog_STRIP"
5780 fi
5781
5782 test -z "$STRIP" && STRIP=:
5783
5784
5785
5786
5787
5788
5789 if test -n "$ac_tool_prefix"; then
5790   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_RANLIB+:} false; then :
5795   $as_echo_n "(cached) " >&6
5796 else
5797   if test -n "$RANLIB"; then
5798   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805     for ac_exec_ext in '' $ac_executable_extensions; do
5806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812   done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 RANLIB=$ac_cv_prog_RANLIB
5818 if test -n "$RANLIB"; then
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5820 $as_echo "$RANLIB" >&6; }
5821 else
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826
5827 fi
5828 if test -z "$ac_cv_prog_RANLIB"; then
5829   ac_ct_RANLIB=$RANLIB
5830   # Extract the first word of "ranlib", so it can be a program name with args.
5831 set dummy ranlib; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   if test -n "$ac_ct_RANLIB"; then
5838   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_prog_ac_ct_RANLIB="ranlib"
5848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852   done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5858 if test -n "$ac_ct_RANLIB"; then
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5860 $as_echo "$ac_ct_RANLIB" >&6; }
5861 else
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866   if test "x$ac_ct_RANLIB" = x; then
5867     RANLIB=":"
5868   else
5869     case $cross_compiling:$ac_tool_warned in
5870 yes:)
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873 ac_tool_warned=yes ;;
5874 esac
5875     RANLIB=$ac_ct_RANLIB
5876   fi
5877 else
5878   RANLIB="$ac_cv_prog_RANLIB"
5879 fi
5880
5881 test -z "$RANLIB" && RANLIB=:
5882
5883
5884
5885
5886
5887
5888 # Determine commands to create old-style static archives.
5889 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5890 old_postinstall_cmds='chmod 644 $oldlib'
5891 old_postuninstall_cmds=
5892
5893 if test -n "$RANLIB"; then
5894   case $host_os in
5895   openbsd*)
5896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5897     ;;
5898   *)
5899     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5900     ;;
5901   esac
5902   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5903 fi
5904
5905 case $host_os in
5906   darwin*)
5907     lock_old_archive_extraction=yes ;;
5908   *)
5909     lock_old_archive_extraction=no ;;
5910 esac
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
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 # If no C compiler was specified, use CC.
5951 LTCC=${LTCC-"$CC"}
5952
5953 # If no C compiler flags were specified, use CFLAGS.
5954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5955
5956 # Allow CC to be a program name with arguments.
5957 compiler=$CC
5958
5959
5960 # Check for command to grab the raw symbol name followed by C symbol from nm.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5962 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5963 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966
5967 # These are sane defaults that work on at least a few old systems.
5968 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5969
5970 # Character class describing NM global symbol codes.
5971 symcode='[BCDEGRST]'
5972
5973 # Regexp to match symbols that can be accessed directly from C.
5974 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5975
5976 # Define system-specific variables.
5977 case $host_os in
5978 aix*)
5979   symcode='[BCDT]'
5980   ;;
5981 cygwin* | mingw* | pw32* | cegcc*)
5982   symcode='[ABCDGISTW]'
5983   ;;
5984 hpux*)
5985   if test "$host_cpu" = ia64; then
5986     symcode='[ABCDEGRST]'
5987   fi
5988   ;;
5989 irix* | nonstopux*)
5990   symcode='[BCDEGRST]'
5991   ;;
5992 osf*)
5993   symcode='[BCDEGQRST]'
5994   ;;
5995 solaris*)
5996   symcode='[BDRT]'
5997   ;;
5998 sco3.2v5*)
5999   symcode='[DT]'
6000   ;;
6001 sysv4.2uw2*)
6002   symcode='[DT]'
6003   ;;
6004 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6005   symcode='[ABDT]'
6006   ;;
6007 sysv4)
6008   symcode='[DFNSTU]'
6009   ;;
6010 esac
6011
6012 # If we're using GNU nm, then use its standard symbol codes.
6013 case `$NM -V 2>&1` in
6014 *GNU* | *'with BFD'*)
6015   symcode='[ABCDGIRSTW]' ;;
6016 esac
6017
6018 # Transform an extracted symbol line into a proper C declaration.
6019 # Some systems (esp. on ia64) link data and code symbols differently,
6020 # so use this general approach.
6021 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6022
6023 # Transform an extracted symbol line into symbol name and symbol address
6024 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6025 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'"
6026
6027 # Handle CRLF in mingw tool chain
6028 opt_cr=
6029 case $build_os in
6030 mingw*)
6031   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6032   ;;
6033 esac
6034
6035 # Try without a prefix underscore, then with it.
6036 for ac_symprfx in "" "_"; do
6037
6038   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6039   symxfrm="\\1 $ac_symprfx\\2 \\2"
6040
6041   # Write the raw and C identifiers.
6042   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6043     # Fake it for dumpbin and say T for any non-static function
6044     # and D for any global variable.
6045     # Also find C++ and __fastcall symbols from MSVC++,
6046     # which start with @ or ?.
6047     lt_cv_sys_global_symbol_pipe="$AWK '"\
6048 "     {last_section=section; section=\$ 3};"\
6049 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6050 "     \$ 0!~/External *\|/{next};"\
6051 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6052 "     {if(hide[section]) next};"\
6053 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6054 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6055 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6056 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6057 "     ' prfx=^$ac_symprfx"
6058   else
6059     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6060   fi
6061   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6062
6063   # Check to see that the pipe works correctly.
6064   pipe_works=no
6065
6066   rm -f conftest*
6067   cat > conftest.$ac_ext <<_LT_EOF
6068 #ifdef __cplusplus
6069 extern "C" {
6070 #endif
6071 char nm_test_var;
6072 void nm_test_func(void);
6073 void nm_test_func(void){}
6074 #ifdef __cplusplus
6075 }
6076 #endif
6077 int main(){nm_test_var='a';nm_test_func();return(0);}
6078 _LT_EOF
6079
6080   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6081   (eval $ac_compile) 2>&5
6082   ac_status=$?
6083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084   test $ac_status = 0; }; then
6085     # Now try to grab the symbols.
6086     nlist=conftest.nm
6087     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6088   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6089   ac_status=$?
6090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091   test $ac_status = 0; } && test -s "$nlist"; then
6092       # Try sorting and uniquifying the output.
6093       if sort "$nlist" | uniq > "$nlist"T; then
6094         mv -f "$nlist"T "$nlist"
6095       else
6096         rm -f "$nlist"T
6097       fi
6098
6099       # Make sure that we snagged all the symbols we need.
6100       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6101         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6102           cat <<_LT_EOF > conftest.$ac_ext
6103 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6104 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6105 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6106    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6107 # define LT_DLSYM_CONST
6108 #elif defined(__osf__)
6109 /* This system does not cope well with relocations in const data.  */
6110 # define LT_DLSYM_CONST
6111 #else
6112 # define LT_DLSYM_CONST const
6113 #endif
6114
6115 #ifdef __cplusplus
6116 extern "C" {
6117 #endif
6118
6119 _LT_EOF
6120           # Now generate the symbol file.
6121           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6122
6123           cat <<_LT_EOF >> conftest.$ac_ext
6124
6125 /* The mapping between symbol names and symbols.  */
6126 LT_DLSYM_CONST struct {
6127   const char *name;
6128   void       *address;
6129 }
6130 lt__PROGRAM__LTX_preloaded_symbols[] =
6131 {
6132   { "@PROGRAM@", (void *) 0 },
6133 _LT_EOF
6134           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6135           cat <<\_LT_EOF >> conftest.$ac_ext
6136   {0, (void *) 0}
6137 };
6138
6139 /* This works around a problem in FreeBSD linker */
6140 #ifdef FREEBSD_WORKAROUND
6141 static const void *lt_preloaded_setup() {
6142   return lt__PROGRAM__LTX_preloaded_symbols;
6143 }
6144 #endif
6145
6146 #ifdef __cplusplus
6147 }
6148 #endif
6149 _LT_EOF
6150           # Now try linking the two files.
6151           mv conftest.$ac_objext conftstm.$ac_objext
6152           lt_globsym_save_LIBS=$LIBS
6153           lt_globsym_save_CFLAGS=$CFLAGS
6154           LIBS="conftstm.$ac_objext"
6155           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6156           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6157   (eval $ac_link) 2>&5
6158   ac_status=$?
6159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6161             pipe_works=yes
6162           fi
6163           LIBS=$lt_globsym_save_LIBS
6164           CFLAGS=$lt_globsym_save_CFLAGS
6165         else
6166           echo "cannot find nm_test_func in $nlist" >&5
6167         fi
6168       else
6169         echo "cannot find nm_test_var in $nlist" >&5
6170       fi
6171     else
6172       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6173     fi
6174   else
6175     echo "$progname: failed program was:" >&5
6176     cat conftest.$ac_ext >&5
6177   fi
6178   rm -rf conftest* conftst*
6179
6180   # Do not use the global_symbol_pipe unless it works.
6181   if test "$pipe_works" = yes; then
6182     break
6183   else
6184     lt_cv_sys_global_symbol_pipe=
6185   fi
6186 done
6187
6188 fi
6189
6190 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6191   lt_cv_sys_global_symbol_to_cdecl=
6192 fi
6193 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6195 $as_echo "failed" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6198 $as_echo "ok" >&6; }
6199 fi
6200
6201 # Response file support.
6202 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6203   nm_file_list_spec='@'
6204 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6205   nm_file_list_spec='@'
6206 fi
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6235 $as_echo_n "checking for sysroot... " >&6; }
6236
6237 # Check whether --with-sysroot was given.
6238 if test "${with_sysroot+set}" = set; then :
6239   withval=$with_sysroot;
6240 else
6241   with_sysroot=no
6242 fi
6243
6244
6245 lt_sysroot=
6246 case ${with_sysroot} in #(
6247  yes)
6248    if test "$GCC" = yes; then
6249      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6250    fi
6251    ;; #(
6252  /*)
6253    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6254    ;; #(
6255  no|'')
6256    ;; #(
6257  *)
6258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6259 $as_echo "${with_sysroot}" >&6; }
6260    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6261    ;;
6262 esac
6263
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6265 $as_echo "${lt_sysroot:-no}" >&6; }
6266
6267
6268
6269
6270
6271 # Check whether --enable-libtool-lock was given.
6272 if test "${enable_libtool_lock+set}" = set; then :
6273   enableval=$enable_libtool_lock;
6274 fi
6275
6276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6277
6278 # Some flags need to be propagated to the compiler or linker for good
6279 # libtool support.
6280 case $host in
6281 ia64-*-hpux*)
6282   # Find out which ABI we are using.
6283   echo 'int i;' > conftest.$ac_ext
6284   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285   (eval $ac_compile) 2>&5
6286   ac_status=$?
6287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288   test $ac_status = 0; }; then
6289     case `/usr/bin/file conftest.$ac_objext` in
6290       *ELF-32*)
6291         HPUX_IA64_MODE="32"
6292         ;;
6293       *ELF-64*)
6294         HPUX_IA64_MODE="64"
6295         ;;
6296     esac
6297   fi
6298   rm -rf conftest*
6299   ;;
6300 *-*-irix6*)
6301   # Find out which ABI we are using.
6302   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6303   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6304   (eval $ac_compile) 2>&5
6305   ac_status=$?
6306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307   test $ac_status = 0; }; then
6308     if test "$lt_cv_prog_gnu_ld" = yes; then
6309       case `/usr/bin/file conftest.$ac_objext` in
6310         *32-bit*)
6311           LD="${LD-ld} -melf32bsmip"
6312           ;;
6313         *N32*)
6314           LD="${LD-ld} -melf32bmipn32"
6315           ;;
6316         *64-bit*)
6317           LD="${LD-ld} -melf64bmip"
6318         ;;
6319       esac
6320     else
6321       case `/usr/bin/file conftest.$ac_objext` in
6322         *32-bit*)
6323           LD="${LD-ld} -32"
6324           ;;
6325         *N32*)
6326           LD="${LD-ld} -n32"
6327           ;;
6328         *64-bit*)
6329           LD="${LD-ld} -64"
6330           ;;
6331       esac
6332     fi
6333   fi
6334   rm -rf conftest*
6335   ;;
6336
6337 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6338 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6339   # Find out which ABI we are using.
6340   echo 'int i;' > conftest.$ac_ext
6341   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6342   (eval $ac_compile) 2>&5
6343   ac_status=$?
6344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345   test $ac_status = 0; }; then
6346     case `/usr/bin/file conftest.o` in
6347       *32-bit*)
6348         case $host in
6349           x86_64-*kfreebsd*-gnu)
6350             LD="${LD-ld} -m elf_i386_fbsd"
6351             ;;
6352           x86_64-*linux*)
6353             LD="${LD-ld} -m elf_i386"
6354             ;;
6355           ppc64-*linux*|powerpc64-*linux*)
6356             LD="${LD-ld} -m elf32ppclinux"
6357             ;;
6358           s390x-*linux*)
6359             LD="${LD-ld} -m elf_s390"
6360             ;;
6361           sparc64-*linux*)
6362             LD="${LD-ld} -m elf32_sparc"
6363             ;;
6364         esac
6365         ;;
6366       *64-bit*)
6367         case $host in
6368           x86_64-*kfreebsd*-gnu)
6369             LD="${LD-ld} -m elf_x86_64_fbsd"
6370             ;;
6371           x86_64-*linux*)
6372             LD="${LD-ld} -m elf_x86_64"
6373             ;;
6374           ppc*-*linux*|powerpc*-*linux*)
6375             LD="${LD-ld} -m elf64ppc"
6376             ;;
6377           s390*-*linux*|s390*-*tpf*)
6378             LD="${LD-ld} -m elf64_s390"
6379             ;;
6380           sparc*-*linux*)
6381             LD="${LD-ld} -m elf64_sparc"
6382             ;;
6383         esac
6384         ;;
6385     esac
6386   fi
6387   rm -rf conftest*
6388   ;;
6389
6390 *-*-sco3.2v5*)
6391   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6392   SAVE_CFLAGS="$CFLAGS"
6393   CFLAGS="$CFLAGS -belf"
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6395 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6396 if ${lt_cv_cc_needs_belf+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   ac_ext=c
6400 ac_cpp='$CPP $CPPFLAGS'
6401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6404
6405      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h.  */
6407
6408 int
6409 main ()
6410 {
6411
6412   ;
6413   return 0;
6414 }
6415 _ACEOF
6416 if ac_fn_c_try_link "$LINENO"; then :
6417   lt_cv_cc_needs_belf=yes
6418 else
6419   lt_cv_cc_needs_belf=no
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext \
6422     conftest$ac_exeext conftest.$ac_ext
6423      ac_ext=c
6424 ac_cpp='$CPP $CPPFLAGS'
6425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6428
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6431 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6432   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6433     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6434     CFLAGS="$SAVE_CFLAGS"
6435   fi
6436   ;;
6437 sparc*-*solaris*)
6438   # Find out which ABI we are using.
6439   echo 'int i;' > conftest.$ac_ext
6440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441   (eval $ac_compile) 2>&5
6442   ac_status=$?
6443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444   test $ac_status = 0; }; then
6445     case `/usr/bin/file conftest.o` in
6446     *64-bit*)
6447       case $lt_cv_prog_gnu_ld in
6448       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6449       *)
6450         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6451           LD="${LD-ld} -64"
6452         fi
6453         ;;
6454       esac
6455       ;;
6456     esac
6457   fi
6458   rm -rf conftest*
6459   ;;
6460 esac
6461
6462 need_locks="$enable_libtool_lock"
6463
6464 if test -n "$ac_tool_prefix"; then
6465   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}mt; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   if test -n "$MANIFEST_TOOL"; then
6473   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480     for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487   done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6493 if test -n "$MANIFEST_TOOL"; then
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6495 $as_echo "$MANIFEST_TOOL" >&6; }
6496 else
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500
6501
6502 fi
6503 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6504   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6505   # Extract the first word of "mt", so it can be a program name with args.
6506 set dummy mt; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   if test -n "$ac_ct_MANIFEST_TOOL"; then
6513   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520     for ac_exec_ext in '' $ac_executable_extensions; do
6521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527   done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6533 if test -n "$ac_ct_MANIFEST_TOOL"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6535 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6542     MANIFEST_TOOL=":"
6543   else
6544     case $cross_compiling:$ac_tool_warned in
6545 yes:)
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned=yes ;;
6549 esac
6550     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6551   fi
6552 else
6553   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6554 fi
6555
6556 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6558 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6559 if ${lt_cv_path_mainfest_tool+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   lt_cv_path_mainfest_tool=no
6563   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6564   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6565   cat conftest.err >&5
6566   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6567     lt_cv_path_mainfest_tool=yes
6568   fi
6569   rm -f conftest*
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6572 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6573 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6574   MANIFEST_TOOL=:
6575 fi
6576
6577
6578
6579
6580
6581
6582   case $host_os in
6583     rhapsody* | darwin*)
6584     if test -n "$ac_tool_prefix"; then
6585   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$DSYMUTIL"; then
6593   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600     for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607   done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6613 if test -n "$DSYMUTIL"; then
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6615 $as_echo "$DSYMUTIL" >&6; }
6616 else
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622 fi
6623 if test -z "$ac_cv_prog_DSYMUTIL"; then
6624   ac_ct_DSYMUTIL=$DSYMUTIL
6625   # Extract the first word of "dsymutil", so it can be a program name with args.
6626 set dummy dsymutil; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6630   $as_echo_n "(cached) " >&6
6631 else
6632   if test -n "$ac_ct_DSYMUTIL"; then
6633   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640     for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647   done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6653 if test -n "$ac_ct_DSYMUTIL"; then
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6655 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661   if test "x$ac_ct_DSYMUTIL" = x; then
6662     DSYMUTIL=":"
6663   else
6664     case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670     DSYMUTIL=$ac_ct_DSYMUTIL
6671   fi
6672 else
6673   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6674 fi
6675
6676     if test -n "$ac_tool_prefix"; then
6677   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_NMEDIT+:} false; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684   if test -n "$NMEDIT"; then
6685   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692     for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699   done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 NMEDIT=$ac_cv_prog_NMEDIT
6705 if test -n "$NMEDIT"; then
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6707 $as_echo "$NMEDIT" >&6; }
6708 else
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713
6714 fi
6715 if test -z "$ac_cv_prog_NMEDIT"; then
6716   ac_ct_NMEDIT=$NMEDIT
6717   # Extract the first word of "nmedit", so it can be a program name with args.
6718 set dummy nmedit; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   if test -n "$ac_ct_NMEDIT"; then
6725   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732     for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739   done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6745 if test -n "$ac_ct_NMEDIT"; then
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6747 $as_echo "$ac_ct_NMEDIT" >&6; }
6748 else
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753   if test "x$ac_ct_NMEDIT" = x; then
6754     NMEDIT=":"
6755   else
6756     case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     NMEDIT=$ac_ct_NMEDIT
6763   fi
6764 else
6765   NMEDIT="$ac_cv_prog_NMEDIT"
6766 fi
6767
6768     if test -n "$ac_tool_prefix"; then
6769   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_LIPO+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   if test -n "$LIPO"; then
6777   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784     for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791   done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 LIPO=$ac_cv_prog_LIPO
6797 if test -n "$LIPO"; then
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6799 $as_echo "$LIPO" >&6; }
6800 else
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_LIPO"; then
6808   ac_ct_LIPO=$LIPO
6809   # Extract the first word of "lipo", so it can be a program name with args.
6810 set dummy lipo; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6814   $as_echo_n "(cached) " >&6
6815 else
6816   if test -n "$ac_ct_LIPO"; then
6817   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824     for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_ac_ct_LIPO="lipo"
6827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831   done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6837 if test -n "$ac_ct_LIPO"; then
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6839 $as_echo "$ac_ct_LIPO" >&6; }
6840 else
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845   if test "x$ac_ct_LIPO" = x; then
6846     LIPO=":"
6847   else
6848     case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6853 esac
6854     LIPO=$ac_ct_LIPO
6855   fi
6856 else
6857   LIPO="$ac_cv_prog_LIPO"
6858 fi
6859
6860     if test -n "$ac_tool_prefix"; then
6861   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}otool; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_OTOOL+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   if test -n "$OTOOL"; then
6869   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 OTOOL=$ac_cv_prog_OTOOL
6889 if test -n "$OTOOL"; then
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6891 $as_echo "$OTOOL" >&6; }
6892 else
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897
6898 fi
6899 if test -z "$ac_cv_prog_OTOOL"; then
6900   ac_ct_OTOOL=$OTOOL
6901   # Extract the first word of "otool", so it can be a program name with args.
6902 set dummy otool; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6906   $as_echo_n "(cached) " >&6
6907 else
6908   if test -n "$ac_ct_OTOOL"; then
6909   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916     for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_prog_ac_ct_OTOOL="otool"
6919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923   done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6929 if test -n "$ac_ct_OTOOL"; then
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6931 $as_echo "$ac_ct_OTOOL" >&6; }
6932 else
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937   if test "x$ac_ct_OTOOL" = x; then
6938     OTOOL=":"
6939   else
6940     case $cross_compiling:$ac_tool_warned in
6941 yes:)
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944 ac_tool_warned=yes ;;
6945 esac
6946     OTOOL=$ac_ct_OTOOL
6947   fi
6948 else
6949   OTOOL="$ac_cv_prog_OTOOL"
6950 fi
6951
6952     if test -n "$ac_tool_prefix"; then
6953   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_OTOOL64+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$OTOOL64"; then
6961   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 OTOOL64=$ac_cv_prog_OTOOL64
6981 if test -n "$OTOOL64"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6983 $as_echo "$OTOOL64" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989
6990 fi
6991 if test -z "$ac_cv_prog_OTOOL64"; then
6992   ac_ct_OTOOL64=$OTOOL64
6993   # Extract the first word of "otool64", so it can be a program name with args.
6994 set dummy otool64; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   if test -n "$ac_ct_OTOOL64"; then
7001   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008     for ac_exec_ext in '' $ac_executable_extensions; do
7009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010     ac_cv_prog_ac_ct_OTOOL64="otool64"
7011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012     break 2
7013   fi
7014 done
7015   done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7021 if test -n "$ac_ct_OTOOL64"; then
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7023 $as_echo "$ac_ct_OTOOL64" >&6; }
7024 else
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029   if test "x$ac_ct_OTOOL64" = x; then
7030     OTOOL64=":"
7031   else
7032     case $cross_compiling:$ac_tool_warned in
7033 yes:)
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038     OTOOL64=$ac_ct_OTOOL64
7039   fi
7040 else
7041   OTOOL64="$ac_cv_prog_OTOOL64"
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7071 $as_echo_n "checking for -single_module linker flag... " >&6; }
7072 if ${lt_cv_apple_cc_single_mod+:} false; then :
7073   $as_echo_n "(cached) " >&6
7074 else
7075   lt_cv_apple_cc_single_mod=no
7076       if test -z "${LT_MULTI_MODULE}"; then
7077         # By default we will add the -single_module flag. You can override
7078         # by either setting the environment variable LT_MULTI_MODULE
7079         # non-empty at configure time, or by adding -multi_module to the
7080         # link flags.
7081         rm -rf libconftest.dylib*
7082         echo "int foo(void){return 1;}" > conftest.c
7083         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7084 -dynamiclib -Wl,-single_module conftest.c" >&5
7085         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7086           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7087         _lt_result=$?
7088         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7089           lt_cv_apple_cc_single_mod=yes
7090         else
7091           cat conftest.err >&5
7092         fi
7093         rm -rf libconftest.dylib*
7094         rm -f conftest.*
7095       fi
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7098 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7100 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7101 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   lt_cv_ld_exported_symbols_list=no
7105       save_LDFLAGS=$LDFLAGS
7106       echo "_main" > conftest.sym
7107       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h.  */
7110
7111 int
7112 main ()
7113 {
7114
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 if ac_fn_c_try_link "$LINENO"; then :
7120   lt_cv_ld_exported_symbols_list=yes
7121 else
7122   lt_cv_ld_exported_symbols_list=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext \
7125     conftest$ac_exeext conftest.$ac_ext
7126         LDFLAGS="$save_LDFLAGS"
7127
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7130 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7132 $as_echo_n "checking for -force_load linker flag... " >&6; }
7133 if ${lt_cv_ld_force_load+:} false; then :
7134   $as_echo_n "(cached) " >&6
7135 else
7136   lt_cv_ld_force_load=no
7137       cat > conftest.c << _LT_EOF
7138 int forced_loaded() { return 2;}
7139 _LT_EOF
7140       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7141       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7142       echo "$AR cru libconftest.a conftest.o" >&5
7143       $AR cru libconftest.a conftest.o 2>&5
7144       echo "$RANLIB libconftest.a" >&5
7145       $RANLIB libconftest.a 2>&5
7146       cat > conftest.c << _LT_EOF
7147 int main() { return 0;}
7148 _LT_EOF
7149       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7150       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7151       _lt_result=$?
7152       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7153         lt_cv_ld_force_load=yes
7154       else
7155         cat conftest.err >&5
7156       fi
7157         rm -f conftest.err libconftest.a conftest conftest.c
7158         rm -rf conftest.dSYM
7159
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7162 $as_echo "$lt_cv_ld_force_load" >&6; }
7163     case $host_os in
7164     rhapsody* | darwin1.[012])
7165       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7166     darwin1.*)
7167       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7168     darwin*) # darwin 5.x on
7169       # if running on 10.5 or later, the deployment target defaults
7170       # to the OS version, if on x86, and 10.4, the deployment
7171       # target defaults to 10.4. Don't you love it?
7172       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7173         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7174           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7175         10.[012]*)
7176           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7177         10.*)
7178           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7179       esac
7180     ;;
7181   esac
7182     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7183       _lt_dar_single_mod='$single_module'
7184     fi
7185     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7186       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7187     else
7188       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7189     fi
7190     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7191       _lt_dsymutil='~$DSYMUTIL $lib || :'
7192     else
7193       _lt_dsymutil=
7194     fi
7195     ;;
7196   esac
7197
7198 ac_ext=c
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7204 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7205 # On Suns, sometimes $CPP names a directory.
7206 if test -n "$CPP" && test -d "$CPP"; then
7207   CPP=
7208 fi
7209 if test -z "$CPP"; then
7210   if ${ac_cv_prog_CPP+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213       # Double quotes because CPP needs to be expanded
7214     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7215     do
7216       ac_preproc_ok=false
7217 for ac_c_preproc_warn_flag in '' yes
7218 do
7219   # Use a header file that comes with gcc, so configuring glibc
7220   # with a fresh cross-compiler works.
7221   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7222   # <limits.h> exists even on freestanding compilers.
7223   # On the NeXT, cc -E runs the code through the compiler's parser,
7224   # not just through cpp. "Syntax error" is here to catch this case.
7225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227 #ifdef __STDC__
7228 # include <limits.h>
7229 #else
7230 # include <assert.h>
7231 #endif
7232                      Syntax error
7233 _ACEOF
7234 if ac_fn_c_try_cpp "$LINENO"; then :
7235
7236 else
7237   # Broken: fails on valid input.
7238 continue
7239 fi
7240 rm -f conftest.err conftest.i conftest.$ac_ext
7241
7242   # OK, works on sane cases.  Now check whether nonexistent headers
7243   # can be detected and how.
7244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h.  */
7246 #include <ac_nonexistent.h>
7247 _ACEOF
7248 if ac_fn_c_try_cpp "$LINENO"; then :
7249   # Broken: success on invalid input.
7250 continue
7251 else
7252   # Passes both tests.
7253 ac_preproc_ok=:
7254 break
7255 fi
7256 rm -f conftest.err conftest.i conftest.$ac_ext
7257
7258 done
7259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7260 rm -f conftest.i conftest.err conftest.$ac_ext
7261 if $ac_preproc_ok; then :
7262   break
7263 fi
7264
7265     done
7266     ac_cv_prog_CPP=$CPP
7267
7268 fi
7269   CPP=$ac_cv_prog_CPP
7270 else
7271   ac_cv_prog_CPP=$CPP
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7274 $as_echo "$CPP" >&6; }
7275 ac_preproc_ok=false
7276 for ac_c_preproc_warn_flag in '' yes
7277 do
7278   # Use a header file that comes with gcc, so configuring glibc
7279   # with a fresh cross-compiler works.
7280   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7281   # <limits.h> exists even on freestanding compilers.
7282   # On the NeXT, cc -E runs the code through the compiler's parser,
7283   # not just through cpp. "Syntax error" is here to catch this case.
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286 #ifdef __STDC__
7287 # include <limits.h>
7288 #else
7289 # include <assert.h>
7290 #endif
7291                      Syntax error
7292 _ACEOF
7293 if ac_fn_c_try_cpp "$LINENO"; then :
7294
7295 else
7296   # Broken: fails on valid input.
7297 continue
7298 fi
7299 rm -f conftest.err conftest.i conftest.$ac_ext
7300
7301   # OK, works on sane cases.  Now check whether nonexistent headers
7302   # can be detected and how.
7303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305 #include <ac_nonexistent.h>
7306 _ACEOF
7307 if ac_fn_c_try_cpp "$LINENO"; then :
7308   # Broken: success on invalid input.
7309 continue
7310 else
7311   # Passes both tests.
7312 ac_preproc_ok=:
7313 break
7314 fi
7315 rm -f conftest.err conftest.i conftest.$ac_ext
7316
7317 done
7318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7319 rm -f conftest.i conftest.err conftest.$ac_ext
7320 if $ac_preproc_ok; then :
7321
7322 else
7323   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7325 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7326 See \`config.log' for more details" "$LINENO" 5; }
7327 fi
7328
7329 ac_ext=c
7330 ac_cpp='$CPP $CPPFLAGS'
7331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7334
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7337 $as_echo_n "checking for ANSI C header files... " >&6; }
7338 if ${ac_cv_header_stdc+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h.  */
7343 #include <stdlib.h>
7344 #include <stdarg.h>
7345 #include <string.h>
7346 #include <float.h>
7347
7348 int
7349 main ()
7350 {
7351
7352   ;
7353   return 0;
7354 }
7355 _ACEOF
7356 if ac_fn_c_try_compile "$LINENO"; then :
7357   ac_cv_header_stdc=yes
7358 else
7359   ac_cv_header_stdc=no
7360 fi
7361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362
7363 if test $ac_cv_header_stdc = yes; then
7364   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h.  */
7367 #include <string.h>
7368
7369 _ACEOF
7370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7371   $EGREP "memchr" >/dev/null 2>&1; then :
7372
7373 else
7374   ac_cv_header_stdc=no
7375 fi
7376 rm -f conftest*
7377
7378 fi
7379
7380 if test $ac_cv_header_stdc = yes; then
7381   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h.  */
7384 #include <stdlib.h>
7385
7386 _ACEOF
7387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388   $EGREP "free" >/dev/null 2>&1; then :
7389
7390 else
7391   ac_cv_header_stdc=no
7392 fi
7393 rm -f conftest*
7394
7395 fi
7396
7397 if test $ac_cv_header_stdc = yes; then
7398   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7399   if test "$cross_compiling" = yes; then :
7400   :
7401 else
7402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h.  */
7404 #include <ctype.h>
7405 #include <stdlib.h>
7406 #if ((' ' & 0x0FF) == 0x020)
7407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7409 #else
7410 # define ISLOWER(c) \
7411                    (('a' <= (c) && (c) <= 'i') \
7412                      || ('j' <= (c) && (c) <= 'r') \
7413                      || ('s' <= (c) && (c) <= 'z'))
7414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7415 #endif
7416
7417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7418 int
7419 main ()
7420 {
7421   int i;
7422   for (i = 0; i < 256; i++)
7423     if (XOR (islower (i), ISLOWER (i))
7424         || toupper (i) != TOUPPER (i))
7425       return 2;
7426   return 0;
7427 }
7428 _ACEOF
7429 if ac_fn_c_try_run "$LINENO"; then :
7430
7431 else
7432   ac_cv_header_stdc=no
7433 fi
7434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7435   conftest.$ac_objext conftest.beam conftest.$ac_ext
7436 fi
7437
7438 fi
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7441 $as_echo "$ac_cv_header_stdc" >&6; }
7442 if test $ac_cv_header_stdc = yes; then
7443
7444 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7445
7446 fi
7447
7448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7450                   inttypes.h stdint.h unistd.h
7451 do :
7452   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7453 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7454 "
7455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7456   cat >>confdefs.h <<_ACEOF
7457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458 _ACEOF
7459
7460 fi
7461
7462 done
7463
7464
7465 for ac_header in dlfcn.h
7466 do :
7467   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7468 "
7469 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7470   cat >>confdefs.h <<_ACEOF
7471 #define HAVE_DLFCN_H 1
7472 _ACEOF
7473
7474 fi
7475
7476 done
7477
7478
7479
7480
7481
7482 # Set options
7483
7484
7485
7486         enable_dlopen=no
7487
7488
7489   enable_win32_dll=no
7490
7491
7492             # Check whether --enable-shared was given.
7493 if test "${enable_shared+set}" = set; then :
7494   enableval=$enable_shared; p=${PACKAGE-default}
7495     case $enableval in
7496     yes) enable_shared=yes ;;
7497     no) enable_shared=no ;;
7498     *)
7499       enable_shared=no
7500       # Look at the argument we got.  We use all the common list separators.
7501       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7502       for pkg in $enableval; do
7503         IFS="$lt_save_ifs"
7504         if test "X$pkg" = "X$p"; then
7505           enable_shared=yes
7506         fi
7507       done
7508       IFS="$lt_save_ifs"
7509       ;;
7510     esac
7511 else
7512   enable_shared=yes
7513 fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523   # Check whether --enable-static was given.
7524 if test "${enable_static+set}" = set; then :
7525   enableval=$enable_static; p=${PACKAGE-default}
7526     case $enableval in
7527     yes) enable_static=yes ;;
7528     no) enable_static=no ;;
7529     *)
7530      enable_static=no
7531       # Look at the argument we got.  We use all the common list separators.
7532       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7533       for pkg in $enableval; do
7534         IFS="$lt_save_ifs"
7535         if test "X$pkg" = "X$p"; then
7536           enable_static=yes
7537         fi
7538       done
7539       IFS="$lt_save_ifs"
7540       ;;
7541     esac
7542 else
7543   enable_static=yes
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555 # Check whether --with-pic was given.
7556 if test "${with_pic+set}" = set; then :
7557   withval=$with_pic; pic_mode="$withval"
7558 else
7559   pic_mode=default
7560 fi
7561
7562
7563 test -z "$pic_mode" && pic_mode=default
7564
7565
7566
7567
7568
7569
7570
7571   # Check whether --enable-fast-install was given.
7572 if test "${enable_fast_install+set}" = set; then :
7573   enableval=$enable_fast_install; p=${PACKAGE-default}
7574     case $enableval in
7575     yes) enable_fast_install=yes ;;
7576     no) enable_fast_install=no ;;
7577     *)
7578       enable_fast_install=no
7579       # Look at the argument we got.  We use all the common list separators.
7580       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7581       for pkg in $enableval; do
7582         IFS="$lt_save_ifs"
7583         if test "X$pkg" = "X$p"; then
7584           enable_fast_install=yes
7585         fi
7586       done
7587       IFS="$lt_save_ifs"
7588       ;;
7589     esac
7590 else
7591   enable_fast_install=yes
7592 fi
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604 # This can be used to rebuild libtool when needed
7605 LIBTOOL_DEPS="$ltmain"
7606
7607 # Always use our own libtool.
7608 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635 test -z "$LN_S" && LN_S="ln -s"
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650 if test -n "${ZSH_VERSION+set}" ; then
7651    setopt NO_GLOB_SUBST
7652 fi
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7655 $as_echo_n "checking for objdir... " >&6; }
7656 if ${lt_cv_objdir+:} false; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   rm -f .libs 2>/dev/null
7660 mkdir .libs 2>/dev/null
7661 if test -d .libs; then
7662   lt_cv_objdir=.libs
7663 else
7664   # MS-DOS does not allow filenames that begin with a dot.
7665   lt_cv_objdir=_libs
7666 fi
7667 rmdir .libs 2>/dev/null
7668 fi
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7670 $as_echo "$lt_cv_objdir" >&6; }
7671 objdir=$lt_cv_objdir
7672
7673
7674
7675
7676
7677 cat >>confdefs.h <<_ACEOF
7678 #define LT_OBJDIR "$lt_cv_objdir/"
7679 _ACEOF
7680
7681
7682
7683
7684 case $host_os in
7685 aix3*)
7686   # AIX sometimes has problems with the GCC collect2 program.  For some
7687   # reason, if we set the COLLECT_NAMES environment variable, the problems
7688   # vanish in a puff of smoke.
7689   if test "X${COLLECT_NAMES+set}" != Xset; then
7690     COLLECT_NAMES=
7691     export COLLECT_NAMES
7692   fi
7693   ;;
7694 esac
7695
7696 # Global variables:
7697 ofile=libtool
7698 can_build_shared=yes
7699
7700 # All known linkers require a `.a' archive for static linking (except MSVC,
7701 # which needs '.lib').
7702 libext=a
7703
7704 with_gnu_ld="$lt_cv_prog_gnu_ld"
7705
7706 old_CC="$CC"
7707 old_CFLAGS="$CFLAGS"
7708
7709 # Set sane defaults for various variables
7710 test -z "$CC" && CC=cc
7711 test -z "$LTCC" && LTCC=$CC
7712 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7713 test -z "$LD" && LD=ld
7714 test -z "$ac_objext" && ac_objext=o
7715
7716 for cc_temp in $compiler""; do
7717   case $cc_temp in
7718     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7719     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7720     \-*) ;;
7721     *) break;;
7722   esac
7723 done
7724 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7725
7726
7727 # Only perform the check for file, if the check method requires it
7728 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7729 case $deplibs_check_method in
7730 file_magic*)
7731   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7733 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7734 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   case $MAGIC_CMD in
7738 [\\/*] |  ?:[\\/]*)
7739   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7740   ;;
7741 *)
7742   lt_save_MAGIC_CMD="$MAGIC_CMD"
7743   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7744   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7745   for ac_dir in $ac_dummy; do
7746     IFS="$lt_save_ifs"
7747     test -z "$ac_dir" && ac_dir=.
7748     if test -f $ac_dir/${ac_tool_prefix}file; then
7749       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7750       if test -n "$file_magic_test_file"; then
7751         case $deplibs_check_method in
7752         "file_magic "*)
7753           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7754           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7756             $EGREP "$file_magic_regex" > /dev/null; then
7757             :
7758           else
7759             cat <<_LT_EOF 1>&2
7760
7761 *** Warning: the command libtool uses to detect shared libraries,
7762 *** $file_magic_cmd, produces output that libtool cannot recognize.
7763 *** The result is that libtool may fail to recognize shared libraries
7764 *** as such.  This will affect the creation of libtool libraries that
7765 *** depend on shared libraries, but programs linked with such libtool
7766 *** libraries will work regardless of this problem.  Nevertheless, you
7767 *** may want to report the problem to your system manager and/or to
7768 *** bug-libtool@gnu.org
7769
7770 _LT_EOF
7771           fi ;;
7772         esac
7773       fi
7774       break
7775     fi
7776   done
7777   IFS="$lt_save_ifs"
7778   MAGIC_CMD="$lt_save_MAGIC_CMD"
7779   ;;
7780 esac
7781 fi
7782
7783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784 if test -n "$MAGIC_CMD"; then
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7786 $as_echo "$MAGIC_CMD" >&6; }
7787 else
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792
7793
7794
7795
7796 if test -z "$lt_cv_path_MAGIC_CMD"; then
7797   if test -n "$ac_tool_prefix"; then
7798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7799 $as_echo_n "checking for file... " >&6; }
7800 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   case $MAGIC_CMD in
7804 [\\/*] |  ?:[\\/]*)
7805   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7806   ;;
7807 *)
7808   lt_save_MAGIC_CMD="$MAGIC_CMD"
7809   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7810   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7811   for ac_dir in $ac_dummy; do
7812     IFS="$lt_save_ifs"
7813     test -z "$ac_dir" && ac_dir=.
7814     if test -f $ac_dir/file; then
7815       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7816       if test -n "$file_magic_test_file"; then
7817         case $deplibs_check_method in
7818         "file_magic "*)
7819           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7820           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7821           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7822             $EGREP "$file_magic_regex" > /dev/null; then
7823             :
7824           else
7825             cat <<_LT_EOF 1>&2
7826
7827 *** Warning: the command libtool uses to detect shared libraries,
7828 *** $file_magic_cmd, produces output that libtool cannot recognize.
7829 *** The result is that libtool may fail to recognize shared libraries
7830 *** as such.  This will affect the creation of libtool libraries that
7831 *** depend on shared libraries, but programs linked with such libtool
7832 *** libraries will work regardless of this problem.  Nevertheless, you
7833 *** may want to report the problem to your system manager and/or to
7834 *** bug-libtool@gnu.org
7835
7836 _LT_EOF
7837           fi ;;
7838         esac
7839       fi
7840       break
7841     fi
7842   done
7843   IFS="$lt_save_ifs"
7844   MAGIC_CMD="$lt_save_MAGIC_CMD"
7845   ;;
7846 esac
7847 fi
7848
7849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850 if test -n "$MAGIC_CMD"; then
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7852 $as_echo "$MAGIC_CMD" >&6; }
7853 else
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7856 fi
7857
7858
7859   else
7860     MAGIC_CMD=:
7861   fi
7862 fi
7863
7864   fi
7865   ;;
7866 esac
7867
7868 # Use C for the default configuration in the libtool script
7869
7870 lt_save_CC="$CC"
7871 ac_ext=c
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877
7878 # Source file extension for C test sources.
7879 ac_ext=c
7880
7881 # Object file extension for compiled C test sources.
7882 objext=o
7883 objext=$objext
7884
7885 # Code to be used in simple compile tests
7886 lt_simple_compile_test_code="int some_variable = 0;"
7887
7888 # Code to be used in simple link tests
7889 lt_simple_link_test_code='int main(){return(0);}'
7890
7891
7892
7893
7894
7895
7896
7897 # If no C compiler was specified, use CC.
7898 LTCC=${LTCC-"$CC"}
7899
7900 # If no C compiler flags were specified, use CFLAGS.
7901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7902
7903 # Allow CC to be a program name with arguments.
7904 compiler=$CC
7905
7906 # Save the default compiler, since it gets overwritten when the other
7907 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7908 compiler_DEFAULT=$CC
7909
7910 # save warnings/boilerplate of simple test code
7911 ac_outfile=conftest.$ac_objext
7912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7914 _lt_compiler_boilerplate=`cat conftest.err`
7915 $RM conftest*
7916
7917 ac_outfile=conftest.$ac_objext
7918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7920 _lt_linker_boilerplate=`cat conftest.err`
7921 $RM -r conftest*
7922
7923
7924 if test -n "$compiler"; then
7925
7926 lt_prog_compiler_no_builtin_flag=
7927
7928 if test "$GCC" = yes; then
7929   case $cc_basename in
7930   nvcc*)
7931     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7932   *)
7933     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7934   esac
7935
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7937 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7938 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   lt_cv_prog_compiler_rtti_exceptions=no
7942    ac_outfile=conftest.$ac_objext
7943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7944    lt_compiler_flag="-fno-rtti -fno-exceptions"
7945    # Insert the option either (1) after the last *FLAGS variable, or
7946    # (2) before a word containing "conftest.", or (3) at the end.
7947    # Note that $ac_compile itself does not contain backslashes and begins
7948    # with a dollar sign (not a hyphen), so the echo should work correctly.
7949    # The option is referenced via a variable to avoid confusing sed.
7950    lt_compile=`echo "$ac_compile" | $SED \
7951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7953    -e 's:$: $lt_compiler_flag:'`
7954    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7955    (eval "$lt_compile" 2>conftest.err)
7956    ac_status=$?
7957    cat conftest.err >&5
7958    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959    if (exit $ac_status) && test -s "$ac_outfile"; then
7960      # The compiler can only warn and ignore the option if not recognized
7961      # So say no if there are warnings other than the usual output.
7962      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7963      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7964      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7965        lt_cv_prog_compiler_rtti_exceptions=yes
7966      fi
7967    fi
7968    $RM conftest*
7969
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7972 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7973
7974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7975     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7976 else
7977     :
7978 fi
7979
7980 fi
7981
7982
7983
7984
7985
7986
7987   lt_prog_compiler_wl=
7988 lt_prog_compiler_pic=
7989 lt_prog_compiler_static=
7990
7991
7992   if test "$GCC" = yes; then
7993     lt_prog_compiler_wl='-Wl,'
7994     lt_prog_compiler_static='-static'
7995
7996     case $host_os in
7997       aix*)
7998       # All AIX code is PIC.
7999       if test "$host_cpu" = ia64; then
8000         # AIX 5 now supports IA64 processor
8001         lt_prog_compiler_static='-Bstatic'
8002       fi
8003       ;;
8004
8005     amigaos*)
8006       case $host_cpu in
8007       powerpc)
8008             # see comment about AmigaOS4 .so support
8009             lt_prog_compiler_pic='-fPIC'
8010         ;;
8011       m68k)
8012             # FIXME: we need at least 68020 code to build shared libraries, but
8013             # adding the `-m68020' flag to GCC prevents building anything better,
8014             # like `-m68040'.
8015             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8016         ;;
8017       esac
8018       ;;
8019
8020     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8021       # PIC is the default for these OSes.
8022       ;;
8023
8024     mingw* | cygwin* | pw32* | os2* | cegcc*)
8025       # This hack is so that the source file can tell whether it is being
8026       # built for inclusion in a dll (and should export symbols for example).
8027       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8028       # (--disable-auto-import) libraries
8029       lt_prog_compiler_pic='-DDLL_EXPORT'
8030       ;;
8031
8032     darwin* | rhapsody*)
8033       # PIC is the default on this platform
8034       # Common symbols not allowed in MH_DYLIB files
8035       lt_prog_compiler_pic='-fno-common'
8036       ;;
8037
8038     haiku*)
8039       # PIC is the default for Haiku.
8040       # The "-static" flag exists, but is broken.
8041       lt_prog_compiler_static=
8042       ;;
8043
8044     hpux*)
8045       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8046       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8047       # sets the default TLS model and affects inlining.
8048       case $host_cpu in
8049       hppa*64*)
8050         # +Z the default
8051         ;;
8052       *)
8053         lt_prog_compiler_pic='-fPIC'
8054         ;;
8055       esac
8056       ;;
8057
8058     interix[3-9]*)
8059       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8060       # Instead, we relocate shared libraries at runtime.
8061       ;;
8062
8063     msdosdjgpp*)
8064       # Just because we use GCC doesn't mean we suddenly get shared libraries
8065       # on systems that don't support them.
8066       lt_prog_compiler_can_build_shared=no
8067       enable_shared=no
8068       ;;
8069
8070     *nto* | *qnx*)
8071       # QNX uses GNU C++, but need to define -shared option too, otherwise
8072       # it will coredump.
8073       lt_prog_compiler_pic='-fPIC -shared'
8074       ;;
8075
8076     sysv4*MP*)
8077       if test -d /usr/nec; then
8078         lt_prog_compiler_pic=-Kconform_pic
8079       fi
8080       ;;
8081
8082     *)
8083       lt_prog_compiler_pic='-fPIC'
8084       ;;
8085     esac
8086
8087     case $cc_basename in
8088     nvcc*) # Cuda Compiler Driver 2.2
8089       lt_prog_compiler_wl='-Xlinker '
8090       lt_prog_compiler_pic='-Xcompiler -fPIC'
8091       ;;
8092     esac
8093   else
8094     # PORTME Check for flag to pass linker flags through the system compiler.
8095     case $host_os in
8096     aix*)
8097       lt_prog_compiler_wl='-Wl,'
8098       if test "$host_cpu" = ia64; then
8099         # AIX 5 now supports IA64 processor
8100         lt_prog_compiler_static='-Bstatic'
8101       else
8102         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8103       fi
8104       ;;
8105
8106     mingw* | cygwin* | pw32* | os2* | cegcc*)
8107       # This hack is so that the source file can tell whether it is being
8108       # built for inclusion in a dll (and should export symbols for example).
8109       lt_prog_compiler_pic='-DDLL_EXPORT'
8110       ;;
8111
8112     hpux9* | hpux10* | hpux11*)
8113       lt_prog_compiler_wl='-Wl,'
8114       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8115       # not for PA HP-UX.
8116       case $host_cpu in
8117       hppa*64*|ia64*)
8118         # +Z the default
8119         ;;
8120       *)
8121         lt_prog_compiler_pic='+Z'
8122         ;;
8123       esac
8124       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8125       lt_prog_compiler_static='${wl}-a ${wl}archive'
8126       ;;
8127
8128     irix5* | irix6* | nonstopux*)
8129       lt_prog_compiler_wl='-Wl,'
8130       # PIC (with -KPIC) is the default.
8131       lt_prog_compiler_static='-non_shared'
8132       ;;
8133
8134     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8135       case $cc_basename in
8136       # old Intel for x86_64 which still supported -KPIC.
8137       ecc*)
8138         lt_prog_compiler_wl='-Wl,'
8139         lt_prog_compiler_pic='-KPIC'
8140         lt_prog_compiler_static='-static'
8141         ;;
8142       # icc used to be incompatible with GCC.
8143       # ICC 10 doesn't accept -KPIC any more.
8144       icc* | ifort*)
8145         lt_prog_compiler_wl='-Wl,'
8146         lt_prog_compiler_pic='-fPIC'
8147         lt_prog_compiler_static='-static'
8148         ;;
8149       # Lahey Fortran 8.1.
8150       lf95*)
8151         lt_prog_compiler_wl='-Wl,'
8152         lt_prog_compiler_pic='--shared'
8153         lt_prog_compiler_static='--static'
8154         ;;
8155       nagfor*)
8156         # NAG Fortran compiler
8157         lt_prog_compiler_wl='-Wl,-Wl,,'
8158         lt_prog_compiler_pic='-PIC'
8159         lt_prog_compiler_static='-Bstatic'
8160         ;;
8161       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8162         # Portland Group compilers (*not* the Pentium gcc compiler,
8163         # which looks to be a dead project)
8164         lt_prog_compiler_wl='-Wl,'
8165         lt_prog_compiler_pic='-fpic'
8166         lt_prog_compiler_static='-Bstatic'
8167         ;;
8168       ccc*)
8169         lt_prog_compiler_wl='-Wl,'
8170         # All Alpha code is PIC.
8171         lt_prog_compiler_static='-non_shared'
8172         ;;
8173       xl* | bgxl* | bgf* | mpixl*)
8174         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8175         lt_prog_compiler_wl='-Wl,'
8176         lt_prog_compiler_pic='-qpic'
8177         lt_prog_compiler_static='-qstaticlink'
8178         ;;
8179       *)
8180         case `$CC -V 2>&1 | sed 5q` in
8181         *Sun\ F* | *Sun*Fortran*)
8182           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8183           lt_prog_compiler_pic='-KPIC'
8184           lt_prog_compiler_static='-Bstatic'
8185           lt_prog_compiler_wl=''
8186           ;;
8187         *Sun\ C*)
8188           # Sun C 5.9
8189           lt_prog_compiler_pic='-KPIC'
8190           lt_prog_compiler_static='-Bstatic'
8191           lt_prog_compiler_wl='-Wl,'
8192           ;;
8193         esac
8194         ;;
8195       esac
8196       ;;
8197
8198     newsos6)
8199       lt_prog_compiler_pic='-KPIC'
8200       lt_prog_compiler_static='-Bstatic'
8201       ;;
8202
8203     *nto* | *qnx*)
8204       # QNX uses GNU C++, but need to define -shared option too, otherwise
8205       # it will coredump.
8206       lt_prog_compiler_pic='-fPIC -shared'
8207       ;;
8208
8209     osf3* | osf4* | osf5*)
8210       lt_prog_compiler_wl='-Wl,'
8211       # All OSF/1 code is PIC.
8212       lt_prog_compiler_static='-non_shared'
8213       ;;
8214
8215     rdos*)
8216       lt_prog_compiler_static='-non_shared'
8217       ;;
8218
8219     solaris*)
8220       lt_prog_compiler_pic='-KPIC'
8221       lt_prog_compiler_static='-Bstatic'
8222       case $cc_basename in
8223       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8224         lt_prog_compiler_wl='-Qoption ld ';;
8225       *)
8226         lt_prog_compiler_wl='-Wl,';;
8227       esac
8228       ;;
8229
8230     sunos4*)
8231       lt_prog_compiler_wl='-Qoption ld '
8232       lt_prog_compiler_pic='-PIC'
8233       lt_prog_compiler_static='-Bstatic'
8234       ;;
8235
8236     sysv4 | sysv4.2uw2* | sysv4.3*)
8237       lt_prog_compiler_wl='-Wl,'
8238       lt_prog_compiler_pic='-KPIC'
8239       lt_prog_compiler_static='-Bstatic'
8240       ;;
8241
8242     sysv4*MP*)
8243       if test -d /usr/nec ;then
8244         lt_prog_compiler_pic='-Kconform_pic'
8245         lt_prog_compiler_static='-Bstatic'
8246       fi
8247       ;;
8248
8249     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8250       lt_prog_compiler_wl='-Wl,'
8251       lt_prog_compiler_pic='-KPIC'
8252       lt_prog_compiler_static='-Bstatic'
8253       ;;
8254
8255     unicos*)
8256       lt_prog_compiler_wl='-Wl,'
8257       lt_prog_compiler_can_build_shared=no
8258       ;;
8259
8260     uts4*)
8261       lt_prog_compiler_pic='-pic'
8262       lt_prog_compiler_static='-Bstatic'
8263       ;;
8264
8265     *)
8266       lt_prog_compiler_can_build_shared=no
8267       ;;
8268     esac
8269   fi
8270
8271 case $host_os in
8272   # For platforms which do not support PIC, -DPIC is meaningless:
8273   *djgpp*)
8274     lt_prog_compiler_pic=
8275     ;;
8276   *)
8277     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8278     ;;
8279 esac
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8282 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8283 if ${lt_cv_prog_compiler_pic+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8287 fi
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8289 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8290 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8291
8292 #
8293 # Check to make sure the PIC flag actually works.
8294 #
8295 if test -n "$lt_prog_compiler_pic"; then
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8297 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8298 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   lt_cv_prog_compiler_pic_works=no
8302    ac_outfile=conftest.$ac_objext
8303    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8304    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8305    # Insert the option either (1) after the last *FLAGS variable, or
8306    # (2) before a word containing "conftest.", or (3) at the end.
8307    # Note that $ac_compile itself does not contain backslashes and begins
8308    # with a dollar sign (not a hyphen), so the echo should work correctly.
8309    # The option is referenced via a variable to avoid confusing sed.
8310    lt_compile=`echo "$ac_compile" | $SED \
8311    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8312    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8313    -e 's:$: $lt_compiler_flag:'`
8314    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8315    (eval "$lt_compile" 2>conftest.err)
8316    ac_status=$?
8317    cat conftest.err >&5
8318    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319    if (exit $ac_status) && test -s "$ac_outfile"; then
8320      # The compiler can only warn and ignore the option if not recognized
8321      # So say no if there are warnings other than the usual output.
8322      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8323      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8324      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8325        lt_cv_prog_compiler_pic_works=yes
8326      fi
8327    fi
8328    $RM conftest*
8329
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8332 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8333
8334 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8335     case $lt_prog_compiler_pic in
8336      "" | " "*) ;;
8337      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8338      esac
8339 else
8340     lt_prog_compiler_pic=
8341      lt_prog_compiler_can_build_shared=no
8342 fi
8343
8344 fi
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 #
8357 # Check to make sure the static flag actually works.
8358 #
8359 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8361 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8362 if ${lt_cv_prog_compiler_static_works+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   lt_cv_prog_compiler_static_works=no
8366    save_LDFLAGS="$LDFLAGS"
8367    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8368    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8369    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8370      # The linker can only warn and ignore the option if not recognized
8371      # So say no if there are warnings
8372      if test -s conftest.err; then
8373        # Append any errors to the config.log.
8374        cat conftest.err 1>&5
8375        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8376        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8377        if diff conftest.exp conftest.er2 >/dev/null; then
8378          lt_cv_prog_compiler_static_works=yes
8379        fi
8380      else
8381        lt_cv_prog_compiler_static_works=yes
8382      fi
8383    fi
8384    $RM -r conftest*
8385    LDFLAGS="$save_LDFLAGS"
8386
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8389 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8390
8391 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8392     :
8393 else
8394     lt_prog_compiler_static=
8395 fi
8396
8397
8398
8399
8400
8401
8402
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8405 if ${lt_cv_prog_compiler_c_o+:} false; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   lt_cv_prog_compiler_c_o=no
8409    $RM -r conftest 2>/dev/null
8410    mkdir conftest
8411    cd conftest
8412    mkdir out
8413    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414
8415    lt_compiler_flag="-o out/conftest2.$ac_objext"
8416    # Insert the option either (1) after the last *FLAGS variable, or
8417    # (2) before a word containing "conftest.", or (3) at the end.
8418    # Note that $ac_compile itself does not contain backslashes and begins
8419    # with a dollar sign (not a hyphen), so the echo should work correctly.
8420    lt_compile=`echo "$ac_compile" | $SED \
8421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423    -e 's:$: $lt_compiler_flag:'`
8424    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8425    (eval "$lt_compile" 2>out/conftest.err)
8426    ac_status=$?
8427    cat out/conftest.err >&5
8428    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8430    then
8431      # The compiler can only warn and ignore the option if not recognized
8432      # So say no if there are warnings
8433      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8434      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436        lt_cv_prog_compiler_c_o=yes
8437      fi
8438    fi
8439    chmod u+w . 2>&5
8440    $RM conftest*
8441    # SGI C++ compiler will create directory out/ii_files/ for
8442    # template instantiation
8443    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8444    $RM out/* && rmdir out
8445    cd ..
8446    $RM -r conftest
8447    $RM conftest*
8448
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8452
8453
8454
8455
8456
8457
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8459 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8460 if ${lt_cv_prog_compiler_c_o+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   lt_cv_prog_compiler_c_o=no
8464    $RM -r conftest 2>/dev/null
8465    mkdir conftest
8466    cd conftest
8467    mkdir out
8468    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8469
8470    lt_compiler_flag="-o out/conftest2.$ac_objext"
8471    # Insert the option either (1) after the last *FLAGS variable, or
8472    # (2) before a word containing "conftest.", or (3) at the end.
8473    # Note that $ac_compile itself does not contain backslashes and begins
8474    # with a dollar sign (not a hyphen), so the echo should work correctly.
8475    lt_compile=`echo "$ac_compile" | $SED \
8476    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8478    -e 's:$: $lt_compiler_flag:'`
8479    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8480    (eval "$lt_compile" 2>out/conftest.err)
8481    ac_status=$?
8482    cat out/conftest.err >&5
8483    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8485    then
8486      # The compiler can only warn and ignore the option if not recognized
8487      # So say no if there are warnings
8488      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8489      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8490      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8491        lt_cv_prog_compiler_c_o=yes
8492      fi
8493    fi
8494    chmod u+w . 2>&5
8495    $RM conftest*
8496    # SGI C++ compiler will create directory out/ii_files/ for
8497    # template instantiation
8498    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8499    $RM out/* && rmdir out
8500    cd ..
8501    $RM -r conftest
8502    $RM conftest*
8503
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8506 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8507
8508
8509
8510
8511 hard_links="nottested"
8512 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8513   # do not overwrite the value of need_locks provided by the user
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8515 $as_echo_n "checking if we can lock with hard links... " >&6; }
8516   hard_links=yes
8517   $RM conftest*
8518   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8519   touch conftest.a
8520   ln conftest.a conftest.b 2>&5 || hard_links=no
8521   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8523 $as_echo "$hard_links" >&6; }
8524   if test "$hard_links" = no; then
8525     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8526 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8527     need_locks=warn
8528   fi
8529 else
8530   need_locks=no
8531 fi
8532
8533
8534
8535
8536
8537
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8540
8541   runpath_var=
8542   allow_undefined_flag=
8543   always_export_symbols=no
8544   archive_cmds=
8545   archive_expsym_cmds=
8546   compiler_needs_object=no
8547   enable_shared_with_static_runtimes=no
8548   export_dynamic_flag_spec=
8549   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8550   hardcode_automatic=no
8551   hardcode_direct=no
8552   hardcode_direct_absolute=no
8553   hardcode_libdir_flag_spec=
8554   hardcode_libdir_flag_spec_ld=
8555   hardcode_libdir_separator=
8556   hardcode_minus_L=no
8557   hardcode_shlibpath_var=unsupported
8558   inherit_rpath=no
8559   link_all_deplibs=unknown
8560   module_cmds=
8561   module_expsym_cmds=
8562   old_archive_from_new_cmds=
8563   old_archive_from_expsyms_cmds=
8564   thread_safe_flag_spec=
8565   whole_archive_flag_spec=
8566   # include_expsyms should be a list of space-separated symbols to be *always*
8567   # included in the symbol list
8568   include_expsyms=
8569   # exclude_expsyms can be an extended regexp of symbols to exclude
8570   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8571   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8572   # as well as any symbol that contains `d'.
8573   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8574   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8575   # platforms (ab)use it in PIC code, but their linkers get confused if
8576   # the symbol is explicitly referenced.  Since portable code cannot
8577   # rely on this symbol name, it's probably fine to never include it in
8578   # preloaded symbol tables.
8579   # Exclude shared library initialization/finalization symbols.
8580   extract_expsyms_cmds=
8581
8582   case $host_os in
8583   cygwin* | mingw* | pw32* | cegcc*)
8584     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8585     # When not using gcc, we currently assume that we are using
8586     # Microsoft Visual C++.
8587     if test "$GCC" != yes; then
8588       with_gnu_ld=no
8589     fi
8590     ;;
8591   interix*)
8592     # we just hope/assume this is gcc and not c89 (= MSVC++)
8593     with_gnu_ld=yes
8594     ;;
8595   openbsd*)
8596     with_gnu_ld=no
8597     ;;
8598   esac
8599
8600   ld_shlibs=yes
8601
8602   # On some targets, GNU ld is compatible enough with the native linker
8603   # that we're better off using the native interface for both.
8604   lt_use_gnu_ld_interface=no
8605   if test "$with_gnu_ld" = yes; then
8606     case $host_os in
8607       aix*)
8608         # The AIX port of GNU ld has always aspired to compatibility
8609         # with the native linker.  However, as the warning in the GNU ld
8610         # block says, versions before 2.19.5* couldn't really create working
8611         # shared libraries, regardless of the interface used.
8612         case `$LD -v 2>&1` in
8613           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8614           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8615           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8616           *)
8617             lt_use_gnu_ld_interface=yes
8618             ;;
8619         esac
8620         ;;
8621       *)
8622         lt_use_gnu_ld_interface=yes
8623         ;;
8624     esac
8625   fi
8626
8627   if test "$lt_use_gnu_ld_interface" = yes; then
8628     # If archive_cmds runs LD, not CC, wlarc should be empty
8629     wlarc='${wl}'
8630
8631     # Set some defaults for GNU ld with shared library support. These
8632     # are reset later if shared libraries are not supported. Putting them
8633     # here allows them to be overridden if necessary.
8634     runpath_var=LD_RUN_PATH
8635     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636     export_dynamic_flag_spec='${wl}--export-dynamic'
8637     # ancient GNU ld didn't support --whole-archive et. al.
8638     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8639       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8640     else
8641       whole_archive_flag_spec=
8642     fi
8643     supports_anon_versioning=no
8644     case `$LD -v 2>&1` in
8645       *GNU\ gold*) supports_anon_versioning=yes ;;
8646       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8647       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8648       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8649       *\ 2.11.*) ;; # other 2.11 versions
8650       *) supports_anon_versioning=yes ;;
8651     esac
8652
8653     # See if GNU ld supports shared libraries.
8654     case $host_os in
8655     aix[3-9]*)
8656       # On AIX/PPC, the GNU linker is very broken
8657       if test "$host_cpu" != ia64; then
8658         ld_shlibs=no
8659         cat <<_LT_EOF 1>&2
8660
8661 *** Warning: the GNU linker, at least up to release 2.19, is reported
8662 *** to be unable to reliably create shared libraries on AIX.
8663 *** Therefore, libtool is disabling shared libraries support.  If you
8664 *** really care for shared libraries, you may want to install binutils
8665 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8666 *** You will then need to restart the configuration process.
8667
8668 _LT_EOF
8669       fi
8670       ;;
8671
8672     amigaos*)
8673       case $host_cpu in
8674       powerpc)
8675             # see comment about AmigaOS4 .so support
8676             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677             archive_expsym_cmds=''
8678         ;;
8679       m68k)
8680             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)'
8681             hardcode_libdir_flag_spec='-L$libdir'
8682             hardcode_minus_L=yes
8683         ;;
8684       esac
8685       ;;
8686
8687     beos*)
8688       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689         allow_undefined_flag=unsupported
8690         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8691         # support --undefined.  This deserves some investigation.  FIXME
8692         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693       else
8694         ld_shlibs=no
8695       fi
8696       ;;
8697
8698     cygwin* | mingw* | pw32* | cegcc*)
8699       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8700       # as there is no search path for DLLs.
8701       hardcode_libdir_flag_spec='-L$libdir'
8702       export_dynamic_flag_spec='${wl}--export-all-symbols'
8703       allow_undefined_flag=unsupported
8704       always_export_symbols=no
8705       enable_shared_with_static_runtimes=yes
8706       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'
8707       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8708
8709       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8711         # If the export-symbols file already is a .def file (1st line
8712         # is EXPORTS), use it as is; otherwise, prepend...
8713         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8714           cp $export_symbols $output_objdir/$soname.def;
8715         else
8716           echo EXPORTS > $output_objdir/$soname.def;
8717           cat $export_symbols >> $output_objdir/$soname.def;
8718         fi~
8719         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8720       else
8721         ld_shlibs=no
8722       fi
8723       ;;
8724
8725     haiku*)
8726       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727       link_all_deplibs=yes
8728       ;;
8729
8730     interix[3-9]*)
8731       hardcode_direct=no
8732       hardcode_shlibpath_var=no
8733       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8734       export_dynamic_flag_spec='${wl}-E'
8735       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8736       # Instead, shared libraries are loaded at an image base (0x10000000 by
8737       # default) and relocated if they conflict, which is a slow very memory
8738       # consuming and fragmenting process.  To avoid this, we pick a random,
8739       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8740       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8741       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8742       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'
8743       ;;
8744
8745     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8746       tmp_diet=no
8747       if test "$host_os" = linux-dietlibc; then
8748         case $cc_basename in
8749           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8750         esac
8751       fi
8752       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8753          && test "$tmp_diet" = no
8754       then
8755         tmp_addflag=' $pic_flag'
8756         tmp_sharedflag='-shared'
8757         case $cc_basename,$host_cpu in
8758         pgcc*)                          # Portland Group C compiler
8759           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'
8760           tmp_addflag=' $pic_flag'
8761           ;;
8762         pgf77* | pgf90* | pgf95* | pgfortran*)
8763                                         # Portland Group f77 and f90 compilers
8764           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'
8765           tmp_addflag=' $pic_flag -Mnomain' ;;
8766         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8767           tmp_addflag=' -i_dynamic' ;;
8768         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8769           tmp_addflag=' -i_dynamic -nofor_main' ;;
8770         ifc* | ifort*)                  # Intel Fortran compiler
8771           tmp_addflag=' -nofor_main' ;;
8772         lf95*)                          # Lahey Fortran 8.1
8773           whole_archive_flag_spec=
8774           tmp_sharedflag='--shared' ;;
8775         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8776           tmp_sharedflag='-qmkshrobj'
8777           tmp_addflag= ;;
8778         nvcc*)  # Cuda Compiler Driver 2.2
8779           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'
8780           compiler_needs_object=yes
8781           ;;
8782         esac
8783         case `$CC -V 2>&1 | sed 5q` in
8784         *Sun\ C*)                       # Sun C 5.9
8785           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'
8786           compiler_needs_object=yes
8787           tmp_sharedflag='-G' ;;
8788         *Sun\ F*)                       # Sun Fortran 8.3
8789           tmp_sharedflag='-G' ;;
8790         esac
8791         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792
8793         if test "x$supports_anon_versioning" = xyes; then
8794           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8795             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8796             echo "local: *; };" >> $output_objdir/$libname.ver~
8797             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8798         fi
8799
8800         case $cc_basename in
8801         xlf* | bgf* | bgxlf* | mpixlf*)
8802           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8803           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8804           hardcode_libdir_flag_spec=
8805           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8806           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8807           if test "x$supports_anon_versioning" = xyes; then
8808             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8809               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8810               echo "local: *; };" >> $output_objdir/$libname.ver~
8811               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8812           fi
8813           ;;
8814         esac
8815       else
8816         ld_shlibs=no
8817       fi
8818       ;;
8819
8820     netbsd*)
8821       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8822         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8823         wlarc=
8824       else
8825         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8827       fi
8828       ;;
8829
8830     solaris*)
8831       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8832         ld_shlibs=no
8833         cat <<_LT_EOF 1>&2
8834
8835 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8836 *** create shared libraries on Solaris systems.  Therefore, libtool
8837 *** is disabling shared libraries support.  We urge you to upgrade GNU
8838 *** binutils to release 2.9.1 or newer.  Another option is to modify
8839 *** your PATH or compiler configuration so that the native linker is
8840 *** used, and then restart.
8841
8842 _LT_EOF
8843       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8844         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8846       else
8847         ld_shlibs=no
8848       fi
8849       ;;
8850
8851     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8852       case `$LD -v 2>&1` in
8853         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8854         ld_shlibs=no
8855         cat <<_LT_EOF 1>&2
8856
8857 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8858 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8859 *** is disabling shared libraries support.  We urge you to upgrade GNU
8860 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8861 *** your PATH or compiler configuration so that the native linker is
8862 *** used, and then restart.
8863
8864 _LT_EOF
8865         ;;
8866         *)
8867           # For security reasons, it is highly recommended that you always
8868           # use absolute paths for naming shared libraries, and exclude the
8869           # DT_RUNPATH tag from executables and libraries.  But doing so
8870           # requires that you compile everything twice, which is a pain.
8871           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8872             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8875           else
8876             ld_shlibs=no
8877           fi
8878         ;;
8879       esac
8880       ;;
8881
8882     sunos4*)
8883       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8884       wlarc=
8885       hardcode_direct=yes
8886       hardcode_shlibpath_var=no
8887       ;;
8888
8889     *)
8890       if $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     esac
8898
8899     if test "$ld_shlibs" = no; then
8900       runpath_var=
8901       hardcode_libdir_flag_spec=
8902       export_dynamic_flag_spec=
8903       whole_archive_flag_spec=
8904     fi
8905   else
8906     # PORTME fill in a description of your system's linker (not GNU ld)
8907     case $host_os in
8908     aix3*)
8909       allow_undefined_flag=unsupported
8910       always_export_symbols=yes
8911       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'
8912       # Note: this linker hardcodes the directories in LIBPATH if there
8913       # are no directories specified by -L.
8914       hardcode_minus_L=yes
8915       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8916         # Neither direct hardcoding nor static linking is supported with a
8917         # broken collect2.
8918         hardcode_direct=unsupported
8919       fi
8920       ;;
8921
8922     aix[4-9]*)
8923       if test "$host_cpu" = ia64; then
8924         # On IA64, the linker does run time linking by default, so we don't
8925         # have to do anything special.
8926         aix_use_runtimelinking=no
8927         exp_sym_flag='-Bexport'
8928         no_entry_flag=""
8929       else
8930         # If we're using GNU nm, then we don't want the "-C" option.
8931         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8932         # Also, AIX nm treats weak defined symbols like other global
8933         # defined symbols, whereas GNU nm marks them as "W".
8934         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8935           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'
8936         else
8937           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'
8938         fi
8939         aix_use_runtimelinking=no
8940
8941         # Test if we are trying to use run time linking or normal
8942         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8943         # need to do runtime linking.
8944         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8945           for ld_flag in $LDFLAGS; do
8946           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8947             aix_use_runtimelinking=yes
8948             break
8949           fi
8950           done
8951           ;;
8952         esac
8953
8954         exp_sym_flag='-bexport'
8955         no_entry_flag='-bnoentry'
8956       fi
8957
8958       # When large executables or shared objects are built, AIX ld can
8959       # have problems creating the table of contents.  If linking a library
8960       # or program results in "error TOC overflow" add -mminimal-toc to
8961       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8962       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8963
8964       archive_cmds=''
8965       hardcode_direct=yes
8966       hardcode_direct_absolute=yes
8967       hardcode_libdir_separator=':'
8968       link_all_deplibs=yes
8969       file_list_spec='${wl}-f,'
8970
8971       if test "$GCC" = yes; then
8972         case $host_os in aix4.[012]|aix4.[012].*)
8973         # We only want to do this on AIX 4.2 and lower, the check
8974         # below for broken collect2 doesn't work under 4.3+
8975           collect2name=`${CC} -print-prog-name=collect2`
8976           if test -f "$collect2name" &&
8977            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8978           then
8979           # We have reworked collect2
8980           :
8981           else
8982           # We have old collect2
8983           hardcode_direct=unsupported
8984           # It fails to find uninstalled libraries when the uninstalled
8985           # path is not listed in the libpath.  Setting hardcode_minus_L
8986           # to unsupported forces relinking
8987           hardcode_minus_L=yes
8988           hardcode_libdir_flag_spec='-L$libdir'
8989           hardcode_libdir_separator=
8990           fi
8991           ;;
8992         esac
8993         shared_flag='-shared'
8994         if test "$aix_use_runtimelinking" = yes; then
8995           shared_flag="$shared_flag "'${wl}-G'
8996         fi
8997       else
8998         # not using gcc
8999         if test "$host_cpu" = ia64; then
9000         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9001         # chokes on -Wl,-G. The following line is correct:
9002           shared_flag='-G'
9003         else
9004           if test "$aix_use_runtimelinking" = yes; then
9005             shared_flag='${wl}-G'
9006           else
9007             shared_flag='${wl}-bM:SRE'
9008           fi
9009         fi
9010       fi
9011
9012       export_dynamic_flag_spec='${wl}-bexpall'
9013       # It seems that -bexpall does not export symbols beginning with
9014       # underscore (_), so it is better to generate a list of symbols to export.
9015       always_export_symbols=yes
9016       if test "$aix_use_runtimelinking" = yes; then
9017         # Warning - without using the other runtime loading flags (-brtl),
9018         # -berok will link without error, but may produce a broken library.
9019         allow_undefined_flag='-berok'
9020         # Determine the default libpath from the value encoded in an
9021         # empty executable.
9022         if test "${lt_cv_aix_libpath+set}" = set; then
9023   aix_libpath=$lt_cv_aix_libpath
9024 else
9025   if ${lt_cv_aix_libpath_+:} false; then :
9026   $as_echo_n "(cached) " >&6
9027 else
9028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h.  */
9030
9031 int
9032 main ()
9033 {
9034
9035   ;
9036   return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_link "$LINENO"; then :
9040
9041   lt_aix_libpath_sed='
9042       /Import File Strings/,/^$/ {
9043           /^0/ {
9044               s/^0  *\([^ ]*\) *$/\1/
9045               p
9046           }
9047       }'
9048   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9049   # Check for a 64-bit object if we didn't find anything.
9050   if test -z "$lt_cv_aix_libpath_"; then
9051     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052   fi
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext \
9055     conftest$ac_exeext conftest.$ac_ext
9056   if test -z "$lt_cv_aix_libpath_"; then
9057     lt_cv_aix_libpath_="/usr/lib:/lib"
9058   fi
9059
9060 fi
9061
9062   aix_libpath=$lt_cv_aix_libpath_
9063 fi
9064
9065         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9066         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"
9067       else
9068         if test "$host_cpu" = ia64; then
9069           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9070           allow_undefined_flag="-z nodefs"
9071           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"
9072         else
9073          # Determine the default libpath from the value encoded in an
9074          # empty executable.
9075          if test "${lt_cv_aix_libpath+set}" = set; then
9076   aix_libpath=$lt_cv_aix_libpath
9077 else
9078   if ${lt_cv_aix_libpath_+:} false; then :
9079   $as_echo_n "(cached) " >&6
9080 else
9081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h.  */
9083
9084 int
9085 main ()
9086 {
9087
9088   ;
9089   return 0;
9090 }
9091 _ACEOF
9092 if ac_fn_c_try_link "$LINENO"; then :
9093
9094   lt_aix_libpath_sed='
9095       /Import File Strings/,/^$/ {
9096           /^0/ {
9097               s/^0  *\([^ ]*\) *$/\1/
9098               p
9099           }
9100       }'
9101   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102   # Check for a 64-bit object if we didn't find anything.
9103   if test -z "$lt_cv_aix_libpath_"; then
9104     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9105   fi
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext \
9108     conftest$ac_exeext conftest.$ac_ext
9109   if test -z "$lt_cv_aix_libpath_"; then
9110     lt_cv_aix_libpath_="/usr/lib:/lib"
9111   fi
9112
9113 fi
9114
9115   aix_libpath=$lt_cv_aix_libpath_
9116 fi
9117
9118          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9119           # Warning - without using the other run time loading flags,
9120           # -berok will link without error, but may produce a broken library.
9121           no_undefined_flag=' ${wl}-bernotok'
9122           allow_undefined_flag=' ${wl}-berok'
9123           if test "$with_gnu_ld" = yes; then
9124             # We only use this code for GNU lds that support --whole-archive.
9125             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9126           else
9127             # Exported symbols can be pulled into shared objects from archives
9128             whole_archive_flag_spec='$convenience'
9129           fi
9130           archive_cmds_need_lc=yes
9131           # This is similar to how AIX traditionally builds its shared libraries.
9132           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'
9133         fi
9134       fi
9135       ;;
9136
9137     amigaos*)
9138       case $host_cpu in
9139       powerpc)
9140             # see comment about AmigaOS4 .so support
9141             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142             archive_expsym_cmds=''
9143         ;;
9144       m68k)
9145             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)'
9146             hardcode_libdir_flag_spec='-L$libdir'
9147             hardcode_minus_L=yes
9148         ;;
9149       esac
9150       ;;
9151
9152     bsdi[45]*)
9153       export_dynamic_flag_spec=-rdynamic
9154       ;;
9155
9156     cygwin* | mingw* | pw32* | cegcc*)
9157       # When not using gcc, we currently assume that we are using
9158       # Microsoft Visual C++.
9159       # hardcode_libdir_flag_spec is actually meaningless, as there is
9160       # no search path for DLLs.
9161       case $cc_basename in
9162       cl*)
9163         # Native MSVC
9164         hardcode_libdir_flag_spec=' '
9165         allow_undefined_flag=unsupported
9166         always_export_symbols=yes
9167         file_list_spec='@'
9168         # Tell ltmain to make .lib files, not .a files.
9169         libext=lib
9170         # Tell ltmain to make .dll files, not .so files.
9171         shrext_cmds=".dll"
9172         # FIXME: Setting linknames here is a bad hack.
9173         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9174         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9175             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9176           else
9177             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9178           fi~
9179           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9180           linknames='
9181         # The linker will not automatically build a static lib if we build a DLL.
9182         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9183         enable_shared_with_static_runtimes=yes
9184         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9185         # Don't use ranlib
9186         old_postinstall_cmds='chmod 644 $oldlib'
9187         postlink_cmds='lt_outputfile="@OUTPUT@"~
9188           lt_tool_outputfile="@TOOL_OUTPUT@"~
9189           case $lt_outputfile in
9190             *.exe|*.EXE) ;;
9191             *)
9192               lt_outputfile="$lt_outputfile.exe"
9193               lt_tool_outputfile="$lt_tool_outputfile.exe"
9194               ;;
9195           esac~
9196           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9197             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9198             $RM "$lt_outputfile.manifest";
9199           fi'
9200         ;;
9201       *)
9202         # Assume MSVC wrapper
9203         hardcode_libdir_flag_spec=' '
9204         allow_undefined_flag=unsupported
9205         # Tell ltmain to make .lib files, not .a files.
9206         libext=lib
9207         # Tell ltmain to make .dll files, not .so files.
9208         shrext_cmds=".dll"
9209         # FIXME: Setting linknames here is a bad hack.
9210         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9211         # The linker will automatically build a .lib file if we build a DLL.
9212         old_archive_from_new_cmds='true'
9213         # FIXME: Should let the user specify the lib program.
9214         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9215         enable_shared_with_static_runtimes=yes
9216         ;;
9217       esac
9218       ;;
9219
9220     darwin* | rhapsody*)
9221
9222
9223   archive_cmds_need_lc=no
9224   hardcode_direct=no
9225   hardcode_automatic=yes
9226   hardcode_shlibpath_var=unsupported
9227   if test "$lt_cv_ld_force_load" = "yes"; then
9228     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\"`'
9229   else
9230     whole_archive_flag_spec=''
9231   fi
9232   link_all_deplibs=yes
9233   allow_undefined_flag="$_lt_dar_allow_undefined"
9234   case $cc_basename in
9235      ifort*) _lt_dar_can_shared=yes ;;
9236      *) _lt_dar_can_shared=$GCC ;;
9237   esac
9238   if test "$_lt_dar_can_shared" = "yes"; then
9239     output_verbose_link_cmd=func_echo_all
9240     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9241     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9242     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}"
9243     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}"
9244
9245   else
9246   ld_shlibs=no
9247   fi
9248
9249       ;;
9250
9251     dgux*)
9252       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253       hardcode_libdir_flag_spec='-L$libdir'
9254       hardcode_shlibpath_var=no
9255       ;;
9256
9257     freebsd1*)
9258       ld_shlibs=no
9259       ;;
9260
9261     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9262     # support.  Future versions do this automatically, but an explicit c++rt0.o
9263     # does not break anything, and helps significantly (at the cost of a little
9264     # extra space).
9265     freebsd2.2*)
9266       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9267       hardcode_libdir_flag_spec='-R$libdir'
9268       hardcode_direct=yes
9269       hardcode_shlibpath_var=no
9270       ;;
9271
9272     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9273     freebsd2*)
9274       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9275       hardcode_direct=yes
9276       hardcode_minus_L=yes
9277       hardcode_shlibpath_var=no
9278       ;;
9279
9280     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9281     freebsd* | dragonfly*)
9282       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9283       hardcode_libdir_flag_spec='-R$libdir'
9284       hardcode_direct=yes
9285       hardcode_shlibpath_var=no
9286       ;;
9287
9288     hpux9*)
9289       if test "$GCC" = yes; then
9290         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'
9291       else
9292         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'
9293       fi
9294       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9295       hardcode_libdir_separator=:
9296       hardcode_direct=yes
9297
9298       # hardcode_minus_L: Not really in the search PATH,
9299       # but as the default location of the library.
9300       hardcode_minus_L=yes
9301       export_dynamic_flag_spec='${wl}-E'
9302       ;;
9303
9304     hpux10*)
9305       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9306         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9307       else
9308         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9309       fi
9310       if test "$with_gnu_ld" = no; then
9311         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9312         hardcode_libdir_flag_spec_ld='+b $libdir'
9313         hardcode_libdir_separator=:
9314         hardcode_direct=yes
9315         hardcode_direct_absolute=yes
9316         export_dynamic_flag_spec='${wl}-E'
9317         # hardcode_minus_L: Not really in the search PATH,
9318         # but as the default location of the library.
9319         hardcode_minus_L=yes
9320       fi
9321       ;;
9322
9323     hpux11*)
9324       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9325         case $host_cpu in
9326         hppa*64*)
9327           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9328           ;;
9329         ia64*)
9330           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9331           ;;
9332         *)
9333           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9334           ;;
9335         esac
9336       else
9337         case $host_cpu in
9338         hppa*64*)
9339           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9340           ;;
9341         ia64*)
9342           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9343           ;;
9344         *)
9345
9346           # Older versions of the 11.00 compiler do not understand -b yet
9347           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9348           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9349 $as_echo_n "checking if $CC understands -b... " >&6; }
9350 if ${lt_cv_prog_compiler__b+:} false; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   lt_cv_prog_compiler__b=no
9354    save_LDFLAGS="$LDFLAGS"
9355    LDFLAGS="$LDFLAGS -b"
9356    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9357    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9358      # The linker can only warn and ignore the option if not recognized
9359      # So say no if there are warnings
9360      if test -s conftest.err; then
9361        # Append any errors to the config.log.
9362        cat conftest.err 1>&5
9363        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9364        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9365        if diff conftest.exp conftest.er2 >/dev/null; then
9366          lt_cv_prog_compiler__b=yes
9367        fi
9368      else
9369        lt_cv_prog_compiler__b=yes
9370      fi
9371    fi
9372    $RM -r conftest*
9373    LDFLAGS="$save_LDFLAGS"
9374
9375 fi
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9377 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9378
9379 if test x"$lt_cv_prog_compiler__b" = xyes; then
9380     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9381 else
9382     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9383 fi
9384
9385           ;;
9386         esac
9387       fi
9388       if test "$with_gnu_ld" = no; then
9389         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9390         hardcode_libdir_separator=:
9391
9392         case $host_cpu in
9393         hppa*64*|ia64*)
9394           hardcode_direct=no
9395           hardcode_shlibpath_var=no
9396           ;;
9397         *)
9398           hardcode_direct=yes
9399           hardcode_direct_absolute=yes
9400           export_dynamic_flag_spec='${wl}-E'
9401
9402           # hardcode_minus_L: Not really in the search PATH,
9403           # but as the default location of the library.
9404           hardcode_minus_L=yes
9405           ;;
9406         esac
9407       fi
9408       ;;
9409
9410     irix5* | irix6* | nonstopux*)
9411       if test "$GCC" = yes; then
9412         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'
9413         # Try to use the -exported_symbol ld option, if it does not
9414         # work, assume that -exports_file does not work either and
9415         # implicitly export all symbols.
9416         # This should be the same for all languages, so no per-tag cache variable.
9417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9418 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9419 if ${lt_cv_irix_exported_symbol+:} false; then :
9420   $as_echo_n "(cached) " >&6
9421 else
9422   save_LDFLAGS="$LDFLAGS"
9423            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9424            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h.  */
9426 int foo (void) { return 0; }
9427 _ACEOF
9428 if ac_fn_c_try_link "$LINENO"; then :
9429   lt_cv_irix_exported_symbol=yes
9430 else
9431   lt_cv_irix_exported_symbol=no
9432 fi
9433 rm -f core conftest.err conftest.$ac_objext \
9434     conftest$ac_exeext conftest.$ac_ext
9435            LDFLAGS="$save_LDFLAGS"
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9438 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9439         if test "$lt_cv_irix_exported_symbol" = yes; then
9440           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'
9441         fi
9442       else
9443         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'
9444         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'
9445       fi
9446       archive_cmds_need_lc='no'
9447       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448       hardcode_libdir_separator=:
9449       inherit_rpath=yes
9450       link_all_deplibs=yes
9451       ;;
9452
9453     netbsd*)
9454       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9455         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9456       else
9457         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9458       fi
9459       hardcode_libdir_flag_spec='-R$libdir'
9460       hardcode_direct=yes
9461       hardcode_shlibpath_var=no
9462       ;;
9463
9464     newsos6)
9465       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466       hardcode_direct=yes
9467       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468       hardcode_libdir_separator=:
9469       hardcode_shlibpath_var=no
9470       ;;
9471
9472     *nto* | *qnx*)
9473       ;;
9474
9475     openbsd*)
9476       if test -f /usr/libexec/ld.so; then
9477         hardcode_direct=yes
9478         hardcode_shlibpath_var=no
9479         hardcode_direct_absolute=yes
9480         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9481           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9482           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9483           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9484           export_dynamic_flag_spec='${wl}-E'
9485         else
9486           case $host_os in
9487            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9488              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489              hardcode_libdir_flag_spec='-R$libdir'
9490              ;;
9491            *)
9492              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9493              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9494              ;;
9495           esac
9496         fi
9497       else
9498         ld_shlibs=no
9499       fi
9500       ;;
9501
9502     os2*)
9503       hardcode_libdir_flag_spec='-L$libdir'
9504       hardcode_minus_L=yes
9505       allow_undefined_flag=unsupported
9506       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'
9507       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9508       ;;
9509
9510     osf3*)
9511       if test "$GCC" = yes; then
9512         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9513         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'
9514       else
9515         allow_undefined_flag=' -expect_unresolved \*'
9516         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'
9517       fi
9518       archive_cmds_need_lc='no'
9519       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520       hardcode_libdir_separator=:
9521       ;;
9522
9523     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9524       if test "$GCC" = yes; then
9525         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9526         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'
9527         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528       else
9529         allow_undefined_flag=' -expect_unresolved \*'
9530         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'
9531         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~
9532         $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'
9533
9534         # Both c and cxx compiler support -rpath directly
9535         hardcode_libdir_flag_spec='-rpath $libdir'
9536       fi
9537       archive_cmds_need_lc='no'
9538       hardcode_libdir_separator=:
9539       ;;
9540
9541     solaris*)
9542       no_undefined_flag=' -z defs'
9543       if test "$GCC" = yes; then
9544         wlarc='${wl}'
9545         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9546         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9547           $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'
9548       else
9549         case `$CC -V 2>&1` in
9550         *"Compilers 5.0"*)
9551           wlarc=''
9552           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9554           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9555           ;;
9556         *)
9557           wlarc='${wl}'
9558           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9559           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9560           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9561           ;;
9562         esac
9563       fi
9564       hardcode_libdir_flag_spec='-R$libdir'
9565       hardcode_shlibpath_var=no
9566       case $host_os in
9567       solaris2.[0-5] | solaris2.[0-5].*) ;;
9568       *)
9569         # The compiler driver will combine and reorder linker options,
9570         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9571         # but is careful enough not to reorder.
9572         # Supported since Solaris 2.6 (maybe 2.5.1?)
9573         if test "$GCC" = yes; then
9574           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9575         else
9576           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9577         fi
9578         ;;
9579       esac
9580       link_all_deplibs=yes
9581       ;;
9582
9583     sunos4*)
9584       if test "x$host_vendor" = xsequent; then
9585         # Use $CC to link under sequent, because it throws in some extra .o
9586         # files that make .init and .fini sections work.
9587         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9588       else
9589         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9590       fi
9591       hardcode_libdir_flag_spec='-L$libdir'
9592       hardcode_direct=yes
9593       hardcode_minus_L=yes
9594       hardcode_shlibpath_var=no
9595       ;;
9596
9597     sysv4)
9598       case $host_vendor in
9599         sni)
9600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601           hardcode_direct=yes # is this really true???
9602         ;;
9603         siemens)
9604           ## LD is ld it makes a PLAMLIB
9605           ## CC just makes a GrossModule.
9606           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9607           reload_cmds='$CC -r -o $output$reload_objs'
9608           hardcode_direct=no
9609         ;;
9610         motorola)
9611           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9613         ;;
9614       esac
9615       runpath_var='LD_RUN_PATH'
9616       hardcode_shlibpath_var=no
9617       ;;
9618
9619     sysv4.3*)
9620       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621       hardcode_shlibpath_var=no
9622       export_dynamic_flag_spec='-Bexport'
9623       ;;
9624
9625     sysv4*MP*)
9626       if test -d /usr/nec; then
9627         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628         hardcode_shlibpath_var=no
9629         runpath_var=LD_RUN_PATH
9630         hardcode_runpath_var=yes
9631         ld_shlibs=yes
9632       fi
9633       ;;
9634
9635     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9636       no_undefined_flag='${wl}-z,text'
9637       archive_cmds_need_lc=no
9638       hardcode_shlibpath_var=no
9639       runpath_var='LD_RUN_PATH'
9640
9641       if test "$GCC" = yes; then
9642         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9644       else
9645         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647       fi
9648       ;;
9649
9650     sysv5* | sco3.2v5* | sco5v6*)
9651       # Note: We can NOT use -z defs as we might desire, because we do not
9652       # link with -lc, and that would cause any symbols used from libc to
9653       # always be unresolved, which means just about no library would
9654       # ever link correctly.  If we're not using GNU ld we use -z text
9655       # though, which does catch some bad symbols but isn't as heavy-handed
9656       # as -z defs.
9657       no_undefined_flag='${wl}-z,text'
9658       allow_undefined_flag='${wl}-z,nodefs'
9659       archive_cmds_need_lc=no
9660       hardcode_shlibpath_var=no
9661       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9662       hardcode_libdir_separator=':'
9663       link_all_deplibs=yes
9664       export_dynamic_flag_spec='${wl}-Bexport'
9665       runpath_var='LD_RUN_PATH'
9666
9667       if test "$GCC" = yes; then
9668         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670       else
9671         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673       fi
9674       ;;
9675
9676     uts4*)
9677       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678       hardcode_libdir_flag_spec='-L$libdir'
9679       hardcode_shlibpath_var=no
9680       ;;
9681
9682     *)
9683       ld_shlibs=no
9684       ;;
9685     esac
9686
9687     if test x$host_vendor = xsni; then
9688       case $host in
9689       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9690         export_dynamic_flag_spec='${wl}-Blargedynsym'
9691         ;;
9692       esac
9693     fi
9694   fi
9695
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9697 $as_echo "$ld_shlibs" >&6; }
9698 test "$ld_shlibs" = no && can_build_shared=no
9699
9700 with_gnu_ld=$with_gnu_ld
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716 #
9717 # Do we need to explicitly link libc?
9718 #
9719 case "x$archive_cmds_need_lc" in
9720 x|xyes)
9721   # Assume -lc should be added
9722   archive_cmds_need_lc=yes
9723
9724   if test "$enable_shared" = yes && test "$GCC" = yes; then
9725     case $archive_cmds in
9726     *'~'*)
9727       # FIXME: we may have to deal with multi-command sequences.
9728       ;;
9729     '$CC '*)
9730       # Test whether the compiler implicitly links with -lc since on some
9731       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9732       # to ld, don't add -lc before -lgcc.
9733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9734 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9735 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   $RM conftest*
9739         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9740
9741         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9742   (eval $ac_compile) 2>&5
9743   ac_status=$?
9744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9745   test $ac_status = 0; } 2>conftest.err; then
9746           soname=conftest
9747           lib=conftest
9748           libobjs=conftest.$ac_objext
9749           deplibs=
9750           wl=$lt_prog_compiler_wl
9751           pic_flag=$lt_prog_compiler_pic
9752           compiler_flags=-v
9753           linker_flags=-v
9754           verstring=
9755           output_objdir=.
9756           libname=conftest
9757           lt_save_allow_undefined_flag=$allow_undefined_flag
9758           allow_undefined_flag=
9759           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9760   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9761   ac_status=$?
9762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9763   test $ac_status = 0; }
9764           then
9765             lt_cv_archive_cmds_need_lc=no
9766           else
9767             lt_cv_archive_cmds_need_lc=yes
9768           fi
9769           allow_undefined_flag=$lt_save_allow_undefined_flag
9770         else
9771           cat conftest.err 1>&5
9772         fi
9773         $RM conftest*
9774
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9777 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9778       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9779       ;;
9780     esac
9781   fi
9782   ;;
9783 esac
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9942 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9943
9944 if test "$GCC" = yes; then
9945   case $host_os in
9946     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9947     *) lt_awk_arg="/^libraries:/" ;;
9948   esac
9949   case $host_os in
9950     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9951     *) lt_sed_strip_eq="s,=/,/,g" ;;
9952   esac
9953   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9954   case $lt_search_path_spec in
9955   *\;*)
9956     # if the path contains ";" then we assume it to be the separator
9957     # otherwise default to the standard path separator (i.e. ":") - it is
9958     # assumed that no part of a normal pathname contains ";" but that should
9959     # okay in the real world where ";" in dirpaths is itself problematic.
9960     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9961     ;;
9962   *)
9963     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9964     ;;
9965   esac
9966   # Ok, now we have the path, separated by spaces, we can step through it
9967   # and add multilib dir if necessary.
9968   lt_tmp_lt_search_path_spec=
9969   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9970   for lt_sys_path in $lt_search_path_spec; do
9971     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9972       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9973     else
9974       test -d "$lt_sys_path" && \
9975         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9976     fi
9977   done
9978   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9979 BEGIN {RS=" "; FS="/|\n";} {
9980   lt_foo="";
9981   lt_count=0;
9982   for (lt_i = NF; lt_i > 0; lt_i--) {
9983     if ($lt_i != "" && $lt_i != ".") {
9984       if ($lt_i == "..") {
9985         lt_count++;
9986       } else {
9987         if (lt_count == 0) {
9988           lt_foo="/" $lt_i lt_foo;
9989         } else {
9990           lt_count--;
9991         }
9992       }
9993     }
9994   }
9995   if (lt_foo != "") { lt_freq[lt_foo]++; }
9996   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9997 }'`
9998   # AWK program above erroneously prepends '/' to C:/dos/paths
9999   # for these hosts.
10000   case $host_os in
10001     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10002       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10003   esac
10004   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10005 else
10006   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10007 fi
10008 library_names_spec=
10009 libname_spec='lib$name'
10010 soname_spec=
10011 shrext_cmds=".so"
10012 postinstall_cmds=
10013 postuninstall_cmds=
10014 finish_cmds=
10015 finish_eval=
10016 shlibpath_var=
10017 shlibpath_overrides_runpath=unknown
10018 version_type=none
10019 dynamic_linker="$host_os ld.so"
10020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10021 need_lib_prefix=unknown
10022 hardcode_into_libs=no
10023
10024 # when you set need_version to no, make sure it does not cause -set_version
10025 # flags to be left without arguments
10026 need_version=unknown
10027
10028 case $host_os in
10029 aix3*)
10030   version_type=linux
10031   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10032   shlibpath_var=LIBPATH
10033
10034   # AIX 3 has no versioning support, so we append a major version to the name.
10035   soname_spec='${libname}${release}${shared_ext}$major'
10036   ;;
10037
10038 aix[4-9]*)
10039   version_type=linux
10040   need_lib_prefix=no
10041   need_version=no
10042   hardcode_into_libs=yes
10043   if test "$host_cpu" = ia64; then
10044     # AIX 5 supports IA64
10045     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10046     shlibpath_var=LD_LIBRARY_PATH
10047   else
10048     # With GCC up to 2.95.x, collect2 would create an import file
10049     # for dependence libraries.  The import file would start with
10050     # the line `#! .'.  This would cause the generated library to
10051     # depend on `.', always an invalid library.  This was fixed in
10052     # development snapshots of GCC prior to 3.0.
10053     case $host_os in
10054       aix4 | aix4.[01] | aix4.[01].*)
10055       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10056            echo ' yes '
10057            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10058         :
10059       else
10060         can_build_shared=no
10061       fi
10062       ;;
10063     esac
10064     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10065     # soname into executable. Probably we can add versioning support to
10066     # collect2, so additional links can be useful in future.
10067     if test "$aix_use_runtimelinking" = yes; then
10068       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10069       # instead of lib<name>.a to let people know that these are not
10070       # typical AIX shared libraries.
10071       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072     else
10073       # We preserve .a as extension for shared libraries through AIX4.2
10074       # and later when we are not doing run time linking.
10075       library_names_spec='${libname}${release}.a $libname.a'
10076       soname_spec='${libname}${release}${shared_ext}$major'
10077     fi
10078     shlibpath_var=LIBPATH
10079   fi
10080   ;;
10081
10082 amigaos*)
10083   case $host_cpu in
10084   powerpc)
10085     # Since July 2007 AmigaOS4 officially supports .so libraries.
10086     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088     ;;
10089   m68k)
10090     library_names_spec='$libname.ixlibrary $libname.a'
10091     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10092     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'
10093     ;;
10094   esac
10095   ;;
10096
10097 beos*)
10098   library_names_spec='${libname}${shared_ext}'
10099   dynamic_linker="$host_os ld.so"
10100   shlibpath_var=LIBRARY_PATH
10101   ;;
10102
10103 bsdi[45]*)
10104   version_type=linux
10105   need_version=no
10106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107   soname_spec='${libname}${release}${shared_ext}$major'
10108   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10109   shlibpath_var=LD_LIBRARY_PATH
10110   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10111   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10112   # the default ld.so.conf also contains /usr/contrib/lib and
10113   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10114   # libtool to hard-code these into programs
10115   ;;
10116
10117 cygwin* | mingw* | pw32* | cegcc*)
10118   version_type=windows
10119   shrext_cmds=".dll"
10120   need_version=no
10121   need_lib_prefix=no
10122
10123   case $GCC,$cc_basename in
10124   yes,*)
10125     # gcc
10126     library_names_spec='$libname.dll.a'
10127     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10128     postinstall_cmds='base_file=`basename \${file}`~
10129       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10130       dldir=$destdir/`dirname \$dlpath`~
10131       test -d \$dldir || mkdir -p \$dldir~
10132       $install_prog $dir/$dlname \$dldir/$dlname~
10133       chmod a+x \$dldir/$dlname~
10134       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10135         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10136       fi'
10137     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10138       dlpath=$dir/\$dldll~
10139        $RM \$dlpath'
10140     shlibpath_overrides_runpath=yes
10141
10142     case $host_os in
10143     cygwin*)
10144       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10145       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10146
10147       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10148       ;;
10149     mingw* | cegcc*)
10150       # MinGW DLLs use traditional 'lib' prefix
10151       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10152       ;;
10153     pw32*)
10154       # pw32 DLLs use 'pw' prefix rather than 'lib'
10155       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10156       ;;
10157     esac
10158     dynamic_linker='Win32 ld.exe'
10159     ;;
10160
10161   *,cl*)
10162     # Native MSVC
10163     libname_spec='$name'
10164     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10165     library_names_spec='${libname}.dll.lib'
10166
10167     case $build_os in
10168     mingw*)
10169       sys_lib_search_path_spec=
10170       lt_save_ifs=$IFS
10171       IFS=';'
10172       for lt_path in $LIB
10173       do
10174         IFS=$lt_save_ifs
10175         # Let DOS variable expansion print the short 8.3 style file name.
10176         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10177         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10178       done
10179       IFS=$lt_save_ifs
10180       # Convert to MSYS style.
10181       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10182       ;;
10183     cygwin*)
10184       # Convert to unix form, then to dos form, then back to unix form
10185       # but this time dos style (no spaces!) so that the unix form looks
10186       # like /cygdrive/c/PROGRA~1:/cygdr...
10187       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10188       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10189       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10190       ;;
10191     *)
10192       sys_lib_search_path_spec="$LIB"
10193       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10194         # It is most probably a Windows format PATH.
10195         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10196       else
10197         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10198       fi
10199       # FIXME: find the short name or the path components, as spaces are
10200       # common. (e.g. "Program Files" -> "PROGRA~1")
10201       ;;
10202     esac
10203
10204     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10205     postinstall_cmds='base_file=`basename \${file}`~
10206       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10207       dldir=$destdir/`dirname \$dlpath`~
10208       test -d \$dldir || mkdir -p \$dldir~
10209       $install_prog $dir/$dlname \$dldir/$dlname'
10210     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10211       dlpath=$dir/\$dldll~
10212        $RM \$dlpath'
10213     shlibpath_overrides_runpath=yes
10214     dynamic_linker='Win32 link.exe'
10215     ;;
10216
10217   *)
10218     # Assume MSVC wrapper
10219     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10220     dynamic_linker='Win32 ld.exe'
10221     ;;
10222   esac
10223   # FIXME: first we should search . and the directory the executable is in
10224   shlibpath_var=PATH
10225   ;;
10226
10227 darwin* | rhapsody*)
10228   dynamic_linker="$host_os dyld"
10229   version_type=darwin
10230   need_lib_prefix=no
10231   need_version=no
10232   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10233   soname_spec='${libname}${release}${major}$shared_ext'
10234   shlibpath_overrides_runpath=yes
10235   shlibpath_var=DYLD_LIBRARY_PATH
10236   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10237
10238   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10239   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10240   ;;
10241
10242 dgux*)
10243   version_type=linux
10244   need_lib_prefix=no
10245   need_version=no
10246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10247   soname_spec='${libname}${release}${shared_ext}$major'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   ;;
10250
10251 freebsd1*)
10252   dynamic_linker=no
10253   ;;
10254
10255 freebsd* | dragonfly*)
10256   # DragonFly does not have aout.  When/if they implement a new
10257   # versioning mechanism, adjust this.
10258   if test -x /usr/bin/objformat; then
10259     objformat=`/usr/bin/objformat`
10260   else
10261     case $host_os in
10262     freebsd[123]*) objformat=aout ;;
10263     *) objformat=elf ;;
10264     esac
10265   fi
10266   version_type=freebsd-$objformat
10267   case $version_type in
10268     freebsd-elf*)
10269       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10270       need_version=no
10271       need_lib_prefix=no
10272       ;;
10273     freebsd-*)
10274       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10275       need_version=yes
10276       ;;
10277   esac
10278   shlibpath_var=LD_LIBRARY_PATH
10279   case $host_os in
10280   freebsd2*)
10281     shlibpath_overrides_runpath=yes
10282     ;;
10283   freebsd3.[01]* | freebsdelf3.[01]*)
10284     shlibpath_overrides_runpath=yes
10285     hardcode_into_libs=yes
10286     ;;
10287   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10288   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10289     shlibpath_overrides_runpath=no
10290     hardcode_into_libs=yes
10291     ;;
10292   *) # from 4.6 on, and DragonFly
10293     shlibpath_overrides_runpath=yes
10294     hardcode_into_libs=yes
10295     ;;
10296   esac
10297   ;;
10298
10299 gnu*)
10300   version_type=linux
10301   need_lib_prefix=no
10302   need_version=no
10303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304   soname_spec='${libname}${release}${shared_ext}$major'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   hardcode_into_libs=yes
10307   ;;
10308
10309 haiku*)
10310   version_type=linux
10311   need_lib_prefix=no
10312   need_version=no
10313   dynamic_linker="$host_os runtime_loader"
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315   soname_spec='${libname}${release}${shared_ext}$major'
10316   shlibpath_var=LIBRARY_PATH
10317   shlibpath_overrides_runpath=yes
10318   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10319   hardcode_into_libs=yes
10320   ;;
10321
10322 hpux9* | hpux10* | hpux11*)
10323   # Give a soname corresponding to the major version so that dld.sl refuses to
10324   # link against other versions.
10325   version_type=sunos
10326   need_lib_prefix=no
10327   need_version=no
10328   case $host_cpu in
10329   ia64*)
10330     shrext_cmds='.so'
10331     hardcode_into_libs=yes
10332     dynamic_linker="$host_os dld.so"
10333     shlibpath_var=LD_LIBRARY_PATH
10334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336     soname_spec='${libname}${release}${shared_ext}$major'
10337     if test "X$HPUX_IA64_MODE" = X32; then
10338       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10339     else
10340       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10341     fi
10342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343     ;;
10344   hppa*64*)
10345     shrext_cmds='.sl'
10346     hardcode_into_libs=yes
10347     dynamic_linker="$host_os dld.sl"
10348     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10349     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351     soname_spec='${libname}${release}${shared_ext}$major'
10352     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10353     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10354     ;;
10355   *)
10356     shrext_cmds='.sl'
10357     dynamic_linker="$host_os dld.sl"
10358     shlibpath_var=SHLIB_PATH
10359     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361     soname_spec='${libname}${release}${shared_ext}$major'
10362     ;;
10363   esac
10364   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10365   postinstall_cmds='chmod 555 $lib'
10366   # or fails outright, so override atomically:
10367   install_override_mode=555
10368   ;;
10369
10370 interix[3-9]*)
10371   version_type=linux
10372   need_lib_prefix=no
10373   need_version=no
10374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375   soname_spec='${libname}${release}${shared_ext}$major'
10376   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10377   shlibpath_var=LD_LIBRARY_PATH
10378   shlibpath_overrides_runpath=no
10379   hardcode_into_libs=yes
10380   ;;
10381
10382 irix5* | irix6* | nonstopux*)
10383   case $host_os in
10384     nonstopux*) version_type=nonstopux ;;
10385     *)
10386         if test "$lt_cv_prog_gnu_ld" = yes; then
10387                 version_type=linux
10388         else
10389                 version_type=irix
10390         fi ;;
10391   esac
10392   need_lib_prefix=no
10393   need_version=no
10394   soname_spec='${libname}${release}${shared_ext}$major'
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10396   case $host_os in
10397   irix5* | nonstopux*)
10398     libsuff= shlibsuff=
10399     ;;
10400   *)
10401     case $LD in # libtool.m4 will add one of these switches to LD
10402     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10403       libsuff= shlibsuff= libmagic=32-bit;;
10404     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10405       libsuff=32 shlibsuff=N32 libmagic=N32;;
10406     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10407       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10408     *) libsuff= shlibsuff= libmagic=never-match;;
10409     esac
10410     ;;
10411   esac
10412   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10413   shlibpath_overrides_runpath=no
10414   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10415   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10416   hardcode_into_libs=yes
10417   ;;
10418
10419 # No shared lib support for Linux oldld, aout, or coff.
10420 linux*oldld* | linux*aout* | linux*coff*)
10421   dynamic_linker=no
10422   ;;
10423
10424 # This must be Linux ELF.
10425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10426   version_type=linux
10427   need_lib_prefix=no
10428   need_version=no
10429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430   soname_spec='${libname}${release}${shared_ext}$major'
10431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10432   shlibpath_var=LD_LIBRARY_PATH
10433   shlibpath_overrides_runpath=no
10434
10435   # Some binutils ld are patched to set DT_RUNPATH
10436   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   lt_cv_shlibpath_overrides_runpath=no
10440     save_LDFLAGS=$LDFLAGS
10441     save_libdir=$libdir
10442     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10443          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h.  */
10446
10447 int
10448 main ()
10449 {
10450
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 if ac_fn_c_try_link "$LINENO"; then :
10456   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10457   lt_cv_shlibpath_overrides_runpath=yes
10458 fi
10459 fi
10460 rm -f core conftest.err conftest.$ac_objext \
10461     conftest$ac_exeext conftest.$ac_ext
10462     LDFLAGS=$save_LDFLAGS
10463     libdir=$save_libdir
10464
10465 fi
10466
10467   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10468
10469   # This implies no fast_install, which is unacceptable.
10470   # Some rework will be needed to allow for fast_install
10471   # before this can be enabled.
10472   hardcode_into_libs=yes
10473
10474   # Append ld.so.conf contents to the search path
10475   if test -f /etc/ld.so.conf; then
10476     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' ' '`
10477     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10478   fi
10479
10480   # We used to test for /lib/ld.so.1 and disable shared libraries on
10481   # powerpc, because MkLinux only supported shared libraries with the
10482   # GNU dynamic linker.  Since this was broken with cross compilers,
10483   # most powerpc-linux boxes support dynamic linking these days and
10484   # people can always --disable-shared, the test was removed, and we
10485   # assume the GNU/Linux dynamic linker is in use.
10486   dynamic_linker='GNU/Linux ld.so'
10487   ;;
10488
10489 netbsd*)
10490   version_type=sunos
10491   need_lib_prefix=no
10492   need_version=no
10493   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10495     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10496     dynamic_linker='NetBSD (a.out) ld.so'
10497   else
10498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10499     soname_spec='${libname}${release}${shared_ext}$major'
10500     dynamic_linker='NetBSD ld.elf_so'
10501   fi
10502   shlibpath_var=LD_LIBRARY_PATH
10503   shlibpath_overrides_runpath=yes
10504   hardcode_into_libs=yes
10505   ;;
10506
10507 newsos6)
10508   version_type=linux
10509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510   shlibpath_var=LD_LIBRARY_PATH
10511   shlibpath_overrides_runpath=yes
10512   ;;
10513
10514 *nto* | *qnx*)
10515   version_type=qnx
10516   need_lib_prefix=no
10517   need_version=no
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   shlibpath_var=LD_LIBRARY_PATH
10521   shlibpath_overrides_runpath=no
10522   hardcode_into_libs=yes
10523   dynamic_linker='ldqnx.so'
10524   ;;
10525
10526 openbsd*)
10527   version_type=sunos
10528   sys_lib_dlsearch_path_spec="/usr/lib"
10529   need_lib_prefix=no
10530   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10531   case $host_os in
10532     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10533     *)                          need_version=no  ;;
10534   esac
10535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10537   shlibpath_var=LD_LIBRARY_PATH
10538   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10539     case $host_os in
10540       openbsd2.[89] | openbsd2.[89].*)
10541         shlibpath_overrides_runpath=no
10542         ;;
10543       *)
10544         shlibpath_overrides_runpath=yes
10545         ;;
10546       esac
10547   else
10548     shlibpath_overrides_runpath=yes
10549   fi
10550   ;;
10551
10552 os2*)
10553   libname_spec='$name'
10554   shrext_cmds=".dll"
10555   need_lib_prefix=no
10556   library_names_spec='$libname${shared_ext} $libname.a'
10557   dynamic_linker='OS/2 ld.exe'
10558   shlibpath_var=LIBPATH
10559   ;;
10560
10561 osf3* | osf4* | osf5*)
10562   version_type=osf
10563   need_lib_prefix=no
10564   need_version=no
10565   soname_spec='${libname}${release}${shared_ext}$major'
10566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567   shlibpath_var=LD_LIBRARY_PATH
10568   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10569   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10570   ;;
10571
10572 rdos*)
10573   dynamic_linker=no
10574   ;;
10575
10576 solaris*)
10577   version_type=linux
10578   need_lib_prefix=no
10579   need_version=no
10580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581   soname_spec='${libname}${release}${shared_ext}$major'
10582   shlibpath_var=LD_LIBRARY_PATH
10583   shlibpath_overrides_runpath=yes
10584   hardcode_into_libs=yes
10585   # ldd complains unless libraries are executable
10586   postinstall_cmds='chmod +x $lib'
10587   ;;
10588
10589 sunos4*)
10590   version_type=sunos
10591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10592   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10593   shlibpath_var=LD_LIBRARY_PATH
10594   shlibpath_overrides_runpath=yes
10595   if test "$with_gnu_ld" = yes; then
10596     need_lib_prefix=no
10597   fi
10598   need_version=yes
10599   ;;
10600
10601 sysv4 | sysv4.3*)
10602   version_type=linux
10603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604   soname_spec='${libname}${release}${shared_ext}$major'
10605   shlibpath_var=LD_LIBRARY_PATH
10606   case $host_vendor in
10607     sni)
10608       shlibpath_overrides_runpath=no
10609       need_lib_prefix=no
10610       runpath_var=LD_RUN_PATH
10611       ;;
10612     siemens)
10613       need_lib_prefix=no
10614       ;;
10615     motorola)
10616       need_lib_prefix=no
10617       need_version=no
10618       shlibpath_overrides_runpath=no
10619       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10620       ;;
10621   esac
10622   ;;
10623
10624 sysv4*MP*)
10625   if test -d /usr/nec ;then
10626     version_type=linux
10627     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10628     soname_spec='$libname${shared_ext}.$major'
10629     shlibpath_var=LD_LIBRARY_PATH
10630   fi
10631   ;;
10632
10633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10634   version_type=freebsd-elf
10635   need_lib_prefix=no
10636   need_version=no
10637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638   soname_spec='${libname}${release}${shared_ext}$major'
10639   shlibpath_var=LD_LIBRARY_PATH
10640   shlibpath_overrides_runpath=yes
10641   hardcode_into_libs=yes
10642   if test "$with_gnu_ld" = yes; then
10643     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10644   else
10645     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10646     case $host_os in
10647       sco3.2v5*)
10648         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10649         ;;
10650     esac
10651   fi
10652   sys_lib_dlsearch_path_spec='/usr/lib'
10653   ;;
10654
10655 tpf*)
10656   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10657   version_type=linux
10658   need_lib_prefix=no
10659   need_version=no
10660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661   shlibpath_var=LD_LIBRARY_PATH
10662   shlibpath_overrides_runpath=no
10663   hardcode_into_libs=yes
10664   ;;
10665
10666 uts4*)
10667   version_type=linux
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669   soname_spec='${libname}${release}${shared_ext}$major'
10670   shlibpath_var=LD_LIBRARY_PATH
10671   ;;
10672
10673 *)
10674   dynamic_linker=no
10675   ;;
10676 esac
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10678 $as_echo "$dynamic_linker" >&6; }
10679 test "$dynamic_linker" = no && can_build_shared=no
10680
10681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10682 if test "$GCC" = yes; then
10683   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10684 fi
10685
10686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10687   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10688 fi
10689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10690   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10691 fi
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10786 hardcode_action=
10787 if test -n "$hardcode_libdir_flag_spec" ||
10788    test -n "$runpath_var" ||
10789    test "X$hardcode_automatic" = "Xyes" ; then
10790
10791   # We can hardcode non-existent directories.
10792   if test "$hardcode_direct" != no &&
10793      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10794      # have to relink, otherwise we might link with an installed library
10795      # when we should be linking with a yet-to-be-installed one
10796      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10797      test "$hardcode_minus_L" != no; then
10798     # Linking always hardcodes the temporary library directory.
10799     hardcode_action=relink
10800   else
10801     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10802     hardcode_action=immediate
10803   fi
10804 else
10805   # We cannot hardcode anything, or else we can only hardcode existing
10806   # directories.
10807   hardcode_action=unsupported
10808 fi
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10810 $as_echo "$hardcode_action" >&6; }
10811
10812 if test "$hardcode_action" = relink ||
10813    test "$inherit_rpath" = yes; then
10814   # Fast installation is not supported
10815   enable_fast_install=no
10816 elif test "$shlibpath_overrides_runpath" = yes ||
10817      test "$enable_shared" = no; then
10818   # Fast installation is not necessary
10819   enable_fast_install=needless
10820 fi
10821
10822
10823
10824
10825
10826
10827   if test "x$enable_dlopen" != xyes; then
10828   enable_dlopen=unknown
10829   enable_dlopen_self=unknown
10830   enable_dlopen_self_static=unknown
10831 else
10832   lt_cv_dlopen=no
10833   lt_cv_dlopen_libs=
10834
10835   case $host_os in
10836   beos*)
10837     lt_cv_dlopen="load_add_on"
10838     lt_cv_dlopen_libs=
10839     lt_cv_dlopen_self=yes
10840     ;;
10841
10842   mingw* | pw32* | cegcc*)
10843     lt_cv_dlopen="LoadLibrary"
10844     lt_cv_dlopen_libs=
10845     ;;
10846
10847   cygwin*)
10848     lt_cv_dlopen="dlopen"
10849     lt_cv_dlopen_libs=
10850     ;;
10851
10852   darwin*)
10853   # if libdl is installed we need to link against it
10854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10856 if ${ac_cv_lib_dl_dlopen+:} false; then :
10857   $as_echo_n "(cached) " >&6
10858 else
10859   ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-ldl  $LIBS"
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h.  */
10863
10864 /* Override any GCC internal prototype to avoid an error.
10865    Use char because int might match the return type of a GCC
10866    builtin and then its argument prototype would still apply.  */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char dlopen ();
10871 int
10872 main ()
10873 {
10874 return dlopen ();
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 if ac_fn_c_try_link "$LINENO"; then :
10880   ac_cv_lib_dl_dlopen=yes
10881 else
10882   ac_cv_lib_dl_dlopen=no
10883 fi
10884 rm -f core conftest.err conftest.$ac_objext \
10885     conftest$ac_exeext conftest.$ac_ext
10886 LIBS=$ac_check_lib_save_LIBS
10887 fi
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10892 else
10893
10894     lt_cv_dlopen="dyld"
10895     lt_cv_dlopen_libs=
10896     lt_cv_dlopen_self=yes
10897
10898 fi
10899
10900     ;;
10901
10902   *)
10903     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10904 if test "x$ac_cv_func_shl_load" = xyes; then :
10905   lt_cv_dlopen="shl_load"
10906 else
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10909 if ${ac_cv_lib_dld_shl_load+:} false; then :
10910   $as_echo_n "(cached) " >&6
10911 else
10912   ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld  $LIBS"
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h.  */
10916
10917 /* Override any GCC internal prototype to avoid an error.
10918    Use char because int might match the return type of a GCC
10919    builtin and then its argument prototype would still apply.  */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char shl_load ();
10924 int
10925 main ()
10926 {
10927 return shl_load ();
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933   ac_cv_lib_dld_shl_load=yes
10934 else
10935   ac_cv_lib_dld_shl_load=no
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext \
10938     conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10943 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10944   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10945 else
10946   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10947 if test "x$ac_cv_func_dlopen" = xyes; then :
10948   lt_cv_dlopen="dlopen"
10949 else
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10952 if ${ac_cv_lib_dl_dlopen+:} false; then :
10953   $as_echo_n "(cached) " >&6
10954 else
10955   ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-ldl  $LIBS"
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h.  */
10959
10960 /* Override any GCC internal prototype to avoid an error.
10961    Use char because int might match the return type of a GCC
10962    builtin and then its argument prototype would still apply.  */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char dlopen ();
10967 int
10968 main ()
10969 {
10970 return dlopen ();
10971   ;
10972   return 0;
10973 }
10974 _ACEOF
10975 if ac_fn_c_try_link "$LINENO"; then :
10976   ac_cv_lib_dl_dlopen=yes
10977 else
10978   ac_cv_lib_dl_dlopen=no
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext \
10981     conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10986 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10987   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10988 else
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10991 if ${ac_cv_lib_svld_dlopen+:} false; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lsvld  $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h.  */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000    Use char because int might match the return type of a GCC
11001    builtin and then its argument prototype would still apply.  */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dlopen ();
11006 int
11007 main ()
11008 {
11009 return dlopen ();
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015   ac_cv_lib_svld_dlopen=yes
11016 else
11017   ac_cv_lib_svld_dlopen=no
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020     conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11025 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11027 else
11028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11030 if ${ac_cv_lib_dld_dld_link+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-ldld  $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039    Use char because int might match the return type of a GCC
11040    builtin and then its argument prototype would still apply.  */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char dld_link ();
11045 int
11046 main ()
11047 {
11048 return dld_link ();
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054   ac_cv_lib_dld_dld_link=yes
11055 else
11056   ac_cv_lib_dld_dld_link=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059     conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11064 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11065   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11066 fi
11067
11068
11069 fi
11070
11071
11072 fi
11073
11074
11075 fi
11076
11077
11078 fi
11079
11080
11081 fi
11082
11083     ;;
11084   esac
11085
11086   if test "x$lt_cv_dlopen" != xno; then
11087     enable_dlopen=yes
11088   else
11089     enable_dlopen=no
11090   fi
11091
11092   case $lt_cv_dlopen in
11093   dlopen)
11094     save_CPPFLAGS="$CPPFLAGS"
11095     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11096
11097     save_LDFLAGS="$LDFLAGS"
11098     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11099
11100     save_LIBS="$LIBS"
11101     LIBS="$lt_cv_dlopen_libs $LIBS"
11102
11103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11105 if ${lt_cv_dlopen_self+:} false; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108           if test "$cross_compiling" = yes; then :
11109   lt_cv_dlopen_self=cross
11110 else
11111   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11112   lt_status=$lt_dlunknown
11113   cat > conftest.$ac_ext <<_LT_EOF
11114 #line $LINENO "configure"
11115 #include "confdefs.h"
11116
11117 #if HAVE_DLFCN_H
11118 #include <dlfcn.h>
11119 #endif
11120
11121 #include <stdio.h>
11122
11123 #ifdef RTLD_GLOBAL
11124 #  define LT_DLGLOBAL           RTLD_GLOBAL
11125 #else
11126 #  ifdef DL_GLOBAL
11127 #    define LT_DLGLOBAL         DL_GLOBAL
11128 #  else
11129 #    define LT_DLGLOBAL         0
11130 #  endif
11131 #endif
11132
11133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134    find out it does not work in some platform. */
11135 #ifndef LT_DLLAZY_OR_NOW
11136 #  ifdef RTLD_LAZY
11137 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11138 #  else
11139 #    ifdef DL_LAZY
11140 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11141 #    else
11142 #      ifdef RTLD_NOW
11143 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11144 #      else
11145 #        ifdef DL_NOW
11146 #          define LT_DLLAZY_OR_NOW      DL_NOW
11147 #        else
11148 #          define LT_DLLAZY_OR_NOW      0
11149 #        endif
11150 #      endif
11151 #    endif
11152 #  endif
11153 #endif
11154
11155 /* When -fvisbility=hidden is used, assume the code has been annotated
11156    correspondingly for the symbols needed.  */
11157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11158 int fnord () __attribute__((visibility("default")));
11159 #endif
11160
11161 int fnord () { return 42; }
11162 int main ()
11163 {
11164   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165   int status = $lt_dlunknown;
11166
11167   if (self)
11168     {
11169       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11170       else
11171         {
11172           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11173           else puts (dlerror ());
11174         }
11175       /* dlclose (self); */
11176     }
11177   else
11178     puts (dlerror ());
11179
11180   return status;
11181 }
11182 _LT_EOF
11183   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11184   (eval $ac_link) 2>&5
11185   ac_status=$?
11186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11188     (./conftest; exit; ) >&5 2>/dev/null
11189     lt_status=$?
11190     case x$lt_status in
11191       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11192       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11193       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11194     esac
11195   else :
11196     # compilation failed
11197     lt_cv_dlopen_self=no
11198   fi
11199 fi
11200 rm -fr conftest*
11201
11202
11203 fi
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11205 $as_echo "$lt_cv_dlopen_self" >&6; }
11206
11207     if test "x$lt_cv_dlopen_self" = xyes; then
11208       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11211 if ${lt_cv_dlopen_self_static+:} false; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214           if test "$cross_compiling" = yes; then :
11215   lt_cv_dlopen_self_static=cross
11216 else
11217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218   lt_status=$lt_dlunknown
11219   cat > conftest.$ac_ext <<_LT_EOF
11220 #line $LINENO "configure"
11221 #include "confdefs.h"
11222
11223 #if HAVE_DLFCN_H
11224 #include <dlfcn.h>
11225 #endif
11226
11227 #include <stdio.h>
11228
11229 #ifdef RTLD_GLOBAL
11230 #  define LT_DLGLOBAL           RTLD_GLOBAL
11231 #else
11232 #  ifdef DL_GLOBAL
11233 #    define LT_DLGLOBAL         DL_GLOBAL
11234 #  else
11235 #    define LT_DLGLOBAL         0
11236 #  endif
11237 #endif
11238
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240    find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11242 #  ifdef RTLD_LAZY
11243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11244 #  else
11245 #    ifdef DL_LAZY
11246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11247 #    else
11248 #      ifdef RTLD_NOW
11249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11250 #      else
11251 #        ifdef DL_NOW
11252 #          define LT_DLLAZY_OR_NOW      DL_NOW
11253 #        else
11254 #          define LT_DLLAZY_OR_NOW      0
11255 #        endif
11256 #      endif
11257 #    endif
11258 #  endif
11259 #endif
11260
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262    correspondingly for the symbols needed.  */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 int fnord () __attribute__((visibility("default")));
11265 #endif
11266
11267 int fnord () { return 42; }
11268 int main ()
11269 {
11270   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271   int status = $lt_dlunknown;
11272
11273   if (self)
11274     {
11275       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11276       else
11277         {
11278           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11279           else puts (dlerror ());
11280         }
11281       /* dlclose (self); */
11282     }
11283   else
11284     puts (dlerror ());
11285
11286   return status;
11287 }
11288 _LT_EOF
11289   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290   (eval $ac_link) 2>&5
11291   ac_status=$?
11292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11294     (./conftest; exit; ) >&5 2>/dev/null
11295     lt_status=$?
11296     case x$lt_status in
11297       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11298       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11299       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11300     esac
11301   else :
11302     # compilation failed
11303     lt_cv_dlopen_self_static=no
11304   fi
11305 fi
11306 rm -fr conftest*
11307
11308
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11312     fi
11313
11314     CPPFLAGS="$save_CPPFLAGS"
11315     LDFLAGS="$save_LDFLAGS"
11316     LIBS="$save_LIBS"
11317     ;;
11318   esac
11319
11320   case $lt_cv_dlopen_self in
11321   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11322   *) enable_dlopen_self=unknown ;;
11323   esac
11324
11325   case $lt_cv_dlopen_self_static in
11326   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11327   *) enable_dlopen_self_static=unknown ;;
11328   esac
11329 fi
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 striplib=
11348 old_striplib=
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11352   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11353   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356 else
11357 # FIXME - insert some real tests, host_os isn't really good enough
11358   case $host_os in
11359   darwin*)
11360     if test -n "$STRIP" ; then
11361       striplib="$STRIP -x"
11362       old_striplib="$STRIP -S"
11363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365     else
11366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368     fi
11369     ;;
11370   *)
11371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373     ;;
11374   esac
11375 fi
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388   # Report which library types will actually be built
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11392 $as_echo "$can_build_shared" >&6; }
11393
11394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11395 $as_echo_n "checking whether to build shared libraries... " >&6; }
11396   test "$can_build_shared" = "no" && enable_shared=no
11397
11398   # On AIX, shared libraries and static libraries use the same namespace, and
11399   # are all built from PIC.
11400   case $host_os in
11401   aix3*)
11402     test "$enable_shared" = yes && enable_static=no
11403     if test -n "$RANLIB"; then
11404       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405       postinstall_cmds='$RANLIB $lib'
11406     fi
11407     ;;
11408
11409   aix[4-9]*)
11410     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411       test "$enable_shared" = yes && enable_static=no
11412     fi
11413     ;;
11414   esac
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11416 $as_echo "$enable_shared" >&6; }
11417
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11419 $as_echo_n "checking whether to build static libraries... " >&6; }
11420   # Make sure either enable_shared or enable_static is yes.
11421   test "$enable_shared" = yes || enable_static=yes
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11423 $as_echo "$enable_static" >&6; }
11424
11425
11426
11427
11428 fi
11429 ac_ext=c
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11434
11435 CC="$lt_save_CC"
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449         ac_config_commands="$ac_config_commands libtool"
11450
11451
11452
11453
11454 # Only expand once:
11455
11456
11457
11458 # Require xorg-macros minimum of 1.12 for DocBook external references
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11471 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11472 if ${ac_cv_prog_cc_c99+:} false; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   ac_cv_prog_cc_c99=no
11476 ac_save_CC=$CC
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h.  */
11479 #include <stdarg.h>
11480 #include <stdbool.h>
11481 #include <stdlib.h>
11482 #include <wchar.h>
11483 #include <stdio.h>
11484
11485 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11486 #define debug(...) fprintf (stderr, __VA_ARGS__)
11487 #define showlist(...) puts (#__VA_ARGS__)
11488 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11489 static void
11490 test_varargs_macros (void)
11491 {
11492   int x = 1234;
11493   int y = 5678;
11494   debug ("Flag");
11495   debug ("X = %d\n", x);
11496   showlist (The first, second, and third items.);
11497   report (x>y, "x is %d but y is %d", x, y);
11498 }
11499
11500 // Check long long types.
11501 #define BIG64 18446744073709551615ull
11502 #define BIG32 4294967295ul
11503 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11504 #if !BIG_OK
11505   your preprocessor is broken;
11506 #endif
11507 #if BIG_OK
11508 #else
11509   your preprocessor is broken;
11510 #endif
11511 static long long int bignum = -9223372036854775807LL;
11512 static unsigned long long int ubignum = BIG64;
11513
11514 struct incomplete_array
11515 {
11516   int datasize;
11517   double data[];
11518 };
11519
11520 struct named_init {
11521   int number;
11522   const wchar_t *name;
11523   double average;
11524 };
11525
11526 typedef const char *ccp;
11527
11528 static inline int
11529 test_restrict (ccp restrict text)
11530 {
11531   // See if C++-style comments work.
11532   // Iterate through items via the restricted pointer.
11533   // Also check for declarations in for loops.
11534   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11535     continue;
11536   return 0;
11537 }
11538
11539 // Check varargs and va_copy.
11540 static void
11541 test_varargs (const char *format, ...)
11542 {
11543   va_list args;
11544   va_start (args, format);
11545   va_list args_copy;
11546   va_copy (args_copy, args);
11547
11548   const char *str;
11549   int number;
11550   float fnumber;
11551
11552   while (*format)
11553     {
11554       switch (*format++)
11555         {
11556         case 's': // string
11557           str = va_arg (args_copy, const char *);
11558           break;
11559         case 'd': // int
11560           number = va_arg (args_copy, int);
11561           break;
11562         case 'f': // float
11563           fnumber = va_arg (args_copy, double);
11564           break;
11565         default:
11566           break;
11567         }
11568     }
11569   va_end (args_copy);
11570   va_end (args);
11571 }
11572
11573 int
11574 main ()
11575 {
11576
11577   // Check bool.
11578   _Bool success = false;
11579
11580   // Check restrict.
11581   if (test_restrict ("String literal") == 0)
11582     success = true;
11583   char *restrict newvar = "Another string";
11584
11585   // Check varargs.
11586   test_varargs ("s, d' f .", "string", 65, 34.234);
11587   test_varargs_macros ();
11588
11589   // Check flexible array members.
11590   struct incomplete_array *ia =
11591     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11592   ia->datasize = 10;
11593   for (int i = 0; i < ia->datasize; ++i)
11594     ia->data[i] = i * 1.234;
11595
11596   // Check named initializers.
11597   struct named_init ni = {
11598     .number = 34,
11599     .name = L"Test wide string",
11600     .average = 543.34343,
11601   };
11602
11603   ni.number = 58;
11604
11605   int dynamic_array[ni.number];
11606   dynamic_array[ni.number - 1] = 543;
11607
11608   // work around unused variable warnings
11609   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11610           || dynamic_array[ni.number - 1] != 543);
11611
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11617 do
11618   CC="$ac_save_CC $ac_arg"
11619   if ac_fn_c_try_compile "$LINENO"; then :
11620   ac_cv_prog_cc_c99=$ac_arg
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext
11623   test "x$ac_cv_prog_cc_c99" != "xno" && break
11624 done
11625 rm -f conftest.$ac_ext
11626 CC=$ac_save_CC
11627
11628 fi
11629 # AC_CACHE_VAL
11630 case "x$ac_cv_prog_cc_c99" in
11631   x)
11632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11633 $as_echo "none needed" >&6; } ;;
11634   xno)
11635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11636 $as_echo "unsupported" >&6; } ;;
11637   *)
11638     CC="$CC $ac_cv_prog_cc_c99"
11639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11640 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11641 esac
11642 if test "x$ac_cv_prog_cc_c99" != xno; then :
11643
11644 fi
11645
11646
11647
11648
11649
11650
11651 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11652 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11653   CLANGCC="yes"
11654 else
11655   CLANGCC="no"
11656 fi
11657
11658 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11659 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11660   INTELCC="yes"
11661 else
11662   INTELCC="no"
11663 fi
11664
11665 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11666 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11667   SUNCC="yes"
11668 else
11669   SUNCC="no"
11670 fi
11671
11672
11673
11674
11675 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11676         if test -n "$ac_tool_prefix"; then
11677   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11678 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11682   $as_echo_n "(cached) " >&6
11683 else
11684   case $PKG_CONFIG in
11685   [\\/]* | ?:[\\/]*)
11686   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11687   ;;
11688   *)
11689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   test -z "$as_dir" && as_dir=.
11694     for ac_exec_ext in '' $ac_executable_extensions; do
11695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698     break 2
11699   fi
11700 done
11701   done
11702 IFS=$as_save_IFS
11703
11704   ;;
11705 esac
11706 fi
11707 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11708 if test -n "$PKG_CONFIG"; then
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11710 $as_echo "$PKG_CONFIG" >&6; }
11711 else
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11714 fi
11715
11716
11717 fi
11718 if test -z "$ac_cv_path_PKG_CONFIG"; then
11719   ac_pt_PKG_CONFIG=$PKG_CONFIG
11720   # Extract the first word of "pkg-config", so it can be a program name with args.
11721 set dummy pkg-config; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11725   $as_echo_n "(cached) " >&6
11726 else
11727   case $ac_pt_PKG_CONFIG in
11728   [\\/]* | ?:[\\/]*)
11729   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11730   ;;
11731   *)
11732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11734 do
11735   IFS=$as_save_IFS
11736   test -z "$as_dir" && as_dir=.
11737     for ac_exec_ext in '' $ac_executable_extensions; do
11738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11739     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741     break 2
11742   fi
11743 done
11744   done
11745 IFS=$as_save_IFS
11746
11747   ;;
11748 esac
11749 fi
11750 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11751 if test -n "$ac_pt_PKG_CONFIG"; then
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11753 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11754 else
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 fi
11758
11759   if test "x$ac_pt_PKG_CONFIG" = x; then
11760     PKG_CONFIG=""
11761   else
11762     case $cross_compiling:$ac_tool_warned in
11763 yes:)
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766 ac_tool_warned=yes ;;
11767 esac
11768     PKG_CONFIG=$ac_pt_PKG_CONFIG
11769   fi
11770 else
11771   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11772 fi
11773
11774 fi
11775 if test -n "$PKG_CONFIG"; then
11776         _pkg_min_version=0.9.0
11777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11778 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11779         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11780                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781 $as_echo "yes" >&6; }
11782         else
11783                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785                 PKG_CONFIG=""
11786         fi
11787
11788 fi
11789
11790
11791
11792
11793
11794 # Check whether --enable-selective-werror was given.
11795 if test "${enable_selective_werror+set}" = set; then :
11796   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11797 else
11798   SELECTIVE_WERROR=yes
11799 fi
11800
11801
11802
11803
11804
11805 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11806 if test "x$SUNCC" = "xyes"; then
11807     BASE_CFLAGS="-v"
11808 else
11809     BASE_CFLAGS=""
11810 fi
11811
11812 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824 xorg_testset_save_CFLAGS="$CFLAGS"
11825
11826 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11827         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11829 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11830 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h.  */
11835 int i;
11836 _ACEOF
11837 if ac_fn_c_try_compile "$LINENO"; then :
11838   xorg_cv_compiler_flag_unknown_warning_option=yes
11839 else
11840   xorg_cv_compiler_flag_unknown_warning_option=no
11841 fi
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11845 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11846         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11847         CFLAGS="$xorg_testset_save_CFLAGS"
11848 fi
11849
11850 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11851         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11852                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11853         fi
11854         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11856 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11857 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h.  */
11862 int i;
11863 _ACEOF
11864 if ac_fn_c_try_compile "$LINENO"; then :
11865   xorg_cv_compiler_flag_unused_command_line_argument=yes
11866 else
11867   xorg_cv_compiler_flag_unused_command_line_argument=no
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11872 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11873         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11874         CFLAGS="$xorg_testset_save_CFLAGS"
11875 fi
11876
11877 found="no"
11878
11879         if test $found = "no" ; then
11880                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11881                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11882                 fi
11883
11884                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11885                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11886                 fi
11887
11888                 CFLAGS="$CFLAGS -Wall"
11889
11890                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11891 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11892                 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11893                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h.  */
11898 int i;
11899 int
11900 main ()
11901 {
11902
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 if ac_fn_c_try_link "$LINENO"; then :
11908   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11909 else
11910   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext \
11913     conftest$ac_exeext conftest.$ac_ext
11914 fi
11915
11916
11917                 CFLAGS="$xorg_testset_save_CFLAGS"
11918
11919                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11920                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11921 $as_echo "$supported" >&6; }
11922                 if test "$supported" = "yes" ; then
11923                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
11924                         found="yes"
11925                 fi
11926         fi
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940 xorg_testset_save_CFLAGS="$CFLAGS"
11941
11942 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11943         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11944         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11945 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11946 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11947   $as_echo_n "(cached) " >&6
11948 else
11949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h.  */
11951 int i;
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954   xorg_cv_compiler_flag_unknown_warning_option=yes
11955 else
11956   xorg_cv_compiler_flag_unknown_warning_option=no
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11961 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11962         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11963         CFLAGS="$xorg_testset_save_CFLAGS"
11964 fi
11965
11966 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11967         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11968                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11969         fi
11970         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11971         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11972 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11973 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11974   $as_echo_n "(cached) " >&6
11975 else
11976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h.  */
11978 int i;
11979 _ACEOF
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981   xorg_cv_compiler_flag_unused_command_line_argument=yes
11982 else
11983   xorg_cv_compiler_flag_unused_command_line_argument=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11988 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11989         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11990         CFLAGS="$xorg_testset_save_CFLAGS"
11991 fi
11992
11993 found="no"
11994
11995         if test $found = "no" ; then
11996                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11997                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11998                 fi
11999
12000                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12001                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12002                 fi
12003
12004                 CFLAGS="$CFLAGS -Wpointer-arith"
12005
12006                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12007 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12008                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
12009                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h.  */
12014 int i;
12015 int
12016 main ()
12017 {
12018
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12025 else
12026   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext \
12029     conftest$ac_exeext conftest.$ac_ext
12030 fi
12031
12032
12033                 CFLAGS="$xorg_testset_save_CFLAGS"
12034
12035                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12036                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12037 $as_echo "$supported" >&6; }
12038                 if test "$supported" = "yes" ; then
12039                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12040                         found="yes"
12041                 fi
12042         fi
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 xorg_testset_save_CFLAGS="$CFLAGS"
12057
12058 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12059         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12061 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12062 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h.  */
12067 int i;
12068 _ACEOF
12069 if ac_fn_c_try_compile "$LINENO"; then :
12070   xorg_cv_compiler_flag_unknown_warning_option=yes
12071 else
12072   xorg_cv_compiler_flag_unknown_warning_option=no
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12077 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12078         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12079         CFLAGS="$xorg_testset_save_CFLAGS"
12080 fi
12081
12082 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12083         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12084                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12085         fi
12086         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12088 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12089 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12090   $as_echo_n "(cached) " >&6
12091 else
12092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094 int i;
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097   xorg_cv_compiler_flag_unused_command_line_argument=yes
12098 else
12099   xorg_cv_compiler_flag_unused_command_line_argument=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12104 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12105         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12106         CFLAGS="$xorg_testset_save_CFLAGS"
12107 fi
12108
12109 found="no"
12110
12111         if test $found = "no" ; then
12112                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12113                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12114                 fi
12115
12116                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12117                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12118                 fi
12119
12120                 CFLAGS="$CFLAGS -Wmissing-declarations"
12121
12122                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12123 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12124                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
12125                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h.  */
12130 int i;
12131 int
12132 main ()
12133 {
12134
12135   ;
12136   return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12141 else
12142   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145     conftest$ac_exeext conftest.$ac_ext
12146 fi
12147
12148
12149                 CFLAGS="$xorg_testset_save_CFLAGS"
12150
12151                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12152                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12153 $as_echo "$supported" >&6; }
12154                 if test "$supported" = "yes" ; then
12155                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12156                         found="yes"
12157                 fi
12158         fi
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172 xorg_testset_save_CFLAGS="$CFLAGS"
12173
12174 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12175         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12177 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12178 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12179   $as_echo_n "(cached) " >&6
12180 else
12181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h.  */
12183 int i;
12184 _ACEOF
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186   xorg_cv_compiler_flag_unknown_warning_option=yes
12187 else
12188   xorg_cv_compiler_flag_unknown_warning_option=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12193 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12194         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12195         CFLAGS="$xorg_testset_save_CFLAGS"
12196 fi
12197
12198 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12199         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12200                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12201         fi
12202         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12204 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12205 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12206   $as_echo_n "(cached) " >&6
12207 else
12208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h.  */
12210 int i;
12211 _ACEOF
12212 if ac_fn_c_try_compile "$LINENO"; then :
12213   xorg_cv_compiler_flag_unused_command_line_argument=yes
12214 else
12215   xorg_cv_compiler_flag_unused_command_line_argument=no
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12220 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12221         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12222         CFLAGS="$xorg_testset_save_CFLAGS"
12223 fi
12224
12225 found="no"
12226
12227         if test $found = "no" ; then
12228                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12229                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12230                 fi
12231
12232                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12233                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12234                 fi
12235
12236                 CFLAGS="$CFLAGS -Wformat=2"
12237
12238                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12239 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12240                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12241                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 int
12248 main ()
12249 {
12250
12251   ;
12252   return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12257 else
12258   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext \
12261     conftest$ac_exeext conftest.$ac_ext
12262 fi
12263
12264
12265                 CFLAGS="$xorg_testset_save_CFLAGS"
12266
12267                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12268                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12269 $as_echo "$supported" >&6; }
12270                 if test "$supported" = "yes" ; then
12271                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12272                         found="yes"
12273                 fi
12274         fi
12275
12276         if test $found = "no" ; then
12277                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12278                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12279                 fi
12280
12281                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12282                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12283                 fi
12284
12285                 CFLAGS="$CFLAGS -Wformat"
12286
12287                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12288 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12289                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12290                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12291   $as_echo_n "(cached) " >&6
12292 else
12293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h.  */
12295 int i;
12296 int
12297 main ()
12298 {
12299
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_link "$LINENO"; then :
12305   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12306 else
12307   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12308 fi
12309 rm -f core conftest.err conftest.$ac_objext \
12310     conftest$ac_exeext conftest.$ac_ext
12311 fi
12312
12313
12314                 CFLAGS="$xorg_testset_save_CFLAGS"
12315
12316                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12317                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12318 $as_echo "$supported" >&6; }
12319                 if test "$supported" = "yes" ; then
12320                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12321                         found="yes"
12322                 fi
12323         fi
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339 xorg_testset_save_CFLAGS="$CFLAGS"
12340
12341 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12342         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12344 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12345 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h.  */
12350 int i;
12351 _ACEOF
12352 if ac_fn_c_try_compile "$LINENO"; then :
12353   xorg_cv_compiler_flag_unknown_warning_option=yes
12354 else
12355   xorg_cv_compiler_flag_unknown_warning_option=no
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12360 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12361         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12362         CFLAGS="$xorg_testset_save_CFLAGS"
12363 fi
12364
12365 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12366         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12367                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12368         fi
12369         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12371 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12372 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h.  */
12377 int i;
12378 _ACEOF
12379 if ac_fn_c_try_compile "$LINENO"; then :
12380   xorg_cv_compiler_flag_unused_command_line_argument=yes
12381 else
12382   xorg_cv_compiler_flag_unused_command_line_argument=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12387 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12388         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12389         CFLAGS="$xorg_testset_save_CFLAGS"
12390 fi
12391
12392 found="no"
12393
12394         if test $found = "no" ; then
12395                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12396                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12397                 fi
12398
12399                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12400                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12401                 fi
12402
12403                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12404
12405                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12406 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12407                 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12408                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12409   $as_echo_n "(cached) " >&6
12410 else
12411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h.  */
12413 int i;
12414 int
12415 main ()
12416 {
12417
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 if ac_fn_c_try_link "$LINENO"; then :
12423   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12424 else
12425   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12426 fi
12427 rm -f core conftest.err conftest.$ac_objext \
12428     conftest$ac_exeext conftest.$ac_ext
12429 fi
12430
12431
12432                 CFLAGS="$xorg_testset_save_CFLAGS"
12433
12434                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12435                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12436 $as_echo "$supported" >&6; }
12437                 if test "$supported" = "yes" ; then
12438                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12439                         found="yes"
12440                 fi
12441         fi
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455 xorg_testset_save_CFLAGS="$CFLAGS"
12456
12457 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12458         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12460 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12461 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12462   $as_echo_n "(cached) " >&6
12463 else
12464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h.  */
12466 int i;
12467 _ACEOF
12468 if ac_fn_c_try_compile "$LINENO"; then :
12469   xorg_cv_compiler_flag_unknown_warning_option=yes
12470 else
12471   xorg_cv_compiler_flag_unknown_warning_option=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12476 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12477         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12478         CFLAGS="$xorg_testset_save_CFLAGS"
12479 fi
12480
12481 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12482         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12483                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12484         fi
12485         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12487 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12488 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12489   $as_echo_n "(cached) " >&6
12490 else
12491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h.  */
12493 int i;
12494 _ACEOF
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496   xorg_cv_compiler_flag_unused_command_line_argument=yes
12497 else
12498   xorg_cv_compiler_flag_unused_command_line_argument=no
12499 fi
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501 fi
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12503 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12504         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12505         CFLAGS="$xorg_testset_save_CFLAGS"
12506 fi
12507
12508 found="no"
12509
12510         if test $found = "no" ; then
12511                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12512                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12513                 fi
12514
12515                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12516                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12517                 fi
12518
12519                 CFLAGS="$CFLAGS -Wmissing-prototypes"
12520
12521                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12522 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12523                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12524                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12525   $as_echo_n "(cached) " >&6
12526 else
12527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h.  */
12529 int i;
12530 int
12531 main ()
12532 {
12533
12534   ;
12535   return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12540 else
12541   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext \
12544     conftest$ac_exeext conftest.$ac_ext
12545 fi
12546
12547
12548                 CFLAGS="$xorg_testset_save_CFLAGS"
12549
12550                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12551                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12552 $as_echo "$supported" >&6; }
12553                 if test "$supported" = "yes" ; then
12554                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12555                         found="yes"
12556                 fi
12557         fi
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571 xorg_testset_save_CFLAGS="$CFLAGS"
12572
12573 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12574         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12576 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12577 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h.  */
12582 int i;
12583 _ACEOF
12584 if ac_fn_c_try_compile "$LINENO"; then :
12585   xorg_cv_compiler_flag_unknown_warning_option=yes
12586 else
12587   xorg_cv_compiler_flag_unknown_warning_option=no
12588 fi
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 fi
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12592 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12593         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12594         CFLAGS="$xorg_testset_save_CFLAGS"
12595 fi
12596
12597 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12598         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12599                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12600         fi
12601         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12603 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12604 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h.  */
12609 int i;
12610 _ACEOF
12611 if ac_fn_c_try_compile "$LINENO"; then :
12612   xorg_cv_compiler_flag_unused_command_line_argument=yes
12613 else
12614   xorg_cv_compiler_flag_unused_command_line_argument=no
12615 fi
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 fi
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12619 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12620         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12621         CFLAGS="$xorg_testset_save_CFLAGS"
12622 fi
12623
12624 found="no"
12625
12626         if test $found = "no" ; then
12627                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12628                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12629                 fi
12630
12631                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12632                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12633                 fi
12634
12635                 CFLAGS="$CFLAGS -Wnested-externs"
12636
12637                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12638 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12639                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12640                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12641   $as_echo_n "(cached) " >&6
12642 else
12643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h.  */
12645 int i;
12646 int
12647 main ()
12648 {
12649
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"; then :
12655   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12656 else
12657   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12658 fi
12659 rm -f core conftest.err conftest.$ac_objext \
12660     conftest$ac_exeext conftest.$ac_ext
12661 fi
12662
12663
12664                 CFLAGS="$xorg_testset_save_CFLAGS"
12665
12666                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12667                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12668 $as_echo "$supported" >&6; }
12669                 if test "$supported" = "yes" ; then
12670                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12671                         found="yes"
12672                 fi
12673         fi
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687 xorg_testset_save_CFLAGS="$CFLAGS"
12688
12689 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12690         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12692 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12693 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h.  */
12698 int i;
12699 _ACEOF
12700 if ac_fn_c_try_compile "$LINENO"; then :
12701   xorg_cv_compiler_flag_unknown_warning_option=yes
12702 else
12703   xorg_cv_compiler_flag_unknown_warning_option=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12708 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12709         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12710         CFLAGS="$xorg_testset_save_CFLAGS"
12711 fi
12712
12713 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12714         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12715                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12716         fi
12717         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12718         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12719 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12720 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12721   $as_echo_n "(cached) " >&6
12722 else
12723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h.  */
12725 int i;
12726 _ACEOF
12727 if ac_fn_c_try_compile "$LINENO"; then :
12728   xorg_cv_compiler_flag_unused_command_line_argument=yes
12729 else
12730   xorg_cv_compiler_flag_unused_command_line_argument=no
12731 fi
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12735 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12736         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12737         CFLAGS="$xorg_testset_save_CFLAGS"
12738 fi
12739
12740 found="no"
12741
12742         if test $found = "no" ; then
12743                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12744                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12745                 fi
12746
12747                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12748                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12749                 fi
12750
12751                 CFLAGS="$CFLAGS -Wbad-function-cast"
12752
12753                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12754 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12755                 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12756                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761 int i;
12762 int
12763 main ()
12764 {
12765
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_link "$LINENO"; then :
12771   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12772 else
12773   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12774 fi
12775 rm -f core conftest.err conftest.$ac_objext \
12776     conftest$ac_exeext conftest.$ac_ext
12777 fi
12778
12779
12780                 CFLAGS="$xorg_testset_save_CFLAGS"
12781
12782                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12783                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12784 $as_echo "$supported" >&6; }
12785                 if test "$supported" = "yes" ; then
12786                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12787                         found="yes"
12788                 fi
12789         fi
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803 xorg_testset_save_CFLAGS="$CFLAGS"
12804
12805 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12806         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12808 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12809 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12810   $as_echo_n "(cached) " >&6
12811 else
12812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h.  */
12814 int i;
12815 _ACEOF
12816 if ac_fn_c_try_compile "$LINENO"; then :
12817   xorg_cv_compiler_flag_unknown_warning_option=yes
12818 else
12819   xorg_cv_compiler_flag_unknown_warning_option=no
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12824 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12825         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12826         CFLAGS="$xorg_testset_save_CFLAGS"
12827 fi
12828
12829 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12830         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12831                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12832         fi
12833         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12835 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12836 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12837   $as_echo_n "(cached) " >&6
12838 else
12839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h.  */
12841 int i;
12842 _ACEOF
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844   xorg_cv_compiler_flag_unused_command_line_argument=yes
12845 else
12846   xorg_cv_compiler_flag_unused_command_line_argument=no
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 fi
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12851 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12852         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12853         CFLAGS="$xorg_testset_save_CFLAGS"
12854 fi
12855
12856 found="no"
12857
12858         if test $found = "no" ; then
12859                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12860                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12861                 fi
12862
12863                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12864                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12865                 fi
12866
12867                 CFLAGS="$CFLAGS -Wold-style-definition"
12868
12869                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12870 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12871                 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12872                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12873   $as_echo_n "(cached) " >&6
12874 else
12875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h.  */
12877 int i;
12878 int
12879 main ()
12880 {
12881
12882   ;
12883   return 0;
12884 }
12885 _ACEOF
12886 if ac_fn_c_try_link "$LINENO"; then :
12887   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12888 else
12889   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12890 fi
12891 rm -f core conftest.err conftest.$ac_objext \
12892     conftest$ac_exeext conftest.$ac_ext
12893 fi
12894
12895
12896                 CFLAGS="$xorg_testset_save_CFLAGS"
12897
12898                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12899                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12900 $as_echo "$supported" >&6; }
12901                 if test "$supported" = "yes" ; then
12902                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12903                         found="yes"
12904                 fi
12905         fi
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919 xorg_testset_save_CFLAGS="$CFLAGS"
12920
12921 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12922         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12924 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12925 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h.  */
12930 int i;
12931 _ACEOF
12932 if ac_fn_c_try_compile "$LINENO"; then :
12933   xorg_cv_compiler_flag_unknown_warning_option=yes
12934 else
12935   xorg_cv_compiler_flag_unknown_warning_option=no
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12940 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12941         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12942         CFLAGS="$xorg_testset_save_CFLAGS"
12943 fi
12944
12945 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12946         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12947                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12948         fi
12949         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12951 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12952 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h.  */
12957 int i;
12958 _ACEOF
12959 if ac_fn_c_try_compile "$LINENO"; then :
12960   xorg_cv_compiler_flag_unused_command_line_argument=yes
12961 else
12962   xorg_cv_compiler_flag_unused_command_line_argument=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12965 fi
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12967 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12968         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12969         CFLAGS="$xorg_testset_save_CFLAGS"
12970 fi
12971
12972 found="no"
12973
12974         if test $found = "no" ; then
12975                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12976                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12977                 fi
12978
12979                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12980                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12981                 fi
12982
12983                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12984
12985                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12986 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12987                 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12988                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12989   $as_echo_n "(cached) " >&6
12990 else
12991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h.  */
12993 int i;
12994 int
12995 main ()
12996 {
12997
12998   ;
12999   return 0;
13000 }
13001 _ACEOF
13002 if ac_fn_c_try_link "$LINENO"; then :
13003   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13004 else
13005   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13006 fi
13007 rm -f core conftest.err conftest.$ac_objext \
13008     conftest$ac_exeext conftest.$ac_ext
13009 fi
13010
13011
13012                 CFLAGS="$xorg_testset_save_CFLAGS"
13013
13014                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13015                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13016 $as_echo "$supported" >&6; }
13017                 if test "$supported" = "yes" ; then
13018                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13019                         found="yes"
13020                 fi
13021         fi
13022
13023
13024
13025
13026
13027 # This chunk adds additional warnings that could catch undesired effects.
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039 xorg_testset_save_CFLAGS="$CFLAGS"
13040
13041 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13042         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13044 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13045 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13046   $as_echo_n "(cached) " >&6
13047 else
13048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h.  */
13050 int i;
13051 _ACEOF
13052 if ac_fn_c_try_compile "$LINENO"; then :
13053   xorg_cv_compiler_flag_unknown_warning_option=yes
13054 else
13055   xorg_cv_compiler_flag_unknown_warning_option=no
13056 fi
13057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13060 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13061         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13062         CFLAGS="$xorg_testset_save_CFLAGS"
13063 fi
13064
13065 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13066         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13067                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13068         fi
13069         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13071 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13072 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h.  */
13077 int i;
13078 _ACEOF
13079 if ac_fn_c_try_compile "$LINENO"; then :
13080   xorg_cv_compiler_flag_unused_command_line_argument=yes
13081 else
13082   xorg_cv_compiler_flag_unused_command_line_argument=no
13083 fi
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13087 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13088         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13089         CFLAGS="$xorg_testset_save_CFLAGS"
13090 fi
13091
13092 found="no"
13093
13094         if test $found = "no" ; then
13095                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13096                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13097                 fi
13098
13099                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13100                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13101                 fi
13102
13103                 CFLAGS="$CFLAGS -Wunused"
13104
13105                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13106 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13107                 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
13108                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13109   $as_echo_n "(cached) " >&6
13110 else
13111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h.  */
13113 int i;
13114 int
13115 main ()
13116 {
13117
13118   ;
13119   return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_link "$LINENO"; then :
13123   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13124 else
13125   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext \
13128     conftest$ac_exeext conftest.$ac_ext
13129 fi
13130
13131
13132                 CFLAGS="$xorg_testset_save_CFLAGS"
13133
13134                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13135                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13136 $as_echo "$supported" >&6; }
13137                 if test "$supported" = "yes" ; then
13138                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13139                         found="yes"
13140                 fi
13141         fi
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155 xorg_testset_save_CFLAGS="$CFLAGS"
13156
13157 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13158         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13160 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13161 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h.  */
13166 int i;
13167 _ACEOF
13168 if ac_fn_c_try_compile "$LINENO"; then :
13169   xorg_cv_compiler_flag_unknown_warning_option=yes
13170 else
13171   xorg_cv_compiler_flag_unknown_warning_option=no
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 fi
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13176 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13177         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13178         CFLAGS="$xorg_testset_save_CFLAGS"
13179 fi
13180
13181 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13182         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13183                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13184         fi
13185         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13186         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13187 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13188 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13189   $as_echo_n "(cached) " >&6
13190 else
13191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h.  */
13193 int i;
13194 _ACEOF
13195 if ac_fn_c_try_compile "$LINENO"; then :
13196   xorg_cv_compiler_flag_unused_command_line_argument=yes
13197 else
13198   xorg_cv_compiler_flag_unused_command_line_argument=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13203 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13204         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13205         CFLAGS="$xorg_testset_save_CFLAGS"
13206 fi
13207
13208 found="no"
13209
13210         if test $found = "no" ; then
13211                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13212                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13213                 fi
13214
13215                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13216                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13217                 fi
13218
13219                 CFLAGS="$CFLAGS -Wuninitialized"
13220
13221                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13222 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13223                 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13224                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13225   $as_echo_n "(cached) " >&6
13226 else
13227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h.  */
13229 int i;
13230 int
13231 main ()
13232 {
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 if ac_fn_c_try_link "$LINENO"; then :
13239   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13240 else
13241   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext \
13244     conftest$ac_exeext conftest.$ac_ext
13245 fi
13246
13247
13248                 CFLAGS="$xorg_testset_save_CFLAGS"
13249
13250                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13251                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13252 $as_echo "$supported" >&6; }
13253                 if test "$supported" = "yes" ; then
13254                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13255                         found="yes"
13256                 fi
13257         fi
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271 xorg_testset_save_CFLAGS="$CFLAGS"
13272
13273 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13274         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13276 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13277 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13278   $as_echo_n "(cached) " >&6
13279 else
13280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h.  */
13282 int i;
13283 _ACEOF
13284 if ac_fn_c_try_compile "$LINENO"; then :
13285   xorg_cv_compiler_flag_unknown_warning_option=yes
13286 else
13287   xorg_cv_compiler_flag_unknown_warning_option=no
13288 fi
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13292 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13293         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13294         CFLAGS="$xorg_testset_save_CFLAGS"
13295 fi
13296
13297 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13298         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13299                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13300         fi
13301         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13303 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13304 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13305   $as_echo_n "(cached) " >&6
13306 else
13307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h.  */
13309 int i;
13310 _ACEOF
13311 if ac_fn_c_try_compile "$LINENO"; then :
13312   xorg_cv_compiler_flag_unused_command_line_argument=yes
13313 else
13314   xorg_cv_compiler_flag_unused_command_line_argument=no
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13319 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13320         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13321         CFLAGS="$xorg_testset_save_CFLAGS"
13322 fi
13323
13324 found="no"
13325
13326         if test $found = "no" ; then
13327                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13328                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13329                 fi
13330
13331                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13332                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13333                 fi
13334
13335                 CFLAGS="$CFLAGS -Wshadow"
13336
13337                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13338 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13339                 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13340                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13341   $as_echo_n "(cached) " >&6
13342 else
13343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h.  */
13345 int i;
13346 int
13347 main ()
13348 {
13349
13350   ;
13351   return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_link "$LINENO"; then :
13355   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13356 else
13357   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13358 fi
13359 rm -f core conftest.err conftest.$ac_objext \
13360     conftest$ac_exeext conftest.$ac_ext
13361 fi
13362
13363
13364                 CFLAGS="$xorg_testset_save_CFLAGS"
13365
13366                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13367                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13368 $as_echo "$supported" >&6; }
13369                 if test "$supported" = "yes" ; then
13370                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13371                         found="yes"
13372                 fi
13373         fi
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387 xorg_testset_save_CFLAGS="$CFLAGS"
13388
13389 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13390         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13392 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13393 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13394   $as_echo_n "(cached) " >&6
13395 else
13396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h.  */
13398 int i;
13399 _ACEOF
13400 if ac_fn_c_try_compile "$LINENO"; then :
13401   xorg_cv_compiler_flag_unknown_warning_option=yes
13402 else
13403   xorg_cv_compiler_flag_unknown_warning_option=no
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 fi
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13408 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13409         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13410         CFLAGS="$xorg_testset_save_CFLAGS"
13411 fi
13412
13413 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13414         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13415                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416         fi
13417         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13419 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13420 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13421   $as_echo_n "(cached) " >&6
13422 else
13423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h.  */
13425 int i;
13426 _ACEOF
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428   xorg_cv_compiler_flag_unused_command_line_argument=yes
13429 else
13430   xorg_cv_compiler_flag_unused_command_line_argument=no
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 fi
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13435 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13436         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13437         CFLAGS="$xorg_testset_save_CFLAGS"
13438 fi
13439
13440 found="no"
13441
13442         if test $found = "no" ; then
13443                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13444                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13445                 fi
13446
13447                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13448                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13449                 fi
13450
13451                 CFLAGS="$CFLAGS -Wcast-qual"
13452
13453                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13454 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13455                 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13456                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13457   $as_echo_n "(cached) " >&6
13458 else
13459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h.  */
13461 int i;
13462 int
13463 main ()
13464 {
13465
13466   ;
13467   return 0;
13468 }
13469 _ACEOF
13470 if ac_fn_c_try_link "$LINENO"; then :
13471   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13472 else
13473   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13474 fi
13475 rm -f core conftest.err conftest.$ac_objext \
13476     conftest$ac_exeext conftest.$ac_ext
13477 fi
13478
13479
13480                 CFLAGS="$xorg_testset_save_CFLAGS"
13481
13482                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13483                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13484 $as_echo "$supported" >&6; }
13485                 if test "$supported" = "yes" ; then
13486                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13487                         found="yes"
13488                 fi
13489         fi
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503 xorg_testset_save_CFLAGS="$CFLAGS"
13504
13505 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13506         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13508 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13509 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13510   $as_echo_n "(cached) " >&6
13511 else
13512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h.  */
13514 int i;
13515 _ACEOF
13516 if ac_fn_c_try_compile "$LINENO"; then :
13517   xorg_cv_compiler_flag_unknown_warning_option=yes
13518 else
13519   xorg_cv_compiler_flag_unknown_warning_option=no
13520 fi
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13524 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13525         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13526         CFLAGS="$xorg_testset_save_CFLAGS"
13527 fi
13528
13529 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13530         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13531                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13532         fi
13533         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13534         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13535 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13536 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h.  */
13541 int i;
13542 _ACEOF
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544   xorg_cv_compiler_flag_unused_command_line_argument=yes
13545 else
13546   xorg_cv_compiler_flag_unused_command_line_argument=no
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 fi
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13551 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13552         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13553         CFLAGS="$xorg_testset_save_CFLAGS"
13554 fi
13555
13556 found="no"
13557
13558         if test $found = "no" ; then
13559                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13560                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561                 fi
13562
13563                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13564                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13565                 fi
13566
13567                 CFLAGS="$CFLAGS -Wmissing-noreturn"
13568
13569                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13570 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13571                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13572                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13573   $as_echo_n "(cached) " >&6
13574 else
13575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h.  */
13577 int i;
13578 int
13579 main ()
13580 {
13581
13582   ;
13583   return 0;
13584 }
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13588 else
13589   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext \
13592     conftest$ac_exeext conftest.$ac_ext
13593 fi
13594
13595
13596                 CFLAGS="$xorg_testset_save_CFLAGS"
13597
13598                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13599                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13600 $as_echo "$supported" >&6; }
13601                 if test "$supported" = "yes" ; then
13602                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13603                         found="yes"
13604                 fi
13605         fi
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619 xorg_testset_save_CFLAGS="$CFLAGS"
13620
13621 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13622         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13624 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13625 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13626   $as_echo_n "(cached) " >&6
13627 else
13628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h.  */
13630 int i;
13631 _ACEOF
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633   xorg_cv_compiler_flag_unknown_warning_option=yes
13634 else
13635   xorg_cv_compiler_flag_unknown_warning_option=no
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 fi
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13640 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13641         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13642         CFLAGS="$xorg_testset_save_CFLAGS"
13643 fi
13644
13645 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13646         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13647                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13648         fi
13649         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13650         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13651 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13652 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h.  */
13657 int i;
13658 _ACEOF
13659 if ac_fn_c_try_compile "$LINENO"; then :
13660   xorg_cv_compiler_flag_unused_command_line_argument=yes
13661 else
13662   xorg_cv_compiler_flag_unused_command_line_argument=no
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 fi
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13667 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13668         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13669         CFLAGS="$xorg_testset_save_CFLAGS"
13670 fi
13671
13672 found="no"
13673
13674         if test $found = "no" ; then
13675                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13676                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13677                 fi
13678
13679                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13680                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13681                 fi
13682
13683                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13684
13685                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13686 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13687                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13688                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13689   $as_echo_n "(cached) " >&6
13690 else
13691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h.  */
13693 int i;
13694 int
13695 main ()
13696 {
13697
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 if ac_fn_c_try_link "$LINENO"; then :
13703   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13704 else
13705   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext \
13708     conftest$ac_exeext conftest.$ac_ext
13709 fi
13710
13711
13712                 CFLAGS="$xorg_testset_save_CFLAGS"
13713
13714                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13715                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13716 $as_echo "$supported" >&6; }
13717                 if test "$supported" = "yes" ; then
13718                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13719                         found="yes"
13720                 fi
13721         fi
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735 xorg_testset_save_CFLAGS="$CFLAGS"
13736
13737 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13738         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13739         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13740 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13741 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13742   $as_echo_n "(cached) " >&6
13743 else
13744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h.  */
13746 int i;
13747 _ACEOF
13748 if ac_fn_c_try_compile "$LINENO"; then :
13749   xorg_cv_compiler_flag_unknown_warning_option=yes
13750 else
13751   xorg_cv_compiler_flag_unknown_warning_option=no
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13756 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13757         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13758         CFLAGS="$xorg_testset_save_CFLAGS"
13759 fi
13760
13761 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13762         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13763                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13764         fi
13765         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13767 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13768 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13769   $as_echo_n "(cached) " >&6
13770 else
13771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h.  */
13773 int i;
13774 _ACEOF
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776   xorg_cv_compiler_flag_unused_command_line_argument=yes
13777 else
13778   xorg_cv_compiler_flag_unused_command_line_argument=no
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13783 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13784         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13785         CFLAGS="$xorg_testset_save_CFLAGS"
13786 fi
13787
13788 found="no"
13789
13790         if test $found = "no" ; then
13791                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13792                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13793                 fi
13794
13795                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13796                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13797                 fi
13798
13799                 CFLAGS="$CFLAGS -Wredundant-decls"
13800
13801                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13802 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13803                 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13804                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13805   $as_echo_n "(cached) " >&6
13806 else
13807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809 int i;
13810 int
13811 main ()
13812 {
13813
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 if ac_fn_c_try_link "$LINENO"; then :
13819   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13820 else
13821   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13822 fi
13823 rm -f core conftest.err conftest.$ac_objext \
13824     conftest$ac_exeext conftest.$ac_ext
13825 fi
13826
13827
13828                 CFLAGS="$xorg_testset_save_CFLAGS"
13829
13830                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13831                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13832 $as_echo "$supported" >&6; }
13833                 if test "$supported" = "yes" ; then
13834                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13835                         found="yes"
13836                 fi
13837         fi
13838
13839
13840
13841 # These are currently disabled because they are noisy.  They will be enabled
13842 # in the future once the codebase is sufficiently modernized to silence
13843 # them.  For now, I don't want them to drown out the other warnings.
13844 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13845 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13846 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13847
13848 # Turn some warnings into errors, so we don't accidently get successful builds
13849 # when there are problems that should be fixed.
13850
13851 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863 xorg_testset_save_CFLAGS="$CFLAGS"
13864
13865 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13866         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13868 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13869 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h.  */
13874 int i;
13875 _ACEOF
13876 if ac_fn_c_try_compile "$LINENO"; then :
13877   xorg_cv_compiler_flag_unknown_warning_option=yes
13878 else
13879   xorg_cv_compiler_flag_unknown_warning_option=no
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13884 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13885         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13886         CFLAGS="$xorg_testset_save_CFLAGS"
13887 fi
13888
13889 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13890         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13891                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13892         fi
13893         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13895 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13896 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h.  */
13901 int i;
13902 _ACEOF
13903 if ac_fn_c_try_compile "$LINENO"; then :
13904   xorg_cv_compiler_flag_unused_command_line_argument=yes
13905 else
13906   xorg_cv_compiler_flag_unused_command_line_argument=no
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13909 fi
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13911 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13912         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13913         CFLAGS="$xorg_testset_save_CFLAGS"
13914 fi
13915
13916 found="no"
13917
13918         if test $found = "no" ; then
13919                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13920                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13921                 fi
13922
13923                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13924                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13925                 fi
13926
13927                 CFLAGS="$CFLAGS -Werror=implicit"
13928
13929                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13930 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13931                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13932                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13933   $as_echo_n "(cached) " >&6
13934 else
13935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h.  */
13937 int i;
13938 int
13939 main ()
13940 {
13941
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_c_try_link "$LINENO"; then :
13947   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13948 else
13949   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext \
13952     conftest$ac_exeext conftest.$ac_ext
13953 fi
13954
13955
13956                 CFLAGS="$xorg_testset_save_CFLAGS"
13957
13958                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13959                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13960 $as_echo "$supported" >&6; }
13961                 if test "$supported" = "yes" ; then
13962                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13963                         found="yes"
13964                 fi
13965         fi
13966
13967         if test $found = "no" ; then
13968                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13969                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13970                 fi
13971
13972                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13973                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13974                 fi
13975
13976                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13977
13978                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13979 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13980                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13981                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13982   $as_echo_n "(cached) " >&6
13983 else
13984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h.  */
13986 int i;
13987 int
13988 main ()
13989 {
13990
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 if ac_fn_c_try_link "$LINENO"; then :
13996   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13997 else
13998   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext \
14001     conftest$ac_exeext conftest.$ac_ext
14002 fi
14003
14004
14005                 CFLAGS="$xorg_testset_save_CFLAGS"
14006
14007                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14008                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14009 $as_echo "$supported" >&6; }
14010                 if test "$supported" = "yes" ; then
14011                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14012                         found="yes"
14013                 fi
14014         fi
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028 xorg_testset_save_CFLAGS="$CFLAGS"
14029
14030 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14031         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14033 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14034 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14035   $as_echo_n "(cached) " >&6
14036 else
14037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h.  */
14039 int i;
14040 _ACEOF
14041 if ac_fn_c_try_compile "$LINENO"; then :
14042   xorg_cv_compiler_flag_unknown_warning_option=yes
14043 else
14044   xorg_cv_compiler_flag_unknown_warning_option=no
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047 fi
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14049 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14050         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14051         CFLAGS="$xorg_testset_save_CFLAGS"
14052 fi
14053
14054 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14055         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14056                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14057         fi
14058         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14060 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14061 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14062   $as_echo_n "(cached) " >&6
14063 else
14064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h.  */
14066 int i;
14067 _ACEOF
14068 if ac_fn_c_try_compile "$LINENO"; then :
14069   xorg_cv_compiler_flag_unused_command_line_argument=yes
14070 else
14071   xorg_cv_compiler_flag_unused_command_line_argument=no
14072 fi
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14076 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14077         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14078         CFLAGS="$xorg_testset_save_CFLAGS"
14079 fi
14080
14081 found="no"
14082
14083         if test $found = "no" ; then
14084                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14085                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14086                 fi
14087
14088                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14089                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14090                 fi
14091
14092                 CFLAGS="$CFLAGS -Werror=nonnull"
14093
14094                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14095 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14096                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
14097                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14098   $as_echo_n "(cached) " >&6
14099 else
14100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h.  */
14102 int i;
14103 int
14104 main ()
14105 {
14106
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_link "$LINENO"; then :
14112   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14113 else
14114   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext \
14117     conftest$ac_exeext conftest.$ac_ext
14118 fi
14119
14120
14121                 CFLAGS="$xorg_testset_save_CFLAGS"
14122
14123                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14124                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14125 $as_echo "$supported" >&6; }
14126                 if test "$supported" = "yes" ; then
14127                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14128                         found="yes"
14129                 fi
14130         fi
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144 xorg_testset_save_CFLAGS="$CFLAGS"
14145
14146 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14147         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14149 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14150 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14151   $as_echo_n "(cached) " >&6
14152 else
14153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h.  */
14155 int i;
14156 _ACEOF
14157 if ac_fn_c_try_compile "$LINENO"; then :
14158   xorg_cv_compiler_flag_unknown_warning_option=yes
14159 else
14160   xorg_cv_compiler_flag_unknown_warning_option=no
14161 fi
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 fi
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14165 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14166         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14167         CFLAGS="$xorg_testset_save_CFLAGS"
14168 fi
14169
14170 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14171         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14172                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14173         fi
14174         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14176 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14177 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14178   $as_echo_n "(cached) " >&6
14179 else
14180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h.  */
14182 int i;
14183 _ACEOF
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185   xorg_cv_compiler_flag_unused_command_line_argument=yes
14186 else
14187   xorg_cv_compiler_flag_unused_command_line_argument=no
14188 fi
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 fi
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14192 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14193         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14194         CFLAGS="$xorg_testset_save_CFLAGS"
14195 fi
14196
14197 found="no"
14198
14199         if test $found = "no" ; then
14200                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14201                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202                 fi
14203
14204                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14205                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14206                 fi
14207
14208                 CFLAGS="$CFLAGS -Werror=init-self"
14209
14210                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14211 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14212                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
14213                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14214   $as_echo_n "(cached) " >&6
14215 else
14216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h.  */
14218 int i;
14219 int
14220 main ()
14221 {
14222
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_link "$LINENO"; then :
14228   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14229 else
14230   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext \
14233     conftest$ac_exeext conftest.$ac_ext
14234 fi
14235
14236
14237                 CFLAGS="$xorg_testset_save_CFLAGS"
14238
14239                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14240                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14241 $as_echo "$supported" >&6; }
14242                 if test "$supported" = "yes" ; then
14243                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14244                         found="yes"
14245                 fi
14246         fi
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260 xorg_testset_save_CFLAGS="$CFLAGS"
14261
14262 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14263         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14265 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14266 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14267   $as_echo_n "(cached) " >&6
14268 else
14269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h.  */
14271 int i;
14272 _ACEOF
14273 if ac_fn_c_try_compile "$LINENO"; then :
14274   xorg_cv_compiler_flag_unknown_warning_option=yes
14275 else
14276   xorg_cv_compiler_flag_unknown_warning_option=no
14277 fi
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14281 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14282         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14283         CFLAGS="$xorg_testset_save_CFLAGS"
14284 fi
14285
14286 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14287         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14288                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14289         fi
14290         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14292 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14293 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14294   $as_echo_n "(cached) " >&6
14295 else
14296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h.  */
14298 int i;
14299 _ACEOF
14300 if ac_fn_c_try_compile "$LINENO"; then :
14301   xorg_cv_compiler_flag_unused_command_line_argument=yes
14302 else
14303   xorg_cv_compiler_flag_unused_command_line_argument=no
14304 fi
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 fi
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14308 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14309         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14310         CFLAGS="$xorg_testset_save_CFLAGS"
14311 fi
14312
14313 found="no"
14314
14315         if test $found = "no" ; then
14316                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14317                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14318                 fi
14319
14320                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14321                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14322                 fi
14323
14324                 CFLAGS="$CFLAGS -Werror=main"
14325
14326                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14327 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14328                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14329                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14330   $as_echo_n "(cached) " >&6
14331 else
14332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h.  */
14334 int i;
14335 int
14336 main ()
14337 {
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 if ac_fn_c_try_link "$LINENO"; then :
14344   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14345 else
14346   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14347 fi
14348 rm -f core conftest.err conftest.$ac_objext \
14349     conftest$ac_exeext conftest.$ac_ext
14350 fi
14351
14352
14353                 CFLAGS="$xorg_testset_save_CFLAGS"
14354
14355                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14356                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14357 $as_echo "$supported" >&6; }
14358                 if test "$supported" = "yes" ; then
14359                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14360                         found="yes"
14361                 fi
14362         fi
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376 xorg_testset_save_CFLAGS="$CFLAGS"
14377
14378 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14379         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14381 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14382 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14383   $as_echo_n "(cached) " >&6
14384 else
14385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h.  */
14387 int i;
14388 _ACEOF
14389 if ac_fn_c_try_compile "$LINENO"; then :
14390   xorg_cv_compiler_flag_unknown_warning_option=yes
14391 else
14392   xorg_cv_compiler_flag_unknown_warning_option=no
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14397 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14398         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14399         CFLAGS="$xorg_testset_save_CFLAGS"
14400 fi
14401
14402 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14403         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14404                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14405         fi
14406         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14407         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14408 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14409 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14410   $as_echo_n "(cached) " >&6
14411 else
14412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h.  */
14414 int i;
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417   xorg_cv_compiler_flag_unused_command_line_argument=yes
14418 else
14419   xorg_cv_compiler_flag_unused_command_line_argument=no
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14424 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14425         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14426         CFLAGS="$xorg_testset_save_CFLAGS"
14427 fi
14428
14429 found="no"
14430
14431         if test $found = "no" ; then
14432                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14433                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14434                 fi
14435
14436                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14437                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14438                 fi
14439
14440                 CFLAGS="$CFLAGS -Werror=missing-braces"
14441
14442                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14443 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14444                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14445                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14446   $as_echo_n "(cached) " >&6
14447 else
14448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h.  */
14450 int i;
14451 int
14452 main ()
14453 {
14454
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 if ac_fn_c_try_link "$LINENO"; then :
14460   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14461 else
14462   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext \
14465     conftest$ac_exeext conftest.$ac_ext
14466 fi
14467
14468
14469                 CFLAGS="$xorg_testset_save_CFLAGS"
14470
14471                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14472                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14473 $as_echo "$supported" >&6; }
14474                 if test "$supported" = "yes" ; then
14475                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14476                         found="yes"
14477                 fi
14478         fi
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492 xorg_testset_save_CFLAGS="$CFLAGS"
14493
14494 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14495         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14497 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14498 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14499   $as_echo_n "(cached) " >&6
14500 else
14501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503 int i;
14504 _ACEOF
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506   xorg_cv_compiler_flag_unknown_warning_option=yes
14507 else
14508   xorg_cv_compiler_flag_unknown_warning_option=no
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14513 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14514         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14515         CFLAGS="$xorg_testset_save_CFLAGS"
14516 fi
14517
14518 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14519         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14520                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14521         fi
14522         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14523         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14524 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14525 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14526   $as_echo_n "(cached) " >&6
14527 else
14528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h.  */
14530 int i;
14531 _ACEOF
14532 if ac_fn_c_try_compile "$LINENO"; then :
14533   xorg_cv_compiler_flag_unused_command_line_argument=yes
14534 else
14535   xorg_cv_compiler_flag_unused_command_line_argument=no
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 fi
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14540 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14541         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14542         CFLAGS="$xorg_testset_save_CFLAGS"
14543 fi
14544
14545 found="no"
14546
14547         if test $found = "no" ; then
14548                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14549                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14550                 fi
14551
14552                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14553                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14554                 fi
14555
14556                 CFLAGS="$CFLAGS -Werror=sequence-point"
14557
14558                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14559 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14560                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14561                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14562   $as_echo_n "(cached) " >&6
14563 else
14564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h.  */
14566 int i;
14567 int
14568 main ()
14569 {
14570
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 if ac_fn_c_try_link "$LINENO"; then :
14576   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14577 else
14578   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14579 fi
14580 rm -f core conftest.err conftest.$ac_objext \
14581     conftest$ac_exeext conftest.$ac_ext
14582 fi
14583
14584
14585                 CFLAGS="$xorg_testset_save_CFLAGS"
14586
14587                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14588                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14589 $as_echo "$supported" >&6; }
14590                 if test "$supported" = "yes" ; then
14591                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14592                         found="yes"
14593                 fi
14594         fi
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608 xorg_testset_save_CFLAGS="$CFLAGS"
14609
14610 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14611         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14613 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14614 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14615   $as_echo_n "(cached) " >&6
14616 else
14617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h.  */
14619 int i;
14620 _ACEOF
14621 if ac_fn_c_try_compile "$LINENO"; then :
14622   xorg_cv_compiler_flag_unknown_warning_option=yes
14623 else
14624   xorg_cv_compiler_flag_unknown_warning_option=no
14625 fi
14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14629 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14630         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14631         CFLAGS="$xorg_testset_save_CFLAGS"
14632 fi
14633
14634 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14635         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14636                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14637         fi
14638         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14639         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14640 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14641 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14642   $as_echo_n "(cached) " >&6
14643 else
14644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h.  */
14646 int i;
14647 _ACEOF
14648 if ac_fn_c_try_compile "$LINENO"; then :
14649   xorg_cv_compiler_flag_unused_command_line_argument=yes
14650 else
14651   xorg_cv_compiler_flag_unused_command_line_argument=no
14652 fi
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 fi
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14656 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14657         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14658         CFLAGS="$xorg_testset_save_CFLAGS"
14659 fi
14660
14661 found="no"
14662
14663         if test $found = "no" ; then
14664                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14665                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14666                 fi
14667
14668                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14669                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14670                 fi
14671
14672                 CFLAGS="$CFLAGS -Werror=return-type"
14673
14674                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14675 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14676                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14677                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14678   $as_echo_n "(cached) " >&6
14679 else
14680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h.  */
14682 int i;
14683 int
14684 main ()
14685 {
14686
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 if ac_fn_c_try_link "$LINENO"; then :
14692   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14693 else
14694   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14695 fi
14696 rm -f core conftest.err conftest.$ac_objext \
14697     conftest$ac_exeext conftest.$ac_ext
14698 fi
14699
14700
14701                 CFLAGS="$xorg_testset_save_CFLAGS"
14702
14703                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14704                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14705 $as_echo "$supported" >&6; }
14706                 if test "$supported" = "yes" ; then
14707                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14708                         found="yes"
14709                 fi
14710         fi
14711
14712         if test $found = "no" ; then
14713                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14714                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14715                 fi
14716
14717                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14718                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14719                 fi
14720
14721                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14722
14723                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14724 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14725                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14726                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14727   $as_echo_n "(cached) " >&6
14728 else
14729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h.  */
14731 int i;
14732 int
14733 main ()
14734 {
14735
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 if ac_fn_c_try_link "$LINENO"; then :
14741   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14742 else
14743   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14744 fi
14745 rm -f core conftest.err conftest.$ac_objext \
14746     conftest$ac_exeext conftest.$ac_ext
14747 fi
14748
14749
14750                 CFLAGS="$xorg_testset_save_CFLAGS"
14751
14752                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14753                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14754 $as_echo "$supported" >&6; }
14755                 if test "$supported" = "yes" ; then
14756                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14757                         found="yes"
14758                 fi
14759         fi
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773 xorg_testset_save_CFLAGS="$CFLAGS"
14774
14775 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14776         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14778 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14779 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14780   $as_echo_n "(cached) " >&6
14781 else
14782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h.  */
14784 int i;
14785 _ACEOF
14786 if ac_fn_c_try_compile "$LINENO"; then :
14787   xorg_cv_compiler_flag_unknown_warning_option=yes
14788 else
14789   xorg_cv_compiler_flag_unknown_warning_option=no
14790 fi
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792 fi
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14794 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14795         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14796         CFLAGS="$xorg_testset_save_CFLAGS"
14797 fi
14798
14799 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14800         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14801                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14802         fi
14803         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14805 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14806 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14807   $as_echo_n "(cached) " >&6
14808 else
14809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h.  */
14811 int i;
14812 _ACEOF
14813 if ac_fn_c_try_compile "$LINENO"; then :
14814   xorg_cv_compiler_flag_unused_command_line_argument=yes
14815 else
14816   xorg_cv_compiler_flag_unused_command_line_argument=no
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14821 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14822         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14823         CFLAGS="$xorg_testset_save_CFLAGS"
14824 fi
14825
14826 found="no"
14827
14828         if test $found = "no" ; then
14829                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14830                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14831                 fi
14832
14833                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14834                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14835                 fi
14836
14837                 CFLAGS="$CFLAGS -Werror=trigraphs"
14838
14839                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14840 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14841                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14842                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14843   $as_echo_n "(cached) " >&6
14844 else
14845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h.  */
14847 int i;
14848 int
14849 main ()
14850 {
14851
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 if ac_fn_c_try_link "$LINENO"; then :
14857   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14858 else
14859   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext \
14862     conftest$ac_exeext conftest.$ac_ext
14863 fi
14864
14865
14866                 CFLAGS="$xorg_testset_save_CFLAGS"
14867
14868                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14869                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14870 $as_echo "$supported" >&6; }
14871                 if test "$supported" = "yes" ; then
14872                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14873                         found="yes"
14874                 fi
14875         fi
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889 xorg_testset_save_CFLAGS="$CFLAGS"
14890
14891 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14892         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14894 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14895 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14896   $as_echo_n "(cached) " >&6
14897 else
14898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h.  */
14900 int i;
14901 _ACEOF
14902 if ac_fn_c_try_compile "$LINENO"; then :
14903   xorg_cv_compiler_flag_unknown_warning_option=yes
14904 else
14905   xorg_cv_compiler_flag_unknown_warning_option=no
14906 fi
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 fi
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14910 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14911         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14912         CFLAGS="$xorg_testset_save_CFLAGS"
14913 fi
14914
14915 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14916         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14917                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14918         fi
14919         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14921 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14922 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14923   $as_echo_n "(cached) " >&6
14924 else
14925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h.  */
14927 int i;
14928 _ACEOF
14929 if ac_fn_c_try_compile "$LINENO"; then :
14930   xorg_cv_compiler_flag_unused_command_line_argument=yes
14931 else
14932   xorg_cv_compiler_flag_unused_command_line_argument=no
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14937 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14938         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14939         CFLAGS="$xorg_testset_save_CFLAGS"
14940 fi
14941
14942 found="no"
14943
14944         if test $found = "no" ; then
14945                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14946                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14947                 fi
14948
14949                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14950                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14951                 fi
14952
14953                 CFLAGS="$CFLAGS -Werror=array-bounds"
14954
14955                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14956 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14957                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14958                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14959   $as_echo_n "(cached) " >&6
14960 else
14961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h.  */
14963 int i;
14964 int
14965 main ()
14966 {
14967
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_link "$LINENO"; then :
14973   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14974 else
14975   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14976 fi
14977 rm -f core conftest.err conftest.$ac_objext \
14978     conftest$ac_exeext conftest.$ac_ext
14979 fi
14980
14981
14982                 CFLAGS="$xorg_testset_save_CFLAGS"
14983
14984                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14985                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14986 $as_echo "$supported" >&6; }
14987                 if test "$supported" = "yes" ; then
14988                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14989                         found="yes"
14990                 fi
14991         fi
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005 xorg_testset_save_CFLAGS="$CFLAGS"
15006
15007 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15008         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15010 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15011 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15012   $as_echo_n "(cached) " >&6
15013 else
15014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h.  */
15016 int i;
15017 _ACEOF
15018 if ac_fn_c_try_compile "$LINENO"; then :
15019   xorg_cv_compiler_flag_unknown_warning_option=yes
15020 else
15021   xorg_cv_compiler_flag_unknown_warning_option=no
15022 fi
15023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 fi
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15026 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15027         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15028         CFLAGS="$xorg_testset_save_CFLAGS"
15029 fi
15030
15031 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15032         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15033                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15034         fi
15035         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15037 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15038 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15039   $as_echo_n "(cached) " >&6
15040 else
15041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h.  */
15043 int i;
15044 _ACEOF
15045 if ac_fn_c_try_compile "$LINENO"; then :
15046   xorg_cv_compiler_flag_unused_command_line_argument=yes
15047 else
15048   xorg_cv_compiler_flag_unused_command_line_argument=no
15049 fi
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 fi
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15053 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15054         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15055         CFLAGS="$xorg_testset_save_CFLAGS"
15056 fi
15057
15058 found="no"
15059
15060         if test $found = "no" ; then
15061                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15062                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15063                 fi
15064
15065                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15066                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15067                 fi
15068
15069                 CFLAGS="$CFLAGS -Werror=write-strings"
15070
15071                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15072 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15073                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
15074                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15075   $as_echo_n "(cached) " >&6
15076 else
15077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h.  */
15079 int i;
15080 int
15081 main ()
15082 {
15083
15084   ;
15085   return 0;
15086 }
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15090 else
15091   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15092 fi
15093 rm -f core conftest.err conftest.$ac_objext \
15094     conftest$ac_exeext conftest.$ac_ext
15095 fi
15096
15097
15098                 CFLAGS="$xorg_testset_save_CFLAGS"
15099
15100                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15101                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15102 $as_echo "$supported" >&6; }
15103                 if test "$supported" = "yes" ; then
15104                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15105                         found="yes"
15106                 fi
15107         fi
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121 xorg_testset_save_CFLAGS="$CFLAGS"
15122
15123 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15124         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15126 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15127 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15128   $as_echo_n "(cached) " >&6
15129 else
15130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h.  */
15132 int i;
15133 _ACEOF
15134 if ac_fn_c_try_compile "$LINENO"; then :
15135   xorg_cv_compiler_flag_unknown_warning_option=yes
15136 else
15137   xorg_cv_compiler_flag_unknown_warning_option=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15140 fi
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15142 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15143         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15144         CFLAGS="$xorg_testset_save_CFLAGS"
15145 fi
15146
15147 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15148         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15149                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15150         fi
15151         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15153 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15154 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15155   $as_echo_n "(cached) " >&6
15156 else
15157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h.  */
15159 int i;
15160 _ACEOF
15161 if ac_fn_c_try_compile "$LINENO"; then :
15162   xorg_cv_compiler_flag_unused_command_line_argument=yes
15163 else
15164   xorg_cv_compiler_flag_unused_command_line_argument=no
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 fi
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15169 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15170         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15171         CFLAGS="$xorg_testset_save_CFLAGS"
15172 fi
15173
15174 found="no"
15175
15176         if test $found = "no" ; then
15177                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15178                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15179                 fi
15180
15181                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15182                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15183                 fi
15184
15185                 CFLAGS="$CFLAGS -Werror=address"
15186
15187                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15188 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15189                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
15190                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15191   $as_echo_n "(cached) " >&6
15192 else
15193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h.  */
15195 int i;
15196 int
15197 main ()
15198 {
15199
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 if ac_fn_c_try_link "$LINENO"; then :
15205   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15206 else
15207   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15208 fi
15209 rm -f core conftest.err conftest.$ac_objext \
15210     conftest$ac_exeext conftest.$ac_ext
15211 fi
15212
15213
15214                 CFLAGS="$xorg_testset_save_CFLAGS"
15215
15216                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15217                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15218 $as_echo "$supported" >&6; }
15219                 if test "$supported" = "yes" ; then
15220                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15221                         found="yes"
15222                 fi
15223         fi
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237 xorg_testset_save_CFLAGS="$CFLAGS"
15238
15239 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15240         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15242 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15243 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15244   $as_echo_n "(cached) " >&6
15245 else
15246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h.  */
15248 int i;
15249 _ACEOF
15250 if ac_fn_c_try_compile "$LINENO"; then :
15251   xorg_cv_compiler_flag_unknown_warning_option=yes
15252 else
15253   xorg_cv_compiler_flag_unknown_warning_option=no
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 fi
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15258 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15259         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15260         CFLAGS="$xorg_testset_save_CFLAGS"
15261 fi
15262
15263 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15264         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15265                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15266         fi
15267         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15269 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15270 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15271   $as_echo_n "(cached) " >&6
15272 else
15273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h.  */
15275 int i;
15276 _ACEOF
15277 if ac_fn_c_try_compile "$LINENO"; then :
15278   xorg_cv_compiler_flag_unused_command_line_argument=yes
15279 else
15280   xorg_cv_compiler_flag_unused_command_line_argument=no
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15285 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15286         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15287         CFLAGS="$xorg_testset_save_CFLAGS"
15288 fi
15289
15290 found="no"
15291
15292         if test $found = "no" ; then
15293                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15294                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295                 fi
15296
15297                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15298                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15299                 fi
15300
15301                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15302
15303                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15304 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15305                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15306                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15307   $as_echo_n "(cached) " >&6
15308 else
15309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h.  */
15311 int i;
15312 int
15313 main ()
15314 {
15315
15316   ;
15317   return 0;
15318 }
15319 _ACEOF
15320 if ac_fn_c_try_link "$LINENO"; then :
15321   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15322 else
15323   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15324 fi
15325 rm -f core conftest.err conftest.$ac_objext \
15326     conftest$ac_exeext conftest.$ac_ext
15327 fi
15328
15329
15330                 CFLAGS="$xorg_testset_save_CFLAGS"
15331
15332                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15333                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15334 $as_echo "$supported" >&6; }
15335                 if test "$supported" = "yes" ; then
15336                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15337                         found="yes"
15338                 fi
15339         fi
15340
15341         if test $found = "no" ; then
15342                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15343                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15344                 fi
15345
15346                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15347                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15348                 fi
15349
15350                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15351
15352                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15353 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15354                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15355                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15356   $as_echo_n "(cached) " >&6
15357 else
15358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h.  */
15360 int i;
15361 int
15362 main ()
15363 {
15364
15365   ;
15366   return 0;
15367 }
15368 _ACEOF
15369 if ac_fn_c_try_link "$LINENO"; then :
15370   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15371 else
15372   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15373 fi
15374 rm -f core conftest.err conftest.$ac_objext \
15375     conftest$ac_exeext conftest.$ac_ext
15376 fi
15377
15378
15379                 CFLAGS="$xorg_testset_save_CFLAGS"
15380
15381                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15382                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15383 $as_echo "$supported" >&6; }
15384                 if test "$supported" = "yes" ; then
15385                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15386                         found="yes"
15387                 fi
15388         fi
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402 xorg_testset_save_CFLAGS="$CFLAGS"
15403
15404 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15405         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15406         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15407 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15408 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15409   $as_echo_n "(cached) " >&6
15410 else
15411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h.  */
15413 int i;
15414 _ACEOF
15415 if ac_fn_c_try_compile "$LINENO"; then :
15416   xorg_cv_compiler_flag_unknown_warning_option=yes
15417 else
15418   xorg_cv_compiler_flag_unknown_warning_option=no
15419 fi
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15423 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15424         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15425         CFLAGS="$xorg_testset_save_CFLAGS"
15426 fi
15427
15428 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15429         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15430                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431         fi
15432         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15434 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15435 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15436   $as_echo_n "(cached) " >&6
15437 else
15438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h.  */
15440 int i;
15441 _ACEOF
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443   xorg_cv_compiler_flag_unused_command_line_argument=yes
15444 else
15445   xorg_cv_compiler_flag_unused_command_line_argument=no
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 fi
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15450 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15451         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15452         CFLAGS="$xorg_testset_save_CFLAGS"
15453 fi
15454
15455 found="no"
15456
15457         if test $found = "no" ; then
15458                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15459                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15460                 fi
15461
15462                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15463                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15464                 fi
15465
15466                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15467
15468                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15469 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15470                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15471                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15472   $as_echo_n "(cached) " >&6
15473 else
15474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h.  */
15476 int i;
15477 int
15478 main ()
15479 {
15480
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 if ac_fn_c_try_link "$LINENO"; then :
15486   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15487 else
15488   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15489 fi
15490 rm -f core conftest.err conftest.$ac_objext \
15491     conftest$ac_exeext conftest.$ac_ext
15492 fi
15493
15494
15495                 CFLAGS="$xorg_testset_save_CFLAGS"
15496
15497                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15498                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15499 $as_echo "$supported" >&6; }
15500                 if test "$supported" = "yes" ; then
15501                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15502                         found="yes"
15503                 fi
15504         fi
15505
15506  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15507 else
15508 { $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
15509 $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;}
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521 xorg_testset_save_CFLAGS="$CFLAGS"
15522
15523 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15524         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15526 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15527 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h.  */
15532 int i;
15533 _ACEOF
15534 if ac_fn_c_try_compile "$LINENO"; then :
15535   xorg_cv_compiler_flag_unknown_warning_option=yes
15536 else
15537   xorg_cv_compiler_flag_unknown_warning_option=no
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 fi
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15542 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15543         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15544         CFLAGS="$xorg_testset_save_CFLAGS"
15545 fi
15546
15547 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15548         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15549                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15550         fi
15551         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15552         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15553 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15554 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15555   $as_echo_n "(cached) " >&6
15556 else
15557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h.  */
15559 int i;
15560 _ACEOF
15561 if ac_fn_c_try_compile "$LINENO"; then :
15562   xorg_cv_compiler_flag_unused_command_line_argument=yes
15563 else
15564   xorg_cv_compiler_flag_unused_command_line_argument=no
15565 fi
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567 fi
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15569 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15570         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15571         CFLAGS="$xorg_testset_save_CFLAGS"
15572 fi
15573
15574 found="no"
15575
15576         if test $found = "no" ; then
15577                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15578                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15579                 fi
15580
15581                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15582                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15583                 fi
15584
15585                 CFLAGS="$CFLAGS -Wimplicit"
15586
15587                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15588 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15589                 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15590                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15591   $as_echo_n "(cached) " >&6
15592 else
15593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h.  */
15595 int i;
15596 int
15597 main ()
15598 {
15599
15600   ;
15601   return 0;
15602 }
15603 _ACEOF
15604 if ac_fn_c_try_link "$LINENO"; then :
15605   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15606 else
15607   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15608 fi
15609 rm -f core conftest.err conftest.$ac_objext \
15610     conftest$ac_exeext conftest.$ac_ext
15611 fi
15612
15613
15614                 CFLAGS="$xorg_testset_save_CFLAGS"
15615
15616                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15617                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15618 $as_echo "$supported" >&6; }
15619                 if test "$supported" = "yes" ; then
15620                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15621                         found="yes"
15622                 fi
15623         fi
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637 xorg_testset_save_CFLAGS="$CFLAGS"
15638
15639 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15640         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15642 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15643 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15644   $as_echo_n "(cached) " >&6
15645 else
15646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h.  */
15648 int i;
15649 _ACEOF
15650 if ac_fn_c_try_compile "$LINENO"; then :
15651   xorg_cv_compiler_flag_unknown_warning_option=yes
15652 else
15653   xorg_cv_compiler_flag_unknown_warning_option=no
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 fi
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15658 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15659         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15660         CFLAGS="$xorg_testset_save_CFLAGS"
15661 fi
15662
15663 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15664         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15665                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15666         fi
15667         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15669 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15670 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15671   $as_echo_n "(cached) " >&6
15672 else
15673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h.  */
15675 int i;
15676 _ACEOF
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678   xorg_cv_compiler_flag_unused_command_line_argument=yes
15679 else
15680   xorg_cv_compiler_flag_unused_command_line_argument=no
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 fi
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15685 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15686         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15687         CFLAGS="$xorg_testset_save_CFLAGS"
15688 fi
15689
15690 found="no"
15691
15692         if test $found = "no" ; then
15693                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15694                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695                 fi
15696
15697                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15698                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15699                 fi
15700
15701                 CFLAGS="$CFLAGS -Wnonnull"
15702
15703                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15704 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15705                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15706                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15707   $as_echo_n "(cached) " >&6
15708 else
15709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h.  */
15711 int i;
15712 int
15713 main ()
15714 {
15715
15716   ;
15717   return 0;
15718 }
15719 _ACEOF
15720 if ac_fn_c_try_link "$LINENO"; then :
15721   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15722 else
15723   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15724 fi
15725 rm -f core conftest.err conftest.$ac_objext \
15726     conftest$ac_exeext conftest.$ac_ext
15727 fi
15728
15729
15730                 CFLAGS="$xorg_testset_save_CFLAGS"
15731
15732                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15733                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15734 $as_echo "$supported" >&6; }
15735                 if test "$supported" = "yes" ; then
15736                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15737                         found="yes"
15738                 fi
15739         fi
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753 xorg_testset_save_CFLAGS="$CFLAGS"
15754
15755 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15756         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15758 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15759 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h.  */
15764 int i;
15765 _ACEOF
15766 if ac_fn_c_try_compile "$LINENO"; then :
15767   xorg_cv_compiler_flag_unknown_warning_option=yes
15768 else
15769   xorg_cv_compiler_flag_unknown_warning_option=no
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 fi
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15774 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15775         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15776         CFLAGS="$xorg_testset_save_CFLAGS"
15777 fi
15778
15779 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15780         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15781                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782         fi
15783         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15785 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15786 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15787   $as_echo_n "(cached) " >&6
15788 else
15789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h.  */
15791 int i;
15792 _ACEOF
15793 if ac_fn_c_try_compile "$LINENO"; then :
15794   xorg_cv_compiler_flag_unused_command_line_argument=yes
15795 else
15796   xorg_cv_compiler_flag_unused_command_line_argument=no
15797 fi
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 fi
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15801 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15802         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15803         CFLAGS="$xorg_testset_save_CFLAGS"
15804 fi
15805
15806 found="no"
15807
15808         if test $found = "no" ; then
15809                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15810                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15811                 fi
15812
15813                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15814                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815                 fi
15816
15817                 CFLAGS="$CFLAGS -Winit-self"
15818
15819                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15820 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15821                 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15822                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15823   $as_echo_n "(cached) " >&6
15824 else
15825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h.  */
15827 int i;
15828 int
15829 main ()
15830 {
15831
15832   ;
15833   return 0;
15834 }
15835 _ACEOF
15836 if ac_fn_c_try_link "$LINENO"; then :
15837   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15838 else
15839   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext \
15842     conftest$ac_exeext conftest.$ac_ext
15843 fi
15844
15845
15846                 CFLAGS="$xorg_testset_save_CFLAGS"
15847
15848                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15849                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15850 $as_echo "$supported" >&6; }
15851                 if test "$supported" = "yes" ; then
15852                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15853                         found="yes"
15854                 fi
15855         fi
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869 xorg_testset_save_CFLAGS="$CFLAGS"
15870
15871 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15872         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15874 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15875 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15876   $as_echo_n "(cached) " >&6
15877 else
15878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h.  */
15880 int i;
15881 _ACEOF
15882 if ac_fn_c_try_compile "$LINENO"; then :
15883   xorg_cv_compiler_flag_unknown_warning_option=yes
15884 else
15885   xorg_cv_compiler_flag_unknown_warning_option=no
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 fi
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15890 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15891         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15892         CFLAGS="$xorg_testset_save_CFLAGS"
15893 fi
15894
15895 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15896         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15897                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15898         fi
15899         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15901 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15902 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15903   $as_echo_n "(cached) " >&6
15904 else
15905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h.  */
15907 int i;
15908 _ACEOF
15909 if ac_fn_c_try_compile "$LINENO"; then :
15910   xorg_cv_compiler_flag_unused_command_line_argument=yes
15911 else
15912   xorg_cv_compiler_flag_unused_command_line_argument=no
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15915 fi
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15917 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15918         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15919         CFLAGS="$xorg_testset_save_CFLAGS"
15920 fi
15921
15922 found="no"
15923
15924         if test $found = "no" ; then
15925                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15926                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15927                 fi
15928
15929                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15930                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15931                 fi
15932
15933                 CFLAGS="$CFLAGS -Wmain"
15934
15935                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15936 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15937                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15938                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15939   $as_echo_n "(cached) " >&6
15940 else
15941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h.  */
15943 int i;
15944 int
15945 main ()
15946 {
15947
15948   ;
15949   return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_link "$LINENO"; then :
15953   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15954 else
15955   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext \
15958     conftest$ac_exeext conftest.$ac_ext
15959 fi
15960
15961
15962                 CFLAGS="$xorg_testset_save_CFLAGS"
15963
15964                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15965                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15966 $as_echo "$supported" >&6; }
15967                 if test "$supported" = "yes" ; then
15968                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15969                         found="yes"
15970                 fi
15971         fi
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985 xorg_testset_save_CFLAGS="$CFLAGS"
15986
15987 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15988         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15990 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15991 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15992   $as_echo_n "(cached) " >&6
15993 else
15994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h.  */
15996 int i;
15997 _ACEOF
15998 if ac_fn_c_try_compile "$LINENO"; then :
15999   xorg_cv_compiler_flag_unknown_warning_option=yes
16000 else
16001   xorg_cv_compiler_flag_unknown_warning_option=no
16002 fi
16003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16004 fi
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16006 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16007         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16008         CFLAGS="$xorg_testset_save_CFLAGS"
16009 fi
16010
16011 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16012         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16013                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16014         fi
16015         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16017 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16018 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16019   $as_echo_n "(cached) " >&6
16020 else
16021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h.  */
16023 int i;
16024 _ACEOF
16025 if ac_fn_c_try_compile "$LINENO"; then :
16026   xorg_cv_compiler_flag_unused_command_line_argument=yes
16027 else
16028   xorg_cv_compiler_flag_unused_command_line_argument=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031 fi
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16033 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16034         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16035         CFLAGS="$xorg_testset_save_CFLAGS"
16036 fi
16037
16038 found="no"
16039
16040         if test $found = "no" ; then
16041                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16042                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16043                 fi
16044
16045                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16046                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16047                 fi
16048
16049                 CFLAGS="$CFLAGS -Wmissing-braces"
16050
16051                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16052 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16053                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
16054                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16055   $as_echo_n "(cached) " >&6
16056 else
16057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h.  */
16059 int i;
16060 int
16061 main ()
16062 {
16063
16064   ;
16065   return 0;
16066 }
16067 _ACEOF
16068 if ac_fn_c_try_link "$LINENO"; then :
16069   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16070 else
16071   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16072 fi
16073 rm -f core conftest.err conftest.$ac_objext \
16074     conftest$ac_exeext conftest.$ac_ext
16075 fi
16076
16077
16078                 CFLAGS="$xorg_testset_save_CFLAGS"
16079
16080                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16081                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16082 $as_echo "$supported" >&6; }
16083                 if test "$supported" = "yes" ; then
16084                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16085                         found="yes"
16086                 fi
16087         fi
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101 xorg_testset_save_CFLAGS="$CFLAGS"
16102
16103 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16104         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16106 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16107 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16108   $as_echo_n "(cached) " >&6
16109 else
16110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h.  */
16112 int i;
16113 _ACEOF
16114 if ac_fn_c_try_compile "$LINENO"; then :
16115   xorg_cv_compiler_flag_unknown_warning_option=yes
16116 else
16117   xorg_cv_compiler_flag_unknown_warning_option=no
16118 fi
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 fi
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16122 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16123         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16124         CFLAGS="$xorg_testset_save_CFLAGS"
16125 fi
16126
16127 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16128         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16129                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16130         fi
16131         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16133 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16134 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16135   $as_echo_n "(cached) " >&6
16136 else
16137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h.  */
16139 int i;
16140 _ACEOF
16141 if ac_fn_c_try_compile "$LINENO"; then :
16142   xorg_cv_compiler_flag_unused_command_line_argument=yes
16143 else
16144   xorg_cv_compiler_flag_unused_command_line_argument=no
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 fi
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16149 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16150         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16151         CFLAGS="$xorg_testset_save_CFLAGS"
16152 fi
16153
16154 found="no"
16155
16156         if test $found = "no" ; then
16157                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16158                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16159                 fi
16160
16161                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16162                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16163                 fi
16164
16165                 CFLAGS="$CFLAGS -Wsequence-point"
16166
16167                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16168 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16169                 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
16170                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16171   $as_echo_n "(cached) " >&6
16172 else
16173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h.  */
16175 int i;
16176 int
16177 main ()
16178 {
16179
16180   ;
16181   return 0;
16182 }
16183 _ACEOF
16184 if ac_fn_c_try_link "$LINENO"; then :
16185   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16186 else
16187   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16188 fi
16189 rm -f core conftest.err conftest.$ac_objext \
16190     conftest$ac_exeext conftest.$ac_ext
16191 fi
16192
16193
16194                 CFLAGS="$xorg_testset_save_CFLAGS"
16195
16196                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16197                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16198 $as_echo "$supported" >&6; }
16199                 if test "$supported" = "yes" ; then
16200                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16201                         found="yes"
16202                 fi
16203         fi
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217 xorg_testset_save_CFLAGS="$CFLAGS"
16218
16219 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16220         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16222 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16223 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16224   $as_echo_n "(cached) " >&6
16225 else
16226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h.  */
16228 int i;
16229 _ACEOF
16230 if ac_fn_c_try_compile "$LINENO"; then :
16231   xorg_cv_compiler_flag_unknown_warning_option=yes
16232 else
16233   xorg_cv_compiler_flag_unknown_warning_option=no
16234 fi
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 fi
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16238 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16239         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16240         CFLAGS="$xorg_testset_save_CFLAGS"
16241 fi
16242
16243 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16244         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16245                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16246         fi
16247         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16249 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16250 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16251   $as_echo_n "(cached) " >&6
16252 else
16253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h.  */
16255 int i;
16256 _ACEOF
16257 if ac_fn_c_try_compile "$LINENO"; then :
16258   xorg_cv_compiler_flag_unused_command_line_argument=yes
16259 else
16260   xorg_cv_compiler_flag_unused_command_line_argument=no
16261 fi
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16263 fi
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16265 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16266         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16267         CFLAGS="$xorg_testset_save_CFLAGS"
16268 fi
16269
16270 found="no"
16271
16272         if test $found = "no" ; then
16273                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16274                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16275                 fi
16276
16277                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16278                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16279                 fi
16280
16281                 CFLAGS="$CFLAGS -Wreturn-type"
16282
16283                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16284 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16285                 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16286                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16287   $as_echo_n "(cached) " >&6
16288 else
16289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h.  */
16291 int i;
16292 int
16293 main ()
16294 {
16295
16296   ;
16297   return 0;
16298 }
16299 _ACEOF
16300 if ac_fn_c_try_link "$LINENO"; then :
16301   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16302 else
16303   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16304 fi
16305 rm -f core conftest.err conftest.$ac_objext \
16306     conftest$ac_exeext conftest.$ac_ext
16307 fi
16308
16309
16310                 CFLAGS="$xorg_testset_save_CFLAGS"
16311
16312                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16313                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16314 $as_echo "$supported" >&6; }
16315                 if test "$supported" = "yes" ; then
16316                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16317                         found="yes"
16318                 fi
16319         fi
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333 xorg_testset_save_CFLAGS="$CFLAGS"
16334
16335 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16336         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16338 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16339 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16340   $as_echo_n "(cached) " >&6
16341 else
16342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h.  */
16344 int i;
16345 _ACEOF
16346 if ac_fn_c_try_compile "$LINENO"; then :
16347   xorg_cv_compiler_flag_unknown_warning_option=yes
16348 else
16349   xorg_cv_compiler_flag_unknown_warning_option=no
16350 fi
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16354 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16355         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16356         CFLAGS="$xorg_testset_save_CFLAGS"
16357 fi
16358
16359 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16360         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16361                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16362         fi
16363         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16364         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16365 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16366 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16367   $as_echo_n "(cached) " >&6
16368 else
16369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h.  */
16371 int i;
16372 _ACEOF
16373 if ac_fn_c_try_compile "$LINENO"; then :
16374   xorg_cv_compiler_flag_unused_command_line_argument=yes
16375 else
16376   xorg_cv_compiler_flag_unused_command_line_argument=no
16377 fi
16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379 fi
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16381 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16382         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16383         CFLAGS="$xorg_testset_save_CFLAGS"
16384 fi
16385
16386 found="no"
16387
16388         if test $found = "no" ; then
16389                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16390                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16391                 fi
16392
16393                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16394                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16395                 fi
16396
16397                 CFLAGS="$CFLAGS -Wtrigraphs"
16398
16399                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16400 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16401                 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16402                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16403   $as_echo_n "(cached) " >&6
16404 else
16405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h.  */
16407 int i;
16408 int
16409 main ()
16410 {
16411
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 if ac_fn_c_try_link "$LINENO"; then :
16417   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16418 else
16419   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16420 fi
16421 rm -f core conftest.err conftest.$ac_objext \
16422     conftest$ac_exeext conftest.$ac_ext
16423 fi
16424
16425
16426                 CFLAGS="$xorg_testset_save_CFLAGS"
16427
16428                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16429                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16430 $as_echo "$supported" >&6; }
16431                 if test "$supported" = "yes" ; then
16432                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16433                         found="yes"
16434                 fi
16435         fi
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449 xorg_testset_save_CFLAGS="$CFLAGS"
16450
16451 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16452         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16454 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16455 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16456   $as_echo_n "(cached) " >&6
16457 else
16458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h.  */
16460 int i;
16461 _ACEOF
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463   xorg_cv_compiler_flag_unknown_warning_option=yes
16464 else
16465   xorg_cv_compiler_flag_unknown_warning_option=no
16466 fi
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16468 fi
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16470 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16471         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16472         CFLAGS="$xorg_testset_save_CFLAGS"
16473 fi
16474
16475 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16476         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16477                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16478         fi
16479         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16480         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16481 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16482 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16483   $as_echo_n "(cached) " >&6
16484 else
16485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h.  */
16487 int i;
16488 _ACEOF
16489 if ac_fn_c_try_compile "$LINENO"; then :
16490   xorg_cv_compiler_flag_unused_command_line_argument=yes
16491 else
16492   xorg_cv_compiler_flag_unused_command_line_argument=no
16493 fi
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 fi
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16497 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16498         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16499         CFLAGS="$xorg_testset_save_CFLAGS"
16500 fi
16501
16502 found="no"
16503
16504         if test $found = "no" ; then
16505                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16506                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16507                 fi
16508
16509                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16510                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16511                 fi
16512
16513                 CFLAGS="$CFLAGS -Warray-bounds"
16514
16515                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16516 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16517                 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16518                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16519   $as_echo_n "(cached) " >&6
16520 else
16521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h.  */
16523 int i;
16524 int
16525 main ()
16526 {
16527
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_link "$LINENO"; then :
16533   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16534 else
16535   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext \
16538     conftest$ac_exeext conftest.$ac_ext
16539 fi
16540
16541
16542                 CFLAGS="$xorg_testset_save_CFLAGS"
16543
16544                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16545                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16546 $as_echo "$supported" >&6; }
16547                 if test "$supported" = "yes" ; then
16548                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16549                         found="yes"
16550                 fi
16551         fi
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565 xorg_testset_save_CFLAGS="$CFLAGS"
16566
16567 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16568         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16570 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16571 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16572   $as_echo_n "(cached) " >&6
16573 else
16574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h.  */
16576 int i;
16577 _ACEOF
16578 if ac_fn_c_try_compile "$LINENO"; then :
16579   xorg_cv_compiler_flag_unknown_warning_option=yes
16580 else
16581   xorg_cv_compiler_flag_unknown_warning_option=no
16582 fi
16583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16584 fi
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16586 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16587         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16588         CFLAGS="$xorg_testset_save_CFLAGS"
16589 fi
16590
16591 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16592         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16593                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16594         fi
16595         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16596         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16597 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16598 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16599   $as_echo_n "(cached) " >&6
16600 else
16601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h.  */
16603 int i;
16604 _ACEOF
16605 if ac_fn_c_try_compile "$LINENO"; then :
16606   xorg_cv_compiler_flag_unused_command_line_argument=yes
16607 else
16608   xorg_cv_compiler_flag_unused_command_line_argument=no
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 fi
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16613 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16614         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16615         CFLAGS="$xorg_testset_save_CFLAGS"
16616 fi
16617
16618 found="no"
16619
16620         if test $found = "no" ; then
16621                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16622                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16623                 fi
16624
16625                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16626                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16627                 fi
16628
16629                 CFLAGS="$CFLAGS -Wwrite-strings"
16630
16631                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16632 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16633                 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16634                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16635   $as_echo_n "(cached) " >&6
16636 else
16637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h.  */
16639 int i;
16640 int
16641 main ()
16642 {
16643
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 if ac_fn_c_try_link "$LINENO"; then :
16649   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16650 else
16651   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext \
16654     conftest$ac_exeext conftest.$ac_ext
16655 fi
16656
16657
16658                 CFLAGS="$xorg_testset_save_CFLAGS"
16659
16660                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16661                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16662 $as_echo "$supported" >&6; }
16663                 if test "$supported" = "yes" ; then
16664                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16665                         found="yes"
16666                 fi
16667         fi
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681 xorg_testset_save_CFLAGS="$CFLAGS"
16682
16683 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16684         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16686 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16687 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16688   $as_echo_n "(cached) " >&6
16689 else
16690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h.  */
16692 int i;
16693 _ACEOF
16694 if ac_fn_c_try_compile "$LINENO"; then :
16695   xorg_cv_compiler_flag_unknown_warning_option=yes
16696 else
16697   xorg_cv_compiler_flag_unknown_warning_option=no
16698 fi
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 fi
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16702 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16703         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16704         CFLAGS="$xorg_testset_save_CFLAGS"
16705 fi
16706
16707 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16708         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16709                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16710         fi
16711         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16713 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16714 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16715   $as_echo_n "(cached) " >&6
16716 else
16717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h.  */
16719 int i;
16720 _ACEOF
16721 if ac_fn_c_try_compile "$LINENO"; then :
16722   xorg_cv_compiler_flag_unused_command_line_argument=yes
16723 else
16724   xorg_cv_compiler_flag_unused_command_line_argument=no
16725 fi
16726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 fi
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16729 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16730         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16731         CFLAGS="$xorg_testset_save_CFLAGS"
16732 fi
16733
16734 found="no"
16735
16736         if test $found = "no" ; then
16737                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16738                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16739                 fi
16740
16741                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16742                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16743                 fi
16744
16745                 CFLAGS="$CFLAGS -Waddress"
16746
16747                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16748 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16749                 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16750                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16751   $as_echo_n "(cached) " >&6
16752 else
16753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h.  */
16755 int i;
16756 int
16757 main ()
16758 {
16759
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 if ac_fn_c_try_link "$LINENO"; then :
16765   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16766 else
16767   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext \
16770     conftest$ac_exeext conftest.$ac_ext
16771 fi
16772
16773
16774                 CFLAGS="$xorg_testset_save_CFLAGS"
16775
16776                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16777                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16778 $as_echo "$supported" >&6; }
16779                 if test "$supported" = "yes" ; then
16780                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16781                         found="yes"
16782                 fi
16783         fi
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797 xorg_testset_save_CFLAGS="$CFLAGS"
16798
16799 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16800         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16802 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16803 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16804   $as_echo_n "(cached) " >&6
16805 else
16806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h.  */
16808 int i;
16809 _ACEOF
16810 if ac_fn_c_try_compile "$LINENO"; then :
16811   xorg_cv_compiler_flag_unknown_warning_option=yes
16812 else
16813   xorg_cv_compiler_flag_unknown_warning_option=no
16814 fi
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16816 fi
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16818 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16819         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16820         CFLAGS="$xorg_testset_save_CFLAGS"
16821 fi
16822
16823 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16824         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16825                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16826         fi
16827         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16829 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16830 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16831   $as_echo_n "(cached) " >&6
16832 else
16833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h.  */
16835 int i;
16836 _ACEOF
16837 if ac_fn_c_try_compile "$LINENO"; then :
16838   xorg_cv_compiler_flag_unused_command_line_argument=yes
16839 else
16840   xorg_cv_compiler_flag_unused_command_line_argument=no
16841 fi
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 fi
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16845 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16846         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16847         CFLAGS="$xorg_testset_save_CFLAGS"
16848 fi
16849
16850 found="no"
16851
16852         if test $found = "no" ; then
16853                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16854                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16855                 fi
16856
16857                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16858                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16859                 fi
16860
16861                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16862
16863                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16864 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16865                 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16866                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16867   $as_echo_n "(cached) " >&6
16868 else
16869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h.  */
16871 int i;
16872 int
16873 main ()
16874 {
16875
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 if ac_fn_c_try_link "$LINENO"; then :
16881   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16882 else
16883   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext \
16886     conftest$ac_exeext conftest.$ac_ext
16887 fi
16888
16889
16890                 CFLAGS="$xorg_testset_save_CFLAGS"
16891
16892                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16893                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16894 $as_echo "$supported" >&6; }
16895                 if test "$supported" = "yes" ; then
16896                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16897                         found="yes"
16898                 fi
16899         fi
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913 xorg_testset_save_CFLAGS="$CFLAGS"
16914
16915 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16916         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16918 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16919 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16920   $as_echo_n "(cached) " >&6
16921 else
16922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h.  */
16924 int i;
16925 _ACEOF
16926 if ac_fn_c_try_compile "$LINENO"; then :
16927   xorg_cv_compiler_flag_unknown_warning_option=yes
16928 else
16929   xorg_cv_compiler_flag_unknown_warning_option=no
16930 fi
16931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16932 fi
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16934 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16935         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16936         CFLAGS="$xorg_testset_save_CFLAGS"
16937 fi
16938
16939 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16940         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16941                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16942         fi
16943         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16944         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16945 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16946 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16947   $as_echo_n "(cached) " >&6
16948 else
16949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h.  */
16951 int i;
16952 _ACEOF
16953 if ac_fn_c_try_compile "$LINENO"; then :
16954   xorg_cv_compiler_flag_unused_command_line_argument=yes
16955 else
16956   xorg_cv_compiler_flag_unused_command_line_argument=no
16957 fi
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16959 fi
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16961 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16962         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16963         CFLAGS="$xorg_testset_save_CFLAGS"
16964 fi
16965
16966 found="no"
16967
16968         if test $found = "no" ; then
16969                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16970                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16971                 fi
16972
16973                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16974                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16975                 fi
16976
16977                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16978
16979                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16980 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16981                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16982                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16983   $as_echo_n "(cached) " >&6
16984 else
16985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h.  */
16987 int i;
16988 int
16989 main ()
16990 {
16991
16992   ;
16993   return 0;
16994 }
16995 _ACEOF
16996 if ac_fn_c_try_link "$LINENO"; then :
16997   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16998 else
16999   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17000 fi
17001 rm -f core conftest.err conftest.$ac_objext \
17002     conftest$ac_exeext conftest.$ac_ext
17003 fi
17004
17005
17006                 CFLAGS="$xorg_testset_save_CFLAGS"
17007
17008                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17009                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17010 $as_echo "$supported" >&6; }
17011                 if test "$supported" = "yes" ; then
17012                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17013                         found="yes"
17014                 fi
17015         fi
17016
17017
17018 fi
17019
17020
17021
17022
17023
17024
17025
17026                 CWARNFLAGS="$BASE_CFLAGS"
17027                 if  test "x$GCC" = xyes ; then
17028                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17029                 fi
17030
17031
17032
17033
17034
17035
17036
17037
17038 # Check whether --enable-strict-compilation was given.
17039 if test "${enable_strict_compilation+set}" = set; then :
17040   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17041 else
17042   STRICT_COMPILE=no
17043 fi
17044
17045
17046
17047
17048
17049
17050 STRICT_CFLAGS=""
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062 xorg_testset_save_CFLAGS="$CFLAGS"
17063
17064 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17065         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17067 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17068 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17069   $as_echo_n "(cached) " >&6
17070 else
17071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h.  */
17073 int i;
17074 _ACEOF
17075 if ac_fn_c_try_compile "$LINENO"; then :
17076   xorg_cv_compiler_flag_unknown_warning_option=yes
17077 else
17078   xorg_cv_compiler_flag_unknown_warning_option=no
17079 fi
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081 fi
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17083 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17084         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17085         CFLAGS="$xorg_testset_save_CFLAGS"
17086 fi
17087
17088 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17089         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17090                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17091         fi
17092         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17094 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17095 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17096   $as_echo_n "(cached) " >&6
17097 else
17098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h.  */
17100 int i;
17101 _ACEOF
17102 if ac_fn_c_try_compile "$LINENO"; then :
17103   xorg_cv_compiler_flag_unused_command_line_argument=yes
17104 else
17105   xorg_cv_compiler_flag_unused_command_line_argument=no
17106 fi
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17108 fi
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17110 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17111         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17112         CFLAGS="$xorg_testset_save_CFLAGS"
17113 fi
17114
17115 found="no"
17116
17117         if test $found = "no" ; then
17118                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17119                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120                 fi
17121
17122                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17123                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17124                 fi
17125
17126                 CFLAGS="$CFLAGS -pedantic"
17127
17128                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17129 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17130                 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
17131                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17132   $as_echo_n "(cached) " >&6
17133 else
17134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h.  */
17136 int i;
17137 int
17138 main ()
17139 {
17140
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"; then :
17146   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17147 else
17148   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17149 fi
17150 rm -f core conftest.err conftest.$ac_objext \
17151     conftest$ac_exeext conftest.$ac_ext
17152 fi
17153
17154
17155                 CFLAGS="$xorg_testset_save_CFLAGS"
17156
17157                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17158                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17159 $as_echo "$supported" >&6; }
17160                 if test "$supported" = "yes" ; then
17161                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17162                         found="yes"
17163                 fi
17164         fi
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178 xorg_testset_save_CFLAGS="$CFLAGS"
17179
17180 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17181         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17183 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17184 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17185   $as_echo_n "(cached) " >&6
17186 else
17187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h.  */
17189 int i;
17190 _ACEOF
17191 if ac_fn_c_try_compile "$LINENO"; then :
17192   xorg_cv_compiler_flag_unknown_warning_option=yes
17193 else
17194   xorg_cv_compiler_flag_unknown_warning_option=no
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 fi
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17199 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17200         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17201         CFLAGS="$xorg_testset_save_CFLAGS"
17202 fi
17203
17204 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17205         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17206                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17207         fi
17208         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17210 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17211 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17212   $as_echo_n "(cached) " >&6
17213 else
17214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h.  */
17216 int i;
17217 _ACEOF
17218 if ac_fn_c_try_compile "$LINENO"; then :
17219   xorg_cv_compiler_flag_unused_command_line_argument=yes
17220 else
17221   xorg_cv_compiler_flag_unused_command_line_argument=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17226 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17227         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17228         CFLAGS="$xorg_testset_save_CFLAGS"
17229 fi
17230
17231 found="no"
17232
17233         if test $found = "no" ; then
17234                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17235                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17236                 fi
17237
17238                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17239                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17240                 fi
17241
17242                 CFLAGS="$CFLAGS -Werror"
17243
17244                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17245 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17246                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17247                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17248   $as_echo_n "(cached) " >&6
17249 else
17250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h.  */
17252 int i;
17253 int
17254 main ()
17255 {
17256
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"; then :
17262   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17263 else
17264   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext \
17267     conftest$ac_exeext conftest.$ac_ext
17268 fi
17269
17270
17271                 CFLAGS="$xorg_testset_save_CFLAGS"
17272
17273                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17274                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17275 $as_echo "$supported" >&6; }
17276                 if test "$supported" = "yes" ; then
17277                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17278                         found="yes"
17279                 fi
17280         fi
17281
17282         if test $found = "no" ; then
17283                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17284                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17285                 fi
17286
17287                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17288                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17289                 fi
17290
17291                 CFLAGS="$CFLAGS -errwarn"
17292
17293                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17294 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17295                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17296                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17297   $as_echo_n "(cached) " >&6
17298 else
17299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h.  */
17301 int i;
17302 int
17303 main ()
17304 {
17305
17306   ;
17307   return 0;
17308 }
17309 _ACEOF
17310 if ac_fn_c_try_link "$LINENO"; then :
17311   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17312 else
17313   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17314 fi
17315 rm -f core conftest.err conftest.$ac_objext \
17316     conftest$ac_exeext conftest.$ac_ext
17317 fi
17318
17319
17320                 CFLAGS="$xorg_testset_save_CFLAGS"
17321
17322                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17323                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17324 $as_echo "$supported" >&6; }
17325                 if test "$supported" = "yes" ; then
17326                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17327                         found="yes"
17328                 fi
17329         fi
17330
17331
17332
17333 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17334 # activate it with -Werror, so we add it here explicitly.
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346 xorg_testset_save_CFLAGS="$CFLAGS"
17347
17348 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17349         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17351 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17352 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17353   $as_echo_n "(cached) " >&6
17354 else
17355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h.  */
17357 int i;
17358 _ACEOF
17359 if ac_fn_c_try_compile "$LINENO"; then :
17360   xorg_cv_compiler_flag_unknown_warning_option=yes
17361 else
17362   xorg_cv_compiler_flag_unknown_warning_option=no
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365 fi
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17367 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17368         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17369         CFLAGS="$xorg_testset_save_CFLAGS"
17370 fi
17371
17372 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17373         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17374                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17375         fi
17376         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17378 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17379 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17380   $as_echo_n "(cached) " >&6
17381 else
17382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h.  */
17384 int i;
17385 _ACEOF
17386 if ac_fn_c_try_compile "$LINENO"; then :
17387   xorg_cv_compiler_flag_unused_command_line_argument=yes
17388 else
17389   xorg_cv_compiler_flag_unused_command_line_argument=no
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17394 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17395         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17396         CFLAGS="$xorg_testset_save_CFLAGS"
17397 fi
17398
17399 found="no"
17400
17401         if test $found = "no" ; then
17402                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17403                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17404                 fi
17405
17406                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17407                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17408                 fi
17409
17410                 CFLAGS="$CFLAGS -Werror=attributes"
17411
17412                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17413 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17414                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17415                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17416   $as_echo_n "(cached) " >&6
17417 else
17418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h.  */
17420 int i;
17421 int
17422 main ()
17423 {
17424
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 if ac_fn_c_try_link "$LINENO"; then :
17430   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17431 else
17432   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17433 fi
17434 rm -f core conftest.err conftest.$ac_objext \
17435     conftest$ac_exeext conftest.$ac_ext
17436 fi
17437
17438
17439                 CFLAGS="$xorg_testset_save_CFLAGS"
17440
17441                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17442                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17443 $as_echo "$supported" >&6; }
17444                 if test "$supported" = "yes" ; then
17445                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17446                         found="yes"
17447                 fi
17448         fi
17449
17450
17451
17452 if test "x$STRICT_COMPILE" = "xyes"; then
17453     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17454     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17455 fi
17456
17457
17458
17459
17460
17461
17462 cat >>confdefs.h <<_ACEOF
17463 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17464 _ACEOF
17465
17466         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17467         if test "x$PVM" = "x"; then
17468                 PVM="0"
17469         fi
17470
17471 cat >>confdefs.h <<_ACEOF
17472 #define PACKAGE_VERSION_MINOR $PVM
17473 _ACEOF
17474
17475         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17476         if test "x$PVP" = "x"; then
17477                 PVP="0"
17478         fi
17479
17480 cat >>confdefs.h <<_ACEOF
17481 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17482 _ACEOF
17483
17484
17485
17486 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17487 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17488 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17489 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17490
17491
17492
17493
17494 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17495 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17496 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17497 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17498 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17499
17500
17501
17502
17503
17504
17505 if test x$APP_MAN_SUFFIX = x    ; then
17506     APP_MAN_SUFFIX=1
17507 fi
17508 if test x$APP_MAN_DIR = x    ; then
17509     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17510 fi
17511
17512 if test x$LIB_MAN_SUFFIX = x    ; then
17513     LIB_MAN_SUFFIX=3
17514 fi
17515 if test x$LIB_MAN_DIR = x    ; then
17516     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17517 fi
17518
17519 if test x$FILE_MAN_SUFFIX = x    ; then
17520     case $host_os in
17521         solaris*)       FILE_MAN_SUFFIX=4  ;;
17522         *)              FILE_MAN_SUFFIX=5  ;;
17523     esac
17524 fi
17525 if test x$FILE_MAN_DIR = x    ; then
17526     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17527 fi
17528
17529 if test x$MISC_MAN_SUFFIX = x    ; then
17530     case $host_os in
17531         solaris*)       MISC_MAN_SUFFIX=5  ;;
17532         *)              MISC_MAN_SUFFIX=7  ;;
17533     esac
17534 fi
17535 if test x$MISC_MAN_DIR = x    ; then
17536     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17537 fi
17538
17539 if test x$DRIVER_MAN_SUFFIX = x    ; then
17540     case $host_os in
17541         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
17542         *)              DRIVER_MAN_SUFFIX=4  ;;
17543     esac
17544 fi
17545 if test x$DRIVER_MAN_DIR = x    ; then
17546     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17547 fi
17548
17549 if test x$ADMIN_MAN_SUFFIX = x    ; then
17550     case $host_os in
17551         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
17552         *)              ADMIN_MAN_SUFFIX=8  ;;
17553     esac
17554 fi
17555 if test x$ADMIN_MAN_DIR = x    ; then
17556     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17557 fi
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573 XORG_MAN_PAGE="X Version 11"
17574
17575 MAN_SUBSTS="\
17576         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17577         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17578         -e 's|__xservername__|Xorg|g' \
17579         -e 's|__xconfigfile__|xorg.conf|g' \
17580         -e 's|__projectroot__|\$(prefix)|g' \
17581         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17582         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17583         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17584         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17585         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17586         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17587         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17588
17589
17590
17591 # Check whether --enable-silent-rules was given.
17592 if test "${enable_silent_rules+set}" = set; then :
17593   enableval=$enable_silent_rules;
17594 fi
17595
17596 case $enable_silent_rules in
17597 yes) AM_DEFAULT_VERBOSITY=0;;
17598 no)  AM_DEFAULT_VERBOSITY=1;;
17599 *)   AM_DEFAULT_VERBOSITY=0;;
17600 esac
17601 AM_BACKSLASH='\'
17602
17603
17604
17605
17606 # Check whether --enable-docs was given.
17607 if test "${enable_docs+set}" = set; then :
17608   enableval=$enable_docs; build_docs=$enableval
17609 else
17610   build_docs=yes
17611 fi
17612
17613
17614  if test x$build_docs = xyes; then
17615   ENABLE_DOCS_TRUE=
17616   ENABLE_DOCS_FALSE='#'
17617 else
17618   ENABLE_DOCS_TRUE='#'
17619   ENABLE_DOCS_FALSE=
17620 fi
17621
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17623 $as_echo_n "checking whether to build documentation... " >&6; }
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17625 $as_echo "$build_docs" >&6; }
17626
17627
17628
17629
17630
17631 # Check whether --with-xmlto was given.
17632 if test "${with_xmlto+set}" = set; then :
17633   withval=$with_xmlto; use_xmlto=$withval
17634 else
17635   use_xmlto=auto
17636 fi
17637
17638
17639
17640 if test "x$use_xmlto" = x"auto"; then
17641    # Extract the first word of "xmlto", so it can be a program name with args.
17642 set dummy xmlto; ac_word=$2
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17644 $as_echo_n "checking for $ac_word... " >&6; }
17645 if ${ac_cv_path_XMLTO+:} false; then :
17646   $as_echo_n "(cached) " >&6
17647 else
17648   case $XMLTO in
17649   [\\/]* | ?:[\\/]*)
17650   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17651   ;;
17652   *)
17653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17654 for as_dir in $PATH
17655 do
17656   IFS=$as_save_IFS
17657   test -z "$as_dir" && as_dir=.
17658     for ac_exec_ext in '' $ac_executable_extensions; do
17659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17660     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17662     break 2
17663   fi
17664 done
17665   done
17666 IFS=$as_save_IFS
17667
17668   ;;
17669 esac
17670 fi
17671 XMLTO=$ac_cv_path_XMLTO
17672 if test -n "$XMLTO"; then
17673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17674 $as_echo "$XMLTO" >&6; }
17675 else
17676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17677 $as_echo "no" >&6; }
17678 fi
17679
17680
17681    if test "x$XMLTO" = "x"; then
17682         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17683 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17684         have_xmlto=no
17685    else
17686         have_xmlto=yes
17687    fi
17688 elif test "x$use_xmlto" = x"yes" ; then
17689    # Extract the first word of "xmlto", so it can be a program name with args.
17690 set dummy xmlto; ac_word=$2
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17692 $as_echo_n "checking for $ac_word... " >&6; }
17693 if ${ac_cv_path_XMLTO+:} false; then :
17694   $as_echo_n "(cached) " >&6
17695 else
17696   case $XMLTO in
17697   [\\/]* | ?:[\\/]*)
17698   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17699   ;;
17700   *)
17701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17702 for as_dir in $PATH
17703 do
17704   IFS=$as_save_IFS
17705   test -z "$as_dir" && as_dir=.
17706     for ac_exec_ext in '' $ac_executable_extensions; do
17707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17708     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17710     break 2
17711   fi
17712 done
17713   done
17714 IFS=$as_save_IFS
17715
17716   ;;
17717 esac
17718 fi
17719 XMLTO=$ac_cv_path_XMLTO
17720 if test -n "$XMLTO"; then
17721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17722 $as_echo "$XMLTO" >&6; }
17723 else
17724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725 $as_echo "no" >&6; }
17726 fi
17727
17728
17729    if test "x$XMLTO" = "x"; then
17730         as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17731    fi
17732    have_xmlto=yes
17733 elif test "x$use_xmlto" = x"no" ; then
17734    if test "x$XMLTO" != "x"; then
17735       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17736 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17737    fi
17738    have_xmlto=no
17739 else
17740    as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17741 fi
17742
17743 # Test for a minimum version of xmlto, if provided.
17744 if test "$have_xmlto" = yes; then
17745     # scrape the xmlto version
17746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17747 $as_echo_n "checking the xmlto version... " >&6; }
17748     xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17750 $as_echo "$xmlto_version" >&6; }
17751     as_arg_v1=$xmlto_version
17752 as_arg_v2=0.0.22
17753 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17754 case $? in #(
17755   1) :
17756     if test "x$use_xmlto" = xauto; then
17757             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17758 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17759             have_xmlto=no
17760         else
17761             as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17762         fi ;; #(
17763   0) :
17764      ;; #(
17765   2) :
17766      ;; #(
17767   *) :
17768      ;;
17769 esac
17770 fi
17771
17772 # Test for the ability of xmlto to generate a text target
17773 have_xmlto_text=no
17774 cat > conftest.xml << "EOF"
17775 EOF
17776 if test "$have_xmlto" = yes; then :
17777   if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17778   have_xmlto_text=yes
17779 else
17780   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17781 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17782 fi
17783 fi
17784 rm -f conftest.xml
17785  if test $have_xmlto_text = yes; then
17786   HAVE_XMLTO_TEXT_TRUE=
17787   HAVE_XMLTO_TEXT_FALSE='#'
17788 else
17789   HAVE_XMLTO_TEXT_TRUE='#'
17790   HAVE_XMLTO_TEXT_FALSE=
17791 fi
17792
17793  if test "$have_xmlto" = yes; then
17794   HAVE_XMLTO_TRUE=
17795   HAVE_XMLTO_FALSE='#'
17796 else
17797   HAVE_XMLTO_TRUE='#'
17798   HAVE_XMLTO_FALSE=
17799 fi
17800
17801
17802
17803
17804
17805
17806 # Check whether --with-fop was given.
17807 if test "${with_fop+set}" = set; then :
17808   withval=$with_fop; use_fop=$withval
17809 else
17810   use_fop=auto
17811 fi
17812
17813
17814
17815 if test "x$use_fop" = x"auto"; then
17816    # Extract the first word of "fop", so it can be a program name with args.
17817 set dummy fop; ac_word=$2
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17819 $as_echo_n "checking for $ac_word... " >&6; }
17820 if ${ac_cv_path_FOP+:} false; then :
17821   $as_echo_n "(cached) " >&6
17822 else
17823   case $FOP in
17824   [\\/]* | ?:[\\/]*)
17825   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17826   ;;
17827   *)
17828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17829 for as_dir in $PATH
17830 do
17831   IFS=$as_save_IFS
17832   test -z "$as_dir" && as_dir=.
17833     for ac_exec_ext in '' $ac_executable_extensions; do
17834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17835     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17837     break 2
17838   fi
17839 done
17840   done
17841 IFS=$as_save_IFS
17842
17843   ;;
17844 esac
17845 fi
17846 FOP=$ac_cv_path_FOP
17847 if test -n "$FOP"; then
17848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17849 $as_echo "$FOP" >&6; }
17850 else
17851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853 fi
17854
17855
17856    if test "x$FOP" = "x"; then
17857         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17858 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17859         have_fop=no
17860    else
17861         have_fop=yes
17862    fi
17863 elif test "x$use_fop" = x"yes" ; then
17864    # Extract the first word of "fop", so it can be a program name with args.
17865 set dummy fop; ac_word=$2
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17867 $as_echo_n "checking for $ac_word... " >&6; }
17868 if ${ac_cv_path_FOP+:} false; then :
17869   $as_echo_n "(cached) " >&6
17870 else
17871   case $FOP in
17872   [\\/]* | ?:[\\/]*)
17873   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17874   ;;
17875   *)
17876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17877 for as_dir in $PATH
17878 do
17879   IFS=$as_save_IFS
17880   test -z "$as_dir" && as_dir=.
17881     for ac_exec_ext in '' $ac_executable_extensions; do
17882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17883     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17885     break 2
17886   fi
17887 done
17888   done
17889 IFS=$as_save_IFS
17890
17891   ;;
17892 esac
17893 fi
17894 FOP=$ac_cv_path_FOP
17895 if test -n "$FOP"; then
17896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17897 $as_echo "$FOP" >&6; }
17898 else
17899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17900 $as_echo "no" >&6; }
17901 fi
17902
17903
17904    if test "x$FOP" = "x"; then
17905         as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
17906    fi
17907    have_fop=yes
17908 elif test "x$use_fop" = x"no" ; then
17909    if test "x$FOP" != "x"; then
17910       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
17911 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
17912    fi
17913    have_fop=no
17914 else
17915    as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
17916 fi
17917
17918 # Test for a minimum version of fop, if provided.
17919
17920  if test "$have_fop" = yes; then
17921   HAVE_FOP_TRUE=
17922   HAVE_FOP_FALSE='#'
17923 else
17924   HAVE_FOP_TRUE='#'
17925   HAVE_FOP_FALSE=
17926 fi
17927
17928
17929
17930
17931 # Preserves the interface, should it be implemented later
17932
17933
17934
17935 # Check whether --with-xsltproc was given.
17936 if test "${with_xsltproc+set}" = set; then :
17937   withval=$with_xsltproc; use_xsltproc=$withval
17938 else
17939   use_xsltproc=auto
17940 fi
17941
17942
17943
17944 if test "x$use_xsltproc" = x"auto"; then
17945    # Extract the first word of "xsltproc", so it can be a program name with args.
17946 set dummy xsltproc; ac_word=$2
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17948 $as_echo_n "checking for $ac_word... " >&6; }
17949 if ${ac_cv_path_XSLTPROC+:} false; then :
17950   $as_echo_n "(cached) " >&6
17951 else
17952   case $XSLTPROC in
17953   [\\/]* | ?:[\\/]*)
17954   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17955   ;;
17956   *)
17957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17958 for as_dir in $PATH
17959 do
17960   IFS=$as_save_IFS
17961   test -z "$as_dir" && as_dir=.
17962     for ac_exec_ext in '' $ac_executable_extensions; do
17963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17964     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17966     break 2
17967   fi
17968 done
17969   done
17970 IFS=$as_save_IFS
17971
17972   ;;
17973 esac
17974 fi
17975 XSLTPROC=$ac_cv_path_XSLTPROC
17976 if test -n "$XSLTPROC"; then
17977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17978 $as_echo "$XSLTPROC" >&6; }
17979 else
17980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981 $as_echo "no" >&6; }
17982 fi
17983
17984
17985    if test "x$XSLTPROC" = "x"; then
17986         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
17987 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
17988         have_xsltproc=no
17989    else
17990         have_xsltproc=yes
17991    fi
17992 elif test "x$use_xsltproc" = x"yes" ; then
17993    # Extract the first word of "xsltproc", so it can be a program name with args.
17994 set dummy xsltproc; ac_word=$2
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17996 $as_echo_n "checking for $ac_word... " >&6; }
17997 if ${ac_cv_path_XSLTPROC+:} false; then :
17998   $as_echo_n "(cached) " >&6
17999 else
18000   case $XSLTPROC in
18001   [\\/]* | ?:[\\/]*)
18002   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18003   ;;
18004   *)
18005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18006 for as_dir in $PATH
18007 do
18008   IFS=$as_save_IFS
18009   test -z "$as_dir" && as_dir=.
18010     for ac_exec_ext in '' $ac_executable_extensions; do
18011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18012     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18014     break 2
18015   fi
18016 done
18017   done
18018 IFS=$as_save_IFS
18019
18020   ;;
18021 esac
18022 fi
18023 XSLTPROC=$ac_cv_path_XSLTPROC
18024 if test -n "$XSLTPROC"; then
18025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18026 $as_echo "$XSLTPROC" >&6; }
18027 else
18028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18029 $as_echo "no" >&6; }
18030 fi
18031
18032
18033    if test "x$XSLTPROC" = "x"; then
18034         as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18035    fi
18036    have_xsltproc=yes
18037 elif test "x$use_xsltproc" = x"no" ; then
18038    if test "x$XSLTPROC" != "x"; then
18039       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18040 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18041    fi
18042    have_xsltproc=no
18043 else
18044    as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18045 fi
18046
18047  if test "$have_xsltproc" = yes; then
18048   HAVE_XSLTPROC_TRUE=
18049   HAVE_XSLTPROC_FALSE='#'
18050 else
18051   HAVE_XSLTPROC_TRUE='#'
18052   HAVE_XSLTPROC_FALSE=
18053 fi
18054
18055
18056
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18058 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18059 XORG_SGML_PATH=
18060 if test -n "$PKG_CONFIG" && \
18061     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18062   ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18063   ac_status=$?
18064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18065   test $ac_status = 0; }; then
18066   XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18067 else
18068   :
18069
18070 fi
18071
18072 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18073 # the path and the name of the doc stylesheet
18074 if test "x$XORG_SGML_PATH" != "x" ; then
18075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18076 $as_echo "$XORG_SGML_PATH" >&6; }
18077    STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18078    XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18079 else
18080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18081 $as_echo "no" >&6; }
18082 fi
18083
18084
18085
18086
18087  if test "x$XSL_STYLESHEET" != "x"; then
18088   HAVE_STYLESHEETS_TRUE=
18089   HAVE_STYLESHEETS_FALSE='#'
18090 else
18091   HAVE_STYLESHEETS_TRUE='#'
18092   HAVE_STYLESHEETS_FALSE=
18093 fi
18094
18095
18096
18097 # Obtain compiler/linker options for depedencies
18098
18099 pkg_failed=no
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5
18101 $as_echo_n "checking for XMU... " >&6; }
18102
18103 if test -n "$XMU_CFLAGS"; then
18104     pkg_cv_XMU_CFLAGS="$XMU_CFLAGS"
18105  elif test -n "$PKG_CONFIG"; then
18106     if test -n "$PKG_CONFIG" && \
18107     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
18108   ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
18109   ac_status=$?
18110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18111   test $ac_status = 0; }; then
18112   pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null`
18113 else
18114   pkg_failed=yes
18115 fi
18116  else
18117     pkg_failed=untried
18118 fi
18119 if test -n "$XMU_LIBS"; then
18120     pkg_cv_XMU_LIBS="$XMU_LIBS"
18121  elif test -n "$PKG_CONFIG"; then
18122     if test -n "$PKG_CONFIG" && \
18123     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
18124   ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
18125   ac_status=$?
18126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18127   test $ac_status = 0; }; then
18128   pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null`
18129 else
18130   pkg_failed=yes
18131 fi
18132  else
18133     pkg_failed=untried
18134 fi
18135
18136
18137
18138 if test $pkg_failed = yes; then
18139
18140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18141         _pkg_short_errors_supported=yes
18142 else
18143         _pkg_short_errors_supported=no
18144 fi
18145         if test $_pkg_short_errors_supported = yes; then
18146                 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt xext x11 xextproto" 2>&1`
18147         else
18148                 XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt xext x11 xextproto" 2>&1`
18149         fi
18150         # Put the nasty error message in config.log where it belongs
18151         echo "$XMU_PKG_ERRORS" >&5
18152
18153         as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met:
18154
18155 $XMU_PKG_ERRORS
18156
18157 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18158 installed software in a non-standard prefix.
18159
18160 Alternatively, you may set the environment variables XMU_CFLAGS
18161 and XMU_LIBS to avoid the need to call pkg-config.
18162 See the pkg-config man page for more details.
18163 " "$LINENO" 5
18164 elif test $pkg_failed = untried; then
18165         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18167 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18168 is in your PATH or set the PKG_CONFIG environment variable to the full
18169 path to pkg-config.
18170
18171 Alternatively, you may set the environment variables XMU_CFLAGS
18172 and XMU_LIBS to avoid the need to call pkg-config.
18173 See the pkg-config man page for more details.
18174
18175 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18176 See \`config.log' for more details" "$LINENO" 5; }
18177 else
18178         XMU_CFLAGS=$pkg_cv_XMU_CFLAGS
18179         XMU_LIBS=$pkg_cv_XMU_LIBS
18180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18181 $as_echo "yes" >&6; }
18182         :
18183 fi
18184
18185 pkg_failed=no
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5
18187 $as_echo_n "checking for XMUU... " >&6; }
18188
18189 if test -n "$XMUU_CFLAGS"; then
18190     pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS"
18191  elif test -n "$PKG_CONFIG"; then
18192     if test -n "$PKG_CONFIG" && \
18193     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
18194   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
18195   ac_status=$?
18196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18197   test $ac_status = 0; }; then
18198   pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
18199 else
18200   pkg_failed=yes
18201 fi
18202  else
18203     pkg_failed=untried
18204 fi
18205 if test -n "$XMUU_LIBS"; then
18206     pkg_cv_XMUU_LIBS="$XMUU_LIBS"
18207  elif test -n "$PKG_CONFIG"; then
18208     if test -n "$PKG_CONFIG" && \
18209     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
18210   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
18211   ac_status=$?
18212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18213   test $ac_status = 0; }; then
18214   pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
18215 else
18216   pkg_failed=yes
18217 fi
18218  else
18219     pkg_failed=untried
18220 fi
18221
18222
18223
18224 if test $pkg_failed = yes; then
18225
18226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18227         _pkg_short_errors_supported=yes
18228 else
18229         _pkg_short_errors_supported=no
18230 fi
18231         if test $_pkg_short_errors_supported = yes; then
18232                 XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
18233         else
18234                 XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
18235         fi
18236         # Put the nasty error message in config.log where it belongs
18237         echo "$XMUU_PKG_ERRORS" >&5
18238
18239         as_fn_error $? "Package requirements (x11) were not met:
18240
18241 $XMUU_PKG_ERRORS
18242
18243 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18244 installed software in a non-standard prefix.
18245
18246 Alternatively, you may set the environment variables XMUU_CFLAGS
18247 and XMUU_LIBS to avoid the need to call pkg-config.
18248 See the pkg-config man page for more details.
18249 " "$LINENO" 5
18250 elif test $pkg_failed = untried; then
18251         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18253 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18254 is in your PATH or set the PKG_CONFIG environment variable to the full
18255 path to pkg-config.
18256
18257 Alternatively, you may set the environment variables XMUU_CFLAGS
18258 and XMUU_LIBS to avoid the need to call pkg-config.
18259 See the pkg-config man page for more details.
18260
18261 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18262 See \`config.log' for more details" "$LINENO" 5; }
18263 else
18264         XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS
18265         XMUU_LIBS=$pkg_cv_XMUU_LIBS
18266         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18267 $as_echo "yes" >&6; }
18268         :
18269 fi
18270
18271 # CvtStdSel.c needs to know which network transports to build hostname
18272 # conversion routines for
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18274 $as_echo_n "checking return type of signal handlers... " >&6; }
18275 if ${ac_cv_type_signal+:} false; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h.  */
18280 #include <sys/types.h>
18281 #include <signal.h>
18282
18283 int
18284 main ()
18285 {
18286 return *(signal (0, 0)) (0) == 1;
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 if ac_fn_c_try_compile "$LINENO"; then :
18292   ac_cv_type_signal=int
18293 else
18294   ac_cv_type_signal=void
18295 fi
18296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297 fi
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18299 $as_echo "$ac_cv_type_signal" >&6; }
18300
18301 cat >>confdefs.h <<_ACEOF
18302 #define RETSIGTYPE $ac_cv_type_signal
18303 _ACEOF
18304
18305
18306
18307
18308
18309  case $host_os in
18310         mingw*) unixdef="no"   ;;
18311         *)      unixdef="yes"  ;;
18312  esac
18313  # Check whether --enable-unix-transport was given.
18314 if test "${enable_unix_transport+set}" = set; then :
18315   enableval=$enable_unix_transport; UNIXCONN=$enableval
18316 else
18317   UNIXCONN=$unixdef
18318 fi
18319
18320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18321 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18322  if test "$UNIXCONN" = "yes"; then
18323
18324 $as_echo "#define UNIXCONN 1" >>confdefs.h
18325
18326  fi
18327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18328 $as_echo "$UNIXCONN" >&6; }
18329  # Check whether --enable-tcp-transport was given.
18330 if test "${enable_tcp_transport+set}" = set; then :
18331   enableval=$enable_tcp_transport; TCPCONN=$enableval
18332 else
18333   TCPCONN=yes
18334 fi
18335
18336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18337 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18339 $as_echo "$TCPCONN" >&6; }
18340  if test "$TCPCONN" = "yes"; then
18341
18342 $as_echo "#define TCPCONN 1" >>confdefs.h
18343
18344
18345  # SVR4 hides these in libraries other than libc
18346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18347 $as_echo_n "checking for library containing socket... " >&6; }
18348 if ${ac_cv_search_socket+:} false; then :
18349   $as_echo_n "(cached) " >&6
18350 else
18351   ac_func_search_save_LIBS=$LIBS
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h.  */
18354
18355 /* Override any GCC internal prototype to avoid an error.
18356    Use char because int might match the return type of a GCC
18357    builtin and then its argument prototype would still apply.  */
18358 #ifdef __cplusplus
18359 extern "C"
18360 #endif
18361 char socket ();
18362 int
18363 main ()
18364 {
18365 return socket ();
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 for ac_lib in '' socket; do
18371   if test -z "$ac_lib"; then
18372     ac_res="none required"
18373   else
18374     ac_res=-l$ac_lib
18375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18376   fi
18377   if ac_fn_c_try_link "$LINENO"; then :
18378   ac_cv_search_socket=$ac_res
18379 fi
18380 rm -f core conftest.err conftest.$ac_objext \
18381     conftest$ac_exeext
18382   if ${ac_cv_search_socket+:} false; then :
18383   break
18384 fi
18385 done
18386 if ${ac_cv_search_socket+:} false; then :
18387
18388 else
18389   ac_cv_search_socket=no
18390 fi
18391 rm conftest.$ac_ext
18392 LIBS=$ac_func_search_save_LIBS
18393 fi
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18395 $as_echo "$ac_cv_search_socket" >&6; }
18396 ac_res=$ac_cv_search_socket
18397 if test "$ac_res" != no; then :
18398   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18399
18400 fi
18401
18402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18403 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18404 if ${ac_cv_search_gethostbyname+:} false; then :
18405   $as_echo_n "(cached) " >&6
18406 else
18407   ac_func_search_save_LIBS=$LIBS
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h.  */
18410
18411 /* Override any GCC internal prototype to avoid an error.
18412    Use char because int might match the return type of a GCC
18413    builtin and then its argument prototype would still apply.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 char gethostbyname ();
18418 int
18419 main ()
18420 {
18421 return gethostbyname ();
18422   ;
18423   return 0;
18424 }
18425 _ACEOF
18426 for ac_lib in '' nsl; do
18427   if test -z "$ac_lib"; then
18428     ac_res="none required"
18429   else
18430     ac_res=-l$ac_lib
18431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18432   fi
18433   if ac_fn_c_try_link "$LINENO"; then :
18434   ac_cv_search_gethostbyname=$ac_res
18435 fi
18436 rm -f core conftest.err conftest.$ac_objext \
18437     conftest$ac_exeext
18438   if ${ac_cv_search_gethostbyname+:} false; then :
18439   break
18440 fi
18441 done
18442 if ${ac_cv_search_gethostbyname+:} false; then :
18443
18444 else
18445   ac_cv_search_gethostbyname=no
18446 fi
18447 rm conftest.$ac_ext
18448 LIBS=$ac_func_search_save_LIBS
18449 fi
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18451 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18452 ac_res=$ac_cv_search_gethostbyname
18453 if test "$ac_res" != no; then :
18454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18455
18456 fi
18457
18458  if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18460 $as_echo_n "checking for main in -lws2_32... " >&6; }
18461 if ${ac_cv_lib_ws2_32_main+:} false; then :
18462   $as_echo_n "(cached) " >&6
18463 else
18464   ac_check_lib_save_LIBS=$LIBS
18465 LIBS="-lws2_32  $LIBS"
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h.  */
18468
18469
18470 int
18471 main ()
18472 {
18473 return main ();
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 if ac_fn_c_try_link "$LINENO"; then :
18479   ac_cv_lib_ws2_32_main=yes
18480 else
18481   ac_cv_lib_ws2_32_main=no
18482 fi
18483 rm -f core conftest.err conftest.$ac_objext \
18484     conftest$ac_exeext conftest.$ac_ext
18485 LIBS=$ac_check_lib_save_LIBS
18486 fi
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18488 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18489 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18490   cat >>confdefs.h <<_ACEOF
18491 #define HAVE_LIBWS2_32 1
18492 _ACEOF
18493
18494   LIBS="-lws2_32 $LIBS"
18495
18496 fi
18497 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18498
18499  fi
18500
18501  # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18502  # Check whether --enable-ipv6 was given.
18503 if test "${enable_ipv6+set}" = set; then :
18504   enableval=$enable_ipv6; IPV6CONN=$enableval
18505 else
18506   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18507 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18508   IPV6CONN=yes
18509 else
18510   IPV6CONN=no
18511 fi
18512
18513 fi
18514
18515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18516 $as_echo_n "checking if IPv6 support should be built... " >&6; }
18517  if test "$IPV6CONN" = "yes"; then
18518
18519 $as_echo "#define IPv6 1" >>confdefs.h
18520
18521  fi
18522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18523 $as_echo "$IPV6CONN" >&6; }
18524
18525  # 4.3BSD-Reno added a new member to struct sockaddr_in
18526  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18527 #include <sys/types.h>
18528 #include <sys/socket.h>
18529 #include <netinet/in.h>
18530
18531 "
18532 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18533
18534 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18535
18536 fi
18537
18538
18539  # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18540  ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18541 $ac_includes_default
18542 #include <sys/socket.h>
18543 "
18544 if test "x$ac_cv_type_socklen_t" = xyes; then :
18545
18546 cat >>confdefs.h <<_ACEOF
18547 #define HAVE_SOCKLEN_T 1
18548 _ACEOF
18549
18550
18551 fi
18552
18553
18554
18555  fi
18556  case $host_os in
18557         solaris*|sco*|sysv4*)   localdef="yes" ;;
18558         *)                      localdef="no"  ;;
18559  esac
18560  # Check whether --enable-local-transport was given.
18561 if test "${enable_local_transport+set}" = set; then :
18562   enableval=$enable_local_transport; LOCALCONN=$enableval
18563 else
18564   LOCALCONN=$localdef
18565 fi
18566
18567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18568 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18570 $as_echo "$LOCALCONN" >&6; }
18571  if test "$LOCALCONN" = "yes"; then
18572
18573 $as_echo "#define LOCALCONN 1" >>confdefs.h
18574
18575  fi
18576
18577
18578
18579 # Allow checking code with lint, sparse, etc.
18580
18581
18582
18583
18584
18585 # Check whether --with-lint was given.
18586 if test "${with_lint+set}" = set; then :
18587   withval=$with_lint; use_lint=$withval
18588 else
18589   use_lint=no
18590 fi
18591
18592
18593 # Obtain platform specific info like program name and options
18594 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18595 case $host_os in
18596   *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18597         lint_name=splint
18598         lint_options="-badflag"
18599         ;;
18600   *freebsd* | *netbsd*)
18601         lint_name=lint
18602         lint_options="-u -b"
18603         ;;
18604   *solaris*)
18605         lint_name=lint
18606         lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18607         ;;
18608 esac
18609
18610 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18611 if test "x$use_lint" = x"yes" ; then
18612    # Extract the first word of "$lint_name", so it can be a program name with args.
18613 set dummy $lint_name; ac_word=$2
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615 $as_echo_n "checking for $ac_word... " >&6; }
18616 if ${ac_cv_path_LINT+:} false; then :
18617   $as_echo_n "(cached) " >&6
18618 else
18619   case $LINT in
18620   [\\/]* | ?:[\\/]*)
18621   ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18622   ;;
18623   *)
18624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18626 do
18627   IFS=$as_save_IFS
18628   test -z "$as_dir" && as_dir=.
18629     for ac_exec_ext in '' $ac_executable_extensions; do
18630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18631     ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633     break 2
18634   fi
18635 done
18636   done
18637 IFS=$as_save_IFS
18638
18639   ;;
18640 esac
18641 fi
18642 LINT=$ac_cv_path_LINT
18643 if test -n "$LINT"; then
18644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18645 $as_echo "$LINT" >&6; }
18646 else
18647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18649 fi
18650
18651
18652    if test "x$LINT" = "x"; then
18653         as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18654    fi
18655 elif test "x$use_lint" = x"no" ; then
18656    if test "x$LINT" != "x"; then
18657       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18658 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18659    fi
18660 else
18661    as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18662 fi
18663
18664 # User supplied flags override default flags
18665 if test "x$LINT_FLAGS" != "x"; then
18666    lint_options=$LINT_FLAGS
18667 fi
18668
18669 LINT_FLAGS=$lint_options
18670
18671  if test "x$LINT" != x; then
18672   LINT_TRUE=
18673   LINT_FALSE='#'
18674 else
18675   LINT_TRUE='#'
18676   LINT_FALSE=
18677 fi
18678
18679
18680
18681
18682
18683 # Check whether --enable-lint-library was given.
18684 if test "${enable_lint_library+set}" = set; then :
18685   enableval=$enable_lint_library; make_lint_lib=$enableval
18686 else
18687   make_lint_lib=no
18688 fi
18689
18690
18691 if test "x$make_lint_lib" = x"yes" ; then
18692    LINTLIB=llib-lXmu.ln
18693    if test "x$LINT" = "x"; then
18694         as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18695    fi
18696 elif test "x$make_lint_lib" != x"no" ; then
18697    as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18698 fi
18699
18700
18701  if test x$make_lint_lib != xno; then
18702   MAKE_LINT_LIB_TRUE=
18703   MAKE_LINT_LIB_FALSE='#'
18704 else
18705   MAKE_LINT_LIB_TRUE='#'
18706   MAKE_LINT_LIB_FALSE=
18707 fi
18708
18709
18710
18711 LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`
18712
18713
18714 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile xmu.pc xmuu.pc"
18715
18716 cat >confcache <<\_ACEOF
18717 # This file is a shell script that caches the results of configure
18718 # tests run on this system so they can be shared between configure
18719 # scripts and configure runs, see configure's option --config-cache.
18720 # It is not useful on other systems.  If it contains results you don't
18721 # want to keep, you may remove or edit it.
18722 #
18723 # config.status only pays attention to the cache file if you give it
18724 # the --recheck option to rerun configure.
18725 #
18726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18728 # following values.
18729
18730 _ACEOF
18731
18732 # The following way of writing the cache mishandles newlines in values,
18733 # but we know of no workaround that is simple, portable, and efficient.
18734 # So, we kill variables containing newlines.
18735 # Ultrix sh set writes to stderr and can't be redirected directly,
18736 # and sets the high bit in the cache file unless we assign to the vars.
18737 (
18738   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18739     eval ac_val=\$$ac_var
18740     case $ac_val in #(
18741     *${as_nl}*)
18742       case $ac_var in #(
18743       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18745       esac
18746       case $ac_var in #(
18747       _ | IFS | as_nl) ;; #(
18748       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18749       *) { eval $ac_var=; unset $ac_var;} ;;
18750       esac ;;
18751     esac
18752   done
18753
18754   (set) 2>&1 |
18755     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18756     *${as_nl}ac_space=\ *)
18757       # `set' does not quote correctly, so add quotes: double-quote
18758       # substitution turns \\\\ into \\, and sed turns \\ into \.
18759       sed -n \
18760         "s/'/'\\\\''/g;
18761           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18762       ;; #(
18763     *)
18764       # `set' quotes correctly as required by POSIX, so do not add quotes.
18765       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18766       ;;
18767     esac |
18768     sort
18769 ) |
18770   sed '
18771      /^ac_cv_env_/b end
18772      t clear
18773      :clear
18774      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18775      t end
18776      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18777      :end' >>confcache
18778 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18779   if test -w "$cache_file"; then
18780     if test "x$cache_file" != "x/dev/null"; then
18781       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18782 $as_echo "$as_me: updating cache $cache_file" >&6;}
18783       if test ! -f "$cache_file" || test -h "$cache_file"; then
18784         cat confcache >"$cache_file"
18785       else
18786         case $cache_file in #(
18787         */* | ?:*)
18788           mv -f confcache "$cache_file"$$ &&
18789           mv -f "$cache_file"$$ "$cache_file" ;; #(
18790         *)
18791           mv -f confcache "$cache_file" ;;
18792         esac
18793       fi
18794     fi
18795   else
18796     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18797 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18798   fi
18799 fi
18800 rm -f confcache
18801
18802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18803 # Let make expand exec_prefix.
18804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18805
18806 DEFS=-DHAVE_CONFIG_H
18807
18808 ac_libobjs=
18809 ac_ltlibobjs=
18810 U=
18811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18812   # 1. Remove the extension, and $U if already installed.
18813   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18814   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18815   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18816   #    will be set to the directory where LIBOBJS objects are built.
18817   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18818   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18819 done
18820 LIBOBJS=$ac_libobjs
18821
18822 LTLIBOBJS=$ac_ltlibobjs
18823
18824
18825  if test -n "$EXEEXT"; then
18826   am__EXEEXT_TRUE=
18827   am__EXEEXT_FALSE='#'
18828 else
18829   am__EXEEXT_TRUE='#'
18830   am__EXEEXT_FALSE=
18831 fi
18832
18833 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18834   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18836 fi
18837 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18838   as_fn_error $? "conditional \"AMDEP\" was never defined.
18839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18840 fi
18841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18842   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18844 fi
18845 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
18846   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
18847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18848 fi
18849 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18850   as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18852 fi
18853 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18854   as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18856 fi
18857 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18858   as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18860 fi
18861 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18862   as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18864 fi
18865 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18866   as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18868 fi
18869 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18870   as_fn_error $? "conditional \"LINT\" was never defined.
18871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18872 fi
18873 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18874   as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18876 fi
18877
18878 : "${CONFIG_STATUS=./config.status}"
18879 ac_write_fail=0
18880 ac_clean_files_save=$ac_clean_files
18881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18884 as_write_fail=0
18885 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18886 #! $SHELL
18887 # Generated by $as_me.
18888 # Run this file to recreate the current configuration.
18889 # Compiler output produced by configure, useful for debugging
18890 # configure, is in config.log if it exists.
18891
18892 debug=false
18893 ac_cs_recheck=false
18894 ac_cs_silent=false
18895
18896 SHELL=\${CONFIG_SHELL-$SHELL}
18897 export SHELL
18898 _ASEOF
18899 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18900 ## -------------------- ##
18901 ## M4sh Initialization. ##
18902 ## -------------------- ##
18903
18904 # Be more Bourne compatible
18905 DUALCASE=1; export DUALCASE # for MKS sh
18906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18907   emulate sh
18908   NULLCMD=:
18909   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18910   # is contrary to our usage.  Disable this feature.
18911   alias -g '${1+"$@"}'='"$@"'
18912   setopt NO_GLOB_SUBST
18913 else
18914   case `(set -o) 2>/dev/null` in #(
18915   *posix*) :
18916     set -o posix ;; #(
18917   *) :
18918      ;;
18919 esac
18920 fi
18921
18922
18923 as_nl='
18924 '
18925 export as_nl
18926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18927 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18930 # Prefer a ksh shell builtin over an external printf program on Solaris,
18931 # but without wasting forks for bash or zsh.
18932 if test -z "$BASH_VERSION$ZSH_VERSION" \
18933     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18934   as_echo='print -r --'
18935   as_echo_n='print -rn --'
18936 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18937   as_echo='printf %s\n'
18938   as_echo_n='printf %s'
18939 else
18940   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18941     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18942     as_echo_n='/usr/ucb/echo -n'
18943   else
18944     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18945     as_echo_n_body='eval
18946       arg=$1;
18947       case $arg in #(
18948       *"$as_nl"*)
18949         expr "X$arg" : "X\\(.*\\)$as_nl";
18950         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18951       esac;
18952       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18953     '
18954     export as_echo_n_body
18955     as_echo_n='sh -c $as_echo_n_body as_echo'
18956   fi
18957   export as_echo_body
18958   as_echo='sh -c $as_echo_body as_echo'
18959 fi
18960
18961 # The user is always right.
18962 if test "${PATH_SEPARATOR+set}" != set; then
18963   PATH_SEPARATOR=:
18964   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18965     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18966       PATH_SEPARATOR=';'
18967   }
18968 fi
18969
18970
18971 # IFS
18972 # We need space, tab and new line, in precisely that order.  Quoting is
18973 # there to prevent editors from complaining about space-tab.
18974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18975 # splitting by setting IFS to empty value.)
18976 IFS=" ""        $as_nl"
18977
18978 # Find who we are.  Look in the path if we contain no directory separator.
18979 as_myself=
18980 case $0 in #((
18981   *[\\/]* ) as_myself=$0 ;;
18982   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18983 for as_dir in $PATH
18984 do
18985   IFS=$as_save_IFS
18986   test -z "$as_dir" && as_dir=.
18987     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18988   done
18989 IFS=$as_save_IFS
18990
18991      ;;
18992 esac
18993 # We did not find ourselves, most probably we were run as `sh COMMAND'
18994 # in which case we are not to be found in the path.
18995 if test "x$as_myself" = x; then
18996   as_myself=$0
18997 fi
18998 if test ! -f "$as_myself"; then
18999   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19000   exit 1
19001 fi
19002
19003 # Unset variables that we do not need and which cause bugs (e.g. in
19004 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19005 # suppresses any "Segmentation fault" message there.  '((' could
19006 # trigger a bug in pdksh 5.2.14.
19007 for as_var in BASH_ENV ENV MAIL MAILPATH
19008 do eval test x\${$as_var+set} = xset \
19009   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19010 done
19011 PS1='$ '
19012 PS2='> '
19013 PS4='+ '
19014
19015 # NLS nuisances.
19016 LC_ALL=C
19017 export LC_ALL
19018 LANGUAGE=C
19019 export LANGUAGE
19020
19021 # CDPATH.
19022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19023
19024
19025 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19026 # ----------------------------------------
19027 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19028 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19029 # script with STATUS, using 1 if that was 0.
19030 as_fn_error ()
19031 {
19032   as_status=$1; test $as_status -eq 0 && as_status=1
19033   if test "$4"; then
19034     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19035     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19036   fi
19037   $as_echo "$as_me: error: $2" >&2
19038   as_fn_exit $as_status
19039 } # as_fn_error
19040
19041
19042 # as_fn_set_status STATUS
19043 # -----------------------
19044 # Set $? to STATUS, without forking.
19045 as_fn_set_status ()
19046 {
19047   return $1
19048 } # as_fn_set_status
19049
19050 # as_fn_exit STATUS
19051 # -----------------
19052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19053 as_fn_exit ()
19054 {
19055   set +e
19056   as_fn_set_status $1
19057   exit $1
19058 } # as_fn_exit
19059
19060 # as_fn_unset VAR
19061 # ---------------
19062 # Portably unset VAR.
19063 as_fn_unset ()
19064 {
19065   { eval $1=; unset $1;}
19066 }
19067 as_unset=as_fn_unset
19068 # as_fn_append VAR VALUE
19069 # ----------------------
19070 # Append the text in VALUE to the end of the definition contained in VAR. Take
19071 # advantage of any shell optimizations that allow amortized linear growth over
19072 # repeated appends, instead of the typical quadratic growth present in naive
19073 # implementations.
19074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19075   eval 'as_fn_append ()
19076   {
19077     eval $1+=\$2
19078   }'
19079 else
19080   as_fn_append ()
19081   {
19082     eval $1=\$$1\$2
19083   }
19084 fi # as_fn_append
19085
19086 # as_fn_arith ARG...
19087 # ------------------
19088 # Perform arithmetic evaluation on the ARGs, and store the result in the
19089 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19090 # must be portable across $(()) and expr.
19091 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19092   eval 'as_fn_arith ()
19093   {
19094     as_val=$(( $* ))
19095   }'
19096 else
19097   as_fn_arith ()
19098   {
19099     as_val=`expr "$@" || test $? -eq 1`
19100   }
19101 fi # as_fn_arith
19102
19103
19104 if expr a : '\(a\)' >/dev/null 2>&1 &&
19105    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19106   as_expr=expr
19107 else
19108   as_expr=false
19109 fi
19110
19111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19112   as_basename=basename
19113 else
19114   as_basename=false
19115 fi
19116
19117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19118   as_dirname=dirname
19119 else
19120   as_dirname=false
19121 fi
19122
19123 as_me=`$as_basename -- "$0" ||
19124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19125          X"$0" : 'X\(//\)$' \| \
19126          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19127 $as_echo X/"$0" |
19128     sed '/^.*\/\([^/][^/]*\)\/*$/{
19129             s//\1/
19130             q
19131           }
19132           /^X\/\(\/\/\)$/{
19133             s//\1/
19134             q
19135           }
19136           /^X\/\(\/\).*/{
19137             s//\1/
19138             q
19139           }
19140           s/.*/./; q'`
19141
19142 # Avoid depending upon Character Ranges.
19143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19146 as_cr_digits='0123456789'
19147 as_cr_alnum=$as_cr_Letters$as_cr_digits
19148
19149 ECHO_C= ECHO_N= ECHO_T=
19150 case `echo -n x` in #(((((
19151 -n*)
19152   case `echo 'xy\c'` in
19153   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19154   xy)  ECHO_C='\c';;
19155   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19156        ECHO_T=' ';;
19157   esac;;
19158 *)
19159   ECHO_N='-n';;
19160 esac
19161
19162 rm -f conf$$ conf$$.exe conf$$.file
19163 if test -d conf$$.dir; then
19164   rm -f conf$$.dir/conf$$.file
19165 else
19166   rm -f conf$$.dir
19167   mkdir conf$$.dir 2>/dev/null
19168 fi
19169 if (echo >conf$$.file) 2>/dev/null; then
19170   if ln -s conf$$.file conf$$ 2>/dev/null; then
19171     as_ln_s='ln -s'
19172     # ... but there are two gotchas:
19173     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19174     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19175     # In both cases, we have to default to `cp -p'.
19176     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19177       as_ln_s='cp -p'
19178   elif ln conf$$.file conf$$ 2>/dev/null; then
19179     as_ln_s=ln
19180   else
19181     as_ln_s='cp -p'
19182   fi
19183 else
19184   as_ln_s='cp -p'
19185 fi
19186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19187 rmdir conf$$.dir 2>/dev/null
19188
19189
19190 # as_fn_mkdir_p
19191 # -------------
19192 # Create "$as_dir" as a directory, including parents if necessary.
19193 as_fn_mkdir_p ()
19194 {
19195
19196   case $as_dir in #(
19197   -*) as_dir=./$as_dir;;
19198   esac
19199   test -d "$as_dir" || eval $as_mkdir_p || {
19200     as_dirs=
19201     while :; do
19202       case $as_dir in #(
19203       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19204       *) as_qdir=$as_dir;;
19205       esac
19206       as_dirs="'$as_qdir' $as_dirs"
19207       as_dir=`$as_dirname -- "$as_dir" ||
19208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209          X"$as_dir" : 'X\(//\)[^/]' \| \
19210          X"$as_dir" : 'X\(//\)$' \| \
19211          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19212 $as_echo X"$as_dir" |
19213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19214             s//\1/
19215             q
19216           }
19217           /^X\(\/\/\)[^/].*/{
19218             s//\1/
19219             q
19220           }
19221           /^X\(\/\/\)$/{
19222             s//\1/
19223             q
19224           }
19225           /^X\(\/\).*/{
19226             s//\1/
19227             q
19228           }
19229           s/.*/./; q'`
19230       test -d "$as_dir" && break
19231     done
19232     test -z "$as_dirs" || eval "mkdir $as_dirs"
19233   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19234
19235
19236 } # as_fn_mkdir_p
19237 if mkdir -p . 2>/dev/null; then
19238   as_mkdir_p='mkdir -p "$as_dir"'
19239 else
19240   test -d ./-p && rmdir ./-p
19241   as_mkdir_p=false
19242 fi
19243
19244 if test -x / >/dev/null 2>&1; then
19245   as_test_x='test -x'
19246 else
19247   if ls -dL / >/dev/null 2>&1; then
19248     as_ls_L_option=L
19249   else
19250     as_ls_L_option=
19251   fi
19252   as_test_x='
19253     eval sh -c '\''
19254       if test -d "$1"; then
19255         test -d "$1/.";
19256       else
19257         case $1 in #(
19258         -*)set "./$1";;
19259         esac;
19260         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19261         ???[sx]*):;;*)false;;esac;fi
19262     '\'' sh
19263   '
19264 fi
19265 as_executable_p=$as_test_x
19266
19267 # Sed expression to map a string onto a valid CPP name.
19268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19269
19270 # Sed expression to map a string onto a valid variable name.
19271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19272
19273
19274 exec 6>&1
19275 ## ----------------------------------- ##
19276 ## Main body of $CONFIG_STATUS script. ##
19277 ## ----------------------------------- ##
19278 _ASEOF
19279 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19280
19281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19282 # Save the log message, to keep $0 and so on meaningful, and to
19283 # report actual input values of CONFIG_FILES etc. instead of their
19284 # values after options handling.
19285 ac_log="
19286 This file was extended by libXmu $as_me 1.1.1, which was
19287 generated by GNU Autoconf 2.68.  Invocation command line was
19288
19289   CONFIG_FILES    = $CONFIG_FILES
19290   CONFIG_HEADERS  = $CONFIG_HEADERS
19291   CONFIG_LINKS    = $CONFIG_LINKS
19292   CONFIG_COMMANDS = $CONFIG_COMMANDS
19293   $ $0 $@
19294
19295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19296 "
19297
19298 _ACEOF
19299
19300 case $ac_config_files in *"
19301 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19302 esac
19303
19304 case $ac_config_headers in *"
19305 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19306 esac
19307
19308
19309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19310 # Files that config.status was made for.
19311 config_files="$ac_config_files"
19312 config_headers="$ac_config_headers"
19313 config_commands="$ac_config_commands"
19314
19315 _ACEOF
19316
19317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19318 ac_cs_usage="\
19319 \`$as_me' instantiates files and other configuration actions
19320 from templates according to the current configuration.  Unless the files
19321 and actions are specified as TAGs, all are instantiated by default.
19322
19323 Usage: $0 [OPTION]... [TAG]...
19324
19325   -h, --help       print this help, then exit
19326   -V, --version    print version number and configuration settings, then exit
19327       --config     print configuration, then exit
19328   -q, --quiet, --silent
19329                    do not print progress messages
19330   -d, --debug      don't remove temporary files
19331       --recheck    update $as_me by reconfiguring in the same conditions
19332       --file=FILE[:TEMPLATE]
19333                    instantiate the configuration file FILE
19334       --header=FILE[:TEMPLATE]
19335                    instantiate the configuration header FILE
19336
19337 Configuration files:
19338 $config_files
19339
19340 Configuration headers:
19341 $config_headers
19342
19343 Configuration commands:
19344 $config_commands
19345
19346 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19347
19348 _ACEOF
19349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19350 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19351 ac_cs_version="\\
19352 libXmu config.status 1.1.1
19353 configured by $0, generated by GNU Autoconf 2.68,
19354   with options \\"\$ac_cs_config\\"
19355
19356 Copyright (C) 2010 Free Software Foundation, Inc.
19357 This config.status script is free software; the Free Software Foundation
19358 gives unlimited permission to copy, distribute and modify it."
19359
19360 ac_pwd='$ac_pwd'
19361 srcdir='$srcdir'
19362 INSTALL='$INSTALL'
19363 MKDIR_P='$MKDIR_P'
19364 AWK='$AWK'
19365 test -n "\$AWK" || AWK=awk
19366 _ACEOF
19367
19368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19369 # The default lists apply if the user does not specify any file.
19370 ac_need_defaults=:
19371 while test $# != 0
19372 do
19373   case $1 in
19374   --*=?*)
19375     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19376     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19377     ac_shift=:
19378     ;;
19379   --*=)
19380     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19381     ac_optarg=
19382     ac_shift=:
19383     ;;
19384   *)
19385     ac_option=$1
19386     ac_optarg=$2
19387     ac_shift=shift
19388     ;;
19389   esac
19390
19391   case $ac_option in
19392   # Handling of the options.
19393   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19394     ac_cs_recheck=: ;;
19395   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19396     $as_echo "$ac_cs_version"; exit ;;
19397   --config | --confi | --conf | --con | --co | --c )
19398     $as_echo "$ac_cs_config"; exit ;;
19399   --debug | --debu | --deb | --de | --d | -d )
19400     debug=: ;;
19401   --file | --fil | --fi | --f )
19402     $ac_shift
19403     case $ac_optarg in
19404     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19405     '') as_fn_error $? "missing file argument" ;;
19406     esac
19407     as_fn_append CONFIG_FILES " '$ac_optarg'"
19408     ac_need_defaults=false;;
19409   --header | --heade | --head | --hea )
19410     $ac_shift
19411     case $ac_optarg in
19412     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19413     esac
19414     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19415     ac_need_defaults=false;;
19416   --he | --h)
19417     # Conflict between --help and --header
19418     as_fn_error $? "ambiguous option: \`$1'
19419 Try \`$0 --help' for more information.";;
19420   --help | --hel | -h )
19421     $as_echo "$ac_cs_usage"; exit ;;
19422   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19423   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19424     ac_cs_silent=: ;;
19425
19426   # This is an error.
19427   -*) as_fn_error $? "unrecognized option: \`$1'
19428 Try \`$0 --help' for more information." ;;
19429
19430   *) as_fn_append ac_config_targets " $1"
19431      ac_need_defaults=false ;;
19432
19433   esac
19434   shift
19435 done
19436
19437 ac_configure_extra_args=
19438
19439 if $ac_cs_silent; then
19440   exec 6>/dev/null
19441   ac_configure_extra_args="$ac_configure_extra_args --silent"
19442 fi
19443
19444 _ACEOF
19445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19446 if \$ac_cs_recheck; then
19447   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19448   shift
19449   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19450   CONFIG_SHELL='$SHELL'
19451   export CONFIG_SHELL
19452   exec "\$@"
19453 fi
19454
19455 _ACEOF
19456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19457 exec 5>>config.log
19458 {
19459   echo
19460   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19461 ## Running $as_me. ##
19462 _ASBOX
19463   $as_echo "$ac_log"
19464 } >&5
19465
19466 _ACEOF
19467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19468 #
19469 # INIT-COMMANDS
19470 #
19471 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19472
19473
19474 # The HP-UX ksh and POSIX shell print the target directory to stdout
19475 # if CDPATH is set.
19476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19477
19478 sed_quote_subst='$sed_quote_subst'
19479 double_quote_subst='$double_quote_subst'
19480 delay_variable_subst='$delay_variable_subst'
19481 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19482 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19483 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19484 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19485 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19486 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19487 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19488 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19489 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19490 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19491 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19492 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19493 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19494 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19495 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19496 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19497 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19498 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19499 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19500 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19501 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19502 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19503 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19504 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19505 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19506 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19507 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19508 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19509 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19510 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19511 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19512 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19513 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19514 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19515 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19516 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19517 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19518 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19519 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19520 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19521 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19522 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19523 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19524 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19525 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19526 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19527 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19528 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19529 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19530 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19531 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19532 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19533 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19534 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19535 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19536 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"`'
19537 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19538 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19539 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19540 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19541 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19542 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19543 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19544 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19545 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19546 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19547 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19548 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19549 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19550 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19551 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19552 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19553 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19554 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19555 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19556 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19557 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19558 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19559 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19560 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19561 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19562 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19563 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19564 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19565 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19566 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19567 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19568 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19569 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19570 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19571 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19572 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19573 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19574 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19575 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19576 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19577 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19578 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19579 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19580 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19581 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19582 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19583 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19584 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19585 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19586 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19587 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19588 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19589 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19590 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19591 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19592 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19593 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19594 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19595 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19596 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19597 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19598 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19599 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19600 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19601 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19602 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19603 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19604 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19605 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19606 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19607 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19608 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19609 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19610 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19611
19612 LTCC='$LTCC'
19613 LTCFLAGS='$LTCFLAGS'
19614 compiler='$compiler_DEFAULT'
19615
19616 # A function that is used when there is no print builtin or printf.
19617 func_fallback_echo ()
19618 {
19619   eval 'cat <<_LTECHO_EOF
19620 \$1
19621 _LTECHO_EOF'
19622 }
19623
19624 # Quote evaled strings.
19625 for var in SHELL \
19626 ECHO \
19627 SED \
19628 GREP \
19629 EGREP \
19630 FGREP \
19631 LD \
19632 NM \
19633 LN_S \
19634 lt_SP2NL \
19635 lt_NL2SP \
19636 reload_flag \
19637 OBJDUMP \
19638 deplibs_check_method \
19639 file_magic_cmd \
19640 file_magic_glob \
19641 want_nocaseglob \
19642 DLLTOOL \
19643 sharedlib_from_linklib_cmd \
19644 AR \
19645 AR_FLAGS \
19646 archiver_list_spec \
19647 STRIP \
19648 RANLIB \
19649 CC \
19650 CFLAGS \
19651 compiler \
19652 lt_cv_sys_global_symbol_pipe \
19653 lt_cv_sys_global_symbol_to_cdecl \
19654 lt_cv_sys_global_symbol_to_c_name_address \
19655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19656 nm_file_list_spec \
19657 lt_prog_compiler_no_builtin_flag \
19658 lt_prog_compiler_pic \
19659 lt_prog_compiler_wl \
19660 lt_prog_compiler_static \
19661 lt_cv_prog_compiler_c_o \
19662 need_locks \
19663 MANIFEST_TOOL \
19664 DSYMUTIL \
19665 NMEDIT \
19666 LIPO \
19667 OTOOL \
19668 OTOOL64 \
19669 shrext_cmds \
19670 export_dynamic_flag_spec \
19671 whole_archive_flag_spec \
19672 compiler_needs_object \
19673 with_gnu_ld \
19674 allow_undefined_flag \
19675 no_undefined_flag \
19676 hardcode_libdir_flag_spec \
19677 hardcode_libdir_flag_spec_ld \
19678 hardcode_libdir_separator \
19679 exclude_expsyms \
19680 include_expsyms \
19681 file_list_spec \
19682 variables_saved_for_relink \
19683 libname_spec \
19684 library_names_spec \
19685 soname_spec \
19686 install_override_mode \
19687 finish_eval \
19688 old_striplib \
19689 striplib; do
19690     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19691     *[\\\\\\\`\\"\\\$]*)
19692       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19693       ;;
19694     *)
19695       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19696       ;;
19697     esac
19698 done
19699
19700 # Double-quote double-evaled strings.
19701 for var in reload_cmds \
19702 old_postinstall_cmds \
19703 old_postuninstall_cmds \
19704 old_archive_cmds \
19705 extract_expsyms_cmds \
19706 old_archive_from_new_cmds \
19707 old_archive_from_expsyms_cmds \
19708 archive_cmds \
19709 archive_expsym_cmds \
19710 module_cmds \
19711 module_expsym_cmds \
19712 export_symbols_cmds \
19713 prelink_cmds \
19714 postlink_cmds \
19715 postinstall_cmds \
19716 postuninstall_cmds \
19717 finish_cmds \
19718 sys_lib_search_path_spec \
19719 sys_lib_dlsearch_path_spec; do
19720     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19721     *[\\\\\\\`\\"\\\$]*)
19722       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19723       ;;
19724     *)
19725       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19726       ;;
19727     esac
19728 done
19729
19730 ac_aux_dir='$ac_aux_dir'
19731 xsi_shell='$xsi_shell'
19732 lt_shell_append='$lt_shell_append'
19733
19734 # See if we are running on zsh, and set the options which allow our
19735 # commands through without removal of \ escapes INIT.
19736 if test -n "\${ZSH_VERSION+set}" ; then
19737    setopt NO_GLOB_SUBST
19738 fi
19739
19740
19741     PACKAGE='$PACKAGE'
19742     VERSION='$VERSION'
19743     TIMESTAMP='$TIMESTAMP'
19744     RM='$RM'
19745     ofile='$ofile'
19746
19747
19748
19749
19750 _ACEOF
19751
19752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19753
19754 # Handling of arguments.
19755 for ac_config_target in $ac_config_targets
19756 do
19757   case $ac_config_target in
19758     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19759     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19760     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19761     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19762     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19763     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19764     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19765     "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;;
19766     "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;;
19767
19768   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19769   esac
19770 done
19771
19772
19773 # If the user did not use the arguments to specify the items to instantiate,
19774 # then the envvar interface is used.  Set only those that are not.
19775 # We use the long form for the default assignment because of an extremely
19776 # bizarre bug on SunOS 4.1.3.
19777 if $ac_need_defaults; then
19778   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19779   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19780   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19781 fi
19782
19783 # Have a temporary directory for convenience.  Make it in the build tree
19784 # simply because there is no reason against having it here, and in addition,
19785 # creating and moving files from /tmp can sometimes cause problems.
19786 # Hook for its removal unless debugging.
19787 # Note that there is a small window in which the directory will not be cleaned:
19788 # after its creation but before its name has been assigned to `$tmp'.
19789 $debug ||
19790 {
19791   tmp= ac_tmp=
19792   trap 'exit_status=$?
19793   : "${ac_tmp:=$tmp}"
19794   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19795 ' 0
19796   trap 'as_fn_exit 1' 1 2 13 15
19797 }
19798 # Create a (secure) tmp directory for tmp files.
19799
19800 {
19801   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19802   test -d "$tmp"
19803 }  ||
19804 {
19805   tmp=./conf$$-$RANDOM
19806   (umask 077 && mkdir "$tmp")
19807 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19808 ac_tmp=$tmp
19809
19810 # Set up the scripts for CONFIG_FILES section.
19811 # No need to generate them if there are no CONFIG_FILES.
19812 # This happens for instance with `./config.status config.h'.
19813 if test -n "$CONFIG_FILES"; then
19814
19815
19816 ac_cr=`echo X | tr X '\015'`
19817 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19818 # But we know of no other shell where ac_cr would be empty at this
19819 # point, so we can use a bashism as a fallback.
19820 if test "x$ac_cr" = x; then
19821   eval ac_cr=\$\'\\r\'
19822 fi
19823 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19824 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19825   ac_cs_awk_cr='\\r'
19826 else
19827   ac_cs_awk_cr=$ac_cr
19828 fi
19829
19830 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19831 _ACEOF
19832
19833
19834 {
19835   echo "cat >conf$$subs.awk <<_ACEOF" &&
19836   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19837   echo "_ACEOF"
19838 } >conf$$subs.sh ||
19839   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19840 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19841 ac_delim='%!_!# '
19842 for ac_last_try in false false false false false :; do
19843   . ./conf$$subs.sh ||
19844     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19845
19846   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19847   if test $ac_delim_n = $ac_delim_num; then
19848     break
19849   elif $ac_last_try; then
19850     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19851   else
19852     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19853   fi
19854 done
19855 rm -f conf$$subs.sh
19856
19857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19858 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19859 _ACEOF
19860 sed -n '
19861 h
19862 s/^/S["/; s/!.*/"]=/
19863 p
19864 g
19865 s/^[^!]*!//
19866 :repl
19867 t repl
19868 s/'"$ac_delim"'$//
19869 t delim
19870 :nl
19871 h
19872 s/\(.\{148\}\)..*/\1/
19873 t more1
19874 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19875 p
19876 n
19877 b repl
19878 :more1
19879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19880 p
19881 g
19882 s/.\{148\}//
19883 t nl
19884 :delim
19885 h
19886 s/\(.\{148\}\)..*/\1/
19887 t more2
19888 s/["\\]/\\&/g; s/^/"/; s/$/"/
19889 p
19890 b
19891 :more2
19892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19893 p
19894 g
19895 s/.\{148\}//
19896 t delim
19897 ' <conf$$subs.awk | sed '
19898 /^[^""]/{
19899   N
19900   s/\n//
19901 }
19902 ' >>$CONFIG_STATUS || ac_write_fail=1
19903 rm -f conf$$subs.awk
19904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19905 _ACAWK
19906 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19907   for (key in S) S_is_set[key] = 1
19908   FS = "\a"
19909
19910 }
19911 {
19912   line = $ 0
19913   nfields = split(line, field, "@")
19914   substed = 0
19915   len = length(field[1])
19916   for (i = 2; i < nfields; i++) {
19917     key = field[i]
19918     keylen = length(key)
19919     if (S_is_set[key]) {
19920       value = S[key]
19921       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19922       len += length(value) + length(field[++i])
19923       substed = 1
19924     } else
19925       len += 1 + keylen
19926   }
19927
19928   print line
19929 }
19930
19931 _ACAWK
19932 _ACEOF
19933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19934 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19935   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19936 else
19937   cat
19938 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19939   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19940 _ACEOF
19941
19942 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19943 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19944 # trailing colons and then remove the whole line if VPATH becomes empty
19945 # (actually we leave an empty line to preserve line numbers).
19946 if test "x$srcdir" = x.; then
19947   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19948 h
19949 s///
19950 s/^/:/
19951 s/[      ]*$/:/
19952 s/:\$(srcdir):/:/g
19953 s/:\${srcdir}:/:/g
19954 s/:@srcdir@:/:/g
19955 s/^:*//
19956 s/:*$//
19957 x
19958 s/\(=[   ]*\).*/\1/
19959 G
19960 s/\n//
19961 s/^[^=]*=[       ]*$//
19962 }'
19963 fi
19964
19965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19966 fi # test -n "$CONFIG_FILES"
19967
19968 # Set up the scripts for CONFIG_HEADERS section.
19969 # No need to generate them if there are no CONFIG_HEADERS.
19970 # This happens for instance with `./config.status Makefile'.
19971 if test -n "$CONFIG_HEADERS"; then
19972 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19973 BEGIN {
19974 _ACEOF
19975
19976 # Transform confdefs.h into an awk script `defines.awk', embedded as
19977 # here-document in config.status, that substitutes the proper values into
19978 # config.h.in to produce config.h.
19979
19980 # Create a delimiter string that does not exist in confdefs.h, to ease
19981 # handling of long lines.
19982 ac_delim='%!_!# '
19983 for ac_last_try in false false :; do
19984   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19985   if test -z "$ac_tt"; then
19986     break
19987   elif $ac_last_try; then
19988     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19989   else
19990     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19991   fi
19992 done
19993
19994 # For the awk script, D is an array of macro values keyed by name,
19995 # likewise P contains macro parameters if any.  Preserve backslash
19996 # newline sequences.
19997
19998 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19999 sed -n '
20000 s/.\{148\}/&'"$ac_delim"'/g
20001 t rset
20002 :rset
20003 s/^[     ]*#[    ]*define[       ][      ]*/ /
20004 t def
20005 d
20006 :def
20007 s/\\$//
20008 t bsnl
20009 s/["\\]/\\&/g
20010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20011 D["\1"]=" \3"/p
20012 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20013 d
20014 :bsnl
20015 s/["\\]/\\&/g
20016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20017 D["\1"]=" \3\\\\\\n"\\/p
20018 t cont
20019 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20020 t cont
20021 d
20022 :cont
20023 n
20024 s/.\{148\}/&'"$ac_delim"'/g
20025 t clear
20026 :clear
20027 s/\\$//
20028 t bsnlc
20029 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20030 d
20031 :bsnlc
20032 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20033 b cont
20034 ' <confdefs.h | sed '
20035 s/'"$ac_delim"'/"\\\
20036 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20037
20038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20039   for (key in D) D_is_set[key] = 1
20040   FS = "\a"
20041 }
20042 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20043   line = \$ 0
20044   split(line, arg, " ")
20045   if (arg[1] == "#") {
20046     defundef = arg[2]
20047     mac1 = arg[3]
20048   } else {
20049     defundef = substr(arg[1], 2)
20050     mac1 = arg[2]
20051   }
20052   split(mac1, mac2, "(") #)
20053   macro = mac2[1]
20054   prefix = substr(line, 1, index(line, defundef) - 1)
20055   if (D_is_set[macro]) {
20056     # Preserve the white space surrounding the "#".
20057     print prefix "define", macro P[macro] D[macro]
20058     next
20059   } else {
20060     # Replace #undef with comments.  This is necessary, for example,
20061     # in the case of _POSIX_SOURCE, which is predefined and required
20062     # on some systems where configure will not decide to define it.
20063     if (defundef == "undef") {
20064       print "/*", prefix defundef, macro, "*/"
20065       next
20066     }
20067   }
20068 }
20069 { print }
20070 _ACAWK
20071 _ACEOF
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20074 fi # test -n "$CONFIG_HEADERS"
20075
20076
20077 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20078 shift
20079 for ac_tag
20080 do
20081   case $ac_tag in
20082   :[FHLC]) ac_mode=$ac_tag; continue;;
20083   esac
20084   case $ac_mode$ac_tag in
20085   :[FHL]*:*);;
20086   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20087   :[FH]-) ac_tag=-:-;;
20088   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20089   esac
20090   ac_save_IFS=$IFS
20091   IFS=:
20092   set x $ac_tag
20093   IFS=$ac_save_IFS
20094   shift
20095   ac_file=$1
20096   shift
20097
20098   case $ac_mode in
20099   :L) ac_source=$1;;
20100   :[FH])
20101     ac_file_inputs=
20102     for ac_f
20103     do
20104       case $ac_f in
20105       -) ac_f="$ac_tmp/stdin";;
20106       *) # Look for the file first in the build tree, then in the source tree
20107          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20108          # because $ac_f cannot contain `:'.
20109          test -f "$ac_f" ||
20110            case $ac_f in
20111            [\\/$]*) false;;
20112            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20113            esac ||
20114            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20115       esac
20116       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20117       as_fn_append ac_file_inputs " '$ac_f'"
20118     done
20119
20120     # Let's still pretend it is `configure' which instantiates (i.e., don't
20121     # use $as_me), people would be surprised to read:
20122     #    /* config.h.  Generated by config.status.  */
20123     configure_input='Generated from '`
20124           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20125         `' by configure.'
20126     if test x"$ac_file" != x-; then
20127       configure_input="$ac_file.  $configure_input"
20128       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20129 $as_echo "$as_me: creating $ac_file" >&6;}
20130     fi
20131     # Neutralize special characters interpreted by sed in replacement strings.
20132     case $configure_input in #(
20133     *\&* | *\|* | *\\* )
20134        ac_sed_conf_input=`$as_echo "$configure_input" |
20135        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20136     *) ac_sed_conf_input=$configure_input;;
20137     esac
20138
20139     case $ac_tag in
20140     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20141       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20142     esac
20143     ;;
20144   esac
20145
20146   ac_dir=`$as_dirname -- "$ac_file" ||
20147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20148          X"$ac_file" : 'X\(//\)[^/]' \| \
20149          X"$ac_file" : 'X\(//\)$' \| \
20150          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20151 $as_echo X"$ac_file" |
20152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20153             s//\1/
20154             q
20155           }
20156           /^X\(\/\/\)[^/].*/{
20157             s//\1/
20158             q
20159           }
20160           /^X\(\/\/\)$/{
20161             s//\1/
20162             q
20163           }
20164           /^X\(\/\).*/{
20165             s//\1/
20166             q
20167           }
20168           s/.*/./; q'`
20169   as_dir="$ac_dir"; as_fn_mkdir_p
20170   ac_builddir=.
20171
20172 case "$ac_dir" in
20173 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20174 *)
20175   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20176   # A ".." for each directory in $ac_dir_suffix.
20177   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20178   case $ac_top_builddir_sub in
20179   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20180   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20181   esac ;;
20182 esac
20183 ac_abs_top_builddir=$ac_pwd
20184 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20185 # for backward compatibility:
20186 ac_top_builddir=$ac_top_build_prefix
20187
20188 case $srcdir in
20189   .)  # We are building in place.
20190     ac_srcdir=.
20191     ac_top_srcdir=$ac_top_builddir_sub
20192     ac_abs_top_srcdir=$ac_pwd ;;
20193   [\\/]* | ?:[\\/]* )  # Absolute name.
20194     ac_srcdir=$srcdir$ac_dir_suffix;
20195     ac_top_srcdir=$srcdir
20196     ac_abs_top_srcdir=$srcdir ;;
20197   *) # Relative name.
20198     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20199     ac_top_srcdir=$ac_top_build_prefix$srcdir
20200     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20201 esac
20202 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20203
20204
20205   case $ac_mode in
20206   :F)
20207   #
20208   # CONFIG_FILE
20209   #
20210
20211   case $INSTALL in
20212   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20213   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20214   esac
20215   ac_MKDIR_P=$MKDIR_P
20216   case $MKDIR_P in
20217   [\\/$]* | ?:[\\/]* ) ;;
20218   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20219   esac
20220 _ACEOF
20221
20222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223 # If the template does not know about datarootdir, expand it.
20224 # FIXME: This hack should be removed a few years after 2.60.
20225 ac_datarootdir_hack=; ac_datarootdir_seen=
20226 ac_sed_dataroot='
20227 /datarootdir/ {
20228   p
20229   q
20230 }
20231 /@datadir@/p
20232 /@docdir@/p
20233 /@infodir@/p
20234 /@localedir@/p
20235 /@mandir@/p'
20236 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20237 *datarootdir*) ac_datarootdir_seen=yes;;
20238 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20239   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20240 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20241 _ACEOF
20242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20243   ac_datarootdir_hack='
20244   s&@datadir@&$datadir&g
20245   s&@docdir@&$docdir&g
20246   s&@infodir@&$infodir&g
20247   s&@localedir@&$localedir&g
20248   s&@mandir@&$mandir&g
20249   s&\\\${datarootdir}&$datarootdir&g' ;;
20250 esac
20251 _ACEOF
20252
20253 # Neutralize VPATH when `$srcdir' = `.'.
20254 # Shell code in configure.ac might set extrasub.
20255 # FIXME: do we really want to maintain this feature?
20256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20257 ac_sed_extra="$ac_vpsub
20258 $extrasub
20259 _ACEOF
20260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20261 :t
20262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20263 s|@configure_input@|$ac_sed_conf_input|;t t
20264 s&@top_builddir@&$ac_top_builddir_sub&;t t
20265 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20266 s&@srcdir@&$ac_srcdir&;t t
20267 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20268 s&@top_srcdir@&$ac_top_srcdir&;t t
20269 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20270 s&@builddir@&$ac_builddir&;t t
20271 s&@abs_builddir@&$ac_abs_builddir&;t t
20272 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20273 s&@INSTALL@&$ac_INSTALL&;t t
20274 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20275 $ac_datarootdir_hack
20276 "
20277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20278   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20279
20280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20281   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20282   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20283       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20284   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20285 which seems to be undefined.  Please make sure it is defined" >&5
20286 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20287 which seems to be undefined.  Please make sure it is defined" >&2;}
20288
20289   rm -f "$ac_tmp/stdin"
20290   case $ac_file in
20291   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20292   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20293   esac \
20294   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20295  ;;
20296   :H)
20297   #
20298   # CONFIG_HEADER
20299   #
20300   if test x"$ac_file" != x-; then
20301     {
20302       $as_echo "/* $configure_input  */" \
20303       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20304     } >"$ac_tmp/config.h" \
20305       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20306     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20307       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20308 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20309     else
20310       rm -f "$ac_file"
20311       mv "$ac_tmp/config.h" "$ac_file" \
20312         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20313     fi
20314   else
20315     $as_echo "/* $configure_input  */" \
20316       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20317       || as_fn_error $? "could not create -" "$LINENO" 5
20318   fi
20319 # Compute "$ac_file"'s index in $config_headers.
20320 _am_arg="$ac_file"
20321 _am_stamp_count=1
20322 for _am_header in $config_headers :; do
20323   case $_am_header in
20324     $_am_arg | $_am_arg:* )
20325       break ;;
20326     * )
20327       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20328   esac
20329 done
20330 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20331 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20332          X"$_am_arg" : 'X\(//\)[^/]' \| \
20333          X"$_am_arg" : 'X\(//\)$' \| \
20334          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20335 $as_echo X"$_am_arg" |
20336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20337             s//\1/
20338             q
20339           }
20340           /^X\(\/\/\)[^/].*/{
20341             s//\1/
20342             q
20343           }
20344           /^X\(\/\/\)$/{
20345             s//\1/
20346             q
20347           }
20348           /^X\(\/\).*/{
20349             s//\1/
20350             q
20351           }
20352           s/.*/./; q'`/stamp-h$_am_stamp_count
20353  ;;
20354
20355   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20356 $as_echo "$as_me: executing $ac_file commands" >&6;}
20357  ;;
20358   esac
20359
20360
20361   case $ac_file$ac_mode in
20362     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20363   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20364   # are listed without --file.  Let's play safe and only enable the eval
20365   # if we detect the quoting.
20366   case $CONFIG_FILES in
20367   *\'*) eval set x "$CONFIG_FILES" ;;
20368   *)   set x $CONFIG_FILES ;;
20369   esac
20370   shift
20371   for mf
20372   do
20373     # Strip MF so we end up with the name of the file.
20374     mf=`echo "$mf" | sed -e 's/:.*$//'`
20375     # Check whether this is an Automake generated Makefile or not.
20376     # We used to match only the files named `Makefile.in', but
20377     # some people rename them; so instead we look at the file content.
20378     # Grep'ing the first line is not enough: some people post-process
20379     # each Makefile.in and add a new line on top of each file to say so.
20380     # Grep'ing the whole file is not good either: AIX grep has a line
20381     # limit of 2048, but all sed's we know have understand at least 4000.
20382     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20383       dirpart=`$as_dirname -- "$mf" ||
20384 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20385          X"$mf" : 'X\(//\)[^/]' \| \
20386          X"$mf" : 'X\(//\)$' \| \
20387          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20388 $as_echo X"$mf" |
20389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20390             s//\1/
20391             q
20392           }
20393           /^X\(\/\/\)[^/].*/{
20394             s//\1/
20395             q
20396           }
20397           /^X\(\/\/\)$/{
20398             s//\1/
20399             q
20400           }
20401           /^X\(\/\).*/{
20402             s//\1/
20403             q
20404           }
20405           s/.*/./; q'`
20406     else
20407       continue
20408     fi
20409     # Extract the definition of DEPDIR, am__include, and am__quote
20410     # from the Makefile without running `make'.
20411     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20412     test -z "$DEPDIR" && continue
20413     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20414     test -z "am__include" && continue
20415     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20416     # When using ansi2knr, U may be empty or an underscore; expand it
20417     U=`sed -n 's/^U = //p' < "$mf"`
20418     # Find all dependency output files, they are included files with
20419     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20420     # simplest approach to changing $(DEPDIR) to its actual value in the
20421     # expansion.
20422     for file in `sed -n "
20423       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20424          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20425       # Make sure the directory exists.
20426       test -f "$dirpart/$file" && continue
20427       fdir=`$as_dirname -- "$file" ||
20428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20429          X"$file" : 'X\(//\)[^/]' \| \
20430          X"$file" : 'X\(//\)$' \| \
20431          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20432 $as_echo X"$file" |
20433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20434             s//\1/
20435             q
20436           }
20437           /^X\(\/\/\)[^/].*/{
20438             s//\1/
20439             q
20440           }
20441           /^X\(\/\/\)$/{
20442             s//\1/
20443             q
20444           }
20445           /^X\(\/\).*/{
20446             s//\1/
20447             q
20448           }
20449           s/.*/./; q'`
20450       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20451       # echo "creating $dirpart/$file"
20452       echo '# dummy' > "$dirpart/$file"
20453     done
20454   done
20455 }
20456  ;;
20457     "libtool":C)
20458
20459     # See if we are running on zsh, and set the options which allow our
20460     # commands through without removal of \ escapes.
20461     if test -n "${ZSH_VERSION+set}" ; then
20462       setopt NO_GLOB_SUBST
20463     fi
20464
20465     cfgfile="${ofile}T"
20466     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20467     $RM "$cfgfile"
20468
20469     cat <<_LT_EOF >> "$cfgfile"
20470 #! $SHELL
20471
20472 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20473 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20476 #
20477 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20478 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20479 #                 Inc.
20480 #   Written by Gordon Matzigkeit, 1996
20481 #
20482 #   This file is part of GNU Libtool.
20483 #
20484 # GNU Libtool is free software; you can redistribute it and/or
20485 # modify it under the terms of the GNU General Public License as
20486 # published by the Free Software Foundation; either version 2 of
20487 # the License, or (at your option) any later version.
20488 #
20489 # As a special exception to the GNU General Public License,
20490 # if you distribute this file as part of a program or library that
20491 # is built using GNU Libtool, you may include this file under the
20492 # same distribution terms that you use for the rest of that program.
20493 #
20494 # GNU Libtool is distributed in the hope that it will be useful,
20495 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20497 # GNU General Public License for more details.
20498 #
20499 # You should have received a copy of the GNU General Public License
20500 # along with GNU Libtool; see the file COPYING.  If not, a copy
20501 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20502 # obtained by writing to the Free Software Foundation, Inc.,
20503 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20504
20505
20506 # The names of the tagged configurations supported by this script.
20507 available_tags=""
20508
20509 # ### BEGIN LIBTOOL CONFIG
20510
20511 # Which release of libtool.m4 was used?
20512 macro_version=$macro_version
20513 macro_revision=$macro_revision
20514
20515 # Whether or not to build shared libraries.
20516 build_libtool_libs=$enable_shared
20517
20518 # Whether or not to build static libraries.
20519 build_old_libs=$enable_static
20520
20521 # What type of objects to build.
20522 pic_mode=$pic_mode
20523
20524 # Whether or not to optimize for fast installation.
20525 fast_install=$enable_fast_install
20526
20527 # Shell to use when invoking shell scripts.
20528 SHELL=$lt_SHELL
20529
20530 # An echo program that protects backslashes.
20531 ECHO=$lt_ECHO
20532
20533 # The host system.
20534 host_alias=$host_alias
20535 host=$host
20536 host_os=$host_os
20537
20538 # The build system.
20539 build_alias=$build_alias
20540 build=$build
20541 build_os=$build_os
20542
20543 # A sed program that does not truncate output.
20544 SED=$lt_SED
20545
20546 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20547 Xsed="\$SED -e 1s/^X//"
20548
20549 # A grep program that handles long lines.
20550 GREP=$lt_GREP
20551
20552 # An ERE matcher.
20553 EGREP=$lt_EGREP
20554
20555 # A literal string matcher.
20556 FGREP=$lt_FGREP
20557
20558 # A BSD- or MS-compatible name lister.
20559 NM=$lt_NM
20560
20561 # Whether we need soft or hard links.
20562 LN_S=$lt_LN_S
20563
20564 # What is the maximum length of a command?
20565 max_cmd_len=$max_cmd_len
20566
20567 # Object file suffix (normally "o").
20568 objext=$ac_objext
20569
20570 # Executable file suffix (normally "").
20571 exeext=$exeext
20572
20573 # whether the shell understands "unset".
20574 lt_unset=$lt_unset
20575
20576 # turn spaces into newlines.
20577 SP2NL=$lt_lt_SP2NL
20578
20579 # turn newlines into spaces.
20580 NL2SP=$lt_lt_NL2SP
20581
20582 # convert \$build file names to \$host format.
20583 to_host_file_cmd=$lt_cv_to_host_file_cmd
20584
20585 # convert \$build files to toolchain format.
20586 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20587
20588 # An object symbol dumper.
20589 OBJDUMP=$lt_OBJDUMP
20590
20591 # Method to check whether dependent libraries are shared objects.
20592 deplibs_check_method=$lt_deplibs_check_method
20593
20594 # Command to use when deplibs_check_method = "file_magic".
20595 file_magic_cmd=$lt_file_magic_cmd
20596
20597 # How to find potential files when deplibs_check_method = "file_magic".
20598 file_magic_glob=$lt_file_magic_glob
20599
20600 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20601 want_nocaseglob=$lt_want_nocaseglob
20602
20603 # DLL creation program.
20604 DLLTOOL=$lt_DLLTOOL
20605
20606 # Command to associate shared and link libraries.
20607 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20608
20609 # The archiver.
20610 AR=$lt_AR
20611
20612 # Flags to create an archive.
20613 AR_FLAGS=$lt_AR_FLAGS
20614
20615 # How to feed a file listing to the archiver.
20616 archiver_list_spec=$lt_archiver_list_spec
20617
20618 # A symbol stripping program.
20619 STRIP=$lt_STRIP
20620
20621 # Commands used to install an old-style archive.
20622 RANLIB=$lt_RANLIB
20623 old_postinstall_cmds=$lt_old_postinstall_cmds
20624 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20625
20626 # Whether to use a lock for old archive extraction.
20627 lock_old_archive_extraction=$lock_old_archive_extraction
20628
20629 # A C compiler.
20630 LTCC=$lt_CC
20631
20632 # LTCC compiler flags.
20633 LTCFLAGS=$lt_CFLAGS
20634
20635 # Take the output of nm and produce a listing of raw symbols and C names.
20636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20637
20638 # Transform the output of nm in a proper C declaration.
20639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20640
20641 # Transform the output of nm in a C name address pair.
20642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20643
20644 # Transform the output of nm in a C name address pair when lib prefix is needed.
20645 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20646
20647 # Specify filename containing input files for \$NM.
20648 nm_file_list_spec=$lt_nm_file_list_spec
20649
20650 # The root where to search for dependent libraries,and in which our libraries should be installed.
20651 lt_sysroot=$lt_sysroot
20652
20653 # The name of the directory that contains temporary libtool files.
20654 objdir=$objdir
20655
20656 # Used to examine libraries when file_magic_cmd begins with "file".
20657 MAGIC_CMD=$MAGIC_CMD
20658
20659 # Must we lock files when doing compilation?
20660 need_locks=$lt_need_locks
20661
20662 # Manifest tool.
20663 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20664
20665 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20666 DSYMUTIL=$lt_DSYMUTIL
20667
20668 # Tool to change global to local symbols on Mac OS X.
20669 NMEDIT=$lt_NMEDIT
20670
20671 # Tool to manipulate fat objects and archives on Mac OS X.
20672 LIPO=$lt_LIPO
20673
20674 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20675 OTOOL=$lt_OTOOL
20676
20677 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20678 OTOOL64=$lt_OTOOL64
20679
20680 # Old archive suffix (normally "a").
20681 libext=$libext
20682
20683 # Shared library suffix (normally ".so").
20684 shrext_cmds=$lt_shrext_cmds
20685
20686 # The commands to extract the exported symbol list from a shared archive.
20687 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20688
20689 # Variables whose values should be saved in libtool wrapper scripts and
20690 # restored at link time.
20691 variables_saved_for_relink=$lt_variables_saved_for_relink
20692
20693 # Do we need the "lib" prefix for modules?
20694 need_lib_prefix=$need_lib_prefix
20695
20696 # Do we need a version for libraries?
20697 need_version=$need_version
20698
20699 # Library versioning type.
20700 version_type=$version_type
20701
20702 # Shared library runtime path variable.
20703 runpath_var=$runpath_var
20704
20705 # Shared library path variable.
20706 shlibpath_var=$shlibpath_var
20707
20708 # Is shlibpath searched before the hard-coded library search path?
20709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20710
20711 # Format of library name prefix.
20712 libname_spec=$lt_libname_spec
20713
20714 # List of archive names.  First name is the real one, the rest are links.
20715 # The last name is the one that the linker finds with -lNAME
20716 library_names_spec=$lt_library_names_spec
20717
20718 # The coded name of the library, if different from the real name.
20719 soname_spec=$lt_soname_spec
20720
20721 # Permission mode override for installation of shared libraries.
20722 install_override_mode=$lt_install_override_mode
20723
20724 # Command to use after installation of a shared archive.
20725 postinstall_cmds=$lt_postinstall_cmds
20726
20727 # Command to use after uninstallation of a shared archive.
20728 postuninstall_cmds=$lt_postuninstall_cmds
20729
20730 # Commands used to finish a libtool library installation in a directory.
20731 finish_cmds=$lt_finish_cmds
20732
20733 # As "finish_cmds", except a single script fragment to be evaled but
20734 # not shown.
20735 finish_eval=$lt_finish_eval
20736
20737 # Whether we should hardcode library paths into libraries.
20738 hardcode_into_libs=$hardcode_into_libs
20739
20740 # Compile-time system search path for libraries.
20741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20742
20743 # Run-time system search path for libraries.
20744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20745
20746 # Whether dlopen is supported.
20747 dlopen_support=$enable_dlopen
20748
20749 # Whether dlopen of programs is supported.
20750 dlopen_self=$enable_dlopen_self
20751
20752 # Whether dlopen of statically linked programs is supported.
20753 dlopen_self_static=$enable_dlopen_self_static
20754
20755 # Commands to strip libraries.
20756 old_striplib=$lt_old_striplib
20757 striplib=$lt_striplib
20758
20759
20760 # The linker used to build libraries.
20761 LD=$lt_LD
20762
20763 # How to create reloadable object files.
20764 reload_flag=$lt_reload_flag
20765 reload_cmds=$lt_reload_cmds
20766
20767 # Commands used to build an old-style archive.
20768 old_archive_cmds=$lt_old_archive_cmds
20769
20770 # A language specific compiler.
20771 CC=$lt_compiler
20772
20773 # Is the compiler the GNU compiler?
20774 with_gcc=$GCC
20775
20776 # Compiler flag to turn off builtin functions.
20777 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20778
20779 # Additional compiler flags for building library objects.
20780 pic_flag=$lt_lt_prog_compiler_pic
20781
20782 # How to pass a linker flag through the compiler.
20783 wl=$lt_lt_prog_compiler_wl
20784
20785 # Compiler flag to prevent dynamic linking.
20786 link_static_flag=$lt_lt_prog_compiler_static
20787
20788 # Does compiler simultaneously support -c and -o options?
20789 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20790
20791 # Whether or not to add -lc for building shared libraries.
20792 build_libtool_need_lc=$archive_cmds_need_lc
20793
20794 # Whether or not to disallow shared libs when runtime libs are static.
20795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20796
20797 # Compiler flag to allow reflexive dlopens.
20798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20799
20800 # Compiler flag to generate shared objects directly from archives.
20801 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20802
20803 # Whether the compiler copes with passing no objects directly.
20804 compiler_needs_object=$lt_compiler_needs_object
20805
20806 # Create an old-style archive from a shared archive.
20807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20808
20809 # Create a temporary old-style archive to link instead of a shared archive.
20810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20811
20812 # Commands used to build a shared archive.
20813 archive_cmds=$lt_archive_cmds
20814 archive_expsym_cmds=$lt_archive_expsym_cmds
20815
20816 # Commands used to build a loadable module if different from building
20817 # a shared archive.
20818 module_cmds=$lt_module_cmds
20819 module_expsym_cmds=$lt_module_expsym_cmds
20820
20821 # Whether we are building with GNU ld or not.
20822 with_gnu_ld=$lt_with_gnu_ld
20823
20824 # Flag that allows shared libraries with undefined symbols to be built.
20825 allow_undefined_flag=$lt_allow_undefined_flag
20826
20827 # Flag that enforces no undefined symbols.
20828 no_undefined_flag=$lt_no_undefined_flag
20829
20830 # Flag to hardcode \$libdir into a binary during linking.
20831 # This must work even if \$libdir does not exist
20832 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20833
20834 # If ld is used when linking, flag to hardcode \$libdir into a binary
20835 # during linking.  This must work even if \$libdir does not exist.
20836 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20837
20838 # Whether we need a single "-rpath" flag with a separated argument.
20839 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20840
20841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20842 # DIR into the resulting binary.
20843 hardcode_direct=$hardcode_direct
20844
20845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20846 # DIR into the resulting binary and the resulting library dependency is
20847 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20848 # library is relocated.
20849 hardcode_direct_absolute=$hardcode_direct_absolute
20850
20851 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20852 # into the resulting binary.
20853 hardcode_minus_L=$hardcode_minus_L
20854
20855 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20856 # into the resulting binary.
20857 hardcode_shlibpath_var=$hardcode_shlibpath_var
20858
20859 # Set to "yes" if building a shared library automatically hardcodes DIR
20860 # into the library and all subsequent libraries and executables linked
20861 # against it.
20862 hardcode_automatic=$hardcode_automatic
20863
20864 # Set to yes if linker adds runtime paths of dependent libraries
20865 # to runtime path list.
20866 inherit_rpath=$inherit_rpath
20867
20868 # Whether libtool must link a program against all its dependency libraries.
20869 link_all_deplibs=$link_all_deplibs
20870
20871 # Set to "yes" if exported symbols are required.
20872 always_export_symbols=$always_export_symbols
20873
20874 # The commands to list exported symbols.
20875 export_symbols_cmds=$lt_export_symbols_cmds
20876
20877 # Symbols that should not be listed in the preloaded symbols.
20878 exclude_expsyms=$lt_exclude_expsyms
20879
20880 # Symbols that must always be exported.
20881 include_expsyms=$lt_include_expsyms
20882
20883 # Commands necessary for linking programs (against libraries) with templates.
20884 prelink_cmds=$lt_prelink_cmds
20885
20886 # Commands necessary for finishing linking programs.
20887 postlink_cmds=$lt_postlink_cmds
20888
20889 # Specify filename containing input files.
20890 file_list_spec=$lt_file_list_spec
20891
20892 # How to hardcode a shared library path into an executable.
20893 hardcode_action=$hardcode_action
20894
20895 # ### END LIBTOOL CONFIG
20896
20897 _LT_EOF
20898
20899   case $host_os in
20900   aix3*)
20901     cat <<\_LT_EOF >> "$cfgfile"
20902 # AIX sometimes has problems with the GCC collect2 program.  For some
20903 # reason, if we set the COLLECT_NAMES environment variable, the problems
20904 # vanish in a puff of smoke.
20905 if test "X${COLLECT_NAMES+set}" != Xset; then
20906   COLLECT_NAMES=
20907   export COLLECT_NAMES
20908 fi
20909 _LT_EOF
20910     ;;
20911   esac
20912
20913
20914 ltmain="$ac_aux_dir/ltmain.sh"
20915
20916
20917   # We use sed instead of cat because bash on DJGPP gets confused if
20918   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20919   # text mode, it properly converts lines to CR/LF.  This bash problem
20920   # is reportedly fixed, but why not run on old versions too?
20921   sed '$q' "$ltmain" >> "$cfgfile" \
20922      || (rm -f "$cfgfile"; exit 1)
20923
20924   if test x"$xsi_shell" = xyes; then
20925   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20926 func_dirname ()\
20927 {\
20928 \    case ${1} in\
20929 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20930 \      *  ) func_dirname_result="${3}" ;;\
20931 \    esac\
20932 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20933   && mv -f "$cfgfile.tmp" "$cfgfile" \
20934     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20935 test 0 -eq $? || _lt_function_replace_fail=:
20936
20937
20938   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20939 func_basename ()\
20940 {\
20941 \    func_basename_result="${1##*/}"\
20942 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20943   && mv -f "$cfgfile.tmp" "$cfgfile" \
20944     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20945 test 0 -eq $? || _lt_function_replace_fail=:
20946
20947
20948   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20949 func_dirname_and_basename ()\
20950 {\
20951 \    case ${1} in\
20952 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20953 \      *  ) func_dirname_result="${3}" ;;\
20954 \    esac\
20955 \    func_basename_result="${1##*/}"\
20956 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20957   && mv -f "$cfgfile.tmp" "$cfgfile" \
20958     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20959 test 0 -eq $? || _lt_function_replace_fail=:
20960
20961
20962   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20963 func_stripname ()\
20964 {\
20965 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20966 \    # positional parameters, so assign one to ordinary parameter first.\
20967 \    func_stripname_result=${3}\
20968 \    func_stripname_result=${func_stripname_result#"${1}"}\
20969 \    func_stripname_result=${func_stripname_result%"${2}"}\
20970 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20971   && mv -f "$cfgfile.tmp" "$cfgfile" \
20972     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20973 test 0 -eq $? || _lt_function_replace_fail=:
20974
20975
20976   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20977 func_split_long_opt ()\
20978 {\
20979 \    func_split_long_opt_name=${1%%=*}\
20980 \    func_split_long_opt_arg=${1#*=}\
20981 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20982   && mv -f "$cfgfile.tmp" "$cfgfile" \
20983     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20984 test 0 -eq $? || _lt_function_replace_fail=:
20985
20986
20987   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20988 func_split_short_opt ()\
20989 {\
20990 \    func_split_short_opt_arg=${1#??}\
20991 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20992 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20993   && mv -f "$cfgfile.tmp" "$cfgfile" \
20994     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20995 test 0 -eq $? || _lt_function_replace_fail=:
20996
20997
20998   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20999 func_lo2o ()\
21000 {\
21001 \    case ${1} in\
21002 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21003 \      *)    func_lo2o_result=${1} ;;\
21004 \    esac\
21005 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21006   && mv -f "$cfgfile.tmp" "$cfgfile" \
21007     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21008 test 0 -eq $? || _lt_function_replace_fail=:
21009
21010
21011   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21012 func_xform ()\
21013 {\
21014     func_xform_result=${1%.*}.lo\
21015 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21016   && mv -f "$cfgfile.tmp" "$cfgfile" \
21017     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21018 test 0 -eq $? || _lt_function_replace_fail=:
21019
21020
21021   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21022 func_arith ()\
21023 {\
21024     func_arith_result=$(( $* ))\
21025 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21026   && mv -f "$cfgfile.tmp" "$cfgfile" \
21027     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21028 test 0 -eq $? || _lt_function_replace_fail=:
21029
21030
21031   sed -e '/^func_len ()$/,/^} # func_len /c\
21032 func_len ()\
21033 {\
21034     func_len_result=${#1}\
21035 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21036   && mv -f "$cfgfile.tmp" "$cfgfile" \
21037     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21038 test 0 -eq $? || _lt_function_replace_fail=:
21039
21040 fi
21041
21042 if test x"$lt_shell_append" = xyes; then
21043   sed -e '/^func_append ()$/,/^} # func_append /c\
21044 func_append ()\
21045 {\
21046     eval "${1}+=\\${2}"\
21047 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21048   && mv -f "$cfgfile.tmp" "$cfgfile" \
21049     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21050 test 0 -eq $? || _lt_function_replace_fail=:
21051
21052
21053   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21054 func_append_quoted ()\
21055 {\
21056 \    func_quote_for_eval "${2}"\
21057 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21058 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21059   && mv -f "$cfgfile.tmp" "$cfgfile" \
21060     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21061 test 0 -eq $? || _lt_function_replace_fail=:
21062
21063
21064   # Save a `func_append' function call where possible by direct use of '+='
21065   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21066     && mv -f "$cfgfile.tmp" "$cfgfile" \
21067       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21068   test 0 -eq $? || _lt_function_replace_fail=:
21069 else
21070   # Save a `func_append' function call even when '+=' is not available
21071   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21072     && mv -f "$cfgfile.tmp" "$cfgfile" \
21073       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21074   test 0 -eq $? || _lt_function_replace_fail=:
21075 fi
21076
21077 if test x"$_lt_function_replace_fail" = x":"; then
21078   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21079 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21080 fi
21081
21082
21083    mv -f "$cfgfile" "$ofile" ||
21084     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21085   chmod +x "$ofile"
21086
21087  ;;
21088
21089   esac
21090 done # for ac_tag
21091
21092
21093 as_fn_exit 0
21094 _ACEOF
21095 ac_clean_files=$ac_clean_files_save
21096
21097 test $ac_write_fail = 0 ||
21098   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21099
21100
21101 # configure is writing to config.log, and then calls config.status.
21102 # config.status does its own redirection, appending to config.log.
21103 # Unfortunately, on DOS this fails, as config.log is still kept open
21104 # by configure, so config.status won't be able to write to it; its
21105 # output is simply discarded.  So we exec the FD to /dev/null,
21106 # effectively closing config.log, so it can be properly (re)opened and
21107 # appended to by config.status.  When coming back to configure, we
21108 # need to make the FD available again.
21109 if test "$no_create" != yes; then
21110   ac_cs_success=:
21111   ac_config_status_args=
21112   test "$silent" = yes &&
21113     ac_config_status_args="$ac_config_status_args --quiet"
21114   exec 5>/dev/null
21115   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21116   exec 5>>config.log
21117   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21118   # would make configure fail if this is the last instruction.
21119   $ac_cs_success || as_fn_exit 1
21120 fi
21121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21122   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21124 fi
21125