libXaw should not try to build into a pure wayland platform.
[platform/upstream/libXaw.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXaw 1.0.11.
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='libXaw'
633 PACKAGE_TARNAME='libXaw'
634 PACKAGE_VERSION='1.0.11'
635 PACKAGE_STRING='libXaw 1.0.11'
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 BUILD_XAW7_FALSE
681 BUILD_XAW7_TRUE
682 BUILD_XAW6_FALSE
683 BUILD_XAW6_TRUE
684 XAW7_LIBS
685 XAW7_CFLAGS
686 XAW6_LIBS
687 XAW6_CFLAGS
688 PLATFORM_DARWIN_FALSE
689 PLATFORM_DARWIN_TRUE
690 PLATFORM_WIN32_FALSE
691 PLATFORM_WIN32_TRUE
692 LIBEXT
693 HAVE_STYLESHEETS_FALSE
694 HAVE_STYLESHEETS_TRUE
695 XSL_STYLESHEET
696 STYLESHEET_SRCDIR
697 XORG_SGML_PATH
698 HAVE_XSLTPROC_FALSE
699 HAVE_XSLTPROC_TRUE
700 XSLTPROC
701 HAVE_FOP_FALSE
702 HAVE_FOP_TRUE
703 FOP
704 HAVE_XMLTO_FALSE
705 HAVE_XMLTO_TRUE
706 HAVE_XMLTO_TEXT_FALSE
707 HAVE_XMLTO_TEXT_TRUE
708 XMLTO
709 ENABLE_SPECS_FALSE
710 ENABLE_SPECS_TRUE
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 MAN_SUBSTS
714 XORG_MAN_PAGE
715 ADMIN_MAN_DIR
716 DRIVER_MAN_DIR
717 MISC_MAN_DIR
718 FILE_MAN_DIR
719 LIB_MAN_DIR
720 APP_MAN_DIR
721 ADMIN_MAN_SUFFIX
722 DRIVER_MAN_SUFFIX
723 MISC_MAN_SUFFIX
724 FILE_MAN_SUFFIX
725 LIB_MAN_SUFFIX
726 APP_MAN_SUFFIX
727 INSTALL_CMD
728 PKG_CONFIG
729 CHANGELOG_CMD
730 STRICT_CFLAGS
731 CWARNFLAGS
732 BASE_CFLAGS
733 CPP
734 OTOOL64
735 OTOOL
736 LIPO
737 NMEDIT
738 DSYMUTIL
739 MANIFEST_TOOL
740 RANLIB
741 ac_ct_AR
742 AR
743 DLLTOOL
744 OBJDUMP
745 LN_S
746 NM
747 ac_ct_DUMPBIN
748 DUMPBIN
749 LD
750 FGREP
751 EGREP
752 GREP
753 SED
754 am__fastdepCC_FALSE
755 am__fastdepCC_TRUE
756 CCDEPMODE
757 am__nodep
758 AMDEPBACKSLASH
759 AMDEP_FALSE
760 AMDEP_TRUE
761 am__quote
762 am__include
763 DEPDIR
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 LIBTOOL
780 MAINT
781 MAINTAINER_MODE_FALSE
782 MAINTAINER_MODE_TRUE
783 am__untar
784 am__tar
785 AMTAR
786 am__leading_dot
787 SET_MAKE
788 AWK
789 mkdir_p
790 MKDIR_P
791 INSTALL_STRIP_PROGRAM
792 STRIP
793 install_sh
794 MAKEINFO
795 AUTOHEADER
796 AUTOMAKE
797 AUTOCONF
798 ACLOCAL
799 VERSION
800 PACKAGE
801 CYGPATH_W
802 am__isrc
803 INSTALL_DATA
804 INSTALL_SCRIPT
805 INSTALL_PROGRAM
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 localstatedir
826 sharedstatedir
827 sysconfdir
828 datadir
829 datarootdir
830 libexecdir
831 sbindir
832 bindir
833 program_transform_name
834 prefix
835 exec_prefix
836 PACKAGE_URL
837 PACKAGE_BUGREPORT
838 PACKAGE_STRING
839 PACKAGE_VERSION
840 PACKAGE_TARNAME
841 PACKAGE_NAME
842 PATH_SEPARATOR
843 SHELL'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 enable_maintainer_mode
848 enable_shared
849 enable_static
850 with_pic
851 enable_fast_install
852 enable_dependency_tracking
853 with_gnu_ld
854 with_sysroot
855 enable_libtool_lock
856 enable_selective_werror
857 enable_strict_compilation
858 enable_silent_rules
859 enable_specs
860 with_xmlto
861 with_fop
862 with_xsltproc
863 enable_xaw6
864 enable_xaw7
865 '
866       ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CPP
875 PKG_CONFIG
876 XMLTO
877 FOP
878 XSLTPROC
879 XAW6_CFLAGS
880 XAW6_LIBS
881 XAW7_CFLAGS
882 XAW7_LIBS'
883
884
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937   # If the previous option needs an argument, assign it.
938   if test -n "$ac_prev"; then
939     eval $ac_prev=\$ac_option
940     ac_prev=
941     continue
942   fi
943
944   case $ac_option in
945   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946   *=)   ac_optarg= ;;
947   *)    ac_optarg=yes ;;
948   esac
949
950   # Accept the important Cygnus configure options, so we can diagnose typos.
951
952   case $ac_dashdash$ac_option in
953   --)
954     ac_dashdash=yes ;;
955
956   -bindir | --bindir | --bindi | --bind | --bin | --bi)
957     ac_prev=bindir ;;
958   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959     bindir=$ac_optarg ;;
960
961   -build | --build | --buil | --bui | --bu)
962     ac_prev=build_alias ;;
963   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964     build_alias=$ac_optarg ;;
965
966   -cache-file | --cache-file | --cache-fil | --cache-fi \
967   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968     ac_prev=cache_file ;;
969   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971     cache_file=$ac_optarg ;;
972
973   --config-cache | -C)
974     cache_file=config.cache ;;
975
976   -datadir | --datadir | --datadi | --datad)
977     ac_prev=datadir ;;
978   -datadir=* | --datadir=* | --datadi=* | --datad=*)
979     datadir=$ac_optarg ;;
980
981   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982   | --dataroo | --dataro | --datar)
983     ac_prev=datarootdir ;;
984   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986     datarootdir=$ac_optarg ;;
987
988   -disable-* | --disable-*)
989     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992       as_fn_error $? "invalid feature name: $ac_useropt"
993     ac_useropt_orig=$ac_useropt
994     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995     case $ac_user_opts in
996       *"
997 "enable_$ac_useropt"
998 "*) ;;
999       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000          ac_unrecognized_sep=', ';;
1001     esac
1002     eval enable_$ac_useropt=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018       as_fn_error $? "invalid feature name: $ac_useropt"
1019     ac_useropt_orig=$ac_useropt
1020     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021     case $ac_user_opts in
1022       *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026          ac_unrecognized_sep=', ';;
1027     esac
1028     eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222       as_fn_error $? "invalid package name: $ac_useropt"
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=\$ac_optarg ;;
1233
1234   -without-* | --without-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=no ;;
1249
1250   --x)
1251     # Obsolete; use --with-x.
1252     with_x=yes ;;
1253
1254   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255   | --x-incl | --x-inc | --x-in | --x-i)
1256     ac_prev=x_includes ;;
1257   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259     x_includes=$ac_optarg ;;
1260
1261   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263     ac_prev=x_libraries ;;
1264   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266     x_libraries=$ac_optarg ;;
1267
1268   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information"
1270     ;;
1271
1272   *=*)
1273     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274     # Reject names that are not valid shell variable names.
1275     case $ac_envvar in #(
1276       '' | [0-9]* | *[!_$as_cr_alnum]* )
1277       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278     esac
1279     eval $ac_envvar=\$ac_optarg
1280     export $ac_envvar ;;
1281
1282   *)
1283     # FIXME: should be removed in autoconf 3.0.
1284     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288     ;;
1289
1290   esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295   as_fn_error $? "missing argument to $ac_option"
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299   case $enable_option_checking in
1300     no) ;;
1301     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303   esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308                 datadir sysconfdir sharedstatedir localstatedir includedir \
1309                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310                 libdir localedir mandir
1311 do
1312   eval ac_val=\$$ac_var
1313   # Remove trailing slashes.
1314   case $ac_val in
1315     */ )
1316       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317       eval $ac_var=\$ac_val;;
1318   esac
1319   # Be sure to have absolute directory names.
1320   case $ac_val in
1321     [\\/$]* | ?:[\\/]* )  continue;;
1322     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323   esac
1324   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336   if test "x$build_alias" = x; then
1337     cross_compiling=maybe
1338     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1339     If a cross compiler is detected then cross compile mode will be used" >&2
1340   elif test "x$build_alias" != "x$host_alias"; then
1341     cross_compiling=yes
1342   fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354   as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356   as_fn_error $? "pwd does not report name of working directory"
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361   ac_srcdir_defaulted=yes
1362   # Try the directory containing this script, then the parent directory.
1363   ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365          X"$as_myself" : 'X\(//\)[^/]' \| \
1366          X"$as_myself" : 'X\(//\)$' \| \
1367          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\/\)[^/].*/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\/\)$/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\).*/{
1382             s//\1/
1383             q
1384           }
1385           s/.*/./; q'`
1386   srcdir=$ac_confdir
1387   if test ! -r "$srcdir/$ac_unique_file"; then
1388     srcdir=..
1389   fi
1390 else
1391   ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400         pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403   srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413   eval ac_env_${ac_var}_value=\$${ac_var}
1414   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1417
1418 #
1419 # Report the --help message.
1420 #
1421 if test "$ac_init_help" = "long"; then
1422   # Omit some internal or obsolete options to make the list less imposing.
1423   # This message is too long to be a string in the A/UX 3.1 sh.
1424   cat <<_ACEOF
1425 \`configure' configures libXaw 1.0.11 to adapt to many kinds of systems.
1426
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE.  See below for descriptions of some of the useful variables.
1431
1432 Defaults for the options are specified in brackets.
1433
1434 Configuration:
1435   -h, --help              display this help and exit
1436       --help=short        display options specific to this package
1437       --help=recursive    display the short help of all the included packages
1438   -V, --version           display version information and exit
1439   -q, --quiet, --silent   do not print \`checking ...' messages
1440       --cache-file=FILE   cache test results in FILE [disabled]
1441   -C, --config-cache      alias for \`--cache-file=config.cache'
1442   -n, --no-create         do not create output files
1443       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1444
1445 Installation directories:
1446   --prefix=PREFIX         install architecture-independent files in PREFIX
1447                           [$ac_default_prefix]
1448   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1449                           [PREFIX]
1450
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1455
1456 For better control, use the options below.
1457
1458 Fine tuning of the installation directories:
1459   --bindir=DIR            user executables [EPREFIX/bin]
1460   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1461   --libexecdir=DIR        program executables [EPREFIX/libexec]
1462   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1463   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1464   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1465   --libdir=DIR            object code libraries [EPREFIX/lib]
1466   --includedir=DIR        C header files [PREFIX/include]
1467   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1468   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1469   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1470   --infodir=DIR           info documentation [DATAROOTDIR/info]
1471   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1472   --mandir=DIR            man documentation [DATAROOTDIR/man]
1473   --docdir=DIR            documentation root [DATAROOTDIR/doc/libXaw]
1474   --htmldir=DIR           html documentation [DOCDIR]
1475   --dvidir=DIR            dvi documentation [DOCDIR]
1476   --pdfdir=DIR            pdf documentation [DOCDIR]
1477   --psdir=DIR             ps documentation [DOCDIR]
1478 _ACEOF
1479
1480   cat <<\_ACEOF
1481
1482 Program names:
1483   --program-prefix=PREFIX            prepend PREFIX to installed program names
1484   --program-suffix=SUFFIX            append SUFFIX to installed program names
1485   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
1487 System types:
1488   --build=BUILD     configure for building on BUILD [guessed]
1489   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494   case $ac_init_help in
1495      short | recursive ) echo "Configuration of libXaw 1.0.11:";;
1496    esac
1497   cat <<\_ACEOF
1498
1499 Optional Features:
1500   --disable-option-checking  ignore unrecognized --enable/--with options
1501   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503   --enable-maintainer-mode  enable make rules and dependencies not useful
1504                           (and sometimes confusing) to the casual installer
1505   --enable-shared[=PKGS]  build shared libraries [default=yes]
1506   --enable-static[=PKGS]  build static libraries [default=yes]
1507   --enable-fast-install[=PKGS]
1508                           optimize for fast installation [default=yes]
1509   --disable-dependency-tracking  speeds up one-time build
1510   --enable-dependency-tracking   do not reject slow dependency extractors
1511   --disable-libtool-lock  avoid locking (might break parallel builds)
1512   --disable-selective-werror
1513                           Turn off selective compiler errors. (default:
1514                           enabled)
1515   --enable-strict-compilation
1516                           Enable all warnings from compiler and make them
1517                           errors (default: disabled)
1518   --enable-silent-rules          less verbose build output (undo: `make V=1')
1519   --disable-silent-rules         verbose build output (undo: `make V=0')
1520   --enable-specs          Enable building the specs (default: yes)
1521   --disable-xaw6          Disable building of libXaw.so.6
1522   --disable-xaw7          Disable building of libXaw.so.7
1523
1524 Optional Packages:
1525   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1528                           both]
1529   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530   --with-sysroot=DIR Search for dependent libraries within DIR
1531                         (or the compiler's sysroot if not specified).
1532   --with-xmlto            Use xmlto to regenerate documentation (default:
1533                           auto)
1534   --with-fop              Use fop to regenerate documentation (default: auto)
1535   --with-xsltproc         Use xsltproc for the transformation of XML documents
1536                           (default: auto)
1537
1538 Some influential environment variables:
1539   CC          C compiler command
1540   CFLAGS      C compiler flags
1541   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1542               nonstandard directory <lib dir>
1543   LIBS        libraries to pass to the linker, e.g. -l<library>
1544   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545               you have headers in a nonstandard directory <include dir>
1546   CPP         C preprocessor
1547   PKG_CONFIG  path to pkg-config utility
1548   XMLTO       Path to xmlto command
1549   FOP         Path to fop command
1550   XSLTPROC    Path to xsltproc command
1551   XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config
1552   XAW6_LIBS   linker flags for XAW6, overriding pkg-config
1553   XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
1554   XAW7_LIBS   linker flags for XAW7, overriding pkg-config
1555
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1558
1559 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565   # If there are subdirs, report their specific --help.
1566   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567     test -d "$ac_dir" ||
1568       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569       continue
1570     ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576   # A ".." for each directory in $ac_dir_suffix.
1577   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578   case $ac_top_builddir_sub in
1579   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581   esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589   .)  # We are building in place.
1590     ac_srcdir=.
1591     ac_top_srcdir=$ac_top_builddir_sub
1592     ac_abs_top_srcdir=$ac_pwd ;;
1593   [\\/]* | ?:[\\/]* )  # Absolute name.
1594     ac_srcdir=$srcdir$ac_dir_suffix;
1595     ac_top_srcdir=$srcdir
1596     ac_abs_top_srcdir=$srcdir ;;
1597   *) # Relative name.
1598     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599     ac_top_srcdir=$ac_top_build_prefix$srcdir
1600     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604     cd "$ac_dir" || { ac_status=$?; continue; }
1605     # Check for guested configure.
1606     if test -f "$ac_srcdir/configure.gnu"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609     elif test -f "$ac_srcdir/configure"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure" --help=recursive
1612     else
1613       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614     fi || ac_status=$?
1615     cd "$ac_pwd" || { ac_status=$?; break; }
1616   done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621   cat <<\_ACEOF
1622 libXaw configure 1.0.11
1623 generated by GNU Autoconf 2.68
1624
1625 Copyright (C) 2010 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629   exit
1630 fi
1631
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1635
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   rm -f conftest.$ac_objext
1643   if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646   *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650   (eval "$ac_compile") 2>conftest.err
1651   ac_status=$?
1652   if test -s conftest.err; then
1653     grep -v '^ *+' conftest.err >conftest.er1
1654     cat conftest.er1 >&5
1655     mv -f conftest.er1 conftest.err
1656   fi
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } && {
1659          test -z "$ac_c_werror_flag" ||
1660          test ! -s conftest.err
1661        } && test -s conftest.$ac_objext; then :
1662   ac_retval=0
1663 else
1664   $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667         ac_retval=1
1668 fi
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_compile
1673
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_link ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   rm -f conftest.$ac_objext conftest$ac_exeext
1681   if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_link") 2>conftest.err
1689   ac_status=$?
1690   if test -s conftest.err; then
1691     grep -v '^ *+' conftest.err >conftest.er1
1692     cat conftest.er1 >&5
1693     mv -f conftest.er1 conftest.err
1694   fi
1695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696   test $ac_status = 0; } && {
1697          test -z "$ac_c_werror_flag" ||
1698          test ! -s conftest.err
1699        } && test -s conftest$ac_exeext && {
1700          test "$cross_compiling" = yes ||
1701          $as_test_x conftest$ac_exeext
1702        }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708         ac_retval=1
1709 fi
1710   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712   # interfere with the next link command; also delete a directory that is
1713   # left behind by Apple's compiler.  We do this before executing the actions.
1714   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716   as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1725 {
1726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730   $as_echo_n "(cached) " >&6
1731 else
1732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h.  */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738   eval "$3=yes"
1739 else
1740   eval "$3=no"
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 fi
1744 eval ac_res=\$$3
1745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_compile
1750
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_cpp ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } > conftest.i && {
1773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774          test ! -s conftest.err
1775        }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781     ac_retval=1
1782 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_cpp
1787
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1792 ac_fn_c_try_run ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798   *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802   (eval "$ac_link") 2>&5
1803   ac_status=$?
1804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806   { { case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_try") 2>&5
1813   ac_status=$?
1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815   test $ac_status = 0; }; }; then :
1816   ac_retval=0
1817 else
1818   $as_echo "$as_me: program exited with status $ac_status" >&5
1819        $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822        ac_retval=$ac_status
1823 fi
1824   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_run
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h.  */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1845 #define $2 innocuous_$2
1846
1847 /* System header to define __stub macros and hopefully few prototypes,
1848     which can conflict with char $2 (); below.
1849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850     <limits.h> exists even on freestanding compilers.  */
1851
1852 #ifdef __STDC__
1853 # include <limits.h>
1854 #else
1855 # include <assert.h>
1856 #endif
1857
1858 #undef $2
1859
1860 /* Override any GCC internal prototype to avoid an error.
1861    Use char because int might match the return type of a GCC
1862    builtin and then its argument prototype would still apply.  */
1863 #ifdef __cplusplus
1864 extern "C"
1865 #endif
1866 char $2 ();
1867 /* The GNU C library defines this for functions which it implements
1868     to always fail with ENOSYS.  Some functions are actually named
1869     something starting with __ and the normal name is an alias.  */
1870 #if defined __stub_$2 || defined __stub___$2
1871 choke me
1872 #endif
1873
1874 int
1875 main ()
1876 {
1877 return $2 ();
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_link "$LINENO"; then :
1883   eval "$3=yes"
1884 else
1885   eval "$3=no"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext \
1888     conftest$ac_exeext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_func
1896
1897 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1898 # ---------------------------------------------
1899 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1900 # accordingly.
1901 ac_fn_c_check_decl ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   as_decl_name=`echo $2|sed 's/ *(.*//'`
1905   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1907 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1908 if eval \${$3+:} false; then :
1909   $as_echo_n "(cached) " >&6
1910 else
1911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 $4
1914 int
1915 main ()
1916 {
1917 #ifndef $as_decl_name
1918 #ifdef __cplusplus
1919   (void) $as_decl_use;
1920 #else
1921   (void) $as_decl_name;
1922 #endif
1923 #endif
1924
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930   eval "$3=yes"
1931 else
1932   eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 fi
1936 eval ac_res=\$$3
1937                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941 } # ac_fn_c_check_decl
1942
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1947 # accordingly.
1948 ac_fn_c_check_header_mongrel ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   if eval \${$3+:} false; then :
1952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955   $as_echo_n "(cached) " >&6
1956 fi
1957 eval ac_res=\$$3
1958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 else
1961   # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   ac_header_compiler=yes
1971 else
1972   ac_header_compiler=no
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1977
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h.  */
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986   ac_header_preproc=yes
1987 else
1988   ac_header_preproc=no
1989 fi
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1993
1994 # So?  What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996   yes:no: )
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001     ;;
2002   no:yes:* )
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ---------------------------------------------------------------------- ##
2014 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2015 ## ---------------------------------------------------------------------- ##"
2016      ) | sed "s/^/$as_me: WARNING:     /" >&2
2017     ;;
2018 esac
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=\$ac_header_compiler"
2025 fi
2026 eval ac_res=\$$3
2027                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 fi
2030   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032 } # ac_fn_c_check_header_mongrel
2033 cat >config.log <<_ACEOF
2034 This file contains any messages produced by compilers while
2035 running configure, to aid debugging if configure makes a mistake.
2036
2037 It was created by libXaw $as_me 1.0.11, which was
2038 generated by GNU Autoconf 2.68.  Invocation command line was
2039
2040   $ $0 $@
2041
2042 _ACEOF
2043 exec 5>>config.log
2044 {
2045 cat <<_ASUNAME
2046 ## --------- ##
2047 ## Platform. ##
2048 ## --------- ##
2049
2050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055
2056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2058
2059 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2060 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2063 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2064 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2065 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2066
2067 _ASUNAME
2068
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072   IFS=$as_save_IFS
2073   test -z "$as_dir" && as_dir=.
2074     $as_echo "PATH: $as_dir"
2075   done
2076 IFS=$as_save_IFS
2077
2078 } >&5
2079
2080 cat >&5 <<_ACEOF
2081
2082
2083 ## ----------- ##
2084 ## Core tests. ##
2085 ## ----------- ##
2086
2087 _ACEOF
2088
2089
2090 # Keep a trace of the command line.
2091 # Strip out --no-create and --no-recursion so they do not pile up.
2092 # Strip out --silent because we don't want to record it for future runs.
2093 # Also quote any args containing shell meta-characters.
2094 # Make two passes to allow for proper duplicate-argument suppression.
2095 ac_configure_args=
2096 ac_configure_args0=
2097 ac_configure_args1=
2098 ac_must_keep_next=false
2099 for ac_pass in 1 2
2100 do
2101   for ac_arg
2102   do
2103     case $ac_arg in
2104     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106     | -silent | --silent | --silen | --sile | --sil)
2107       continue ;;
2108     *\'*)
2109       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2110     esac
2111     case $ac_pass in
2112     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113     2)
2114       as_fn_append ac_configure_args1 " '$ac_arg'"
2115       if test $ac_must_keep_next = true; then
2116         ac_must_keep_next=false # Got value, back to normal.
2117       else
2118         case $ac_arg in
2119           *=* | --config-cache | -C | -disable-* | --disable-* \
2120           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122           | -with-* | --with-* | -without-* | --without-* | --x)
2123             case "$ac_configure_args0 " in
2124               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2125             esac
2126             ;;
2127           -* ) ac_must_keep_next=true ;;
2128         esac
2129       fi
2130       as_fn_append ac_configure_args " '$ac_arg'"
2131       ;;
2132     esac
2133   done
2134 done
2135 { ac_configure_args0=; unset ac_configure_args0;}
2136 { ac_configure_args1=; unset ac_configure_args1;}
2137
2138 # When interrupted or exit'd, cleanup temporary files, and complete
2139 # config.log.  We remove comments because anyway the quotes in there
2140 # would cause problems or look ugly.
2141 # WARNING: Use '\'' to represent an apostrophe within the trap.
2142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 trap 'exit_status=$?
2144   # Save into config.log some information that might help in debugging.
2145   {
2146     echo
2147
2148     $as_echo "## ---------------- ##
2149 ## Cache variables. ##
2150 ## ---------------- ##"
2151     echo
2152     # The following way of writing the cache mishandles newlines in values,
2153 (
2154   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155     eval ac_val=\$$ac_var
2156     case $ac_val in #(
2157     *${as_nl}*)
2158       case $ac_var in #(
2159       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2161       esac
2162       case $ac_var in #(
2163       _ | IFS | as_nl) ;; #(
2164       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165       *) { eval $ac_var=; unset $ac_var;} ;;
2166       esac ;;
2167     esac
2168   done
2169   (set) 2>&1 |
2170     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171     *${as_nl}ac_space=\ *)
2172       sed -n \
2173         "s/'\''/'\''\\\\'\'''\''/g;
2174           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2175       ;; #(
2176     *)
2177       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178       ;;
2179     esac |
2180     sort
2181 )
2182     echo
2183
2184     $as_echo "## ----------------- ##
2185 ## Output variables. ##
2186 ## ----------------- ##"
2187     echo
2188     for ac_var in $ac_subst_vars
2189     do
2190       eval ac_val=\$$ac_var
2191       case $ac_val in
2192       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193       esac
2194       $as_echo "$ac_var='\''$ac_val'\''"
2195     done | sort
2196     echo
2197
2198     if test -n "$ac_subst_files"; then
2199       $as_echo "## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##"
2202       echo
2203       for ac_var in $ac_subst_files
2204       do
2205         eval ac_val=\$$ac_var
2206         case $ac_val in
2207         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208         esac
2209         $as_echo "$ac_var='\''$ac_val'\''"
2210       done | sort
2211       echo
2212     fi
2213
2214     if test -s confdefs.h; then
2215       $as_echo "## ----------- ##
2216 ## confdefs.h. ##
2217 ## ----------- ##"
2218       echo
2219       cat confdefs.h
2220       echo
2221     fi
2222     test "$ac_signal" != 0 &&
2223       $as_echo "$as_me: caught signal $ac_signal"
2224     $as_echo "$as_me: exit $exit_status"
2225   } >&5
2226   rm -f core *.core core.conftest.* &&
2227     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2228     exit $exit_status
2229 ' 0
2230 for ac_signal in 1 2 13 15; do
2231   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2232 done
2233 ac_signal=0
2234
2235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2236 rm -f -r conftest* confdefs.h
2237
2238 $as_echo "/* confdefs.h */" > confdefs.h
2239
2240 # Predefined preprocessor variables.
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2244 _ACEOF
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2264 _ACEOF
2265
2266
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2269 ac_site_file1=NONE
2270 ac_site_file2=NONE
2271 if test -n "$CONFIG_SITE"; then
2272   # We do not want a PATH search for config.site.
2273   case $CONFIG_SITE in #((
2274     -*)  ac_site_file1=./$CONFIG_SITE;;
2275     */*) ac_site_file1=$CONFIG_SITE;;
2276     *)   ac_site_file1=./$CONFIG_SITE;;
2277   esac
2278 elif test "x$prefix" != xNONE; then
2279   ac_site_file1=$prefix/share/config.site
2280   ac_site_file2=$prefix/etc/config.site
2281 else
2282   ac_site_file1=$ac_default_prefix/share/config.site
2283   ac_site_file2=$ac_default_prefix/etc/config.site
2284 fi
2285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 do
2287   test "x$ac_site_file" = xNONE && continue
2288   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291     sed 's/^/| /' "$ac_site_file" >&5
2292     . "$ac_site_file" \
2293       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 as_fn_error $? "failed to load site script $ac_site_file
2296 See \`config.log' for more details" "$LINENO" 5; }
2297   fi
2298 done
2299
2300 if test -r "$cache_file"; then
2301   # Some versions of bash will fail to source /dev/null (special files
2302   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2303   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305 $as_echo "$as_me: loading cache $cache_file" >&6;}
2306     case $cache_file in
2307       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308       *)                      . "./$cache_file";;
2309     esac
2310   fi
2311 else
2312   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313 $as_echo "$as_me: creating cache $cache_file" >&6;}
2314   >$cache_file
2315 fi
2316
2317 # Check that the precious variables saved in the cache have kept the same
2318 # value.
2319 ac_cache_corrupted=false
2320 for ac_var in $ac_precious_vars; do
2321   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322   eval ac_new_set=\$ac_env_${ac_var}_set
2323   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324   eval ac_new_val=\$ac_env_${ac_var}_value
2325   case $ac_old_set,$ac_new_set in
2326     set,)
2327       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329       ac_cache_corrupted=: ;;
2330     ,set)
2331       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333       ac_cache_corrupted=: ;;
2334     ,);;
2335     *)
2336       if test "x$ac_old_val" != "x$ac_new_val"; then
2337         # differences in whitespace do not lead to failure.
2338         ac_old_val_w=`echo x $ac_old_val`
2339         ac_new_val_w=`echo x $ac_new_val`
2340         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343           ac_cache_corrupted=:
2344         else
2345           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347           eval $ac_var=\$ac_old_val
2348         fi
2349         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2350 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2351         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2352 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2353       fi;;
2354   esac
2355   # Pass precious variables to config.status.
2356   if test "$ac_new_set" = set; then
2357     case $ac_new_val in
2358     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2359     *) ac_arg=$ac_var=$ac_new_val ;;
2360     esac
2361     case " $ac_configure_args " in
2362       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2363       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2364     esac
2365   fi
2366 done
2367 if $ac_cache_corrupted; then
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2373 fi
2374 ## -------------------- ##
2375 ## Main body of script. ##
2376 ## -------------------- ##
2377
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383
2384
2385
2386 ac_config_headers="$ac_config_headers config.h"
2387
2388
2389 # Initialize Automake
2390 am__api_version='1.11'
2391
2392 ac_aux_dir=
2393 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2394   if test -f "$ac_dir/install-sh"; then
2395     ac_aux_dir=$ac_dir
2396     ac_install_sh="$ac_aux_dir/install-sh -c"
2397     break
2398   elif test -f "$ac_dir/install.sh"; then
2399     ac_aux_dir=$ac_dir
2400     ac_install_sh="$ac_aux_dir/install.sh -c"
2401     break
2402   elif test -f "$ac_dir/shtool"; then
2403     ac_aux_dir=$ac_dir
2404     ac_install_sh="$ac_aux_dir/shtool install -c"
2405     break
2406   fi
2407 done
2408 if test -z "$ac_aux_dir"; then
2409   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2410 fi
2411
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2419
2420
2421 # Find a good install program.  We prefer a C program (faster),
2422 # so one script is as good as another.  But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2427 # AIX /bin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if ${ac_cv_path_install+:} false; then :
2439   $as_echo_n "(cached) " >&6
2440 else
2441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446     # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448   ./ | .// | /[cC]/* | \
2449   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2451   /usr/ucb/* ) ;;
2452   *)
2453     # OSF1 and SCO ODT 3.0 have their own names for install.
2454     # Don't use installbsd from OSF since it installs stuff as root
2455     # by default.
2456     for ac_prog in ginstall scoinst install; do
2457       for ac_exec_ext in '' $ac_executable_extensions; do
2458         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459           if test $ac_prog = install &&
2460             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461             # AIX install.  It has an incompatible calling convention.
2462             :
2463           elif test $ac_prog = install &&
2464             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465             # program-specific install script used by HP pwplus--don't use.
2466             :
2467           else
2468             rm -rf conftest.one conftest.two conftest.dir
2469             echo one > conftest.one
2470             echo two > conftest.two
2471             mkdir conftest.dir
2472             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473               test -s conftest.one && test -s conftest.two &&
2474               test -s conftest.dir/conftest.one &&
2475               test -s conftest.dir/conftest.two
2476             then
2477               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478               break 3
2479             fi
2480           fi
2481         fi
2482       done
2483     done
2484     ;;
2485 esac
2486
2487   done
2488 IFS=$as_save_IFS
2489
2490 rm -rf conftest.one conftest.two conftest.dir
2491
2492 fi
2493   if test "${ac_cv_path_install+set}" = set; then
2494     INSTALL=$ac_cv_path_install
2495   else
2496     # As a last resort, use the slow shell script.  Don't cache a
2497     # value for INSTALL within a source directory, because that will
2498     # break other packages using the cache if that directory is
2499     # removed, or if the value is a relative name.
2500     INSTALL=$ac_install_sh
2501   fi
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2505
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2515 $as_echo_n "checking whether build environment is sane... " >&6; }
2516 # Just in case
2517 sleep 1
2518 echo timestamp > conftest.file
2519 # Reject unsafe characters in $srcdir or the absolute working directory
2520 # name.  Accept space and tab only in the latter.
2521 am_lf='
2522 '
2523 case `pwd` in
2524   *[\\\"\#\$\&\'\`$am_lf]*)
2525     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2526 esac
2527 case $srcdir in
2528   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2529     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2530 esac
2531
2532 # Do `set' in a subshell so we don't clobber the current shell's
2533 # arguments.  Must try -L first in case configure is actually a
2534 # symlink; some systems play weird games with the mod time of symlinks
2535 # (eg FreeBSD returns the mod time of the symlink's containing
2536 # directory).
2537 if (
2538    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2539    if test "$*" = "X"; then
2540       # -L didn't work.
2541       set X `ls -t "$srcdir/configure" conftest.file`
2542    fi
2543    rm -f conftest.file
2544    if test "$*" != "X $srcdir/configure conftest.file" \
2545       && test "$*" != "X conftest.file $srcdir/configure"; then
2546
2547       # If neither matched, then we have a broken ls.  This can happen
2548       # if, for instance, CONFIG_SHELL is bash and it inherits a
2549       # broken ls alias from the environment.  This has actually
2550       # happened.  Such a system could not be considered "sane".
2551       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2552 alias in your environment" "$LINENO" 5
2553    fi
2554
2555    test "$2" = conftest.file
2556    )
2557 then
2558    # Ok.
2559    :
2560 else
2561    as_fn_error $? "newly created file is older than distributed files!
2562 Check your system clock" "$LINENO" 5
2563 fi
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 test "$program_prefix" != NONE &&
2567   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2575
2576 # expand $ac_aux_dir to an absolute path
2577 am_aux_dir=`cd $ac_aux_dir && pwd`
2578
2579 if test x"${MISSING+set}" != xset; then
2580   case $am_aux_dir in
2581   *\ * | *\     *)
2582     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2583   *)
2584     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2585   esac
2586 fi
2587 # Use eval to expand $SHELL
2588 if eval "$MISSING --run true"; then
2589   am_missing_run="$MISSING --run "
2590 else
2591   am_missing_run=
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2593 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2594 fi
2595
2596 if test x"${install_sh}" != xset; then
2597   case $am_aux_dir in
2598   *\ * | *\     *)
2599     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2600   *)
2601     install_sh="\${SHELL} $am_aux_dir/install-sh"
2602   esac
2603 fi
2604
2605 # Installed binaries are usually stripped using `strip' when the user
2606 # run `make install-strip'.  However `strip' might not be the right
2607 # tool to use in cross-compilation environments, therefore Automake
2608 # will honor the `STRIP' environment variable to overrule this program.
2609 if test "$cross_compiling" != no; then
2610   if test -n "$ac_tool_prefix"; then
2611   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_STRIP+:} false; then :
2616   $as_echo_n "(cached) " >&6
2617 else
2618   if test -n "$STRIP"; then
2619   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626     for ac_exec_ext in '' $ac_executable_extensions; do
2627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633   done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 $as_echo "$STRIP" >&6; }
2642 else
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 fi
2649 if test -z "$ac_cv_prog_STRIP"; then
2650   ac_ct_STRIP=$STRIP
2651   # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2656   $as_echo_n "(cached) " >&6
2657 else
2658   if test -n "$ac_ct_STRIP"; then
2659   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666     for ac_exec_ext in '' $ac_executable_extensions; do
2667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668     ac_cv_prog_ac_ct_STRIP="strip"
2669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673   done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2679 if test -n "$ac_ct_STRIP"; then
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2681 $as_echo "$ac_ct_STRIP" >&6; }
2682 else
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687   if test "x$ac_ct_STRIP" = x; then
2688     STRIP=":"
2689   else
2690     case $cross_compiling:$ac_tool_warned in
2691 yes:)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696     STRIP=$ac_ct_STRIP
2697   fi
2698 else
2699   STRIP="$ac_cv_prog_STRIP"
2700 fi
2701
2702 fi
2703 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2704
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2706 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2707 if test -z "$MKDIR_P"; then
2708   if ${ac_cv_path_mkdir+:} false; then :
2709   $as_echo_n "(cached) " >&6
2710 else
2711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716     for ac_prog in mkdir gmkdir; do
2717          for ac_exec_ext in '' $ac_executable_extensions; do
2718            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2719            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2720              'mkdir (GNU coreutils) '* | \
2721              'mkdir (coreutils) '* | \
2722              'mkdir (fileutils) '4.1*)
2723                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2724                break 3;;
2725            esac
2726          done
2727        done
2728   done
2729 IFS=$as_save_IFS
2730
2731 fi
2732
2733   test -d ./--version && rmdir ./--version
2734   if test "${ac_cv_path_mkdir+set}" = set; then
2735     MKDIR_P="$ac_cv_path_mkdir -p"
2736   else
2737     # As a last resort, use the slow shell script.  Don't cache a
2738     # value for MKDIR_P within a source directory, because that will
2739     # break other packages using the cache if that directory is
2740     # removed, or if the value is a relative name.
2741     MKDIR_P="$ac_install_sh -d"
2742   fi
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2745 $as_echo "$MKDIR_P" >&6; }
2746
2747 mkdir_p="$MKDIR_P"
2748 case $mkdir_p in
2749   [\\/$]* | ?:[\\/]*) ;;
2750   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2751 esac
2752
2753 for ac_prog in gawk mawk nawk awk
2754 do
2755   # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_AWK+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   if test -n "$AWK"; then
2763   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768   IFS=$as_save_IFS
2769   test -z "$as_dir" && as_dir=.
2770     for ac_exec_ext in '' $ac_executable_extensions; do
2771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772     ac_cv_prog_AWK="$ac_prog"
2773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774     break 2
2775   fi
2776 done
2777   done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 AWK=$ac_cv_prog_AWK
2783 if test -n "$AWK"; then
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2786 else
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791
2792   test -n "$AWK" && break
2793 done
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797 set x ${MAKE-make}
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800   $as_echo_n "(cached) " >&6
2801 else
2802   cat >conftest.make <<\_ACEOF
2803 SHELL = /bin/sh
2804 all:
2805         @echo '@@@%%%=$(MAKE)=@@@%%%'
2806 _ACEOF
2807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809   *@@@%%%=?*=@@@%%%*)
2810     eval ac_cv_prog_make_${ac_make}_set=yes;;
2811   *)
2812     eval ac_cv_prog_make_${ac_make}_set=no;;
2813 esac
2814 rm -f conftest.make
2815 fi
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2819   SET_MAKE=
2820 else
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823   SET_MAKE="MAKE=${MAKE-make}"
2824 fi
2825
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2829   am__leading_dot=.
2830 else
2831   am__leading_dot=_
2832 fi
2833 rmdir .tst 2>/dev/null
2834
2835 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2836   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2837   # is not polluted with repeated "-I."
2838   am__isrc=' -I$(srcdir)'
2839   # test to see if srcdir already configured
2840   if test -f $srcdir/config.status; then
2841     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2842   fi
2843 fi
2844
2845 # test whether we have cygpath
2846 if test -z "$CYGPATH_W"; then
2847   if (cygpath --version) >/dev/null 2>/dev/null; then
2848     CYGPATH_W='cygpath -w'
2849   else
2850     CYGPATH_W=echo
2851   fi
2852 fi
2853
2854
2855 # Define the identity of the package.
2856  PACKAGE='libXaw'
2857  VERSION='1.0.11'
2858
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE "$PACKAGE"
2862 _ACEOF
2863
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define VERSION "$VERSION"
2867 _ACEOF
2868
2869 # Some tools Automake needs.
2870
2871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2872
2873
2874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2875
2876
2877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2878
2879
2880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2881
2882
2883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2884
2885 # We need awk for the "check" target.  The system "awk" is bad on
2886 # some platforms.
2887 # Always define AMTAR for backward compatibility.
2888
2889 AMTAR=${AMTAR-"${am_missing_run}tar"}
2890
2891 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2892
2893
2894
2895
2896
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2899 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2900     # Check whether --enable-maintainer-mode was given.
2901 if test "${enable_maintainer_mode+set}" = set; then :
2902   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2903 else
2904   USE_MAINTAINER_MODE=no
2905 fi
2906
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2908 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2909    if test $USE_MAINTAINER_MODE = yes; then
2910   MAINTAINER_MODE_TRUE=
2911   MAINTAINER_MODE_FALSE='#'
2912 else
2913   MAINTAINER_MODE_TRUE='#'
2914   MAINTAINER_MODE_FALSE=
2915 fi
2916
2917   MAINT=$MAINTAINER_MODE_TRUE
2918
2919
2920
2921 # Initialize libtool
2922 case `pwd` in
2923   *\ * | *\     *)
2924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2925 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2926 esac
2927
2928
2929
2930 macro_version='2.4.2'
2931 macro_revision='1.3337'
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945 ltmain="$ac_aux_dir/ltmain.sh"
2946
2947 # Make sure we can run config.sub.
2948 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2949   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2952 $as_echo_n "checking build system type... " >&6; }
2953 if ${ac_cv_build+:} false; then :
2954   $as_echo_n "(cached) " >&6
2955 else
2956   ac_build_alias=$build_alias
2957 test "x$ac_build_alias" = x &&
2958   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2959 test "x$ac_build_alias" = x &&
2960   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2961 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2962   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2963
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2966 $as_echo "$ac_cv_build" >&6; }
2967 case $ac_cv_build in
2968 *-*-*) ;;
2969 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2970 esac
2971 build=$ac_cv_build
2972 ac_save_IFS=$IFS; IFS='-'
2973 set x $ac_cv_build
2974 shift
2975 build_cpu=$1
2976 build_vendor=$2
2977 shift; shift
2978 # Remember, the first character of IFS is used to create $*,
2979 # except with old shells:
2980 build_os=$*
2981 IFS=$ac_save_IFS
2982 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2983
2984
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2986 $as_echo_n "checking host system type... " >&6; }
2987 if ${ac_cv_host+:} false; then :
2988   $as_echo_n "(cached) " >&6
2989 else
2990   if test "x$host_alias" = x; then
2991   ac_cv_host=$ac_cv_build
2992 else
2993   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2994     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2995 fi
2996
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2999 $as_echo "$ac_cv_host" >&6; }
3000 case $ac_cv_host in
3001 *-*-*) ;;
3002 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3003 esac
3004 host=$ac_cv_host
3005 ac_save_IFS=$IFS; IFS='-'
3006 set x $ac_cv_host
3007 shift
3008 host_cpu=$1
3009 host_vendor=$2
3010 shift; shift
3011 # Remember, the first character of IFS is used to create $*,
3012 # except with old shells:
3013 host_os=$*
3014 IFS=$ac_save_IFS
3015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3016
3017
3018 # Backslashify metacharacters that are still active within
3019 # double-quoted strings.
3020 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3021
3022 # Same as above, but do not quote variable references.
3023 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3024
3025 # Sed substitution to delay expansion of an escaped shell variable in a
3026 # double_quote_subst'ed string.
3027 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3028
3029 # Sed substitution to delay expansion of an escaped single quote.
3030 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3031
3032 # Sed substitution to avoid accidental globbing in evaled expressions
3033 no_glob_subst='s/\*/\\\*/g'
3034
3035 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3036 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3037 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3038
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3040 $as_echo_n "checking how to print strings... " >&6; }
3041 # Test print first, because it will be a builtin if present.
3042 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3043    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3044   ECHO='print -r --'
3045 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3046   ECHO='printf %s\n'
3047 else
3048   # Use this function as a fallback that always works.
3049   func_fallback_echo ()
3050   {
3051     eval 'cat <<_LTECHO_EOF
3052 $1
3053 _LTECHO_EOF'
3054   }
3055   ECHO='func_fallback_echo'
3056 fi
3057
3058 # func_echo_all arg...
3059 # Invoke $ECHO with all args, space-separated.
3060 func_echo_all ()
3061 {
3062     $ECHO ""
3063 }
3064
3065 case "$ECHO" in
3066   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3067 $as_echo "printf" >&6; } ;;
3068   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3069 $as_echo "print -r" >&6; } ;;
3070   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3071 $as_echo "cat" >&6; } ;;
3072 esac
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087 DEPDIR="${am__leading_dot}deps"
3088
3089 ac_config_commands="$ac_config_commands depfiles"
3090
3091
3092 am_make=${MAKE-make}
3093 cat > confinc << 'END'
3094 am__doit:
3095         @echo this is the am__doit target
3096 .PHONY: am__doit
3097 END
3098 # If we don't find an include directive, just comment out the code.
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3100 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3101 am__include="#"
3102 am__quote=
3103 _am_result=none
3104 # First try GNU make style include.
3105 echo "include confinc" > confmf
3106 # Ignore all kinds of additional output from `make'.
3107 case `$am_make -s -f confmf 2> /dev/null` in #(
3108 *the\ am__doit\ target*)
3109   am__include=include
3110   am__quote=
3111   _am_result=GNU
3112   ;;
3113 esac
3114 # Now try BSD make style include.
3115 if test "$am__include" = "#"; then
3116    echo '.include "confinc"' > confmf
3117    case `$am_make -s -f confmf 2> /dev/null` in #(
3118    *the\ am__doit\ target*)
3119      am__include=.include
3120      am__quote="\""
3121      _am_result=BSD
3122      ;;
3123    esac
3124 fi
3125
3126
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3128 $as_echo "$_am_result" >&6; }
3129 rm -f confinc confmf
3130
3131 # Check whether --enable-dependency-tracking was given.
3132 if test "${enable_dependency_tracking+set}" = set; then :
3133   enableval=$enable_dependency_tracking;
3134 fi
3135
3136 if test "x$enable_dependency_tracking" != xno; then
3137   am_depcomp="$ac_aux_dir/depcomp"
3138   AMDEPBACKSLASH='\'
3139   am__nodep='_no'
3140 fi
3141  if test "x$enable_dependency_tracking" != xno; then
3142   AMDEP_TRUE=
3143   AMDEP_FALSE='#'
3144 else
3145   AMDEP_TRUE='#'
3146   AMDEP_FALSE=
3147 fi
3148
3149
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155 if test -n "$ac_tool_prefix"; then
3156   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161   $as_echo_n "(cached) " >&6
3162 else
3163   if test -n "$CC"; then
3164   ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169   IFS=$as_save_IFS
3170   test -z "$as_dir" && as_dir=.
3171     for ac_exec_ext in '' $ac_executable_extensions; do
3172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175     break 2
3176   fi
3177 done
3178   done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 fi
3194 if test -z "$ac_cv_prog_CC"; then
3195   ac_ct_CC=$CC
3196   # Extract the first word of "gcc", so it can be a program name with args.
3197 set dummy gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3201   $as_echo_n "(cached) " >&6
3202 else
3203   if test -n "$ac_ct_CC"; then
3204   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211     for ac_exec_ext in '' $ac_executable_extensions; do
3212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213     ac_cv_prog_ac_ct_CC="gcc"
3214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218   done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232   if test "x$ac_ct_CC" = x; then
3233     CC=""
3234   else
3235     case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241     CC=$ac_ct_CC
3242   fi
3243 else
3244   CC="$ac_cv_prog_CC"
3245 fi
3246
3247 if test -z "$CC"; then
3248           if test -n "$ac_tool_prefix"; then
3249     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_CC+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if test -n "$CC"; then
3257   ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264     for ac_exec_ext in '' $ac_executable_extensions; do
3265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266     ac_cv_prog_CC="${ac_tool_prefix}cc"
3267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271   done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286   fi
3287 fi
3288 if test -z "$CC"; then
3289   # Extract the first word of "cc", so it can be a program name with args.
3290 set dummy cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_CC+:} false; then :
3294   $as_echo_n "(cached) " >&6
3295 else
3296   if test -n "$CC"; then
3297   ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299   ac_prog_rejected=no
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305     for ac_exec_ext in '' $ac_executable_extensions; do
3306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308        ac_prog_rejected=yes
3309        continue
3310      fi
3311     ac_cv_prog_CC="cc"
3312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313     break 2
3314   fi
3315 done
3316   done
3317 IFS=$as_save_IFS
3318
3319 if test $ac_prog_rejected = yes; then
3320   # We found a bogon in the path, so make sure we never use it.
3321   set dummy $ac_cv_prog_CC
3322   shift
3323   if test $# != 0; then
3324     # We chose a different compiler from the bogus one.
3325     # However, it has the same basename, so the bogon will be chosen
3326     # first if we set CC to just the basename; use the full file name.
3327     shift
3328     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329   fi
3330 fi
3331 fi
3332 fi
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343 fi
3344 if test -z "$CC"; then
3345   if test -n "$ac_tool_prefix"; then
3346   for ac_prog in cl.exe
3347   do
3348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353   $as_echo_n "(cached) " >&6
3354 else
3355   if test -n "$CC"; then
3356   ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363     for ac_exec_ext in '' $ac_executable_extensions; do
3364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370   done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385     test -n "$CC" && break
3386   done
3387 fi
3388 if test -z "$CC"; then
3389   ac_ct_CC=$CC
3390   for ac_prog in cl.exe
3391 do
3392   # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$ac_ct_CC"; then
3400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409     ac_cv_prog_ac_ct_CC="$ac_prog"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3423 else
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429   test -n "$ac_ct_CC" && break
3430 done
3431
3432   if test "x$ac_ct_CC" = x; then
3433     CC=""
3434   else
3435     case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441     CC=$ac_ct_CC
3442   fi
3443 fi
3444
3445 fi
3446
3447
3448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "no acceptable C compiler found in \$PATH
3451 See \`config.log' for more details" "$LINENO" 5; }
3452
3453 # Provide some information about the compiler.
3454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455 set X $ac_compile
3456 ac_compiler=$2
3457 for ac_option in --version -v -V -qversion; do
3458   { { ac_try="$ac_compiler $ac_option >&5"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466   ac_status=$?
3467   if test -s conftest.err; then
3468     sed '10a\
3469 ... rest of stderr output deleted ...
3470          10q' conftest.err >conftest.er1
3471     cat conftest.er1 >&5
3472   fi
3473   rm -f conftest.er1 conftest.err
3474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475   test $ac_status = 0; }
3476 done
3477
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h.  */
3480
3481 int
3482 main ()
3483 {
3484
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489 ac_clean_files_save=$ac_clean_files
3490 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3491 # Try to create an executable without -o first, disregard a.out.
3492 # It will help us diagnose broken compilers, and finding out an intuition
3493 # of exeext.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3495 $as_echo_n "checking whether the C compiler works... " >&6; }
3496 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3497
3498 # The possible output files:
3499 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3500
3501 ac_rmfiles=
3502 for ac_file in $ac_files
3503 do
3504   case $ac_file in
3505     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507   esac
3508 done
3509 rm -f $ac_rmfiles
3510
3511 if { { ac_try="$ac_link_default"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518   (eval "$ac_link_default") 2>&5
3519   ac_status=$?
3520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521   test $ac_status = 0; }; then :
3522   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3525 # so that the user can short-circuit this test for compilers unknown to
3526 # Autoconf.
3527 for ac_file in $ac_files ''
3528 do
3529   test -f "$ac_file" || continue
3530   case $ac_file in
3531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3532         ;;
3533     [ab].out )
3534         # We found the default executable, but exeext='' is most
3535         # certainly right.
3536         break;;
3537     *.* )
3538         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3539         then :; else
3540            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541         fi
3542         # We set ac_cv_exeext here because the later test for it is not
3543         # safe: cross compilers may not add the suffix if given an `-o'
3544         # argument, so we may need to know it at that point already.
3545         # Even if this section looks crufty: it has the advantage of
3546         # actually working.
3547         break;;
3548     * )
3549         break;;
3550   esac
3551 done
3552 test "$ac_cv_exeext" = no && ac_cv_exeext=
3553
3554 else
3555   ac_file=''
3556 fi
3557 if test -z "$ac_file"; then :
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error 77 "C compiler cannot create executables
3566 See \`config.log' for more details" "$LINENO" 5; }
3567 else
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3569 $as_echo "yes" >&6; }
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3572 $as_echo_n "checking for C compiler default output file name... " >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 $as_echo "$ac_file" >&6; }
3575 ac_exeext=$ac_cv_exeext
3576
3577 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3578 ac_clean_files=$ac_clean_files_save
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3580 $as_echo_n "checking for suffix of executables... " >&6; }
3581 if { { ac_try="$ac_link"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588   (eval "$ac_link") 2>&5
3589   ac_status=$?
3590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591   test $ac_status = 0; }; then :
3592   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3593 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3594 # work properly (i.e., refer to `conftest.exe'), while it won't with
3595 # `rm'.
3596 for ac_file in conftest.exe conftest conftest.*; do
3597   test -f "$ac_file" || continue
3598   case $ac_file in
3599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3600     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601           break;;
3602     * ) break;;
3603   esac
3604 done
3605 else
3606   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3609 See \`config.log' for more details" "$LINENO" 5; }
3610 fi
3611 rm -f conftest conftest$ac_cv_exeext
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3613 $as_echo "$ac_cv_exeext" >&6; }
3614
3615 rm -f conftest.$ac_ext
3616 EXEEXT=$ac_cv_exeext
3617 ac_exeext=$EXEEXT
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h.  */
3620 #include <stdio.h>
3621 int
3622 main ()
3623 {
3624 FILE *f = fopen ("conftest.out", "w");
3625  return ferror (f) || fclose (f) != 0;
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 ac_clean_files="$ac_clean_files conftest.out"
3632 # Check that the compiler produces executables we can run.  If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3635 $as_echo_n "checking whether we are cross compiling... " >&6; }
3636 if test "$cross_compiling" != yes; then
3637   { { ac_try="$ac_link"
3638 case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644   (eval "$ac_link") 2>&5
3645   ac_status=$?
3646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647   test $ac_status = 0; }
3648   if { ac_try='./conftest$ac_cv_exeext'
3649   { { case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655   (eval "$ac_try") 2>&5
3656   ac_status=$?
3657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658   test $ac_status = 0; }; }; then
3659     cross_compiling=no
3660   else
3661     if test "$cross_compiling" = maybe; then
3662         cross_compiling=yes
3663     else
3664         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "cannot run C compiled programs.
3667 If you meant to cross compile, use \`--host'.
3668 See \`config.log' for more details" "$LINENO" 5; }
3669     fi
3670   fi
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3673 $as_echo "$cross_compiling" >&6; }
3674
3675 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if ${ac_cv_objext+:} false; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h.  */
3684
3685 int
3686 main ()
3687 {
3688
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 rm -f conftest.o conftest.obj
3694 if { { ac_try="$ac_compile"
3695 case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701   (eval "$ac_compile") 2>&5
3702   ac_status=$?
3703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704   test $ac_status = 0; }; then :
3705   for ac_file in conftest.o conftest.obj conftest.*; do
3706   test -f "$ac_file" || continue;
3707   case $ac_file in
3708     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3709     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3710        break;;
3711   esac
3712 done
3713 else
3714   $as_echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719 as_fn_error $? "cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details" "$LINENO" 5; }
3721 fi
3722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3725 $as_echo "$ac_cv_objext" >&6; }
3726 OBJEXT=$ac_cv_objext
3727 ac_objext=$OBJEXT
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3730 if ${ac_cv_c_compiler_gnu+:} false; then :
3731   $as_echo_n "(cached) " >&6
3732 else
3733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735
3736 int
3737 main ()
3738 {
3739 #ifndef __GNUC__
3740        choke me
3741 #endif
3742
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748   ac_compiler_gnu=yes
3749 else
3750   ac_compiler_gnu=no
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3754
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3758 if test $ac_compiler_gnu = yes; then
3759   GCC=yes
3760 else
3761   GCC=
3762 fi
3763 ac_test_CFLAGS=${CFLAGS+set}
3764 ac_save_CFLAGS=$CFLAGS
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3767 if ${ac_cv_prog_cc_g+:} false; then :
3768   $as_echo_n "(cached) " >&6
3769 else
3770   ac_save_c_werror_flag=$ac_c_werror_flag
3771    ac_c_werror_flag=yes
3772    ac_cv_prog_cc_g=no
3773    CFLAGS="-g"
3774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786   ac_cv_prog_cc_g=yes
3787 else
3788   CFLAGS=""
3789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h.  */
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801
3802 else
3803   ac_c_werror_flag=$ac_save_c_werror_flag
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 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824    ac_c_werror_flag=$ac_save_c_werror_flag
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829   CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831   if test "$GCC" = yes; then
3832     CFLAGS="-g -O2"
3833   else
3834     CFLAGS="-g"
3835   fi
3836 else
3837   if test "$GCC" = yes; then
3838     CFLAGS="-O2"
3839   else
3840     CFLAGS=
3841   fi
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845 if ${ac_cv_prog_cc_c89+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   ac_cv_prog_cc_c89=no
3849 ac_save_CC=$CC
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h.  */
3852 #include <stdarg.h>
3853 #include <stdio.h>
3854 #include <sys/types.h>
3855 #include <sys/stat.h>
3856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3857 struct buf { int x; };
3858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859 static char *e (p, i)
3860      char **p;
3861      int i;
3862 {
3863   return p[i];
3864 }
3865 static char *f (char * (*g) (char **, int), char **p, ...)
3866 {
3867   char *s;
3868   va_list v;
3869   va_start (v,p);
3870   s = g (p, va_arg (v,int));
3871   va_end (v);
3872   return s;
3873 }
3874
3875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3876    function prototypes and stuff, but not '\xHH' hex character constants.
3877    These don't provoke an error unfortunately, instead are silently treated
3878    as 'x'.  The following induces an error, until -std is added to get
3879    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3880    array size at least.  It's necessary to write '\x00'==0 to get something
3881    that's true only with -std.  */
3882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3883
3884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885    inside strings and character constants.  */
3886 #define FOO(x) 'x'
3887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3888
3889 int test (int i, double x);
3890 struct s1 {int (*f) (int a);};
3891 struct s2 {int (*f) (double a);};
3892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 int argc;
3894 char **argv;
3895 int
3896 main ()
3897 {
3898 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905 do
3906   CC="$ac_save_CC $ac_arg"
3907   if ac_fn_c_try_compile "$LINENO"; then :
3908   ac_cv_prog_cc_c89=$ac_arg
3909 fi
3910 rm -f core conftest.err conftest.$ac_objext
3911   test "x$ac_cv_prog_cc_c89" != "xno" && break
3912 done
3913 rm -f conftest.$ac_ext
3914 CC=$ac_save_CC
3915
3916 fi
3917 # AC_CACHE_VAL
3918 case "x$ac_cv_prog_cc_c89" in
3919   x)
3920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3921 $as_echo "none needed" >&6; } ;;
3922   xno)
3923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924 $as_echo "unsupported" >&6; } ;;
3925   *)
3926     CC="$CC $ac_cv_prog_cc_c89"
3927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3929 esac
3930 if test "x$ac_cv_prog_cc_c89" != xno; then :
3931
3932 fi
3933
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940 depcc="$CC"   am_compiler_list=
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3943 $as_echo_n "checking dependency style of $depcc... " >&6; }
3944 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3945   $as_echo_n "(cached) " >&6
3946 else
3947   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3948   # We make a subdir and do the tests there.  Otherwise we can end up
3949   # making bogus files that we don't know about and never remove.  For
3950   # instance it was reported that on HP-UX the gcc test will end up
3951   # making a dummy file named `D' -- because `-MD' means `put the output
3952   # in D'.
3953   rm -rf conftest.dir
3954   mkdir conftest.dir
3955   # Copy depcomp to subdir because otherwise we won't find it if we're
3956   # using a relative directory.
3957   cp "$am_depcomp" conftest.dir
3958   cd conftest.dir
3959   # We will build objects and dependencies in a subdirectory because
3960   # it helps to detect inapplicable dependency modes.  For instance
3961   # both Tru64's cc and ICC support -MD to output dependencies as a
3962   # side effect of compilation, but ICC will put the dependencies in
3963   # the current directory while Tru64 will put them in the object
3964   # directory.
3965   mkdir sub
3966
3967   am_cv_CC_dependencies_compiler_type=none
3968   if test "$am_compiler_list" = ""; then
3969      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3970   fi
3971   am__universal=false
3972   case " $depcc " in #(
3973      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3974      esac
3975
3976   for depmode in $am_compiler_list; do
3977     # Setup a source with many dependencies, because some compilers
3978     # like to wrap large dependency lists on column 80 (with \), and
3979     # we should not choose a depcomp mode which is confused by this.
3980     #
3981     # We need to recreate these files for each test, as the compiler may
3982     # overwrite some of them when testing with obscure command lines.
3983     # This happens at least with the AIX C compiler.
3984     : > sub/conftest.c
3985     for i in 1 2 3 4 5 6; do
3986       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3987       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3988       # Solaris 8's {/usr,}/bin/sh.
3989       touch sub/conftst$i.h
3990     done
3991     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3992
3993     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3994     # mode.  It turns out that the SunPro C++ compiler does not properly
3995     # handle `-M -o', and we need to detect this.  Also, some Intel
3996     # versions had trouble with output in subdirs
3997     am__obj=sub/conftest.${OBJEXT-o}
3998     am__minus_obj="-o $am__obj"
3999     case $depmode in
4000     gcc)
4001       # This depmode causes a compiler race in universal mode.
4002       test "$am__universal" = false || continue
4003       ;;
4004     nosideeffect)
4005       # after this tag, mechanisms are not by side-effect, so they'll
4006       # only be used when explicitly requested
4007       if test "x$enable_dependency_tracking" = xyes; then
4008         continue
4009       else
4010         break
4011       fi
4012       ;;
4013     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4014       # This compiler won't grok `-c -o', but also, the minuso test has
4015       # not run yet.  These depmodes are late enough in the game, and
4016       # so weak that their functioning should not be impacted.
4017       am__obj=conftest.${OBJEXT-o}
4018       am__minus_obj=
4019       ;;
4020     none) break ;;
4021     esac
4022     if depmode=$depmode \
4023        source=sub/conftest.c object=$am__obj \
4024        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4025        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4026          >/dev/null 2>conftest.err &&
4027        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4028        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4029        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4030        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4031       # icc doesn't choke on unknown options, it will just issue warnings
4032       # or remarks (even with -Werror).  So we grep stderr for any message
4033       # that says an option was ignored or not supported.
4034       # When given -MP, icc 7.0 and 7.1 complain thusly:
4035       #   icc: Command line warning: ignoring option '-M'; no argument required
4036       # The diagnosis changed in icc 8.0:
4037       #   icc: Command line remark: option '-MP' not supported
4038       if (grep 'ignoring option' conftest.err ||
4039           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4040         am_cv_CC_dependencies_compiler_type=$depmode
4041         break
4042       fi
4043     fi
4044   done
4045
4046   cd ..
4047   rm -rf conftest.dir
4048 else
4049   am_cv_CC_dependencies_compiler_type=none
4050 fi
4051
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4054 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4055 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4056
4057  if
4058   test "x$enable_dependency_tracking" != xno \
4059   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4060   am__fastdepCC_TRUE=
4061   am__fastdepCC_FALSE='#'
4062 else
4063   am__fastdepCC_TRUE='#'
4064   am__fastdepCC_FALSE=
4065 fi
4066
4067
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4069 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4070 if ${ac_cv_path_SED+:} false; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4074      for ac_i in 1 2 3 4 5 6 7; do
4075        ac_script="$ac_script$as_nl$ac_script"
4076      done
4077      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4078      { ac_script=; unset ac_script;}
4079      if test -z "$SED"; then
4080   ac_path_SED_found=false
4081   # Loop through the user's path and test for each of PROGNAME-LIST
4082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087     for ac_prog in sed gsed; do
4088     for ac_exec_ext in '' $ac_executable_extensions; do
4089       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4090       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4091 # Check for GNU ac_path_SED and select it if it is found.
4092   # Check for GNU $ac_path_SED
4093 case `"$ac_path_SED" --version 2>&1` in
4094 *GNU*)
4095   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4096 *)
4097   ac_count=0
4098   $as_echo_n 0123456789 >"conftest.in"
4099   while :
4100   do
4101     cat "conftest.in" "conftest.in" >"conftest.tmp"
4102     mv "conftest.tmp" "conftest.in"
4103     cp "conftest.in" "conftest.nl"
4104     $as_echo '' >> "conftest.nl"
4105     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4107     as_fn_arith $ac_count + 1 && ac_count=$as_val
4108     if test $ac_count -gt ${ac_path_SED_max-0}; then
4109       # Best one so far, save it but keep looking for a better one
4110       ac_cv_path_SED="$ac_path_SED"
4111       ac_path_SED_max=$ac_count
4112     fi
4113     # 10*(2^10) chars as input seems more than enough
4114     test $ac_count -gt 10 && break
4115   done
4116   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117 esac
4118
4119       $ac_path_SED_found && break 3
4120     done
4121   done
4122   done
4123 IFS=$as_save_IFS
4124   if test -z "$ac_cv_path_SED"; then
4125     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4126   fi
4127 else
4128   ac_cv_path_SED=$SED
4129 fi
4130
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4133 $as_echo "$ac_cv_path_SED" >&6; }
4134  SED="$ac_cv_path_SED"
4135   rm -f conftest.sed
4136
4137 test -z "$SED" && SED=sed
4138 Xsed="$SED -e 1s/^X//"
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4151 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4152 if ${ac_cv_path_GREP+:} false; then :
4153   $as_echo_n "(cached) " >&6
4154 else
4155   if test -z "$GREP"; then
4156   ac_path_GREP_found=false
4157   # Loop through the user's path and test for each of PROGNAME-LIST
4158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160 do
4161   IFS=$as_save_IFS
4162   test -z "$as_dir" && as_dir=.
4163     for ac_prog in grep ggrep; do
4164     for ac_exec_ext in '' $ac_executable_extensions; do
4165       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4166       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4167 # Check for GNU ac_path_GREP and select it if it is found.
4168   # Check for GNU $ac_path_GREP
4169 case `"$ac_path_GREP" --version 2>&1` in
4170 *GNU*)
4171   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4172 *)
4173   ac_count=0
4174   $as_echo_n 0123456789 >"conftest.in"
4175   while :
4176   do
4177     cat "conftest.in" "conftest.in" >"conftest.tmp"
4178     mv "conftest.tmp" "conftest.in"
4179     cp "conftest.in" "conftest.nl"
4180     $as_echo 'GREP' >> "conftest.nl"
4181     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183     as_fn_arith $ac_count + 1 && ac_count=$as_val
4184     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4185       # Best one so far, save it but keep looking for a better one
4186       ac_cv_path_GREP="$ac_path_GREP"
4187       ac_path_GREP_max=$ac_count
4188     fi
4189     # 10*(2^10) chars as input seems more than enough
4190     test $ac_count -gt 10 && break
4191   done
4192   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193 esac
4194
4195       $ac_path_GREP_found && break 3
4196     done
4197   done
4198   done
4199 IFS=$as_save_IFS
4200   if test -z "$ac_cv_path_GREP"; then
4201     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4202   fi
4203 else
4204   ac_cv_path_GREP=$GREP
4205 fi
4206
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4209 $as_echo "$ac_cv_path_GREP" >&6; }
4210  GREP="$ac_cv_path_GREP"
4211
4212
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4214 $as_echo_n "checking for egrep... " >&6; }
4215 if ${ac_cv_path_EGREP+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4219    then ac_cv_path_EGREP="$GREP -E"
4220    else
4221      if test -z "$EGREP"; then
4222   ac_path_EGREP_found=false
4223   # Loop through the user's path and test for each of PROGNAME-LIST
4224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229     for ac_prog in egrep; do
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4232       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4233 # Check for GNU ac_path_EGREP and select it if it is found.
4234   # Check for GNU $ac_path_EGREP
4235 case `"$ac_path_EGREP" --version 2>&1` in
4236 *GNU*)
4237   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4238 *)
4239   ac_count=0
4240   $as_echo_n 0123456789 >"conftest.in"
4241   while :
4242   do
4243     cat "conftest.in" "conftest.in" >"conftest.tmp"
4244     mv "conftest.tmp" "conftest.in"
4245     cp "conftest.in" "conftest.nl"
4246     $as_echo 'EGREP' >> "conftest.nl"
4247     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249     as_fn_arith $ac_count + 1 && ac_count=$as_val
4250     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4251       # Best one so far, save it but keep looking for a better one
4252       ac_cv_path_EGREP="$ac_path_EGREP"
4253       ac_path_EGREP_max=$ac_count
4254     fi
4255     # 10*(2^10) chars as input seems more than enough
4256     test $ac_count -gt 10 && break
4257   done
4258   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259 esac
4260
4261       $ac_path_EGREP_found && break 3
4262     done
4263   done
4264   done
4265 IFS=$as_save_IFS
4266   if test -z "$ac_cv_path_EGREP"; then
4267     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4268   fi
4269 else
4270   ac_cv_path_EGREP=$EGREP
4271 fi
4272
4273    fi
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4276 $as_echo "$ac_cv_path_EGREP" >&6; }
4277  EGREP="$ac_cv_path_EGREP"
4278
4279
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4281 $as_echo_n "checking for fgrep... " >&6; }
4282 if ${ac_cv_path_FGREP+:} false; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4286    then ac_cv_path_FGREP="$GREP -F"
4287    else
4288      if test -z "$FGREP"; then
4289   ac_path_FGREP_found=false
4290   # Loop through the user's path and test for each of PROGNAME-LIST
4291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_prog in fgrep; do
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4299       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4300 # Check for GNU ac_path_FGREP and select it if it is found.
4301   # Check for GNU $ac_path_FGREP
4302 case `"$ac_path_FGREP" --version 2>&1` in
4303 *GNU*)
4304   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4305 *)
4306   ac_count=0
4307   $as_echo_n 0123456789 >"conftest.in"
4308   while :
4309   do
4310     cat "conftest.in" "conftest.in" >"conftest.tmp"
4311     mv "conftest.tmp" "conftest.in"
4312     cp "conftest.in" "conftest.nl"
4313     $as_echo 'FGREP' >> "conftest.nl"
4314     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4315     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4316     as_fn_arith $ac_count + 1 && ac_count=$as_val
4317     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4318       # Best one so far, save it but keep looking for a better one
4319       ac_cv_path_FGREP="$ac_path_FGREP"
4320       ac_path_FGREP_max=$ac_count
4321     fi
4322     # 10*(2^10) chars as input seems more than enough
4323     test $ac_count -gt 10 && break
4324   done
4325   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326 esac
4327
4328       $ac_path_FGREP_found && break 3
4329     done
4330   done
4331   done
4332 IFS=$as_save_IFS
4333   if test -z "$ac_cv_path_FGREP"; then
4334     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4335   fi
4336 else
4337   ac_cv_path_FGREP=$FGREP
4338 fi
4339
4340    fi
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4343 $as_echo "$ac_cv_path_FGREP" >&6; }
4344  FGREP="$ac_cv_path_FGREP"
4345
4346
4347 test -z "$GREP" && GREP=grep
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367 # Check whether --with-gnu-ld was given.
4368 if test "${with_gnu_ld+set}" = set; then :
4369   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4370 else
4371   with_gnu_ld=no
4372 fi
4373
4374 ac_prog=ld
4375 if test "$GCC" = yes; then
4376   # Check if gcc -print-prog-name=ld gives a path.
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4378 $as_echo_n "checking for ld used by $CC... " >&6; }
4379   case $host in
4380   *-*-mingw*)
4381     # gcc leaves a trailing carriage return which upsets mingw
4382     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4383   *)
4384     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4385   esac
4386   case $ac_prog in
4387     # Accept absolute paths.
4388     [\\/]* | ?:[\\/]*)
4389       re_direlt='/[^/][^/]*/\.\./'
4390       # Canonicalize the pathname of ld
4391       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4392       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4393         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4394       done
4395       test -z "$LD" && LD="$ac_prog"
4396       ;;
4397   "")
4398     # If it fails, then pretend we aren't using GCC.
4399     ac_prog=ld
4400     ;;
4401   *)
4402     # If it is relative, then search for the first ld in PATH.
4403     with_gnu_ld=unknown
4404     ;;
4405   esac
4406 elif test "$with_gnu_ld" = yes; then
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4408 $as_echo_n "checking for GNU ld... " >&6; }
4409 else
4410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4411 $as_echo_n "checking for non-GNU ld... " >&6; }
4412 fi
4413 if ${lt_cv_path_LD+:} false; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   if test -z "$LD"; then
4417   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4418   for ac_dir in $PATH; do
4419     IFS="$lt_save_ifs"
4420     test -z "$ac_dir" && ac_dir=.
4421     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4422       lt_cv_path_LD="$ac_dir/$ac_prog"
4423       # Check to see if the program is GNU ld.  I'd rather use --version,
4424       # but apparently some variants of GNU ld only accept -v.
4425       # Break only if it was the GNU/non-GNU ld that we prefer.
4426       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4427       *GNU* | *'with BFD'*)
4428         test "$with_gnu_ld" != no && break
4429         ;;
4430       *)
4431         test "$with_gnu_ld" != yes && break
4432         ;;
4433       esac
4434     fi
4435   done
4436   IFS="$lt_save_ifs"
4437 else
4438   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4439 fi
4440 fi
4441
4442 LD="$lt_cv_path_LD"
4443 if test -n "$LD"; then
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4445 $as_echo "$LD" >&6; }
4446 else
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4449 fi
4450 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4452 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4453 if ${lt_cv_prog_gnu_ld+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4457 case `$LD -v 2>&1 </dev/null` in
4458 *GNU* | *'with BFD'*)
4459   lt_cv_prog_gnu_ld=yes
4460   ;;
4461 *)
4462   lt_cv_prog_gnu_ld=no
4463   ;;
4464 esac
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4467 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4468 with_gnu_ld=$lt_cv_prog_gnu_ld
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4479 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4480 if ${lt_cv_path_NM+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   if test -n "$NM"; then
4484   # Let the user override the test.
4485   lt_cv_path_NM="$NM"
4486 else
4487   lt_nm_to_check="${ac_tool_prefix}nm"
4488   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4489     lt_nm_to_check="$lt_nm_to_check nm"
4490   fi
4491   for lt_tmp_nm in $lt_nm_to_check; do
4492     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4493     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4494       IFS="$lt_save_ifs"
4495       test -z "$ac_dir" && ac_dir=.
4496       tmp_nm="$ac_dir/$lt_tmp_nm"
4497       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4498         # Check to see if the nm accepts a BSD-compat flag.
4499         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4500         #   nm: unknown option "B" ignored
4501         # Tru64's nm complains that /dev/null is an invalid object file
4502         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4503         */dev/null* | *'Invalid file or object type'*)
4504           lt_cv_path_NM="$tmp_nm -B"
4505           break
4506           ;;
4507         *)
4508           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4509           */dev/null*)
4510             lt_cv_path_NM="$tmp_nm -p"
4511             break
4512             ;;
4513           *)
4514             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4515             continue # so that we can try to find one that supports BSD flags
4516             ;;
4517           esac
4518           ;;
4519         esac
4520       fi
4521     done
4522     IFS="$lt_save_ifs"
4523   done
4524   : ${lt_cv_path_NM=no}
4525 fi
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4528 $as_echo "$lt_cv_path_NM" >&6; }
4529 if test "$lt_cv_path_NM" != "no"; then
4530   NM="$lt_cv_path_NM"
4531 else
4532   # Didn't find any BSD compatible name lister, look for dumpbin.
4533   if test -n "$DUMPBIN"; then :
4534     # Let the user override the test.
4535   else
4536     if test -n "$ac_tool_prefix"; then
4537   for ac_prog in dumpbin "link -dump"
4538   do
4539     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_DUMPBIN+:} false; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -n "$DUMPBIN"; then
4547   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561   done
4562 IFS=$as_save_IFS
4563
4564 fi
4565 fi
4566 DUMPBIN=$ac_cv_prog_DUMPBIN
4567 if test -n "$DUMPBIN"; then
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4569 $as_echo "$DUMPBIN" >&6; }
4570 else
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576     test -n "$DUMPBIN" && break
4577   done
4578 fi
4579 if test -z "$DUMPBIN"; then
4580   ac_ct_DUMPBIN=$DUMPBIN
4581   for ac_prog in dumpbin "link -dump"
4582 do
4583   # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590   if test -n "$ac_ct_DUMPBIN"; then
4591   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598     for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605   done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4611 if test -n "$ac_ct_DUMPBIN"; then
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4613 $as_echo "$ac_ct_DUMPBIN" >&6; }
4614 else
4615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4618
4619
4620   test -n "$ac_ct_DUMPBIN" && break
4621 done
4622
4623   if test "x$ac_ct_DUMPBIN" = x; then
4624     DUMPBIN=":"
4625   else
4626     case $cross_compiling:$ac_tool_warned in
4627 yes:)
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4631 esac
4632     DUMPBIN=$ac_ct_DUMPBIN
4633   fi
4634 fi
4635
4636     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4637     *COFF*)
4638       DUMPBIN="$DUMPBIN -symbols"
4639       ;;
4640     *)
4641       DUMPBIN=:
4642       ;;
4643     esac
4644   fi
4645
4646   if test "$DUMPBIN" != ":"; then
4647     NM="$DUMPBIN"
4648   fi
4649 fi
4650 test -z "$NM" && NM=nm
4651
4652
4653
4654
4655
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4658 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4659 if ${lt_cv_nm_interface+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   lt_cv_nm_interface="BSD nm"
4663   echo "int some_variable = 0;" > conftest.$ac_ext
4664   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4665   (eval "$ac_compile" 2>conftest.err)
4666   cat conftest.err >&5
4667   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4668   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4669   cat conftest.err >&5
4670   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4671   cat conftest.out >&5
4672   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4673     lt_cv_nm_interface="MS dumpbin"
4674   fi
4675   rm -f conftest*
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4678 $as_echo "$lt_cv_nm_interface" >&6; }
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4681 $as_echo_n "checking whether ln -s works... " >&6; }
4682 LN_S=$as_ln_s
4683 if test "$LN_S" = "ln -s"; then
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685 $as_echo "yes" >&6; }
4686 else
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4688 $as_echo "no, using $LN_S" >&6; }
4689 fi
4690
4691 # find the maximum length of command line arguments
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4693 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4694 if ${lt_cv_sys_max_cmd_len+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697     i=0
4698   teststring="ABCD"
4699
4700   case $build_os in
4701   msdosdjgpp*)
4702     # On DJGPP, this test can blow up pretty badly due to problems in libc
4703     # (any single argument exceeding 2000 bytes causes a buffer overrun
4704     # during glob expansion).  Even if it were fixed, the result of this
4705     # check would be larger than it should be.
4706     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4707     ;;
4708
4709   gnu*)
4710     # Under GNU Hurd, this test is not required because there is
4711     # no limit to the length of command line arguments.
4712     # Libtool will interpret -1 as no limit whatsoever
4713     lt_cv_sys_max_cmd_len=-1;
4714     ;;
4715
4716   cygwin* | mingw* | cegcc*)
4717     # On Win9x/ME, this test blows up -- it succeeds, but takes
4718     # about 5 minutes as the teststring grows exponentially.
4719     # Worse, since 9x/ME are not pre-emptively multitasking,
4720     # you end up with a "frozen" computer, even though with patience
4721     # the test eventually succeeds (with a max line length of 256k).
4722     # Instead, let's just punt: use the minimum linelength reported by
4723     # all of the supported platforms: 8192 (on NT/2K/XP).
4724     lt_cv_sys_max_cmd_len=8192;
4725     ;;
4726
4727   mint*)
4728     # On MiNT this can take a long time and run out of memory.
4729     lt_cv_sys_max_cmd_len=8192;
4730     ;;
4731
4732   amigaos*)
4733     # On AmigaOS with pdksh, this test takes hours, literally.
4734     # So we just punt and use a minimum line length of 8192.
4735     lt_cv_sys_max_cmd_len=8192;
4736     ;;
4737
4738   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4739     # This has been around since 386BSD, at least.  Likely further.
4740     if test -x /sbin/sysctl; then
4741       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4742     elif test -x /usr/sbin/sysctl; then
4743       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4744     else
4745       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4746     fi
4747     # And add a safety zone
4748     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4750     ;;
4751
4752   interix*)
4753     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4754     lt_cv_sys_max_cmd_len=196608
4755     ;;
4756
4757   os2*)
4758     # The test takes a long time on OS/2.
4759     lt_cv_sys_max_cmd_len=8192
4760     ;;
4761
4762   osf*)
4763     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4764     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4765     # nice to cause kernel panics so lets avoid the loop below.
4766     # First set a reasonable default.
4767     lt_cv_sys_max_cmd_len=16384
4768     #
4769     if test -x /sbin/sysconfig; then
4770       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4771         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4772       esac
4773     fi
4774     ;;
4775   sco3.2v5*)
4776     lt_cv_sys_max_cmd_len=102400
4777     ;;
4778   sysv5* | sco5v6* | sysv4.2uw2*)
4779     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4780     if test -n "$kargmax"; then
4781       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4782     else
4783       lt_cv_sys_max_cmd_len=32768
4784     fi
4785     ;;
4786   *)
4787     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4788     if test -n "$lt_cv_sys_max_cmd_len"; then
4789       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4790       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4791     else
4792       # Make teststring a little bigger before we do anything with it.
4793       # a 1K string should be a reasonable start.
4794       for i in 1 2 3 4 5 6 7 8 ; do
4795         teststring=$teststring$teststring
4796       done
4797       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4798       # If test is not a shell built-in, we'll probably end up computing a
4799       # maximum length that is only half of the actual maximum length, but
4800       # we can't tell.
4801       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4802                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4803               test $i != 17 # 1/2 MB should be enough
4804       do
4805         i=`expr $i + 1`
4806         teststring=$teststring$teststring
4807       done
4808       # Only check the string length outside the loop.
4809       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4810       teststring=
4811       # Add a significant safety factor because C++ compilers can tack on
4812       # massive amounts of additional arguments before passing them to the
4813       # linker.  It appears as though 1/2 is a usable value.
4814       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4815     fi
4816     ;;
4817   esac
4818
4819 fi
4820
4821 if test -n $lt_cv_sys_max_cmd_len ; then
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4823 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4824 else
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4826 $as_echo "none" >&6; }
4827 fi
4828 max_cmd_len=$lt_cv_sys_max_cmd_len
4829
4830
4831
4832
4833
4834
4835 : ${CP="cp -f"}
4836 : ${MV="mv -f"}
4837 : ${RM="rm -f"}
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4840 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4841 # Try some XSI features
4842 xsi_shell=no
4843 ( _lt_dummy="a/b/c"
4844   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4845       = c,a/b,b/c, \
4846     && eval 'test $(( 1 + 1 )) -eq 2 \
4847     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4848   && xsi_shell=yes
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4850 $as_echo "$xsi_shell" >&6; }
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4854 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4855 lt_shell_append=no
4856 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4857     >/dev/null 2>&1 \
4858   && lt_shell_append=yes
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4860 $as_echo "$lt_shell_append" >&6; }
4861
4862
4863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4864   lt_unset=unset
4865 else
4866   lt_unset=false
4867 fi
4868
4869
4870
4871
4872
4873 # test EBCDIC or ASCII
4874 case `echo X|tr X '\101'` in
4875  A) # ASCII based system
4876     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4877   lt_SP2NL='tr \040 \012'
4878   lt_NL2SP='tr \015\012 \040\040'
4879   ;;
4880  *) # EBCDIC based system
4881   lt_SP2NL='tr \100 \n'
4882   lt_NL2SP='tr \r\n \100\100'
4883   ;;
4884 esac
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4895 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4896 if ${lt_cv_to_host_file_cmd+:} false; then :
4897   $as_echo_n "(cached) " >&6
4898 else
4899   case $host in
4900   *-*-mingw* )
4901     case $build in
4902       *-*-mingw* ) # actually msys
4903         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4904         ;;
4905       *-*-cygwin* )
4906         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4907         ;;
4908       * ) # otherwise, assume *nix
4909         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4910         ;;
4911     esac
4912     ;;
4913   *-*-cygwin* )
4914     case $build in
4915       *-*-mingw* ) # actually msys
4916         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4917         ;;
4918       *-*-cygwin* )
4919         lt_cv_to_host_file_cmd=func_convert_file_noop
4920         ;;
4921       * ) # otherwise, assume *nix
4922         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4923         ;;
4924     esac
4925     ;;
4926   * ) # unhandled hosts (and "normal" native builds)
4927     lt_cv_to_host_file_cmd=func_convert_file_noop
4928     ;;
4929 esac
4930
4931 fi
4932
4933 to_host_file_cmd=$lt_cv_to_host_file_cmd
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4935 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4942 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4943 if ${lt_cv_to_tool_file_cmd+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   #assume ordinary cross tools, or native build.
4947 lt_cv_to_tool_file_cmd=func_convert_file_noop
4948 case $host in
4949   *-*-mingw* )
4950     case $build in
4951       *-*-mingw* ) # actually msys
4952         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4953         ;;
4954     esac
4955     ;;
4956 esac
4957
4958 fi
4959
4960 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4962 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4963
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4969 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4970 if ${lt_cv_ld_reload_flag+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   lt_cv_ld_reload_flag='-r'
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4976 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4977 reload_flag=$lt_cv_ld_reload_flag
4978 case $reload_flag in
4979 "" | " "*) ;;
4980 *) reload_flag=" $reload_flag" ;;
4981 esac
4982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4983 case $host_os in
4984   cygwin* | mingw* | pw32* | cegcc*)
4985     if test "$GCC" != yes; then
4986       reload_cmds=false
4987     fi
4988     ;;
4989   darwin*)
4990     if test "$GCC" = yes; then
4991       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4992     else
4993       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4994     fi
4995     ;;
4996 esac
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006 if test -n "$ac_tool_prefix"; then
5007   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_OBJDUMP+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   if test -n "$OBJDUMP"; then
5015   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020   IFS=$as_save_IFS
5021   test -z "$as_dir" && as_dir=.
5022     for ac_exec_ext in '' $ac_executable_extensions; do
5023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026     break 2
5027   fi
5028 done
5029   done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 OBJDUMP=$ac_cv_prog_OBJDUMP
5035 if test -n "$OBJDUMP"; then
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5037 $as_echo "$OBJDUMP" >&6; }
5038 else
5039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042
5043
5044 fi
5045 if test -z "$ac_cv_prog_OBJDUMP"; then
5046   ac_ct_OBJDUMP=$OBJDUMP
5047   # Extract the first word of "objdump", so it can be a program name with args.
5048 set dummy objdump; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5052   $as_echo_n "(cached) " >&6
5053 else
5054   if test -n "$ac_ct_OBJDUMP"; then
5055   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062     for ac_exec_ext in '' $ac_executable_extensions; do
5063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069   done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5075 if test -n "$ac_ct_OBJDUMP"; then
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5077 $as_echo "$ac_ct_OBJDUMP" >&6; }
5078 else
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083   if test "x$ac_ct_OBJDUMP" = x; then
5084     OBJDUMP="false"
5085   else
5086     case $cross_compiling:$ac_tool_warned in
5087 yes:)
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090 ac_tool_warned=yes ;;
5091 esac
5092     OBJDUMP=$ac_ct_OBJDUMP
5093   fi
5094 else
5095   OBJDUMP="$ac_cv_prog_OBJDUMP"
5096 fi
5097
5098 test -z "$OBJDUMP" && OBJDUMP=objdump
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5109 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5110 if ${lt_cv_deplibs_check_method+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   lt_cv_file_magic_cmd='$MAGIC_CMD'
5114 lt_cv_file_magic_test_file=
5115 lt_cv_deplibs_check_method='unknown'
5116 # Need to set the preceding variable on all platforms that support
5117 # interlibrary dependencies.
5118 # 'none' -- dependencies not supported.
5119 # `unknown' -- same as none, but documents that we really don't know.
5120 # 'pass_all' -- all dependencies passed with no checks.
5121 # 'test_compile' -- check by making test program.
5122 # 'file_magic [[regex]]' -- check by looking for files in library path
5123 # which responds to the $file_magic_cmd with a given extended regex.
5124 # If you have `file' or equivalent on your system and you're not sure
5125 # whether `pass_all' will *always* work, you probably want this one.
5126
5127 case $host_os in
5128 aix[4-9]*)
5129   lt_cv_deplibs_check_method=pass_all
5130   ;;
5131
5132 beos*)
5133   lt_cv_deplibs_check_method=pass_all
5134   ;;
5135
5136 bsdi[45]*)
5137   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5138   lt_cv_file_magic_cmd='/usr/bin/file -L'
5139   lt_cv_file_magic_test_file=/shlib/libc.so
5140   ;;
5141
5142 cygwin*)
5143   # func_win32_libid is a shell function defined in ltmain.sh
5144   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5145   lt_cv_file_magic_cmd='func_win32_libid'
5146   ;;
5147
5148 mingw* | pw32*)
5149   # Base MSYS/MinGW do not provide the 'file' command needed by
5150   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5151   # unless we find 'file', for example because we are cross-compiling.
5152   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5153   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5154     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5155     lt_cv_file_magic_cmd='func_win32_libid'
5156   else
5157     # Keep this pattern in sync with the one in func_win32_libid.
5158     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5159     lt_cv_file_magic_cmd='$OBJDUMP -f'
5160   fi
5161   ;;
5162
5163 cegcc*)
5164   # use the weaker test based on 'objdump'. See mingw*.
5165   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5166   lt_cv_file_magic_cmd='$OBJDUMP -f'
5167   ;;
5168
5169 darwin* | rhapsody*)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172
5173 freebsd* | dragonfly*)
5174   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5175     case $host_cpu in
5176     i*86 )
5177       # Not sure whether the presence of OpenBSD here was a mistake.
5178       # Let's accept both of them until this is cleared up.
5179       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5180       lt_cv_file_magic_cmd=/usr/bin/file
5181       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5182       ;;
5183     esac
5184   else
5185     lt_cv_deplibs_check_method=pass_all
5186   fi
5187   ;;
5188
5189 gnu*)
5190   lt_cv_deplibs_check_method=pass_all
5191   ;;
5192
5193 haiku*)
5194   lt_cv_deplibs_check_method=pass_all
5195   ;;
5196
5197 hpux10.20* | hpux11*)
5198   lt_cv_file_magic_cmd=/usr/bin/file
5199   case $host_cpu in
5200   ia64*)
5201     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5202     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5203     ;;
5204   hppa*64*)
5205     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]'
5206     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5207     ;;
5208   *)
5209     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5210     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5211     ;;
5212   esac
5213   ;;
5214
5215 interix[3-9]*)
5216   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5217   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5218   ;;
5219
5220 irix5* | irix6* | nonstopux*)
5221   case $LD in
5222   *-32|*"-32 ") libmagic=32-bit;;
5223   *-n32|*"-n32 ") libmagic=N32;;
5224   *-64|*"-64 ") libmagic=64-bit;;
5225   *) libmagic=never-match;;
5226   esac
5227   lt_cv_deplibs_check_method=pass_all
5228   ;;
5229
5230 # This must be glibc/ELF.
5231 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5232   lt_cv_deplibs_check_method=pass_all
5233   ;;
5234
5235 netbsd*)
5236   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5237     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5238   else
5239     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5240   fi
5241   ;;
5242
5243 newos6*)
5244   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5245   lt_cv_file_magic_cmd=/usr/bin/file
5246   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5247   ;;
5248
5249 *nto* | *qnx*)
5250   lt_cv_deplibs_check_method=pass_all
5251   ;;
5252
5253 openbsd*)
5254   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5255     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5256   else
5257     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5258   fi
5259   ;;
5260
5261 osf3* | osf4* | osf5*)
5262   lt_cv_deplibs_check_method=pass_all
5263   ;;
5264
5265 rdos*)
5266   lt_cv_deplibs_check_method=pass_all
5267   ;;
5268
5269 solaris*)
5270   lt_cv_deplibs_check_method=pass_all
5271   ;;
5272
5273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5274   lt_cv_deplibs_check_method=pass_all
5275   ;;
5276
5277 sysv4 | sysv4.3*)
5278   case $host_vendor in
5279   motorola)
5280     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]'
5281     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5282     ;;
5283   ncr)
5284     lt_cv_deplibs_check_method=pass_all
5285     ;;
5286   sequent)
5287     lt_cv_file_magic_cmd='/bin/file'
5288     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5289     ;;
5290   sni)
5291     lt_cv_file_magic_cmd='/bin/file'
5292     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5293     lt_cv_file_magic_test_file=/lib/libc.so
5294     ;;
5295   siemens)
5296     lt_cv_deplibs_check_method=pass_all
5297     ;;
5298   pc)
5299     lt_cv_deplibs_check_method=pass_all
5300     ;;
5301   esac
5302   ;;
5303
5304 tpf*)
5305   lt_cv_deplibs_check_method=pass_all
5306   ;;
5307 esac
5308
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5311 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5312
5313 file_magic_glob=
5314 want_nocaseglob=no
5315 if test "$build" = "$host"; then
5316   case $host_os in
5317   mingw* | pw32*)
5318     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5319       want_nocaseglob=yes
5320     else
5321       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5322     fi
5323     ;;
5324   esac
5325 fi
5326
5327 file_magic_cmd=$lt_cv_file_magic_cmd
5328 deplibs_check_method=$lt_cv_deplibs_check_method
5329 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 if test -n "$ac_tool_prefix"; then
5353   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_DLLTOOL+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$DLLTOOL"; then
5361   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 DLLTOOL=$ac_cv_prog_DLLTOOL
5381 if test -n "$DLLTOOL"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5383 $as_echo "$DLLTOOL" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390 fi
5391 if test -z "$ac_cv_prog_DLLTOOL"; then
5392   ac_ct_DLLTOOL=$DLLTOOL
5393   # Extract the first word of "dlltool", so it can be a program name with args.
5394 set dummy dlltool; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$ac_ct_DLLTOOL"; then
5401   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5421 if test -n "$ac_ct_DLLTOOL"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5423 $as_echo "$ac_ct_DLLTOOL" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429   if test "x$ac_ct_DLLTOOL" = x; then
5430     DLLTOOL="false"
5431   else
5432     case $cross_compiling:$ac_tool_warned in
5433 yes:)
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5437 esac
5438     DLLTOOL=$ac_ct_DLLTOOL
5439   fi
5440 else
5441   DLLTOOL="$ac_cv_prog_DLLTOOL"
5442 fi
5443
5444 test -z "$DLLTOOL" && DLLTOOL=dlltool
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5456 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5457 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   lt_cv_sharedlib_from_linklib_cmd='unknown'
5461
5462 case $host_os in
5463 cygwin* | mingw* | pw32* | cegcc*)
5464   # two different shell functions defined in ltmain.sh
5465   # decide which to use based on capabilities of $DLLTOOL
5466   case `$DLLTOOL --help 2>&1` in
5467   *--identify-strict*)
5468     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5469     ;;
5470   *)
5471     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5472     ;;
5473   esac
5474   ;;
5475 *)
5476   # fallback: assume linklib IS sharedlib
5477   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5478   ;;
5479 esac
5480
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5483 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5484 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5485 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5486
5487
5488
5489
5490
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495   for ac_prog in ar
5496   do
5497     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_AR+:} false; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   if test -n "$AR"; then
5505   ac_cv_prog_AR="$AR" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512     for ac_exec_ext in '' $ac_executable_extensions; do
5513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519   done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 AR=$ac_cv_prog_AR
5525 if test -n "$AR"; then
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5527 $as_echo "$AR" >&6; }
5528 else
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534     test -n "$AR" && break
5535   done
5536 fi
5537 if test -z "$AR"; then
5538   ac_ct_AR=$AR
5539   for ac_prog in ar
5540 do
5541   # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$ac_ct_AR"; then
5549   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558     ac_cv_prog_ac_ct_AR="$ac_prog"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5569 if test -n "$ac_ct_AR"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5571 $as_echo "$ac_ct_AR" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578   test -n "$ac_ct_AR" && break
5579 done
5580
5581   if test "x$ac_ct_AR" = x; then
5582     AR="false"
5583   else
5584     case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590     AR=$ac_ct_AR
5591   fi
5592 fi
5593
5594 : ${AR=ar}
5595 : ${AR_FLAGS=cru}
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5608 $as_echo_n "checking for archiver @FILE support... " >&6; }
5609 if ${lt_cv_ar_at_file+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   lt_cv_ar_at_file=no
5613    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h.  */
5615
5616 int
5617 main ()
5618 {
5619
5620   ;
5621   return 0;
5622 }
5623 _ACEOF
5624 if ac_fn_c_try_compile "$LINENO"; then :
5625   echo conftest.$ac_objext > conftest.lst
5626       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5627       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5628   (eval $lt_ar_try) 2>&5
5629   ac_status=$?
5630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631   test $ac_status = 0; }
5632       if test "$ac_status" -eq 0; then
5633         # Ensure the archiver fails upon bogus file names.
5634         rm -f conftest.$ac_objext libconftest.a
5635         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5636   (eval $lt_ar_try) 2>&5
5637   ac_status=$?
5638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639   test $ac_status = 0; }
5640         if test "$ac_status" -ne 0; then
5641           lt_cv_ar_at_file=@
5642         fi
5643       fi
5644       rm -f conftest.* libconftest.a
5645
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648
5649 fi
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5651 $as_echo "$lt_cv_ar_at_file" >&6; }
5652
5653 if test "x$lt_cv_ar_at_file" = xno; then
5654   archiver_list_spec=
5655 else
5656   archiver_list_spec=$lt_cv_ar_at_file
5657 fi
5658
5659
5660
5661
5662
5663
5664
5665 if test -n "$ac_tool_prefix"; then
5666   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}strip; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_STRIP+:} false; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   if test -n "$STRIP"; then
5674   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681     for ac_exec_ext in '' $ac_executable_extensions; do
5682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688   done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 STRIP=$ac_cv_prog_STRIP
5694 if test -n "$STRIP"; then
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5696 $as_echo "$STRIP" >&6; }
5697 else
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702
5703 fi
5704 if test -z "$ac_cv_prog_STRIP"; then
5705   ac_ct_STRIP=$STRIP
5706   # Extract the first word of "strip", so it can be a program name with args.
5707 set dummy strip; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713   if test -n "$ac_ct_STRIP"; then
5714   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721     for ac_exec_ext in '' $ac_executable_extensions; do
5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723     ac_cv_prog_ac_ct_STRIP="strip"
5724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728   done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5734 if test -n "$ac_ct_STRIP"; then
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5736 $as_echo "$ac_ct_STRIP" >&6; }
5737 else
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742   if test "x$ac_ct_STRIP" = x; then
5743     STRIP=":"
5744   else
5745     case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned=yes ;;
5750 esac
5751     STRIP=$ac_ct_STRIP
5752   fi
5753 else
5754   STRIP="$ac_cv_prog_STRIP"
5755 fi
5756
5757 test -z "$STRIP" && STRIP=:
5758
5759
5760
5761
5762
5763
5764 if test -n "$ac_tool_prefix"; then
5765   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_RANLIB+:} false; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   if test -n "$RANLIB"; then
5773   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 RANLIB=$ac_cv_prog_RANLIB
5793 if test -n "$RANLIB"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5795 $as_echo "$RANLIB" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802 fi
5803 if test -z "$ac_cv_prog_RANLIB"; then
5804   ac_ct_RANLIB=$RANLIB
5805   # Extract the first word of "ranlib", so it can be a program name with args.
5806 set dummy ranlib; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   if test -n "$ac_ct_RANLIB"; then
5813   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822     ac_cv_prog_ac_ct_RANLIB="ranlib"
5823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5833 if test -n "$ac_ct_RANLIB"; then
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5835 $as_echo "$ac_ct_RANLIB" >&6; }
5836 else
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841   if test "x$ac_ct_RANLIB" = x; then
5842     RANLIB=":"
5843   else
5844     case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850     RANLIB=$ac_ct_RANLIB
5851   fi
5852 else
5853   RANLIB="$ac_cv_prog_RANLIB"
5854 fi
5855
5856 test -z "$RANLIB" && RANLIB=:
5857
5858
5859
5860
5861
5862
5863 # Determine commands to create old-style static archives.
5864 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5865 old_postinstall_cmds='chmod 644 $oldlib'
5866 old_postuninstall_cmds=
5867
5868 if test -n "$RANLIB"; then
5869   case $host_os in
5870   openbsd*)
5871     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5872     ;;
5873   *)
5874     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5875     ;;
5876   esac
5877   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5878 fi
5879
5880 case $host_os in
5881   darwin*)
5882     lock_old_archive_extraction=yes ;;
5883   *)
5884     lock_old_archive_extraction=no ;;
5885 esac
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 # If no C compiler was specified, use CC.
5926 LTCC=${LTCC-"$CC"}
5927
5928 # If no C compiler flags were specified, use CFLAGS.
5929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5930
5931 # Allow CC to be a program name with arguments.
5932 compiler=$CC
5933
5934
5935 # Check for command to grab the raw symbol name followed by C symbol from nm.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5937 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5938 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941
5942 # These are sane defaults that work on at least a few old systems.
5943 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5944
5945 # Character class describing NM global symbol codes.
5946 symcode='[BCDEGRST]'
5947
5948 # Regexp to match symbols that can be accessed directly from C.
5949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5950
5951 # Define system-specific variables.
5952 case $host_os in
5953 aix*)
5954   symcode='[BCDT]'
5955   ;;
5956 cygwin* | mingw* | pw32* | cegcc*)
5957   symcode='[ABCDGISTW]'
5958   ;;
5959 hpux*)
5960   if test "$host_cpu" = ia64; then
5961     symcode='[ABCDEGRST]'
5962   fi
5963   ;;
5964 irix* | nonstopux*)
5965   symcode='[BCDEGRST]'
5966   ;;
5967 osf*)
5968   symcode='[BCDEGQRST]'
5969   ;;
5970 solaris*)
5971   symcode='[BDRT]'
5972   ;;
5973 sco3.2v5*)
5974   symcode='[DT]'
5975   ;;
5976 sysv4.2uw2*)
5977   symcode='[DT]'
5978   ;;
5979 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5980   symcode='[ABDT]'
5981   ;;
5982 sysv4)
5983   symcode='[DFNSTU]'
5984   ;;
5985 esac
5986
5987 # If we're using GNU nm, then use its standard symbol codes.
5988 case `$NM -V 2>&1` in
5989 *GNU* | *'with BFD'*)
5990   symcode='[ABCDGIRSTW]' ;;
5991 esac
5992
5993 # Transform an extracted symbol line into a proper C declaration.
5994 # Some systems (esp. on ia64) link data and code symbols differently,
5995 # so use this general approach.
5996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5997
5998 # Transform an extracted symbol line into symbol name and symbol address
5999 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6000 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'"
6001
6002 # Handle CRLF in mingw tool chain
6003 opt_cr=
6004 case $build_os in
6005 mingw*)
6006   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6007   ;;
6008 esac
6009
6010 # Try without a prefix underscore, then with it.
6011 for ac_symprfx in "" "_"; do
6012
6013   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6014   symxfrm="\\1 $ac_symprfx\\2 \\2"
6015
6016   # Write the raw and C identifiers.
6017   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6018     # Fake it for dumpbin and say T for any non-static function
6019     # and D for any global variable.
6020     # Also find C++ and __fastcall symbols from MSVC++,
6021     # which start with @ or ?.
6022     lt_cv_sys_global_symbol_pipe="$AWK '"\
6023 "     {last_section=section; section=\$ 3};"\
6024 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6025 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6026 "     \$ 0!~/External *\|/{next};"\
6027 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6028 "     {if(hide[section]) next};"\
6029 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6030 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6031 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6032 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6033 "     ' prfx=^$ac_symprfx"
6034   else
6035     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6036   fi
6037   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6038
6039   # Check to see that the pipe works correctly.
6040   pipe_works=no
6041
6042   rm -f conftest*
6043   cat > conftest.$ac_ext <<_LT_EOF
6044 #ifdef __cplusplus
6045 extern "C" {
6046 #endif
6047 char nm_test_var;
6048 void nm_test_func(void);
6049 void nm_test_func(void){}
6050 #ifdef __cplusplus
6051 }
6052 #endif
6053 int main(){nm_test_var='a';nm_test_func();return(0);}
6054 _LT_EOF
6055
6056   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6057   (eval $ac_compile) 2>&5
6058   ac_status=$?
6059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060   test $ac_status = 0; }; then
6061     # Now try to grab the symbols.
6062     nlist=conftest.nm
6063     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6064   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6065   ac_status=$?
6066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6067   test $ac_status = 0; } && test -s "$nlist"; then
6068       # Try sorting and uniquifying the output.
6069       if sort "$nlist" | uniq > "$nlist"T; then
6070         mv -f "$nlist"T "$nlist"
6071       else
6072         rm -f "$nlist"T
6073       fi
6074
6075       # Make sure that we snagged all the symbols we need.
6076       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6077         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6078           cat <<_LT_EOF > conftest.$ac_ext
6079 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6080 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6081 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6082    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6083 # define LT_DLSYM_CONST
6084 #elif defined(__osf__)
6085 /* This system does not cope well with relocations in const data.  */
6086 # define LT_DLSYM_CONST
6087 #else
6088 # define LT_DLSYM_CONST const
6089 #endif
6090
6091 #ifdef __cplusplus
6092 extern "C" {
6093 #endif
6094
6095 _LT_EOF
6096           # Now generate the symbol file.
6097           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6098
6099           cat <<_LT_EOF >> conftest.$ac_ext
6100
6101 /* The mapping between symbol names and symbols.  */
6102 LT_DLSYM_CONST struct {
6103   const char *name;
6104   void       *address;
6105 }
6106 lt__PROGRAM__LTX_preloaded_symbols[] =
6107 {
6108   { "@PROGRAM@", (void *) 0 },
6109 _LT_EOF
6110           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6111           cat <<\_LT_EOF >> conftest.$ac_ext
6112   {0, (void *) 0}
6113 };
6114
6115 /* This works around a problem in FreeBSD linker */
6116 #ifdef FREEBSD_WORKAROUND
6117 static const void *lt_preloaded_setup() {
6118   return lt__PROGRAM__LTX_preloaded_symbols;
6119 }
6120 #endif
6121
6122 #ifdef __cplusplus
6123 }
6124 #endif
6125 _LT_EOF
6126           # Now try linking the two files.
6127           mv conftest.$ac_objext conftstm.$ac_objext
6128           lt_globsym_save_LIBS=$LIBS
6129           lt_globsym_save_CFLAGS=$CFLAGS
6130           LIBS="conftstm.$ac_objext"
6131           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6132           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6133   (eval $ac_link) 2>&5
6134   ac_status=$?
6135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6137             pipe_works=yes
6138           fi
6139           LIBS=$lt_globsym_save_LIBS
6140           CFLAGS=$lt_globsym_save_CFLAGS
6141         else
6142           echo "cannot find nm_test_func in $nlist" >&5
6143         fi
6144       else
6145         echo "cannot find nm_test_var in $nlist" >&5
6146       fi
6147     else
6148       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6149     fi
6150   else
6151     echo "$progname: failed program was:" >&5
6152     cat conftest.$ac_ext >&5
6153   fi
6154   rm -rf conftest* conftst*
6155
6156   # Do not use the global_symbol_pipe unless it works.
6157   if test "$pipe_works" = yes; then
6158     break
6159   else
6160     lt_cv_sys_global_symbol_pipe=
6161   fi
6162 done
6163
6164 fi
6165
6166 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6167   lt_cv_sys_global_symbol_to_cdecl=
6168 fi
6169 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6171 $as_echo "failed" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6174 $as_echo "ok" >&6; }
6175 fi
6176
6177 # Response file support.
6178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6179   nm_file_list_spec='@'
6180 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6181   nm_file_list_spec='@'
6182 fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6211 $as_echo_n "checking for sysroot... " >&6; }
6212
6213 # Check whether --with-sysroot was given.
6214 if test "${with_sysroot+set}" = set; then :
6215   withval=$with_sysroot;
6216 else
6217   with_sysroot=no
6218 fi
6219
6220
6221 lt_sysroot=
6222 case ${with_sysroot} in #(
6223  yes)
6224    if test "$GCC" = yes; then
6225      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6226    fi
6227    ;; #(
6228  /*)
6229    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6230    ;; #(
6231  no|'')
6232    ;; #(
6233  *)
6234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6235 $as_echo "${with_sysroot}" >&6; }
6236    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6237    ;;
6238 esac
6239
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6241 $as_echo "${lt_sysroot:-no}" >&6; }
6242
6243
6244
6245
6246
6247 # Check whether --enable-libtool-lock was given.
6248 if test "${enable_libtool_lock+set}" = set; then :
6249   enableval=$enable_libtool_lock;
6250 fi
6251
6252 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6253
6254 # Some flags need to be propagated to the compiler or linker for good
6255 # libtool support.
6256 case $host in
6257 ia64-*-hpux*)
6258   # Find out which ABI we are using.
6259   echo 'int i;' > conftest.$ac_ext
6260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261   (eval $ac_compile) 2>&5
6262   ac_status=$?
6263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264   test $ac_status = 0; }; then
6265     case `/usr/bin/file conftest.$ac_objext` in
6266       *ELF-32*)
6267         HPUX_IA64_MODE="32"
6268         ;;
6269       *ELF-64*)
6270         HPUX_IA64_MODE="64"
6271         ;;
6272     esac
6273   fi
6274   rm -rf conftest*
6275   ;;
6276 *-*-irix6*)
6277   # Find out which ABI we are using.
6278   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280   (eval $ac_compile) 2>&5
6281   ac_status=$?
6282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283   test $ac_status = 0; }; then
6284     if test "$lt_cv_prog_gnu_ld" = yes; then
6285       case `/usr/bin/file conftest.$ac_objext` in
6286         *32-bit*)
6287           LD="${LD-ld} -melf32bsmip"
6288           ;;
6289         *N32*)
6290           LD="${LD-ld} -melf32bmipn32"
6291           ;;
6292         *64-bit*)
6293           LD="${LD-ld} -melf64bmip"
6294         ;;
6295       esac
6296     else
6297       case `/usr/bin/file conftest.$ac_objext` in
6298         *32-bit*)
6299           LD="${LD-ld} -32"
6300           ;;
6301         *N32*)
6302           LD="${LD-ld} -n32"
6303           ;;
6304         *64-bit*)
6305           LD="${LD-ld} -64"
6306           ;;
6307       esac
6308     fi
6309   fi
6310   rm -rf conftest*
6311   ;;
6312
6313 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6314 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6315   # Find out which ABI we are using.
6316   echo 'int i;' > conftest.$ac_ext
6317   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6318   (eval $ac_compile) 2>&5
6319   ac_status=$?
6320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6321   test $ac_status = 0; }; then
6322     case `/usr/bin/file conftest.o` in
6323       *32-bit*)
6324         case $host in
6325           x86_64-*kfreebsd*-gnu)
6326             LD="${LD-ld} -m elf_i386_fbsd"
6327             ;;
6328           x86_64-*linux*)
6329             LD="${LD-ld} -m elf_i386"
6330             ;;
6331           ppc64-*linux*|powerpc64-*linux*)
6332             LD="${LD-ld} -m elf32ppclinux"
6333             ;;
6334           s390x-*linux*)
6335             LD="${LD-ld} -m elf_s390"
6336             ;;
6337           sparc64-*linux*)
6338             LD="${LD-ld} -m elf32_sparc"
6339             ;;
6340         esac
6341         ;;
6342       *64-bit*)
6343         case $host in
6344           x86_64-*kfreebsd*-gnu)
6345             LD="${LD-ld} -m elf_x86_64_fbsd"
6346             ;;
6347           x86_64-*linux*)
6348             LD="${LD-ld} -m elf_x86_64"
6349             ;;
6350           ppc*-*linux*|powerpc*-*linux*)
6351             LD="${LD-ld} -m elf64ppc"
6352             ;;
6353           s390*-*linux*|s390*-*tpf*)
6354             LD="${LD-ld} -m elf64_s390"
6355             ;;
6356           sparc*-*linux*)
6357             LD="${LD-ld} -m elf64_sparc"
6358             ;;
6359         esac
6360         ;;
6361     esac
6362   fi
6363   rm -rf conftest*
6364   ;;
6365
6366 *-*-sco3.2v5*)
6367   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6368   SAVE_CFLAGS="$CFLAGS"
6369   CFLAGS="$CFLAGS -belf"
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6371 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6372 if ${lt_cv_cc_needs_belf+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   ac_ext=c
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380
6381      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h.  */
6383
6384 int
6385 main ()
6386 {
6387
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_link "$LINENO"; then :
6393   lt_cv_cc_needs_belf=yes
6394 else
6395   lt_cv_cc_needs_belf=no
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext \
6398     conftest$ac_exeext conftest.$ac_ext
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 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6407 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6408   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6409     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6410     CFLAGS="$SAVE_CFLAGS"
6411   fi
6412   ;;
6413 *-*solaris*)
6414   # Find out which ABI we are using.
6415   echo 'int i;' > conftest.$ac_ext
6416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417   (eval $ac_compile) 2>&5
6418   ac_status=$?
6419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420   test $ac_status = 0; }; then
6421     case `/usr/bin/file conftest.o` in
6422     *64-bit*)
6423       case $lt_cv_prog_gnu_ld in
6424       yes*)
6425         case $host in
6426         i?86-*-solaris*)
6427           LD="${LD-ld} -m elf_x86_64"
6428           ;;
6429         sparc*-*-solaris*)
6430           LD="${LD-ld} -m elf64_sparc"
6431           ;;
6432         esac
6433         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6434         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6435           LD="${LD-ld}_sol2"
6436         fi
6437         ;;
6438       *)
6439         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6440           LD="${LD-ld} -64"
6441         fi
6442         ;;
6443       esac
6444       ;;
6445     esac
6446   fi
6447   rm -rf conftest*
6448   ;;
6449 esac
6450
6451 need_locks="$enable_libtool_lock"
6452
6453 if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}mt; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$MANIFEST_TOOL"; then
6462   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6482 if test -n "$MANIFEST_TOOL"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6484 $as_echo "$MANIFEST_TOOL" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6493   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6494   # Extract the first word of "mt", so it can be a program name with args.
6495 set dummy mt; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$ac_ct_MANIFEST_TOOL"; then
6502   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516   done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6522 if test -n "$ac_ct_MANIFEST_TOOL"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6524 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6531     MANIFEST_TOOL=":"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6540   fi
6541 else
6542   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6543 fi
6544
6545 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6547 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6548 if ${lt_cv_path_mainfest_tool+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   lt_cv_path_mainfest_tool=no
6552   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6553   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6554   cat conftest.err >&5
6555   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6556     lt_cv_path_mainfest_tool=yes
6557   fi
6558   rm -f conftest*
6559 fi
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6561 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6562 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6563   MANIFEST_TOOL=:
6564 fi
6565
6566
6567
6568
6569
6570
6571   case $host_os in
6572     rhapsody* | darwin*)
6573     if test -n "$ac_tool_prefix"; then
6574   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   if test -n "$DSYMUTIL"; then
6582   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6602 if test -n "$DSYMUTIL"; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6604 $as_echo "$DSYMUTIL" >&6; }
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610
6611 fi
6612 if test -z "$ac_cv_prog_DSYMUTIL"; then
6613   ac_ct_DSYMUTIL=$DSYMUTIL
6614   # Extract the first word of "dsymutil", so it can be a program name with args.
6615 set dummy dsymutil; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6619   $as_echo_n "(cached) " >&6
6620 else
6621   if test -n "$ac_ct_DSYMUTIL"; then
6622   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629     for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636   done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6642 if test -n "$ac_ct_DSYMUTIL"; then
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6644 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6645 else
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650   if test "x$ac_ct_DSYMUTIL" = x; then
6651     DSYMUTIL=":"
6652   else
6653     case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659     DSYMUTIL=$ac_ct_DSYMUTIL
6660   fi
6661 else
6662   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6663 fi
6664
6665     if test -n "$ac_tool_prefix"; then
6666   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_NMEDIT+:} false; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   if test -n "$NMEDIT"; then
6674   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681     for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688   done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 NMEDIT=$ac_cv_prog_NMEDIT
6694 if test -n "$NMEDIT"; then
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6696 $as_echo "$NMEDIT" >&6; }
6697 else
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702
6703 fi
6704 if test -z "$ac_cv_prog_NMEDIT"; then
6705   ac_ct_NMEDIT=$NMEDIT
6706   # Extract the first word of "nmedit", so it can be a program name with args.
6707 set dummy nmedit; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$ac_ct_NMEDIT"; then
6714   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6734 if test -n "$ac_ct_NMEDIT"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6736 $as_echo "$ac_ct_NMEDIT" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742   if test "x$ac_ct_NMEDIT" = x; then
6743     NMEDIT=":"
6744   else
6745     case $cross_compiling:$ac_tool_warned in
6746 yes:)
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6750 esac
6751     NMEDIT=$ac_ct_NMEDIT
6752   fi
6753 else
6754   NMEDIT="$ac_cv_prog_NMEDIT"
6755 fi
6756
6757     if test -n "$ac_tool_prefix"; then
6758   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_LIPO+:} false; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   if test -n "$LIPO"; then
6766   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773     for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780   done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 LIPO=$ac_cv_prog_LIPO
6786 if test -n "$LIPO"; then
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6788 $as_echo "$LIPO" >&6; }
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_LIPO"; then
6797   ac_ct_LIPO=$LIPO
6798   # Extract the first word of "lipo", so it can be a program name with args.
6799 set dummy lipo; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test -n "$ac_ct_LIPO"; then
6806   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_prog_ac_ct_LIPO="lipo"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6826 if test -n "$ac_ct_LIPO"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6828 $as_echo "$ac_ct_LIPO" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834   if test "x$ac_ct_LIPO" = x; then
6835     LIPO=":"
6836   else
6837     case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843     LIPO=$ac_ct_LIPO
6844   fi
6845 else
6846   LIPO="$ac_cv_prog_LIPO"
6847 fi
6848
6849     if test -n "$ac_tool_prefix"; then
6850   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}otool; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_OTOOL+:} false; then :
6855   $as_echo_n "(cached) " >&6
6856 else
6857   if test -n "$OTOOL"; then
6858   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865     for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872   done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 OTOOL=$ac_cv_prog_OTOOL
6878 if test -n "$OTOOL"; then
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6880 $as_echo "$OTOOL" >&6; }
6881 else
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886
6887 fi
6888 if test -z "$ac_cv_prog_OTOOL"; then
6889   ac_ct_OTOOL=$OTOOL
6890   # Extract the first word of "otool", so it can be a program name with args.
6891 set dummy otool; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   if test -n "$ac_ct_OTOOL"; then
6898   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_prog_ac_ct_OTOOL="otool"
6908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912   done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6918 if test -n "$ac_ct_OTOOL"; then
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6920 $as_echo "$ac_ct_OTOOL" >&6; }
6921 else
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926   if test "x$ac_ct_OTOOL" = x; then
6927     OTOOL=":"
6928   else
6929     case $cross_compiling:$ac_tool_warned in
6930 yes:)
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6934 esac
6935     OTOOL=$ac_ct_OTOOL
6936   fi
6937 else
6938   OTOOL="$ac_cv_prog_OTOOL"
6939 fi
6940
6941     if test -n "$ac_tool_prefix"; then
6942   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_OTOOL64+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   if test -n "$OTOOL64"; then
6950   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957     for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964   done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 OTOOL64=$ac_cv_prog_OTOOL64
6970 if test -n "$OTOOL64"; then
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6972 $as_echo "$OTOOL64" >&6; }
6973 else
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978
6979 fi
6980 if test -z "$ac_cv_prog_OTOOL64"; then
6981   ac_ct_OTOOL64=$OTOOL64
6982   # Extract the first word of "otool64", so it can be a program name with args.
6983 set dummy otool64; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   if test -n "$ac_ct_OTOOL64"; then
6990   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_prog_ac_ct_OTOOL64="otool64"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7010 if test -n "$ac_ct_OTOOL64"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7012 $as_echo "$ac_ct_OTOOL64" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018   if test "x$ac_ct_OTOOL64" = x; then
7019     OTOOL64=":"
7020   else
7021     case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7026 esac
7027     OTOOL64=$ac_ct_OTOOL64
7028   fi
7029 else
7030   OTOOL64="$ac_cv_prog_OTOOL64"
7031 fi
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7060 $as_echo_n "checking for -single_module linker flag... " >&6; }
7061 if ${lt_cv_apple_cc_single_mod+:} false; then :
7062   $as_echo_n "(cached) " >&6
7063 else
7064   lt_cv_apple_cc_single_mod=no
7065       if test -z "${LT_MULTI_MODULE}"; then
7066         # By default we will add the -single_module flag. You can override
7067         # by either setting the environment variable LT_MULTI_MODULE
7068         # non-empty at configure time, or by adding -multi_module to the
7069         # link flags.
7070         rm -rf libconftest.dylib*
7071         echo "int foo(void){return 1;}" > conftest.c
7072         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7073 -dynamiclib -Wl,-single_module conftest.c" >&5
7074         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7075           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7076         _lt_result=$?
7077         # If there is a non-empty error log, and "single_module"
7078         # appears in it, assume the flag caused a linker warning
7079         if test -s conftest.err && $GREP single_module conftest.err; then
7080           cat conftest.err >&5
7081         # Otherwise, if the output was created with a 0 exit code from
7082         # the compiler, it worked.
7083         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7084           lt_cv_apple_cc_single_mod=yes
7085         else
7086           cat conftest.err >&5
7087         fi
7088         rm -rf libconftest.dylib*
7089         rm -f conftest.*
7090       fi
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7093 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7094
7095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7096 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7097 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   lt_cv_ld_exported_symbols_list=no
7101       save_LDFLAGS=$LDFLAGS
7102       echo "_main" > conftest.sym
7103       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7104       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h.  */
7106
7107 int
7108 main ()
7109 {
7110
7111   ;
7112   return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_link "$LINENO"; then :
7116   lt_cv_ld_exported_symbols_list=yes
7117 else
7118   lt_cv_ld_exported_symbols_list=no
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext \
7121     conftest$ac_exeext conftest.$ac_ext
7122         LDFLAGS="$save_LDFLAGS"
7123
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7126 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7127
7128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7129 $as_echo_n "checking for -force_load linker flag... " >&6; }
7130 if ${lt_cv_ld_force_load+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   lt_cv_ld_force_load=no
7134       cat > conftest.c << _LT_EOF
7135 int forced_loaded() { return 2;}
7136 _LT_EOF
7137       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7138       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7139       echo "$AR cru libconftest.a conftest.o" >&5
7140       $AR cru libconftest.a conftest.o 2>&5
7141       echo "$RANLIB libconftest.a" >&5
7142       $RANLIB libconftest.a 2>&5
7143       cat > conftest.c << _LT_EOF
7144 int main() { return 0;}
7145 _LT_EOF
7146       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7147       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7148       _lt_result=$?
7149       if test -s conftest.err && $GREP force_load conftest.err; then
7150         cat conftest.err >&5
7151       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7152         lt_cv_ld_force_load=yes
7153       else
7154         cat conftest.err >&5
7155       fi
7156         rm -f conftest.err libconftest.a conftest conftest.c
7157         rm -rf conftest.dSYM
7158
7159 fi
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7161 $as_echo "$lt_cv_ld_force_load" >&6; }
7162     case $host_os in
7163     rhapsody* | darwin1.[012])
7164       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7165     darwin1.*)
7166       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7167     darwin*) # darwin 5.x on
7168       # if running on 10.5 or later, the deployment target defaults
7169       # to the OS version, if on x86, and 10.4, the deployment
7170       # target defaults to 10.4. Don't you love it?
7171       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7172         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7173           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7174         10.[012]*)
7175           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7176         10.*)
7177           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7178       esac
7179     ;;
7180   esac
7181     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7182       _lt_dar_single_mod='$single_module'
7183     fi
7184     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7185       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7186     else
7187       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7188     fi
7189     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7190       _lt_dsymutil='~$DSYMUTIL $lib || :'
7191     else
7192       _lt_dsymutil=
7193     fi
7194     ;;
7195   esac
7196
7197 ac_ext=c
7198 ac_cpp='$CPP $CPPFLAGS'
7199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7203 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7204 # On Suns, sometimes $CPP names a directory.
7205 if test -n "$CPP" && test -d "$CPP"; then
7206   CPP=
7207 fi
7208 if test -z "$CPP"; then
7209   if ${ac_cv_prog_CPP+:} false; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212       # Double quotes because CPP needs to be expanded
7213     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7214     do
7215       ac_preproc_ok=false
7216 for ac_c_preproc_warn_flag in '' yes
7217 do
7218   # Use a header file that comes with gcc, so configuring glibc
7219   # with a fresh cross-compiler works.
7220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7221   # <limits.h> exists even on freestanding compilers.
7222   # On the NeXT, cc -E runs the code through the compiler's parser,
7223   # not just through cpp. "Syntax error" is here to catch this case.
7224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226 #ifdef __STDC__
7227 # include <limits.h>
7228 #else
7229 # include <assert.h>
7230 #endif
7231                      Syntax error
7232 _ACEOF
7233 if ac_fn_c_try_cpp "$LINENO"; then :
7234
7235 else
7236   # Broken: fails on valid input.
7237 continue
7238 fi
7239 rm -f conftest.err conftest.i conftest.$ac_ext
7240
7241   # OK, works on sane cases.  Now check whether nonexistent headers
7242   # can be detected and how.
7243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h.  */
7245 #include <ac_nonexistent.h>
7246 _ACEOF
7247 if ac_fn_c_try_cpp "$LINENO"; then :
7248   # Broken: success on invalid input.
7249 continue
7250 else
7251   # Passes both tests.
7252 ac_preproc_ok=:
7253 break
7254 fi
7255 rm -f conftest.err conftest.i conftest.$ac_ext
7256
7257 done
7258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7259 rm -f conftest.i conftest.err conftest.$ac_ext
7260 if $ac_preproc_ok; then :
7261   break
7262 fi
7263
7264     done
7265     ac_cv_prog_CPP=$CPP
7266
7267 fi
7268   CPP=$ac_cv_prog_CPP
7269 else
7270   ac_cv_prog_CPP=$CPP
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7273 $as_echo "$CPP" >&6; }
7274 ac_preproc_ok=false
7275 for ac_c_preproc_warn_flag in '' yes
7276 do
7277   # Use a header file that comes with gcc, so configuring glibc
7278   # with a fresh cross-compiler works.
7279   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280   # <limits.h> exists even on freestanding compilers.
7281   # On the NeXT, cc -E runs the code through the compiler's parser,
7282   # not just through cpp. "Syntax error" is here to catch this case.
7283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h.  */
7285 #ifdef __STDC__
7286 # include <limits.h>
7287 #else
7288 # include <assert.h>
7289 #endif
7290                      Syntax error
7291 _ACEOF
7292 if ac_fn_c_try_cpp "$LINENO"; then :
7293
7294 else
7295   # Broken: fails on valid input.
7296 continue
7297 fi
7298 rm -f conftest.err conftest.i conftest.$ac_ext
7299
7300   # OK, works on sane cases.  Now check whether nonexistent headers
7301   # can be detected and how.
7302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h.  */
7304 #include <ac_nonexistent.h>
7305 _ACEOF
7306 if ac_fn_c_try_cpp "$LINENO"; then :
7307   # Broken: success on invalid input.
7308 continue
7309 else
7310   # Passes both tests.
7311 ac_preproc_ok=:
7312 break
7313 fi
7314 rm -f conftest.err conftest.i conftest.$ac_ext
7315
7316 done
7317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7318 rm -f conftest.i conftest.err conftest.$ac_ext
7319 if $ac_preproc_ok; then :
7320
7321 else
7322   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7324 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7325 See \`config.log' for more details" "$LINENO" 5; }
7326 fi
7327
7328 ac_ext=c
7329 ac_cpp='$CPP $CPPFLAGS'
7330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7336 $as_echo_n "checking for ANSI C header files... " >&6; }
7337 if ${ac_cv_header_stdc+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h.  */
7342 #include <stdlib.h>
7343 #include <stdarg.h>
7344 #include <string.h>
7345 #include <float.h>
7346
7347 int
7348 main ()
7349 {
7350
7351   ;
7352   return 0;
7353 }
7354 _ACEOF
7355 if ac_fn_c_try_compile "$LINENO"; then :
7356   ac_cv_header_stdc=yes
7357 else
7358   ac_cv_header_stdc=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361
7362 if test $ac_cv_header_stdc = yes; then
7363   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h.  */
7366 #include <string.h>
7367
7368 _ACEOF
7369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7370   $EGREP "memchr" >/dev/null 2>&1; then :
7371
7372 else
7373   ac_cv_header_stdc=no
7374 fi
7375 rm -f conftest*
7376
7377 fi
7378
7379 if test $ac_cv_header_stdc = yes; then
7380   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h.  */
7383 #include <stdlib.h>
7384
7385 _ACEOF
7386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7387   $EGREP "free" >/dev/null 2>&1; then :
7388
7389 else
7390   ac_cv_header_stdc=no
7391 fi
7392 rm -f conftest*
7393
7394 fi
7395
7396 if test $ac_cv_header_stdc = yes; then
7397   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7398   if test "$cross_compiling" = yes; then :
7399   :
7400 else
7401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h.  */
7403 #include <ctype.h>
7404 #include <stdlib.h>
7405 #if ((' ' & 0x0FF) == 0x020)
7406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7408 #else
7409 # define ISLOWER(c) \
7410                    (('a' <= (c) && (c) <= 'i') \
7411                      || ('j' <= (c) && (c) <= 'r') \
7412                      || ('s' <= (c) && (c) <= 'z'))
7413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7414 #endif
7415
7416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7417 int
7418 main ()
7419 {
7420   int i;
7421   for (i = 0; i < 256; i++)
7422     if (XOR (islower (i), ISLOWER (i))
7423         || toupper (i) != TOUPPER (i))
7424       return 2;
7425   return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_run "$LINENO"; then :
7429
7430 else
7431   ac_cv_header_stdc=no
7432 fi
7433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7434   conftest.$ac_objext conftest.beam conftest.$ac_ext
7435 fi
7436
7437 fi
7438 fi
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7440 $as_echo "$ac_cv_header_stdc" >&6; }
7441 if test $ac_cv_header_stdc = yes; then
7442
7443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7444
7445 fi
7446
7447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7448 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7449                   inttypes.h stdint.h unistd.h
7450 do :
7451   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7453 "
7454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7455   cat >>confdefs.h <<_ACEOF
7456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 _ACEOF
7458
7459 fi
7460
7461 done
7462
7463
7464 for ac_header in dlfcn.h
7465 do :
7466   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7467 "
7468 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7469   cat >>confdefs.h <<_ACEOF
7470 #define HAVE_DLFCN_H 1
7471 _ACEOF
7472
7473 fi
7474
7475 done
7476
7477
7478
7479
7480
7481 # Set options
7482
7483
7484
7485         enable_dlopen=no
7486
7487
7488   enable_win32_dll=no
7489
7490
7491             # Check whether --enable-shared was given.
7492 if test "${enable_shared+set}" = set; then :
7493   enableval=$enable_shared; p=${PACKAGE-default}
7494     case $enableval in
7495     yes) enable_shared=yes ;;
7496     no) enable_shared=no ;;
7497     *)
7498       enable_shared=no
7499       # Look at the argument we got.  We use all the common list separators.
7500       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7501       for pkg in $enableval; do
7502         IFS="$lt_save_ifs"
7503         if test "X$pkg" = "X$p"; then
7504           enable_shared=yes
7505         fi
7506       done
7507       IFS="$lt_save_ifs"
7508       ;;
7509     esac
7510 else
7511   enable_shared=yes
7512 fi
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522   # Check whether --enable-static was given.
7523 if test "${enable_static+set}" = set; then :
7524   enableval=$enable_static; p=${PACKAGE-default}
7525     case $enableval in
7526     yes) enable_static=yes ;;
7527     no) enable_static=no ;;
7528     *)
7529      enable_static=no
7530       # Look at the argument we got.  We use all the common list separators.
7531       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7532       for pkg in $enableval; do
7533         IFS="$lt_save_ifs"
7534         if test "X$pkg" = "X$p"; then
7535           enable_static=yes
7536         fi
7537       done
7538       IFS="$lt_save_ifs"
7539       ;;
7540     esac
7541 else
7542   enable_static=yes
7543 fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 # Check whether --with-pic was given.
7555 if test "${with_pic+set}" = set; then :
7556   withval=$with_pic; lt_p=${PACKAGE-default}
7557     case $withval in
7558     yes|no) pic_mode=$withval ;;
7559     *)
7560       pic_mode=default
7561       # Look at the argument we got.  We use all the common list separators.
7562       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7563       for lt_pkg in $withval; do
7564         IFS="$lt_save_ifs"
7565         if test "X$lt_pkg" = "X$lt_p"; then
7566           pic_mode=yes
7567         fi
7568       done
7569       IFS="$lt_save_ifs"
7570       ;;
7571     esac
7572 else
7573   pic_mode=default
7574 fi
7575
7576
7577 test -z "$pic_mode" && pic_mode=default
7578
7579
7580
7581
7582
7583
7584
7585   # Check whether --enable-fast-install was given.
7586 if test "${enable_fast_install+set}" = set; then :
7587   enableval=$enable_fast_install; p=${PACKAGE-default}
7588     case $enableval in
7589     yes) enable_fast_install=yes ;;
7590     no) enable_fast_install=no ;;
7591     *)
7592       enable_fast_install=no
7593       # Look at the argument we got.  We use all the common list separators.
7594       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7595       for pkg in $enableval; do
7596         IFS="$lt_save_ifs"
7597         if test "X$pkg" = "X$p"; then
7598           enable_fast_install=yes
7599         fi
7600       done
7601       IFS="$lt_save_ifs"
7602       ;;
7603     esac
7604 else
7605   enable_fast_install=yes
7606 fi
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 # This can be used to rebuild libtool when needed
7619 LIBTOOL_DEPS="$ltmain"
7620
7621 # Always use our own libtool.
7622 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653 test -z "$LN_S" && LN_S="ln -s"
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668 if test -n "${ZSH_VERSION+set}" ; then
7669    setopt NO_GLOB_SUBST
7670 fi
7671
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7673 $as_echo_n "checking for objdir... " >&6; }
7674 if ${lt_cv_objdir+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   rm -f .libs 2>/dev/null
7678 mkdir .libs 2>/dev/null
7679 if test -d .libs; then
7680   lt_cv_objdir=.libs
7681 else
7682   # MS-DOS does not allow filenames that begin with a dot.
7683   lt_cv_objdir=_libs
7684 fi
7685 rmdir .libs 2>/dev/null
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7688 $as_echo "$lt_cv_objdir" >&6; }
7689 objdir=$lt_cv_objdir
7690
7691
7692
7693
7694
7695 cat >>confdefs.h <<_ACEOF
7696 #define LT_OBJDIR "$lt_cv_objdir/"
7697 _ACEOF
7698
7699
7700
7701
7702 case $host_os in
7703 aix3*)
7704   # AIX sometimes has problems with the GCC collect2 program.  For some
7705   # reason, if we set the COLLECT_NAMES environment variable, the problems
7706   # vanish in a puff of smoke.
7707   if test "X${COLLECT_NAMES+set}" != Xset; then
7708     COLLECT_NAMES=
7709     export COLLECT_NAMES
7710   fi
7711   ;;
7712 esac
7713
7714 # Global variables:
7715 ofile=libtool
7716 can_build_shared=yes
7717
7718 # All known linkers require a `.a' archive for static linking (except MSVC,
7719 # which needs '.lib').
7720 libext=a
7721
7722 with_gnu_ld="$lt_cv_prog_gnu_ld"
7723
7724 old_CC="$CC"
7725 old_CFLAGS="$CFLAGS"
7726
7727 # Set sane defaults for various variables
7728 test -z "$CC" && CC=cc
7729 test -z "$LTCC" && LTCC=$CC
7730 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7731 test -z "$LD" && LD=ld
7732 test -z "$ac_objext" && ac_objext=o
7733
7734 for cc_temp in $compiler""; do
7735   case $cc_temp in
7736     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7737     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7738     \-*) ;;
7739     *) break;;
7740   esac
7741 done
7742 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7743
7744
7745 # Only perform the check for file, if the check method requires it
7746 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7747 case $deplibs_check_method in
7748 file_magic*)
7749   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7751 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7752 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7753   $as_echo_n "(cached) " >&6
7754 else
7755   case $MAGIC_CMD in
7756 [\\/*] |  ?:[\\/]*)
7757   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7758   ;;
7759 *)
7760   lt_save_MAGIC_CMD="$MAGIC_CMD"
7761   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7763   for ac_dir in $ac_dummy; do
7764     IFS="$lt_save_ifs"
7765     test -z "$ac_dir" && ac_dir=.
7766     if test -f $ac_dir/${ac_tool_prefix}file; then
7767       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7768       if test -n "$file_magic_test_file"; then
7769         case $deplibs_check_method in
7770         "file_magic "*)
7771           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7772           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7774             $EGREP "$file_magic_regex" > /dev/null; then
7775             :
7776           else
7777             cat <<_LT_EOF 1>&2
7778
7779 *** Warning: the command libtool uses to detect shared libraries,
7780 *** $file_magic_cmd, produces output that libtool cannot recognize.
7781 *** The result is that libtool may fail to recognize shared libraries
7782 *** as such.  This will affect the creation of libtool libraries that
7783 *** depend on shared libraries, but programs linked with such libtool
7784 *** libraries will work regardless of this problem.  Nevertheless, you
7785 *** may want to report the problem to your system manager and/or to
7786 *** bug-libtool@gnu.org
7787
7788 _LT_EOF
7789           fi ;;
7790         esac
7791       fi
7792       break
7793     fi
7794   done
7795   IFS="$lt_save_ifs"
7796   MAGIC_CMD="$lt_save_MAGIC_CMD"
7797   ;;
7798 esac
7799 fi
7800
7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802 if test -n "$MAGIC_CMD"; then
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7804 $as_echo "$MAGIC_CMD" >&6; }
7805 else
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811
7812
7813
7814 if test -z "$lt_cv_path_MAGIC_CMD"; then
7815   if test -n "$ac_tool_prefix"; then
7816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7817 $as_echo_n "checking for file... " >&6; }
7818 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   case $MAGIC_CMD in
7822 [\\/*] |  ?:[\\/]*)
7823   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7824   ;;
7825 *)
7826   lt_save_MAGIC_CMD="$MAGIC_CMD"
7827   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7828   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7829   for ac_dir in $ac_dummy; do
7830     IFS="$lt_save_ifs"
7831     test -z "$ac_dir" && ac_dir=.
7832     if test -f $ac_dir/file; then
7833       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7834       if test -n "$file_magic_test_file"; then
7835         case $deplibs_check_method in
7836         "file_magic "*)
7837           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7838           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7840             $EGREP "$file_magic_regex" > /dev/null; then
7841             :
7842           else
7843             cat <<_LT_EOF 1>&2
7844
7845 *** Warning: the command libtool uses to detect shared libraries,
7846 *** $file_magic_cmd, produces output that libtool cannot recognize.
7847 *** The result is that libtool may fail to recognize shared libraries
7848 *** as such.  This will affect the creation of libtool libraries that
7849 *** depend on shared libraries, but programs linked with such libtool
7850 *** libraries will work regardless of this problem.  Nevertheless, you
7851 *** may want to report the problem to your system manager and/or to
7852 *** bug-libtool@gnu.org
7853
7854 _LT_EOF
7855           fi ;;
7856         esac
7857       fi
7858       break
7859     fi
7860   done
7861   IFS="$lt_save_ifs"
7862   MAGIC_CMD="$lt_save_MAGIC_CMD"
7863   ;;
7864 esac
7865 fi
7866
7867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7868 if test -n "$MAGIC_CMD"; then
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7870 $as_echo "$MAGIC_CMD" >&6; }
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877   else
7878     MAGIC_CMD=:
7879   fi
7880 fi
7881
7882   fi
7883   ;;
7884 esac
7885
7886 # Use C for the default configuration in the libtool script
7887
7888 lt_save_CC="$CC"
7889 ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895
7896 # Source file extension for C test sources.
7897 ac_ext=c
7898
7899 # Object file extension for compiled C test sources.
7900 objext=o
7901 objext=$objext
7902
7903 # Code to be used in simple compile tests
7904 lt_simple_compile_test_code="int some_variable = 0;"
7905
7906 # Code to be used in simple link tests
7907 lt_simple_link_test_code='int main(){return(0);}'
7908
7909
7910
7911
7912
7913
7914
7915 # If no C compiler was specified, use CC.
7916 LTCC=${LTCC-"$CC"}
7917
7918 # If no C compiler flags were specified, use CFLAGS.
7919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7920
7921 # Allow CC to be a program name with arguments.
7922 compiler=$CC
7923
7924 # Save the default compiler, since it gets overwritten when the other
7925 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7926 compiler_DEFAULT=$CC
7927
7928 # save warnings/boilerplate of simple test code
7929 ac_outfile=conftest.$ac_objext
7930 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932 _lt_compiler_boilerplate=`cat conftest.err`
7933 $RM conftest*
7934
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7938 _lt_linker_boilerplate=`cat conftest.err`
7939 $RM -r conftest*
7940
7941
7942 if test -n "$compiler"; then
7943
7944 lt_prog_compiler_no_builtin_flag=
7945
7946 if test "$GCC" = yes; then
7947   case $cc_basename in
7948   nvcc*)
7949     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7950   *)
7951     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7952   esac
7953
7954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7955 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7956 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   lt_cv_prog_compiler_rtti_exceptions=no
7960    ac_outfile=conftest.$ac_objext
7961    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7962    lt_compiler_flag="-fno-rtti -fno-exceptions"
7963    # Insert the option either (1) after the last *FLAGS variable, or
7964    # (2) before a word containing "conftest.", or (3) at the end.
7965    # Note that $ac_compile itself does not contain backslashes and begins
7966    # with a dollar sign (not a hyphen), so the echo should work correctly.
7967    # The option is referenced via a variable to avoid confusing sed.
7968    lt_compile=`echo "$ac_compile" | $SED \
7969    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971    -e 's:$: $lt_compiler_flag:'`
7972    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7973    (eval "$lt_compile" 2>conftest.err)
7974    ac_status=$?
7975    cat conftest.err >&5
7976    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977    if (exit $ac_status) && test -s "$ac_outfile"; then
7978      # The compiler can only warn and ignore the option if not recognized
7979      # So say no if there are warnings other than the usual output.
7980      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7981      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7982      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7983        lt_cv_prog_compiler_rtti_exceptions=yes
7984      fi
7985    fi
7986    $RM conftest*
7987
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7990 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7991
7992 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7993     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7994 else
7995     :
7996 fi
7997
7998 fi
7999
8000
8001
8002
8003
8004
8005   lt_prog_compiler_wl=
8006 lt_prog_compiler_pic=
8007 lt_prog_compiler_static=
8008
8009
8010   if test "$GCC" = yes; then
8011     lt_prog_compiler_wl='-Wl,'
8012     lt_prog_compiler_static='-static'
8013
8014     case $host_os in
8015       aix*)
8016       # All AIX code is PIC.
8017       if test "$host_cpu" = ia64; then
8018         # AIX 5 now supports IA64 processor
8019         lt_prog_compiler_static='-Bstatic'
8020       fi
8021       ;;
8022
8023     amigaos*)
8024       case $host_cpu in
8025       powerpc)
8026             # see comment about AmigaOS4 .so support
8027             lt_prog_compiler_pic='-fPIC'
8028         ;;
8029       m68k)
8030             # FIXME: we need at least 68020 code to build shared libraries, but
8031             # adding the `-m68020' flag to GCC prevents building anything better,
8032             # like `-m68040'.
8033             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8034         ;;
8035       esac
8036       ;;
8037
8038     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8039       # PIC is the default for these OSes.
8040       ;;
8041
8042     mingw* | cygwin* | pw32* | os2* | cegcc*)
8043       # This hack is so that the source file can tell whether it is being
8044       # built for inclusion in a dll (and should export symbols for example).
8045       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8046       # (--disable-auto-import) libraries
8047       lt_prog_compiler_pic='-DDLL_EXPORT'
8048       ;;
8049
8050     darwin* | rhapsody*)
8051       # PIC is the default on this platform
8052       # Common symbols not allowed in MH_DYLIB files
8053       lt_prog_compiler_pic='-fno-common'
8054       ;;
8055
8056     haiku*)
8057       # PIC is the default for Haiku.
8058       # The "-static" flag exists, but is broken.
8059       lt_prog_compiler_static=
8060       ;;
8061
8062     hpux*)
8063       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8064       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8065       # sets the default TLS model and affects inlining.
8066       case $host_cpu in
8067       hppa*64*)
8068         # +Z the default
8069         ;;
8070       *)
8071         lt_prog_compiler_pic='-fPIC'
8072         ;;
8073       esac
8074       ;;
8075
8076     interix[3-9]*)
8077       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8078       # Instead, we relocate shared libraries at runtime.
8079       ;;
8080
8081     msdosdjgpp*)
8082       # Just because we use GCC doesn't mean we suddenly get shared libraries
8083       # on systems that don't support them.
8084       lt_prog_compiler_can_build_shared=no
8085       enable_shared=no
8086       ;;
8087
8088     *nto* | *qnx*)
8089       # QNX uses GNU C++, but need to define -shared option too, otherwise
8090       # it will coredump.
8091       lt_prog_compiler_pic='-fPIC -shared'
8092       ;;
8093
8094     sysv4*MP*)
8095       if test -d /usr/nec; then
8096         lt_prog_compiler_pic=-Kconform_pic
8097       fi
8098       ;;
8099
8100     *)
8101       lt_prog_compiler_pic='-fPIC'
8102       ;;
8103     esac
8104
8105     case $cc_basename in
8106     nvcc*) # Cuda Compiler Driver 2.2
8107       lt_prog_compiler_wl='-Xlinker '
8108       if test -n "$lt_prog_compiler_pic"; then
8109         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8110       fi
8111       ;;
8112     esac
8113   else
8114     # PORTME Check for flag to pass linker flags through the system compiler.
8115     case $host_os in
8116     aix*)
8117       lt_prog_compiler_wl='-Wl,'
8118       if test "$host_cpu" = ia64; then
8119         # AIX 5 now supports IA64 processor
8120         lt_prog_compiler_static='-Bstatic'
8121       else
8122         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8123       fi
8124       ;;
8125
8126     mingw* | cygwin* | pw32* | os2* | cegcc*)
8127       # This hack is so that the source file can tell whether it is being
8128       # built for inclusion in a dll (and should export symbols for example).
8129       lt_prog_compiler_pic='-DDLL_EXPORT'
8130       ;;
8131
8132     hpux9* | hpux10* | hpux11*)
8133       lt_prog_compiler_wl='-Wl,'
8134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8135       # not for PA HP-UX.
8136       case $host_cpu in
8137       hppa*64*|ia64*)
8138         # +Z the default
8139         ;;
8140       *)
8141         lt_prog_compiler_pic='+Z'
8142         ;;
8143       esac
8144       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8145       lt_prog_compiler_static='${wl}-a ${wl}archive'
8146       ;;
8147
8148     irix5* | irix6* | nonstopux*)
8149       lt_prog_compiler_wl='-Wl,'
8150       # PIC (with -KPIC) is the default.
8151       lt_prog_compiler_static='-non_shared'
8152       ;;
8153
8154     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8155       case $cc_basename in
8156       # old Intel for x86_64 which still supported -KPIC.
8157       ecc*)
8158         lt_prog_compiler_wl='-Wl,'
8159         lt_prog_compiler_pic='-KPIC'
8160         lt_prog_compiler_static='-static'
8161         ;;
8162       # icc used to be incompatible with GCC.
8163       # ICC 10 doesn't accept -KPIC any more.
8164       icc* | ifort*)
8165         lt_prog_compiler_wl='-Wl,'
8166         lt_prog_compiler_pic='-fPIC'
8167         lt_prog_compiler_static='-static'
8168         ;;
8169       # Lahey Fortran 8.1.
8170       lf95*)
8171         lt_prog_compiler_wl='-Wl,'
8172         lt_prog_compiler_pic='--shared'
8173         lt_prog_compiler_static='--static'
8174         ;;
8175       nagfor*)
8176         # NAG Fortran compiler
8177         lt_prog_compiler_wl='-Wl,-Wl,,'
8178         lt_prog_compiler_pic='-PIC'
8179         lt_prog_compiler_static='-Bstatic'
8180         ;;
8181       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8182         # Portland Group compilers (*not* the Pentium gcc compiler,
8183         # which looks to be a dead project)
8184         lt_prog_compiler_wl='-Wl,'
8185         lt_prog_compiler_pic='-fpic'
8186         lt_prog_compiler_static='-Bstatic'
8187         ;;
8188       ccc*)
8189         lt_prog_compiler_wl='-Wl,'
8190         # All Alpha code is PIC.
8191         lt_prog_compiler_static='-non_shared'
8192         ;;
8193       xl* | bgxl* | bgf* | mpixl*)
8194         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8195         lt_prog_compiler_wl='-Wl,'
8196         lt_prog_compiler_pic='-qpic'
8197         lt_prog_compiler_static='-qstaticlink'
8198         ;;
8199       *)
8200         case `$CC -V 2>&1 | sed 5q` in
8201         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8202           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8203           lt_prog_compiler_pic='-KPIC'
8204           lt_prog_compiler_static='-Bstatic'
8205           lt_prog_compiler_wl=''
8206           ;;
8207         *Sun\ F* | *Sun*Fortran*)
8208           lt_prog_compiler_pic='-KPIC'
8209           lt_prog_compiler_static='-Bstatic'
8210           lt_prog_compiler_wl='-Qoption ld '
8211           ;;
8212         *Sun\ C*)
8213           # Sun C 5.9
8214           lt_prog_compiler_pic='-KPIC'
8215           lt_prog_compiler_static='-Bstatic'
8216           lt_prog_compiler_wl='-Wl,'
8217           ;;
8218         *Intel*\ [CF]*Compiler*)
8219           lt_prog_compiler_wl='-Wl,'
8220           lt_prog_compiler_pic='-fPIC'
8221           lt_prog_compiler_static='-static'
8222           ;;
8223         *Portland\ Group*)
8224           lt_prog_compiler_wl='-Wl,'
8225           lt_prog_compiler_pic='-fpic'
8226           lt_prog_compiler_static='-Bstatic'
8227           ;;
8228         esac
8229         ;;
8230       esac
8231       ;;
8232
8233     newsos6)
8234       lt_prog_compiler_pic='-KPIC'
8235       lt_prog_compiler_static='-Bstatic'
8236       ;;
8237
8238     *nto* | *qnx*)
8239       # QNX uses GNU C++, but need to define -shared option too, otherwise
8240       # it will coredump.
8241       lt_prog_compiler_pic='-fPIC -shared'
8242       ;;
8243
8244     osf3* | osf4* | osf5*)
8245       lt_prog_compiler_wl='-Wl,'
8246       # All OSF/1 code is PIC.
8247       lt_prog_compiler_static='-non_shared'
8248       ;;
8249
8250     rdos*)
8251       lt_prog_compiler_static='-non_shared'
8252       ;;
8253
8254     solaris*)
8255       lt_prog_compiler_pic='-KPIC'
8256       lt_prog_compiler_static='-Bstatic'
8257       case $cc_basename in
8258       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8259         lt_prog_compiler_wl='-Qoption ld ';;
8260       *)
8261         lt_prog_compiler_wl='-Wl,';;
8262       esac
8263       ;;
8264
8265     sunos4*)
8266       lt_prog_compiler_wl='-Qoption ld '
8267       lt_prog_compiler_pic='-PIC'
8268       lt_prog_compiler_static='-Bstatic'
8269       ;;
8270
8271     sysv4 | sysv4.2uw2* | sysv4.3*)
8272       lt_prog_compiler_wl='-Wl,'
8273       lt_prog_compiler_pic='-KPIC'
8274       lt_prog_compiler_static='-Bstatic'
8275       ;;
8276
8277     sysv4*MP*)
8278       if test -d /usr/nec ;then
8279         lt_prog_compiler_pic='-Kconform_pic'
8280         lt_prog_compiler_static='-Bstatic'
8281       fi
8282       ;;
8283
8284     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8285       lt_prog_compiler_wl='-Wl,'
8286       lt_prog_compiler_pic='-KPIC'
8287       lt_prog_compiler_static='-Bstatic'
8288       ;;
8289
8290     unicos*)
8291       lt_prog_compiler_wl='-Wl,'
8292       lt_prog_compiler_can_build_shared=no
8293       ;;
8294
8295     uts4*)
8296       lt_prog_compiler_pic='-pic'
8297       lt_prog_compiler_static='-Bstatic'
8298       ;;
8299
8300     *)
8301       lt_prog_compiler_can_build_shared=no
8302       ;;
8303     esac
8304   fi
8305
8306 case $host_os in
8307   # For platforms which do not support PIC, -DPIC is meaningless:
8308   *djgpp*)
8309     lt_prog_compiler_pic=
8310     ;;
8311   *)
8312     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8313     ;;
8314 esac
8315
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8317 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8318 if ${lt_cv_prog_compiler_pic+:} false; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8324 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8325 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8326
8327 #
8328 # Check to make sure the PIC flag actually works.
8329 #
8330 if test -n "$lt_prog_compiler_pic"; then
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8332 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8333 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   lt_cv_prog_compiler_pic_works=no
8337    ac_outfile=conftest.$ac_objext
8338    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8340    # Insert the option either (1) after the last *FLAGS variable, or
8341    # (2) before a word containing "conftest.", or (3) at the end.
8342    # Note that $ac_compile itself does not contain backslashes and begins
8343    # with a dollar sign (not a hyphen), so the echo should work correctly.
8344    # The option is referenced via a variable to avoid confusing sed.
8345    lt_compile=`echo "$ac_compile" | $SED \
8346    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348    -e 's:$: $lt_compiler_flag:'`
8349    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8350    (eval "$lt_compile" 2>conftest.err)
8351    ac_status=$?
8352    cat conftest.err >&5
8353    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354    if (exit $ac_status) && test -s "$ac_outfile"; then
8355      # The compiler can only warn and ignore the option if not recognized
8356      # So say no if there are warnings other than the usual output.
8357      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8358      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8359      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8360        lt_cv_prog_compiler_pic_works=yes
8361      fi
8362    fi
8363    $RM conftest*
8364
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8367 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8368
8369 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8370     case $lt_prog_compiler_pic in
8371      "" | " "*) ;;
8372      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8373      esac
8374 else
8375     lt_prog_compiler_pic=
8376      lt_prog_compiler_can_build_shared=no
8377 fi
8378
8379 fi
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391 #
8392 # Check to make sure the static flag actually works.
8393 #
8394 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8396 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8397 if ${lt_cv_prog_compiler_static_works+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   lt_cv_prog_compiler_static_works=no
8401    save_LDFLAGS="$LDFLAGS"
8402    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8403    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8404    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8405      # The linker can only warn and ignore the option if not recognized
8406      # So say no if there are warnings
8407      if test -s conftest.err; then
8408        # Append any errors to the config.log.
8409        cat conftest.err 1>&5
8410        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8411        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8412        if diff conftest.exp conftest.er2 >/dev/null; then
8413          lt_cv_prog_compiler_static_works=yes
8414        fi
8415      else
8416        lt_cv_prog_compiler_static_works=yes
8417      fi
8418    fi
8419    $RM -r conftest*
8420    LDFLAGS="$save_LDFLAGS"
8421
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8424 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8425
8426 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8427     :
8428 else
8429     lt_prog_compiler_static=
8430 fi
8431
8432
8433
8434
8435
8436
8437
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8440 if ${lt_cv_prog_compiler_c_o+:} false; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443   lt_cv_prog_compiler_c_o=no
8444    $RM -r conftest 2>/dev/null
8445    mkdir conftest
8446    cd conftest
8447    mkdir out
8448    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449
8450    lt_compiler_flag="-o out/conftest2.$ac_objext"
8451    # Insert the option either (1) after the last *FLAGS variable, or
8452    # (2) before a word containing "conftest.", or (3) at the end.
8453    # Note that $ac_compile itself does not contain backslashes and begins
8454    # with a dollar sign (not a hyphen), so the echo should work correctly.
8455    lt_compile=`echo "$ac_compile" | $SED \
8456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458    -e 's:$: $lt_compiler_flag:'`
8459    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460    (eval "$lt_compile" 2>out/conftest.err)
8461    ac_status=$?
8462    cat out/conftest.err >&5
8463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8465    then
8466      # The compiler can only warn and ignore the option if not recognized
8467      # So say no if there are warnings
8468      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8469      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8470      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8471        lt_cv_prog_compiler_c_o=yes
8472      fi
8473    fi
8474    chmod u+w . 2>&5
8475    $RM conftest*
8476    # SGI C++ compiler will create directory out/ii_files/ for
8477    # template instantiation
8478    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8479    $RM out/* && rmdir out
8480    cd ..
8481    $RM -r conftest
8482    $RM conftest*
8483
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8486 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8487
8488
8489
8490
8491
8492
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8495 if ${lt_cv_prog_compiler_c_o+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   lt_cv_prog_compiler_c_o=no
8499    $RM -r conftest 2>/dev/null
8500    mkdir conftest
8501    cd conftest
8502    mkdir out
8503    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8504
8505    lt_compiler_flag="-o out/conftest2.$ac_objext"
8506    # Insert the option either (1) after the last *FLAGS variable, or
8507    # (2) before a word containing "conftest.", or (3) at the end.
8508    # Note that $ac_compile itself does not contain backslashes and begins
8509    # with a dollar sign (not a hyphen), so the echo should work correctly.
8510    lt_compile=`echo "$ac_compile" | $SED \
8511    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513    -e 's:$: $lt_compiler_flag:'`
8514    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8515    (eval "$lt_compile" 2>out/conftest.err)
8516    ac_status=$?
8517    cat out/conftest.err >&5
8518    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8520    then
8521      # The compiler can only warn and ignore the option if not recognized
8522      # So say no if there are warnings
8523      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8524      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8525      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8526        lt_cv_prog_compiler_c_o=yes
8527      fi
8528    fi
8529    chmod u+w . 2>&5
8530    $RM conftest*
8531    # SGI C++ compiler will create directory out/ii_files/ for
8532    # template instantiation
8533    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8534    $RM out/* && rmdir out
8535    cd ..
8536    $RM -r conftest
8537    $RM conftest*
8538
8539 fi
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8541 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8542
8543
8544
8545
8546 hard_links="nottested"
8547 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8548   # do not overwrite the value of need_locks provided by the user
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8550 $as_echo_n "checking if we can lock with hard links... " >&6; }
8551   hard_links=yes
8552   $RM conftest*
8553   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8554   touch conftest.a
8555   ln conftest.a conftest.b 2>&5 || hard_links=no
8556   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8558 $as_echo "$hard_links" >&6; }
8559   if test "$hard_links" = no; then
8560     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8561 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8562     need_locks=warn
8563   fi
8564 else
8565   need_locks=no
8566 fi
8567
8568
8569
8570
8571
8572
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8575
8576   runpath_var=
8577   allow_undefined_flag=
8578   always_export_symbols=no
8579   archive_cmds=
8580   archive_expsym_cmds=
8581   compiler_needs_object=no
8582   enable_shared_with_static_runtimes=no
8583   export_dynamic_flag_spec=
8584   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8585   hardcode_automatic=no
8586   hardcode_direct=no
8587   hardcode_direct_absolute=no
8588   hardcode_libdir_flag_spec=
8589   hardcode_libdir_separator=
8590   hardcode_minus_L=no
8591   hardcode_shlibpath_var=unsupported
8592   inherit_rpath=no
8593   link_all_deplibs=unknown
8594   module_cmds=
8595   module_expsym_cmds=
8596   old_archive_from_new_cmds=
8597   old_archive_from_expsyms_cmds=
8598   thread_safe_flag_spec=
8599   whole_archive_flag_spec=
8600   # include_expsyms should be a list of space-separated symbols to be *always*
8601   # included in the symbol list
8602   include_expsyms=
8603   # exclude_expsyms can be an extended regexp of symbols to exclude
8604   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8605   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8606   # as well as any symbol that contains `d'.
8607   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8608   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8609   # platforms (ab)use it in PIC code, but their linkers get confused if
8610   # the symbol is explicitly referenced.  Since portable code cannot
8611   # rely on this symbol name, it's probably fine to never include it in
8612   # preloaded symbol tables.
8613   # Exclude shared library initialization/finalization symbols.
8614   extract_expsyms_cmds=
8615
8616   case $host_os in
8617   cygwin* | mingw* | pw32* | cegcc*)
8618     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8619     # When not using gcc, we currently assume that we are using
8620     # Microsoft Visual C++.
8621     if test "$GCC" != yes; then
8622       with_gnu_ld=no
8623     fi
8624     ;;
8625   interix*)
8626     # we just hope/assume this is gcc and not c89 (= MSVC++)
8627     with_gnu_ld=yes
8628     ;;
8629   openbsd*)
8630     with_gnu_ld=no
8631     ;;
8632   esac
8633
8634   ld_shlibs=yes
8635
8636   # On some targets, GNU ld is compatible enough with the native linker
8637   # that we're better off using the native interface for both.
8638   lt_use_gnu_ld_interface=no
8639   if test "$with_gnu_ld" = yes; then
8640     case $host_os in
8641       aix*)
8642         # The AIX port of GNU ld has always aspired to compatibility
8643         # with the native linker.  However, as the warning in the GNU ld
8644         # block says, versions before 2.19.5* couldn't really create working
8645         # shared libraries, regardless of the interface used.
8646         case `$LD -v 2>&1` in
8647           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8648           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8649           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8650           *)
8651             lt_use_gnu_ld_interface=yes
8652             ;;
8653         esac
8654         ;;
8655       *)
8656         lt_use_gnu_ld_interface=yes
8657         ;;
8658     esac
8659   fi
8660
8661   if test "$lt_use_gnu_ld_interface" = yes; then
8662     # If archive_cmds runs LD, not CC, wlarc should be empty
8663     wlarc='${wl}'
8664
8665     # Set some defaults for GNU ld with shared library support. These
8666     # are reset later if shared libraries are not supported. Putting them
8667     # here allows them to be overridden if necessary.
8668     runpath_var=LD_RUN_PATH
8669     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670     export_dynamic_flag_spec='${wl}--export-dynamic'
8671     # ancient GNU ld didn't support --whole-archive et. al.
8672     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8673       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8674     else
8675       whole_archive_flag_spec=
8676     fi
8677     supports_anon_versioning=no
8678     case `$LD -v 2>&1` in
8679       *GNU\ gold*) supports_anon_versioning=yes ;;
8680       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8681       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8682       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8683       *\ 2.11.*) ;; # other 2.11 versions
8684       *) supports_anon_versioning=yes ;;
8685     esac
8686
8687     # See if GNU ld supports shared libraries.
8688     case $host_os in
8689     aix[3-9]*)
8690       # On AIX/PPC, the GNU linker is very broken
8691       if test "$host_cpu" != ia64; then
8692         ld_shlibs=no
8693         cat <<_LT_EOF 1>&2
8694
8695 *** Warning: the GNU linker, at least up to release 2.19, is reported
8696 *** to be unable to reliably create shared libraries on AIX.
8697 *** Therefore, libtool is disabling shared libraries support.  If you
8698 *** really care for shared libraries, you may want to install binutils
8699 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8700 *** You will then need to restart the configuration process.
8701
8702 _LT_EOF
8703       fi
8704       ;;
8705
8706     amigaos*)
8707       case $host_cpu in
8708       powerpc)
8709             # see comment about AmigaOS4 .so support
8710             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711             archive_expsym_cmds=''
8712         ;;
8713       m68k)
8714             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)'
8715             hardcode_libdir_flag_spec='-L$libdir'
8716             hardcode_minus_L=yes
8717         ;;
8718       esac
8719       ;;
8720
8721     beos*)
8722       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8723         allow_undefined_flag=unsupported
8724         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8725         # support --undefined.  This deserves some investigation.  FIXME
8726         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727       else
8728         ld_shlibs=no
8729       fi
8730       ;;
8731
8732     cygwin* | mingw* | pw32* | cegcc*)
8733       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8734       # as there is no search path for DLLs.
8735       hardcode_libdir_flag_spec='-L$libdir'
8736       export_dynamic_flag_spec='${wl}--export-all-symbols'
8737       allow_undefined_flag=unsupported
8738       always_export_symbols=no
8739       enable_shared_with_static_runtimes=yes
8740       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'
8741       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8742
8743       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8744         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8745         # If the export-symbols file already is a .def file (1st line
8746         # is EXPORTS), use it as is; otherwise, prepend...
8747         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8748           cp $export_symbols $output_objdir/$soname.def;
8749         else
8750           echo EXPORTS > $output_objdir/$soname.def;
8751           cat $export_symbols >> $output_objdir/$soname.def;
8752         fi~
8753         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8754       else
8755         ld_shlibs=no
8756       fi
8757       ;;
8758
8759     haiku*)
8760       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761       link_all_deplibs=yes
8762       ;;
8763
8764     interix[3-9]*)
8765       hardcode_direct=no
8766       hardcode_shlibpath_var=no
8767       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768       export_dynamic_flag_spec='${wl}-E'
8769       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8770       # Instead, shared libraries are loaded at an image base (0x10000000 by
8771       # default) and relocated if they conflict, which is a slow very memory
8772       # consuming and fragmenting process.  To avoid this, we pick a random,
8773       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8774       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8775       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8776       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'
8777       ;;
8778
8779     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8780       tmp_diet=no
8781       if test "$host_os" = linux-dietlibc; then
8782         case $cc_basename in
8783           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8784         esac
8785       fi
8786       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8787          && test "$tmp_diet" = no
8788       then
8789         tmp_addflag=' $pic_flag'
8790         tmp_sharedflag='-shared'
8791         case $cc_basename,$host_cpu in
8792         pgcc*)                          # Portland Group C compiler
8793           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'
8794           tmp_addflag=' $pic_flag'
8795           ;;
8796         pgf77* | pgf90* | pgf95* | pgfortran*)
8797                                         # Portland Group f77 and f90 compilers
8798           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'
8799           tmp_addflag=' $pic_flag -Mnomain' ;;
8800         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8801           tmp_addflag=' -i_dynamic' ;;
8802         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8803           tmp_addflag=' -i_dynamic -nofor_main' ;;
8804         ifc* | ifort*)                  # Intel Fortran compiler
8805           tmp_addflag=' -nofor_main' ;;
8806         lf95*)                          # Lahey Fortran 8.1
8807           whole_archive_flag_spec=
8808           tmp_sharedflag='--shared' ;;
8809         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8810           tmp_sharedflag='-qmkshrobj'
8811           tmp_addflag= ;;
8812         nvcc*)  # Cuda Compiler Driver 2.2
8813           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'
8814           compiler_needs_object=yes
8815           ;;
8816         esac
8817         case `$CC -V 2>&1 | sed 5q` in
8818         *Sun\ C*)                       # Sun C 5.9
8819           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'
8820           compiler_needs_object=yes
8821           tmp_sharedflag='-G' ;;
8822         *Sun\ F*)                       # Sun Fortran 8.3
8823           tmp_sharedflag='-G' ;;
8824         esac
8825         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826
8827         if test "x$supports_anon_versioning" = xyes; then
8828           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8829             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8830             echo "local: *; };" >> $output_objdir/$libname.ver~
8831             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8832         fi
8833
8834         case $cc_basename in
8835         xlf* | bgf* | bgxlf* | mpixlf*)
8836           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8837           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8838           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8840           if test "x$supports_anon_versioning" = xyes; then
8841             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8842               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8843               echo "local: *; };" >> $output_objdir/$libname.ver~
8844               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8845           fi
8846           ;;
8847         esac
8848       else
8849         ld_shlibs=no
8850       fi
8851       ;;
8852
8853     netbsd*)
8854       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8855         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8856         wlarc=
8857       else
8858         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8860       fi
8861       ;;
8862
8863     solaris*)
8864       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8865         ld_shlibs=no
8866         cat <<_LT_EOF 1>&2
8867
8868 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8869 *** create shared libraries on Solaris systems.  Therefore, libtool
8870 *** is disabling shared libraries support.  We urge you to upgrade GNU
8871 *** binutils to release 2.9.1 or newer.  Another option is to modify
8872 *** your PATH or compiler configuration so that the native linker is
8873 *** used, and then restart.
8874
8875 _LT_EOF
8876       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8877         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8879       else
8880         ld_shlibs=no
8881       fi
8882       ;;
8883
8884     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8885       case `$LD -v 2>&1` in
8886         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8887         ld_shlibs=no
8888         cat <<_LT_EOF 1>&2
8889
8890 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8891 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8892 *** is disabling shared libraries support.  We urge you to upgrade GNU
8893 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8894 *** your PATH or compiler configuration so that the native linker is
8895 *** used, and then restart.
8896
8897 _LT_EOF
8898         ;;
8899         *)
8900           # For security reasons, it is highly recommended that you always
8901           # use absolute paths for naming shared libraries, and exclude the
8902           # DT_RUNPATH tag from executables and libraries.  But doing so
8903           # requires that you compile everything twice, which is a pain.
8904           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8905             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8908           else
8909             ld_shlibs=no
8910           fi
8911         ;;
8912       esac
8913       ;;
8914
8915     sunos4*)
8916       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8917       wlarc=
8918       hardcode_direct=yes
8919       hardcode_shlibpath_var=no
8920       ;;
8921
8922     *)
8923       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8924         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8925         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8926       else
8927         ld_shlibs=no
8928       fi
8929       ;;
8930     esac
8931
8932     if test "$ld_shlibs" = no; then
8933       runpath_var=
8934       hardcode_libdir_flag_spec=
8935       export_dynamic_flag_spec=
8936       whole_archive_flag_spec=
8937     fi
8938   else
8939     # PORTME fill in a description of your system's linker (not GNU ld)
8940     case $host_os in
8941     aix3*)
8942       allow_undefined_flag=unsupported
8943       always_export_symbols=yes
8944       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'
8945       # Note: this linker hardcodes the directories in LIBPATH if there
8946       # are no directories specified by -L.
8947       hardcode_minus_L=yes
8948       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8949         # Neither direct hardcoding nor static linking is supported with a
8950         # broken collect2.
8951         hardcode_direct=unsupported
8952       fi
8953       ;;
8954
8955     aix[4-9]*)
8956       if test "$host_cpu" = ia64; then
8957         # On IA64, the linker does run time linking by default, so we don't
8958         # have to do anything special.
8959         aix_use_runtimelinking=no
8960         exp_sym_flag='-Bexport'
8961         no_entry_flag=""
8962       else
8963         # If we're using GNU nm, then we don't want the "-C" option.
8964         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8965         # Also, AIX nm treats weak defined symbols like other global
8966         # defined symbols, whereas GNU nm marks them as "W".
8967         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8968           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'
8969         else
8970           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'
8971         fi
8972         aix_use_runtimelinking=no
8973
8974         # Test if we are trying to use run time linking or normal
8975         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8976         # need to do runtime linking.
8977         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8978           for ld_flag in $LDFLAGS; do
8979           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8980             aix_use_runtimelinking=yes
8981             break
8982           fi
8983           done
8984           ;;
8985         esac
8986
8987         exp_sym_flag='-bexport'
8988         no_entry_flag='-bnoentry'
8989       fi
8990
8991       # When large executables or shared objects are built, AIX ld can
8992       # have problems creating the table of contents.  If linking a library
8993       # or program results in "error TOC overflow" add -mminimal-toc to
8994       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8995       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8996
8997       archive_cmds=''
8998       hardcode_direct=yes
8999       hardcode_direct_absolute=yes
9000       hardcode_libdir_separator=':'
9001       link_all_deplibs=yes
9002       file_list_spec='${wl}-f,'
9003
9004       if test "$GCC" = yes; then
9005         case $host_os in aix4.[012]|aix4.[012].*)
9006         # We only want to do this on AIX 4.2 and lower, the check
9007         # below for broken collect2 doesn't work under 4.3+
9008           collect2name=`${CC} -print-prog-name=collect2`
9009           if test -f "$collect2name" &&
9010            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9011           then
9012           # We have reworked collect2
9013           :
9014           else
9015           # We have old collect2
9016           hardcode_direct=unsupported
9017           # It fails to find uninstalled libraries when the uninstalled
9018           # path is not listed in the libpath.  Setting hardcode_minus_L
9019           # to unsupported forces relinking
9020           hardcode_minus_L=yes
9021           hardcode_libdir_flag_spec='-L$libdir'
9022           hardcode_libdir_separator=
9023           fi
9024           ;;
9025         esac
9026         shared_flag='-shared'
9027         if test "$aix_use_runtimelinking" = yes; then
9028           shared_flag="$shared_flag "'${wl}-G'
9029         fi
9030       else
9031         # not using gcc
9032         if test "$host_cpu" = ia64; then
9033         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9034         # chokes on -Wl,-G. The following line is correct:
9035           shared_flag='-G'
9036         else
9037           if test "$aix_use_runtimelinking" = yes; then
9038             shared_flag='${wl}-G'
9039           else
9040             shared_flag='${wl}-bM:SRE'
9041           fi
9042         fi
9043       fi
9044
9045       export_dynamic_flag_spec='${wl}-bexpall'
9046       # It seems that -bexpall does not export symbols beginning with
9047       # underscore (_), so it is better to generate a list of symbols to export.
9048       always_export_symbols=yes
9049       if test "$aix_use_runtimelinking" = yes; then
9050         # Warning - without using the other runtime loading flags (-brtl),
9051         # -berok will link without error, but may produce a broken library.
9052         allow_undefined_flag='-berok'
9053         # Determine the default libpath from the value encoded in an
9054         # empty executable.
9055         if test "${lt_cv_aix_libpath+set}" = set; then
9056   aix_libpath=$lt_cv_aix_libpath
9057 else
9058   if ${lt_cv_aix_libpath_+:} false; then :
9059   $as_echo_n "(cached) " >&6
9060 else
9061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h.  */
9063
9064 int
9065 main ()
9066 {
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 if ac_fn_c_try_link "$LINENO"; then :
9073
9074   lt_aix_libpath_sed='
9075       /Import File Strings/,/^$/ {
9076           /^0/ {
9077               s/^0  *\([^ ]*\) *$/\1/
9078               p
9079           }
9080       }'
9081   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9082   # Check for a 64-bit object if we didn't find anything.
9083   if test -z "$lt_cv_aix_libpath_"; then
9084     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9085   fi
9086 fi
9087 rm -f core conftest.err conftest.$ac_objext \
9088     conftest$ac_exeext conftest.$ac_ext
9089   if test -z "$lt_cv_aix_libpath_"; then
9090     lt_cv_aix_libpath_="/usr/lib:/lib"
9091   fi
9092
9093 fi
9094
9095   aix_libpath=$lt_cv_aix_libpath_
9096 fi
9097
9098         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9099         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"
9100       else
9101         if test "$host_cpu" = ia64; then
9102           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9103           allow_undefined_flag="-z nodefs"
9104           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"
9105         else
9106          # Determine the default libpath from the value encoded in an
9107          # empty executable.
9108          if test "${lt_cv_aix_libpath+set}" = set; then
9109   aix_libpath=$lt_cv_aix_libpath
9110 else
9111   if ${lt_cv_aix_libpath_+:} false; then :
9112   $as_echo_n "(cached) " >&6
9113 else
9114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h.  */
9116
9117 int
9118 main ()
9119 {
9120
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 if ac_fn_c_try_link "$LINENO"; then :
9126
9127   lt_aix_libpath_sed='
9128       /Import File Strings/,/^$/ {
9129           /^0/ {
9130               s/^0  *\([^ ]*\) *$/\1/
9131               p
9132           }
9133       }'
9134   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9135   # Check for a 64-bit object if we didn't find anything.
9136   if test -z "$lt_cv_aix_libpath_"; then
9137     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9138   fi
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext \
9141     conftest$ac_exeext conftest.$ac_ext
9142   if test -z "$lt_cv_aix_libpath_"; then
9143     lt_cv_aix_libpath_="/usr/lib:/lib"
9144   fi
9145
9146 fi
9147
9148   aix_libpath=$lt_cv_aix_libpath_
9149 fi
9150
9151          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9152           # Warning - without using the other run time loading flags,
9153           # -berok will link without error, but may produce a broken library.
9154           no_undefined_flag=' ${wl}-bernotok'
9155           allow_undefined_flag=' ${wl}-berok'
9156           if test "$with_gnu_ld" = yes; then
9157             # We only use this code for GNU lds that support --whole-archive.
9158             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9159           else
9160             # Exported symbols can be pulled into shared objects from archives
9161             whole_archive_flag_spec='$convenience'
9162           fi
9163           archive_cmds_need_lc=yes
9164           # This is similar to how AIX traditionally builds its shared libraries.
9165           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'
9166         fi
9167       fi
9168       ;;
9169
9170     amigaos*)
9171       case $host_cpu in
9172       powerpc)
9173             # see comment about AmigaOS4 .so support
9174             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175             archive_expsym_cmds=''
9176         ;;
9177       m68k)
9178             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)'
9179             hardcode_libdir_flag_spec='-L$libdir'
9180             hardcode_minus_L=yes
9181         ;;
9182       esac
9183       ;;
9184
9185     bsdi[45]*)
9186       export_dynamic_flag_spec=-rdynamic
9187       ;;
9188
9189     cygwin* | mingw* | pw32* | cegcc*)
9190       # When not using gcc, we currently assume that we are using
9191       # Microsoft Visual C++.
9192       # hardcode_libdir_flag_spec is actually meaningless, as there is
9193       # no search path for DLLs.
9194       case $cc_basename in
9195       cl*)
9196         # Native MSVC
9197         hardcode_libdir_flag_spec=' '
9198         allow_undefined_flag=unsupported
9199         always_export_symbols=yes
9200         file_list_spec='@'
9201         # Tell ltmain to make .lib files, not .a files.
9202         libext=lib
9203         # Tell ltmain to make .dll files, not .so files.
9204         shrext_cmds=".dll"
9205         # FIXME: Setting linknames here is a bad hack.
9206         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9207         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9208             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9209           else
9210             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9211           fi~
9212           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9213           linknames='
9214         # The linker will not automatically build a static lib if we build a DLL.
9215         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9216         enable_shared_with_static_runtimes=yes
9217         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9218         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9219         # Don't use ranlib
9220         old_postinstall_cmds='chmod 644 $oldlib'
9221         postlink_cmds='lt_outputfile="@OUTPUT@"~
9222           lt_tool_outputfile="@TOOL_OUTPUT@"~
9223           case $lt_outputfile in
9224             *.exe|*.EXE) ;;
9225             *)
9226               lt_outputfile="$lt_outputfile.exe"
9227               lt_tool_outputfile="$lt_tool_outputfile.exe"
9228               ;;
9229           esac~
9230           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9231             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9232             $RM "$lt_outputfile.manifest";
9233           fi'
9234         ;;
9235       *)
9236         # Assume MSVC wrapper
9237         hardcode_libdir_flag_spec=' '
9238         allow_undefined_flag=unsupported
9239         # Tell ltmain to make .lib files, not .a files.
9240         libext=lib
9241         # Tell ltmain to make .dll files, not .so files.
9242         shrext_cmds=".dll"
9243         # FIXME: Setting linknames here is a bad hack.
9244         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9245         # The linker will automatically build a .lib file if we build a DLL.
9246         old_archive_from_new_cmds='true'
9247         # FIXME: Should let the user specify the lib program.
9248         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9249         enable_shared_with_static_runtimes=yes
9250         ;;
9251       esac
9252       ;;
9253
9254     darwin* | rhapsody*)
9255
9256
9257   archive_cmds_need_lc=no
9258   hardcode_direct=no
9259   hardcode_automatic=yes
9260   hardcode_shlibpath_var=unsupported
9261   if test "$lt_cv_ld_force_load" = "yes"; then
9262     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\"`'
9263
9264   else
9265     whole_archive_flag_spec=''
9266   fi
9267   link_all_deplibs=yes
9268   allow_undefined_flag="$_lt_dar_allow_undefined"
9269   case $cc_basename in
9270      ifort*) _lt_dar_can_shared=yes ;;
9271      *) _lt_dar_can_shared=$GCC ;;
9272   esac
9273   if test "$_lt_dar_can_shared" = "yes"; then
9274     output_verbose_link_cmd=func_echo_all
9275     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9276     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9277     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}"
9278     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}"
9279
9280   else
9281   ld_shlibs=no
9282   fi
9283
9284       ;;
9285
9286     dgux*)
9287       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9288       hardcode_libdir_flag_spec='-L$libdir'
9289       hardcode_shlibpath_var=no
9290       ;;
9291
9292     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9293     # support.  Future versions do this automatically, but an explicit c++rt0.o
9294     # does not break anything, and helps significantly (at the cost of a little
9295     # extra space).
9296     freebsd2.2*)
9297       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9298       hardcode_libdir_flag_spec='-R$libdir'
9299       hardcode_direct=yes
9300       hardcode_shlibpath_var=no
9301       ;;
9302
9303     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9304     freebsd2.*)
9305       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306       hardcode_direct=yes
9307       hardcode_minus_L=yes
9308       hardcode_shlibpath_var=no
9309       ;;
9310
9311     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9312     freebsd* | dragonfly*)
9313       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314       hardcode_libdir_flag_spec='-R$libdir'
9315       hardcode_direct=yes
9316       hardcode_shlibpath_var=no
9317       ;;
9318
9319     hpux9*)
9320       if test "$GCC" = yes; then
9321         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'
9322       else
9323         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'
9324       fi
9325       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9326       hardcode_libdir_separator=:
9327       hardcode_direct=yes
9328
9329       # hardcode_minus_L: Not really in the search PATH,
9330       # but as the default location of the library.
9331       hardcode_minus_L=yes
9332       export_dynamic_flag_spec='${wl}-E'
9333       ;;
9334
9335     hpux10*)
9336       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9337         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9338       else
9339         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9340       fi
9341       if test "$with_gnu_ld" = no; then
9342         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9343         hardcode_libdir_separator=:
9344         hardcode_direct=yes
9345         hardcode_direct_absolute=yes
9346         export_dynamic_flag_spec='${wl}-E'
9347         # hardcode_minus_L: Not really in the search PATH,
9348         # but as the default location of the library.
9349         hardcode_minus_L=yes
9350       fi
9351       ;;
9352
9353     hpux11*)
9354       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9355         case $host_cpu in
9356         hppa*64*)
9357           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9358           ;;
9359         ia64*)
9360           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9361           ;;
9362         *)
9363           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9364           ;;
9365         esac
9366       else
9367         case $host_cpu in
9368         hppa*64*)
9369           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9370           ;;
9371         ia64*)
9372           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9373           ;;
9374         *)
9375
9376           # Older versions of the 11.00 compiler do not understand -b yet
9377           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9378           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9379 $as_echo_n "checking if $CC understands -b... " >&6; }
9380 if ${lt_cv_prog_compiler__b+:} false; then :
9381   $as_echo_n "(cached) " >&6
9382 else
9383   lt_cv_prog_compiler__b=no
9384    save_LDFLAGS="$LDFLAGS"
9385    LDFLAGS="$LDFLAGS -b"
9386    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9387    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9388      # The linker can only warn and ignore the option if not recognized
9389      # So say no if there are warnings
9390      if test -s conftest.err; then
9391        # Append any errors to the config.log.
9392        cat conftest.err 1>&5
9393        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9394        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9395        if diff conftest.exp conftest.er2 >/dev/null; then
9396          lt_cv_prog_compiler__b=yes
9397        fi
9398      else
9399        lt_cv_prog_compiler__b=yes
9400      fi
9401    fi
9402    $RM -r conftest*
9403    LDFLAGS="$save_LDFLAGS"
9404
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9407 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9408
9409 if test x"$lt_cv_prog_compiler__b" = xyes; then
9410     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9411 else
9412     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9413 fi
9414
9415           ;;
9416         esac
9417       fi
9418       if test "$with_gnu_ld" = no; then
9419         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9420         hardcode_libdir_separator=:
9421
9422         case $host_cpu in
9423         hppa*64*|ia64*)
9424           hardcode_direct=no
9425           hardcode_shlibpath_var=no
9426           ;;
9427         *)
9428           hardcode_direct=yes
9429           hardcode_direct_absolute=yes
9430           export_dynamic_flag_spec='${wl}-E'
9431
9432           # hardcode_minus_L: Not really in the search PATH,
9433           # but as the default location of the library.
9434           hardcode_minus_L=yes
9435           ;;
9436         esac
9437       fi
9438       ;;
9439
9440     irix5* | irix6* | nonstopux*)
9441       if test "$GCC" = yes; then
9442         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'
9443         # Try to use the -exported_symbol ld option, if it does not
9444         # work, assume that -exports_file does not work either and
9445         # implicitly export all symbols.
9446         # This should be the same for all languages, so no per-tag cache variable.
9447         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9448 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9449 if ${lt_cv_irix_exported_symbol+:} false; then :
9450   $as_echo_n "(cached) " >&6
9451 else
9452   save_LDFLAGS="$LDFLAGS"
9453            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9454            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h.  */
9456 int foo (void) { return 0; }
9457 _ACEOF
9458 if ac_fn_c_try_link "$LINENO"; then :
9459   lt_cv_irix_exported_symbol=yes
9460 else
9461   lt_cv_irix_exported_symbol=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext \
9464     conftest$ac_exeext conftest.$ac_ext
9465            LDFLAGS="$save_LDFLAGS"
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9468 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9469         if test "$lt_cv_irix_exported_symbol" = yes; then
9470           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'
9471         fi
9472       else
9473         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'
9474         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'
9475       fi
9476       archive_cmds_need_lc='no'
9477       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478       hardcode_libdir_separator=:
9479       inherit_rpath=yes
9480       link_all_deplibs=yes
9481       ;;
9482
9483     netbsd*)
9484       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9485         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9486       else
9487         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9488       fi
9489       hardcode_libdir_flag_spec='-R$libdir'
9490       hardcode_direct=yes
9491       hardcode_shlibpath_var=no
9492       ;;
9493
9494     newsos6)
9495       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496       hardcode_direct=yes
9497       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498       hardcode_libdir_separator=:
9499       hardcode_shlibpath_var=no
9500       ;;
9501
9502     *nto* | *qnx*)
9503       ;;
9504
9505     openbsd*)
9506       if test -f /usr/libexec/ld.so; then
9507         hardcode_direct=yes
9508         hardcode_shlibpath_var=no
9509         hardcode_direct_absolute=yes
9510         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9512           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9513           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9514           export_dynamic_flag_spec='${wl}-E'
9515         else
9516           case $host_os in
9517            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9518              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519              hardcode_libdir_flag_spec='-R$libdir'
9520              ;;
9521            *)
9522              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9524              ;;
9525           esac
9526         fi
9527       else
9528         ld_shlibs=no
9529       fi
9530       ;;
9531
9532     os2*)
9533       hardcode_libdir_flag_spec='-L$libdir'
9534       hardcode_minus_L=yes
9535       allow_undefined_flag=unsupported
9536       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'
9537       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9538       ;;
9539
9540     osf3*)
9541       if test "$GCC" = yes; then
9542         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9543         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'
9544       else
9545         allow_undefined_flag=' -expect_unresolved \*'
9546         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'
9547       fi
9548       archive_cmds_need_lc='no'
9549       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550       hardcode_libdir_separator=:
9551       ;;
9552
9553     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9554       if test "$GCC" = yes; then
9555         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9556         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'
9557         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558       else
9559         allow_undefined_flag=' -expect_unresolved \*'
9560         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'
9561         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~
9562         $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'
9563
9564         # Both c and cxx compiler support -rpath directly
9565         hardcode_libdir_flag_spec='-rpath $libdir'
9566       fi
9567       archive_cmds_need_lc='no'
9568       hardcode_libdir_separator=:
9569       ;;
9570
9571     solaris*)
9572       no_undefined_flag=' -z defs'
9573       if test "$GCC" = yes; then
9574         wlarc='${wl}'
9575         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577           $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'
9578       else
9579         case `$CC -V 2>&1` in
9580         *"Compilers 5.0"*)
9581           wlarc=''
9582           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9584           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9585           ;;
9586         *)
9587           wlarc='${wl}'
9588           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9589           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9590           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9591           ;;
9592         esac
9593       fi
9594       hardcode_libdir_flag_spec='-R$libdir'
9595       hardcode_shlibpath_var=no
9596       case $host_os in
9597       solaris2.[0-5] | solaris2.[0-5].*) ;;
9598       *)
9599         # The compiler driver will combine and reorder linker options,
9600         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9601         # but is careful enough not to reorder.
9602         # Supported since Solaris 2.6 (maybe 2.5.1?)
9603         if test "$GCC" = yes; then
9604           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9605         else
9606           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9607         fi
9608         ;;
9609       esac
9610       link_all_deplibs=yes
9611       ;;
9612
9613     sunos4*)
9614       if test "x$host_vendor" = xsequent; then
9615         # Use $CC to link under sequent, because it throws in some extra .o
9616         # files that make .init and .fini sections work.
9617         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9618       else
9619         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9620       fi
9621       hardcode_libdir_flag_spec='-L$libdir'
9622       hardcode_direct=yes
9623       hardcode_minus_L=yes
9624       hardcode_shlibpath_var=no
9625       ;;
9626
9627     sysv4)
9628       case $host_vendor in
9629         sni)
9630           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631           hardcode_direct=yes # is this really true???
9632         ;;
9633         siemens)
9634           ## LD is ld it makes a PLAMLIB
9635           ## CC just makes a GrossModule.
9636           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9637           reload_cmds='$CC -r -o $output$reload_objs'
9638           hardcode_direct=no
9639         ;;
9640         motorola)
9641           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9643         ;;
9644       esac
9645       runpath_var='LD_RUN_PATH'
9646       hardcode_shlibpath_var=no
9647       ;;
9648
9649     sysv4.3*)
9650       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651       hardcode_shlibpath_var=no
9652       export_dynamic_flag_spec='-Bexport'
9653       ;;
9654
9655     sysv4*MP*)
9656       if test -d /usr/nec; then
9657         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658         hardcode_shlibpath_var=no
9659         runpath_var=LD_RUN_PATH
9660         hardcode_runpath_var=yes
9661         ld_shlibs=yes
9662       fi
9663       ;;
9664
9665     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9666       no_undefined_flag='${wl}-z,text'
9667       archive_cmds_need_lc=no
9668       hardcode_shlibpath_var=no
9669       runpath_var='LD_RUN_PATH'
9670
9671       if test "$GCC" = yes; then
9672         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674       else
9675         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677       fi
9678       ;;
9679
9680     sysv5* | sco3.2v5* | sco5v6*)
9681       # Note: We can NOT use -z defs as we might desire, because we do not
9682       # link with -lc, and that would cause any symbols used from libc to
9683       # always be unresolved, which means just about no library would
9684       # ever link correctly.  If we're not using GNU ld we use -z text
9685       # though, which does catch some bad symbols but isn't as heavy-handed
9686       # as -z defs.
9687       no_undefined_flag='${wl}-z,text'
9688       allow_undefined_flag='${wl}-z,nodefs'
9689       archive_cmds_need_lc=no
9690       hardcode_shlibpath_var=no
9691       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9692       hardcode_libdir_separator=':'
9693       link_all_deplibs=yes
9694       export_dynamic_flag_spec='${wl}-Bexport'
9695       runpath_var='LD_RUN_PATH'
9696
9697       if test "$GCC" = yes; then
9698         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700       else
9701         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703       fi
9704       ;;
9705
9706     uts4*)
9707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708       hardcode_libdir_flag_spec='-L$libdir'
9709       hardcode_shlibpath_var=no
9710       ;;
9711
9712     *)
9713       ld_shlibs=no
9714       ;;
9715     esac
9716
9717     if test x$host_vendor = xsni; then
9718       case $host in
9719       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9720         export_dynamic_flag_spec='${wl}-Blargedynsym'
9721         ;;
9722       esac
9723     fi
9724   fi
9725
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9727 $as_echo "$ld_shlibs" >&6; }
9728 test "$ld_shlibs" = no && can_build_shared=no
9729
9730 with_gnu_ld=$with_gnu_ld
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746 #
9747 # Do we need to explicitly link libc?
9748 #
9749 case "x$archive_cmds_need_lc" in
9750 x|xyes)
9751   # Assume -lc should be added
9752   archive_cmds_need_lc=yes
9753
9754   if test "$enable_shared" = yes && test "$GCC" = yes; then
9755     case $archive_cmds in
9756     *'~'*)
9757       # FIXME: we may have to deal with multi-command sequences.
9758       ;;
9759     '$CC '*)
9760       # Test whether the compiler implicitly links with -lc since on some
9761       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9762       # to ld, don't add -lc before -lgcc.
9763       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9764 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9765 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9766   $as_echo_n "(cached) " >&6
9767 else
9768   $RM conftest*
9769         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9770
9771         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9772   (eval $ac_compile) 2>&5
9773   ac_status=$?
9774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775   test $ac_status = 0; } 2>conftest.err; then
9776           soname=conftest
9777           lib=conftest
9778           libobjs=conftest.$ac_objext
9779           deplibs=
9780           wl=$lt_prog_compiler_wl
9781           pic_flag=$lt_prog_compiler_pic
9782           compiler_flags=-v
9783           linker_flags=-v
9784           verstring=
9785           output_objdir=.
9786           libname=conftest
9787           lt_save_allow_undefined_flag=$allow_undefined_flag
9788           allow_undefined_flag=
9789           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9790   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9791   ac_status=$?
9792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793   test $ac_status = 0; }
9794           then
9795             lt_cv_archive_cmds_need_lc=no
9796           else
9797             lt_cv_archive_cmds_need_lc=yes
9798           fi
9799           allow_undefined_flag=$lt_save_allow_undefined_flag
9800         else
9801           cat conftest.err 1>&5
9802         fi
9803         $RM conftest*
9804
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9807 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9808       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9809       ;;
9810     esac
9811   fi
9812   ;;
9813 esac
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
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9967 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9968
9969 if test "$GCC" = yes; then
9970   case $host_os in
9971     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9972     *) lt_awk_arg="/^libraries:/" ;;
9973   esac
9974   case $host_os in
9975     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9976     *) lt_sed_strip_eq="s,=/,/,g" ;;
9977   esac
9978   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9979   case $lt_search_path_spec in
9980   *\;*)
9981     # if the path contains ";" then we assume it to be the separator
9982     # otherwise default to the standard path separator (i.e. ":") - it is
9983     # assumed that no part of a normal pathname contains ";" but that should
9984     # okay in the real world where ";" in dirpaths is itself problematic.
9985     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9986     ;;
9987   *)
9988     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9989     ;;
9990   esac
9991   # Ok, now we have the path, separated by spaces, we can step through it
9992   # and add multilib dir if necessary.
9993   lt_tmp_lt_search_path_spec=
9994   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9995   for lt_sys_path in $lt_search_path_spec; do
9996     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9997       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9998     else
9999       test -d "$lt_sys_path" && \
10000         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10001     fi
10002   done
10003   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10004 BEGIN {RS=" "; FS="/|\n";} {
10005   lt_foo="";
10006   lt_count=0;
10007   for (lt_i = NF; lt_i > 0; lt_i--) {
10008     if ($lt_i != "" && $lt_i != ".") {
10009       if ($lt_i == "..") {
10010         lt_count++;
10011       } else {
10012         if (lt_count == 0) {
10013           lt_foo="/" $lt_i lt_foo;
10014         } else {
10015           lt_count--;
10016         }
10017       }
10018     }
10019   }
10020   if (lt_foo != "") { lt_freq[lt_foo]++; }
10021   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10022 }'`
10023   # AWK program above erroneously prepends '/' to C:/dos/paths
10024   # for these hosts.
10025   case $host_os in
10026     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10027       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10028   esac
10029   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10030 else
10031   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10032 fi
10033 library_names_spec=
10034 libname_spec='lib$name'
10035 soname_spec=
10036 shrext_cmds=".so"
10037 postinstall_cmds=
10038 postuninstall_cmds=
10039 finish_cmds=
10040 finish_eval=
10041 shlibpath_var=
10042 shlibpath_overrides_runpath=unknown
10043 version_type=none
10044 dynamic_linker="$host_os ld.so"
10045 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10046 need_lib_prefix=unknown
10047 hardcode_into_libs=no
10048
10049 # when you set need_version to no, make sure it does not cause -set_version
10050 # flags to be left without arguments
10051 need_version=unknown
10052
10053 case $host_os in
10054 aix3*)
10055   version_type=linux # correct to gnu/linux during the next big refactor
10056   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10057   shlibpath_var=LIBPATH
10058
10059   # AIX 3 has no versioning support, so we append a major version to the name.
10060   soname_spec='${libname}${release}${shared_ext}$major'
10061   ;;
10062
10063 aix[4-9]*)
10064   version_type=linux # correct to gnu/linux during the next big refactor
10065   need_lib_prefix=no
10066   need_version=no
10067   hardcode_into_libs=yes
10068   if test "$host_cpu" = ia64; then
10069     # AIX 5 supports IA64
10070     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10071     shlibpath_var=LD_LIBRARY_PATH
10072   else
10073     # With GCC up to 2.95.x, collect2 would create an import file
10074     # for dependence libraries.  The import file would start with
10075     # the line `#! .'.  This would cause the generated library to
10076     # depend on `.', always an invalid library.  This was fixed in
10077     # development snapshots of GCC prior to 3.0.
10078     case $host_os in
10079       aix4 | aix4.[01] | aix4.[01].*)
10080       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10081            echo ' yes '
10082            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10083         :
10084       else
10085         can_build_shared=no
10086       fi
10087       ;;
10088     esac
10089     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10090     # soname into executable. Probably we can add versioning support to
10091     # collect2, so additional links can be useful in future.
10092     if test "$aix_use_runtimelinking" = yes; then
10093       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10094       # instead of lib<name>.a to let people know that these are not
10095       # typical AIX shared libraries.
10096       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097     else
10098       # We preserve .a as extension for shared libraries through AIX4.2
10099       # and later when we are not doing run time linking.
10100       library_names_spec='${libname}${release}.a $libname.a'
10101       soname_spec='${libname}${release}${shared_ext}$major'
10102     fi
10103     shlibpath_var=LIBPATH
10104   fi
10105   ;;
10106
10107 amigaos*)
10108   case $host_cpu in
10109   powerpc)
10110     # Since July 2007 AmigaOS4 officially supports .so libraries.
10111     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113     ;;
10114   m68k)
10115     library_names_spec='$libname.ixlibrary $libname.a'
10116     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10117     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'
10118     ;;
10119   esac
10120   ;;
10121
10122 beos*)
10123   library_names_spec='${libname}${shared_ext}'
10124   dynamic_linker="$host_os ld.so"
10125   shlibpath_var=LIBRARY_PATH
10126   ;;
10127
10128 bsdi[45]*)
10129   version_type=linux # correct to gnu/linux during the next big refactor
10130   need_version=no
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132   soname_spec='${libname}${release}${shared_ext}$major'
10133   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10134   shlibpath_var=LD_LIBRARY_PATH
10135   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10136   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10137   # the default ld.so.conf also contains /usr/contrib/lib and
10138   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10139   # libtool to hard-code these into programs
10140   ;;
10141
10142 cygwin* | mingw* | pw32* | cegcc*)
10143   version_type=windows
10144   shrext_cmds=".dll"
10145   need_version=no
10146   need_lib_prefix=no
10147
10148   case $GCC,$cc_basename in
10149   yes,*)
10150     # gcc
10151     library_names_spec='$libname.dll.a'
10152     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10153     postinstall_cmds='base_file=`basename \${file}`~
10154       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10155       dldir=$destdir/`dirname \$dlpath`~
10156       test -d \$dldir || mkdir -p \$dldir~
10157       $install_prog $dir/$dlname \$dldir/$dlname~
10158       chmod a+x \$dldir/$dlname~
10159       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10160         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10161       fi'
10162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10163       dlpath=$dir/\$dldll~
10164        $RM \$dlpath'
10165     shlibpath_overrides_runpath=yes
10166
10167     case $host_os in
10168     cygwin*)
10169       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10170       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10171
10172       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10173       ;;
10174     mingw* | cegcc*)
10175       # MinGW DLLs use traditional 'lib' prefix
10176       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177       ;;
10178     pw32*)
10179       # pw32 DLLs use 'pw' prefix rather than 'lib'
10180       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10181       ;;
10182     esac
10183     dynamic_linker='Win32 ld.exe'
10184     ;;
10185
10186   *,cl*)
10187     # Native MSVC
10188     libname_spec='$name'
10189     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10190     library_names_spec='${libname}.dll.lib'
10191
10192     case $build_os in
10193     mingw*)
10194       sys_lib_search_path_spec=
10195       lt_save_ifs=$IFS
10196       IFS=';'
10197       for lt_path in $LIB
10198       do
10199         IFS=$lt_save_ifs
10200         # Let DOS variable expansion print the short 8.3 style file name.
10201         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10202         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10203       done
10204       IFS=$lt_save_ifs
10205       # Convert to MSYS style.
10206       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10207       ;;
10208     cygwin*)
10209       # Convert to unix form, then to dos form, then back to unix form
10210       # but this time dos style (no spaces!) so that the unix form looks
10211       # like /cygdrive/c/PROGRA~1:/cygdr...
10212       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10213       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10214       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10215       ;;
10216     *)
10217       sys_lib_search_path_spec="$LIB"
10218       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10219         # It is most probably a Windows format PATH.
10220         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10221       else
10222         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10223       fi
10224       # FIXME: find the short name or the path components, as spaces are
10225       # common. (e.g. "Program Files" -> "PROGRA~1")
10226       ;;
10227     esac
10228
10229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10230     postinstall_cmds='base_file=`basename \${file}`~
10231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10232       dldir=$destdir/`dirname \$dlpath`~
10233       test -d \$dldir || mkdir -p \$dldir~
10234       $install_prog $dir/$dlname \$dldir/$dlname'
10235     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10236       dlpath=$dir/\$dldll~
10237        $RM \$dlpath'
10238     shlibpath_overrides_runpath=yes
10239     dynamic_linker='Win32 link.exe'
10240     ;;
10241
10242   *)
10243     # Assume MSVC wrapper
10244     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245     dynamic_linker='Win32 ld.exe'
10246     ;;
10247   esac
10248   # FIXME: first we should search . and the directory the executable is in
10249   shlibpath_var=PATH
10250   ;;
10251
10252 darwin* | rhapsody*)
10253   dynamic_linker="$host_os dyld"
10254   version_type=darwin
10255   need_lib_prefix=no
10256   need_version=no
10257   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258   soname_spec='${libname}${release}${major}$shared_ext'
10259   shlibpath_overrides_runpath=yes
10260   shlibpath_var=DYLD_LIBRARY_PATH
10261   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10262
10263   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265   ;;
10266
10267 dgux*)
10268   version_type=linux # correct to gnu/linux during the next big refactor
10269   need_lib_prefix=no
10270   need_version=no
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272   soname_spec='${libname}${release}${shared_ext}$major'
10273   shlibpath_var=LD_LIBRARY_PATH
10274   ;;
10275
10276 freebsd* | dragonfly*)
10277   # DragonFly does not have aout.  When/if they implement a new
10278   # versioning mechanism, adjust this.
10279   if test -x /usr/bin/objformat; then
10280     objformat=`/usr/bin/objformat`
10281   else
10282     case $host_os in
10283     freebsd[23].*) objformat=aout ;;
10284     *) objformat=elf ;;
10285     esac
10286   fi
10287   version_type=freebsd-$objformat
10288   case $version_type in
10289     freebsd-elf*)
10290       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10291       need_version=no
10292       need_lib_prefix=no
10293       ;;
10294     freebsd-*)
10295       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10296       need_version=yes
10297       ;;
10298   esac
10299   shlibpath_var=LD_LIBRARY_PATH
10300   case $host_os in
10301   freebsd2.*)
10302     shlibpath_overrides_runpath=yes
10303     ;;
10304   freebsd3.[01]* | freebsdelf3.[01]*)
10305     shlibpath_overrides_runpath=yes
10306     hardcode_into_libs=yes
10307     ;;
10308   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10309   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10310     shlibpath_overrides_runpath=no
10311     hardcode_into_libs=yes
10312     ;;
10313   *) # from 4.6 on, and DragonFly
10314     shlibpath_overrides_runpath=yes
10315     hardcode_into_libs=yes
10316     ;;
10317   esac
10318   ;;
10319
10320 gnu*)
10321   version_type=linux # correct to gnu/linux during the next big refactor
10322   need_lib_prefix=no
10323   need_version=no
10324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10325   soname_spec='${libname}${release}${shared_ext}$major'
10326   shlibpath_var=LD_LIBRARY_PATH
10327   shlibpath_overrides_runpath=no
10328   hardcode_into_libs=yes
10329   ;;
10330
10331 haiku*)
10332   version_type=linux # correct to gnu/linux during the next big refactor
10333   need_lib_prefix=no
10334   need_version=no
10335   dynamic_linker="$host_os runtime_loader"
10336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10337   soname_spec='${libname}${release}${shared_ext}$major'
10338   shlibpath_var=LIBRARY_PATH
10339   shlibpath_overrides_runpath=yes
10340   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10341   hardcode_into_libs=yes
10342   ;;
10343
10344 hpux9* | hpux10* | hpux11*)
10345   # Give a soname corresponding to the major version so that dld.sl refuses to
10346   # link against other versions.
10347   version_type=sunos
10348   need_lib_prefix=no
10349   need_version=no
10350   case $host_cpu in
10351   ia64*)
10352     shrext_cmds='.so'
10353     hardcode_into_libs=yes
10354     dynamic_linker="$host_os dld.so"
10355     shlibpath_var=LD_LIBRARY_PATH
10356     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358     soname_spec='${libname}${release}${shared_ext}$major'
10359     if test "X$HPUX_IA64_MODE" = X32; then
10360       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10361     else
10362       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10363     fi
10364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10365     ;;
10366   hppa*64*)
10367     shrext_cmds='.sl'
10368     hardcode_into_libs=yes
10369     dynamic_linker="$host_os dld.sl"
10370     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10371     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373     soname_spec='${libname}${release}${shared_ext}$major'
10374     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10376     ;;
10377   *)
10378     shrext_cmds='.sl'
10379     dynamic_linker="$host_os dld.sl"
10380     shlibpath_var=SHLIB_PATH
10381     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383     soname_spec='${libname}${release}${shared_ext}$major'
10384     ;;
10385   esac
10386   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10387   postinstall_cmds='chmod 555 $lib'
10388   # or fails outright, so override atomically:
10389   install_override_mode=555
10390   ;;
10391
10392 interix[3-9]*)
10393   version_type=linux # correct to gnu/linux during the next big refactor
10394   need_lib_prefix=no
10395   need_version=no
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10397   soname_spec='${libname}${release}${shared_ext}$major'
10398   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10399   shlibpath_var=LD_LIBRARY_PATH
10400   shlibpath_overrides_runpath=no
10401   hardcode_into_libs=yes
10402   ;;
10403
10404 irix5* | irix6* | nonstopux*)
10405   case $host_os in
10406     nonstopux*) version_type=nonstopux ;;
10407     *)
10408         if test "$lt_cv_prog_gnu_ld" = yes; then
10409                 version_type=linux # correct to gnu/linux during the next big refactor
10410         else
10411                 version_type=irix
10412         fi ;;
10413   esac
10414   need_lib_prefix=no
10415   need_version=no
10416   soname_spec='${libname}${release}${shared_ext}$major'
10417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10418   case $host_os in
10419   irix5* | nonstopux*)
10420     libsuff= shlibsuff=
10421     ;;
10422   *)
10423     case $LD in # libtool.m4 will add one of these switches to LD
10424     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10425       libsuff= shlibsuff= libmagic=32-bit;;
10426     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10427       libsuff=32 shlibsuff=N32 libmagic=N32;;
10428     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10429       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10430     *) libsuff= shlibsuff= libmagic=never-match;;
10431     esac
10432     ;;
10433   esac
10434   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10435   shlibpath_overrides_runpath=no
10436   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10437   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10438   hardcode_into_libs=yes
10439   ;;
10440
10441 # No shared lib support for Linux oldld, aout, or coff.
10442 linux*oldld* | linux*aout* | linux*coff*)
10443   dynamic_linker=no
10444   ;;
10445
10446 # This must be glibc/ELF.
10447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10448   version_type=linux # correct to gnu/linux during the next big refactor
10449   need_lib_prefix=no
10450   need_version=no
10451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452   soname_spec='${libname}${release}${shared_ext}$major'
10453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10454   shlibpath_var=LD_LIBRARY_PATH
10455   shlibpath_overrides_runpath=no
10456
10457   # Some binutils ld are patched to set DT_RUNPATH
10458   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   lt_cv_shlibpath_overrides_runpath=no
10462     save_LDFLAGS=$LDFLAGS
10463     save_libdir=$libdir
10464     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10465          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h.  */
10468
10469 int
10470 main ()
10471 {
10472
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10479   lt_cv_shlibpath_overrides_runpath=yes
10480 fi
10481 fi
10482 rm -f core conftest.err conftest.$ac_objext \
10483     conftest$ac_exeext conftest.$ac_ext
10484     LDFLAGS=$save_LDFLAGS
10485     libdir=$save_libdir
10486
10487 fi
10488
10489   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10490
10491   # This implies no fast_install, which is unacceptable.
10492   # Some rework will be needed to allow for fast_install
10493   # before this can be enabled.
10494   hardcode_into_libs=yes
10495
10496   # Append ld.so.conf contents to the search path
10497   if test -f /etc/ld.so.conf; then
10498     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' ' '`
10499     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10500   fi
10501
10502   # We used to test for /lib/ld.so.1 and disable shared libraries on
10503   # powerpc, because MkLinux only supported shared libraries with the
10504   # GNU dynamic linker.  Since this was broken with cross compilers,
10505   # most powerpc-linux boxes support dynamic linking these days and
10506   # people can always --disable-shared, the test was removed, and we
10507   # assume the GNU/Linux dynamic linker is in use.
10508   dynamic_linker='GNU/Linux ld.so'
10509   ;;
10510
10511 netbsd*)
10512   version_type=sunos
10513   need_lib_prefix=no
10514   need_version=no
10515   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10517     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10518     dynamic_linker='NetBSD (a.out) ld.so'
10519   else
10520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10521     soname_spec='${libname}${release}${shared_ext}$major'
10522     dynamic_linker='NetBSD ld.elf_so'
10523   fi
10524   shlibpath_var=LD_LIBRARY_PATH
10525   shlibpath_overrides_runpath=yes
10526   hardcode_into_libs=yes
10527   ;;
10528
10529 newsos6)
10530   version_type=linux # correct to gnu/linux during the next big refactor
10531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532   shlibpath_var=LD_LIBRARY_PATH
10533   shlibpath_overrides_runpath=yes
10534   ;;
10535
10536 *nto* | *qnx*)
10537   version_type=qnx
10538   need_lib_prefix=no
10539   need_version=no
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541   soname_spec='${libname}${release}${shared_ext}$major'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   shlibpath_overrides_runpath=no
10544   hardcode_into_libs=yes
10545   dynamic_linker='ldqnx.so'
10546   ;;
10547
10548 openbsd*)
10549   version_type=sunos
10550   sys_lib_dlsearch_path_spec="/usr/lib"
10551   need_lib_prefix=no
10552   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10553   case $host_os in
10554     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10555     *)                          need_version=no  ;;
10556   esac
10557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10558   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10559   shlibpath_var=LD_LIBRARY_PATH
10560   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10561     case $host_os in
10562       openbsd2.[89] | openbsd2.[89].*)
10563         shlibpath_overrides_runpath=no
10564         ;;
10565       *)
10566         shlibpath_overrides_runpath=yes
10567         ;;
10568       esac
10569   else
10570     shlibpath_overrides_runpath=yes
10571   fi
10572   ;;
10573
10574 os2*)
10575   libname_spec='$name'
10576   shrext_cmds=".dll"
10577   need_lib_prefix=no
10578   library_names_spec='$libname${shared_ext} $libname.a'
10579   dynamic_linker='OS/2 ld.exe'
10580   shlibpath_var=LIBPATH
10581   ;;
10582
10583 osf3* | osf4* | osf5*)
10584   version_type=osf
10585   need_lib_prefix=no
10586   need_version=no
10587   soname_spec='${libname}${release}${shared_ext}$major'
10588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589   shlibpath_var=LD_LIBRARY_PATH
10590   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10591   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10592   ;;
10593
10594 rdos*)
10595   dynamic_linker=no
10596   ;;
10597
10598 solaris*)
10599   version_type=linux # correct to gnu/linux during the next big refactor
10600   need_lib_prefix=no
10601   need_version=no
10602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603   soname_spec='${libname}${release}${shared_ext}$major'
10604   shlibpath_var=LD_LIBRARY_PATH
10605   shlibpath_overrides_runpath=yes
10606   hardcode_into_libs=yes
10607   # ldd complains unless libraries are executable
10608   postinstall_cmds='chmod +x $lib'
10609   ;;
10610
10611 sunos4*)
10612   version_type=sunos
10613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10615   shlibpath_var=LD_LIBRARY_PATH
10616   shlibpath_overrides_runpath=yes
10617   if test "$with_gnu_ld" = yes; then
10618     need_lib_prefix=no
10619   fi
10620   need_version=yes
10621   ;;
10622
10623 sysv4 | sysv4.3*)
10624   version_type=linux # correct to gnu/linux during the next big refactor
10625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626   soname_spec='${libname}${release}${shared_ext}$major'
10627   shlibpath_var=LD_LIBRARY_PATH
10628   case $host_vendor in
10629     sni)
10630       shlibpath_overrides_runpath=no
10631       need_lib_prefix=no
10632       runpath_var=LD_RUN_PATH
10633       ;;
10634     siemens)
10635       need_lib_prefix=no
10636       ;;
10637     motorola)
10638       need_lib_prefix=no
10639       need_version=no
10640       shlibpath_overrides_runpath=no
10641       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10642       ;;
10643   esac
10644   ;;
10645
10646 sysv4*MP*)
10647   if test -d /usr/nec ;then
10648     version_type=linux # correct to gnu/linux during the next big refactor
10649     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10650     soname_spec='$libname${shared_ext}.$major'
10651     shlibpath_var=LD_LIBRARY_PATH
10652   fi
10653   ;;
10654
10655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10656   version_type=freebsd-elf
10657   need_lib_prefix=no
10658   need_version=no
10659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10660   soname_spec='${libname}${release}${shared_ext}$major'
10661   shlibpath_var=LD_LIBRARY_PATH
10662   shlibpath_overrides_runpath=yes
10663   hardcode_into_libs=yes
10664   if test "$with_gnu_ld" = yes; then
10665     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10666   else
10667     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10668     case $host_os in
10669       sco3.2v5*)
10670         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10671         ;;
10672     esac
10673   fi
10674   sys_lib_dlsearch_path_spec='/usr/lib'
10675   ;;
10676
10677 tpf*)
10678   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10679   version_type=linux # correct to gnu/linux during the next big refactor
10680   need_lib_prefix=no
10681   need_version=no
10682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683   shlibpath_var=LD_LIBRARY_PATH
10684   shlibpath_overrides_runpath=no
10685   hardcode_into_libs=yes
10686   ;;
10687
10688 uts4*)
10689   version_type=linux # correct to gnu/linux during the next big refactor
10690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691   soname_spec='${libname}${release}${shared_ext}$major'
10692   shlibpath_var=LD_LIBRARY_PATH
10693   ;;
10694
10695 *)
10696   dynamic_linker=no
10697   ;;
10698 esac
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10700 $as_echo "$dynamic_linker" >&6; }
10701 test "$dynamic_linker" = no && can_build_shared=no
10702
10703 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10704 if test "$GCC" = yes; then
10705   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10706 fi
10707
10708 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10709   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10710 fi
10711 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10712   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10713 fi
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
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10807 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10808 hardcode_action=
10809 if test -n "$hardcode_libdir_flag_spec" ||
10810    test -n "$runpath_var" ||
10811    test "X$hardcode_automatic" = "Xyes" ; then
10812
10813   # We can hardcode non-existent directories.
10814   if test "$hardcode_direct" != no &&
10815      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10816      # have to relink, otherwise we might link with an installed library
10817      # when we should be linking with a yet-to-be-installed one
10818      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10819      test "$hardcode_minus_L" != no; then
10820     # Linking always hardcodes the temporary library directory.
10821     hardcode_action=relink
10822   else
10823     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10824     hardcode_action=immediate
10825   fi
10826 else
10827   # We cannot hardcode anything, or else we can only hardcode existing
10828   # directories.
10829   hardcode_action=unsupported
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10832 $as_echo "$hardcode_action" >&6; }
10833
10834 if test "$hardcode_action" = relink ||
10835    test "$inherit_rpath" = yes; then
10836   # Fast installation is not supported
10837   enable_fast_install=no
10838 elif test "$shlibpath_overrides_runpath" = yes ||
10839      test "$enable_shared" = no; then
10840   # Fast installation is not necessary
10841   enable_fast_install=needless
10842 fi
10843
10844
10845
10846
10847
10848
10849   if test "x$enable_dlopen" != xyes; then
10850   enable_dlopen=unknown
10851   enable_dlopen_self=unknown
10852   enable_dlopen_self_static=unknown
10853 else
10854   lt_cv_dlopen=no
10855   lt_cv_dlopen_libs=
10856
10857   case $host_os in
10858   beos*)
10859     lt_cv_dlopen="load_add_on"
10860     lt_cv_dlopen_libs=
10861     lt_cv_dlopen_self=yes
10862     ;;
10863
10864   mingw* | pw32* | cegcc*)
10865     lt_cv_dlopen="LoadLibrary"
10866     lt_cv_dlopen_libs=
10867     ;;
10868
10869   cygwin*)
10870     lt_cv_dlopen="dlopen"
10871     lt_cv_dlopen_libs=
10872     ;;
10873
10874   darwin*)
10875   # if libdl is installed we need to link against it
10876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10877 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10878 if ${ac_cv_lib_dl_dlopen+:} false; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   ac_check_lib_save_LIBS=$LIBS
10882 LIBS="-ldl  $LIBS"
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h.  */
10885
10886 /* Override any GCC internal prototype to avoid an error.
10887    Use char because int might match the return type of a GCC
10888    builtin and then its argument prototype would still apply.  */
10889 #ifdef __cplusplus
10890 extern "C"
10891 #endif
10892 char dlopen ();
10893 int
10894 main ()
10895 {
10896 return dlopen ();
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902   ac_cv_lib_dl_dlopen=yes
10903 else
10904   ac_cv_lib_dl_dlopen=no
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext \
10907     conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10909 fi
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10911 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10912 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10913   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10914 else
10915
10916     lt_cv_dlopen="dyld"
10917     lt_cv_dlopen_libs=
10918     lt_cv_dlopen_self=yes
10919
10920 fi
10921
10922     ;;
10923
10924   *)
10925     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10926 if test "x$ac_cv_func_shl_load" = xyes; then :
10927   lt_cv_dlopen="shl_load"
10928 else
10929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10930 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10931 if ${ac_cv_lib_dld_shl_load+:} false; then :
10932   $as_echo_n "(cached) " >&6
10933 else
10934   ac_check_lib_save_LIBS=$LIBS
10935 LIBS="-ldld  $LIBS"
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h.  */
10938
10939 /* Override any GCC internal prototype to avoid an error.
10940    Use char because int might match the return type of a GCC
10941    builtin and then its argument prototype would still apply.  */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char shl_load ();
10946 int
10947 main ()
10948 {
10949 return shl_load ();
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955   ac_cv_lib_dld_shl_load=yes
10956 else
10957   ac_cv_lib_dld_shl_load=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext \
10960     conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10964 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10965 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10966   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10967 else
10968   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10969 if test "x$ac_cv_func_dlopen" = xyes; then :
10970   lt_cv_dlopen="dlopen"
10971 else
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10974 if ${ac_cv_lib_dl_dlopen+:} false; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977   ac_check_lib_save_LIBS=$LIBS
10978 LIBS="-ldl  $LIBS"
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h.  */
10981
10982 /* Override any GCC internal prototype to avoid an error.
10983    Use char because int might match the return type of a GCC
10984    builtin and then its argument prototype would still apply.  */
10985 #ifdef __cplusplus
10986 extern "C"
10987 #endif
10988 char dlopen ();
10989 int
10990 main ()
10991 {
10992 return dlopen ();
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 if ac_fn_c_try_link "$LINENO"; then :
10998   ac_cv_lib_dl_dlopen=yes
10999 else
11000   ac_cv_lib_dl_dlopen=no
11001 fi
11002 rm -f core conftest.err conftest.$ac_objext \
11003     conftest$ac_exeext conftest.$ac_ext
11004 LIBS=$ac_check_lib_save_LIBS
11005 fi
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11008 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11009   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11010 else
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11012 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11013 if ${ac_cv_lib_svld_dlopen+:} false; then :
11014   $as_echo_n "(cached) " >&6
11015 else
11016   ac_check_lib_save_LIBS=$LIBS
11017 LIBS="-lsvld  $LIBS"
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h.  */
11020
11021 /* Override any GCC internal prototype to avoid an error.
11022    Use char because int might match the return type of a GCC
11023    builtin and then its argument prototype would still apply.  */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char dlopen ();
11028 int
11029 main ()
11030 {
11031 return dlopen ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_c_try_link "$LINENO"; then :
11037   ac_cv_lib_svld_dlopen=yes
11038 else
11039   ac_cv_lib_svld_dlopen=no
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext \
11042     conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11044 fi
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11047 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11048   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11049 else
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11051 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11052 if ${ac_cv_lib_dld_dld_link+:} false; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   ac_check_lib_save_LIBS=$LIBS
11056 LIBS="-ldld  $LIBS"
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h.  */
11059
11060 /* Override any GCC internal prototype to avoid an error.
11061    Use char because int might match the return type of a GCC
11062    builtin and then its argument prototype would still apply.  */
11063 #ifdef __cplusplus
11064 extern "C"
11065 #endif
11066 char dld_link ();
11067 int
11068 main ()
11069 {
11070 return dld_link ();
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 if ac_fn_c_try_link "$LINENO"; then :
11076   ac_cv_lib_dld_dld_link=yes
11077 else
11078   ac_cv_lib_dld_dld_link=no
11079 fi
11080 rm -f core conftest.err conftest.$ac_objext \
11081     conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11083 fi
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11085 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11086 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11087   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11088 fi
11089
11090
11091 fi
11092
11093
11094 fi
11095
11096
11097 fi
11098
11099
11100 fi
11101
11102
11103 fi
11104
11105     ;;
11106   esac
11107
11108   if test "x$lt_cv_dlopen" != xno; then
11109     enable_dlopen=yes
11110   else
11111     enable_dlopen=no
11112   fi
11113
11114   case $lt_cv_dlopen in
11115   dlopen)
11116     save_CPPFLAGS="$CPPFLAGS"
11117     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11118
11119     save_LDFLAGS="$LDFLAGS"
11120     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11121
11122     save_LIBS="$LIBS"
11123     LIBS="$lt_cv_dlopen_libs $LIBS"
11124
11125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11126 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11127 if ${lt_cv_dlopen_self+:} false; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130           if test "$cross_compiling" = yes; then :
11131   lt_cv_dlopen_self=cross
11132 else
11133   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134   lt_status=$lt_dlunknown
11135   cat > conftest.$ac_ext <<_LT_EOF
11136 #line $LINENO "configure"
11137 #include "confdefs.h"
11138
11139 #if HAVE_DLFCN_H
11140 #include <dlfcn.h>
11141 #endif
11142
11143 #include <stdio.h>
11144
11145 #ifdef RTLD_GLOBAL
11146 #  define LT_DLGLOBAL           RTLD_GLOBAL
11147 #else
11148 #  ifdef DL_GLOBAL
11149 #    define LT_DLGLOBAL         DL_GLOBAL
11150 #  else
11151 #    define LT_DLGLOBAL         0
11152 #  endif
11153 #endif
11154
11155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156    find out it does not work in some platform. */
11157 #ifndef LT_DLLAZY_OR_NOW
11158 #  ifdef RTLD_LAZY
11159 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11160 #  else
11161 #    ifdef DL_LAZY
11162 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11163 #    else
11164 #      ifdef RTLD_NOW
11165 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11166 #      else
11167 #        ifdef DL_NOW
11168 #          define LT_DLLAZY_OR_NOW      DL_NOW
11169 #        else
11170 #          define LT_DLLAZY_OR_NOW      0
11171 #        endif
11172 #      endif
11173 #    endif
11174 #  endif
11175 #endif
11176
11177 /* When -fvisbility=hidden is used, assume the code has been annotated
11178    correspondingly for the symbols needed.  */
11179 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11180 int fnord () __attribute__((visibility("default")));
11181 #endif
11182
11183 int fnord () { return 42; }
11184 int main ()
11185 {
11186   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11187   int status = $lt_dlunknown;
11188
11189   if (self)
11190     {
11191       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11192       else
11193         {
11194           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11195           else puts (dlerror ());
11196         }
11197       /* dlclose (self); */
11198     }
11199   else
11200     puts (dlerror ());
11201
11202   return status;
11203 }
11204 _LT_EOF
11205   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11206   (eval $ac_link) 2>&5
11207   ac_status=$?
11208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11209   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11210     (./conftest; exit; ) >&5 2>/dev/null
11211     lt_status=$?
11212     case x$lt_status in
11213       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11214       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11215       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11216     esac
11217   else :
11218     # compilation failed
11219     lt_cv_dlopen_self=no
11220   fi
11221 fi
11222 rm -fr conftest*
11223
11224
11225 fi
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11227 $as_echo "$lt_cv_dlopen_self" >&6; }
11228
11229     if test "x$lt_cv_dlopen_self" = xyes; then
11230       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11231       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11232 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11233 if ${lt_cv_dlopen_self_static+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236           if test "$cross_compiling" = yes; then :
11237   lt_cv_dlopen_self_static=cross
11238 else
11239   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11240   lt_status=$lt_dlunknown
11241   cat > conftest.$ac_ext <<_LT_EOF
11242 #line $LINENO "configure"
11243 #include "confdefs.h"
11244
11245 #if HAVE_DLFCN_H
11246 #include <dlfcn.h>
11247 #endif
11248
11249 #include <stdio.h>
11250
11251 #ifdef RTLD_GLOBAL
11252 #  define LT_DLGLOBAL           RTLD_GLOBAL
11253 #else
11254 #  ifdef DL_GLOBAL
11255 #    define LT_DLGLOBAL         DL_GLOBAL
11256 #  else
11257 #    define LT_DLGLOBAL         0
11258 #  endif
11259 #endif
11260
11261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11262    find out it does not work in some platform. */
11263 #ifndef LT_DLLAZY_OR_NOW
11264 #  ifdef RTLD_LAZY
11265 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11266 #  else
11267 #    ifdef DL_LAZY
11268 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11269 #    else
11270 #      ifdef RTLD_NOW
11271 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11272 #      else
11273 #        ifdef DL_NOW
11274 #          define LT_DLLAZY_OR_NOW      DL_NOW
11275 #        else
11276 #          define LT_DLLAZY_OR_NOW      0
11277 #        endif
11278 #      endif
11279 #    endif
11280 #  endif
11281 #endif
11282
11283 /* When -fvisbility=hidden is used, assume the code has been annotated
11284    correspondingly for the symbols needed.  */
11285 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11286 int fnord () __attribute__((visibility("default")));
11287 #endif
11288
11289 int fnord () { return 42; }
11290 int main ()
11291 {
11292   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11293   int status = $lt_dlunknown;
11294
11295   if (self)
11296     {
11297       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11298       else
11299         {
11300           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11301           else puts (dlerror ());
11302         }
11303       /* dlclose (self); */
11304     }
11305   else
11306     puts (dlerror ());
11307
11308   return status;
11309 }
11310 _LT_EOF
11311   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11312   (eval $ac_link) 2>&5
11313   ac_status=$?
11314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11315   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11316     (./conftest; exit; ) >&5 2>/dev/null
11317     lt_status=$?
11318     case x$lt_status in
11319       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11320       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11321       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11322     esac
11323   else :
11324     # compilation failed
11325     lt_cv_dlopen_self_static=no
11326   fi
11327 fi
11328 rm -fr conftest*
11329
11330
11331 fi
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11333 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11334     fi
11335
11336     CPPFLAGS="$save_CPPFLAGS"
11337     LDFLAGS="$save_LDFLAGS"
11338     LIBS="$save_LIBS"
11339     ;;
11340   esac
11341
11342   case $lt_cv_dlopen_self in
11343   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11344   *) enable_dlopen_self=unknown ;;
11345   esac
11346
11347   case $lt_cv_dlopen_self_static in
11348   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11349   *) enable_dlopen_self_static=unknown ;;
11350   esac
11351 fi
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369 striplib=
11370 old_striplib=
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11372 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11374   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11375   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11378 else
11379 # FIXME - insert some real tests, host_os isn't really good enough
11380   case $host_os in
11381   darwin*)
11382     if test -n "$STRIP" ; then
11383       striplib="$STRIP -x"
11384       old_striplib="$STRIP -S"
11385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11386 $as_echo "yes" >&6; }
11387     else
11388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390     fi
11391     ;;
11392   *)
11393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11395     ;;
11396   esac
11397 fi
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410   # Report which library types will actually be built
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11412 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11414 $as_echo "$can_build_shared" >&6; }
11415
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11417 $as_echo_n "checking whether to build shared libraries... " >&6; }
11418   test "$can_build_shared" = "no" && enable_shared=no
11419
11420   # On AIX, shared libraries and static libraries use the same namespace, and
11421   # are all built from PIC.
11422   case $host_os in
11423   aix3*)
11424     test "$enable_shared" = yes && enable_static=no
11425     if test -n "$RANLIB"; then
11426       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11427       postinstall_cmds='$RANLIB $lib'
11428     fi
11429     ;;
11430
11431   aix[4-9]*)
11432     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11433       test "$enable_shared" = yes && enable_static=no
11434     fi
11435     ;;
11436   esac
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11438 $as_echo "$enable_shared" >&6; }
11439
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11441 $as_echo_n "checking whether to build static libraries... " >&6; }
11442   # Make sure either enable_shared or enable_static is yes.
11443   test "$enable_shared" = yes || enable_static=yes
11444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11445 $as_echo "$enable_static" >&6; }
11446
11447
11448
11449
11450 fi
11451 ac_ext=c
11452 ac_cpp='$CPP $CPPFLAGS'
11453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11456
11457 CC="$lt_save_CC"
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473         ac_config_commands="$ac_config_commands libtool"
11474
11475
11476
11477
11478 # Only expand once:
11479
11480
11481
11482 # Require xorg-macros minimum of 1.12 for DocBook external references
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11495 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11496 if ${ac_cv_prog_cc_c99+:} false; then :
11497   $as_echo_n "(cached) " >&6
11498 else
11499   ac_cv_prog_cc_c99=no
11500 ac_save_CC=$CC
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h.  */
11503 #include <stdarg.h>
11504 #include <stdbool.h>
11505 #include <stdlib.h>
11506 #include <wchar.h>
11507 #include <stdio.h>
11508
11509 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11510 #define debug(...) fprintf (stderr, __VA_ARGS__)
11511 #define showlist(...) puts (#__VA_ARGS__)
11512 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11513 static void
11514 test_varargs_macros (void)
11515 {
11516   int x = 1234;
11517   int y = 5678;
11518   debug ("Flag");
11519   debug ("X = %d\n", x);
11520   showlist (The first, second, and third items.);
11521   report (x>y, "x is %d but y is %d", x, y);
11522 }
11523
11524 // Check long long types.
11525 #define BIG64 18446744073709551615ull
11526 #define BIG32 4294967295ul
11527 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11528 #if !BIG_OK
11529   your preprocessor is broken;
11530 #endif
11531 #if BIG_OK
11532 #else
11533   your preprocessor is broken;
11534 #endif
11535 static long long int bignum = -9223372036854775807LL;
11536 static unsigned long long int ubignum = BIG64;
11537
11538 struct incomplete_array
11539 {
11540   int datasize;
11541   double data[];
11542 };
11543
11544 struct named_init {
11545   int number;
11546   const wchar_t *name;
11547   double average;
11548 };
11549
11550 typedef const char *ccp;
11551
11552 static inline int
11553 test_restrict (ccp restrict text)
11554 {
11555   // See if C++-style comments work.
11556   // Iterate through items via the restricted pointer.
11557   // Also check for declarations in for loops.
11558   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11559     continue;
11560   return 0;
11561 }
11562
11563 // Check varargs and va_copy.
11564 static void
11565 test_varargs (const char *format, ...)
11566 {
11567   va_list args;
11568   va_start (args, format);
11569   va_list args_copy;
11570   va_copy (args_copy, args);
11571
11572   const char *str;
11573   int number;
11574   float fnumber;
11575
11576   while (*format)
11577     {
11578       switch (*format++)
11579         {
11580         case 's': // string
11581           str = va_arg (args_copy, const char *);
11582           break;
11583         case 'd': // int
11584           number = va_arg (args_copy, int);
11585           break;
11586         case 'f': // float
11587           fnumber = va_arg (args_copy, double);
11588           break;
11589         default:
11590           break;
11591         }
11592     }
11593   va_end (args_copy);
11594   va_end (args);
11595 }
11596
11597 int
11598 main ()
11599 {
11600
11601   // Check bool.
11602   _Bool success = false;
11603
11604   // Check restrict.
11605   if (test_restrict ("String literal") == 0)
11606     success = true;
11607   char *restrict newvar = "Another string";
11608
11609   // Check varargs.
11610   test_varargs ("s, d' f .", "string", 65, 34.234);
11611   test_varargs_macros ();
11612
11613   // Check flexible array members.
11614   struct incomplete_array *ia =
11615     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11616   ia->datasize = 10;
11617   for (int i = 0; i < ia->datasize; ++i)
11618     ia->data[i] = i * 1.234;
11619
11620   // Check named initializers.
11621   struct named_init ni = {
11622     .number = 34,
11623     .name = L"Test wide string",
11624     .average = 543.34343,
11625   };
11626
11627   ni.number = 58;
11628
11629   int dynamic_array[ni.number];
11630   dynamic_array[ni.number - 1] = 543;
11631
11632   // work around unused variable warnings
11633   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11634           || dynamic_array[ni.number - 1] != 543);
11635
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11641 do
11642   CC="$ac_save_CC $ac_arg"
11643   if ac_fn_c_try_compile "$LINENO"; then :
11644   ac_cv_prog_cc_c99=$ac_arg
11645 fi
11646 rm -f core conftest.err conftest.$ac_objext
11647   test "x$ac_cv_prog_cc_c99" != "xno" && break
11648 done
11649 rm -f conftest.$ac_ext
11650 CC=$ac_save_CC
11651
11652 fi
11653 # AC_CACHE_VAL
11654 case "x$ac_cv_prog_cc_c99" in
11655   x)
11656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11657 $as_echo "none needed" >&6; } ;;
11658   xno)
11659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11660 $as_echo "unsupported" >&6; } ;;
11661   *)
11662     CC="$CC $ac_cv_prog_cc_c99"
11663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11664 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11665 esac
11666 if test "x$ac_cv_prog_cc_c99" != xno; then :
11667
11668 fi
11669
11670
11671
11672
11673
11674
11675 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11676 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11677   CLANGCC="yes"
11678 else
11679   CLANGCC="no"
11680 fi
11681
11682 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11683 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11684   INTELCC="yes"
11685 else
11686   INTELCC="no"
11687 fi
11688
11689 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11690 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11691   SUNCC="yes"
11692 else
11693   SUNCC="no"
11694 fi
11695
11696
11697
11698
11699 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11700         if test -n "$ac_tool_prefix"; then
11701   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11702 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   case $PKG_CONFIG in
11709   [\\/]* | ?:[\\/]*)
11710   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11711   ;;
11712   *)
11713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11715 do
11716   IFS=$as_save_IFS
11717   test -z "$as_dir" && as_dir=.
11718     for ac_exec_ext in '' $ac_executable_extensions; do
11719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722     break 2
11723   fi
11724 done
11725   done
11726 IFS=$as_save_IFS
11727
11728   ;;
11729 esac
11730 fi
11731 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11732 if test -n "$PKG_CONFIG"; then
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11734 $as_echo "$PKG_CONFIG" >&6; }
11735 else
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11738 fi
11739
11740
11741 fi
11742 if test -z "$ac_cv_path_PKG_CONFIG"; then
11743   ac_pt_PKG_CONFIG=$PKG_CONFIG
11744   # Extract the first word of "pkg-config", so it can be a program name with args.
11745 set dummy pkg-config; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11749   $as_echo_n "(cached) " >&6
11750 else
11751   case $ac_pt_PKG_CONFIG in
11752   [\\/]* | ?:[\\/]*)
11753   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11754   ;;
11755   *)
11756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11758 do
11759   IFS=$as_save_IFS
11760   test -z "$as_dir" && as_dir=.
11761     for ac_exec_ext in '' $ac_executable_extensions; do
11762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11763     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765     break 2
11766   fi
11767 done
11768   done
11769 IFS=$as_save_IFS
11770
11771   ;;
11772 esac
11773 fi
11774 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11775 if test -n "$ac_pt_PKG_CONFIG"; then
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11777 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11778 else
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 fi
11782
11783   if test "x$ac_pt_PKG_CONFIG" = x; then
11784     PKG_CONFIG=""
11785   else
11786     case $cross_compiling:$ac_tool_warned in
11787 yes:)
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11790 ac_tool_warned=yes ;;
11791 esac
11792     PKG_CONFIG=$ac_pt_PKG_CONFIG
11793   fi
11794 else
11795   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11796 fi
11797
11798 fi
11799 if test -n "$PKG_CONFIG"; then
11800         _pkg_min_version=0.9.0
11801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11802 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11803         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11804                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11806         else
11807                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809                 PKG_CONFIG=""
11810         fi
11811
11812 fi
11813
11814
11815
11816
11817
11818 # Check whether --enable-selective-werror was given.
11819 if test "${enable_selective_werror+set}" = set; then :
11820   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11821 else
11822   SELECTIVE_WERROR=yes
11823 fi
11824
11825
11826
11827
11828
11829 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11830 if test "x$SUNCC" = "xyes"; then
11831     BASE_CFLAGS="-v"
11832 else
11833     BASE_CFLAGS=""
11834 fi
11835
11836 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850 xorg_testset_save_CFLAGS="$CFLAGS"
11851
11852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11853         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11854         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11857   $as_echo_n "(cached) " >&6
11858 else
11859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h.  */
11861 int i;
11862 _ACEOF
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864   xorg_cv_cc_flag_unknown_warning_option=yes
11865 else
11866   xorg_cv_cc_flag_unknown_warning_option=no
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11872         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11873         CFLAGS="$xorg_testset_save_CFLAGS"
11874 fi
11875
11876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11877         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11878                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11879         fi
11880         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11884   $as_echo_n "(cached) " >&6
11885 else
11886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h.  */
11888 int i;
11889 _ACEOF
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891   xorg_cv_cc_flag_unused_command_line_argument=yes
11892 else
11893   xorg_cv_cc_flag_unused_command_line_argument=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11899         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11900         CFLAGS="$xorg_testset_save_CFLAGS"
11901 fi
11902
11903 found="no"
11904
11905         if test $found = "no" ; then
11906                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11907                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11908                 fi
11909
11910                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11911                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11912                 fi
11913
11914                 CFLAGS="$CFLAGS -Wall"
11915
11916                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11917 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11918                 cacheid=xorg_cv_cc_flag__Wall
11919                 if eval \${$cacheid+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h.  */
11924 int i;
11925 int
11926 main ()
11927 {
11928
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 if ac_fn_c_try_link "$LINENO"; then :
11934   eval $cacheid=yes
11935 else
11936   eval $cacheid=no
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext \
11939     conftest$ac_exeext conftest.$ac_ext
11940 fi
11941
11942
11943                 CFLAGS="$xorg_testset_save_CFLAGS"
11944
11945                 eval supported=\$$cacheid
11946                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11947 $as_echo "$supported" >&6; }
11948                 if test "$supported" = "yes" ; then
11949                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
11950                         found="yes"
11951                 fi
11952         fi
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968 xorg_testset_save_CFLAGS="$CFLAGS"
11969
11970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11971         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h.  */
11979 int i;
11980 _ACEOF
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982   xorg_cv_cc_flag_unknown_warning_option=yes
11983 else
11984   xorg_cv_cc_flag_unknown_warning_option=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11990         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11991         CFLAGS="$xorg_testset_save_CFLAGS"
11992 fi
11993
11994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11995         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11996                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11997         fi
11998         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h.  */
12006 int i;
12007 _ACEOF
12008 if ac_fn_c_try_compile "$LINENO"; then :
12009   xorg_cv_cc_flag_unused_command_line_argument=yes
12010 else
12011   xorg_cv_cc_flag_unused_command_line_argument=no
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 fi
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12017         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12018         CFLAGS="$xorg_testset_save_CFLAGS"
12019 fi
12020
12021 found="no"
12022
12023         if test $found = "no" ; then
12024                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12025                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12026                 fi
12027
12028                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12029                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12030                 fi
12031
12032                 CFLAGS="$CFLAGS -Wpointer-arith"
12033
12034                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12035 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12036                 cacheid=xorg_cv_cc_flag__Wpointer_arith
12037                 if eval \${$cacheid+:} false; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h.  */
12042 int i;
12043 int
12044 main ()
12045 {
12046
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052   eval $cacheid=yes
12053 else
12054   eval $cacheid=no
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext \
12057     conftest$ac_exeext conftest.$ac_ext
12058 fi
12059
12060
12061                 CFLAGS="$xorg_testset_save_CFLAGS"
12062
12063                 eval supported=\$$cacheid
12064                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12065 $as_echo "$supported" >&6; }
12066                 if test "$supported" = "yes" ; then
12067                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12068                         found="yes"
12069                 fi
12070         fi
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086 xorg_testset_save_CFLAGS="$CFLAGS"
12087
12088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12089         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12091 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12092 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12093   $as_echo_n "(cached) " >&6
12094 else
12095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h.  */
12097 int i;
12098 _ACEOF
12099 if ac_fn_c_try_compile "$LINENO"; then :
12100   xorg_cv_cc_flag_unknown_warning_option=yes
12101 else
12102   xorg_cv_cc_flag_unknown_warning_option=no
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12107 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12108         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12109         CFLAGS="$xorg_testset_save_CFLAGS"
12110 fi
12111
12112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12113         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12114                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12115         fi
12116         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12117         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12118 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12119 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h.  */
12124 int i;
12125 _ACEOF
12126 if ac_fn_c_try_compile "$LINENO"; then :
12127   xorg_cv_cc_flag_unused_command_line_argument=yes
12128 else
12129   xorg_cv_cc_flag_unused_command_line_argument=no
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12134 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12135         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12136         CFLAGS="$xorg_testset_save_CFLAGS"
12137 fi
12138
12139 found="no"
12140
12141         if test $found = "no" ; then
12142                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12143                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12144                 fi
12145
12146                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12147                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12148                 fi
12149
12150                 CFLAGS="$CFLAGS -Wmissing-declarations"
12151
12152                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12153 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12154                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12155                 if eval \${$cacheid+:} false; then :
12156   $as_echo_n "(cached) " >&6
12157 else
12158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h.  */
12160 int i;
12161 int
12162 main ()
12163 {
12164
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 if ac_fn_c_try_link "$LINENO"; then :
12170   eval $cacheid=yes
12171 else
12172   eval $cacheid=no
12173 fi
12174 rm -f core conftest.err conftest.$ac_objext \
12175     conftest$ac_exeext conftest.$ac_ext
12176 fi
12177
12178
12179                 CFLAGS="$xorg_testset_save_CFLAGS"
12180
12181                 eval supported=\$$cacheid
12182                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12183 $as_echo "$supported" >&6; }
12184                 if test "$supported" = "yes" ; then
12185                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12186                         found="yes"
12187                 fi
12188         fi
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204 xorg_testset_save_CFLAGS="$CFLAGS"
12205
12206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12207         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12209 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12210 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12211   $as_echo_n "(cached) " >&6
12212 else
12213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h.  */
12215 int i;
12216 _ACEOF
12217 if ac_fn_c_try_compile "$LINENO"; then :
12218   xorg_cv_cc_flag_unknown_warning_option=yes
12219 else
12220   xorg_cv_cc_flag_unknown_warning_option=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12225 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12226         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12227         CFLAGS="$xorg_testset_save_CFLAGS"
12228 fi
12229
12230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12231         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12232                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12233         fi
12234         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12236 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12237 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h.  */
12242 int i;
12243 _ACEOF
12244 if ac_fn_c_try_compile "$LINENO"; then :
12245   xorg_cv_cc_flag_unused_command_line_argument=yes
12246 else
12247   xorg_cv_cc_flag_unused_command_line_argument=no
12248 fi
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12252 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12253         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12254         CFLAGS="$xorg_testset_save_CFLAGS"
12255 fi
12256
12257 found="no"
12258
12259         if test $found = "no" ; then
12260                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12261                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12262                 fi
12263
12264                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12265                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12266                 fi
12267
12268                 CFLAGS="$CFLAGS -Wformat=2"
12269
12270                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12271 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12272                 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12273                 if eval \${$cacheid+:} false; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278 int i;
12279 int
12280 main ()
12281 {
12282
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 if ac_fn_c_try_link "$LINENO"; then :
12288   eval $cacheid=yes
12289 else
12290   eval $cacheid=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext \
12293     conftest$ac_exeext conftest.$ac_ext
12294 fi
12295
12296
12297                 CFLAGS="$xorg_testset_save_CFLAGS"
12298
12299                 eval supported=\$$cacheid
12300                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12301 $as_echo "$supported" >&6; }
12302                 if test "$supported" = "yes" ; then
12303                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12304                         found="yes"
12305                 fi
12306         fi
12307
12308         if test $found = "no" ; then
12309                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12310                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12311                 fi
12312
12313                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12314                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12315                 fi
12316
12317                 CFLAGS="$CFLAGS -Wformat"
12318
12319                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12320 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12321                 cacheid=xorg_cv_cc_flag__Wformat
12322                 if eval \${$cacheid+:} false; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h.  */
12327 int i;
12328 int
12329 main ()
12330 {
12331
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337   eval $cacheid=yes
12338 else
12339   eval $cacheid=no
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext \
12342     conftest$ac_exeext conftest.$ac_ext
12343 fi
12344
12345
12346                 CFLAGS="$xorg_testset_save_CFLAGS"
12347
12348                 eval supported=\$$cacheid
12349                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12350 $as_echo "$supported" >&6; }
12351                 if test "$supported" = "yes" ; then
12352                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12353                         found="yes"
12354                 fi
12355         fi
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373 xorg_testset_save_CFLAGS="$CFLAGS"
12374
12375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12376         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h.  */
12384 int i;
12385 _ACEOF
12386 if ac_fn_c_try_compile "$LINENO"; then :
12387   xorg_cv_cc_flag_unknown_warning_option=yes
12388 else
12389   xorg_cv_cc_flag_unknown_warning_option=no
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12395         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12396         CFLAGS="$xorg_testset_save_CFLAGS"
12397 fi
12398
12399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12400         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12401                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12402         fi
12403         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h.  */
12411 int i;
12412 _ACEOF
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414   xorg_cv_cc_flag_unused_command_line_argument=yes
12415 else
12416   xorg_cv_cc_flag_unused_command_line_argument=no
12417 fi
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12422         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12423         CFLAGS="$xorg_testset_save_CFLAGS"
12424 fi
12425
12426 found="no"
12427
12428         if test $found = "no" ; then
12429                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12430                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12431                 fi
12432
12433                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12434                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12435                 fi
12436
12437                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12438
12439                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12440 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12441                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12442                 if eval \${$cacheid+:} false; then :
12443   $as_echo_n "(cached) " >&6
12444 else
12445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h.  */
12447 int i;
12448 int
12449 main ()
12450 {
12451
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457   eval $cacheid=yes
12458 else
12459   eval $cacheid=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462     conftest$ac_exeext conftest.$ac_ext
12463 fi
12464
12465
12466                 CFLAGS="$xorg_testset_save_CFLAGS"
12467
12468                 eval supported=\$$cacheid
12469                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12470 $as_echo "$supported" >&6; }
12471                 if test "$supported" = "yes" ; then
12472                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12473                         found="yes"
12474                 fi
12475         fi
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491 xorg_testset_save_CFLAGS="$CFLAGS"
12492
12493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12494         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12496 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12497 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h.  */
12502 int i;
12503 _ACEOF
12504 if ac_fn_c_try_compile "$LINENO"; then :
12505   xorg_cv_cc_flag_unknown_warning_option=yes
12506 else
12507   xorg_cv_cc_flag_unknown_warning_option=no
12508 fi
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12512 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12513         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12514         CFLAGS="$xorg_testset_save_CFLAGS"
12515 fi
12516
12517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12518         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12519                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12520         fi
12521         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12523 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12524 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
12531 if ac_fn_c_try_compile "$LINENO"; then :
12532   xorg_cv_cc_flag_unused_command_line_argument=yes
12533 else
12534   xorg_cv_cc_flag_unused_command_line_argument=no
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12539 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12540         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12541         CFLAGS="$xorg_testset_save_CFLAGS"
12542 fi
12543
12544 found="no"
12545
12546         if test $found = "no" ; then
12547                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12548                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12549                 fi
12550
12551                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12552                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12553                 fi
12554
12555                 CFLAGS="$CFLAGS -Wmissing-prototypes"
12556
12557                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12558 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12559                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12560                 if eval \${$cacheid+:} false; then :
12561   $as_echo_n "(cached) " >&6
12562 else
12563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h.  */
12565 int i;
12566 int
12567 main ()
12568 {
12569
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575   eval $cacheid=yes
12576 else
12577   eval $cacheid=no
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext \
12580     conftest$ac_exeext conftest.$ac_ext
12581 fi
12582
12583
12584                 CFLAGS="$xorg_testset_save_CFLAGS"
12585
12586                 eval supported=\$$cacheid
12587                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12588 $as_echo "$supported" >&6; }
12589                 if test "$supported" = "yes" ; then
12590                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12591                         found="yes"
12592                 fi
12593         fi
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609 xorg_testset_save_CFLAGS="$CFLAGS"
12610
12611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12612         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12614 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12615 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12616   $as_echo_n "(cached) " >&6
12617 else
12618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h.  */
12620 int i;
12621 _ACEOF
12622 if ac_fn_c_try_compile "$LINENO"; then :
12623   xorg_cv_cc_flag_unknown_warning_option=yes
12624 else
12625   xorg_cv_cc_flag_unknown_warning_option=no
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 fi
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12630 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12631         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12632         CFLAGS="$xorg_testset_save_CFLAGS"
12633 fi
12634
12635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12636         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12637                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12638         fi
12639         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12641 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12642 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12643   $as_echo_n "(cached) " >&6
12644 else
12645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h.  */
12647 int i;
12648 _ACEOF
12649 if ac_fn_c_try_compile "$LINENO"; then :
12650   xorg_cv_cc_flag_unused_command_line_argument=yes
12651 else
12652   xorg_cv_cc_flag_unused_command_line_argument=no
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12657 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12658         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12659         CFLAGS="$xorg_testset_save_CFLAGS"
12660 fi
12661
12662 found="no"
12663
12664         if test $found = "no" ; then
12665                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12666                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12667                 fi
12668
12669                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12670                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12671                 fi
12672
12673                 CFLAGS="$CFLAGS -Wnested-externs"
12674
12675                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12676 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12677                 cacheid=xorg_cv_cc_flag__Wnested_externs
12678                 if eval \${$cacheid+:} false; then :
12679   $as_echo_n "(cached) " >&6
12680 else
12681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 int i;
12684 int
12685 main ()
12686 {
12687
12688   ;
12689   return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_link "$LINENO"; then :
12693   eval $cacheid=yes
12694 else
12695   eval $cacheid=no
12696 fi
12697 rm -f core conftest.err conftest.$ac_objext \
12698     conftest$ac_exeext conftest.$ac_ext
12699 fi
12700
12701
12702                 CFLAGS="$xorg_testset_save_CFLAGS"
12703
12704                 eval supported=\$$cacheid
12705                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12706 $as_echo "$supported" >&6; }
12707                 if test "$supported" = "yes" ; then
12708                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12709                         found="yes"
12710                 fi
12711         fi
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727 xorg_testset_save_CFLAGS="$CFLAGS"
12728
12729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12730         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h.  */
12738 int i;
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741   xorg_cv_cc_flag_unknown_warning_option=yes
12742 else
12743   xorg_cv_cc_flag_unknown_warning_option=no
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12749         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12750         CFLAGS="$xorg_testset_save_CFLAGS"
12751 fi
12752
12753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12754         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12755                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12756         fi
12757         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h.  */
12765 int i;
12766 _ACEOF
12767 if ac_fn_c_try_compile "$LINENO"; then :
12768   xorg_cv_cc_flag_unused_command_line_argument=yes
12769 else
12770   xorg_cv_cc_flag_unused_command_line_argument=no
12771 fi
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12776         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12777         CFLAGS="$xorg_testset_save_CFLAGS"
12778 fi
12779
12780 found="no"
12781
12782         if test $found = "no" ; then
12783                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12784                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12785                 fi
12786
12787                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12788                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12789                 fi
12790
12791                 CFLAGS="$CFLAGS -Wbad-function-cast"
12792
12793                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12794 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12795                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12796                 if eval \${$cacheid+:} false; then :
12797   $as_echo_n "(cached) " >&6
12798 else
12799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h.  */
12801 int i;
12802 int
12803 main ()
12804 {
12805
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811   eval $cacheid=yes
12812 else
12813   eval $cacheid=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816     conftest$ac_exeext conftest.$ac_ext
12817 fi
12818
12819
12820                 CFLAGS="$xorg_testset_save_CFLAGS"
12821
12822                 eval supported=\$$cacheid
12823                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12824 $as_echo "$supported" >&6; }
12825                 if test "$supported" = "yes" ; then
12826                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12827                         found="yes"
12828                 fi
12829         fi
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845 xorg_testset_save_CFLAGS="$CFLAGS"
12846
12847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12848         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12849         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12852   $as_echo_n "(cached) " >&6
12853 else
12854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h.  */
12856 int i;
12857 _ACEOF
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859   xorg_cv_cc_flag_unknown_warning_option=yes
12860 else
12861   xorg_cv_cc_flag_unknown_warning_option=no
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 fi
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12867         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12868         CFLAGS="$xorg_testset_save_CFLAGS"
12869 fi
12870
12871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12872         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12873                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12874         fi
12875         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12879   $as_echo_n "(cached) " >&6
12880 else
12881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h.  */
12883 int i;
12884 _ACEOF
12885 if ac_fn_c_try_compile "$LINENO"; then :
12886   xorg_cv_cc_flag_unused_command_line_argument=yes
12887 else
12888   xorg_cv_cc_flag_unused_command_line_argument=no
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 fi
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12894         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12895         CFLAGS="$xorg_testset_save_CFLAGS"
12896 fi
12897
12898 found="no"
12899
12900         if test $found = "no" ; then
12901                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12902                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12903                 fi
12904
12905                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12906                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12907                 fi
12908
12909                 CFLAGS="$CFLAGS -Wold-style-definition"
12910
12911                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12912 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12913                 cacheid=xorg_cv_cc_flag__Wold_style_definition
12914                 if eval \${$cacheid+:} false; then :
12915   $as_echo_n "(cached) " >&6
12916 else
12917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h.  */
12919 int i;
12920 int
12921 main ()
12922 {
12923
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 if ac_fn_c_try_link "$LINENO"; then :
12929   eval $cacheid=yes
12930 else
12931   eval $cacheid=no
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext \
12934     conftest$ac_exeext conftest.$ac_ext
12935 fi
12936
12937
12938                 CFLAGS="$xorg_testset_save_CFLAGS"
12939
12940                 eval supported=\$$cacheid
12941                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12942 $as_echo "$supported" >&6; }
12943                 if test "$supported" = "yes" ; then
12944                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12945                         found="yes"
12946                 fi
12947         fi
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963 xorg_testset_save_CFLAGS="$CFLAGS"
12964
12965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12966         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h.  */
12974 int i;
12975 _ACEOF
12976 if ac_fn_c_try_compile "$LINENO"; then :
12977   xorg_cv_cc_flag_unknown_warning_option=yes
12978 else
12979   xorg_cv_cc_flag_unknown_warning_option=no
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12982 fi
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12985         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12986         CFLAGS="$xorg_testset_save_CFLAGS"
12987 fi
12988
12989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12990         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12991                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12992         fi
12993         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12997   $as_echo_n "(cached) " >&6
12998 else
12999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h.  */
13001 int i;
13002 _ACEOF
13003 if ac_fn_c_try_compile "$LINENO"; then :
13004   xorg_cv_cc_flag_unused_command_line_argument=yes
13005 else
13006   xorg_cv_cc_flag_unused_command_line_argument=no
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13012         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13013         CFLAGS="$xorg_testset_save_CFLAGS"
13014 fi
13015
13016 found="no"
13017
13018         if test $found = "no" ; then
13019                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13020                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13021                 fi
13022
13023                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13024                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13025                 fi
13026
13027                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13028
13029                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13030 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13031                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13032                 if eval \${$cacheid+:} false; then :
13033   $as_echo_n "(cached) " >&6
13034 else
13035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h.  */
13037 int i;
13038 int
13039 main ()
13040 {
13041
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_link "$LINENO"; then :
13047   eval $cacheid=yes
13048 else
13049   eval $cacheid=no
13050 fi
13051 rm -f core conftest.err conftest.$ac_objext \
13052     conftest$ac_exeext conftest.$ac_ext
13053 fi
13054
13055
13056                 CFLAGS="$xorg_testset_save_CFLAGS"
13057
13058                 eval supported=\$$cacheid
13059                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13060 $as_echo "$supported" >&6; }
13061                 if test "$supported" = "yes" ; then
13062                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13063                         found="yes"
13064                 fi
13065         fi
13066
13067
13068
13069
13070
13071 # This chunk adds additional warnings that could catch undesired effects.
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085 xorg_testset_save_CFLAGS="$CFLAGS"
13086
13087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13088         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h.  */
13096 int i;
13097 _ACEOF
13098 if ac_fn_c_try_compile "$LINENO"; then :
13099   xorg_cv_cc_flag_unknown_warning_option=yes
13100 else
13101   xorg_cv_cc_flag_unknown_warning_option=no
13102 fi
13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 fi
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13107         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13108         CFLAGS="$xorg_testset_save_CFLAGS"
13109 fi
13110
13111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13112         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13113                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13114         fi
13115         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13119   $as_echo_n "(cached) " >&6
13120 else
13121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h.  */
13123 int i;
13124 _ACEOF
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126   xorg_cv_cc_flag_unused_command_line_argument=yes
13127 else
13128   xorg_cv_cc_flag_unused_command_line_argument=no
13129 fi
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13134         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13135         CFLAGS="$xorg_testset_save_CFLAGS"
13136 fi
13137
13138 found="no"
13139
13140         if test $found = "no" ; then
13141                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13142                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13143                 fi
13144
13145                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13146                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13147                 fi
13148
13149                 CFLAGS="$CFLAGS -Wunused"
13150
13151                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13152 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13153                 cacheid=xorg_cv_cc_flag__Wunused
13154                 if eval \${$cacheid+:} false; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h.  */
13159 int i;
13160 int
13161 main ()
13162 {
13163
13164   ;
13165   return 0;
13166 }
13167 _ACEOF
13168 if ac_fn_c_try_link "$LINENO"; then :
13169   eval $cacheid=yes
13170 else
13171   eval $cacheid=no
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext \
13174     conftest$ac_exeext conftest.$ac_ext
13175 fi
13176
13177
13178                 CFLAGS="$xorg_testset_save_CFLAGS"
13179
13180                 eval supported=\$$cacheid
13181                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13182 $as_echo "$supported" >&6; }
13183                 if test "$supported" = "yes" ; then
13184                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13185                         found="yes"
13186                 fi
13187         fi
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203 xorg_testset_save_CFLAGS="$CFLAGS"
13204
13205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13206         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13210   $as_echo_n "(cached) " >&6
13211 else
13212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h.  */
13214 int i;
13215 _ACEOF
13216 if ac_fn_c_try_compile "$LINENO"; then :
13217   xorg_cv_cc_flag_unknown_warning_option=yes
13218 else
13219   xorg_cv_cc_flag_unknown_warning_option=no
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 fi
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13225         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13226         CFLAGS="$xorg_testset_save_CFLAGS"
13227 fi
13228
13229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13230         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13231                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13232         fi
13233         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h.  */
13241 int i;
13242 _ACEOF
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244   xorg_cv_cc_flag_unused_command_line_argument=yes
13245 else
13246   xorg_cv_cc_flag_unused_command_line_argument=no
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 fi
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13252         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13253         CFLAGS="$xorg_testset_save_CFLAGS"
13254 fi
13255
13256 found="no"
13257
13258         if test $found = "no" ; then
13259                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13260                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13261                 fi
13262
13263                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13264                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13265                 fi
13266
13267                 CFLAGS="$CFLAGS -Wuninitialized"
13268
13269                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13270 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13271                 cacheid=xorg_cv_cc_flag__Wuninitialized
13272                 if eval \${$cacheid+:} false; then :
13273   $as_echo_n "(cached) " >&6
13274 else
13275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h.  */
13277 int i;
13278 int
13279 main ()
13280 {
13281
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_link "$LINENO"; then :
13287   eval $cacheid=yes
13288 else
13289   eval $cacheid=no
13290 fi
13291 rm -f core conftest.err conftest.$ac_objext \
13292     conftest$ac_exeext conftest.$ac_ext
13293 fi
13294
13295
13296                 CFLAGS="$xorg_testset_save_CFLAGS"
13297
13298                 eval supported=\$$cacheid
13299                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13300 $as_echo "$supported" >&6; }
13301                 if test "$supported" = "yes" ; then
13302                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13303                         found="yes"
13304                 fi
13305         fi
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321 xorg_testset_save_CFLAGS="$CFLAGS"
13322
13323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13324         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h.  */
13332 int i;
13333 _ACEOF
13334 if ac_fn_c_try_compile "$LINENO"; then :
13335   xorg_cv_cc_flag_unknown_warning_option=yes
13336 else
13337   xorg_cv_cc_flag_unknown_warning_option=no
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 fi
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13343         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13344         CFLAGS="$xorg_testset_save_CFLAGS"
13345 fi
13346
13347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13348         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13349                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350         fi
13351         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h.  */
13359 int i;
13360 _ACEOF
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362   xorg_cv_cc_flag_unused_command_line_argument=yes
13363 else
13364   xorg_cv_cc_flag_unused_command_line_argument=no
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13370         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13371         CFLAGS="$xorg_testset_save_CFLAGS"
13372 fi
13373
13374 found="no"
13375
13376         if test $found = "no" ; then
13377                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13378                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379                 fi
13380
13381                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13382                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13383                 fi
13384
13385                 CFLAGS="$CFLAGS -Wshadow"
13386
13387                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13388 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13389                 cacheid=xorg_cv_cc_flag__Wshadow
13390                 if eval \${$cacheid+:} false; then :
13391   $as_echo_n "(cached) " >&6
13392 else
13393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h.  */
13395 int i;
13396 int
13397 main ()
13398 {
13399
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 if ac_fn_c_try_link "$LINENO"; then :
13405   eval $cacheid=yes
13406 else
13407   eval $cacheid=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext \
13410     conftest$ac_exeext conftest.$ac_ext
13411 fi
13412
13413
13414                 CFLAGS="$xorg_testset_save_CFLAGS"
13415
13416                 eval supported=\$$cacheid
13417                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13418 $as_echo "$supported" >&6; }
13419                 if test "$supported" = "yes" ; then
13420                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13421                         found="yes"
13422                 fi
13423         fi
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439 xorg_testset_save_CFLAGS="$CFLAGS"
13440
13441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13442         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13446   $as_echo_n "(cached) " >&6
13447 else
13448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h.  */
13450 int i;
13451 _ACEOF
13452 if ac_fn_c_try_compile "$LINENO"; then :
13453   xorg_cv_cc_flag_unknown_warning_option=yes
13454 else
13455   xorg_cv_cc_flag_unknown_warning_option=no
13456 fi
13457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13461         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13462         CFLAGS="$xorg_testset_save_CFLAGS"
13463 fi
13464
13465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13466         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13467                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13468         fi
13469         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h.  */
13477 int i;
13478 _ACEOF
13479 if ac_fn_c_try_compile "$LINENO"; then :
13480   xorg_cv_cc_flag_unused_command_line_argument=yes
13481 else
13482   xorg_cv_cc_flag_unused_command_line_argument=no
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 fi
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13488         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13489         CFLAGS="$xorg_testset_save_CFLAGS"
13490 fi
13491
13492 found="no"
13493
13494         if test $found = "no" ; then
13495                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13496                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13497                 fi
13498
13499                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13500                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13501                 fi
13502
13503                 CFLAGS="$CFLAGS -Wcast-qual"
13504
13505                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13506 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13507                 cacheid=xorg_cv_cc_flag__Wcast_qual
13508                 if eval \${$cacheid+:} false; then :
13509   $as_echo_n "(cached) " >&6
13510 else
13511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h.  */
13513 int i;
13514 int
13515 main ()
13516 {
13517
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 if ac_fn_c_try_link "$LINENO"; then :
13523   eval $cacheid=yes
13524 else
13525   eval $cacheid=no
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext \
13528     conftest$ac_exeext conftest.$ac_ext
13529 fi
13530
13531
13532                 CFLAGS="$xorg_testset_save_CFLAGS"
13533
13534                 eval supported=\$$cacheid
13535                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13536 $as_echo "$supported" >&6; }
13537                 if test "$supported" = "yes" ; then
13538                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13539                         found="yes"
13540                 fi
13541         fi
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557 xorg_testset_save_CFLAGS="$CFLAGS"
13558
13559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13560         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13564   $as_echo_n "(cached) " >&6
13565 else
13566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h.  */
13568 int i;
13569 _ACEOF
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571   xorg_cv_cc_flag_unknown_warning_option=yes
13572 else
13573   xorg_cv_cc_flag_unknown_warning_option=no
13574 fi
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576 fi
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13579         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13580         CFLAGS="$xorg_testset_save_CFLAGS"
13581 fi
13582
13583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13584         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13585                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13586         fi
13587         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13591   $as_echo_n "(cached) " >&6
13592 else
13593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h.  */
13595 int i;
13596 _ACEOF
13597 if ac_fn_c_try_compile "$LINENO"; then :
13598   xorg_cv_cc_flag_unused_command_line_argument=yes
13599 else
13600   xorg_cv_cc_flag_unused_command_line_argument=no
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13606         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13607         CFLAGS="$xorg_testset_save_CFLAGS"
13608 fi
13609
13610 found="no"
13611
13612         if test $found = "no" ; then
13613                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13614                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13615                 fi
13616
13617                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13618                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13619                 fi
13620
13621                 CFLAGS="$CFLAGS -Wmissing-noreturn"
13622
13623                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13624 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13625                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13626                 if eval \${$cacheid+:} false; then :
13627   $as_echo_n "(cached) " >&6
13628 else
13629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h.  */
13631 int i;
13632 int
13633 main ()
13634 {
13635
13636   ;
13637   return 0;
13638 }
13639 _ACEOF
13640 if ac_fn_c_try_link "$LINENO"; then :
13641   eval $cacheid=yes
13642 else
13643   eval $cacheid=no
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext \
13646     conftest$ac_exeext conftest.$ac_ext
13647 fi
13648
13649
13650                 CFLAGS="$xorg_testset_save_CFLAGS"
13651
13652                 eval supported=\$$cacheid
13653                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13654 $as_echo "$supported" >&6; }
13655                 if test "$supported" = "yes" ; then
13656                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13657                         found="yes"
13658                 fi
13659         fi
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675 xorg_testset_save_CFLAGS="$CFLAGS"
13676
13677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13678         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13682   $as_echo_n "(cached) " >&6
13683 else
13684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686 int i;
13687 _ACEOF
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689   xorg_cv_cc_flag_unknown_warning_option=yes
13690 else
13691   xorg_cv_cc_flag_unknown_warning_option=no
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 fi
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13697         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13698         CFLAGS="$xorg_testset_save_CFLAGS"
13699 fi
13700
13701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13702         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704         fi
13705         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13706         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h.  */
13713 int i;
13714 _ACEOF
13715 if ac_fn_c_try_compile "$LINENO"; then :
13716   xorg_cv_cc_flag_unused_command_line_argument=yes
13717 else
13718   xorg_cv_cc_flag_unused_command_line_argument=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13724         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13725         CFLAGS="$xorg_testset_save_CFLAGS"
13726 fi
13727
13728 found="no"
13729
13730         if test $found = "no" ; then
13731                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13732                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13733                 fi
13734
13735                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13736                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13737                 fi
13738
13739                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13740
13741                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13742 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13743                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13744                 if eval \${$cacheid+:} false; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h.  */
13749 int i;
13750 int
13751 main ()
13752 {
13753
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 if ac_fn_c_try_link "$LINENO"; then :
13759   eval $cacheid=yes
13760 else
13761   eval $cacheid=no
13762 fi
13763 rm -f core conftest.err conftest.$ac_objext \
13764     conftest$ac_exeext conftest.$ac_ext
13765 fi
13766
13767
13768                 CFLAGS="$xorg_testset_save_CFLAGS"
13769
13770                 eval supported=\$$cacheid
13771                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13772 $as_echo "$supported" >&6; }
13773                 if test "$supported" = "yes" ; then
13774                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13775                         found="yes"
13776                 fi
13777         fi
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793 xorg_testset_save_CFLAGS="$CFLAGS"
13794
13795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13796         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13800   $as_echo_n "(cached) " >&6
13801 else
13802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h.  */
13804 int i;
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807   xorg_cv_cc_flag_unknown_warning_option=yes
13808 else
13809   xorg_cv_cc_flag_unknown_warning_option=no
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13815         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13816         CFLAGS="$xorg_testset_save_CFLAGS"
13817 fi
13818
13819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13820         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13821                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13822         fi
13823         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h.  */
13831 int i;
13832 _ACEOF
13833 if ac_fn_c_try_compile "$LINENO"; then :
13834   xorg_cv_cc_flag_unused_command_line_argument=yes
13835 else
13836   xorg_cv_cc_flag_unused_command_line_argument=no
13837 fi
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839 fi
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13842         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13843         CFLAGS="$xorg_testset_save_CFLAGS"
13844 fi
13845
13846 found="no"
13847
13848         if test $found = "no" ; then
13849                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13850                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851                 fi
13852
13853                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13854                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13855                 fi
13856
13857                 CFLAGS="$CFLAGS -Wredundant-decls"
13858
13859                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13860 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13861                 cacheid=xorg_cv_cc_flag__Wredundant_decls
13862                 if eval \${$cacheid+:} false; then :
13863   $as_echo_n "(cached) " >&6
13864 else
13865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h.  */
13867 int i;
13868 int
13869 main ()
13870 {
13871
13872   ;
13873   return 0;
13874 }
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"; then :
13877   eval $cacheid=yes
13878 else
13879   eval $cacheid=no
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext \
13882     conftest$ac_exeext conftest.$ac_ext
13883 fi
13884
13885
13886                 CFLAGS="$xorg_testset_save_CFLAGS"
13887
13888                 eval supported=\$$cacheid
13889                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13890 $as_echo "$supported" >&6; }
13891                 if test "$supported" = "yes" ; then
13892                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13893                         found="yes"
13894                 fi
13895         fi
13896
13897
13898
13899 # These are currently disabled because they are noisy.  They will be enabled
13900 # in the future once the codebase is sufficiently modernized to silence
13901 # them.  For now, I don't want them to drown out the other warnings.
13902 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13903 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13904 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13905
13906 # Turn some warnings into errors, so we don't accidently get successful builds
13907 # when there are problems that should be fixed.
13908
13909 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923 xorg_testset_save_CFLAGS="$CFLAGS"
13924
13925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13926         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13930   $as_echo_n "(cached) " >&6
13931 else
13932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934 int i;
13935 _ACEOF
13936 if ac_fn_c_try_compile "$LINENO"; then :
13937   xorg_cv_cc_flag_unknown_warning_option=yes
13938 else
13939   xorg_cv_cc_flag_unknown_warning_option=no
13940 fi
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13945         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13946         CFLAGS="$xorg_testset_save_CFLAGS"
13947 fi
13948
13949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13950         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13951                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13952         fi
13953         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13957   $as_echo_n "(cached) " >&6
13958 else
13959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h.  */
13961 int i;
13962 _ACEOF
13963 if ac_fn_c_try_compile "$LINENO"; then :
13964   xorg_cv_cc_flag_unused_command_line_argument=yes
13965 else
13966   xorg_cv_cc_flag_unused_command_line_argument=no
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969 fi
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13972         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13973         CFLAGS="$xorg_testset_save_CFLAGS"
13974 fi
13975
13976 found="no"
13977
13978         if test $found = "no" ; then
13979                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13980                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13981                 fi
13982
13983                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13984                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13985                 fi
13986
13987                 CFLAGS="$CFLAGS -Werror=implicit"
13988
13989                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13990 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13991                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13992                 if eval \${$cacheid+:} false; then :
13993   $as_echo_n "(cached) " >&6
13994 else
13995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h.  */
13997 int i;
13998 int
13999 main ()
14000 {
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_link "$LINENO"; then :
14007   eval $cacheid=yes
14008 else
14009   eval $cacheid=no
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext \
14012     conftest$ac_exeext conftest.$ac_ext
14013 fi
14014
14015
14016                 CFLAGS="$xorg_testset_save_CFLAGS"
14017
14018                 eval supported=\$$cacheid
14019                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14020 $as_echo "$supported" >&6; }
14021                 if test "$supported" = "yes" ; then
14022                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14023                         found="yes"
14024                 fi
14025         fi
14026
14027         if test $found = "no" ; then
14028                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14029                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14030                 fi
14031
14032                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14033                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14034                 fi
14035
14036                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14037
14038                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14039 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14040                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14041                 if eval \${$cacheid+:} false; then :
14042   $as_echo_n "(cached) " >&6
14043 else
14044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h.  */
14046 int i;
14047 int
14048 main ()
14049 {
14050
14051   ;
14052   return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_c_try_link "$LINENO"; then :
14056   eval $cacheid=yes
14057 else
14058   eval $cacheid=no
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext \
14061     conftest$ac_exeext conftest.$ac_ext
14062 fi
14063
14064
14065                 CFLAGS="$xorg_testset_save_CFLAGS"
14066
14067                 eval supported=\$$cacheid
14068                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14069 $as_echo "$supported" >&6; }
14070                 if test "$supported" = "yes" ; then
14071                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14072                         found="yes"
14073                 fi
14074         fi
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090 xorg_testset_save_CFLAGS="$CFLAGS"
14091
14092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14093         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14094         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14096 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14097   $as_echo_n "(cached) " >&6
14098 else
14099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h.  */
14101 int i;
14102 _ACEOF
14103 if ac_fn_c_try_compile "$LINENO"; then :
14104   xorg_cv_cc_flag_unknown_warning_option=yes
14105 else
14106   xorg_cv_cc_flag_unknown_warning_option=no
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14112         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14113         CFLAGS="$xorg_testset_save_CFLAGS"
14114 fi
14115
14116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14117         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14118                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14119         fi
14120         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14124   $as_echo_n "(cached) " >&6
14125 else
14126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h.  */
14128 int i;
14129 _ACEOF
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131   xorg_cv_cc_flag_unused_command_line_argument=yes
14132 else
14133   xorg_cv_cc_flag_unused_command_line_argument=no
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14139         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14140         CFLAGS="$xorg_testset_save_CFLAGS"
14141 fi
14142
14143 found="no"
14144
14145         if test $found = "no" ; then
14146                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14147                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14148                 fi
14149
14150                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14151                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14152                 fi
14153
14154                 CFLAGS="$CFLAGS -Werror=nonnull"
14155
14156                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14157 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14158                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14159                 if eval \${$cacheid+:} false; then :
14160   $as_echo_n "(cached) " >&6
14161 else
14162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h.  */
14164 int i;
14165 int
14166 main ()
14167 {
14168
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_link "$LINENO"; then :
14174   eval $cacheid=yes
14175 else
14176   eval $cacheid=no
14177 fi
14178 rm -f core conftest.err conftest.$ac_objext \
14179     conftest$ac_exeext conftest.$ac_ext
14180 fi
14181
14182
14183                 CFLAGS="$xorg_testset_save_CFLAGS"
14184
14185                 eval supported=\$$cacheid
14186                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14187 $as_echo "$supported" >&6; }
14188                 if test "$supported" = "yes" ; then
14189                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14190                         found="yes"
14191                 fi
14192         fi
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208 xorg_testset_save_CFLAGS="$CFLAGS"
14209
14210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14211         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14215   $as_echo_n "(cached) " >&6
14216 else
14217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h.  */
14219 int i;
14220 _ACEOF
14221 if ac_fn_c_try_compile "$LINENO"; then :
14222   xorg_cv_cc_flag_unknown_warning_option=yes
14223 else
14224   xorg_cv_cc_flag_unknown_warning_option=no
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14230         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14231         CFLAGS="$xorg_testset_save_CFLAGS"
14232 fi
14233
14234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14235         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14236                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14237         fi
14238         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h.  */
14246 int i;
14247 _ACEOF
14248 if ac_fn_c_try_compile "$LINENO"; then :
14249   xorg_cv_cc_flag_unused_command_line_argument=yes
14250 else
14251   xorg_cv_cc_flag_unused_command_line_argument=no
14252 fi
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 fi
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14257         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14258         CFLAGS="$xorg_testset_save_CFLAGS"
14259 fi
14260
14261 found="no"
14262
14263         if test $found = "no" ; then
14264                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14265                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14266                 fi
14267
14268                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14269                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14270                 fi
14271
14272                 CFLAGS="$CFLAGS -Werror=init-self"
14273
14274                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14275 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14276                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14277                 if eval \${$cacheid+:} false; then :
14278   $as_echo_n "(cached) " >&6
14279 else
14280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h.  */
14282 int i;
14283 int
14284 main ()
14285 {
14286
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 if ac_fn_c_try_link "$LINENO"; then :
14292   eval $cacheid=yes
14293 else
14294   eval $cacheid=no
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext \
14297     conftest$ac_exeext conftest.$ac_ext
14298 fi
14299
14300
14301                 CFLAGS="$xorg_testset_save_CFLAGS"
14302
14303                 eval supported=\$$cacheid
14304                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14305 $as_echo "$supported" >&6; }
14306                 if test "$supported" = "yes" ; then
14307                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14308                         found="yes"
14309                 fi
14310         fi
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326 xorg_testset_save_CFLAGS="$CFLAGS"
14327
14328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14329         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14330         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14333   $as_echo_n "(cached) " >&6
14334 else
14335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h.  */
14337 int i;
14338 _ACEOF
14339 if ac_fn_c_try_compile "$LINENO"; then :
14340   xorg_cv_cc_flag_unknown_warning_option=yes
14341 else
14342   xorg_cv_cc_flag_unknown_warning_option=no
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14348         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14349         CFLAGS="$xorg_testset_save_CFLAGS"
14350 fi
14351
14352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14353         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14354                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14355         fi
14356         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14360   $as_echo_n "(cached) " >&6
14361 else
14362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h.  */
14364 int i;
14365 _ACEOF
14366 if ac_fn_c_try_compile "$LINENO"; then :
14367   xorg_cv_cc_flag_unused_command_line_argument=yes
14368 else
14369   xorg_cv_cc_flag_unused_command_line_argument=no
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14375         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14376         CFLAGS="$xorg_testset_save_CFLAGS"
14377 fi
14378
14379 found="no"
14380
14381         if test $found = "no" ; then
14382                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14383                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14384                 fi
14385
14386                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14387                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14388                 fi
14389
14390                 CFLAGS="$CFLAGS -Werror=main"
14391
14392                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14393 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14394                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14395                 if eval \${$cacheid+:} false; then :
14396   $as_echo_n "(cached) " >&6
14397 else
14398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h.  */
14400 int i;
14401 int
14402 main ()
14403 {
14404
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 if ac_fn_c_try_link "$LINENO"; then :
14410   eval $cacheid=yes
14411 else
14412   eval $cacheid=no
14413 fi
14414 rm -f core conftest.err conftest.$ac_objext \
14415     conftest$ac_exeext conftest.$ac_ext
14416 fi
14417
14418
14419                 CFLAGS="$xorg_testset_save_CFLAGS"
14420
14421                 eval supported=\$$cacheid
14422                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14423 $as_echo "$supported" >&6; }
14424                 if test "$supported" = "yes" ; then
14425                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14426                         found="yes"
14427                 fi
14428         fi
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444 xorg_testset_save_CFLAGS="$CFLAGS"
14445
14446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14447         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h.  */
14455 int i;
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458   xorg_cv_cc_flag_unknown_warning_option=yes
14459 else
14460   xorg_cv_cc_flag_unknown_warning_option=no
14461 fi
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 fi
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14466         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14467         CFLAGS="$xorg_testset_save_CFLAGS"
14468 fi
14469
14470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14471         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14472                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473         fi
14474         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14478   $as_echo_n "(cached) " >&6
14479 else
14480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h.  */
14482 int i;
14483 _ACEOF
14484 if ac_fn_c_try_compile "$LINENO"; then :
14485   xorg_cv_cc_flag_unused_command_line_argument=yes
14486 else
14487   xorg_cv_cc_flag_unused_command_line_argument=no
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14493         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14494         CFLAGS="$xorg_testset_save_CFLAGS"
14495 fi
14496
14497 found="no"
14498
14499         if test $found = "no" ; then
14500                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14501                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502                 fi
14503
14504                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14505                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14506                 fi
14507
14508                 CFLAGS="$CFLAGS -Werror=missing-braces"
14509
14510                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14511 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14512                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14513                 if eval \${$cacheid+:} false; then :
14514   $as_echo_n "(cached) " >&6
14515 else
14516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h.  */
14518 int i;
14519 int
14520 main ()
14521 {
14522
14523   ;
14524   return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"; then :
14528   eval $cacheid=yes
14529 else
14530   eval $cacheid=no
14531 fi
14532 rm -f core conftest.err conftest.$ac_objext \
14533     conftest$ac_exeext conftest.$ac_ext
14534 fi
14535
14536
14537                 CFLAGS="$xorg_testset_save_CFLAGS"
14538
14539                 eval supported=\$$cacheid
14540                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14541 $as_echo "$supported" >&6; }
14542                 if test "$supported" = "yes" ; then
14543                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14544                         found="yes"
14545                 fi
14546         fi
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562 xorg_testset_save_CFLAGS="$CFLAGS"
14563
14564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14565         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14569   $as_echo_n "(cached) " >&6
14570 else
14571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h.  */
14573 int i;
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"; then :
14576   xorg_cv_cc_flag_unknown_warning_option=yes
14577 else
14578   xorg_cv_cc_flag_unknown_warning_option=no
14579 fi
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 fi
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14584         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14585         CFLAGS="$xorg_testset_save_CFLAGS"
14586 fi
14587
14588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14589         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14590                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14591         fi
14592         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14596   $as_echo_n "(cached) " >&6
14597 else
14598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h.  */
14600 int i;
14601 _ACEOF
14602 if ac_fn_c_try_compile "$LINENO"; then :
14603   xorg_cv_cc_flag_unused_command_line_argument=yes
14604 else
14605   xorg_cv_cc_flag_unused_command_line_argument=no
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14611         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14612         CFLAGS="$xorg_testset_save_CFLAGS"
14613 fi
14614
14615 found="no"
14616
14617         if test $found = "no" ; then
14618                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14619                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14620                 fi
14621
14622                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14623                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14624                 fi
14625
14626                 CFLAGS="$CFLAGS -Werror=sequence-point"
14627
14628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14629 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14630                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14631                 if eval \${$cacheid+:} false; then :
14632   $as_echo_n "(cached) " >&6
14633 else
14634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h.  */
14636 int i;
14637 int
14638 main ()
14639 {
14640
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 if ac_fn_c_try_link "$LINENO"; then :
14646   eval $cacheid=yes
14647 else
14648   eval $cacheid=no
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext \
14651     conftest$ac_exeext conftest.$ac_ext
14652 fi
14653
14654
14655                 CFLAGS="$xorg_testset_save_CFLAGS"
14656
14657                 eval supported=\$$cacheid
14658                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14659 $as_echo "$supported" >&6; }
14660                 if test "$supported" = "yes" ; then
14661                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14662                         found="yes"
14663                 fi
14664         fi
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680 xorg_testset_save_CFLAGS="$CFLAGS"
14681
14682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14683         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14687   $as_echo_n "(cached) " >&6
14688 else
14689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h.  */
14691 int i;
14692 _ACEOF
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694   xorg_cv_cc_flag_unknown_warning_option=yes
14695 else
14696   xorg_cv_cc_flag_unknown_warning_option=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 fi
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14702         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14703         CFLAGS="$xorg_testset_save_CFLAGS"
14704 fi
14705
14706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14707         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14708                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14709         fi
14710         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14714   $as_echo_n "(cached) " >&6
14715 else
14716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h.  */
14718 int i;
14719 _ACEOF
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721   xorg_cv_cc_flag_unused_command_line_argument=yes
14722 else
14723   xorg_cv_cc_flag_unused_command_line_argument=no
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14729         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14730         CFLAGS="$xorg_testset_save_CFLAGS"
14731 fi
14732
14733 found="no"
14734
14735         if test $found = "no" ; then
14736                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14737                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14738                 fi
14739
14740                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14741                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14742                 fi
14743
14744                 CFLAGS="$CFLAGS -Werror=return-type"
14745
14746                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14747 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14748                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14749                 if eval \${$cacheid+:} false; then :
14750   $as_echo_n "(cached) " >&6
14751 else
14752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h.  */
14754 int i;
14755 int
14756 main ()
14757 {
14758
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 if ac_fn_c_try_link "$LINENO"; then :
14764   eval $cacheid=yes
14765 else
14766   eval $cacheid=no
14767 fi
14768 rm -f core conftest.err conftest.$ac_objext \
14769     conftest$ac_exeext conftest.$ac_ext
14770 fi
14771
14772
14773                 CFLAGS="$xorg_testset_save_CFLAGS"
14774
14775                 eval supported=\$$cacheid
14776                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14777 $as_echo "$supported" >&6; }
14778                 if test "$supported" = "yes" ; then
14779                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14780                         found="yes"
14781                 fi
14782         fi
14783
14784         if test $found = "no" ; then
14785                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14786                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14787                 fi
14788
14789                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14790                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14791                 fi
14792
14793                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14794
14795                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14796 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14797                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14798                 if eval \${$cacheid+:} false; then :
14799   $as_echo_n "(cached) " >&6
14800 else
14801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h.  */
14803 int i;
14804 int
14805 main ()
14806 {
14807
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 if ac_fn_c_try_link "$LINENO"; then :
14813   eval $cacheid=yes
14814 else
14815   eval $cacheid=no
14816 fi
14817 rm -f core conftest.err conftest.$ac_objext \
14818     conftest$ac_exeext conftest.$ac_ext
14819 fi
14820
14821
14822                 CFLAGS="$xorg_testset_save_CFLAGS"
14823
14824                 eval supported=\$$cacheid
14825                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14826 $as_echo "$supported" >&6; }
14827                 if test "$supported" = "yes" ; then
14828                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14829                         found="yes"
14830                 fi
14831         fi
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847 xorg_testset_save_CFLAGS="$CFLAGS"
14848
14849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14850         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14854   $as_echo_n "(cached) " >&6
14855 else
14856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h.  */
14858 int i;
14859 _ACEOF
14860 if ac_fn_c_try_compile "$LINENO"; then :
14861   xorg_cv_cc_flag_unknown_warning_option=yes
14862 else
14863   xorg_cv_cc_flag_unknown_warning_option=no
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 fi
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14869         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14870         CFLAGS="$xorg_testset_save_CFLAGS"
14871 fi
14872
14873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14874         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14875                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14876         fi
14877         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14881   $as_echo_n "(cached) " >&6
14882 else
14883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h.  */
14885 int i;
14886 _ACEOF
14887 if ac_fn_c_try_compile "$LINENO"; then :
14888   xorg_cv_cc_flag_unused_command_line_argument=yes
14889 else
14890   xorg_cv_cc_flag_unused_command_line_argument=no
14891 fi
14892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 fi
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14896         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14897         CFLAGS="$xorg_testset_save_CFLAGS"
14898 fi
14899
14900 found="no"
14901
14902         if test $found = "no" ; then
14903                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14904                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14905                 fi
14906
14907                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14908                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14909                 fi
14910
14911                 CFLAGS="$CFLAGS -Werror=trigraphs"
14912
14913                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14914 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14915                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14916                 if eval \${$cacheid+:} false; then :
14917   $as_echo_n "(cached) " >&6
14918 else
14919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h.  */
14921 int i;
14922 int
14923 main ()
14924 {
14925
14926   ;
14927   return 0;
14928 }
14929 _ACEOF
14930 if ac_fn_c_try_link "$LINENO"; then :
14931   eval $cacheid=yes
14932 else
14933   eval $cacheid=no
14934 fi
14935 rm -f core conftest.err conftest.$ac_objext \
14936     conftest$ac_exeext conftest.$ac_ext
14937 fi
14938
14939
14940                 CFLAGS="$xorg_testset_save_CFLAGS"
14941
14942                 eval supported=\$$cacheid
14943                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14944 $as_echo "$supported" >&6; }
14945                 if test "$supported" = "yes" ; then
14946                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14947                         found="yes"
14948                 fi
14949         fi
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965 xorg_testset_save_CFLAGS="$CFLAGS"
14966
14967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14968         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14972   $as_echo_n "(cached) " >&6
14973 else
14974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h.  */
14976 int i;
14977 _ACEOF
14978 if ac_fn_c_try_compile "$LINENO"; then :
14979   xorg_cv_cc_flag_unknown_warning_option=yes
14980 else
14981   xorg_cv_cc_flag_unknown_warning_option=no
14982 fi
14983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 fi
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14987         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14988         CFLAGS="$xorg_testset_save_CFLAGS"
14989 fi
14990
14991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14992         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14993                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14994         fi
14995         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14999   $as_echo_n "(cached) " >&6
15000 else
15001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h.  */
15003 int i;
15004 _ACEOF
15005 if ac_fn_c_try_compile "$LINENO"; then :
15006   xorg_cv_cc_flag_unused_command_line_argument=yes
15007 else
15008   xorg_cv_cc_flag_unused_command_line_argument=no
15009 fi
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15014         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15015         CFLAGS="$xorg_testset_save_CFLAGS"
15016 fi
15017
15018 found="no"
15019
15020         if test $found = "no" ; then
15021                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15022                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15023                 fi
15024
15025                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15026                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15027                 fi
15028
15029                 CFLAGS="$CFLAGS -Werror=array-bounds"
15030
15031                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15032 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15033                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15034                 if eval \${$cacheid+:} false; then :
15035   $as_echo_n "(cached) " >&6
15036 else
15037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h.  */
15039 int i;
15040 int
15041 main ()
15042 {
15043
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 if ac_fn_c_try_link "$LINENO"; then :
15049   eval $cacheid=yes
15050 else
15051   eval $cacheid=no
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext \
15054     conftest$ac_exeext conftest.$ac_ext
15055 fi
15056
15057
15058                 CFLAGS="$xorg_testset_save_CFLAGS"
15059
15060                 eval supported=\$$cacheid
15061                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15062 $as_echo "$supported" >&6; }
15063                 if test "$supported" = "yes" ; then
15064                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15065                         found="yes"
15066                 fi
15067         fi
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083 xorg_testset_save_CFLAGS="$CFLAGS"
15084
15085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15086         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15090   $as_echo_n "(cached) " >&6
15091 else
15092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h.  */
15094 int i;
15095 _ACEOF
15096 if ac_fn_c_try_compile "$LINENO"; then :
15097   xorg_cv_cc_flag_unknown_warning_option=yes
15098 else
15099   xorg_cv_cc_flag_unknown_warning_option=no
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 fi
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15105         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15106         CFLAGS="$xorg_testset_save_CFLAGS"
15107 fi
15108
15109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15110         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15111                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15112         fi
15113         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15117   $as_echo_n "(cached) " >&6
15118 else
15119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h.  */
15121 int i;
15122 _ACEOF
15123 if ac_fn_c_try_compile "$LINENO"; then :
15124   xorg_cv_cc_flag_unused_command_line_argument=yes
15125 else
15126   xorg_cv_cc_flag_unused_command_line_argument=no
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 fi
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15132         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15133         CFLAGS="$xorg_testset_save_CFLAGS"
15134 fi
15135
15136 found="no"
15137
15138         if test $found = "no" ; then
15139                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15140                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15141                 fi
15142
15143                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15144                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15145                 fi
15146
15147                 CFLAGS="$CFLAGS -Werror=write-strings"
15148
15149                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15150 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15151                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15152                 if eval \${$cacheid+:} false; then :
15153   $as_echo_n "(cached) " >&6
15154 else
15155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h.  */
15157 int i;
15158 int
15159 main ()
15160 {
15161
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_link "$LINENO"; then :
15167   eval $cacheid=yes
15168 else
15169   eval $cacheid=no
15170 fi
15171 rm -f core conftest.err conftest.$ac_objext \
15172     conftest$ac_exeext conftest.$ac_ext
15173 fi
15174
15175
15176                 CFLAGS="$xorg_testset_save_CFLAGS"
15177
15178                 eval supported=\$$cacheid
15179                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15180 $as_echo "$supported" >&6; }
15181                 if test "$supported" = "yes" ; then
15182                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15183                         found="yes"
15184                 fi
15185         fi
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201 xorg_testset_save_CFLAGS="$CFLAGS"
15202
15203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15204         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15208   $as_echo_n "(cached) " >&6
15209 else
15210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h.  */
15212 int i;
15213 _ACEOF
15214 if ac_fn_c_try_compile "$LINENO"; then :
15215   xorg_cv_cc_flag_unknown_warning_option=yes
15216 else
15217   xorg_cv_cc_flag_unknown_warning_option=no
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 fi
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15223         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15224         CFLAGS="$xorg_testset_save_CFLAGS"
15225 fi
15226
15227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15228         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15229                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15230         fi
15231         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15235   $as_echo_n "(cached) " >&6
15236 else
15237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h.  */
15239 int i;
15240 _ACEOF
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242   xorg_cv_cc_flag_unused_command_line_argument=yes
15243 else
15244   xorg_cv_cc_flag_unused_command_line_argument=no
15245 fi
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 fi
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15250         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15251         CFLAGS="$xorg_testset_save_CFLAGS"
15252 fi
15253
15254 found="no"
15255
15256         if test $found = "no" ; then
15257                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15258                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15259                 fi
15260
15261                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15262                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15263                 fi
15264
15265                 CFLAGS="$CFLAGS -Werror=address"
15266
15267                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15268 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15269                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15270                 if eval \${$cacheid+:} 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 int
15277 main ()
15278 {
15279
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 if ac_fn_c_try_link "$LINENO"; then :
15285   eval $cacheid=yes
15286 else
15287   eval $cacheid=no
15288 fi
15289 rm -f core conftest.err conftest.$ac_objext \
15290     conftest$ac_exeext conftest.$ac_ext
15291 fi
15292
15293
15294                 CFLAGS="$xorg_testset_save_CFLAGS"
15295
15296                 eval supported=\$$cacheid
15297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15298 $as_echo "$supported" >&6; }
15299                 if test "$supported" = "yes" ; then
15300                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15301                         found="yes"
15302                 fi
15303         fi
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319 xorg_testset_save_CFLAGS="$CFLAGS"
15320
15321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15322         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15326   $as_echo_n "(cached) " >&6
15327 else
15328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h.  */
15330 int i;
15331 _ACEOF
15332 if ac_fn_c_try_compile "$LINENO"; then :
15333   xorg_cv_cc_flag_unknown_warning_option=yes
15334 else
15335   xorg_cv_cc_flag_unknown_warning_option=no
15336 fi
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 fi
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15341         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15342         CFLAGS="$xorg_testset_save_CFLAGS"
15343 fi
15344
15345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15346         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15347                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15348         fi
15349         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15353   $as_echo_n "(cached) " >&6
15354 else
15355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h.  */
15357 int i;
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"; then :
15360   xorg_cv_cc_flag_unused_command_line_argument=yes
15361 else
15362   xorg_cv_cc_flag_unused_command_line_argument=no
15363 fi
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 fi
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15368         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15369         CFLAGS="$xorg_testset_save_CFLAGS"
15370 fi
15371
15372 found="no"
15373
15374         if test $found = "no" ; then
15375                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15376                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15377                 fi
15378
15379                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15380                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15381                 fi
15382
15383                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15384
15385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15386 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15387                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15388                 if eval \${$cacheid+:} false; then :
15389   $as_echo_n "(cached) " >&6
15390 else
15391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h.  */
15393 int i;
15394 int
15395 main ()
15396 {
15397
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 if ac_fn_c_try_link "$LINENO"; then :
15403   eval $cacheid=yes
15404 else
15405   eval $cacheid=no
15406 fi
15407 rm -f core conftest.err conftest.$ac_objext \
15408     conftest$ac_exeext conftest.$ac_ext
15409 fi
15410
15411
15412                 CFLAGS="$xorg_testset_save_CFLAGS"
15413
15414                 eval supported=\$$cacheid
15415                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15416 $as_echo "$supported" >&6; }
15417                 if test "$supported" = "yes" ; then
15418                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15419                         found="yes"
15420                 fi
15421         fi
15422
15423         if test $found = "no" ; then
15424                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15425                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426                 fi
15427
15428                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15429                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15430                 fi
15431
15432                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15433
15434                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15435 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15436                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15437                 if eval \${$cacheid+:} false; then :
15438   $as_echo_n "(cached) " >&6
15439 else
15440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h.  */
15442 int i;
15443 int
15444 main ()
15445 {
15446
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 if ac_fn_c_try_link "$LINENO"; then :
15452   eval $cacheid=yes
15453 else
15454   eval $cacheid=no
15455 fi
15456 rm -f core conftest.err conftest.$ac_objext \
15457     conftest$ac_exeext conftest.$ac_ext
15458 fi
15459
15460
15461                 CFLAGS="$xorg_testset_save_CFLAGS"
15462
15463                 eval supported=\$$cacheid
15464                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15465 $as_echo "$supported" >&6; }
15466                 if test "$supported" = "yes" ; then
15467                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15468                         found="yes"
15469                 fi
15470         fi
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486 xorg_testset_save_CFLAGS="$CFLAGS"
15487
15488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15489         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15493   $as_echo_n "(cached) " >&6
15494 else
15495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h.  */
15497 int i;
15498 _ACEOF
15499 if ac_fn_c_try_compile "$LINENO"; then :
15500   xorg_cv_cc_flag_unknown_warning_option=yes
15501 else
15502   xorg_cv_cc_flag_unknown_warning_option=no
15503 fi
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 fi
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15508         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15509         CFLAGS="$xorg_testset_save_CFLAGS"
15510 fi
15511
15512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15513         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15514                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15515         fi
15516         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15520   $as_echo_n "(cached) " >&6
15521 else
15522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h.  */
15524 int i;
15525 _ACEOF
15526 if ac_fn_c_try_compile "$LINENO"; then :
15527   xorg_cv_cc_flag_unused_command_line_argument=yes
15528 else
15529   xorg_cv_cc_flag_unused_command_line_argument=no
15530 fi
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 fi
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15535         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15536         CFLAGS="$xorg_testset_save_CFLAGS"
15537 fi
15538
15539 found="no"
15540
15541         if test $found = "no" ; then
15542                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15543                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15544                 fi
15545
15546                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15547                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15548                 fi
15549
15550                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15551
15552                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15553 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15554                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15555                 if eval \${$cacheid+:} false; then :
15556   $as_echo_n "(cached) " >&6
15557 else
15558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h.  */
15560 int i;
15561 int
15562 main ()
15563 {
15564
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 if ac_fn_c_try_link "$LINENO"; then :
15570   eval $cacheid=yes
15571 else
15572   eval $cacheid=no
15573 fi
15574 rm -f core conftest.err conftest.$ac_objext \
15575     conftest$ac_exeext conftest.$ac_ext
15576 fi
15577
15578
15579                 CFLAGS="$xorg_testset_save_CFLAGS"
15580
15581                 eval supported=\$$cacheid
15582                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15583 $as_echo "$supported" >&6; }
15584                 if test "$supported" = "yes" ; then
15585                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15586                         found="yes"
15587                 fi
15588         fi
15589
15590  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15591 else
15592 { $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
15593 $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;}
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607 xorg_testset_save_CFLAGS="$CFLAGS"
15608
15609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15610         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15614   $as_echo_n "(cached) " >&6
15615 else
15616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h.  */
15618 int i;
15619 _ACEOF
15620 if ac_fn_c_try_compile "$LINENO"; then :
15621   xorg_cv_cc_flag_unknown_warning_option=yes
15622 else
15623   xorg_cv_cc_flag_unknown_warning_option=no
15624 fi
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 fi
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15629         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15630         CFLAGS="$xorg_testset_save_CFLAGS"
15631 fi
15632
15633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15634         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15635                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15636         fi
15637         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15638         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15641   $as_echo_n "(cached) " >&6
15642 else
15643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h.  */
15645 int i;
15646 _ACEOF
15647 if ac_fn_c_try_compile "$LINENO"; then :
15648   xorg_cv_cc_flag_unused_command_line_argument=yes
15649 else
15650   xorg_cv_cc_flag_unused_command_line_argument=no
15651 fi
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 fi
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15656         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15657         CFLAGS="$xorg_testset_save_CFLAGS"
15658 fi
15659
15660 found="no"
15661
15662         if test $found = "no" ; then
15663                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15664                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15665                 fi
15666
15667                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15668                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669                 fi
15670
15671                 CFLAGS="$CFLAGS -Wimplicit"
15672
15673                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15674 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15675                 cacheid=xorg_cv_cc_flag__Wimplicit
15676                 if eval \${$cacheid+:} false; then :
15677   $as_echo_n "(cached) " >&6
15678 else
15679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h.  */
15681 int i;
15682 int
15683 main ()
15684 {
15685
15686   ;
15687   return 0;
15688 }
15689 _ACEOF
15690 if ac_fn_c_try_link "$LINENO"; then :
15691   eval $cacheid=yes
15692 else
15693   eval $cacheid=no
15694 fi
15695 rm -f core conftest.err conftest.$ac_objext \
15696     conftest$ac_exeext conftest.$ac_ext
15697 fi
15698
15699
15700                 CFLAGS="$xorg_testset_save_CFLAGS"
15701
15702                 eval supported=\$$cacheid
15703                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15704 $as_echo "$supported" >&6; }
15705                 if test "$supported" = "yes" ; then
15706                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15707                         found="yes"
15708                 fi
15709         fi
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725 xorg_testset_save_CFLAGS="$CFLAGS"
15726
15727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15728         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15732   $as_echo_n "(cached) " >&6
15733 else
15734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h.  */
15736 int i;
15737 _ACEOF
15738 if ac_fn_c_try_compile "$LINENO"; then :
15739   xorg_cv_cc_flag_unknown_warning_option=yes
15740 else
15741   xorg_cv_cc_flag_unknown_warning_option=no
15742 fi
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744 fi
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15747         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15748         CFLAGS="$xorg_testset_save_CFLAGS"
15749 fi
15750
15751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15752         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15753                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15754         fi
15755         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15759   $as_echo_n "(cached) " >&6
15760 else
15761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h.  */
15763 int i;
15764 _ACEOF
15765 if ac_fn_c_try_compile "$LINENO"; then :
15766   xorg_cv_cc_flag_unused_command_line_argument=yes
15767 else
15768   xorg_cv_cc_flag_unused_command_line_argument=no
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771 fi
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15774         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15775         CFLAGS="$xorg_testset_save_CFLAGS"
15776 fi
15777
15778 found="no"
15779
15780         if test $found = "no" ; then
15781                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15782                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783                 fi
15784
15785                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15786                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787                 fi
15788
15789                 CFLAGS="$CFLAGS -Wnonnull"
15790
15791                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15792 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15793                 cacheid=xorg_cv_cc_flag__Wnonnull
15794                 if eval \${$cacheid+:} false; then :
15795   $as_echo_n "(cached) " >&6
15796 else
15797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h.  */
15799 int i;
15800 int
15801 main ()
15802 {
15803
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_link "$LINENO"; then :
15809   eval $cacheid=yes
15810 else
15811   eval $cacheid=no
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext \
15814     conftest$ac_exeext conftest.$ac_ext
15815 fi
15816
15817
15818                 CFLAGS="$xorg_testset_save_CFLAGS"
15819
15820                 eval supported=\$$cacheid
15821                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15822 $as_echo "$supported" >&6; }
15823                 if test "$supported" = "yes" ; then
15824                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15825                         found="yes"
15826                 fi
15827         fi
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843 xorg_testset_save_CFLAGS="$CFLAGS"
15844
15845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15846         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15850   $as_echo_n "(cached) " >&6
15851 else
15852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h.  */
15854 int i;
15855 _ACEOF
15856 if ac_fn_c_try_compile "$LINENO"; then :
15857   xorg_cv_cc_flag_unknown_warning_option=yes
15858 else
15859   xorg_cv_cc_flag_unknown_warning_option=no
15860 fi
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862 fi
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15865         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15866         CFLAGS="$xorg_testset_save_CFLAGS"
15867 fi
15868
15869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15870         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15871                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15872         fi
15873         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15877   $as_echo_n "(cached) " >&6
15878 else
15879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h.  */
15881 int i;
15882 _ACEOF
15883 if ac_fn_c_try_compile "$LINENO"; then :
15884   xorg_cv_cc_flag_unused_command_line_argument=yes
15885 else
15886   xorg_cv_cc_flag_unused_command_line_argument=no
15887 fi
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15892         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15893         CFLAGS="$xorg_testset_save_CFLAGS"
15894 fi
15895
15896 found="no"
15897
15898         if test $found = "no" ; then
15899                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15900                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901                 fi
15902
15903                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15904                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15905                 fi
15906
15907                 CFLAGS="$CFLAGS -Winit-self"
15908
15909                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15910 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15911                 cacheid=xorg_cv_cc_flag__Winit_self
15912                 if eval \${$cacheid+:} false; then :
15913   $as_echo_n "(cached) " >&6
15914 else
15915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h.  */
15917 int i;
15918 int
15919 main ()
15920 {
15921
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 if ac_fn_c_try_link "$LINENO"; then :
15927   eval $cacheid=yes
15928 else
15929   eval $cacheid=no
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext \
15932     conftest$ac_exeext conftest.$ac_ext
15933 fi
15934
15935
15936                 CFLAGS="$xorg_testset_save_CFLAGS"
15937
15938                 eval supported=\$$cacheid
15939                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15940 $as_echo "$supported" >&6; }
15941                 if test "$supported" = "yes" ; then
15942                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15943                         found="yes"
15944                 fi
15945         fi
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961 xorg_testset_save_CFLAGS="$CFLAGS"
15962
15963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15964         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15965         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15968   $as_echo_n "(cached) " >&6
15969 else
15970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h.  */
15972 int i;
15973 _ACEOF
15974 if ac_fn_c_try_compile "$LINENO"; then :
15975   xorg_cv_cc_flag_unknown_warning_option=yes
15976 else
15977   xorg_cv_cc_flag_unknown_warning_option=no
15978 fi
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 fi
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15983         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15984         CFLAGS="$xorg_testset_save_CFLAGS"
15985 fi
15986
15987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15988         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15989                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990         fi
15991         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15995   $as_echo_n "(cached) " >&6
15996 else
15997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h.  */
15999 int i;
16000 _ACEOF
16001 if ac_fn_c_try_compile "$LINENO"; then :
16002   xorg_cv_cc_flag_unused_command_line_argument=yes
16003 else
16004   xorg_cv_cc_flag_unused_command_line_argument=no
16005 fi
16006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16007 fi
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16010         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16011         CFLAGS="$xorg_testset_save_CFLAGS"
16012 fi
16013
16014 found="no"
16015
16016         if test $found = "no" ; then
16017                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16018                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019                 fi
16020
16021                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16022                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023                 fi
16024
16025                 CFLAGS="$CFLAGS -Wmain"
16026
16027                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16028 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16029                 cacheid=xorg_cv_cc_flag__Wmain
16030                 if eval \${$cacheid+:} false; then :
16031   $as_echo_n "(cached) " >&6
16032 else
16033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h.  */
16035 int i;
16036 int
16037 main ()
16038 {
16039
16040   ;
16041   return 0;
16042 }
16043 _ACEOF
16044 if ac_fn_c_try_link "$LINENO"; then :
16045   eval $cacheid=yes
16046 else
16047   eval $cacheid=no
16048 fi
16049 rm -f core conftest.err conftest.$ac_objext \
16050     conftest$ac_exeext conftest.$ac_ext
16051 fi
16052
16053
16054                 CFLAGS="$xorg_testset_save_CFLAGS"
16055
16056                 eval supported=\$$cacheid
16057                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16058 $as_echo "$supported" >&6; }
16059                 if test "$supported" = "yes" ; then
16060                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16061                         found="yes"
16062                 fi
16063         fi
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079 xorg_testset_save_CFLAGS="$CFLAGS"
16080
16081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16082         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16086   $as_echo_n "(cached) " >&6
16087 else
16088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h.  */
16090 int i;
16091 _ACEOF
16092 if ac_fn_c_try_compile "$LINENO"; then :
16093   xorg_cv_cc_flag_unknown_warning_option=yes
16094 else
16095   xorg_cv_cc_flag_unknown_warning_option=no
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 fi
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16101         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16102         CFLAGS="$xorg_testset_save_CFLAGS"
16103 fi
16104
16105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16106         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16107                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16108         fi
16109         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16113   $as_echo_n "(cached) " >&6
16114 else
16115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h.  */
16117 int i;
16118 _ACEOF
16119 if ac_fn_c_try_compile "$LINENO"; then :
16120   xorg_cv_cc_flag_unused_command_line_argument=yes
16121 else
16122   xorg_cv_cc_flag_unused_command_line_argument=no
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 fi
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16128         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16129         CFLAGS="$xorg_testset_save_CFLAGS"
16130 fi
16131
16132 found="no"
16133
16134         if test $found = "no" ; then
16135                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16136                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16137                 fi
16138
16139                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16140                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16141                 fi
16142
16143                 CFLAGS="$CFLAGS -Wmissing-braces"
16144
16145                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16146 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16147                 cacheid=xorg_cv_cc_flag__Wmissing_braces
16148                 if eval \${$cacheid+:} false; then :
16149   $as_echo_n "(cached) " >&6
16150 else
16151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h.  */
16153 int i;
16154 int
16155 main ()
16156 {
16157
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 if ac_fn_c_try_link "$LINENO"; then :
16163   eval $cacheid=yes
16164 else
16165   eval $cacheid=no
16166 fi
16167 rm -f core conftest.err conftest.$ac_objext \
16168     conftest$ac_exeext conftest.$ac_ext
16169 fi
16170
16171
16172                 CFLAGS="$xorg_testset_save_CFLAGS"
16173
16174                 eval supported=\$$cacheid
16175                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16176 $as_echo "$supported" >&6; }
16177                 if test "$supported" = "yes" ; then
16178                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16179                         found="yes"
16180                 fi
16181         fi
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197 xorg_testset_save_CFLAGS="$CFLAGS"
16198
16199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16200         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16204   $as_echo_n "(cached) " >&6
16205 else
16206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h.  */
16208 int i;
16209 _ACEOF
16210 if ac_fn_c_try_compile "$LINENO"; then :
16211   xorg_cv_cc_flag_unknown_warning_option=yes
16212 else
16213   xorg_cv_cc_flag_unknown_warning_option=no
16214 fi
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 fi
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16219         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16220         CFLAGS="$xorg_testset_save_CFLAGS"
16221 fi
16222
16223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16224         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16225                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16226         fi
16227         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16231   $as_echo_n "(cached) " >&6
16232 else
16233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h.  */
16235 int i;
16236 _ACEOF
16237 if ac_fn_c_try_compile "$LINENO"; then :
16238   xorg_cv_cc_flag_unused_command_line_argument=yes
16239 else
16240   xorg_cv_cc_flag_unused_command_line_argument=no
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 fi
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16246         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16247         CFLAGS="$xorg_testset_save_CFLAGS"
16248 fi
16249
16250 found="no"
16251
16252         if test $found = "no" ; then
16253                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16254                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255                 fi
16256
16257                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16258                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16259                 fi
16260
16261                 CFLAGS="$CFLAGS -Wsequence-point"
16262
16263                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16264 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16265                 cacheid=xorg_cv_cc_flag__Wsequence_point
16266                 if eval \${$cacheid+:} false; then :
16267   $as_echo_n "(cached) " >&6
16268 else
16269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h.  */
16271 int i;
16272 int
16273 main ()
16274 {
16275
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 if ac_fn_c_try_link "$LINENO"; then :
16281   eval $cacheid=yes
16282 else
16283   eval $cacheid=no
16284 fi
16285 rm -f core conftest.err conftest.$ac_objext \
16286     conftest$ac_exeext conftest.$ac_ext
16287 fi
16288
16289
16290                 CFLAGS="$xorg_testset_save_CFLAGS"
16291
16292                 eval supported=\$$cacheid
16293                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16294 $as_echo "$supported" >&6; }
16295                 if test "$supported" = "yes" ; then
16296                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16297                         found="yes"
16298                 fi
16299         fi
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315 xorg_testset_save_CFLAGS="$CFLAGS"
16316
16317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16318         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16322   $as_echo_n "(cached) " >&6
16323 else
16324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h.  */
16326 int i;
16327 _ACEOF
16328 if ac_fn_c_try_compile "$LINENO"; then :
16329   xorg_cv_cc_flag_unknown_warning_option=yes
16330 else
16331   xorg_cv_cc_flag_unknown_warning_option=no
16332 fi
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 fi
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16337         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16338         CFLAGS="$xorg_testset_save_CFLAGS"
16339 fi
16340
16341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16342         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16343                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16344         fi
16345         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16349   $as_echo_n "(cached) " >&6
16350 else
16351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h.  */
16353 int i;
16354 _ACEOF
16355 if ac_fn_c_try_compile "$LINENO"; then :
16356   xorg_cv_cc_flag_unused_command_line_argument=yes
16357 else
16358   xorg_cv_cc_flag_unused_command_line_argument=no
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361 fi
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16364         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16365         CFLAGS="$xorg_testset_save_CFLAGS"
16366 fi
16367
16368 found="no"
16369
16370         if test $found = "no" ; then
16371                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16372                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373                 fi
16374
16375                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16376                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377                 fi
16378
16379                 CFLAGS="$CFLAGS -Wreturn-type"
16380
16381                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16382 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16383                 cacheid=xorg_cv_cc_flag__Wreturn_type
16384                 if eval \${$cacheid+:} false; then :
16385   $as_echo_n "(cached) " >&6
16386 else
16387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h.  */
16389 int i;
16390 int
16391 main ()
16392 {
16393
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 if ac_fn_c_try_link "$LINENO"; then :
16399   eval $cacheid=yes
16400 else
16401   eval $cacheid=no
16402 fi
16403 rm -f core conftest.err conftest.$ac_objext \
16404     conftest$ac_exeext conftest.$ac_ext
16405 fi
16406
16407
16408                 CFLAGS="$xorg_testset_save_CFLAGS"
16409
16410                 eval supported=\$$cacheid
16411                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16412 $as_echo "$supported" >&6; }
16413                 if test "$supported" = "yes" ; then
16414                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16415                         found="yes"
16416                 fi
16417         fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433 xorg_testset_save_CFLAGS="$CFLAGS"
16434
16435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16436         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16440   $as_echo_n "(cached) " >&6
16441 else
16442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h.  */
16444 int i;
16445 _ACEOF
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447   xorg_cv_cc_flag_unknown_warning_option=yes
16448 else
16449   xorg_cv_cc_flag_unknown_warning_option=no
16450 fi
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16455         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16456         CFLAGS="$xorg_testset_save_CFLAGS"
16457 fi
16458
16459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16460         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16461                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16462         fi
16463         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16467   $as_echo_n "(cached) " >&6
16468 else
16469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h.  */
16471 int i;
16472 _ACEOF
16473 if ac_fn_c_try_compile "$LINENO"; then :
16474   xorg_cv_cc_flag_unused_command_line_argument=yes
16475 else
16476   xorg_cv_cc_flag_unused_command_line_argument=no
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 fi
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16482         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16483         CFLAGS="$xorg_testset_save_CFLAGS"
16484 fi
16485
16486 found="no"
16487
16488         if test $found = "no" ; then
16489                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16490                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491                 fi
16492
16493                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16494                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16495                 fi
16496
16497                 CFLAGS="$CFLAGS -Wtrigraphs"
16498
16499                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16500 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16501                 cacheid=xorg_cv_cc_flag__Wtrigraphs
16502                 if eval \${$cacheid+:} false; then :
16503   $as_echo_n "(cached) " >&6
16504 else
16505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h.  */
16507 int i;
16508 int
16509 main ()
16510 {
16511
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"; then :
16517   eval $cacheid=yes
16518 else
16519   eval $cacheid=no
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522     conftest$ac_exeext conftest.$ac_ext
16523 fi
16524
16525
16526                 CFLAGS="$xorg_testset_save_CFLAGS"
16527
16528                 eval supported=\$$cacheid
16529                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16530 $as_echo "$supported" >&6; }
16531                 if test "$supported" = "yes" ; then
16532                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16533                         found="yes"
16534                 fi
16535         fi
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551 xorg_testset_save_CFLAGS="$CFLAGS"
16552
16553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16554         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16558   $as_echo_n "(cached) " >&6
16559 else
16560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h.  */
16562 int i;
16563 _ACEOF
16564 if ac_fn_c_try_compile "$LINENO"; then :
16565   xorg_cv_cc_flag_unknown_warning_option=yes
16566 else
16567   xorg_cv_cc_flag_unknown_warning_option=no
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16573         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16574         CFLAGS="$xorg_testset_save_CFLAGS"
16575 fi
16576
16577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16578         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16579                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16580         fi
16581         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16585   $as_echo_n "(cached) " >&6
16586 else
16587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h.  */
16589 int i;
16590 _ACEOF
16591 if ac_fn_c_try_compile "$LINENO"; then :
16592   xorg_cv_cc_flag_unused_command_line_argument=yes
16593 else
16594   xorg_cv_cc_flag_unused_command_line_argument=no
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 fi
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16600         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16601         CFLAGS="$xorg_testset_save_CFLAGS"
16602 fi
16603
16604 found="no"
16605
16606         if test $found = "no" ; then
16607                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16608                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609                 fi
16610
16611                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16612                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613                 fi
16614
16615                 CFLAGS="$CFLAGS -Warray-bounds"
16616
16617                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16618 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16619                 cacheid=xorg_cv_cc_flag__Warray_bounds
16620                 if eval \${$cacheid+:} false; then :
16621   $as_echo_n "(cached) " >&6
16622 else
16623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h.  */
16625 int i;
16626 int
16627 main ()
16628 {
16629
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 if ac_fn_c_try_link "$LINENO"; then :
16635   eval $cacheid=yes
16636 else
16637   eval $cacheid=no
16638 fi
16639 rm -f core conftest.err conftest.$ac_objext \
16640     conftest$ac_exeext conftest.$ac_ext
16641 fi
16642
16643
16644                 CFLAGS="$xorg_testset_save_CFLAGS"
16645
16646                 eval supported=\$$cacheid
16647                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16648 $as_echo "$supported" >&6; }
16649                 if test "$supported" = "yes" ; then
16650                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16651                         found="yes"
16652                 fi
16653         fi
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669 xorg_testset_save_CFLAGS="$CFLAGS"
16670
16671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16672         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16676   $as_echo_n "(cached) " >&6
16677 else
16678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h.  */
16680 int i;
16681 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"; then :
16683   xorg_cv_cc_flag_unknown_warning_option=yes
16684 else
16685   xorg_cv_cc_flag_unknown_warning_option=no
16686 fi
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688 fi
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16691         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16692         CFLAGS="$xorg_testset_save_CFLAGS"
16693 fi
16694
16695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16696         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16697                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16698         fi
16699         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16703   $as_echo_n "(cached) " >&6
16704 else
16705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h.  */
16707 int i;
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710   xorg_cv_cc_flag_unused_command_line_argument=yes
16711 else
16712   xorg_cv_cc_flag_unused_command_line_argument=no
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 fi
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16718         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16719         CFLAGS="$xorg_testset_save_CFLAGS"
16720 fi
16721
16722 found="no"
16723
16724         if test $found = "no" ; then
16725                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16726                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727                 fi
16728
16729                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16730                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16731                 fi
16732
16733                 CFLAGS="$CFLAGS -Wwrite-strings"
16734
16735                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16736 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16737                 cacheid=xorg_cv_cc_flag__Wwrite_strings
16738                 if eval \${$cacheid+:} false; then :
16739   $as_echo_n "(cached) " >&6
16740 else
16741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h.  */
16743 int i;
16744 int
16745 main ()
16746 {
16747
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 if ac_fn_c_try_link "$LINENO"; then :
16753   eval $cacheid=yes
16754 else
16755   eval $cacheid=no
16756 fi
16757 rm -f core conftest.err conftest.$ac_objext \
16758     conftest$ac_exeext conftest.$ac_ext
16759 fi
16760
16761
16762                 CFLAGS="$xorg_testset_save_CFLAGS"
16763
16764                 eval supported=\$$cacheid
16765                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766 $as_echo "$supported" >&6; }
16767                 if test "$supported" = "yes" ; then
16768                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16769                         found="yes"
16770                 fi
16771         fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787 xorg_testset_save_CFLAGS="$CFLAGS"
16788
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16794   $as_echo_n "(cached) " >&6
16795 else
16796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h.  */
16798 int i;
16799 _ACEOF
16800 if ac_fn_c_try_compile "$LINENO"; then :
16801   xorg_cv_cc_flag_unknown_warning_option=yes
16802 else
16803   xorg_cv_cc_flag_unknown_warning_option=no
16804 fi
16805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 fi
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16809         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16810         CFLAGS="$xorg_testset_save_CFLAGS"
16811 fi
16812
16813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16814         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16815                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16816         fi
16817         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16821   $as_echo_n "(cached) " >&6
16822 else
16823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h.  */
16825 int i;
16826 _ACEOF
16827 if ac_fn_c_try_compile "$LINENO"; then :
16828   xorg_cv_cc_flag_unused_command_line_argument=yes
16829 else
16830   xorg_cv_cc_flag_unused_command_line_argument=no
16831 fi
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16836         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16837         CFLAGS="$xorg_testset_save_CFLAGS"
16838 fi
16839
16840 found="no"
16841
16842         if test $found = "no" ; then
16843                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16844                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16845                 fi
16846
16847                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16848                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16849                 fi
16850
16851                 CFLAGS="$CFLAGS -Waddress"
16852
16853                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16854 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16855                 cacheid=xorg_cv_cc_flag__Waddress
16856                 if eval \${$cacheid+:} false; then :
16857   $as_echo_n "(cached) " >&6
16858 else
16859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h.  */
16861 int i;
16862 int
16863 main ()
16864 {
16865
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 if ac_fn_c_try_link "$LINENO"; then :
16871   eval $cacheid=yes
16872 else
16873   eval $cacheid=no
16874 fi
16875 rm -f core conftest.err conftest.$ac_objext \
16876     conftest$ac_exeext conftest.$ac_ext
16877 fi
16878
16879
16880                 CFLAGS="$xorg_testset_save_CFLAGS"
16881
16882                 eval supported=\$$cacheid
16883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16884 $as_echo "$supported" >&6; }
16885                 if test "$supported" = "yes" ; then
16886                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16887                         found="yes"
16888                 fi
16889         fi
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905 xorg_testset_save_CFLAGS="$CFLAGS"
16906
16907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16908         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16912   $as_echo_n "(cached) " >&6
16913 else
16914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h.  */
16916 int i;
16917 _ACEOF
16918 if ac_fn_c_try_compile "$LINENO"; then :
16919   xorg_cv_cc_flag_unknown_warning_option=yes
16920 else
16921   xorg_cv_cc_flag_unknown_warning_option=no
16922 fi
16923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16924 fi
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16927         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16928         CFLAGS="$xorg_testset_save_CFLAGS"
16929 fi
16930
16931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16932         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16933                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16934         fi
16935         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16936         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16939   $as_echo_n "(cached) " >&6
16940 else
16941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h.  */
16943 int i;
16944 _ACEOF
16945 if ac_fn_c_try_compile "$LINENO"; then :
16946   xorg_cv_cc_flag_unused_command_line_argument=yes
16947 else
16948   xorg_cv_cc_flag_unused_command_line_argument=no
16949 fi
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 fi
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16954         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16955         CFLAGS="$xorg_testset_save_CFLAGS"
16956 fi
16957
16958 found="no"
16959
16960         if test $found = "no" ; then
16961                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16962                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963                 fi
16964
16965                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16966                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16967                 fi
16968
16969                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16970
16971                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16972 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16973                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16974                 if eval \${$cacheid+:} false; then :
16975   $as_echo_n "(cached) " >&6
16976 else
16977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h.  */
16979 int i;
16980 int
16981 main ()
16982 {
16983
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 if ac_fn_c_try_link "$LINENO"; then :
16989   eval $cacheid=yes
16990 else
16991   eval $cacheid=no
16992 fi
16993 rm -f core conftest.err conftest.$ac_objext \
16994     conftest$ac_exeext conftest.$ac_ext
16995 fi
16996
16997
16998                 CFLAGS="$xorg_testset_save_CFLAGS"
16999
17000                 eval supported=\$$cacheid
17001                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17002 $as_echo "$supported" >&6; }
17003                 if test "$supported" = "yes" ; then
17004                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17005                         found="yes"
17006                 fi
17007         fi
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023 xorg_testset_save_CFLAGS="$CFLAGS"
17024
17025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17026         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17030   $as_echo_n "(cached) " >&6
17031 else
17032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h.  */
17034 int i;
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037   xorg_cv_cc_flag_unknown_warning_option=yes
17038 else
17039   xorg_cv_cc_flag_unknown_warning_option=no
17040 fi
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 fi
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17045         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17046         CFLAGS="$xorg_testset_save_CFLAGS"
17047 fi
17048
17049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17050         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17051                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17052         fi
17053         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17057   $as_echo_n "(cached) " >&6
17058 else
17059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h.  */
17061 int i;
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"; then :
17064   xorg_cv_cc_flag_unused_command_line_argument=yes
17065 else
17066   xorg_cv_cc_flag_unused_command_line_argument=no
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17072         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17073         CFLAGS="$xorg_testset_save_CFLAGS"
17074 fi
17075
17076 found="no"
17077
17078         if test $found = "no" ; then
17079                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17080                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081                 fi
17082
17083                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17084                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17085                 fi
17086
17087                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17088
17089                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17090 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17091                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17092                 if eval \${$cacheid+:} false; then :
17093   $as_echo_n "(cached) " >&6
17094 else
17095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h.  */
17097 int i;
17098 int
17099 main ()
17100 {
17101
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 if ac_fn_c_try_link "$LINENO"; then :
17107   eval $cacheid=yes
17108 else
17109   eval $cacheid=no
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext \
17112     conftest$ac_exeext conftest.$ac_ext
17113 fi
17114
17115
17116                 CFLAGS="$xorg_testset_save_CFLAGS"
17117
17118                 eval supported=\$$cacheid
17119                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17120 $as_echo "$supported" >&6; }
17121                 if test "$supported" = "yes" ; then
17122                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17123                         found="yes"
17124                 fi
17125         fi
17126
17127
17128 fi
17129
17130
17131
17132
17133
17134
17135
17136                 CWARNFLAGS="$BASE_CFLAGS"
17137                 if  test "x$GCC" = xyes ; then
17138                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17139                 fi
17140
17141
17142
17143
17144
17145
17146
17147
17148 # Check whether --enable-strict-compilation was given.
17149 if test "${enable_strict_compilation+set}" = set; then :
17150   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17151 else
17152   STRICT_COMPILE=no
17153 fi
17154
17155
17156
17157
17158
17159
17160 STRICT_CFLAGS=""
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174 xorg_testset_save_CFLAGS="$CFLAGS"
17175
17176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17177         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17181   $as_echo_n "(cached) " >&6
17182 else
17183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h.  */
17185 int i;
17186 _ACEOF
17187 if ac_fn_c_try_compile "$LINENO"; then :
17188   xorg_cv_cc_flag_unknown_warning_option=yes
17189 else
17190   xorg_cv_cc_flag_unknown_warning_option=no
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 fi
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17196         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17197         CFLAGS="$xorg_testset_save_CFLAGS"
17198 fi
17199
17200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17201         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17202                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17203         fi
17204         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17208   $as_echo_n "(cached) " >&6
17209 else
17210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h.  */
17212 int i;
17213 _ACEOF
17214 if ac_fn_c_try_compile "$LINENO"; then :
17215   xorg_cv_cc_flag_unused_command_line_argument=yes
17216 else
17217   xorg_cv_cc_flag_unused_command_line_argument=no
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220 fi
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17223         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17224         CFLAGS="$xorg_testset_save_CFLAGS"
17225 fi
17226
17227 found="no"
17228
17229         if test $found = "no" ; then
17230                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17231                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17232                 fi
17233
17234                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17235                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17236                 fi
17237
17238                 CFLAGS="$CFLAGS -pedantic"
17239
17240                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17241 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17242                 cacheid=xorg_cv_cc_flag__pedantic
17243                 if eval \${$cacheid+:} false; then :
17244   $as_echo_n "(cached) " >&6
17245 else
17246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h.  */
17248 int i;
17249 int
17250 main ()
17251 {
17252
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"; then :
17258   eval $cacheid=yes
17259 else
17260   eval $cacheid=no
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext \
17263     conftest$ac_exeext conftest.$ac_ext
17264 fi
17265
17266
17267                 CFLAGS="$xorg_testset_save_CFLAGS"
17268
17269                 eval supported=\$$cacheid
17270                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17271 $as_echo "$supported" >&6; }
17272                 if test "$supported" = "yes" ; then
17273                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17274                         found="yes"
17275                 fi
17276         fi
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292 xorg_testset_save_CFLAGS="$CFLAGS"
17293
17294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17295         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17299   $as_echo_n "(cached) " >&6
17300 else
17301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h.  */
17303 int i;
17304 _ACEOF
17305 if ac_fn_c_try_compile "$LINENO"; then :
17306   xorg_cv_cc_flag_unknown_warning_option=yes
17307 else
17308   xorg_cv_cc_flag_unknown_warning_option=no
17309 fi
17310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311 fi
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17314         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17315         CFLAGS="$xorg_testset_save_CFLAGS"
17316 fi
17317
17318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17319         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17320                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17321         fi
17322         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17326   $as_echo_n "(cached) " >&6
17327 else
17328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h.  */
17330 int i;
17331 _ACEOF
17332 if ac_fn_c_try_compile "$LINENO"; then :
17333   xorg_cv_cc_flag_unused_command_line_argument=yes
17334 else
17335   xorg_cv_cc_flag_unused_command_line_argument=no
17336 fi
17337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338 fi
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17341         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17342         CFLAGS="$xorg_testset_save_CFLAGS"
17343 fi
17344
17345 found="no"
17346
17347         if test $found = "no" ; then
17348                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17349                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350                 fi
17351
17352                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17353                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17354                 fi
17355
17356                 CFLAGS="$CFLAGS -Werror"
17357
17358                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17359 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17360                 cacheid=xorg_cv_cc_flag__Werror
17361                 if eval \${$cacheid+:} false; then :
17362   $as_echo_n "(cached) " >&6
17363 else
17364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h.  */
17366 int i;
17367 int
17368 main ()
17369 {
17370
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 if ac_fn_c_try_link "$LINENO"; then :
17376   eval $cacheid=yes
17377 else
17378   eval $cacheid=no
17379 fi
17380 rm -f core conftest.err conftest.$ac_objext \
17381     conftest$ac_exeext conftest.$ac_ext
17382 fi
17383
17384
17385                 CFLAGS="$xorg_testset_save_CFLAGS"
17386
17387                 eval supported=\$$cacheid
17388                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17389 $as_echo "$supported" >&6; }
17390                 if test "$supported" = "yes" ; then
17391                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17392                         found="yes"
17393                 fi
17394         fi
17395
17396         if test $found = "no" ; then
17397                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17398                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17399                 fi
17400
17401                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17402                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17403                 fi
17404
17405                 CFLAGS="$CFLAGS -errwarn"
17406
17407                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17408 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17409                 cacheid=xorg_cv_cc_flag__errwarn
17410                 if eval \${$cacheid+:} false; then :
17411   $as_echo_n "(cached) " >&6
17412 else
17413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h.  */
17415 int i;
17416 int
17417 main ()
17418 {
17419
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 if ac_fn_c_try_link "$LINENO"; then :
17425   eval $cacheid=yes
17426 else
17427   eval $cacheid=no
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext \
17430     conftest$ac_exeext conftest.$ac_ext
17431 fi
17432
17433
17434                 CFLAGS="$xorg_testset_save_CFLAGS"
17435
17436                 eval supported=\$$cacheid
17437                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17438 $as_echo "$supported" >&6; }
17439                 if test "$supported" = "yes" ; then
17440                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17441                         found="yes"
17442                 fi
17443         fi
17444
17445
17446
17447 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17448 # activate it with -Werror, so we add it here explicitly.
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462 xorg_testset_save_CFLAGS="$CFLAGS"
17463
17464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17465         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17467 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17468 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17469   $as_echo_n "(cached) " >&6
17470 else
17471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h.  */
17473 int i;
17474 _ACEOF
17475 if ac_fn_c_try_compile "$LINENO"; then :
17476   xorg_cv_cc_flag_unknown_warning_option=yes
17477 else
17478   xorg_cv_cc_flag_unknown_warning_option=no
17479 fi
17480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17481 fi
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17483 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17484         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17485         CFLAGS="$xorg_testset_save_CFLAGS"
17486 fi
17487
17488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17489         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17490                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17491         fi
17492         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17494 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17495 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17496   $as_echo_n "(cached) " >&6
17497 else
17498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h.  */
17500 int i;
17501 _ACEOF
17502 if ac_fn_c_try_compile "$LINENO"; then :
17503   xorg_cv_cc_flag_unused_command_line_argument=yes
17504 else
17505   xorg_cv_cc_flag_unused_command_line_argument=no
17506 fi
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508 fi
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17510 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17511         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17512         CFLAGS="$xorg_testset_save_CFLAGS"
17513 fi
17514
17515 found="no"
17516
17517         if test $found = "no" ; then
17518                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17519                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17520                 fi
17521
17522                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17523                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17524                 fi
17525
17526                 CFLAGS="$CFLAGS -Werror=attributes"
17527
17528                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17529 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17530                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17531                 if eval \${$cacheid+:} false; then :
17532   $as_echo_n "(cached) " >&6
17533 else
17534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h.  */
17536 int i;
17537 int
17538 main ()
17539 {
17540
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 if ac_fn_c_try_link "$LINENO"; then :
17546   eval $cacheid=yes
17547 else
17548   eval $cacheid=no
17549 fi
17550 rm -f core conftest.err conftest.$ac_objext \
17551     conftest$ac_exeext conftest.$ac_ext
17552 fi
17553
17554
17555                 CFLAGS="$xorg_testset_save_CFLAGS"
17556
17557                 eval supported=\$$cacheid
17558                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17559 $as_echo "$supported" >&6; }
17560                 if test "$supported" = "yes" ; then
17561                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17562                         found="yes"
17563                 fi
17564         fi
17565
17566
17567
17568 if test "x$STRICT_COMPILE" = "xyes"; then
17569     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17570     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17571 fi
17572
17573
17574
17575
17576
17577
17578 cat >>confdefs.h <<_ACEOF
17579 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17580 _ACEOF
17581
17582         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17583         if test "x$PVM" = "x"; then
17584                 PVM="0"
17585         fi
17586
17587 cat >>confdefs.h <<_ACEOF
17588 #define PACKAGE_VERSION_MINOR $PVM
17589 _ACEOF
17590
17591         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17592         if test "x$PVP" = "x"; then
17593                 PVP="0"
17594         fi
17595
17596 cat >>confdefs.h <<_ACEOF
17597 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17598 _ACEOF
17599
17600
17601
17602 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17603 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17604 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17605 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17606
17607
17608
17609
17610 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17611 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17612 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17613 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17614 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17615
17616
17617
17618
17619
17620
17621 if test x$APP_MAN_SUFFIX = x    ; then
17622     APP_MAN_SUFFIX=1
17623 fi
17624 if test x$APP_MAN_DIR = x    ; then
17625     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17626 fi
17627
17628 if test x$LIB_MAN_SUFFIX = x    ; then
17629     LIB_MAN_SUFFIX=3
17630 fi
17631 if test x$LIB_MAN_DIR = x    ; then
17632     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17633 fi
17634
17635 if test x$FILE_MAN_SUFFIX = x    ; then
17636     case $host_os in
17637         solaris*)       FILE_MAN_SUFFIX=4  ;;
17638         *)              FILE_MAN_SUFFIX=5  ;;
17639     esac
17640 fi
17641 if test x$FILE_MAN_DIR = x    ; then
17642     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17643 fi
17644
17645 if test x$MISC_MAN_SUFFIX = x    ; then
17646     case $host_os in
17647         solaris*)       MISC_MAN_SUFFIX=5  ;;
17648         *)              MISC_MAN_SUFFIX=7  ;;
17649     esac
17650 fi
17651 if test x$MISC_MAN_DIR = x    ; then
17652     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17653 fi
17654
17655 if test x$DRIVER_MAN_SUFFIX = x    ; then
17656     case $host_os in
17657         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
17658         *)              DRIVER_MAN_SUFFIX=4  ;;
17659     esac
17660 fi
17661 if test x$DRIVER_MAN_DIR = x    ; then
17662     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17663 fi
17664
17665 if test x$ADMIN_MAN_SUFFIX = x    ; then
17666     case $host_os in
17667         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
17668         *)              ADMIN_MAN_SUFFIX=8  ;;
17669     esac
17670 fi
17671 if test x$ADMIN_MAN_DIR = x    ; then
17672     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17673 fi
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689 XORG_MAN_PAGE="X Version 11"
17690
17691 MAN_SUBSTS="\
17692         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17693         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17694         -e 's|__xservername__|Xorg|g' \
17695         -e 's|__xconfigfile__|xorg.conf|g' \
17696         -e 's|__projectroot__|\$(prefix)|g' \
17697         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17698         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17699         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17700         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17701         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17702         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17703         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17704
17705
17706
17707 # Check whether --enable-silent-rules was given.
17708 if test "${enable_silent_rules+set}" = set; then :
17709   enableval=$enable_silent_rules;
17710 fi
17711
17712 case $enable_silent_rules in
17713 yes) AM_DEFAULT_VERBOSITY=0;;
17714 no)  AM_DEFAULT_VERBOSITY=1;;
17715 *)   AM_DEFAULT_VERBOSITY=0;;
17716 esac
17717 AM_BACKSLASH='\'
17718
17719
17720
17721
17722 # Check whether --enable-specs was given.
17723 if test "${enable_specs+set}" = set; then :
17724   enableval=$enable_specs; build_specs=$enableval
17725 else
17726   build_specs=yes
17727 fi
17728
17729
17730  if test x$build_specs = xyes; then
17731   ENABLE_SPECS_TRUE=
17732   ENABLE_SPECS_FALSE='#'
17733 else
17734   ENABLE_SPECS_TRUE='#'
17735   ENABLE_SPECS_FALSE=
17736 fi
17737
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17739 $as_echo_n "checking whether to build functional specifications... " >&6; }
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17741 $as_echo "$build_specs" >&6; }
17742
17743
17744
17745
17746
17747 # Check whether --with-xmlto was given.
17748 if test "${with_xmlto+set}" = set; then :
17749   withval=$with_xmlto; use_xmlto=$withval
17750 else
17751   use_xmlto=auto
17752 fi
17753
17754
17755
17756 if test "x$use_xmlto" = x"auto"; then
17757    # Extract the first word of "xmlto", so it can be a program name with args.
17758 set dummy xmlto; ac_word=$2
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17760 $as_echo_n "checking for $ac_word... " >&6; }
17761 if ${ac_cv_path_XMLTO+:} false; then :
17762   $as_echo_n "(cached) " >&6
17763 else
17764   case $XMLTO in
17765   [\\/]* | ?:[\\/]*)
17766   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17767   ;;
17768   *)
17769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 for as_dir in $PATH
17771 do
17772   IFS=$as_save_IFS
17773   test -z "$as_dir" && as_dir=.
17774     for ac_exec_ext in '' $ac_executable_extensions; do
17775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17776     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17778     break 2
17779   fi
17780 done
17781   done
17782 IFS=$as_save_IFS
17783
17784   ;;
17785 esac
17786 fi
17787 XMLTO=$ac_cv_path_XMLTO
17788 if test -n "$XMLTO"; then
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17790 $as_echo "$XMLTO" >&6; }
17791 else
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793 $as_echo "no" >&6; }
17794 fi
17795
17796
17797    if test "x$XMLTO" = "x"; then
17798         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17799 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17800         have_xmlto=no
17801    else
17802         have_xmlto=yes
17803    fi
17804 elif test "x$use_xmlto" = x"yes" ; then
17805    # Extract the first word of "xmlto", so it can be a program name with args.
17806 set dummy xmlto; ac_word=$2
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if ${ac_cv_path_XMLTO+:} false; then :
17810   $as_echo_n "(cached) " >&6
17811 else
17812   case $XMLTO in
17813   [\\/]* | ?:[\\/]*)
17814   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17815   ;;
17816   *)
17817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17818 for as_dir in $PATH
17819 do
17820   IFS=$as_save_IFS
17821   test -z "$as_dir" && as_dir=.
17822     for ac_exec_ext in '' $ac_executable_extensions; do
17823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17824     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17826     break 2
17827   fi
17828 done
17829   done
17830 IFS=$as_save_IFS
17831
17832   ;;
17833 esac
17834 fi
17835 XMLTO=$ac_cv_path_XMLTO
17836 if test -n "$XMLTO"; then
17837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17838 $as_echo "$XMLTO" >&6; }
17839 else
17840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841 $as_echo "no" >&6; }
17842 fi
17843
17844
17845    if test "x$XMLTO" = "x"; then
17846         as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17847    fi
17848    have_xmlto=yes
17849 elif test "x$use_xmlto" = x"no" ; then
17850    if test "x$XMLTO" != "x"; then
17851       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17852 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17853    fi
17854    have_xmlto=no
17855 else
17856    as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17857 fi
17858
17859 # Test for a minimum version of xmlto, if provided.
17860 if test "$have_xmlto" = yes; then
17861     # scrape the xmlto version
17862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17863 $as_echo_n "checking the xmlto version... " >&6; }
17864     xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17866 $as_echo "$xmlto_version" >&6; }
17867     as_arg_v1=$xmlto_version
17868 as_arg_v2=0.0.22
17869 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17870 case $? in #(
17871   1) :
17872     if test "x$use_xmlto" = xauto; then
17873             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17874 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17875             have_xmlto=no
17876         else
17877             as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17878         fi ;; #(
17879   0) :
17880      ;; #(
17881   2) :
17882      ;; #(
17883   *) :
17884      ;;
17885 esac
17886 fi
17887
17888 # Test for the ability of xmlto to generate a text target
17889 have_xmlto_text=no
17890 cat > conftest.xml << "EOF"
17891 EOF
17892 if test "$have_xmlto" = yes; then :
17893   if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17894   have_xmlto_text=yes
17895 else
17896   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17897 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17898 fi
17899 fi
17900 rm -f conftest.xml
17901  if test $have_xmlto_text = yes; then
17902   HAVE_XMLTO_TEXT_TRUE=
17903   HAVE_XMLTO_TEXT_FALSE='#'
17904 else
17905   HAVE_XMLTO_TEXT_TRUE='#'
17906   HAVE_XMLTO_TEXT_FALSE=
17907 fi
17908
17909  if test "$have_xmlto" = yes; then
17910   HAVE_XMLTO_TRUE=
17911   HAVE_XMLTO_FALSE='#'
17912 else
17913   HAVE_XMLTO_TRUE='#'
17914   HAVE_XMLTO_FALSE=
17915 fi
17916
17917
17918
17919
17920
17921
17922 # Check whether --with-fop was given.
17923 if test "${with_fop+set}" = set; then :
17924   withval=$with_fop; use_fop=$withval
17925 else
17926   use_fop=auto
17927 fi
17928
17929
17930
17931 if test "x$use_fop" = x"auto"; then
17932    # Extract the first word of "fop", so it can be a program name with args.
17933 set dummy fop; ac_word=$2
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17935 $as_echo_n "checking for $ac_word... " >&6; }
17936 if ${ac_cv_path_FOP+:} false; then :
17937   $as_echo_n "(cached) " >&6
17938 else
17939   case $FOP in
17940   [\\/]* | ?:[\\/]*)
17941   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17942   ;;
17943   *)
17944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17945 for as_dir in $PATH
17946 do
17947   IFS=$as_save_IFS
17948   test -z "$as_dir" && as_dir=.
17949     for ac_exec_ext in '' $ac_executable_extensions; do
17950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17951     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17953     break 2
17954   fi
17955 done
17956   done
17957 IFS=$as_save_IFS
17958
17959   ;;
17960 esac
17961 fi
17962 FOP=$ac_cv_path_FOP
17963 if test -n "$FOP"; then
17964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17965 $as_echo "$FOP" >&6; }
17966 else
17967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17969 fi
17970
17971
17972    if test "x$FOP" = "x"; then
17973         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17974 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17975         have_fop=no
17976    else
17977         have_fop=yes
17978    fi
17979 elif test "x$use_fop" = x"yes" ; then
17980    # Extract the first word of "fop", so it can be a program name with args.
17981 set dummy fop; ac_word=$2
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17983 $as_echo_n "checking for $ac_word... " >&6; }
17984 if ${ac_cv_path_FOP+:} false; then :
17985   $as_echo_n "(cached) " >&6
17986 else
17987   case $FOP in
17988   [\\/]* | ?:[\\/]*)
17989   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17990   ;;
17991   *)
17992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17993 for as_dir in $PATH
17994 do
17995   IFS=$as_save_IFS
17996   test -z "$as_dir" && as_dir=.
17997     for ac_exec_ext in '' $ac_executable_extensions; do
17998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17999     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18001     break 2
18002   fi
18003 done
18004   done
18005 IFS=$as_save_IFS
18006
18007   ;;
18008 esac
18009 fi
18010 FOP=$ac_cv_path_FOP
18011 if test -n "$FOP"; then
18012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18013 $as_echo "$FOP" >&6; }
18014 else
18015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18017 fi
18018
18019
18020    if test "x$FOP" = "x"; then
18021         as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18022    fi
18023    have_fop=yes
18024 elif test "x$use_fop" = x"no" ; then
18025    if test "x$FOP" != "x"; then
18026       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18027 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18028    fi
18029    have_fop=no
18030 else
18031    as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18032 fi
18033
18034 # Test for a minimum version of fop, if provided.
18035
18036  if test "$have_fop" = yes; then
18037   HAVE_FOP_TRUE=
18038   HAVE_FOP_FALSE='#'
18039 else
18040   HAVE_FOP_TRUE='#'
18041   HAVE_FOP_FALSE=
18042 fi
18043
18044
18045
18046
18047 # Preserves the interface, should it be implemented later
18048
18049
18050
18051 # Check whether --with-xsltproc was given.
18052 if test "${with_xsltproc+set}" = set; then :
18053   withval=$with_xsltproc; use_xsltproc=$withval
18054 else
18055   use_xsltproc=auto
18056 fi
18057
18058
18059
18060 if test "x$use_xsltproc" = x"auto"; then
18061    # Extract the first word of "xsltproc", so it can be a program name with args.
18062 set dummy xsltproc; ac_word=$2
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18064 $as_echo_n "checking for $ac_word... " >&6; }
18065 if ${ac_cv_path_XSLTPROC+:} false; then :
18066   $as_echo_n "(cached) " >&6
18067 else
18068   case $XSLTPROC in
18069   [\\/]* | ?:[\\/]*)
18070   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18071   ;;
18072   *)
18073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18074 for as_dir in $PATH
18075 do
18076   IFS=$as_save_IFS
18077   test -z "$as_dir" && as_dir=.
18078     for ac_exec_ext in '' $ac_executable_extensions; do
18079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18080     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18082     break 2
18083   fi
18084 done
18085   done
18086 IFS=$as_save_IFS
18087
18088   ;;
18089 esac
18090 fi
18091 XSLTPROC=$ac_cv_path_XSLTPROC
18092 if test -n "$XSLTPROC"; then
18093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18094 $as_echo "$XSLTPROC" >&6; }
18095 else
18096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18097 $as_echo "no" >&6; }
18098 fi
18099
18100
18101    if test "x$XSLTPROC" = "x"; then
18102         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18103 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18104         have_xsltproc=no
18105    else
18106         have_xsltproc=yes
18107    fi
18108 elif test "x$use_xsltproc" = x"yes" ; then
18109    # Extract the first word of "xsltproc", so it can be a program name with args.
18110 set dummy xsltproc; ac_word=$2
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18112 $as_echo_n "checking for $ac_word... " >&6; }
18113 if ${ac_cv_path_XSLTPROC+:} false; then :
18114   $as_echo_n "(cached) " >&6
18115 else
18116   case $XSLTPROC in
18117   [\\/]* | ?:[\\/]*)
18118   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18119   ;;
18120   *)
18121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18122 for as_dir in $PATH
18123 do
18124   IFS=$as_save_IFS
18125   test -z "$as_dir" && as_dir=.
18126     for ac_exec_ext in '' $ac_executable_extensions; do
18127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18128     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18130     break 2
18131   fi
18132 done
18133   done
18134 IFS=$as_save_IFS
18135
18136   ;;
18137 esac
18138 fi
18139 XSLTPROC=$ac_cv_path_XSLTPROC
18140 if test -n "$XSLTPROC"; then
18141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18142 $as_echo "$XSLTPROC" >&6; }
18143 else
18144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18145 $as_echo "no" >&6; }
18146 fi
18147
18148
18149    if test "x$XSLTPROC" = "x"; then
18150         as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18151    fi
18152    have_xsltproc=yes
18153 elif test "x$use_xsltproc" = x"no" ; then
18154    if test "x$XSLTPROC" != "x"; then
18155       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18156 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18157    fi
18158    have_xsltproc=no
18159 else
18160    as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18161 fi
18162
18163  if test "$have_xsltproc" = yes; then
18164   HAVE_XSLTPROC_TRUE=
18165   HAVE_XSLTPROC_FALSE='#'
18166 else
18167   HAVE_XSLTPROC_TRUE='#'
18168   HAVE_XSLTPROC_FALSE=
18169 fi
18170
18171
18172
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18174 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18175 XORG_SGML_PATH=
18176 if test -n "$PKG_CONFIG" && \
18177     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18178   ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18179   ac_status=$?
18180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18181   test $ac_status = 0; }; then
18182   XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18183 else
18184   :
18185
18186 fi
18187
18188 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18189 # the path and the name of the doc stylesheet
18190 if test "x$XORG_SGML_PATH" != "x" ; then
18191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18192 $as_echo "$XORG_SGML_PATH" >&6; }
18193    STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18194    XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18195 else
18196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18197 $as_echo "no" >&6; }
18198 fi
18199
18200
18201
18202
18203  if test "x$XSL_STYLESHEET" != "x"; then
18204   HAVE_STYLESHEETS_TRUE=
18205   HAVE_STYLESHEETS_FALSE='#'
18206 else
18207   HAVE_STYLESHEETS_TRUE='#'
18208   HAVE_STYLESHEETS_FALSE=
18209 fi
18210
18211
18212
18213 # Some compilers do not support per target -c and -o flags
18214 if test "x$CC" != xcc; then
18215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18216 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18217 else
18218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18219 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18220 fi
18221 set dummy $CC; ac_cc=`$as_echo "$2" |
18222                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18223 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
18224   $as_echo_n "(cached) " >&6
18225 else
18226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h.  */
18228
18229 int
18230 main ()
18231 {
18232
18233   ;
18234   return 0;
18235 }
18236 _ACEOF
18237 # Make sure it works both with $CC and with simple cc.
18238 # We do the test twice because some compilers refuse to overwrite an
18239 # existing .o file with -o, though they will create one.
18240 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18241 rm -f conftest2.*
18242 if { { case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18247 $as_echo "$ac_try_echo"; } >&5
18248   (eval "$ac_try") 2>&5
18249   ac_status=$?
18250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18251   test $ac_status = 0; } &&
18252    test -f conftest2.$ac_objext && { { case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18257 $as_echo "$ac_try_echo"; } >&5
18258   (eval "$ac_try") 2>&5
18259   ac_status=$?
18260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18261   test $ac_status = 0; };
18262 then
18263   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18264   if test "x$CC" != xcc; then
18265     # Test first that cc exists at all.
18266     if { ac_try='cc -c conftest.$ac_ext >&5'
18267   { { case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18272 $as_echo "$ac_try_echo"; } >&5
18273   (eval "$ac_try") 2>&5
18274   ac_status=$?
18275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276   test $ac_status = 0; }; }; then
18277       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18278       rm -f conftest2.*
18279       if { { case "(($ac_try" in
18280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281   *) ac_try_echo=$ac_try;;
18282 esac
18283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18284 $as_echo "$ac_try_echo"; } >&5
18285   (eval "$ac_try") 2>&5
18286   ac_status=$?
18287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18288   test $ac_status = 0; } &&
18289          test -f conftest2.$ac_objext && { { case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18294 $as_echo "$ac_try_echo"; } >&5
18295   (eval "$ac_try") 2>&5
18296   ac_status=$?
18297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18298   test $ac_status = 0; };
18299       then
18300         # cc works too.
18301         :
18302       else
18303         # cc exists but doesn't like -o.
18304         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18305       fi
18306     fi
18307   fi
18308 else
18309   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18310 fi
18311 rm -f core conftest*
18312
18313 fi
18314 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 $as_echo "yes" >&6; }
18317 else
18318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18319 $as_echo "no" >&6; }
18320
18321 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
18322
18323 fi
18324
18325 # FIXME: we rely on the cache variable name because
18326 # there is no other way.
18327 set dummy $CC
18328 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18329 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18330 if test "$am_t" != yes; then
18331    # Losing compiler, so override with the script.
18332    # FIXME: It is wrong to rewrite CC.
18333    # But if we don't then we get into trouble of one sort or another.
18334    # A longer-term fix would be to have automake use am__CC in this case,
18335    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18336    CC="$am_aux_dir/compile $CC"
18337 fi
18338
18339
18340
18341 # Checks for programs.
18342 for ac_prog in gawk mawk nawk awk
18343 do
18344   # Extract the first word of "$ac_prog", so it can be a program name with args.
18345 set dummy $ac_prog; ac_word=$2
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18347 $as_echo_n "checking for $ac_word... " >&6; }
18348 if ${ac_cv_prog_AWK+:} false; then :
18349   $as_echo_n "(cached) " >&6
18350 else
18351   if test -n "$AWK"; then
18352   ac_cv_prog_AWK="$AWK" # Let the user override the test.
18353 else
18354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18355 for as_dir in $PATH
18356 do
18357   IFS=$as_save_IFS
18358   test -z "$as_dir" && as_dir=.
18359     for ac_exec_ext in '' $ac_executable_extensions; do
18360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18361     ac_cv_prog_AWK="$ac_prog"
18362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18363     break 2
18364   fi
18365 done
18366   done
18367 IFS=$as_save_IFS
18368
18369 fi
18370 fi
18371 AWK=$ac_cv_prog_AWK
18372 if test -n "$AWK"; then
18373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18374 $as_echo "$AWK" >&6; }
18375 else
18376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18378 fi
18379
18380
18381   test -n "$AWK" && break
18382 done
18383
18384
18385 # Need to call this explicitly since the first call to PKG_CHECK_MODULES
18386 # is in an if statement, and later calls would break if it's skipped.
18387
18388
18389 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18390         if test -n "$ac_tool_prefix"; then
18391   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18392 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18394 $as_echo_n "checking for $ac_word... " >&6; }
18395 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18396   $as_echo_n "(cached) " >&6
18397 else
18398   case $PKG_CONFIG in
18399   [\\/]* | ?:[\\/]*)
18400   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18401   ;;
18402   *)
18403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18404 for as_dir in $PATH
18405 do
18406   IFS=$as_save_IFS
18407   test -z "$as_dir" && as_dir=.
18408     for ac_exec_ext in '' $ac_executable_extensions; do
18409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18410     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18412     break 2
18413   fi
18414 done
18415   done
18416 IFS=$as_save_IFS
18417
18418   ;;
18419 esac
18420 fi
18421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18422 if test -n "$PKG_CONFIG"; then
18423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18424 $as_echo "$PKG_CONFIG" >&6; }
18425 else
18426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427 $as_echo "no" >&6; }
18428 fi
18429
18430
18431 fi
18432 if test -z "$ac_cv_path_PKG_CONFIG"; then
18433   ac_pt_PKG_CONFIG=$PKG_CONFIG
18434   # Extract the first word of "pkg-config", so it can be a program name with args.
18435 set dummy pkg-config; ac_word=$2
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18437 $as_echo_n "checking for $ac_word... " >&6; }
18438 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18439   $as_echo_n "(cached) " >&6
18440 else
18441   case $ac_pt_PKG_CONFIG in
18442   [\\/]* | ?:[\\/]*)
18443   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18444   ;;
18445   *)
18446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447 for as_dir in $PATH
18448 do
18449   IFS=$as_save_IFS
18450   test -z "$as_dir" && as_dir=.
18451     for ac_exec_ext in '' $ac_executable_extensions; do
18452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18453     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18455     break 2
18456   fi
18457 done
18458   done
18459 IFS=$as_save_IFS
18460
18461   ;;
18462 esac
18463 fi
18464 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18465 if test -n "$ac_pt_PKG_CONFIG"; then
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18467 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18468 else
18469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18470 $as_echo "no" >&6; }
18471 fi
18472
18473   if test "x$ac_pt_PKG_CONFIG" = x; then
18474     PKG_CONFIG=""
18475   else
18476     case $cross_compiling:$ac_tool_warned in
18477 yes:)
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18480 ac_tool_warned=yes ;;
18481 esac
18482     PKG_CONFIG=$ac_pt_PKG_CONFIG
18483   fi
18484 else
18485   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18486 fi
18487
18488 fi
18489 if test -n "$PKG_CONFIG"; then
18490         _pkg_min_version=0.9.0
18491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18492 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18493         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18494                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18495 $as_echo "yes" >&6; }
18496         else
18497                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 $as_echo "no" >&6; }
18499                 PKG_CONFIG=""
18500         fi
18501
18502 fi
18503
18504 #
18505 # fix libtool to set SONAME to libXaw.so.$major
18506 #
18507 ac_config_commands="$ac_config_commands libtool_hack"
18508
18509
18510 # OSX/Win32 rules are different.
18511 platform_win32=no
18512 platform_darwin=no
18513 LIBEXT=so
18514 case $host_os in
18515     cygwin*|mingw*)
18516         LIBEXT=dll.a
18517         platform_win32=yes
18518         ;;
18519     darwin*)
18520         LIBEXT=dylib
18521         platform_darwin=yes
18522         ;;
18523 esac
18524
18525  if test "x$platform_win32" = "xyes"; then
18526   PLATFORM_WIN32_TRUE=
18527   PLATFORM_WIN32_FALSE='#'
18528 else
18529   PLATFORM_WIN32_TRUE='#'
18530   PLATFORM_WIN32_FALSE=
18531 fi
18532
18533  if test "x$platform_darwin" = "xyes"; then
18534   PLATFORM_DARWIN_TRUE=
18535   PLATFORM_DARWIN_FALSE='#'
18536 else
18537   PLATFORM_DARWIN_TRUE='#'
18538   PLATFORM_DARWIN_FALSE=
18539 fi
18540
18541
18542 # Whether to build Xaw6
18543
18544 # Check whether --enable-xaw6 was given.
18545 if test "${enable_xaw6+set}" = set; then :
18546   enableval=$enable_xaw6; build_v6=$enableval
18547 else
18548   build_v6=yes
18549 fi
18550
18551
18552 if test "x$build_v6" = xyes; then
18553
18554 pkg_failed=no
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW6" >&5
18556 $as_echo_n "checking for XAW6... " >&6; }
18557
18558 if test -n "$XAW6_CFLAGS"; then
18559     pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS"
18560  elif test -n "$PKG_CONFIG"; then
18561     if test -n "$PKG_CONFIG" && \
18562     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
18563   ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
18564   ac_status=$?
18565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18566   test $ac_status = 0; }; then
18567   pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null`
18568 else
18569   pkg_failed=yes
18570 fi
18571  else
18572     pkg_failed=untried
18573 fi
18574 if test -n "$XAW6_LIBS"; then
18575     pkg_cv_XAW6_LIBS="$XAW6_LIBS"
18576  elif test -n "$PKG_CONFIG"; then
18577     if test -n "$PKG_CONFIG" && \
18578     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
18579   ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
18580   ac_status=$?
18581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18582   test $ac_status = 0; }; then
18583   pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null`
18584 else
18585   pkg_failed=yes
18586 fi
18587  else
18588     pkg_failed=untried
18589 fi
18590
18591
18592
18593 if test $pkg_failed = yes; then
18594
18595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18596         _pkg_short_errors_supported=yes
18597 else
18598         _pkg_short_errors_supported=no
18599 fi
18600         if test $_pkg_short_errors_supported = yes; then
18601                 XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu" 2>&1`
18602         else
18603                 XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu" 2>&1`
18604         fi
18605         # Put the nasty error message in config.log where it belongs
18606         echo "$XAW6_PKG_ERRORS" >&5
18607
18608         as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met:
18609
18610 $XAW6_PKG_ERRORS
18611
18612 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18613 installed software in a non-standard prefix.
18614
18615 Alternatively, you may set the environment variables XAW6_CFLAGS
18616 and XAW6_LIBS to avoid the need to call pkg-config.
18617 See the pkg-config man page for more details.
18618 " "$LINENO" 5
18619 elif test $pkg_failed = untried; then
18620         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18622 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18623 is in your PATH or set the PKG_CONFIG environment variable to the full
18624 path to pkg-config.
18625
18626 Alternatively, you may set the environment variables XAW6_CFLAGS
18627 and XAW6_LIBS to avoid the need to call pkg-config.
18628 See the pkg-config man page for more details.
18629
18630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18631 See \`config.log' for more details" "$LINENO" 5; }
18632 else
18633         XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS
18634         XAW6_LIBS=$pkg_cv_XAW6_LIBS
18635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18636 $as_echo "yes" >&6; }
18637         :
18638 fi
18639 fi
18640
18641
18642 # Whether to build Xaw7
18643
18644 # Check whether --enable-xaw7 was given.
18645 if test "${enable_xaw7+set}" = set; then :
18646   enableval=$enable_xaw7; build_v7=$enableval
18647 else
18648   build_v7=yes
18649 fi
18650
18651
18652 if test "x$build_v7" = xyes; then
18653
18654 pkg_failed=no
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW7" >&5
18656 $as_echo_n "checking for XAW7... " >&6; }
18657
18658 if test -n "$XAW7_CFLAGS"; then
18659     pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS"
18660  elif test -n "$PKG_CONFIG"; then
18661     if test -n "$PKG_CONFIG" && \
18662     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
18663   ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
18664   ac_status=$?
18665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18666   test $ac_status = 0; }; then
18667   pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
18668 else
18669   pkg_failed=yes
18670 fi
18671  else
18672     pkg_failed=untried
18673 fi
18674 if test -n "$XAW7_LIBS"; then
18675     pkg_cv_XAW7_LIBS="$XAW7_LIBS"
18676  elif test -n "$PKG_CONFIG"; then
18677     if test -n "$PKG_CONFIG" && \
18678     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
18679   ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
18680   ac_status=$?
18681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18682   test $ac_status = 0; }; then
18683   pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
18684 else
18685   pkg_failed=yes
18686 fi
18687  else
18688     pkg_failed=untried
18689 fi
18690
18691
18692
18693 if test $pkg_failed = yes; then
18694
18695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18696         _pkg_short_errors_supported=yes
18697 else
18698         _pkg_short_errors_supported=no
18699 fi
18700         if test $_pkg_short_errors_supported = yes; then
18701                 XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1`
18702         else
18703                 XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1`
18704         fi
18705         # Put the nasty error message in config.log where it belongs
18706         echo "$XAW7_PKG_ERRORS" >&5
18707
18708         as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met:
18709
18710 $XAW7_PKG_ERRORS
18711
18712 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18713 installed software in a non-standard prefix.
18714
18715 Alternatively, you may set the environment variables XAW7_CFLAGS
18716 and XAW7_LIBS to avoid the need to call pkg-config.
18717 See the pkg-config man page for more details.
18718 " "$LINENO" 5
18719 elif test $pkg_failed = untried; then
18720         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18722 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18723 is in your PATH or set the PKG_CONFIG environment variable to the full
18724 path to pkg-config.
18725
18726 Alternatively, you may set the environment variables XAW7_CFLAGS
18727 and XAW7_LIBS to avoid the need to call pkg-config.
18728 See the pkg-config man page for more details.
18729
18730 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18731 See \`config.log' for more details" "$LINENO" 5; }
18732 else
18733         XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS
18734         XAW7_LIBS=$pkg_cv_XAW7_LIBS
18735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18736 $as_echo "yes" >&6; }
18737         :
18738 fi
18739 fi
18740
18741
18742  if test x$build_v6 = xyes; then
18743   BUILD_XAW6_TRUE=
18744   BUILD_XAW6_FALSE='#'
18745 else
18746   BUILD_XAW6_TRUE='#'
18747   BUILD_XAW6_FALSE=
18748 fi
18749
18750  if test x$build_v7 = xyes; then
18751   BUILD_XAW7_TRUE=
18752   BUILD_XAW7_FALSE='#'
18753 else
18754   BUILD_XAW7_TRUE='#'
18755   BUILD_XAW7_FALSE=
18756 fi
18757
18758
18759 # Checks for header files.
18760 for ac_header in wctype.h wchar.h widec.h
18761 do :
18762   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18763 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18765   cat >>confdefs.h <<_ACEOF
18766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18767 _ACEOF
18768
18769 fi
18770
18771 done
18772
18773
18774 # Checks for functions
18775 for ac_func in iswalnum getpagesize
18776 do :
18777   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18780   cat >>confdefs.h <<_ACEOF
18781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18782 _ACEOF
18783
18784 fi
18785 done
18786
18787
18788 ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile src/Makefile"
18789
18790
18791 if test "x$build_v6" = xyes; then
18792    ac_config_files="$ac_config_files xaw6.pc"
18793
18794 fi
18795
18796 if test "x$build_v7" = xyes; then
18797    ac_config_files="$ac_config_files xaw7.pc"
18798
18799 fi
18800
18801 cat >confcache <<\_ACEOF
18802 # This file is a shell script that caches the results of configure
18803 # tests run on this system so they can be shared between configure
18804 # scripts and configure runs, see configure's option --config-cache.
18805 # It is not useful on other systems.  If it contains results you don't
18806 # want to keep, you may remove or edit it.
18807 #
18808 # config.status only pays attention to the cache file if you give it
18809 # the --recheck option to rerun configure.
18810 #
18811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18813 # following values.
18814
18815 _ACEOF
18816
18817 # The following way of writing the cache mishandles newlines in values,
18818 # but we know of no workaround that is simple, portable, and efficient.
18819 # So, we kill variables containing newlines.
18820 # Ultrix sh set writes to stderr and can't be redirected directly,
18821 # and sets the high bit in the cache file unless we assign to the vars.
18822 (
18823   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18824     eval ac_val=\$$ac_var
18825     case $ac_val in #(
18826     *${as_nl}*)
18827       case $ac_var in #(
18828       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18830       esac
18831       case $ac_var in #(
18832       _ | IFS | as_nl) ;; #(
18833       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18834       *) { eval $ac_var=; unset $ac_var;} ;;
18835       esac ;;
18836     esac
18837   done
18838
18839   (set) 2>&1 |
18840     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18841     *${as_nl}ac_space=\ *)
18842       # `set' does not quote correctly, so add quotes: double-quote
18843       # substitution turns \\\\ into \\, and sed turns \\ into \.
18844       sed -n \
18845         "s/'/'\\\\''/g;
18846           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18847       ;; #(
18848     *)
18849       # `set' quotes correctly as required by POSIX, so do not add quotes.
18850       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18851       ;;
18852     esac |
18853     sort
18854 ) |
18855   sed '
18856      /^ac_cv_env_/b end
18857      t clear
18858      :clear
18859      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18860      t end
18861      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18862      :end' >>confcache
18863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18864   if test -w "$cache_file"; then
18865     if test "x$cache_file" != "x/dev/null"; then
18866       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18867 $as_echo "$as_me: updating cache $cache_file" >&6;}
18868       if test ! -f "$cache_file" || test -h "$cache_file"; then
18869         cat confcache >"$cache_file"
18870       else
18871         case $cache_file in #(
18872         */* | ?:*)
18873           mv -f confcache "$cache_file"$$ &&
18874           mv -f "$cache_file"$$ "$cache_file" ;; #(
18875         *)
18876           mv -f confcache "$cache_file" ;;
18877         esac
18878       fi
18879     fi
18880   else
18881     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18882 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18883   fi
18884 fi
18885 rm -f confcache
18886
18887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18888 # Let make expand exec_prefix.
18889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18890
18891 DEFS=-DHAVE_CONFIG_H
18892
18893 ac_libobjs=
18894 ac_ltlibobjs=
18895 U=
18896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18897   # 1. Remove the extension, and $U if already installed.
18898   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18899   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18900   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18901   #    will be set to the directory where LIBOBJS objects are built.
18902   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18903   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18904 done
18905 LIBOBJS=$ac_libobjs
18906
18907 LTLIBOBJS=$ac_ltlibobjs
18908
18909
18910  if test -n "$EXEEXT"; then
18911   am__EXEEXT_TRUE=
18912   am__EXEEXT_FALSE='#'
18913 else
18914   am__EXEEXT_TRUE='#'
18915   am__EXEEXT_FALSE=
18916 fi
18917
18918 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18919   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18921 fi
18922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18923   as_fn_error $? "conditional \"AMDEP\" was never defined.
18924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18925 fi
18926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18927   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18929 fi
18930 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18931   as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18933 fi
18934 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18935   as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18937 fi
18938 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18939   as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18941 fi
18942 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18943   as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18945 fi
18946 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18947   as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18949 fi
18950 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18951   as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18953 fi
18954 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
18955   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
18956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18957 fi
18958 if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
18959   as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
18960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18961 fi
18962 if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
18963   as_fn_error $? "conditional \"BUILD_XAW6\" was never defined.
18964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18965 fi
18966 if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
18967   as_fn_error $? "conditional \"BUILD_XAW7\" was never defined.
18968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18969 fi
18970
18971 : "${CONFIG_STATUS=./config.status}"
18972 ac_write_fail=0
18973 ac_clean_files_save=$ac_clean_files
18974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18977 as_write_fail=0
18978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18979 #! $SHELL
18980 # Generated by $as_me.
18981 # Run this file to recreate the current configuration.
18982 # Compiler output produced by configure, useful for debugging
18983 # configure, is in config.log if it exists.
18984
18985 debug=false
18986 ac_cs_recheck=false
18987 ac_cs_silent=false
18988
18989 SHELL=\${CONFIG_SHELL-$SHELL}
18990 export SHELL
18991 _ASEOF
18992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18993 ## -------------------- ##
18994 ## M4sh Initialization. ##
18995 ## -------------------- ##
18996
18997 # Be more Bourne compatible
18998 DUALCASE=1; export DUALCASE # for MKS sh
18999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19000   emulate sh
19001   NULLCMD=:
19002   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19003   # is contrary to our usage.  Disable this feature.
19004   alias -g '${1+"$@"}'='"$@"'
19005   setopt NO_GLOB_SUBST
19006 else
19007   case `(set -o) 2>/dev/null` in #(
19008   *posix*) :
19009     set -o posix ;; #(
19010   *) :
19011      ;;
19012 esac
19013 fi
19014
19015
19016 as_nl='
19017 '
19018 export as_nl
19019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19023 # Prefer a ksh shell builtin over an external printf program on Solaris,
19024 # but without wasting forks for bash or zsh.
19025 if test -z "$BASH_VERSION$ZSH_VERSION" \
19026     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19027   as_echo='print -r --'
19028   as_echo_n='print -rn --'
19029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19030   as_echo='printf %s\n'
19031   as_echo_n='printf %s'
19032 else
19033   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19034     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19035     as_echo_n='/usr/ucb/echo -n'
19036   else
19037     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19038     as_echo_n_body='eval
19039       arg=$1;
19040       case $arg in #(
19041       *"$as_nl"*)
19042         expr "X$arg" : "X\\(.*\\)$as_nl";
19043         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19044       esac;
19045       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19046     '
19047     export as_echo_n_body
19048     as_echo_n='sh -c $as_echo_n_body as_echo'
19049   fi
19050   export as_echo_body
19051   as_echo='sh -c $as_echo_body as_echo'
19052 fi
19053
19054 # The user is always right.
19055 if test "${PATH_SEPARATOR+set}" != set; then
19056   PATH_SEPARATOR=:
19057   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19058     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19059       PATH_SEPARATOR=';'
19060   }
19061 fi
19062
19063
19064 # IFS
19065 # We need space, tab and new line, in precisely that order.  Quoting is
19066 # there to prevent editors from complaining about space-tab.
19067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19068 # splitting by setting IFS to empty value.)
19069 IFS=" ""        $as_nl"
19070
19071 # Find who we are.  Look in the path if we contain no directory separator.
19072 as_myself=
19073 case $0 in #((
19074   *[\\/]* ) as_myself=$0 ;;
19075   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076 for as_dir in $PATH
19077 do
19078   IFS=$as_save_IFS
19079   test -z "$as_dir" && as_dir=.
19080     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19081   done
19082 IFS=$as_save_IFS
19083
19084      ;;
19085 esac
19086 # We did not find ourselves, most probably we were run as `sh COMMAND'
19087 # in which case we are not to be found in the path.
19088 if test "x$as_myself" = x; then
19089   as_myself=$0
19090 fi
19091 if test ! -f "$as_myself"; then
19092   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19093   exit 1
19094 fi
19095
19096 # Unset variables that we do not need and which cause bugs (e.g. in
19097 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19098 # suppresses any "Segmentation fault" message there.  '((' could
19099 # trigger a bug in pdksh 5.2.14.
19100 for as_var in BASH_ENV ENV MAIL MAILPATH
19101 do eval test x\${$as_var+set} = xset \
19102   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19103 done
19104 PS1='$ '
19105 PS2='> '
19106 PS4='+ '
19107
19108 # NLS nuisances.
19109 LC_ALL=C
19110 export LC_ALL
19111 LANGUAGE=C
19112 export LANGUAGE
19113
19114 # CDPATH.
19115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19116
19117
19118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19119 # ----------------------------------------
19120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19122 # script with STATUS, using 1 if that was 0.
19123 as_fn_error ()
19124 {
19125   as_status=$1; test $as_status -eq 0 && as_status=1
19126   if test "$4"; then
19127     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19128     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19129   fi
19130   $as_echo "$as_me: error: $2" >&2
19131   as_fn_exit $as_status
19132 } # as_fn_error
19133
19134
19135 # as_fn_set_status STATUS
19136 # -----------------------
19137 # Set $? to STATUS, without forking.
19138 as_fn_set_status ()
19139 {
19140   return $1
19141 } # as_fn_set_status
19142
19143 # as_fn_exit STATUS
19144 # -----------------
19145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19146 as_fn_exit ()
19147 {
19148   set +e
19149   as_fn_set_status $1
19150   exit $1
19151 } # as_fn_exit
19152
19153 # as_fn_unset VAR
19154 # ---------------
19155 # Portably unset VAR.
19156 as_fn_unset ()
19157 {
19158   { eval $1=; unset $1;}
19159 }
19160 as_unset=as_fn_unset
19161 # as_fn_append VAR VALUE
19162 # ----------------------
19163 # Append the text in VALUE to the end of the definition contained in VAR. Take
19164 # advantage of any shell optimizations that allow amortized linear growth over
19165 # repeated appends, instead of the typical quadratic growth present in naive
19166 # implementations.
19167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19168   eval 'as_fn_append ()
19169   {
19170     eval $1+=\$2
19171   }'
19172 else
19173   as_fn_append ()
19174   {
19175     eval $1=\$$1\$2
19176   }
19177 fi # as_fn_append
19178
19179 # as_fn_arith ARG...
19180 # ------------------
19181 # Perform arithmetic evaluation on the ARGs, and store the result in the
19182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19183 # must be portable across $(()) and expr.
19184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19185   eval 'as_fn_arith ()
19186   {
19187     as_val=$(( $* ))
19188   }'
19189 else
19190   as_fn_arith ()
19191   {
19192     as_val=`expr "$@" || test $? -eq 1`
19193   }
19194 fi # as_fn_arith
19195
19196
19197 if expr a : '\(a\)' >/dev/null 2>&1 &&
19198    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19199   as_expr=expr
19200 else
19201   as_expr=false
19202 fi
19203
19204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19205   as_basename=basename
19206 else
19207   as_basename=false
19208 fi
19209
19210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19211   as_dirname=dirname
19212 else
19213   as_dirname=false
19214 fi
19215
19216 as_me=`$as_basename -- "$0" ||
19217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19218          X"$0" : 'X\(//\)$' \| \
19219          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19220 $as_echo X/"$0" |
19221     sed '/^.*\/\([^/][^/]*\)\/*$/{
19222             s//\1/
19223             q
19224           }
19225           /^X\/\(\/\/\)$/{
19226             s//\1/
19227             q
19228           }
19229           /^X\/\(\/\).*/{
19230             s//\1/
19231             q
19232           }
19233           s/.*/./; q'`
19234
19235 # Avoid depending upon Character Ranges.
19236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19239 as_cr_digits='0123456789'
19240 as_cr_alnum=$as_cr_Letters$as_cr_digits
19241
19242 ECHO_C= ECHO_N= ECHO_T=
19243 case `echo -n x` in #(((((
19244 -n*)
19245   case `echo 'xy\c'` in
19246   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19247   xy)  ECHO_C='\c';;
19248   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19249        ECHO_T=' ';;
19250   esac;;
19251 *)
19252   ECHO_N='-n';;
19253 esac
19254
19255 rm -f conf$$ conf$$.exe conf$$.file
19256 if test -d conf$$.dir; then
19257   rm -f conf$$.dir/conf$$.file
19258 else
19259   rm -f conf$$.dir
19260   mkdir conf$$.dir 2>/dev/null
19261 fi
19262 if (echo >conf$$.file) 2>/dev/null; then
19263   if ln -s conf$$.file conf$$ 2>/dev/null; then
19264     as_ln_s='ln -s'
19265     # ... but there are two gotchas:
19266     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19267     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19268     # In both cases, we have to default to `cp -p'.
19269     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19270       as_ln_s='cp -p'
19271   elif ln conf$$.file conf$$ 2>/dev/null; then
19272     as_ln_s=ln
19273   else
19274     as_ln_s='cp -p'
19275   fi
19276 else
19277   as_ln_s='cp -p'
19278 fi
19279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19280 rmdir conf$$.dir 2>/dev/null
19281
19282
19283 # as_fn_mkdir_p
19284 # -------------
19285 # Create "$as_dir" as a directory, including parents if necessary.
19286 as_fn_mkdir_p ()
19287 {
19288
19289   case $as_dir in #(
19290   -*) as_dir=./$as_dir;;
19291   esac
19292   test -d "$as_dir" || eval $as_mkdir_p || {
19293     as_dirs=
19294     while :; do
19295       case $as_dir in #(
19296       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19297       *) as_qdir=$as_dir;;
19298       esac
19299       as_dirs="'$as_qdir' $as_dirs"
19300       as_dir=`$as_dirname -- "$as_dir" ||
19301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19302          X"$as_dir" : 'X\(//\)[^/]' \| \
19303          X"$as_dir" : 'X\(//\)$' \| \
19304          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19305 $as_echo X"$as_dir" |
19306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19307             s//\1/
19308             q
19309           }
19310           /^X\(\/\/\)[^/].*/{
19311             s//\1/
19312             q
19313           }
19314           /^X\(\/\/\)$/{
19315             s//\1/
19316             q
19317           }
19318           /^X\(\/\).*/{
19319             s//\1/
19320             q
19321           }
19322           s/.*/./; q'`
19323       test -d "$as_dir" && break
19324     done
19325     test -z "$as_dirs" || eval "mkdir $as_dirs"
19326   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19327
19328
19329 } # as_fn_mkdir_p
19330 if mkdir -p . 2>/dev/null; then
19331   as_mkdir_p='mkdir -p "$as_dir"'
19332 else
19333   test -d ./-p && rmdir ./-p
19334   as_mkdir_p=false
19335 fi
19336
19337 if test -x / >/dev/null 2>&1; then
19338   as_test_x='test -x'
19339 else
19340   if ls -dL / >/dev/null 2>&1; then
19341     as_ls_L_option=L
19342   else
19343     as_ls_L_option=
19344   fi
19345   as_test_x='
19346     eval sh -c '\''
19347       if test -d "$1"; then
19348         test -d "$1/.";
19349       else
19350         case $1 in #(
19351         -*)set "./$1";;
19352         esac;
19353         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19354         ???[sx]*):;;*)false;;esac;fi
19355     '\'' sh
19356   '
19357 fi
19358 as_executable_p=$as_test_x
19359
19360 # Sed expression to map a string onto a valid CPP name.
19361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19362
19363 # Sed expression to map a string onto a valid variable name.
19364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19365
19366
19367 exec 6>&1
19368 ## ----------------------------------- ##
19369 ## Main body of $CONFIG_STATUS script. ##
19370 ## ----------------------------------- ##
19371 _ASEOF
19372 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19373
19374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19375 # Save the log message, to keep $0 and so on meaningful, and to
19376 # report actual input values of CONFIG_FILES etc. instead of their
19377 # values after options handling.
19378 ac_log="
19379 This file was extended by libXaw $as_me 1.0.11, which was
19380 generated by GNU Autoconf 2.68.  Invocation command line was
19381
19382   CONFIG_FILES    = $CONFIG_FILES
19383   CONFIG_HEADERS  = $CONFIG_HEADERS
19384   CONFIG_LINKS    = $CONFIG_LINKS
19385   CONFIG_COMMANDS = $CONFIG_COMMANDS
19386   $ $0 $@
19387
19388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19389 "
19390
19391 _ACEOF
19392
19393 case $ac_config_files in *"
19394 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19395 esac
19396
19397 case $ac_config_headers in *"
19398 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19399 esac
19400
19401
19402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19403 # Files that config.status was made for.
19404 config_files="$ac_config_files"
19405 config_headers="$ac_config_headers"
19406 config_commands="$ac_config_commands"
19407
19408 _ACEOF
19409
19410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19411 ac_cs_usage="\
19412 \`$as_me' instantiates files and other configuration actions
19413 from templates according to the current configuration.  Unless the files
19414 and actions are specified as TAGs, all are instantiated by default.
19415
19416 Usage: $0 [OPTION]... [TAG]...
19417
19418   -h, --help       print this help, then exit
19419   -V, --version    print version number and configuration settings, then exit
19420       --config     print configuration, then exit
19421   -q, --quiet, --silent
19422                    do not print progress messages
19423   -d, --debug      don't remove temporary files
19424       --recheck    update $as_me by reconfiguring in the same conditions
19425       --file=FILE[:TEMPLATE]
19426                    instantiate the configuration file FILE
19427       --header=FILE[:TEMPLATE]
19428                    instantiate the configuration header FILE
19429
19430 Configuration files:
19431 $config_files
19432
19433 Configuration headers:
19434 $config_headers
19435
19436 Configuration commands:
19437 $config_commands
19438
19439 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19440
19441 _ACEOF
19442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19443 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19444 ac_cs_version="\\
19445 libXaw config.status 1.0.11
19446 configured by $0, generated by GNU Autoconf 2.68,
19447   with options \\"\$ac_cs_config\\"
19448
19449 Copyright (C) 2010 Free Software Foundation, Inc.
19450 This config.status script is free software; the Free Software Foundation
19451 gives unlimited permission to copy, distribute and modify it."
19452
19453 ac_pwd='$ac_pwd'
19454 srcdir='$srcdir'
19455 INSTALL='$INSTALL'
19456 MKDIR_P='$MKDIR_P'
19457 AWK='$AWK'
19458 test -n "\$AWK" || AWK=awk
19459 _ACEOF
19460
19461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19462 # The default lists apply if the user does not specify any file.
19463 ac_need_defaults=:
19464 while test $# != 0
19465 do
19466   case $1 in
19467   --*=?*)
19468     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19469     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19470     ac_shift=:
19471     ;;
19472   --*=)
19473     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19474     ac_optarg=
19475     ac_shift=:
19476     ;;
19477   *)
19478     ac_option=$1
19479     ac_optarg=$2
19480     ac_shift=shift
19481     ;;
19482   esac
19483
19484   case $ac_option in
19485   # Handling of the options.
19486   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19487     ac_cs_recheck=: ;;
19488   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19489     $as_echo "$ac_cs_version"; exit ;;
19490   --config | --confi | --conf | --con | --co | --c )
19491     $as_echo "$ac_cs_config"; exit ;;
19492   --debug | --debu | --deb | --de | --d | -d )
19493     debug=: ;;
19494   --file | --fil | --fi | --f )
19495     $ac_shift
19496     case $ac_optarg in
19497     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19498     '') as_fn_error $? "missing file argument" ;;
19499     esac
19500     as_fn_append CONFIG_FILES " '$ac_optarg'"
19501     ac_need_defaults=false;;
19502   --header | --heade | --head | --hea )
19503     $ac_shift
19504     case $ac_optarg in
19505     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19506     esac
19507     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19508     ac_need_defaults=false;;
19509   --he | --h)
19510     # Conflict between --help and --header
19511     as_fn_error $? "ambiguous option: \`$1'
19512 Try \`$0 --help' for more information.";;
19513   --help | --hel | -h )
19514     $as_echo "$ac_cs_usage"; exit ;;
19515   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19516   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19517     ac_cs_silent=: ;;
19518
19519   # This is an error.
19520   -*) as_fn_error $? "unrecognized option: \`$1'
19521 Try \`$0 --help' for more information." ;;
19522
19523   *) as_fn_append ac_config_targets " $1"
19524      ac_need_defaults=false ;;
19525
19526   esac
19527   shift
19528 done
19529
19530 ac_configure_extra_args=
19531
19532 if $ac_cs_silent; then
19533   exec 6>/dev/null
19534   ac_configure_extra_args="$ac_configure_extra_args --silent"
19535 fi
19536
19537 _ACEOF
19538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19539 if \$ac_cs_recheck; then
19540   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19541   shift
19542   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19543   CONFIG_SHELL='$SHELL'
19544   export CONFIG_SHELL
19545   exec "\$@"
19546 fi
19547
19548 _ACEOF
19549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19550 exec 5>>config.log
19551 {
19552   echo
19553   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19554 ## Running $as_me. ##
19555 _ASBOX
19556   $as_echo "$ac_log"
19557 } >&5
19558
19559 _ACEOF
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561 #
19562 # INIT-COMMANDS
19563 #
19564 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19565
19566
19567 # The HP-UX ksh and POSIX shell print the target directory to stdout
19568 # if CDPATH is set.
19569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19570
19571 sed_quote_subst='$sed_quote_subst'
19572 double_quote_subst='$double_quote_subst'
19573 delay_variable_subst='$delay_variable_subst'
19574 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19575 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19576 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19577 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19578 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19579 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19580 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19581 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19582 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19583 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19584 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19585 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19586 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19587 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19588 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19589 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19590 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19591 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19592 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19593 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19594 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19595 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19596 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19597 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19598 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19599 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19600 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19601 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19602 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19603 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19604 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19605 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19606 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19607 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19608 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19609 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19610 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19611 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19612 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19613 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19614 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19615 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19616 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19617 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19618 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19619 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19620 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19621 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19622 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19623 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19624 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19625 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19626 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19627 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19628 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19630 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"`'
19631 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19632 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19633 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19634 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19635 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19636 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19637 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19638 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19639 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19640 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19641 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19642 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19643 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19644 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19645 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19646 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19647 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19648 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19649 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19650 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19651 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19652 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19653 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19654 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19655 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19656 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19657 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19658 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19659 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19660 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19661 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19662 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19663 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19664 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19665 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19666 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19667 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19668 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19669 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19670 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19671 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19672 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19673 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19674 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19675 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19676 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19677 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19678 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19679 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19680 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19681 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19682 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19683 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19684 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19685 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19686 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19687 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19688 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19689 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19690 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19691 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19692 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19693 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19694 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19695 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19696 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19697 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19698 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19699 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19700 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19701 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19702 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19703 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19704
19705 LTCC='$LTCC'
19706 LTCFLAGS='$LTCFLAGS'
19707 compiler='$compiler_DEFAULT'
19708
19709 # A function that is used when there is no print builtin or printf.
19710 func_fallback_echo ()
19711 {
19712   eval 'cat <<_LTECHO_EOF
19713 \$1
19714 _LTECHO_EOF'
19715 }
19716
19717 # Quote evaled strings.
19718 for var in SHELL \
19719 ECHO \
19720 PATH_SEPARATOR \
19721 SED \
19722 GREP \
19723 EGREP \
19724 FGREP \
19725 LD \
19726 NM \
19727 LN_S \
19728 lt_SP2NL \
19729 lt_NL2SP \
19730 reload_flag \
19731 OBJDUMP \
19732 deplibs_check_method \
19733 file_magic_cmd \
19734 file_magic_glob \
19735 want_nocaseglob \
19736 DLLTOOL \
19737 sharedlib_from_linklib_cmd \
19738 AR \
19739 AR_FLAGS \
19740 archiver_list_spec \
19741 STRIP \
19742 RANLIB \
19743 CC \
19744 CFLAGS \
19745 compiler \
19746 lt_cv_sys_global_symbol_pipe \
19747 lt_cv_sys_global_symbol_to_cdecl \
19748 lt_cv_sys_global_symbol_to_c_name_address \
19749 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19750 nm_file_list_spec \
19751 lt_prog_compiler_no_builtin_flag \
19752 lt_prog_compiler_pic \
19753 lt_prog_compiler_wl \
19754 lt_prog_compiler_static \
19755 lt_cv_prog_compiler_c_o \
19756 need_locks \
19757 MANIFEST_TOOL \
19758 DSYMUTIL \
19759 NMEDIT \
19760 LIPO \
19761 OTOOL \
19762 OTOOL64 \
19763 shrext_cmds \
19764 export_dynamic_flag_spec \
19765 whole_archive_flag_spec \
19766 compiler_needs_object \
19767 with_gnu_ld \
19768 allow_undefined_flag \
19769 no_undefined_flag \
19770 hardcode_libdir_flag_spec \
19771 hardcode_libdir_separator \
19772 exclude_expsyms \
19773 include_expsyms \
19774 file_list_spec \
19775 variables_saved_for_relink \
19776 libname_spec \
19777 library_names_spec \
19778 soname_spec \
19779 install_override_mode \
19780 finish_eval \
19781 old_striplib \
19782 striplib; do
19783     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19784     *[\\\\\\\`\\"\\\$]*)
19785       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19786       ;;
19787     *)
19788       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19789       ;;
19790     esac
19791 done
19792
19793 # Double-quote double-evaled strings.
19794 for var in reload_cmds \
19795 old_postinstall_cmds \
19796 old_postuninstall_cmds \
19797 old_archive_cmds \
19798 extract_expsyms_cmds \
19799 old_archive_from_new_cmds \
19800 old_archive_from_expsyms_cmds \
19801 archive_cmds \
19802 archive_expsym_cmds \
19803 module_cmds \
19804 module_expsym_cmds \
19805 export_symbols_cmds \
19806 prelink_cmds \
19807 postlink_cmds \
19808 postinstall_cmds \
19809 postuninstall_cmds \
19810 finish_cmds \
19811 sys_lib_search_path_spec \
19812 sys_lib_dlsearch_path_spec; do
19813     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19814     *[\\\\\\\`\\"\\\$]*)
19815       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19816       ;;
19817     *)
19818       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19819       ;;
19820     esac
19821 done
19822
19823 ac_aux_dir='$ac_aux_dir'
19824 xsi_shell='$xsi_shell'
19825 lt_shell_append='$lt_shell_append'
19826
19827 # See if we are running on zsh, and set the options which allow our
19828 # commands through without removal of \ escapes INIT.
19829 if test -n "\${ZSH_VERSION+set}" ; then
19830    setopt NO_GLOB_SUBST
19831 fi
19832
19833
19834     PACKAGE='$PACKAGE'
19835     VERSION='$VERSION'
19836     TIMESTAMP='$TIMESTAMP'
19837     RM='$RM'
19838     ofile='$ofile'
19839
19840
19841
19842
19843 _ACEOF
19844
19845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19846
19847 # Handling of arguments.
19848 for ac_config_target in $ac_config_targets
19849 do
19850   case $ac_config_target in
19851     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19852     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19853     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19854     "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;;
19855     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19856     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19857     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19858     "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19859     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19860     "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
19861     "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
19862
19863   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19864   esac
19865 done
19866
19867
19868 # If the user did not use the arguments to specify the items to instantiate,
19869 # then the envvar interface is used.  Set only those that are not.
19870 # We use the long form for the default assignment because of an extremely
19871 # bizarre bug on SunOS 4.1.3.
19872 if $ac_need_defaults; then
19873   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19874   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19875   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19876 fi
19877
19878 # Have a temporary directory for convenience.  Make it in the build tree
19879 # simply because there is no reason against having it here, and in addition,
19880 # creating and moving files from /tmp can sometimes cause problems.
19881 # Hook for its removal unless debugging.
19882 # Note that there is a small window in which the directory will not be cleaned:
19883 # after its creation but before its name has been assigned to `$tmp'.
19884 $debug ||
19885 {
19886   tmp= ac_tmp=
19887   trap 'exit_status=$?
19888   : "${ac_tmp:=$tmp}"
19889   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19890 ' 0
19891   trap 'as_fn_exit 1' 1 2 13 15
19892 }
19893 # Create a (secure) tmp directory for tmp files.
19894
19895 {
19896   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19897   test -d "$tmp"
19898 }  ||
19899 {
19900   tmp=./conf$$-$RANDOM
19901   (umask 077 && mkdir "$tmp")
19902 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19903 ac_tmp=$tmp
19904
19905 # Set up the scripts for CONFIG_FILES section.
19906 # No need to generate them if there are no CONFIG_FILES.
19907 # This happens for instance with `./config.status config.h'.
19908 if test -n "$CONFIG_FILES"; then
19909
19910
19911 ac_cr=`echo X | tr X '\015'`
19912 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19913 # But we know of no other shell where ac_cr would be empty at this
19914 # point, so we can use a bashism as a fallback.
19915 if test "x$ac_cr" = x; then
19916   eval ac_cr=\$\'\\r\'
19917 fi
19918 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19919 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19920   ac_cs_awk_cr='\\r'
19921 else
19922   ac_cs_awk_cr=$ac_cr
19923 fi
19924
19925 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19926 _ACEOF
19927
19928
19929 {
19930   echo "cat >conf$$subs.awk <<_ACEOF" &&
19931   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19932   echo "_ACEOF"
19933 } >conf$$subs.sh ||
19934   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19935 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19936 ac_delim='%!_!# '
19937 for ac_last_try in false false false false false :; do
19938   . ./conf$$subs.sh ||
19939     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19940
19941   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19942   if test $ac_delim_n = $ac_delim_num; then
19943     break
19944   elif $ac_last_try; then
19945     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19946   else
19947     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19948   fi
19949 done
19950 rm -f conf$$subs.sh
19951
19952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19953 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19954 _ACEOF
19955 sed -n '
19956 h
19957 s/^/S["/; s/!.*/"]=/
19958 p
19959 g
19960 s/^[^!]*!//
19961 :repl
19962 t repl
19963 s/'"$ac_delim"'$//
19964 t delim
19965 :nl
19966 h
19967 s/\(.\{148\}\)..*/\1/
19968 t more1
19969 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19970 p
19971 n
19972 b repl
19973 :more1
19974 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19975 p
19976 g
19977 s/.\{148\}//
19978 t nl
19979 :delim
19980 h
19981 s/\(.\{148\}\)..*/\1/
19982 t more2
19983 s/["\\]/\\&/g; s/^/"/; s/$/"/
19984 p
19985 b
19986 :more2
19987 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19988 p
19989 g
19990 s/.\{148\}//
19991 t delim
19992 ' <conf$$subs.awk | sed '
19993 /^[^""]/{
19994   N
19995   s/\n//
19996 }
19997 ' >>$CONFIG_STATUS || ac_write_fail=1
19998 rm -f conf$$subs.awk
19999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20000 _ACAWK
20001 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20002   for (key in S) S_is_set[key] = 1
20003   FS = "\a"
20004
20005 }
20006 {
20007   line = $ 0
20008   nfields = split(line, field, "@")
20009   substed = 0
20010   len = length(field[1])
20011   for (i = 2; i < nfields; i++) {
20012     key = field[i]
20013     keylen = length(key)
20014     if (S_is_set[key]) {
20015       value = S[key]
20016       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20017       len += length(value) + length(field[++i])
20018       substed = 1
20019     } else
20020       len += 1 + keylen
20021   }
20022
20023   print line
20024 }
20025
20026 _ACAWK
20027 _ACEOF
20028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20029 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20030   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20031 else
20032   cat
20033 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20034   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20035 _ACEOF
20036
20037 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20038 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20039 # trailing colons and then remove the whole line if VPATH becomes empty
20040 # (actually we leave an empty line to preserve line numbers).
20041 if test "x$srcdir" = x.; then
20042   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20043 h
20044 s///
20045 s/^/:/
20046 s/[      ]*$/:/
20047 s/:\$(srcdir):/:/g
20048 s/:\${srcdir}:/:/g
20049 s/:@srcdir@:/:/g
20050 s/^:*//
20051 s/:*$//
20052 x
20053 s/\(=[   ]*\).*/\1/
20054 G
20055 s/\n//
20056 s/^[^=]*=[       ]*$//
20057 }'
20058 fi
20059
20060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20061 fi # test -n "$CONFIG_FILES"
20062
20063 # Set up the scripts for CONFIG_HEADERS section.
20064 # No need to generate them if there are no CONFIG_HEADERS.
20065 # This happens for instance with `./config.status Makefile'.
20066 if test -n "$CONFIG_HEADERS"; then
20067 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20068 BEGIN {
20069 _ACEOF
20070
20071 # Transform confdefs.h into an awk script `defines.awk', embedded as
20072 # here-document in config.status, that substitutes the proper values into
20073 # config.h.in to produce config.h.
20074
20075 # Create a delimiter string that does not exist in confdefs.h, to ease
20076 # handling of long lines.
20077 ac_delim='%!_!# '
20078 for ac_last_try in false false :; do
20079   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20080   if test -z "$ac_tt"; then
20081     break
20082   elif $ac_last_try; then
20083     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20084   else
20085     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20086   fi
20087 done
20088
20089 # For the awk script, D is an array of macro values keyed by name,
20090 # likewise P contains macro parameters if any.  Preserve backslash
20091 # newline sequences.
20092
20093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20094 sed -n '
20095 s/.\{148\}/&'"$ac_delim"'/g
20096 t rset
20097 :rset
20098 s/^[     ]*#[    ]*define[       ][      ]*/ /
20099 t def
20100 d
20101 :def
20102 s/\\$//
20103 t bsnl
20104 s/["\\]/\\&/g
20105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20106 D["\1"]=" \3"/p
20107 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20108 d
20109 :bsnl
20110 s/["\\]/\\&/g
20111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20112 D["\1"]=" \3\\\\\\n"\\/p
20113 t cont
20114 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20115 t cont
20116 d
20117 :cont
20118 n
20119 s/.\{148\}/&'"$ac_delim"'/g
20120 t clear
20121 :clear
20122 s/\\$//
20123 t bsnlc
20124 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20125 d
20126 :bsnlc
20127 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20128 b cont
20129 ' <confdefs.h | sed '
20130 s/'"$ac_delim"'/"\\\
20131 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20132
20133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20134   for (key in D) D_is_set[key] = 1
20135   FS = "\a"
20136 }
20137 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20138   line = \$ 0
20139   split(line, arg, " ")
20140   if (arg[1] == "#") {
20141     defundef = arg[2]
20142     mac1 = arg[3]
20143   } else {
20144     defundef = substr(arg[1], 2)
20145     mac1 = arg[2]
20146   }
20147   split(mac1, mac2, "(") #)
20148   macro = mac2[1]
20149   prefix = substr(line, 1, index(line, defundef) - 1)
20150   if (D_is_set[macro]) {
20151     # Preserve the white space surrounding the "#".
20152     print prefix "define", macro P[macro] D[macro]
20153     next
20154   } else {
20155     # Replace #undef with comments.  This is necessary, for example,
20156     # in the case of _POSIX_SOURCE, which is predefined and required
20157     # on some systems where configure will not decide to define it.
20158     if (defundef == "undef") {
20159       print "/*", prefix defundef, macro, "*/"
20160       next
20161     }
20162   }
20163 }
20164 { print }
20165 _ACAWK
20166 _ACEOF
20167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20168   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20169 fi # test -n "$CONFIG_HEADERS"
20170
20171
20172 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20173 shift
20174 for ac_tag
20175 do
20176   case $ac_tag in
20177   :[FHLC]) ac_mode=$ac_tag; continue;;
20178   esac
20179   case $ac_mode$ac_tag in
20180   :[FHL]*:*);;
20181   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20182   :[FH]-) ac_tag=-:-;;
20183   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20184   esac
20185   ac_save_IFS=$IFS
20186   IFS=:
20187   set x $ac_tag
20188   IFS=$ac_save_IFS
20189   shift
20190   ac_file=$1
20191   shift
20192
20193   case $ac_mode in
20194   :L) ac_source=$1;;
20195   :[FH])
20196     ac_file_inputs=
20197     for ac_f
20198     do
20199       case $ac_f in
20200       -) ac_f="$ac_tmp/stdin";;
20201       *) # Look for the file first in the build tree, then in the source tree
20202          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20203          # because $ac_f cannot contain `:'.
20204          test -f "$ac_f" ||
20205            case $ac_f in
20206            [\\/$]*) false;;
20207            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20208            esac ||
20209            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20210       esac
20211       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20212       as_fn_append ac_file_inputs " '$ac_f'"
20213     done
20214
20215     # Let's still pretend it is `configure' which instantiates (i.e., don't
20216     # use $as_me), people would be surprised to read:
20217     #    /* config.h.  Generated by config.status.  */
20218     configure_input='Generated from '`
20219           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20220         `' by configure.'
20221     if test x"$ac_file" != x-; then
20222       configure_input="$ac_file.  $configure_input"
20223       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20224 $as_echo "$as_me: creating $ac_file" >&6;}
20225     fi
20226     # Neutralize special characters interpreted by sed in replacement strings.
20227     case $configure_input in #(
20228     *\&* | *\|* | *\\* )
20229        ac_sed_conf_input=`$as_echo "$configure_input" |
20230        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20231     *) ac_sed_conf_input=$configure_input;;
20232     esac
20233
20234     case $ac_tag in
20235     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20236       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20237     esac
20238     ;;
20239   esac
20240
20241   ac_dir=`$as_dirname -- "$ac_file" ||
20242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20243          X"$ac_file" : 'X\(//\)[^/]' \| \
20244          X"$ac_file" : 'X\(//\)$' \| \
20245          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20246 $as_echo X"$ac_file" |
20247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20248             s//\1/
20249             q
20250           }
20251           /^X\(\/\/\)[^/].*/{
20252             s//\1/
20253             q
20254           }
20255           /^X\(\/\/\)$/{
20256             s//\1/
20257             q
20258           }
20259           /^X\(\/\).*/{
20260             s//\1/
20261             q
20262           }
20263           s/.*/./; q'`
20264   as_dir="$ac_dir"; as_fn_mkdir_p
20265   ac_builddir=.
20266
20267 case "$ac_dir" in
20268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20269 *)
20270   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20271   # A ".." for each directory in $ac_dir_suffix.
20272   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20273   case $ac_top_builddir_sub in
20274   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20275   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20276   esac ;;
20277 esac
20278 ac_abs_top_builddir=$ac_pwd
20279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20280 # for backward compatibility:
20281 ac_top_builddir=$ac_top_build_prefix
20282
20283 case $srcdir in
20284   .)  # We are building in place.
20285     ac_srcdir=.
20286     ac_top_srcdir=$ac_top_builddir_sub
20287     ac_abs_top_srcdir=$ac_pwd ;;
20288   [\\/]* | ?:[\\/]* )  # Absolute name.
20289     ac_srcdir=$srcdir$ac_dir_suffix;
20290     ac_top_srcdir=$srcdir
20291     ac_abs_top_srcdir=$srcdir ;;
20292   *) # Relative name.
20293     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20294     ac_top_srcdir=$ac_top_build_prefix$srcdir
20295     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20296 esac
20297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20298
20299
20300   case $ac_mode in
20301   :F)
20302   #
20303   # CONFIG_FILE
20304   #
20305
20306   case $INSTALL in
20307   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20308   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20309   esac
20310   ac_MKDIR_P=$MKDIR_P
20311   case $MKDIR_P in
20312   [\\/$]* | ?:[\\/]* ) ;;
20313   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20314   esac
20315 _ACEOF
20316
20317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20318 # If the template does not know about datarootdir, expand it.
20319 # FIXME: This hack should be removed a few years after 2.60.
20320 ac_datarootdir_hack=; ac_datarootdir_seen=
20321 ac_sed_dataroot='
20322 /datarootdir/ {
20323   p
20324   q
20325 }
20326 /@datadir@/p
20327 /@docdir@/p
20328 /@infodir@/p
20329 /@localedir@/p
20330 /@mandir@/p'
20331 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20332 *datarootdir*) ac_datarootdir_seen=yes;;
20333 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20334   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20335 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20336 _ACEOF
20337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20338   ac_datarootdir_hack='
20339   s&@datadir@&$datadir&g
20340   s&@docdir@&$docdir&g
20341   s&@infodir@&$infodir&g
20342   s&@localedir@&$localedir&g
20343   s&@mandir@&$mandir&g
20344   s&\\\${datarootdir}&$datarootdir&g' ;;
20345 esac
20346 _ACEOF
20347
20348 # Neutralize VPATH when `$srcdir' = `.'.
20349 # Shell code in configure.ac might set extrasub.
20350 # FIXME: do we really want to maintain this feature?
20351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20352 ac_sed_extra="$ac_vpsub
20353 $extrasub
20354 _ACEOF
20355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20356 :t
20357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20358 s|@configure_input@|$ac_sed_conf_input|;t t
20359 s&@top_builddir@&$ac_top_builddir_sub&;t t
20360 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20361 s&@srcdir@&$ac_srcdir&;t t
20362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20363 s&@top_srcdir@&$ac_top_srcdir&;t t
20364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20365 s&@builddir@&$ac_builddir&;t t
20366 s&@abs_builddir@&$ac_abs_builddir&;t t
20367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20368 s&@INSTALL@&$ac_INSTALL&;t t
20369 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20370 $ac_datarootdir_hack
20371 "
20372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20373   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20374
20375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20376   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20377   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20378       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20379   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20380 which seems to be undefined.  Please make sure it is defined" >&5
20381 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20382 which seems to be undefined.  Please make sure it is defined" >&2;}
20383
20384   rm -f "$ac_tmp/stdin"
20385   case $ac_file in
20386   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20387   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20388   esac \
20389   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20390  ;;
20391   :H)
20392   #
20393   # CONFIG_HEADER
20394   #
20395   if test x"$ac_file" != x-; then
20396     {
20397       $as_echo "/* $configure_input  */" \
20398       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20399     } >"$ac_tmp/config.h" \
20400       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20401     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20402       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20403 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20404     else
20405       rm -f "$ac_file"
20406       mv "$ac_tmp/config.h" "$ac_file" \
20407         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20408     fi
20409   else
20410     $as_echo "/* $configure_input  */" \
20411       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20412       || as_fn_error $? "could not create -" "$LINENO" 5
20413   fi
20414 # Compute "$ac_file"'s index in $config_headers.
20415 _am_arg="$ac_file"
20416 _am_stamp_count=1
20417 for _am_header in $config_headers :; do
20418   case $_am_header in
20419     $_am_arg | $_am_arg:* )
20420       break ;;
20421     * )
20422       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20423   esac
20424 done
20425 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20426 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20427          X"$_am_arg" : 'X\(//\)[^/]' \| \
20428          X"$_am_arg" : 'X\(//\)$' \| \
20429          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20430 $as_echo X"$_am_arg" |
20431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20432             s//\1/
20433             q
20434           }
20435           /^X\(\/\/\)[^/].*/{
20436             s//\1/
20437             q
20438           }
20439           /^X\(\/\/\)$/{
20440             s//\1/
20441             q
20442           }
20443           /^X\(\/\).*/{
20444             s//\1/
20445             q
20446           }
20447           s/.*/./; q'`/stamp-h$_am_stamp_count
20448  ;;
20449
20450   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20451 $as_echo "$as_me: executing $ac_file commands" >&6;}
20452  ;;
20453   esac
20454
20455
20456   case $ac_file$ac_mode in
20457     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20458   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20459   # are listed without --file.  Let's play safe and only enable the eval
20460   # if we detect the quoting.
20461   case $CONFIG_FILES in
20462   *\'*) eval set x "$CONFIG_FILES" ;;
20463   *)   set x $CONFIG_FILES ;;
20464   esac
20465   shift
20466   for mf
20467   do
20468     # Strip MF so we end up with the name of the file.
20469     mf=`echo "$mf" | sed -e 's/:.*$//'`
20470     # Check whether this is an Automake generated Makefile or not.
20471     # We used to match only the files named `Makefile.in', but
20472     # some people rename them; so instead we look at the file content.
20473     # Grep'ing the first line is not enough: some people post-process
20474     # each Makefile.in and add a new line on top of each file to say so.
20475     # Grep'ing the whole file is not good either: AIX grep has a line
20476     # limit of 2048, but all sed's we know have understand at least 4000.
20477     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20478       dirpart=`$as_dirname -- "$mf" ||
20479 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20480          X"$mf" : 'X\(//\)[^/]' \| \
20481          X"$mf" : 'X\(//\)$' \| \
20482          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20483 $as_echo X"$mf" |
20484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20485             s//\1/
20486             q
20487           }
20488           /^X\(\/\/\)[^/].*/{
20489             s//\1/
20490             q
20491           }
20492           /^X\(\/\/\)$/{
20493             s//\1/
20494             q
20495           }
20496           /^X\(\/\).*/{
20497             s//\1/
20498             q
20499           }
20500           s/.*/./; q'`
20501     else
20502       continue
20503     fi
20504     # Extract the definition of DEPDIR, am__include, and am__quote
20505     # from the Makefile without running `make'.
20506     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20507     test -z "$DEPDIR" && continue
20508     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20509     test -z "am__include" && continue
20510     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20511     # When using ansi2knr, U may be empty or an underscore; expand it
20512     U=`sed -n 's/^U = //p' < "$mf"`
20513     # Find all dependency output files, they are included files with
20514     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20515     # simplest approach to changing $(DEPDIR) to its actual value in the
20516     # expansion.
20517     for file in `sed -n "
20518       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20519          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20520       # Make sure the directory exists.
20521       test -f "$dirpart/$file" && continue
20522       fdir=`$as_dirname -- "$file" ||
20523 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20524          X"$file" : 'X\(//\)[^/]' \| \
20525          X"$file" : 'X\(//\)$' \| \
20526          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20527 $as_echo X"$file" |
20528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20529             s//\1/
20530             q
20531           }
20532           /^X\(\/\/\)[^/].*/{
20533             s//\1/
20534             q
20535           }
20536           /^X\(\/\/\)$/{
20537             s//\1/
20538             q
20539           }
20540           /^X\(\/\).*/{
20541             s//\1/
20542             q
20543           }
20544           s/.*/./; q'`
20545       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20546       # echo "creating $dirpart/$file"
20547       echo '# dummy' > "$dirpart/$file"
20548     done
20549   done
20550 }
20551  ;;
20552     "libtool":C)
20553
20554     # See if we are running on zsh, and set the options which allow our
20555     # commands through without removal of \ escapes.
20556     if test -n "${ZSH_VERSION+set}" ; then
20557       setopt NO_GLOB_SUBST
20558     fi
20559
20560     cfgfile="${ofile}T"
20561     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20562     $RM "$cfgfile"
20563
20564     cat <<_LT_EOF >> "$cfgfile"
20565 #! $SHELL
20566
20567 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20568 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20570 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20571 #
20572 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20573 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20574 #                 Foundation, Inc.
20575 #   Written by Gordon Matzigkeit, 1996
20576 #
20577 #   This file is part of GNU Libtool.
20578 #
20579 # GNU Libtool is free software; you can redistribute it and/or
20580 # modify it under the terms of the GNU General Public License as
20581 # published by the Free Software Foundation; either version 2 of
20582 # the License, or (at your option) any later version.
20583 #
20584 # As a special exception to the GNU General Public License,
20585 # if you distribute this file as part of a program or library that
20586 # is built using GNU Libtool, you may include this file under the
20587 # same distribution terms that you use for the rest of that program.
20588 #
20589 # GNU Libtool is distributed in the hope that it will be useful,
20590 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20591 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20592 # GNU General Public License for more details.
20593 #
20594 # You should have received a copy of the GNU General Public License
20595 # along with GNU Libtool; see the file COPYING.  If not, a copy
20596 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20597 # obtained by writing to the Free Software Foundation, Inc.,
20598 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20599
20600
20601 # The names of the tagged configurations supported by this script.
20602 available_tags=""
20603
20604 # ### BEGIN LIBTOOL CONFIG
20605
20606 # Which release of libtool.m4 was used?
20607 macro_version=$macro_version
20608 macro_revision=$macro_revision
20609
20610 # Whether or not to build shared libraries.
20611 build_libtool_libs=$enable_shared
20612
20613 # Whether or not to build static libraries.
20614 build_old_libs=$enable_static
20615
20616 # What type of objects to build.
20617 pic_mode=$pic_mode
20618
20619 # Whether or not to optimize for fast installation.
20620 fast_install=$enable_fast_install
20621
20622 # Shell to use when invoking shell scripts.
20623 SHELL=$lt_SHELL
20624
20625 # An echo program that protects backslashes.
20626 ECHO=$lt_ECHO
20627
20628 # The PATH separator for the build system.
20629 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20630
20631 # The host system.
20632 host_alias=$host_alias
20633 host=$host
20634 host_os=$host_os
20635
20636 # The build system.
20637 build_alias=$build_alias
20638 build=$build
20639 build_os=$build_os
20640
20641 # A sed program that does not truncate output.
20642 SED=$lt_SED
20643
20644 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20645 Xsed="\$SED -e 1s/^X//"
20646
20647 # A grep program that handles long lines.
20648 GREP=$lt_GREP
20649
20650 # An ERE matcher.
20651 EGREP=$lt_EGREP
20652
20653 # A literal string matcher.
20654 FGREP=$lt_FGREP
20655
20656 # A BSD- or MS-compatible name lister.
20657 NM=$lt_NM
20658
20659 # Whether we need soft or hard links.
20660 LN_S=$lt_LN_S
20661
20662 # What is the maximum length of a command?
20663 max_cmd_len=$max_cmd_len
20664
20665 # Object file suffix (normally "o").
20666 objext=$ac_objext
20667
20668 # Executable file suffix (normally "").
20669 exeext=$exeext
20670
20671 # whether the shell understands "unset".
20672 lt_unset=$lt_unset
20673
20674 # turn spaces into newlines.
20675 SP2NL=$lt_lt_SP2NL
20676
20677 # turn newlines into spaces.
20678 NL2SP=$lt_lt_NL2SP
20679
20680 # convert \$build file names to \$host format.
20681 to_host_file_cmd=$lt_cv_to_host_file_cmd
20682
20683 # convert \$build files to toolchain format.
20684 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20685
20686 # An object symbol dumper.
20687 OBJDUMP=$lt_OBJDUMP
20688
20689 # Method to check whether dependent libraries are shared objects.
20690 deplibs_check_method=$lt_deplibs_check_method
20691
20692 # Command to use when deplibs_check_method = "file_magic".
20693 file_magic_cmd=$lt_file_magic_cmd
20694
20695 # How to find potential files when deplibs_check_method = "file_magic".
20696 file_magic_glob=$lt_file_magic_glob
20697
20698 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20699 want_nocaseglob=$lt_want_nocaseglob
20700
20701 # DLL creation program.
20702 DLLTOOL=$lt_DLLTOOL
20703
20704 # Command to associate shared and link libraries.
20705 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20706
20707 # The archiver.
20708 AR=$lt_AR
20709
20710 # Flags to create an archive.
20711 AR_FLAGS=$lt_AR_FLAGS
20712
20713 # How to feed a file listing to the archiver.
20714 archiver_list_spec=$lt_archiver_list_spec
20715
20716 # A symbol stripping program.
20717 STRIP=$lt_STRIP
20718
20719 # Commands used to install an old-style archive.
20720 RANLIB=$lt_RANLIB
20721 old_postinstall_cmds=$lt_old_postinstall_cmds
20722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20723
20724 # Whether to use a lock for old archive extraction.
20725 lock_old_archive_extraction=$lock_old_archive_extraction
20726
20727 # A C compiler.
20728 LTCC=$lt_CC
20729
20730 # LTCC compiler flags.
20731 LTCFLAGS=$lt_CFLAGS
20732
20733 # Take the output of nm and produce a listing of raw symbols and C names.
20734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20735
20736 # Transform the output of nm in a proper C declaration.
20737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20738
20739 # Transform the output of nm in a C name address pair.
20740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20741
20742 # Transform the output of nm in a C name address pair when lib prefix is needed.
20743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20744
20745 # Specify filename containing input files for \$NM.
20746 nm_file_list_spec=$lt_nm_file_list_spec
20747
20748 # The root where to search for dependent libraries,and in which our libraries should be installed.
20749 lt_sysroot=$lt_sysroot
20750
20751 # The name of the directory that contains temporary libtool files.
20752 objdir=$objdir
20753
20754 # Used to examine libraries when file_magic_cmd begins with "file".
20755 MAGIC_CMD=$MAGIC_CMD
20756
20757 # Must we lock files when doing compilation?
20758 need_locks=$lt_need_locks
20759
20760 # Manifest tool.
20761 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20762
20763 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20764 DSYMUTIL=$lt_DSYMUTIL
20765
20766 # Tool to change global to local symbols on Mac OS X.
20767 NMEDIT=$lt_NMEDIT
20768
20769 # Tool to manipulate fat objects and archives on Mac OS X.
20770 LIPO=$lt_LIPO
20771
20772 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20773 OTOOL=$lt_OTOOL
20774
20775 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20776 OTOOL64=$lt_OTOOL64
20777
20778 # Old archive suffix (normally "a").
20779 libext=$libext
20780
20781 # Shared library suffix (normally ".so").
20782 shrext_cmds=$lt_shrext_cmds
20783
20784 # The commands to extract the exported symbol list from a shared archive.
20785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20786
20787 # Variables whose values should be saved in libtool wrapper scripts and
20788 # restored at link time.
20789 variables_saved_for_relink=$lt_variables_saved_for_relink
20790
20791 # Do we need the "lib" prefix for modules?
20792 need_lib_prefix=$need_lib_prefix
20793
20794 # Do we need a version for libraries?
20795 need_version=$need_version
20796
20797 # Library versioning type.
20798 version_type=$version_type
20799
20800 # Shared library runtime path variable.
20801 runpath_var=$runpath_var
20802
20803 # Shared library path variable.
20804 shlibpath_var=$shlibpath_var
20805
20806 # Is shlibpath searched before the hard-coded library search path?
20807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20808
20809 # Format of library name prefix.
20810 libname_spec=$lt_libname_spec
20811
20812 # List of archive names.  First name is the real one, the rest are links.
20813 # The last name is the one that the linker finds with -lNAME
20814 library_names_spec=$lt_library_names_spec
20815
20816 # The coded name of the library, if different from the real name.
20817 soname_spec=$lt_soname_spec
20818
20819 # Permission mode override for installation of shared libraries.
20820 install_override_mode=$lt_install_override_mode
20821
20822 # Command to use after installation of a shared archive.
20823 postinstall_cmds=$lt_postinstall_cmds
20824
20825 # Command to use after uninstallation of a shared archive.
20826 postuninstall_cmds=$lt_postuninstall_cmds
20827
20828 # Commands used to finish a libtool library installation in a directory.
20829 finish_cmds=$lt_finish_cmds
20830
20831 # As "finish_cmds", except a single script fragment to be evaled but
20832 # not shown.
20833 finish_eval=$lt_finish_eval
20834
20835 # Whether we should hardcode library paths into libraries.
20836 hardcode_into_libs=$hardcode_into_libs
20837
20838 # Compile-time system search path for libraries.
20839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20840
20841 # Run-time system search path for libraries.
20842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20843
20844 # Whether dlopen is supported.
20845 dlopen_support=$enable_dlopen
20846
20847 # Whether dlopen of programs is supported.
20848 dlopen_self=$enable_dlopen_self
20849
20850 # Whether dlopen of statically linked programs is supported.
20851 dlopen_self_static=$enable_dlopen_self_static
20852
20853 # Commands to strip libraries.
20854 old_striplib=$lt_old_striplib
20855 striplib=$lt_striplib
20856
20857
20858 # The linker used to build libraries.
20859 LD=$lt_LD
20860
20861 # How to create reloadable object files.
20862 reload_flag=$lt_reload_flag
20863 reload_cmds=$lt_reload_cmds
20864
20865 # Commands used to build an old-style archive.
20866 old_archive_cmds=$lt_old_archive_cmds
20867
20868 # A language specific compiler.
20869 CC=$lt_compiler
20870
20871 # Is the compiler the GNU compiler?
20872 with_gcc=$GCC
20873
20874 # Compiler flag to turn off builtin functions.
20875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20876
20877 # Additional compiler flags for building library objects.
20878 pic_flag=$lt_lt_prog_compiler_pic
20879
20880 # How to pass a linker flag through the compiler.
20881 wl=$lt_lt_prog_compiler_wl
20882
20883 # Compiler flag to prevent dynamic linking.
20884 link_static_flag=$lt_lt_prog_compiler_static
20885
20886 # Does compiler simultaneously support -c and -o options?
20887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20888
20889 # Whether or not to add -lc for building shared libraries.
20890 build_libtool_need_lc=$archive_cmds_need_lc
20891
20892 # Whether or not to disallow shared libs when runtime libs are static.
20893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20894
20895 # Compiler flag to allow reflexive dlopens.
20896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20897
20898 # Compiler flag to generate shared objects directly from archives.
20899 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20900
20901 # Whether the compiler copes with passing no objects directly.
20902 compiler_needs_object=$lt_compiler_needs_object
20903
20904 # Create an old-style archive from a shared archive.
20905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20906
20907 # Create a temporary old-style archive to link instead of a shared archive.
20908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20909
20910 # Commands used to build a shared archive.
20911 archive_cmds=$lt_archive_cmds
20912 archive_expsym_cmds=$lt_archive_expsym_cmds
20913
20914 # Commands used to build a loadable module if different from building
20915 # a shared archive.
20916 module_cmds=$lt_module_cmds
20917 module_expsym_cmds=$lt_module_expsym_cmds
20918
20919 # Whether we are building with GNU ld or not.
20920 with_gnu_ld=$lt_with_gnu_ld
20921
20922 # Flag that allows shared libraries with undefined symbols to be built.
20923 allow_undefined_flag=$lt_allow_undefined_flag
20924
20925 # Flag that enforces no undefined symbols.
20926 no_undefined_flag=$lt_no_undefined_flag
20927
20928 # Flag to hardcode \$libdir into a binary during linking.
20929 # This must work even if \$libdir does not exist
20930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20931
20932 # Whether we need a single "-rpath" flag with a separated argument.
20933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20934
20935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20936 # DIR into the resulting binary.
20937 hardcode_direct=$hardcode_direct
20938
20939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20940 # DIR into the resulting binary and the resulting library dependency is
20941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20942 # library is relocated.
20943 hardcode_direct_absolute=$hardcode_direct_absolute
20944
20945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20946 # into the resulting binary.
20947 hardcode_minus_L=$hardcode_minus_L
20948
20949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20950 # into the resulting binary.
20951 hardcode_shlibpath_var=$hardcode_shlibpath_var
20952
20953 # Set to "yes" if building a shared library automatically hardcodes DIR
20954 # into the library and all subsequent libraries and executables linked
20955 # against it.
20956 hardcode_automatic=$hardcode_automatic
20957
20958 # Set to yes if linker adds runtime paths of dependent libraries
20959 # to runtime path list.
20960 inherit_rpath=$inherit_rpath
20961
20962 # Whether libtool must link a program against all its dependency libraries.
20963 link_all_deplibs=$link_all_deplibs
20964
20965 # Set to "yes" if exported symbols are required.
20966 always_export_symbols=$always_export_symbols
20967
20968 # The commands to list exported symbols.
20969 export_symbols_cmds=$lt_export_symbols_cmds
20970
20971 # Symbols that should not be listed in the preloaded symbols.
20972 exclude_expsyms=$lt_exclude_expsyms
20973
20974 # Symbols that must always be exported.
20975 include_expsyms=$lt_include_expsyms
20976
20977 # Commands necessary for linking programs (against libraries) with templates.
20978 prelink_cmds=$lt_prelink_cmds
20979
20980 # Commands necessary for finishing linking programs.
20981 postlink_cmds=$lt_postlink_cmds
20982
20983 # Specify filename containing input files.
20984 file_list_spec=$lt_file_list_spec
20985
20986 # How to hardcode a shared library path into an executable.
20987 hardcode_action=$hardcode_action
20988
20989 # ### END LIBTOOL CONFIG
20990
20991 _LT_EOF
20992
20993   case $host_os in
20994   aix3*)
20995     cat <<\_LT_EOF >> "$cfgfile"
20996 # AIX sometimes has problems with the GCC collect2 program.  For some
20997 # reason, if we set the COLLECT_NAMES environment variable, the problems
20998 # vanish in a puff of smoke.
20999 if test "X${COLLECT_NAMES+set}" != Xset; then
21000   COLLECT_NAMES=
21001   export COLLECT_NAMES
21002 fi
21003 _LT_EOF
21004     ;;
21005   esac
21006
21007
21008 ltmain="$ac_aux_dir/ltmain.sh"
21009
21010
21011   # We use sed instead of cat because bash on DJGPP gets confused if
21012   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21013   # text mode, it properly converts lines to CR/LF.  This bash problem
21014   # is reportedly fixed, but why not run on old versions too?
21015   sed '$q' "$ltmain" >> "$cfgfile" \
21016      || (rm -f "$cfgfile"; exit 1)
21017
21018   if test x"$xsi_shell" = xyes; then
21019   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21020 func_dirname ()\
21021 {\
21022 \    case ${1} in\
21023 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21024 \      *  ) func_dirname_result="${3}" ;;\
21025 \    esac\
21026 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21027   && mv -f "$cfgfile.tmp" "$cfgfile" \
21028     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21029 test 0 -eq $? || _lt_function_replace_fail=:
21030
21031
21032   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21033 func_basename ()\
21034 {\
21035 \    func_basename_result="${1##*/}"\
21036 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21037   && mv -f "$cfgfile.tmp" "$cfgfile" \
21038     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21039 test 0 -eq $? || _lt_function_replace_fail=:
21040
21041
21042   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21043 func_dirname_and_basename ()\
21044 {\
21045 \    case ${1} in\
21046 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21047 \      *  ) func_dirname_result="${3}" ;;\
21048 \    esac\
21049 \    func_basename_result="${1##*/}"\
21050 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21051   && mv -f "$cfgfile.tmp" "$cfgfile" \
21052     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21053 test 0 -eq $? || _lt_function_replace_fail=:
21054
21055
21056   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21057 func_stripname ()\
21058 {\
21059 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21060 \    # positional parameters, so assign one to ordinary parameter first.\
21061 \    func_stripname_result=${3}\
21062 \    func_stripname_result=${func_stripname_result#"${1}"}\
21063 \    func_stripname_result=${func_stripname_result%"${2}"}\
21064 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21065   && mv -f "$cfgfile.tmp" "$cfgfile" \
21066     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21067 test 0 -eq $? || _lt_function_replace_fail=:
21068
21069
21070   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21071 func_split_long_opt ()\
21072 {\
21073 \    func_split_long_opt_name=${1%%=*}\
21074 \    func_split_long_opt_arg=${1#*=}\
21075 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21076   && mv -f "$cfgfile.tmp" "$cfgfile" \
21077     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21078 test 0 -eq $? || _lt_function_replace_fail=:
21079
21080
21081   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21082 func_split_short_opt ()\
21083 {\
21084 \    func_split_short_opt_arg=${1#??}\
21085 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21086 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21087   && mv -f "$cfgfile.tmp" "$cfgfile" \
21088     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21089 test 0 -eq $? || _lt_function_replace_fail=:
21090
21091
21092   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21093 func_lo2o ()\
21094 {\
21095 \    case ${1} in\
21096 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21097 \      *)    func_lo2o_result=${1} ;;\
21098 \    esac\
21099 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21100   && mv -f "$cfgfile.tmp" "$cfgfile" \
21101     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21102 test 0 -eq $? || _lt_function_replace_fail=:
21103
21104
21105   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21106 func_xform ()\
21107 {\
21108     func_xform_result=${1%.*}.lo\
21109 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21110   && mv -f "$cfgfile.tmp" "$cfgfile" \
21111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21112 test 0 -eq $? || _lt_function_replace_fail=:
21113
21114
21115   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21116 func_arith ()\
21117 {\
21118     func_arith_result=$(( $* ))\
21119 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21120   && mv -f "$cfgfile.tmp" "$cfgfile" \
21121     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21122 test 0 -eq $? || _lt_function_replace_fail=:
21123
21124
21125   sed -e '/^func_len ()$/,/^} # func_len /c\
21126 func_len ()\
21127 {\
21128     func_len_result=${#1}\
21129 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21130   && mv -f "$cfgfile.tmp" "$cfgfile" \
21131     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21132 test 0 -eq $? || _lt_function_replace_fail=:
21133
21134 fi
21135
21136 if test x"$lt_shell_append" = xyes; then
21137   sed -e '/^func_append ()$/,/^} # func_append /c\
21138 func_append ()\
21139 {\
21140     eval "${1}+=\\${2}"\
21141 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21142   && mv -f "$cfgfile.tmp" "$cfgfile" \
21143     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21144 test 0 -eq $? || _lt_function_replace_fail=:
21145
21146
21147   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21148 func_append_quoted ()\
21149 {\
21150 \    func_quote_for_eval "${2}"\
21151 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21152 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21153   && mv -f "$cfgfile.tmp" "$cfgfile" \
21154     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21155 test 0 -eq $? || _lt_function_replace_fail=:
21156
21157
21158   # Save a `func_append' function call where possible by direct use of '+='
21159   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21160     && mv -f "$cfgfile.tmp" "$cfgfile" \
21161       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21162   test 0 -eq $? || _lt_function_replace_fail=:
21163 else
21164   # Save a `func_append' function call even when '+=' is not available
21165   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21166     && mv -f "$cfgfile.tmp" "$cfgfile" \
21167       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21168   test 0 -eq $? || _lt_function_replace_fail=:
21169 fi
21170
21171 if test x"$_lt_function_replace_fail" = x":"; then
21172   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21173 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21174 fi
21175
21176
21177    mv -f "$cfgfile" "$ofile" ||
21178     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21179   chmod +x "$ofile"
21180
21181  ;;
21182     "libtool_hack":C)
21183         cp -f libtool libtool_
21184         test -z "$SED" && SED=sed
21185         $SED '1,/^soname_spec/{
21186 /^soname_spec/i\
21187 # X.Org hack to match monolithic Xaw SONAME\
21188 xorglibxawname="libXaw"
21189 /^soname_spec/s/libname/xorglibxawname/
21190 }' libtool_ > libtool
21191         rm -f libtool_
21192  ;;
21193
21194   esac
21195 done # for ac_tag
21196
21197
21198 as_fn_exit 0
21199 _ACEOF
21200 ac_clean_files=$ac_clean_files_save
21201
21202 test $ac_write_fail = 0 ||
21203   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21204
21205
21206 # configure is writing to config.log, and then calls config.status.
21207 # config.status does its own redirection, appending to config.log.
21208 # Unfortunately, on DOS this fails, as config.log is still kept open
21209 # by configure, so config.status won't be able to write to it; its
21210 # output is simply discarded.  So we exec the FD to /dev/null,
21211 # effectively closing config.log, so it can be properly (re)opened and
21212 # appended to by config.status.  When coming back to configure, we
21213 # need to make the FD available again.
21214 if test "$no_create" != yes; then
21215   ac_cs_success=:
21216   ac_config_status_args=
21217   test "$silent" = yes &&
21218     ac_config_status_args="$ac_config_status_args --quiet"
21219   exec 5>/dev/null
21220   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21221   exec 5>>config.log
21222   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21223   # would make configure fail if this is the last instruction.
21224   $ac_cs_success || as_fn_exit 1
21225 fi
21226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21227   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21229 fi
21230