configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXinerama 1.1.2.
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 (at] 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
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXinerama'
573 PACKAGE_TARNAME='libXinerama'
574 PACKAGE_VERSION='1.1.2'
575 PACKAGE_STRING='libXinerama 1.1.2'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 LINT_FALSE
621 LINT_TRUE
622 LINT_FLAGS
623 LINT
624 XINERAMA_LIBS
625 XINERAMA_CFLAGS
626 XTMALLOC_ZERO_CFLAGS
627 XMALLOC_ZERO_CFLAGS
628 MALLOC_ZERO_CFLAGS
629 AM_BACKSLASH
630 AM_DEFAULT_VERBOSITY
631 MAN_SUBSTS
632 XORG_MAN_PAGE
633 ADMIN_MAN_DIR
634 DRIVER_MAN_DIR
635 MISC_MAN_DIR
636 FILE_MAN_DIR
637 LIB_MAN_DIR
638 APP_MAN_DIR
639 ADMIN_MAN_SUFFIX
640 DRIVER_MAN_SUFFIX
641 MISC_MAN_SUFFIX
642 FILE_MAN_SUFFIX
643 LIB_MAN_SUFFIX
644 APP_MAN_SUFFIX
645 INSTALL_CMD
646 PKG_CONFIG
647 CHANGELOG_CMD
648 STRICT_CFLAGS
649 CWARNFLAGS
650 BASE_CFLAGS
651 CPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 MAINT
698 MAINTAINER_MODE_FALSE
699 MAINTAINER_MODE_TRUE
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_maintainer_mode
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 enable_dependency_tracking
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_selective_werror
774 enable_strict_compilation
775 enable_silent_rules
776 enable_malloc0returnsnull
777 with_lint
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP
788 PKG_CONFIG
789 XINERAMA_CFLAGS
790 XINERAMA_LIBS
791 LINT
792 LINT_FLAGS'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1143
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1159
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1163
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1170
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1177
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1191
1192 *)
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 ;;
1199
1200 esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221 do
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249 If a cross compiler is detected then cross compile mode will be used" >&2
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1252 fi
1253 fi
1254
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258 test "$silent" = yes && exec 6>/dev/null
1259
1260
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\).*/{
1292 s//\1/
1293 q
1294 }
1295 s/.*/./; q'`
1296 srcdir=$ac_confdir
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 srcdir=..
1299 fi
1300 else
1301 ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
1335 \`configure' configures libXinerama 1.1.2 to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1388 _ACEOF
1389
1390 cat <<\_ACEOF
1391
1392 Program names:
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1401 fi
1402
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of libXinerama 1.1.2:";;
1406 esac
1407 cat <<\_ACEOF
1408
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --disable-selective-werror
1423 Turn off selective compiler errors. (default:
1424 enabled)
1425 --enable-strict-compilation
1426 Enable all warnings from compiler and make them
1427 errors (default: disabled)
1428 --enable-silent-rules less verbose build output (undo: `make V=1')
1429 --disable-silent-rules verbose build output (undo: `make V=0')
1430 --enable-malloc0returnsnull
1431 malloc(0) returns NULL (default: auto)
1432
1433 Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-sysroot=DIR Search for dependent libraries within DIR
1440 (or the compiler's sysroot if not specified).
1441 --with-lint Use a lint-style source code checker (default:
1442 disabled)
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CPP C preprocessor
1453 PKG_CONFIG path to pkg-config utility
1454 XINERAMA_CFLAGS
1455 C compiler flags for XINERAMA, overriding pkg-config
1456 XINERAMA_LIBS
1457 linker flags for XINERAMA, overriding pkg-config
1458 LINT Path to a lint-style command
1459 LINT_FLAGS Flags for the lint-style command
1460
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1463
1464 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1465 _ACEOF
1466 ac_status=$?
1467 fi
1468
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 libXinerama configure 1.1.2
1528 generated by GNU Autoconf 2.68
1529
1530 Copyright (C) 2010 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573 fi
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_compile
1578
1579 # ac_fn_c_try_link LINENO
1580 # -----------------------
1581 # Try to link conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_link ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext conftest$ac_exeext
1586 if { { ac_try="$ac_link"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_link") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest$ac_exeext && {
1605 test "$cross_compiling" = yes ||
1606 $as_test_x conftest$ac_exeext
1607 }; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1617 # interfere with the next link command; also delete a directory that is
1618 # left behind by Apple's compiler. We do this before executing the actions.
1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_link
1624
1625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626 # -------------------------------------------------------
1627 # Tests whether HEADER exists and can be compiled using the include files in
1628 # INCLUDES, setting the cache variable VAR accordingly.
1629 ac_fn_c_check_header_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1636 else
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1639 $4
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 eval "$3=yes"
1644 else
1645 eval "$3=no"
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 fi
1649 eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654 } # ac_fn_c_check_header_compile
1655
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687 fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_cpp
1692
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1697 ac_fn_c_try_run ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status
1728 fi
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_run
1734
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1745 else
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1756
1757 #ifdef __STDC__
1758 # include <limits.h>
1759 #else
1760 # include <assert.h>
1761 #endif
1762
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 ();
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main ()
1781 {
1782 return $2 ();
1783 ;
1784 return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_func
1801
1802 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1803 # ---------------------------------------------
1804 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1805 # accordingly.
1806 ac_fn_c_check_decl ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 as_decl_name=`echo $2|sed 's/ *(.*//'`
1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1812 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 $4
1819 int
1820 main ()
1821 {
1822 #ifndef $as_decl_name
1823 #ifdef __cplusplus
1824 (void) $as_decl_use;
1825 #else
1826 (void) $as_decl_name;
1827 #endif
1828 #endif
1829
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 eval "$3=yes"
1836 else
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_decl
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1850
1851 It was created by libXinerama $as_me 1.1.2, which was
1852 generated by GNU Autoconf 2.68. Invocation command line was
1853
1854 $ $0 $@
1855
1856 _ACEOF
1857 exec 5>>config.log
1858 {
1859 cat <<_ASUNAME
1860 ## --------- ##
1861 ## Platform. ##
1862 ## --------- ##
1863
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872
1873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880
1881 _ASUNAME
1882
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 $as_echo "PATH: $as_dir"
1889 done
1890 IFS=$as_save_IFS
1891
1892 } >&5
1893
1894 cat >&5 <<_ACEOF
1895
1896
1897 ## ----------- ##
1898 ## Core tests. ##
1899 ## ----------- ##
1900
1901 _ACEOF
1902
1903
1904 # Keep a trace of the command line.
1905 # Strip out --no-create and --no-recursion so they do not pile up.
1906 # Strip out --silent because we don't want to record it for future runs.
1907 # Also quote any args containing shell meta-characters.
1908 # Make two passes to allow for proper duplicate-argument suppression.
1909 ac_configure_args=
1910 ac_configure_args0=
1911 ac_configure_args1=
1912 ac_must_keep_next=false
1913 for ac_pass in 1 2
1914 do
1915 for ac_arg
1916 do
1917 case $ac_arg in
1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 | -silent | --silent | --silen | --sile | --sil)
1921 continue ;;
1922 *\'*)
1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 esac
1925 case $ac_pass in
1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927 2)
1928 as_fn_append ac_configure_args1 " '$ac_arg'"
1929 if test $ac_must_keep_next = true; then
1930 ac_must_keep_next=false # Got value, back to normal.
1931 else
1932 case $ac_arg in
1933 *=* | --config-cache | -C | -disable-* | --disable-* \
1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 | -with-* | --with-* | -without-* | --without-* | --x)
1937 case "$ac_configure_args0 " in
1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 esac
1940 ;;
1941 -* ) ac_must_keep_next=true ;;
1942 esac
1943 fi
1944 as_fn_append ac_configure_args " '$ac_arg'"
1945 ;;
1946 esac
1947 done
1948 done
1949 { ac_configure_args0=; unset ac_configure_args0;}
1950 { ac_configure_args1=; unset ac_configure_args1;}
1951
1952 # When interrupted or exit'd, cleanup temporary files, and complete
1953 # config.log. We remove comments because anyway the quotes in there
1954 # would cause problems or look ugly.
1955 # WARNING: Use '\'' to represent an apostrophe within the trap.
1956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 trap 'exit_status=$?
1958 # Save into config.log some information that might help in debugging.
1959 {
1960 echo
1961
1962 $as_echo "## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##"
1965 echo
1966 # The following way of writing the cache mishandles newlines in values,
1967 (
1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969 eval ac_val=\$$ac_var
1970 case $ac_val in #(
1971 *${as_nl}*)
1972 case $ac_var in #(
1973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975 esac
1976 case $ac_var in #(
1977 _ | IFS | as_nl) ;; #(
1978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979 *) { eval $ac_var=; unset $ac_var;} ;;
1980 esac ;;
1981 esac
1982 done
1983 (set) 2>&1 |
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1986 sed -n \
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989 ;; #(
1990 *)
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992 ;;
1993 esac |
1994 sort
1995 )
1996 echo
1997
1998 $as_echo "## ----------------- ##
1999 ## Output variables. ##
2000 ## ----------------- ##"
2001 echo
2002 for ac_var in $ac_subst_vars
2003 do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in
2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 esac
2008 $as_echo "$ac_var='\''$ac_val'\''"
2009 done | sort
2010 echo
2011
2012 if test -n "$ac_subst_files"; then
2013 $as_echo "## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##"
2016 echo
2017 for ac_var in $ac_subst_files
2018 do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in
2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 esac
2023 $as_echo "$ac_var='\''$ac_val'\''"
2024 done | sort
2025 echo
2026 fi
2027
2028 if test -s confdefs.h; then
2029 $as_echo "## ----------- ##
2030 ## confdefs.h. ##
2031 ## ----------- ##"
2032 echo
2033 cat confdefs.h
2034 echo
2035 fi
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2039 } >&5
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 exit $exit_status
2043 ' 0
2044 for ac_signal in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046 done
2047 ac_signal=0
2048
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2051
2052 $as_echo "/* confdefs.h */" > confdefs.h
2053
2054 # Predefined preprocessor variables.
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_URL "$PACKAGE_URL"
2078 _ACEOF
2079
2080
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer an explicitly selected file to automatically selected ones.
2083 ac_site_file1=NONE
2084 ac_site_file2=NONE
2085 if test -n "$CONFIG_SITE"; then
2086 # We do not want a PATH search for config.site.
2087 case $CONFIG_SITE in #((
2088 -*) ac_site_file1=./$CONFIG_SITE;;
2089 */*) ac_site_file1=$CONFIG_SITE;;
2090 *) ac_site_file1=./$CONFIG_SITE;;
2091 esac
2092 elif test "x$prefix" != xNONE; then
2093 ac_site_file1=$prefix/share/config.site
2094 ac_site_file2=$prefix/etc/config.site
2095 else
2096 ac_site_file1=$ac_default_prefix/share/config.site
2097 ac_site_file2=$ac_default_prefix/etc/config.site
2098 fi
2099 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2100 do
2101 test "x$ac_site_file" = xNONE && continue
2102 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2104 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2105 sed 's/^/| /' "$ac_site_file" >&5
2106 . "$ac_site_file" \
2107 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2109 as_fn_error $? "failed to load site script $ac_site_file
2110 See \`config.log' for more details" "$LINENO" 5; }
2111 fi
2112 done
2113
2114 if test -r "$cache_file"; then
2115 # Some versions of bash will fail to source /dev/null (special files
2116 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2117 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2119 $as_echo "$as_me: loading cache $cache_file" >&6;}
2120 case $cache_file in
2121 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2122 *) . "./$cache_file";;
2123 esac
2124 fi
2125 else
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2127 $as_echo "$as_me: creating cache $cache_file" >&6;}
2128 >$cache_file
2129 fi
2130
2131 # Check that the precious variables saved in the cache have kept the same
2132 # value.
2133 ac_cache_corrupted=false
2134 for ac_var in $ac_precious_vars; do
2135 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2136 eval ac_new_set=\$ac_env_${ac_var}_set
2137 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2138 eval ac_new_val=\$ac_env_${ac_var}_value
2139 case $ac_old_set,$ac_new_set in
2140 set,)
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2142 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2143 ac_cache_corrupted=: ;;
2144 ,set)
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2146 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2147 ac_cache_corrupted=: ;;
2148 ,);;
2149 *)
2150 if test "x$ac_old_val" != "x$ac_new_val"; then
2151 # differences in whitespace do not lead to failure.
2152 ac_old_val_w=`echo x $ac_old_val`
2153 ac_new_val_w=`echo x $ac_new_val`
2154 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2156 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2157 ac_cache_corrupted=:
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2160 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2161 eval $ac_var=\$ac_old_val
2162 fi
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2164 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2166 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2167 fi;;
2168 esac
2169 # Pass precious variables to config.status.
2170 if test "$ac_new_set" = set; then
2171 case $ac_new_val in
2172 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2173 *) ac_arg=$ac_var=$ac_new_val ;;
2174 esac
2175 case " $ac_configure_args " in
2176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2177 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2178 esac
2179 fi
2180 done
2181 if $ac_cache_corrupted; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2185 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187 fi
2188 ## -------------------- ##
2189 ## Main body of script. ##
2190 ## -------------------- ##
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197
2198
2199
2200 ac_config_headers="$ac_config_headers config.h"
2201
2202
2203 # Initialize Automake
2204 am__api_version='1.11'
2205
2206 ac_aux_dir=
2207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208 if test -f "$ac_dir/install-sh"; then
2209 ac_aux_dir=$ac_dir
2210 ac_install_sh="$ac_aux_dir/install-sh -c"
2211 break
2212 elif test -f "$ac_dir/install.sh"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/install.sh -c"
2215 break
2216 elif test -f "$ac_dir/shtool"; then
2217 ac_aux_dir=$ac_dir
2218 ac_install_sh="$ac_aux_dir/shtool install -c"
2219 break
2220 fi
2221 done
2222 if test -z "$ac_aux_dir"; then
2223 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224 fi
2225
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2233
2234
2235 # Find a good install program. We prefer a C program (faster),
2236 # so one script is as good as another. But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2241 # AIX /bin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 # Reject install programs that cannot install multiple files.
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2251 if test -z "$INSTALL"; then
2252 if ${ac_cv_path_install+:} false; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 # Account for people who put trailing slashes in PATH elements.
2261 case $as_dir/ in #((
2262 ./ | .// | /[cC]/* | \
2263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265 /usr/ucb/* ) ;;
2266 *)
2267 # OSF1 and SCO ODT 3.0 have their own names for install.
2268 # Don't use installbsd from OSF since it installs stuff as root
2269 # by default.
2270 for ac_prog in ginstall scoinst install; do
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2273 if test $ac_prog = install &&
2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # AIX install. It has an incompatible calling convention.
2276 :
2277 elif test $ac_prog = install &&
2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # program-specific install script used by HP pwplus--don't use.
2280 :
2281 else
2282 rm -rf conftest.one conftest.two conftest.dir
2283 echo one > conftest.one
2284 echo two > conftest.two
2285 mkdir conftest.dir
2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287 test -s conftest.one && test -s conftest.two &&
2288 test -s conftest.dir/conftest.one &&
2289 test -s conftest.dir/conftest.two
2290 then
2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292 break 3
2293 fi
2294 fi
2295 fi
2296 done
2297 done
2298 ;;
2299 esac
2300
2301 done
2302 IFS=$as_save_IFS
2303
2304 rm -rf conftest.one conftest.two conftest.dir
2305
2306 fi
2307 if test "${ac_cv_path_install+set}" = set; then
2308 INSTALL=$ac_cv_path_install
2309 else
2310 # As a last resort, use the slow shell script. Don't cache a
2311 # value for INSTALL within a source directory, because that will
2312 # break other packages using the cache if that directory is
2313 # removed, or if the value is a relative name.
2314 INSTALL=$ac_install_sh
2315 fi
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318 $as_echo "$INSTALL" >&6; }
2319
2320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321 # It thinks the first close brace ends the variable substitution.
2322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329 $as_echo_n "checking whether build environment is sane... " >&6; }
2330 # Just in case
2331 sleep 1
2332 echo timestamp > conftest.file
2333 # Reject unsafe characters in $srcdir or the absolute working directory
2334 # name. Accept space and tab only in the latter.
2335 am_lf='
2336 '
2337 case `pwd` in
2338 *[\\\"\#\$\&\'\`$am_lf]*)
2339 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2340 esac
2341 case $srcdir in
2342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2343 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2344 esac
2345
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments. Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2350 # directory).
2351 if (
2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353 if test "$*" = "X"; then
2354 # -L didn't work.
2355 set X `ls -t "$srcdir/configure" conftest.file`
2356 fi
2357 rm -f conftest.file
2358 if test "$*" != "X $srcdir/configure conftest.file" \
2359 && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361 # If neither matched, then we have a broken ls. This can happen
2362 # if, for instance, CONFIG_SHELL is bash and it inherits a
2363 # broken ls alias from the environment. This has actually
2364 # happened. Such a system could not be considered "sane".
2365 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2366 alias in your environment" "$LINENO" 5
2367 fi
2368
2369 test "$2" = conftest.file
2370 )
2371 then
2372 # Ok.
2373 :
2374 else
2375 as_fn_error $? "newly created file is older than distributed files!
2376 Check your system clock" "$LINENO" 5
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379 $as_echo "yes" >&6; }
2380 test "$program_prefix" != NONE &&
2381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $.
2386 # By default was `s,x,x', remove it if useless.
2387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389
2390 # expand $ac_aux_dir to an absolute path
2391 am_aux_dir=`cd $ac_aux_dir && pwd`
2392
2393 if test x"${MISSING+set}" != xset; then
2394 case $am_aux_dir in
2395 *\ * | *\ *)
2396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397 *)
2398 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399 esac
2400 fi
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403 am_missing_run="$MISSING --run "
2404 else
2405 am_missing_run=
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408 fi
2409
2410 if test x"${install_sh}" != xset; then
2411 case $am_aux_dir in
2412 *\ * | *\ *)
2413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414 *)
2415 install_sh="\${SHELL} $am_aux_dir/install-sh"
2416 esac
2417 fi
2418
2419 # Installed binaries are usually stripped using `strip' when the user
2420 # run `make install-strip'. However `strip' might not be the right
2421 # tool to use in cross-compilation environments, therefore Automake
2422 # will honor the `STRIP' environment variable to overrule this program.
2423 if test "$cross_compiling" != no; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_STRIP+:} false; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test -n "$STRIP"; then
2433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 STRIP=$ac_cv_prog_STRIP
2453 if test -n "$STRIP"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455 $as_echo "$STRIP" >&6; }
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461
2462 fi
2463 if test -z "$ac_cv_prog_STRIP"; then
2464 ac_ct_STRIP=$STRIP
2465 # Extract the first word of "strip", so it can be a program name with args.
2466 set dummy strip; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test -n "$ac_ct_STRIP"; then
2473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_ac_ct_STRIP="strip"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493 if test -n "$ac_ct_STRIP"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495 $as_echo "$ac_ct_STRIP" >&6; }
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501 if test "x$ac_ct_STRIP" = x; then
2502 STRIP=":"
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510 STRIP=$ac_ct_STRIP
2511 fi
2512 else
2513 STRIP="$ac_cv_prog_STRIP"
2514 fi
2515
2516 fi
2517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521 if test -z "$MKDIR_P"; then
2522 if ${ac_cv_path_mkdir+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_prog in mkdir gmkdir; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534 'mkdir (GNU coreutils) '* | \
2535 'mkdir (coreutils) '* | \
2536 'mkdir (fileutils) '4.1*)
2537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538 break 3;;
2539 esac
2540 done
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546
2547 test -d ./--version && rmdir ./--version
2548 if test "${ac_cv_path_mkdir+set}" = set; then
2549 MKDIR_P="$ac_cv_path_mkdir -p"
2550 else
2551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for MKDIR_P within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
2555 MKDIR_P="$ac_install_sh -d"
2556 fi
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559 $as_echo "$MKDIR_P" >&6; }
2560
2561 mkdir_p="$MKDIR_P"
2562 case $mkdir_p in
2563 [\\/$]* | ?:[\\/]*) ;;
2564 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565 esac
2566
2567 for ac_prog in gawk mawk nawk awk
2568 do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_AWK+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 AWK=$ac_cv_prog_AWK
2597 if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 test -n "$AWK" && break
2607 done
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611 set x ${MAKE-make}
2612 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 cat >conftest.make <<\_ACEOF
2617 SHELL = /bin/sh
2618 all:
2619 @echo '@@@%%%=$(MAKE)=@@@%%%'
2620 _ACEOF
2621 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2622 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623 *@@@%%%=?*=@@@%%%*)
2624 eval ac_cv_prog_make_${ac_make}_set=yes;;
2625 *)
2626 eval ac_cv_prog_make_${ac_make}_set=no;;
2627 esac
2628 rm -f conftest.make
2629 fi
2630 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633 SET_MAKE=
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 SET_MAKE="MAKE=${MAKE-make}"
2638 fi
2639
2640 rm -rf .tst 2>/dev/null
2641 mkdir .tst 2>/dev/null
2642 if test -d .tst; then
2643 am__leading_dot=.
2644 else
2645 am__leading_dot=_
2646 fi
2647 rmdir .tst 2>/dev/null
2648
2649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651 # is not polluted with repeated "-I."
2652 am__isrc=' -I$(srcdir)'
2653 # test to see if srcdir already configured
2654 if test -f $srcdir/config.status; then
2655 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2656 fi
2657 fi
2658
2659 # test whether we have cygpath
2660 if test -z "$CYGPATH_W"; then
2661 if (cygpath --version) >/dev/null 2>/dev/null; then
2662 CYGPATH_W='cygpath -w'
2663 else
2664 CYGPATH_W=echo
2665 fi
2666 fi
2667
2668
2669 # Define the identity of the package.
2670 PACKAGE='libXinerama'
2671 VERSION='1.1.2'
2672
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE "$PACKAGE"
2676 _ACEOF
2677
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define VERSION "$VERSION"
2681 _ACEOF
2682
2683 # Some tools Automake needs.
2684
2685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
2699 # We need awk for the "check" target. The system "awk" is bad on
2700 # some platforms.
2701 # Always define AMTAR for backward compatibility.
2702
2703 AMTAR=${AMTAR-"${am_missing_run}tar"}
2704
2705 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2706
2707
2708
2709
2710
2711
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2713 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2714 # Check whether --enable-maintainer-mode was given.
2715 if test "${enable_maintainer_mode+set}" = set; then :
2716 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2717 else
2718 USE_MAINTAINER_MODE=no
2719 fi
2720
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2722 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2723 if test $USE_MAINTAINER_MODE = yes; then
2724 MAINTAINER_MODE_TRUE=
2725 MAINTAINER_MODE_FALSE='#'
2726 else
2727 MAINTAINER_MODE_TRUE='#'
2728 MAINTAINER_MODE_FALSE=
2729 fi
2730
2731 MAINT=$MAINTAINER_MODE_TRUE
2732
2733
2734
2735 # Initialize libtool
2736 case `pwd` in
2737 *\ * | *\ *)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2739 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2740 esac
2741
2742
2743
2744 macro_version='2.4'
2745 macro_revision='1.3293'
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759 ltmain="$ac_aux_dir/ltmain.sh"
2760
2761 # Make sure we can run config.sub.
2762 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766 $as_echo_n "checking build system type... " >&6; }
2767 if ${ac_cv_build+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 ac_build_alias=$build_alias
2771 test "x$ac_build_alias" = x &&
2772 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773 test "x$ac_build_alias" = x &&
2774 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780 $as_echo "$ac_cv_build" >&6; }
2781 case $ac_cv_build in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784 esac
2785 build=$ac_cv_build
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_build
2788 shift
2789 build_cpu=$1
2790 build_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 build_os=$*
2795 IFS=$ac_save_IFS
2796 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800 $as_echo_n "checking host system type... " >&6; }
2801 if ${ac_cv_host+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test "x$host_alias" = x; then
2805 ac_cv_host=$ac_cv_build
2806 else
2807 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809 fi
2810
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813 $as_echo "$ac_cv_host" >&6; }
2814 case $ac_cv_host in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817 esac
2818 host=$ac_cv_host
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_host
2821 shift
2822 host_cpu=$1
2823 host_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 host_os=$*
2828 IFS=$ac_save_IFS
2829 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2830
2831
2832 # Backslashify metacharacters that are still active within
2833 # double-quoted strings.
2834 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2835
2836 # Same as above, but do not quote variable references.
2837 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2838
2839 # Sed substitution to delay expansion of an escaped shell variable in a
2840 # double_quote_subst'ed string.
2841 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2842
2843 # Sed substitution to delay expansion of an escaped single quote.
2844 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2845
2846 # Sed substitution to avoid accidental globbing in evaled expressions
2847 no_glob_subst='s/\*/\\\*/g'
2848
2849 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2850 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2851 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2852
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2854 $as_echo_n "checking how to print strings... " >&6; }
2855 # Test print first, because it will be a builtin if present.
2856 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2857 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2858 ECHO='print -r --'
2859 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2860 ECHO='printf %s\n'
2861 else
2862 # Use this function as a fallback that always works.
2863 func_fallback_echo ()
2864 {
2865 eval 'cat <<_LTECHO_EOF
2866 $1
2867 _LTECHO_EOF'
2868 }
2869 ECHO='func_fallback_echo'
2870 fi
2871
2872 # func_echo_all arg...
2873 # Invoke $ECHO with all args, space-separated.
2874 func_echo_all ()
2875 {
2876 $ECHO ""
2877 }
2878
2879 case "$ECHO" in
2880 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2881 $as_echo "printf" >&6; } ;;
2882 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2883 $as_echo "print -r" >&6; } ;;
2884 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2885 $as_echo "cat" >&6; } ;;
2886 esac
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901 DEPDIR="${am__leading_dot}deps"
2902
2903 ac_config_commands="$ac_config_commands depfiles"
2904
2905
2906 am_make=${MAKE-make}
2907 cat > confinc << 'END'
2908 am__doit:
2909 @echo this is the am__doit target
2910 .PHONY: am__doit
2911 END
2912 # If we don't find an include directive, just comment out the code.
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2914 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2915 am__include="#"
2916 am__quote=
2917 _am_result=none
2918 # First try GNU make style include.
2919 echo "include confinc" > confmf
2920 # Ignore all kinds of additional output from `make'.
2921 case `$am_make -s -f confmf 2> /dev/null` in #(
2922 *the\ am__doit\ target*)
2923 am__include=include
2924 am__quote=
2925 _am_result=GNU
2926 ;;
2927 esac
2928 # Now try BSD make style include.
2929 if test "$am__include" = "#"; then
2930 echo '.include "confinc"' > confmf
2931 case `$am_make -s -f confmf 2> /dev/null` in #(
2932 *the\ am__doit\ target*)
2933 am__include=.include
2934 am__quote="\""
2935 _am_result=BSD
2936 ;;
2937 esac
2938 fi
2939
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2942 $as_echo "$_am_result" >&6; }
2943 rm -f confinc confmf
2944
2945 # Check whether --enable-dependency-tracking was given.
2946 if test "${enable_dependency_tracking+set}" = set; then :
2947 enableval=$enable_dependency_tracking;
2948 fi
2949
2950 if test "x$enable_dependency_tracking" != xno; then
2951 am_depcomp="$ac_aux_dir/depcomp"
2952 AMDEPBACKSLASH='\'
2953 fi
2954 if test "x$enable_dependency_tracking" != xno; then
2955 AMDEP_TRUE=
2956 AMDEP_FALSE='#'
2957 else
2958 AMDEP_TRUE='#'
2959 AMDEP_FALSE=
2960 fi
2961
2962
2963 ac_ext=c
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999 $as_echo "$CC" >&6; }
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005
3006 fi
3007 if test -z "$ac_cv_prog_CC"; then
3008 ac_ct_CC=$CC
3009 # Extract the first word of "gcc", so it can be a program name with args.
3010 set dummy gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_ac_ct_CC="gcc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3039 $as_echo "$ac_ct_CC" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045 if test "x$ac_ct_CC" = x; then
3046 CC=""
3047 else
3048 case $cross_compiling:$ac_tool_warned in
3049 yes:)
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3053 esac
3054 CC=$ac_ct_CC
3055 fi
3056 else
3057 CC="$ac_cv_prog_CC"
3058 fi
3059
3060 if test -z "$CC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}cc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_CC="${ac_tool_prefix}cc"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099 fi
3100 fi
3101 if test -z "$CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 ac_prog_rejected=no
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3121 ac_prog_rejected=yes
3122 continue
3123 fi
3124 ac_cv_prog_CC="cc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 if test $ac_prog_rejected = yes; then
3133 # We found a bogon in the path, so make sure we never use it.
3134 set dummy $ac_cv_prog_CC
3135 shift
3136 if test $# != 0; then
3137 # We chose a different compiler from the bogus one.
3138 # However, it has the same basename, so the bogon will be chosen
3139 # first if we set CC to just the basename; use the full file name.
3140 shift
3141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3142 fi
3143 fi
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 fi
3157 if test -z "$CC"; then
3158 if test -n "$ac_tool_prefix"; then
3159 for ac_prog in cl.exe
3160 do
3161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 test -n "$CC" && break
3199 done
3200 fi
3201 if test -z "$CC"; then
3202 ac_ct_CC=$CC
3203 for ac_prog in cl.exe
3204 do
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$ac_ct_CC"; then
3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 ac_cv_prog_ac_ct_CC="$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233 if test -n "$ac_ct_CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235 $as_echo "$ac_ct_CC" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242 test -n "$ac_ct_CC" && break
3243 done
3244
3245 if test "x$ac_ct_CC" = x; then
3246 CC=""
3247 else
3248 case $cross_compiling:$ac_tool_warned in
3249 yes:)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252 ac_tool_warned=yes ;;
3253 esac
3254 CC=$ac_ct_CC
3255 fi
3256 fi
3257
3258 fi
3259
3260
3261 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "no acceptable C compiler found in \$PATH
3264 See \`config.log' for more details" "$LINENO" 5; }
3265
3266 # Provide some information about the compiler.
3267 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3268 set X $ac_compile
3269 ac_compiler=$2
3270 for ac_option in --version -v -V -qversion; do
3271 { { ac_try="$ac_compiler $ac_option >&5"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3279 ac_status=$?
3280 if test -s conftest.err; then
3281 sed '10a\
3282 ... rest of stderr output deleted ...
3283 10q' conftest.err >conftest.er1
3284 cat conftest.er1 >&5
3285 fi
3286 rm -f conftest.er1 conftest.err
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }
3289 done
3290
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293
3294 int
3295 main ()
3296 {
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 ac_clean_files_save=$ac_clean_files
3303 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3304 # Try to create an executable without -o first, disregard a.out.
3305 # It will help us diagnose broken compilers, and finding out an intuition
3306 # of exeext.
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3308 $as_echo_n "checking whether the C compiler works... " >&6; }
3309 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3310
3311 # The possible output files:
3312 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3313
3314 ac_rmfiles=
3315 for ac_file in $ac_files
3316 do
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3319 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3320 esac
3321 done
3322 rm -f $ac_rmfiles
3323
3324 if { { ac_try="$ac_link_default"
3325 case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328 esac
3329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 $as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_link_default") 2>&5
3332 ac_status=$?
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3336 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3337 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3338 # so that the user can short-circuit this test for compilers unknown to
3339 # Autoconf.
3340 for ac_file in $ac_files ''
3341 do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3345 ;;
3346 [ab].out )
3347 # We found the default executable, but exeext='' is most
3348 # certainly right.
3349 break;;
3350 *.* )
3351 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3352 then :; else
3353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 fi
3355 # We set ac_cv_exeext here because the later test for it is not
3356 # safe: cross compilers may not add the suffix if given an `-o'
3357 # argument, so we may need to know it at that point already.
3358 # Even if this section looks crufty: it has the advantage of
3359 # actually working.
3360 break;;
3361 * )
3362 break;;
3363 esac
3364 done
3365 test "$ac_cv_exeext" = no && ac_cv_exeext=
3366
3367 else
3368 ac_file=''
3369 fi
3370 if test -z "$ac_file"; then :
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error 77 "C compiler cannot create executables
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382 $as_echo "yes" >&6; }
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3385 $as_echo_n "checking for C compiler default output file name... " >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3387 $as_echo "$ac_file" >&6; }
3388 ac_exeext=$ac_cv_exeext
3389
3390 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3393 $as_echo_n "checking for suffix of executables... " >&6; }
3394 if { { ac_try="$ac_link"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_link") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; then :
3405 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3406 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3407 # work properly (i.e., refer to `conftest.exe'), while it won't with
3408 # `rm'.
3409 for ac_file in conftest.exe conftest conftest.*; do
3410 test -f "$ac_file" || continue
3411 case $ac_file in
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3414 break;;
3415 * ) break;;
3416 esac
3417 done
3418 else
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3422 See \`config.log' for more details" "$LINENO" 5; }
3423 fi
3424 rm -f conftest conftest$ac_cv_exeext
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3426 $as_echo "$ac_cv_exeext" >&6; }
3427
3428 rm -f conftest.$ac_ext
3429 EXEEXT=$ac_cv_exeext
3430 ac_exeext=$EXEEXT
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #include <stdio.h>
3434 int
3435 main ()
3436 {
3437 FILE *f = fopen ("conftest.out", "w");
3438 return ferror (f) || fclose (f) != 0;
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 ac_clean_files="$ac_clean_files conftest.out"
3445 # Check that the compiler produces executables we can run. If not, either
3446 # the compiler is broken, or we cross compile.
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3448 $as_echo_n "checking whether we are cross compiling... " >&6; }
3449 if test "$cross_compiling" != yes; then
3450 { { ac_try="$ac_link"
3451 case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_link") 2>&5
3458 ac_status=$?
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }
3461 if { ac_try='./conftest$ac_cv_exeext'
3462 { { case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_try") 2>&5
3469 ac_status=$?
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; }; then
3472 cross_compiling=no
3473 else
3474 if test "$cross_compiling" = maybe; then
3475 cross_compiling=yes
3476 else
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error $? "cannot run C compiled programs.
3480 If you meant to cross compile, use \`--host'.
3481 See \`config.log' for more details" "$LINENO" 5; }
3482 fi
3483 fi
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3486 $as_echo "$cross_compiling" >&6; }
3487
3488 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3489 ac_clean_files=$ac_clean_files_save
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3491 $as_echo_n "checking for suffix of object files... " >&6; }
3492 if ${ac_cv_objext+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.o conftest.obj
3507 if { { ac_try="$ac_compile"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_compile") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 for ac_file in conftest.o conftest.obj conftest.*; do
3519 test -f "$ac_file" || continue;
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3523 break;;
3524 esac
3525 done
3526 else
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $? "cannot compute suffix of object files: cannot compile
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 fi
3535 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3538 $as_echo "$ac_cv_objext" >&6; }
3539 OBJEXT=$ac_cv_objext
3540 ac_objext=$OBJEXT
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3542 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3543 if ${ac_cv_c_compiler_gnu+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548
3549 int
3550 main ()
3551 {
3552 #ifndef __GNUC__
3553 choke me
3554 #endif
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_compiler_gnu=yes
3562 else
3563 ac_compiler_gnu=no
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3570 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3571 if test $ac_compiler_gnu = yes; then
3572 GCC=yes
3573 else
3574 GCC=
3575 fi
3576 ac_test_CFLAGS=${CFLAGS+set}
3577 ac_save_CFLAGS=$CFLAGS
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3579 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3580 if ${ac_cv_prog_cc_g+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 ac_save_c_werror_flag=$ac_c_werror_flag
3584 ac_c_werror_flag=yes
3585 ac_cv_prog_cc_g=no
3586 CFLAGS="-g"
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_prog_cc_g=yes
3600 else
3601 CFLAGS=""
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604
3605 int
3606 main ()
3607 {
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614
3615 else
3616 ac_c_werror_flag=$ac_save_c_werror_flag
3617 CFLAGS="-g"
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620
3621 int
3622 main ()
3623 {
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_cv_prog_cc_g=yes
3631 fi
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 fi
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3640 $as_echo "$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642 CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644 if test "$GCC" = yes; then
3645 CFLAGS="-g -O2"
3646 else
3647 CFLAGS="-g"
3648 fi
3649 else
3650 if test "$GCC" = yes; then
3651 CFLAGS="-O2"
3652 else
3653 CFLAGS=
3654 fi
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3657 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3658 if ${ac_cv_prog_cc_c89+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 ac_cv_prog_cc_c89=no
3662 ac_save_CC=$CC
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #include <stdarg.h>
3666 #include <stdio.h>
3667 #include <sys/types.h>
3668 #include <sys/stat.h>
3669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3670 struct buf { int x; };
3671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3672 static char *e (p, i)
3673 char **p;
3674 int i;
3675 {
3676 return p[i];
3677 }
3678 static char *f (char * (*g) (char **, int), char **p, ...)
3679 {
3680 char *s;
3681 va_list v;
3682 va_start (v,p);
3683 s = g (p, va_arg (v,int));
3684 va_end (v);
3685 return s;
3686 }
3687
3688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3689 function prototypes and stuff, but not '\xHH' hex character constants.
3690 These don't provoke an error unfortunately, instead are silently treated
3691 as 'x'. The following induces an error, until -std is added to get
3692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3693 array size at least. It's necessary to write '\x00'==0 to get something
3694 that's true only with -std. */
3695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3696
3697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3698 inside strings and character constants. */
3699 #define FOO(x) 'x'
3700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3701
3702 int test (int i, double x);
3703 struct s1 {int (*f) (int a);};
3704 struct s2 {int (*f) (double a);};
3705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3706 int argc;
3707 char **argv;
3708 int
3709 main ()
3710 {
3711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3718 do
3719 CC="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_c89=$ac_arg
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext
3724 test "x$ac_cv_prog_cc_c89" != "xno" && break
3725 done
3726 rm -f conftest.$ac_ext
3727 CC=$ac_save_CC
3728
3729 fi
3730 # AC_CACHE_VAL
3731 case "x$ac_cv_prog_cc_c89" in
3732 x)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 $as_echo "none needed" >&6; } ;;
3735 xno)
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737 $as_echo "unsupported" >&6; } ;;
3738 *)
3739 CC="$CC $ac_cv_prog_cc_c89"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3741 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3742 esac
3743 if test "x$ac_cv_prog_cc_c89" != xno; then :
3744
3745 fi
3746
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753 depcc="$CC" am_compiler_list=
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3756 $as_echo_n "checking dependency style of $depcc... " >&6; }
3757 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761 # We make a subdir and do the tests there. Otherwise we can end up
3762 # making bogus files that we don't know about and never remove. For
3763 # instance it was reported that on HP-UX the gcc test will end up
3764 # making a dummy file named `D' -- because `-MD' means `put the output
3765 # in D'.
3766 mkdir conftest.dir
3767 # Copy depcomp to subdir because otherwise we won't find it if we're
3768 # using a relative directory.
3769 cp "$am_depcomp" conftest.dir
3770 cd conftest.dir
3771 # We will build objects and dependencies in a subdirectory because
3772 # it helps to detect inapplicable dependency modes. For instance
3773 # both Tru64's cc and ICC support -MD to output dependencies as a
3774 # side effect of compilation, but ICC will put the dependencies in
3775 # the current directory while Tru64 will put them in the object
3776 # directory.
3777 mkdir sub
3778
3779 am_cv_CC_dependencies_compiler_type=none
3780 if test "$am_compiler_list" = ""; then
3781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3782 fi
3783 am__universal=false
3784 case " $depcc " in #(
3785 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3786 esac
3787
3788 for depmode in $am_compiler_list; do
3789 # Setup a source with many dependencies, because some compilers
3790 # like to wrap large dependency lists on column 80 (with \), and
3791 # we should not choose a depcomp mode which is confused by this.
3792 #
3793 # We need to recreate these files for each test, as the compiler may
3794 # overwrite some of them when testing with obscure command lines.
3795 # This happens at least with the AIX C compiler.
3796 : > sub/conftest.c
3797 for i in 1 2 3 4 5 6; do
3798 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3800 # Solaris 8's {/usr,}/bin/sh.
3801 touch sub/conftst$i.h
3802 done
3803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3804
3805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3806 # mode. It turns out that the SunPro C++ compiler does not properly
3807 # handle `-M -o', and we need to detect this. Also, some Intel
3808 # versions had trouble with output in subdirs
3809 am__obj=sub/conftest.${OBJEXT-o}
3810 am__minus_obj="-o $am__obj"
3811 case $depmode in
3812 gcc)
3813 # This depmode causes a compiler race in universal mode.
3814 test "$am__universal" = false || continue
3815 ;;
3816 nosideeffect)
3817 # after this tag, mechanisms are not by side-effect, so they'll
3818 # only be used when explicitly requested
3819 if test "x$enable_dependency_tracking" = xyes; then
3820 continue
3821 else
3822 break
3823 fi
3824 ;;
3825 msvisualcpp | msvcmsys)
3826 # This compiler won't grok `-c -o', but also, the minuso test has
3827 # not run yet. These depmodes are late enough in the game, and
3828 # so weak that their functioning should not be impacted.
3829 am__obj=conftest.${OBJEXT-o}
3830 am__minus_obj=
3831 ;;
3832 none) break ;;
3833 esac
3834 if depmode=$depmode \
3835 source=sub/conftest.c object=$am__obj \
3836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3838 >/dev/null 2>conftest.err &&
3839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3843 # icc doesn't choke on unknown options, it will just issue warnings
3844 # or remarks (even with -Werror). So we grep stderr for any message
3845 # that says an option was ignored or not supported.
3846 # When given -MP, icc 7.0 and 7.1 complain thusly:
3847 # icc: Command line warning: ignoring option '-M'; no argument required
3848 # The diagnosis changed in icc 8.0:
3849 # icc: Command line remark: option '-MP' not supported
3850 if (grep 'ignoring option' conftest.err ||
3851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3852 am_cv_CC_dependencies_compiler_type=$depmode
3853 break
3854 fi
3855 fi
3856 done
3857
3858 cd ..
3859 rm -rf conftest.dir
3860 else
3861 am_cv_CC_dependencies_compiler_type=none
3862 fi
3863
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3866 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3867 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3868
3869 if
3870 test "x$enable_dependency_tracking" != xno \
3871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3872 am__fastdepCC_TRUE=
3873 am__fastdepCC_FALSE='#'
3874 else
3875 am__fastdepCC_TRUE='#'
3876 am__fastdepCC_FALSE=
3877 fi
3878
3879
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3881 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3882 if ${ac_cv_path_SED+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3886 for ac_i in 1 2 3 4 5 6 7; do
3887 ac_script="$ac_script$as_nl$ac_script"
3888 done
3889 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3890 { ac_script=; unset ac_script;}
3891 if test -z "$SED"; then
3892 ac_path_SED_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_prog in sed gsed; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3902 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3903 # Check for GNU ac_path_SED and select it if it is found.
3904 # Check for GNU $ac_path_SED
3905 case `"$ac_path_SED" --version 2>&1` in
3906 *GNU*)
3907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3908 *)
3909 ac_count=0
3910 $as_echo_n 0123456789 >"conftest.in"
3911 while :
3912 do
3913 cat "conftest.in" "conftest.in" >"conftest.tmp"
3914 mv "conftest.tmp" "conftest.in"
3915 cp "conftest.in" "conftest.nl"
3916 $as_echo '' >> "conftest.nl"
3917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919 as_fn_arith $ac_count + 1 && ac_count=$as_val
3920 if test $ac_count -gt ${ac_path_SED_max-0}; then
3921 # Best one so far, save it but keep looking for a better one
3922 ac_cv_path_SED="$ac_path_SED"
3923 ac_path_SED_max=$ac_count
3924 fi
3925 # 10*(2^10) chars as input seems more than enough
3926 test $ac_count -gt 10 && break
3927 done
3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 esac
3930
3931 $ac_path_SED_found && break 3
3932 done
3933 done
3934 done
3935 IFS=$as_save_IFS
3936 if test -z "$ac_cv_path_SED"; then
3937 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3938 fi
3939 else
3940 ac_cv_path_SED=$SED
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3945 $as_echo "$ac_cv_path_SED" >&6; }
3946 SED="$ac_cv_path_SED"
3947 rm -f conftest.sed
3948
3949 test -z "$SED" && SED=sed
3950 Xsed="$SED -e 1s/^X//"
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3963 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3964 if ${ac_cv_path_GREP+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -z "$GREP"; then
3968 ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
3980 # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3982 *GNU*)
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984 *)
3985 ac_count=0
3986 $as_echo_n 0123456789 >"conftest.in"
3987 while :
3988 do
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 $as_echo 'GREP' >> "conftest.nl"
3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 as_fn_arith $ac_count + 1 && ac_count=$as_val
3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
4000 fi
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4003 done
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 esac
4006
4007 $ac_path_GREP_found && break 3
4008 done
4009 done
4010 done
4011 IFS=$as_save_IFS
4012 if test -z "$ac_cv_path_GREP"; then
4013 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4014 fi
4015 else
4016 ac_cv_path_GREP=$GREP
4017 fi
4018
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4021 $as_echo "$ac_cv_path_GREP" >&6; }
4022 GREP="$ac_cv_path_GREP"
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4026 $as_echo_n "checking for egrep... " >&6; }
4027 if ${ac_cv_path_EGREP+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4031 then ac_cv_path_EGREP="$GREP -E"
4032 else
4033 if test -z "$EGREP"; then
4034 ac_path_EGREP_found=false
4035 # Loop through the user's path and test for each of PROGNAME-LIST
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4038 do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_prog in egrep; do
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4045 # Check for GNU ac_path_EGREP and select it if it is found.
4046 # Check for GNU $ac_path_EGREP
4047 case `"$ac_path_EGREP" --version 2>&1` in
4048 *GNU*)
4049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4050 *)
4051 ac_count=0
4052 $as_echo_n 0123456789 >"conftest.in"
4053 while :
4054 do
4055 cat "conftest.in" "conftest.in" >"conftest.tmp"
4056 mv "conftest.tmp" "conftest.in"
4057 cp "conftest.in" "conftest.nl"
4058 $as_echo 'EGREP' >> "conftest.nl"
4059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4061 as_fn_arith $ac_count + 1 && ac_count=$as_val
4062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4063 # Best one so far, save it but keep looking for a better one
4064 ac_cv_path_EGREP="$ac_path_EGREP"
4065 ac_path_EGREP_max=$ac_count
4066 fi
4067 # 10*(2^10) chars as input seems more than enough
4068 test $ac_count -gt 10 && break
4069 done
4070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4071 esac
4072
4073 $ac_path_EGREP_found && break 3
4074 done
4075 done
4076 done
4077 IFS=$as_save_IFS
4078 if test -z "$ac_cv_path_EGREP"; then
4079 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4080 fi
4081 else
4082 ac_cv_path_EGREP=$EGREP
4083 fi
4084
4085 fi
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4088 $as_echo "$ac_cv_path_EGREP" >&6; }
4089 EGREP="$ac_cv_path_EGREP"
4090
4091
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4093 $as_echo_n "checking for fgrep... " >&6; }
4094 if ${ac_cv_path_FGREP+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4098 then ac_cv_path_FGREP="$GREP -F"
4099 else
4100 if test -z "$FGREP"; then
4101 ac_path_FGREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105 do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_prog in fgrep; do
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4111 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4112 # Check for GNU ac_path_FGREP and select it if it is found.
4113 # Check for GNU $ac_path_FGREP
4114 case `"$ac_path_FGREP" --version 2>&1` in
4115 *GNU*)
4116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4117 *)
4118 ac_count=0
4119 $as_echo_n 0123456789 >"conftest.in"
4120 while :
4121 do
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 $as_echo 'FGREP' >> "conftest.nl"
4126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128 as_fn_arith $ac_count + 1 && ac_count=$as_val
4129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_FGREP="$ac_path_FGREP"
4132 ac_path_FGREP_max=$ac_count
4133 fi
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4136 done
4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 esac
4139
4140 $ac_path_FGREP_found && break 3
4141 done
4142 done
4143 done
4144 IFS=$as_save_IFS
4145 if test -z "$ac_cv_path_FGREP"; then
4146 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147 fi
4148 else
4149 ac_cv_path_FGREP=$FGREP
4150 fi
4151
4152 fi
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4155 $as_echo "$ac_cv_path_FGREP" >&6; }
4156 FGREP="$ac_cv_path_FGREP"
4157
4158
4159 test -z "$GREP" && GREP=grep
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179 # Check whether --with-gnu-ld was given.
4180 if test "${with_gnu_ld+set}" = set; then :
4181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4182 else
4183 with_gnu_ld=no
4184 fi
4185
4186 ac_prog=ld
4187 if test "$GCC" = yes; then
4188 # Check if gcc -print-prog-name=ld gives a path.
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4190 $as_echo_n "checking for ld used by $CC... " >&6; }
4191 case $host in
4192 *-*-mingw*)
4193 # gcc leaves a trailing carriage return which upsets mingw
4194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4195 *)
4196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4197 esac
4198 case $ac_prog in
4199 # Accept absolute paths.
4200 [\\/]* | ?:[\\/]*)
4201 re_direlt='/[^/][^/]*/\.\./'
4202 # Canonicalize the pathname of ld
4203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4206 done
4207 test -z "$LD" && LD="$ac_prog"
4208 ;;
4209 "")
4210 # If it fails, then pretend we aren't using GCC.
4211 ac_prog=ld
4212 ;;
4213 *)
4214 # If it is relative, then search for the first ld in PATH.
4215 with_gnu_ld=unknown
4216 ;;
4217 esac
4218 elif test "$with_gnu_ld" = yes; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4220 $as_echo_n "checking for GNU ld... " >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4223 $as_echo_n "checking for non-GNU ld... " >&6; }
4224 fi
4225 if ${lt_cv_path_LD+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -z "$LD"; then
4229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4230 for ac_dir in $PATH; do
4231 IFS="$lt_save_ifs"
4232 test -z "$ac_dir" && ac_dir=.
4233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4234 lt_cv_path_LD="$ac_dir/$ac_prog"
4235 # Check to see if the program is GNU ld. I'd rather use --version,
4236 # but apparently some variants of GNU ld only accept -v.
4237 # Break only if it was the GNU/non-GNU ld that we prefer.
4238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4239 *GNU* | *'with BFD'*)
4240 test "$with_gnu_ld" != no && break
4241 ;;
4242 *)
4243 test "$with_gnu_ld" != yes && break
4244 ;;
4245 esac
4246 fi
4247 done
4248 IFS="$lt_save_ifs"
4249 else
4250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4251 fi
4252 fi
4253
4254 LD="$lt_cv_path_LD"
4255 if test -n "$LD"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4257 $as_echo "$LD" >&6; }
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4264 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4265 if ${lt_cv_prog_gnu_ld+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4269 case `$LD -v 2>&1 </dev/null` in
4270 *GNU* | *'with BFD'*)
4271 lt_cv_prog_gnu_ld=yes
4272 ;;
4273 *)
4274 lt_cv_prog_gnu_ld=no
4275 ;;
4276 esac
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4279 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4280 with_gnu_ld=$lt_cv_prog_gnu_ld
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4291 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4292 if ${lt_cv_path_NM+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$NM"; then
4296 # Let the user override the test.
4297 lt_cv_path_NM="$NM"
4298 else
4299 lt_nm_to_check="${ac_tool_prefix}nm"
4300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4301 lt_nm_to_check="$lt_nm_to_check nm"
4302 fi
4303 for lt_tmp_nm in $lt_nm_to_check; do
4304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4306 IFS="$lt_save_ifs"
4307 test -z "$ac_dir" && ac_dir=.
4308 tmp_nm="$ac_dir/$lt_tmp_nm"
4309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4310 # Check to see if the nm accepts a BSD-compat flag.
4311 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4312 # nm: unknown option "B" ignored
4313 # Tru64's nm complains that /dev/null is an invalid object file
4314 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4315 */dev/null* | *'Invalid file or object type'*)
4316 lt_cv_path_NM="$tmp_nm -B"
4317 break
4318 ;;
4319 *)
4320 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4321 */dev/null*)
4322 lt_cv_path_NM="$tmp_nm -p"
4323 break
4324 ;;
4325 *)
4326 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4327 continue # so that we can try to find one that supports BSD flags
4328 ;;
4329 esac
4330 ;;
4331 esac
4332 fi
4333 done
4334 IFS="$lt_save_ifs"
4335 done
4336 : ${lt_cv_path_NM=no}
4337 fi
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4340 $as_echo "$lt_cv_path_NM" >&6; }
4341 if test "$lt_cv_path_NM" != "no"; then
4342 NM="$lt_cv_path_NM"
4343 else
4344 # Didn't find any BSD compatible name lister, look for dumpbin.
4345 if test -n "$DUMPBIN"; then :
4346 # Let the user override the test.
4347 else
4348 if test -n "$ac_tool_prefix"; then
4349 for ac_prog in dumpbin "link -dump"
4350 do
4351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_DUMPBIN+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$DUMPBIN"; then
4359 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372 done
4373 done
4374 IFS=$as_save_IFS
4375
4376 fi
4377 fi
4378 DUMPBIN=$ac_cv_prog_DUMPBIN
4379 if test -n "$DUMPBIN"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4381 $as_echo "$DUMPBIN" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 fi
4386
4387
4388 test -n "$DUMPBIN" && break
4389 done
4390 fi
4391 if test -z "$DUMPBIN"; then
4392 ac_ct_DUMPBIN=$DUMPBIN
4393 for ac_prog in dumpbin "link -dump"
4394 do
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$ac_ct_DUMPBIN"; then
4403 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4423 if test -n "$ac_ct_DUMPBIN"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4425 $as_echo "$ac_ct_DUMPBIN" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432 test -n "$ac_ct_DUMPBIN" && break
4433 done
4434
4435 if test "x$ac_ct_DUMPBIN" = x; then
4436 DUMPBIN=":"
4437 else
4438 case $cross_compiling:$ac_tool_warned in
4439 yes:)
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4442 ac_tool_warned=yes ;;
4443 esac
4444 DUMPBIN=$ac_ct_DUMPBIN
4445 fi
4446 fi
4447
4448 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4449 *COFF*)
4450 DUMPBIN="$DUMPBIN -symbols"
4451 ;;
4452 *)
4453 DUMPBIN=:
4454 ;;
4455 esac
4456 fi
4457
4458 if test "$DUMPBIN" != ":"; then
4459 NM="$DUMPBIN"
4460 fi
4461 fi
4462 test -z "$NM" && NM=nm
4463
4464
4465
4466
4467
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4470 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4471 if ${lt_cv_nm_interface+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 lt_cv_nm_interface="BSD nm"
4475 echo "int some_variable = 0;" > conftest.$ac_ext
4476 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4477 (eval "$ac_compile" 2>conftest.err)
4478 cat conftest.err >&5
4479 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4480 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4481 cat conftest.err >&5
4482 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4483 cat conftest.out >&5
4484 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4485 lt_cv_nm_interface="MS dumpbin"
4486 fi
4487 rm -f conftest*
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4490 $as_echo "$lt_cv_nm_interface" >&6; }
4491
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4493 $as_echo_n "checking whether ln -s works... " >&6; }
4494 LN_S=$as_ln_s
4495 if test "$LN_S" = "ln -s"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4500 $as_echo "no, using $LN_S" >&6; }
4501 fi
4502
4503 # find the maximum length of command line arguments
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4505 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4506 if ${lt_cv_sys_max_cmd_len+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 i=0
4510 teststring="ABCD"
4511
4512 case $build_os in
4513 msdosdjgpp*)
4514 # On DJGPP, this test can blow up pretty badly due to problems in libc
4515 # (any single argument exceeding 2000 bytes causes a buffer overrun
4516 # during glob expansion). Even if it were fixed, the result of this
4517 # check would be larger than it should be.
4518 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4519 ;;
4520
4521 gnu*)
4522 # Under GNU Hurd, this test is not required because there is
4523 # no limit to the length of command line arguments.
4524 # Libtool will interpret -1 as no limit whatsoever
4525 lt_cv_sys_max_cmd_len=-1;
4526 ;;
4527
4528 cygwin* | mingw* | cegcc*)
4529 # On Win9x/ME, this test blows up -- it succeeds, but takes
4530 # about 5 minutes as the teststring grows exponentially.
4531 # Worse, since 9x/ME are not pre-emptively multitasking,
4532 # you end up with a "frozen" computer, even though with patience
4533 # the test eventually succeeds (with a max line length of 256k).
4534 # Instead, let's just punt: use the minimum linelength reported by
4535 # all of the supported platforms: 8192 (on NT/2K/XP).
4536 lt_cv_sys_max_cmd_len=8192;
4537 ;;
4538
4539 mint*)
4540 # On MiNT this can take a long time and run out of memory.
4541 lt_cv_sys_max_cmd_len=8192;
4542 ;;
4543
4544 amigaos*)
4545 # On AmigaOS with pdksh, this test takes hours, literally.
4546 # So we just punt and use a minimum line length of 8192.
4547 lt_cv_sys_max_cmd_len=8192;
4548 ;;
4549
4550 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4551 # This has been around since 386BSD, at least. Likely further.
4552 if test -x /sbin/sysctl; then
4553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4554 elif test -x /usr/sbin/sysctl; then
4555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4556 else
4557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4558 fi
4559 # And add a safety zone
4560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4562 ;;
4563
4564 interix*)
4565 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4566 lt_cv_sys_max_cmd_len=196608
4567 ;;
4568
4569 osf*)
4570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4572 # nice to cause kernel panics so lets avoid the loop below.
4573 # First set a reasonable default.
4574 lt_cv_sys_max_cmd_len=16384
4575 #
4576 if test -x /sbin/sysconfig; then
4577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4578 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4579 esac
4580 fi
4581 ;;
4582 sco3.2v5*)
4583 lt_cv_sys_max_cmd_len=102400
4584 ;;
4585 sysv5* | sco5v6* | sysv4.2uw2*)
4586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4587 if test -n "$kargmax"; then
4588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4589 else
4590 lt_cv_sys_max_cmd_len=32768
4591 fi
4592 ;;
4593 *)
4594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4595 if test -n "$lt_cv_sys_max_cmd_len"; then
4596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4598 else
4599 # Make teststring a little bigger before we do anything with it.
4600 # a 1K string should be a reasonable start.
4601 for i in 1 2 3 4 5 6 7 8 ; do
4602 teststring=$teststring$teststring
4603 done
4604 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4605 # If test is not a shell built-in, we'll probably end up computing a
4606 # maximum length that is only half of the actual maximum length, but
4607 # we can't tell.
4608 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4609 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4610 test $i != 17 # 1/2 MB should be enough
4611 do
4612 i=`expr $i + 1`
4613 teststring=$teststring$teststring
4614 done
4615 # Only check the string length outside the loop.
4616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4617 teststring=
4618 # Add a significant safety factor because C++ compilers can tack on
4619 # massive amounts of additional arguments before passing them to the
4620 # linker. It appears as though 1/2 is a usable value.
4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4622 fi
4623 ;;
4624 esac
4625
4626 fi
4627
4628 if test -n $lt_cv_sys_max_cmd_len ; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4630 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4633 $as_echo "none" >&6; }
4634 fi
4635 max_cmd_len=$lt_cv_sys_max_cmd_len
4636
4637
4638
4639
4640
4641
4642 : ${CP="cp -f"}
4643 : ${MV="mv -f"}
4644 : ${RM="rm -f"}
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4647 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4648 # Try some XSI features
4649 xsi_shell=no
4650 ( _lt_dummy="a/b/c"
4651 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4652 = c,a/b,b/c, \
4653 && eval 'test $(( 1 + 1 )) -eq 2 \
4654 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4655 && xsi_shell=yes
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4657 $as_echo "$xsi_shell" >&6; }
4658
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4661 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4662 lt_shell_append=no
4663 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4664 >/dev/null 2>&1 \
4665 && lt_shell_append=yes
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4667 $as_echo "$lt_shell_append" >&6; }
4668
4669
4670 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4671 lt_unset=unset
4672 else
4673 lt_unset=false
4674 fi
4675
4676
4677
4678
4679
4680 # test EBCDIC or ASCII
4681 case `echo X|tr X '\101'` in
4682 A) # ASCII based system
4683 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4684 lt_SP2NL='tr \040 \012'
4685 lt_NL2SP='tr \015\012 \040\040'
4686 ;;
4687 *) # EBCDIC based system
4688 lt_SP2NL='tr \100 \n'
4689 lt_NL2SP='tr \r\n \100\100'
4690 ;;
4691 esac
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4702 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4703 if ${lt_cv_to_host_file_cmd+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 case $host in
4707 *-*-mingw* )
4708 case $build in
4709 *-*-mingw* ) # actually msys
4710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4711 ;;
4712 *-*-cygwin* )
4713 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4714 ;;
4715 * ) # otherwise, assume *nix
4716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4717 ;;
4718 esac
4719 ;;
4720 *-*-cygwin* )
4721 case $build in
4722 *-*-mingw* ) # actually msys
4723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4724 ;;
4725 *-*-cygwin* )
4726 lt_cv_to_host_file_cmd=func_convert_file_noop
4727 ;;
4728 * ) # otherwise, assume *nix
4729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4730 ;;
4731 esac
4732 ;;
4733 * ) # unhandled hosts (and "normal" native builds)
4734 lt_cv_to_host_file_cmd=func_convert_file_noop
4735 ;;
4736 esac
4737
4738 fi
4739
4740 to_host_file_cmd=$lt_cv_to_host_file_cmd
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4742 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4743
4744
4745
4746
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4749 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4750 if ${lt_cv_to_tool_file_cmd+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 #assume ordinary cross tools, or native build.
4754 lt_cv_to_tool_file_cmd=func_convert_file_noop
4755 case $host in
4756 *-*-mingw* )
4757 case $build in
4758 *-*-mingw* ) # actually msys
4759 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4760 ;;
4761 esac
4762 ;;
4763 esac
4764
4765 fi
4766
4767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4769 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4770
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4776 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4777 if ${lt_cv_ld_reload_flag+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 lt_cv_ld_reload_flag='-r'
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4783 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4784 reload_flag=$lt_cv_ld_reload_flag
4785 case $reload_flag in
4786 "" | " "*) ;;
4787 *) reload_flag=" $reload_flag" ;;
4788 esac
4789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4790 case $host_os in
4791 cygwin* | mingw* | pw32* | cegcc*)
4792 if test "$GCC" != yes; then
4793 reload_cmds=false
4794 fi
4795 ;;
4796 darwin*)
4797 if test "$GCC" = yes; then
4798 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4799 else
4800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4801 fi
4802 ;;
4803 esac
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_OBJDUMP+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$OBJDUMP"; then
4822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 OBJDUMP=$ac_cv_prog_OBJDUMP
4842 if test -n "$OBJDUMP"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4844 $as_echo "$OBJDUMP" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 fi
4852 if test -z "$ac_cv_prog_OBJDUMP"; then
4853 ac_ct_OBJDUMP=$OBJDUMP
4854 # Extract the first word of "objdump", so it can be a program name with args.
4855 set dummy objdump; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_OBJDUMP"; then
4862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4882 if test -n "$ac_ct_OBJDUMP"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4884 $as_echo "$ac_ct_OBJDUMP" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890 if test "x$ac_ct_OBJDUMP" = x; then
4891 OBJDUMP="false"
4892 else
4893 case $cross_compiling:$ac_tool_warned in
4894 yes:)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4898 esac
4899 OBJDUMP=$ac_ct_OBJDUMP
4900 fi
4901 else
4902 OBJDUMP="$ac_cv_prog_OBJDUMP"
4903 fi
4904
4905 test -z "$OBJDUMP" && OBJDUMP=objdump
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4916 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4917 if ${lt_cv_deplibs_check_method+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 lt_cv_file_magic_cmd='$MAGIC_CMD'
4921 lt_cv_file_magic_test_file=
4922 lt_cv_deplibs_check_method='unknown'
4923 # Need to set the preceding variable on all platforms that support
4924 # interlibrary dependencies.
4925 # 'none' -- dependencies not supported.
4926 # `unknown' -- same as none, but documents that we really don't know.
4927 # 'pass_all' -- all dependencies passed with no checks.
4928 # 'test_compile' -- check by making test program.
4929 # 'file_magic [[regex]]' -- check by looking for files in library path
4930 # which responds to the $file_magic_cmd with a given extended regex.
4931 # If you have `file' or equivalent on your system and you're not sure
4932 # whether `pass_all' will *always* work, you probably want this one.
4933
4934 case $host_os in
4935 aix[4-9]*)
4936 lt_cv_deplibs_check_method=pass_all
4937 ;;
4938
4939 beos*)
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942
4943 bsdi[45]*)
4944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4945 lt_cv_file_magic_cmd='/usr/bin/file -L'
4946 lt_cv_file_magic_test_file=/shlib/libc.so
4947 ;;
4948
4949 cygwin*)
4950 # func_win32_libid is a shell function defined in ltmain.sh
4951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4952 lt_cv_file_magic_cmd='func_win32_libid'
4953 ;;
4954
4955 mingw* | pw32*)
4956 # Base MSYS/MinGW do not provide the 'file' command needed by
4957 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4958 # unless we find 'file', for example because we are cross-compiling.
4959 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4960 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4962 lt_cv_file_magic_cmd='func_win32_libid'
4963 else
4964 # Keep this pattern in sync with the one in func_win32_libid.
4965 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4966 lt_cv_file_magic_cmd='$OBJDUMP -f'
4967 fi
4968 ;;
4969
4970 cegcc*)
4971 # use the weaker test based on 'objdump'. See mingw*.
4972 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4973 lt_cv_file_magic_cmd='$OBJDUMP -f'
4974 ;;
4975
4976 darwin* | rhapsody*)
4977 lt_cv_deplibs_check_method=pass_all
4978 ;;
4979
4980 freebsd* | dragonfly*)
4981 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4982 case $host_cpu in
4983 i*86 )
4984 # Not sure whether the presence of OpenBSD here was a mistake.
4985 # Let's accept both of them until this is cleared up.
4986 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4987 lt_cv_file_magic_cmd=/usr/bin/file
4988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4989 ;;
4990 esac
4991 else
4992 lt_cv_deplibs_check_method=pass_all
4993 fi
4994 ;;
4995
4996 gnu*)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000 haiku*)
5001 lt_cv_deplibs_check_method=pass_all
5002 ;;
5003
5004 hpux10.20* | hpux11*)
5005 lt_cv_file_magic_cmd=/usr/bin/file
5006 case $host_cpu in
5007 ia64*)
5008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5010 ;;
5011 hppa*64*)
5012 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]'
5013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5014 ;;
5015 *)
5016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5017 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5018 ;;
5019 esac
5020 ;;
5021
5022 interix[3-9]*)
5023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5025 ;;
5026
5027 irix5* | irix6* | nonstopux*)
5028 case $LD in
5029 *-32|*"-32 ") libmagic=32-bit;;
5030 *-n32|*"-n32 ") libmagic=N32;;
5031 *-64|*"-64 ") libmagic=64-bit;;
5032 *) libmagic=never-match;;
5033 esac
5034 lt_cv_deplibs_check_method=pass_all
5035 ;;
5036
5037 # This must be Linux ELF.
5038 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041
5042 netbsd*)
5043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5045 else
5046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5047 fi
5048 ;;
5049
5050 newos6*)
5051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5052 lt_cv_file_magic_cmd=/usr/bin/file
5053 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5054 ;;
5055
5056 *nto* | *qnx*)
5057 lt_cv_deplibs_check_method=pass_all
5058 ;;
5059
5060 openbsd*)
5061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5063 else
5064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5065 fi
5066 ;;
5067
5068 osf3* | osf4* | osf5*)
5069 lt_cv_deplibs_check_method=pass_all
5070 ;;
5071
5072 rdos*)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
5075
5076 solaris*)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079
5080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083
5084 sysv4 | sysv4.3*)
5085 case $host_vendor in
5086 motorola)
5087 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]'
5088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5089 ;;
5090 ncr)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093 sequent)
5094 lt_cv_file_magic_cmd='/bin/file'
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5096 ;;
5097 sni)
5098 lt_cv_file_magic_cmd='/bin/file'
5099 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5100 lt_cv_file_magic_test_file=/lib/libc.so
5101 ;;
5102 siemens)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105 pc)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108 esac
5109 ;;
5110
5111 tpf*)
5112 lt_cv_deplibs_check_method=pass_all
5113 ;;
5114 esac
5115
5116 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5118 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5119
5120 file_magic_glob=
5121 want_nocaseglob=no
5122 if test "$build" = "$host"; then
5123 case $host_os in
5124 mingw* | pw32*)
5125 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5126 want_nocaseglob=yes
5127 else
5128 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5129 fi
5130 ;;
5131 esac
5132 fi
5133
5134 file_magic_cmd=$lt_cv_file_magic_cmd
5135 deplibs_check_method=$lt_cv_deplibs_check_method
5136 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_DLLTOOL+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$DLLTOOL"; then
5168 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 DLLTOOL=$ac_cv_prog_DLLTOOL
5188 if test -n "$DLLTOOL"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5190 $as_echo "$DLLTOOL" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196
5197 fi
5198 if test -z "$ac_cv_prog_DLLTOOL"; then
5199 ac_ct_DLLTOOL=$DLLTOOL
5200 # Extract the first word of "dlltool", so it can be a program name with args.
5201 set dummy dlltool; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ac_ct_DLLTOOL"; then
5208 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5228 if test -n "$ac_ct_DLLTOOL"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5230 $as_echo "$ac_ct_DLLTOOL" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236 if test "x$ac_ct_DLLTOOL" = x; then
5237 DLLTOOL="false"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240 yes:)
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245 DLLTOOL=$ac_ct_DLLTOOL
5246 fi
5247 else
5248 DLLTOOL="$ac_cv_prog_DLLTOOL"
5249 fi
5250
5251 test -z "$DLLTOOL" && DLLTOOL=dlltool
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5263 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5264 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 lt_cv_sharedlib_from_linklib_cmd='unknown'
5268
5269 case $host_os in
5270 cygwin* | mingw* | pw32* | cegcc*)
5271 # two different shell functions defined in ltmain.sh
5272 # decide which to use based on capabilities of $DLLTOOL
5273 case `$DLLTOOL --help 2>&1` in
5274 *--identify-strict*)
5275 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5276 ;;
5277 *)
5278 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5279 ;;
5280 esac
5281 ;;
5282 *)
5283 # fallback: assume linklib IS sharedlib
5284 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5285 ;;
5286 esac
5287
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5290 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5291 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5292 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5293
5294
5295
5296
5297
5298
5299
5300
5301 if test -n "$ac_tool_prefix"; then
5302 for ac_prog in ar
5303 do
5304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_AR+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$AR"; then
5312 ac_cv_prog_AR="$AR" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 AR=$ac_cv_prog_AR
5332 if test -n "$AR"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5334 $as_echo "$AR" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340
5341 test -n "$AR" && break
5342 done
5343 fi
5344 if test -z "$AR"; then
5345 ac_ct_AR=$AR
5346 for ac_prog in ar
5347 do
5348 # Extract the first word of "$ac_prog", so it can be a program name with args.
5349 set dummy $ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$ac_ct_AR"; then
5356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_ac_ct_AR="$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369 done
5370 done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5376 if test -n "$ac_ct_AR"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5378 $as_echo "$ac_ct_AR" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385 test -n "$ac_ct_AR" && break
5386 done
5387
5388 if test "x$ac_ct_AR" = x; then
5389 AR="false"
5390 else
5391 case $cross_compiling:$ac_tool_warned in
5392 yes:)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397 AR=$ac_ct_AR
5398 fi
5399 fi
5400
5401 : ${AR=ar}
5402 : ${AR_FLAGS=cru}
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5415 $as_echo_n "checking for archiver @FILE support... " >&6; }
5416 if ${lt_cv_ar_at_file+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 lt_cv_ar_at_file=no
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422
5423 int
5424 main ()
5425 {
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 echo conftest.$ac_objext > conftest.lst
5433 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5435 (eval $lt_ar_try) 2>&5
5436 ac_status=$?
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }
5439 if test "$ac_status" -eq 0; then
5440 # Ensure the archiver fails upon bogus file names.
5441 rm -f conftest.$ac_objext libconftest.a
5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5443 (eval $lt_ar_try) 2>&5
5444 ac_status=$?
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }
5447 if test "$ac_status" -ne 0; then
5448 lt_cv_ar_at_file=@
5449 fi
5450 fi
5451 rm -f conftest.* libconftest.a
5452
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5458 $as_echo "$lt_cv_ar_at_file" >&6; }
5459
5460 if test "x$lt_cv_ar_at_file" = xno; then
5461 archiver_list_spec=
5462 else
5463 archiver_list_spec=$lt_cv_ar_at_file
5464 fi
5465
5466
5467
5468
5469
5470
5471
5472 if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}strip; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_STRIP+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$STRIP"; then
5481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494 done
5495 done
5496 IFS=$as_save_IFS
5497
5498 fi
5499 fi
5500 STRIP=$ac_cv_prog_STRIP
5501 if test -n "$STRIP"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5503 $as_echo "$STRIP" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510 fi
5511 if test -z "$ac_cv_prog_STRIP"; then
5512 ac_ct_STRIP=$STRIP
5513 # Extract the first word of "strip", so it can be a program name with args.
5514 set dummy strip; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$ac_ct_STRIP"; then
5521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_STRIP="strip"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5541 if test -n "$ac_ct_STRIP"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5543 $as_echo "$ac_ct_STRIP" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549 if test "x$ac_ct_STRIP" = x; then
5550 STRIP=":"
5551 else
5552 case $cross_compiling:$ac_tool_warned in
5553 yes:)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5557 esac
5558 STRIP=$ac_ct_STRIP
5559 fi
5560 else
5561 STRIP="$ac_cv_prog_STRIP"
5562 fi
5563
5564 test -z "$STRIP" && STRIP=:
5565
5566
5567
5568
5569
5570
5571 if test -n "$ac_tool_prefix"; then
5572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_RANLIB+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$RANLIB"; then
5580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5596
5597 fi
5598 fi
5599 RANLIB=$ac_cv_prog_RANLIB
5600 if test -n "$RANLIB"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5602 $as_echo "$RANLIB" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608
5609 fi
5610 if test -z "$ac_cv_prog_RANLIB"; then
5611 ac_ct_RANLIB=$RANLIB
5612 # Extract the first word of "ranlib", so it can be a program name with args.
5613 set dummy ranlib; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 if test -n "$ac_ct_RANLIB"; then
5620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5624 do
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_prog_ac_ct_RANLIB="ranlib"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5632 fi
5633 done
5634 done
5635 IFS=$as_save_IFS
5636
5637 fi
5638 fi
5639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5640 if test -n "$ac_ct_RANLIB"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5642 $as_echo "$ac_ct_RANLIB" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5646 fi
5647
5648 if test "x$ac_ct_RANLIB" = x; then
5649 RANLIB=":"
5650 else
5651 case $cross_compiling:$ac_tool_warned in
5652 yes:)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5656 esac
5657 RANLIB=$ac_ct_RANLIB
5658 fi
5659 else
5660 RANLIB="$ac_cv_prog_RANLIB"
5661 fi
5662
5663 test -z "$RANLIB" && RANLIB=:
5664
5665
5666
5667
5668
5669
5670 # Determine commands to create old-style static archives.
5671 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5672 old_postinstall_cmds='chmod 644 $oldlib'
5673 old_postuninstall_cmds=
5674
5675 if test -n "$RANLIB"; then
5676 case $host_os in
5677 openbsd*)
5678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5679 ;;
5680 *)
5681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5682 ;;
5683 esac
5684 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5685 fi
5686
5687 case $host_os in
5688 darwin*)
5689 lock_old_archive_extraction=yes ;;
5690 *)
5691 lock_old_archive_extraction=no ;;
5692 esac
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 # If no C compiler was specified, use CC.
5733 LTCC=${LTCC-"$CC"}
5734
5735 # If no C compiler flags were specified, use CFLAGS.
5736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5737
5738 # Allow CC to be a program name with arguments.
5739 compiler=$CC
5740
5741
5742 # Check for command to grab the raw symbol name followed by C symbol from nm.
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5744 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5745 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748
5749 # These are sane defaults that work on at least a few old systems.
5750 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5751
5752 # Character class describing NM global symbol codes.
5753 symcode='[BCDEGRST]'
5754
5755 # Regexp to match symbols that can be accessed directly from C.
5756 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5757
5758 # Define system-specific variables.
5759 case $host_os in
5760 aix*)
5761 symcode='[BCDT]'
5762 ;;
5763 cygwin* | mingw* | pw32* | cegcc*)
5764 symcode='[ABCDGISTW]'
5765 ;;
5766 hpux*)
5767 if test "$host_cpu" = ia64; then
5768 symcode='[ABCDEGRST]'
5769 fi
5770 ;;
5771 irix* | nonstopux*)
5772 symcode='[BCDEGRST]'
5773 ;;
5774 osf*)
5775 symcode='[BCDEGQRST]'
5776 ;;
5777 solaris*)
5778 symcode='[BDRT]'
5779 ;;
5780 sco3.2v5*)
5781 symcode='[DT]'
5782 ;;
5783 sysv4.2uw2*)
5784 symcode='[DT]'
5785 ;;
5786 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5787 symcode='[ABDT]'
5788 ;;
5789 sysv4)
5790 symcode='[DFNSTU]'
5791 ;;
5792 esac
5793
5794 # If we're using GNU nm, then use its standard symbol codes.
5795 case `$NM -V 2>&1` in
5796 *GNU* | *'with BFD'*)
5797 symcode='[ABCDGIRSTW]' ;;
5798 esac
5799
5800 # Transform an extracted symbol line into a proper C declaration.
5801 # Some systems (esp. on ia64) link data and code symbols differently,
5802 # so use this general approach.
5803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5804
5805 # Transform an extracted symbol line into symbol name and symbol address
5806 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5807 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'"
5808
5809 # Handle CRLF in mingw tool chain
5810 opt_cr=
5811 case $build_os in
5812 mingw*)
5813 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5814 ;;
5815 esac
5816
5817 # Try without a prefix underscore, then with it.
5818 for ac_symprfx in "" "_"; do
5819
5820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5821 symxfrm="\\1 $ac_symprfx\\2 \\2"
5822
5823 # Write the raw and C identifiers.
5824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5825 # Fake it for dumpbin and say T for any non-static function
5826 # and D for any global variable.
5827 # Also find C++ and __fastcall symbols from MSVC++,
5828 # which start with @ or ?.
5829 lt_cv_sys_global_symbol_pipe="$AWK '"\
5830 " {last_section=section; section=\$ 3};"\
5831 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5832 " \$ 0!~/External *\|/{next};"\
5833 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5834 " {if(hide[section]) next};"\
5835 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5836 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5837 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5838 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5839 " ' prfx=^$ac_symprfx"
5840 else
5841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5842 fi
5843 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5844
5845 # Check to see that the pipe works correctly.
5846 pipe_works=no
5847
5848 rm -f conftest*
5849 cat > conftest.$ac_ext <<_LT_EOF
5850 #ifdef __cplusplus
5851 extern "C" {
5852 #endif
5853 char nm_test_var;
5854 void nm_test_func(void);
5855 void nm_test_func(void){}
5856 #ifdef __cplusplus
5857 }
5858 #endif
5859 int main(){nm_test_var='a';nm_test_func();return(0);}
5860 _LT_EOF
5861
5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5863 (eval $ac_compile) 2>&5
5864 ac_status=$?
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; }; then
5867 # Now try to grab the symbols.
5868 nlist=conftest.nm
5869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5870 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5871 ac_status=$?
5872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5873 test $ac_status = 0; } && test -s "$nlist"; then
5874 # Try sorting and uniquifying the output.
5875 if sort "$nlist" | uniq > "$nlist"T; then
5876 mv -f "$nlist"T "$nlist"
5877 else
5878 rm -f "$nlist"T
5879 fi
5880
5881 # Make sure that we snagged all the symbols we need.
5882 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5883 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5884 cat <<_LT_EOF > conftest.$ac_ext
5885 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5886 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5887 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5888 relocations are performed -- see ld's documentation on pseudo-relocs. */
5889 # define LT_DLSYM_CONST
5890 #elif defined(__osf__)
5891 /* This system does not cope well with relocations in const data. */
5892 # define LT_DLSYM_CONST
5893 #else
5894 # define LT_DLSYM_CONST const
5895 #endif
5896
5897 #ifdef __cplusplus
5898 extern "C" {
5899 #endif
5900
5901 _LT_EOF
5902 # Now generate the symbol file.
5903 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5904
5905 cat <<_LT_EOF >> conftest.$ac_ext
5906
5907 /* The mapping between symbol names and symbols. */
5908 LT_DLSYM_CONST struct {
5909 const char *name;
5910 void *address;
5911 }
5912 lt__PROGRAM__LTX_preloaded_symbols[] =
5913 {
5914 { "@PROGRAM@", (void *) 0 },
5915 _LT_EOF
5916 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5917 cat <<\_LT_EOF >> conftest.$ac_ext
5918 {0, (void *) 0}
5919 };
5920
5921 /* This works around a problem in FreeBSD linker */
5922 #ifdef FREEBSD_WORKAROUND
5923 static const void *lt_preloaded_setup() {
5924 return lt__PROGRAM__LTX_preloaded_symbols;
5925 }
5926 #endif
5927
5928 #ifdef __cplusplus
5929 }
5930 #endif
5931 _LT_EOF
5932 # Now try linking the two files.
5933 mv conftest.$ac_objext conftstm.$ac_objext
5934 lt_globsym_save_LIBS=$LIBS
5935 lt_globsym_save_CFLAGS=$CFLAGS
5936 LIBS="conftstm.$ac_objext"
5937 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5939 (eval $ac_link) 2>&5
5940 ac_status=$?
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5943 pipe_works=yes
5944 fi
5945 LIBS=$lt_globsym_save_LIBS
5946 CFLAGS=$lt_globsym_save_CFLAGS
5947 else
5948 echo "cannot find nm_test_func in $nlist" >&5
5949 fi
5950 else
5951 echo "cannot find nm_test_var in $nlist" >&5
5952 fi
5953 else
5954 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5955 fi
5956 else
5957 echo "$progname: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5959 fi
5960 rm -rf conftest* conftst*
5961
5962 # Do not use the global_symbol_pipe unless it works.
5963 if test "$pipe_works" = yes; then
5964 break
5965 else
5966 lt_cv_sys_global_symbol_pipe=
5967 fi
5968 done
5969
5970 fi
5971
5972 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5973 lt_cv_sys_global_symbol_to_cdecl=
5974 fi
5975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5977 $as_echo "failed" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5980 $as_echo "ok" >&6; }
5981 fi
5982
5983 # Response file support.
5984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5985 nm_file_list_spec='@'
5986 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5987 nm_file_list_spec='@'
5988 fi
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6017 $as_echo_n "checking for sysroot... " >&6; }
6018
6019 # Check whether --with-sysroot was given.
6020 if test "${with_sysroot+set}" = set; then :
6021 withval=$with_sysroot;
6022 else
6023 with_sysroot=no
6024 fi
6025
6026
6027 lt_sysroot=
6028 case ${with_sysroot} in #(
6029 yes)
6030 if test "$GCC" = yes; then
6031 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6032 fi
6033 ;; #(
6034 /*)
6035 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6036 ;; #(
6037 no|'')
6038 ;; #(
6039 *)
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6041 $as_echo "${with_sysroot}" >&6; }
6042 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6043 ;;
6044 esac
6045
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6047 $as_echo "${lt_sysroot:-no}" >&6; }
6048
6049
6050
6051
6052
6053 # Check whether --enable-libtool-lock was given.
6054 if test "${enable_libtool_lock+set}" = set; then :
6055 enableval=$enable_libtool_lock;
6056 fi
6057
6058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6059
6060 # Some flags need to be propagated to the compiler or linker for good
6061 # libtool support.
6062 case $host in
6063 ia64-*-hpux*)
6064 # Find out which ABI we are using.
6065 echo 'int i;' > conftest.$ac_ext
6066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6067 (eval $ac_compile) 2>&5
6068 ac_status=$?
6069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070 test $ac_status = 0; }; then
6071 case `/usr/bin/file conftest.$ac_objext` in
6072 *ELF-32*)
6073 HPUX_IA64_MODE="32"
6074 ;;
6075 *ELF-64*)
6076 HPUX_IA64_MODE="64"
6077 ;;
6078 esac
6079 fi
6080 rm -rf conftest*
6081 ;;
6082 *-*-irix6*)
6083 # Find out which ABI we are using.
6084 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086 (eval $ac_compile) 2>&5
6087 ac_status=$?
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; }; then
6090 if test "$lt_cv_prog_gnu_ld" = yes; then
6091 case `/usr/bin/file conftest.$ac_objext` in
6092 *32-bit*)
6093 LD="${LD-ld} -melf32bsmip"
6094 ;;
6095 *N32*)
6096 LD="${LD-ld} -melf32bmipn32"
6097 ;;
6098 *64-bit*)
6099 LD="${LD-ld} -melf64bmip"
6100 ;;
6101 esac
6102 else
6103 case `/usr/bin/file conftest.$ac_objext` in
6104 *32-bit*)
6105 LD="${LD-ld} -32"
6106 ;;
6107 *N32*)
6108 LD="${LD-ld} -n32"
6109 ;;
6110 *64-bit*)
6111 LD="${LD-ld} -64"
6112 ;;
6113 esac
6114 fi
6115 fi
6116 rm -rf conftest*
6117 ;;
6118
6119 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6120 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6121 # Find out which ABI we are using.
6122 echo 'int i;' > conftest.$ac_ext
6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6124 (eval $ac_compile) 2>&5
6125 ac_status=$?
6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127 test $ac_status = 0; }; then
6128 case `/usr/bin/file conftest.o` in
6129 *32-bit*)
6130 case $host in
6131 x86_64-*kfreebsd*-gnu)
6132 LD="${LD-ld} -m elf_i386_fbsd"
6133 ;;
6134 x86_64-*linux*)
6135 LD="${LD-ld} -m elf_i386"
6136 ;;
6137 ppc64-*linux*|powerpc64-*linux*)
6138 LD="${LD-ld} -m elf32ppclinux"
6139 ;;
6140 s390x-*linux*)
6141 LD="${LD-ld} -m elf_s390"
6142 ;;
6143 sparc64-*linux*)
6144 LD="${LD-ld} -m elf32_sparc"
6145 ;;
6146 esac
6147 ;;
6148 *64-bit*)
6149 case $host in
6150 x86_64-*kfreebsd*-gnu)
6151 LD="${LD-ld} -m elf_x86_64_fbsd"
6152 ;;
6153 x86_64-*linux*)
6154 LD="${LD-ld} -m elf_x86_64"
6155 ;;
6156 ppc*-*linux*|powerpc*-*linux*)
6157 LD="${LD-ld} -m elf64ppc"
6158 ;;
6159 s390*-*linux*|s390*-*tpf*)
6160 LD="${LD-ld} -m elf64_s390"
6161 ;;
6162 sparc*-*linux*)
6163 LD="${LD-ld} -m elf64_sparc"
6164 ;;
6165 esac
6166 ;;
6167 esac
6168 fi
6169 rm -rf conftest*
6170 ;;
6171
6172 *-*-sco3.2v5*)
6173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6174 SAVE_CFLAGS="$CFLAGS"
6175 CFLAGS="$CFLAGS -belf"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6177 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6178 if ${lt_cv_cc_needs_belf+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 ac_ext=c
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189
6190 int
6191 main ()
6192 {
6193
6194 ;
6195 return 0;
6196 }
6197 _ACEOF
6198 if ac_fn_c_try_link "$LINENO"; then :
6199 lt_cv_cc_needs_belf=yes
6200 else
6201 lt_cv_cc_needs_belf=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 ac_ext=c
6206 ac_cpp='$CPP $CPPFLAGS'
6207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210
6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6213 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6214 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6215 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6216 CFLAGS="$SAVE_CFLAGS"
6217 fi
6218 ;;
6219 sparc*-*solaris*)
6220 # Find out which ABI we are using.
6221 echo 'int i;' > conftest.$ac_ext
6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223 (eval $ac_compile) 2>&5
6224 ac_status=$?
6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226 test $ac_status = 0; }; then
6227 case `/usr/bin/file conftest.o` in
6228 *64-bit*)
6229 case $lt_cv_prog_gnu_ld in
6230 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6231 *)
6232 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6233 LD="${LD-ld} -64"
6234 fi
6235 ;;
6236 esac
6237 ;;
6238 esac
6239 fi
6240 rm -rf conftest*
6241 ;;
6242 esac
6243
6244 need_locks="$enable_libtool_lock"
6245
6246 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}mt; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$MANIFEST_TOOL"; then
6255 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6275 if test -n "$MANIFEST_TOOL"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6277 $as_echo "$MANIFEST_TOOL" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283
6284 fi
6285 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6286 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6287 # Extract the first word of "mt", so it can be a program name with args.
6288 set dummy mt; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$ac_ct_MANIFEST_TOOL"; then
6295 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6315 if test -n "$ac_ct_MANIFEST_TOOL"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6317 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6324 MANIFEST_TOOL=":"
6325 else
6326 case $cross_compiling:$ac_tool_warned in
6327 yes:)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6333 fi
6334 else
6335 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6336 fi
6337
6338 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6340 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6341 if ${lt_cv_path_mainfest_tool+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 lt_cv_path_mainfest_tool=no
6345 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6346 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6347 cat conftest.err >&5
6348 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6349 lt_cv_path_mainfest_tool=yes
6350 fi
6351 rm -f conftest*
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6354 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6355 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6356 MANIFEST_TOOL=:
6357 fi
6358
6359
6360
6361
6362
6363
6364 case $host_os in
6365 rhapsody* | darwin*)
6366 if test -n "$ac_tool_prefix"; then
6367 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6368 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 if test -n "$DSYMUTIL"; then
6375 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388 done
6389 done
6390 IFS=$as_save_IFS
6391
6392 fi
6393 fi
6394 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6395 if test -n "$DSYMUTIL"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6397 $as_echo "$DSYMUTIL" >&6; }
6398 else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6401 fi
6402
6403
6404 fi
6405 if test -z "$ac_cv_prog_DSYMUTIL"; then
6406 ac_ct_DSYMUTIL=$DSYMUTIL
6407 # Extract the first word of "dsymutil", so it can be a program name with args.
6408 set dummy dsymutil; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$ac_ct_DSYMUTIL"; then
6415 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6435 if test -n "$ac_ct_DSYMUTIL"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6437 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442
6443 if test "x$ac_ct_DSYMUTIL" = x; then
6444 DSYMUTIL=":"
6445 else
6446 case $cross_compiling:$ac_tool_warned in
6447 yes:)
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450 ac_tool_warned=yes ;;
6451 esac
6452 DSYMUTIL=$ac_ct_DSYMUTIL
6453 fi
6454 else
6455 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6456 fi
6457
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_NMEDIT+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$NMEDIT"; then
6467 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6479 fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 NMEDIT=$ac_cv_prog_NMEDIT
6487 if test -n "$NMEDIT"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6489 $as_echo "$NMEDIT" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495
6496 fi
6497 if test -z "$ac_cv_prog_NMEDIT"; then
6498 ac_ct_NMEDIT=$NMEDIT
6499 # Extract the first word of "nmedit", so it can be a program name with args.
6500 set dummy nmedit; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test -n "$ac_ct_NMEDIT"; then
6507 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6527 if test -n "$ac_ct_NMEDIT"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6529 $as_echo "$ac_ct_NMEDIT" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535 if test "x$ac_ct_NMEDIT" = x; then
6536 NMEDIT=":"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544 NMEDIT=$ac_ct_NMEDIT
6545 fi
6546 else
6547 NMEDIT="$ac_cv_prog_NMEDIT"
6548 fi
6549
6550 if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_LIPO+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -n "$LIPO"; then
6559 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 LIPO=$ac_cv_prog_LIPO
6579 if test -n "$LIPO"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6581 $as_echo "$LIPO" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587
6588 fi
6589 if test -z "$ac_cv_prog_LIPO"; then
6590 ac_ct_LIPO=$LIPO
6591 # Extract the first word of "lipo", so it can be a program name with args.
6592 set dummy lipo; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 if test -n "$ac_ct_LIPO"; then
6599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_prog_ac_ct_LIPO="lipo"
6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612 done
6613 done
6614 IFS=$as_save_IFS
6615
6616 fi
6617 fi
6618 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6619 if test -n "$ac_ct_LIPO"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6621 $as_echo "$ac_ct_LIPO" >&6; }
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627 if test "x$ac_ct_LIPO" = x; then
6628 LIPO=":"
6629 else
6630 case $cross_compiling:$ac_tool_warned in
6631 yes:)
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6635 esac
6636 LIPO=$ac_ct_LIPO
6637 fi
6638 else
6639 LIPO="$ac_cv_prog_LIPO"
6640 fi
6641
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}otool; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_OTOOL+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 if test -n "$OTOOL"; then
6651 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 OTOOL=$ac_cv_prog_OTOOL
6671 if test -n "$OTOOL"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6673 $as_echo "$OTOOL" >&6; }
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679
6680 fi
6681 if test -z "$ac_cv_prog_OTOOL"; then
6682 ac_ct_OTOOL=$OTOOL
6683 # Extract the first word of "otool", so it can be a program name with args.
6684 set dummy otool; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 if test -n "$ac_ct_OTOOL"; then
6691 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_ac_ct_OTOOL="otool"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6711 if test -n "$ac_ct_OTOOL"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6713 $as_echo "$ac_ct_OTOOL" >&6; }
6714 else
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719 if test "x$ac_ct_OTOOL" = x; then
6720 OTOOL=":"
6721 else
6722 case $cross_compiling:$ac_tool_warned in
6723 yes:)
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728 OTOOL=$ac_ct_OTOOL
6729 fi
6730 else
6731 OTOOL="$ac_cv_prog_OTOOL"
6732 fi
6733
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_OTOOL64+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$OTOOL64"; then
6743 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 OTOOL64=$ac_cv_prog_OTOOL64
6763 if test -n "$OTOOL64"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6765 $as_echo "$OTOOL64" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_OTOOL64"; then
6774 ac_ct_OTOOL64=$OTOOL64
6775 # Extract the first word of "otool64", so it can be a program name with args.
6776 set dummy otool64; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 if test -n "$ac_ct_OTOOL64"; then
6783 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_ac_ct_OTOOL64="otool64"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6803 if test -n "$ac_ct_OTOOL64"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6805 $as_echo "$ac_ct_OTOOL64" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811 if test "x$ac_ct_OTOOL64" = x; then
6812 OTOOL64=":"
6813 else
6814 case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820 OTOOL64=$ac_ct_OTOOL64
6821 fi
6822 else
6823 OTOOL64="$ac_cv_prog_OTOOL64"
6824 fi
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6853 $as_echo_n "checking for -single_module linker flag... " >&6; }
6854 if ${lt_cv_apple_cc_single_mod+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 lt_cv_apple_cc_single_mod=no
6858 if test -z "${LT_MULTI_MODULE}"; then
6859 # By default we will add the -single_module flag. You can override
6860 # by either setting the environment variable LT_MULTI_MODULE
6861 # non-empty at configure time, or by adding -multi_module to the
6862 # link flags.
6863 rm -rf libconftest.dylib*
6864 echo "int foo(void){return 1;}" > conftest.c
6865 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6866 -dynamiclib -Wl,-single_module conftest.c" >&5
6867 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6868 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6869 _lt_result=$?
6870 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6871 lt_cv_apple_cc_single_mod=yes
6872 else
6873 cat conftest.err >&5
6874 fi
6875 rm -rf libconftest.dylib*
6876 rm -f conftest.*
6877 fi
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6880 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6882 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6883 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 lt_cv_ld_exported_symbols_list=no
6887 save_LDFLAGS=$LDFLAGS
6888 echo "_main" > conftest.sym
6889 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892
6893 int
6894 main ()
6895 {
6896
6897 ;
6898 return 0;
6899 }
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902 lt_cv_ld_exported_symbols_list=yes
6903 else
6904 lt_cv_ld_exported_symbols_list=no
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6908 LDFLAGS="$save_LDFLAGS"
6909
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6912 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6914 $as_echo_n "checking for -force_load linker flag... " >&6; }
6915 if ${lt_cv_ld_force_load+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 lt_cv_ld_force_load=no
6919 cat > conftest.c << _LT_EOF
6920 int forced_loaded() { return 2;}
6921 _LT_EOF
6922 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6923 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6924 echo "$AR cru libconftest.a conftest.o" >&5
6925 $AR cru libconftest.a conftest.o 2>&5
6926 echo "$RANLIB libconftest.a" >&5
6927 $RANLIB libconftest.a 2>&5
6928 cat > conftest.c << _LT_EOF
6929 int main() { return 0;}
6930 _LT_EOF
6931 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6932 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6933 _lt_result=$?
6934 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6935 lt_cv_ld_force_load=yes
6936 else
6937 cat conftest.err >&5
6938 fi
6939 rm -f conftest.err libconftest.a conftest conftest.c
6940 rm -rf conftest.dSYM
6941
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6944 $as_echo "$lt_cv_ld_force_load" >&6; }
6945 case $host_os in
6946 rhapsody* | darwin1.[012])
6947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6948 darwin1.*)
6949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6950 darwin*) # darwin 5.x on
6951 # if running on 10.5 or later, the deployment target defaults
6952 # to the OS version, if on x86, and 10.4, the deployment
6953 # target defaults to 10.4. Don't you love it?
6954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6955 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6957 10.[012]*)
6958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6959 10.*)
6960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6961 esac
6962 ;;
6963 esac
6964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6965 _lt_dar_single_mod='$single_module'
6966 fi
6967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6969 else
6970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6971 fi
6972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6973 _lt_dsymutil='~$DSYMUTIL $lib || :'
6974 else
6975 _lt_dsymutil=
6976 fi
6977 ;;
6978 esac
6979
6980 ac_ext=c
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6986 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6987 # On Suns, sometimes $CPP names a directory.
6988 if test -n "$CPP" && test -d "$CPP"; then
6989 CPP=
6990 fi
6991 if test -z "$CPP"; then
6992 if ${ac_cv_prog_CPP+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 # Double quotes because CPP needs to be expanded
6996 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6997 do
6998 ac_preproc_ok=false
6999 for ac_c_preproc_warn_flag in '' yes
7000 do
7001 # Use a header file that comes with gcc, so configuring glibc
7002 # with a fresh cross-compiler works.
7003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7004 # <limits.h> exists even on freestanding compilers.
7005 # On the NeXT, cc -E runs the code through the compiler's parser,
7006 # not just through cpp. "Syntax error" is here to catch this case.
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 #ifdef __STDC__
7010 # include <limits.h>
7011 #else
7012 # include <assert.h>
7013 #endif
7014 Syntax error
7015 _ACEOF
7016 if ac_fn_c_try_cpp "$LINENO"; then :
7017
7018 else
7019 # Broken: fails on valid input.
7020 continue
7021 fi
7022 rm -f conftest.err conftest.i conftest.$ac_ext
7023
7024 # OK, works on sane cases. Now check whether nonexistent headers
7025 # can be detected and how.
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 #include <ac_nonexistent.h>
7029 _ACEOF
7030 if ac_fn_c_try_cpp "$LINENO"; then :
7031 # Broken: success on invalid input.
7032 continue
7033 else
7034 # Passes both tests.
7035 ac_preproc_ok=:
7036 break
7037 fi
7038 rm -f conftest.err conftest.i conftest.$ac_ext
7039
7040 done
7041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7042 rm -f conftest.i conftest.err conftest.$ac_ext
7043 if $ac_preproc_ok; then :
7044 break
7045 fi
7046
7047 done
7048 ac_cv_prog_CPP=$CPP
7049
7050 fi
7051 CPP=$ac_cv_prog_CPP
7052 else
7053 ac_cv_prog_CPP=$CPP
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7056 $as_echo "$CPP" >&6; }
7057 ac_preproc_ok=false
7058 for ac_c_preproc_warn_flag in '' yes
7059 do
7060 # Use a header file that comes with gcc, so configuring glibc
7061 # with a fresh cross-compiler works.
7062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7063 # <limits.h> exists even on freestanding compilers.
7064 # On the NeXT, cc -E runs the code through the compiler's parser,
7065 # not just through cpp. "Syntax error" is here to catch this case.
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #ifdef __STDC__
7069 # include <limits.h>
7070 #else
7071 # include <assert.h>
7072 #endif
7073 Syntax error
7074 _ACEOF
7075 if ac_fn_c_try_cpp "$LINENO"; then :
7076
7077 else
7078 # Broken: fails on valid input.
7079 continue
7080 fi
7081 rm -f conftest.err conftest.i conftest.$ac_ext
7082
7083 # OK, works on sane cases. Now check whether nonexistent headers
7084 # can be detected and how.
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <ac_nonexistent.h>
7088 _ACEOF
7089 if ac_fn_c_try_cpp "$LINENO"; then :
7090 # Broken: success on invalid input.
7091 continue
7092 else
7093 # Passes both tests.
7094 ac_preproc_ok=:
7095 break
7096 fi
7097 rm -f conftest.err conftest.i conftest.$ac_ext
7098
7099 done
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.i conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then :
7103
7104 else
7105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7107 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7108 See \`config.log' for more details" "$LINENO" 5; }
7109 fi
7110
7111 ac_ext=c
7112 ac_cpp='$CPP $CPPFLAGS'
7113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7116
7117
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7119 $as_echo_n "checking for ANSI C header files... " >&6; }
7120 if ${ac_cv_header_stdc+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 #include <stdlib.h>
7126 #include <stdarg.h>
7127 #include <string.h>
7128 #include <float.h>
7129
7130 int
7131 main ()
7132 {
7133
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 if ac_fn_c_try_compile "$LINENO"; then :
7139 ac_cv_header_stdc=yes
7140 else
7141 ac_cv_header_stdc=no
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144
7145 if test $ac_cv_header_stdc = yes; then
7146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <string.h>
7150
7151 _ACEOF
7152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7153 $EGREP "memchr" >/dev/null 2>&1; then :
7154
7155 else
7156 ac_cv_header_stdc=no
7157 fi
7158 rm -f conftest*
7159
7160 fi
7161
7162 if test $ac_cv_header_stdc = yes; then
7163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 #include <stdlib.h>
7167
7168 _ACEOF
7169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7170 $EGREP "free" >/dev/null 2>&1; then :
7171
7172 else
7173 ac_cv_header_stdc=no
7174 fi
7175 rm -f conftest*
7176
7177 fi
7178
7179 if test $ac_cv_header_stdc = yes; then
7180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7181 if test "$cross_compiling" = yes; then :
7182 :
7183 else
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 #include <ctype.h>
7187 #include <stdlib.h>
7188 #if ((' ' & 0x0FF) == 0x020)
7189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7191 #else
7192 # define ISLOWER(c) \
7193 (('a' <= (c) && (c) <= 'i') \
7194 || ('j' <= (c) && (c) <= 'r') \
7195 || ('s' <= (c) && (c) <= 'z'))
7196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7197 #endif
7198
7199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7200 int
7201 main ()
7202 {
7203 int i;
7204 for (i = 0; i < 256; i++)
7205 if (XOR (islower (i), ISLOWER (i))
7206 || toupper (i) != TOUPPER (i))
7207 return 2;
7208 return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_run "$LINENO"; then :
7212
7213 else
7214 ac_cv_header_stdc=no
7215 fi
7216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7217 conftest.$ac_objext conftest.beam conftest.$ac_ext
7218 fi
7219
7220 fi
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7223 $as_echo "$ac_cv_header_stdc" >&6; }
7224 if test $ac_cv_header_stdc = yes; then
7225
7226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7227
7228 fi
7229
7230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7232 inttypes.h stdint.h unistd.h
7233 do :
7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7236 "
7237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7238 cat >>confdefs.h <<_ACEOF
7239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7240 _ACEOF
7241
7242 fi
7243
7244 done
7245
7246
7247 for ac_header in dlfcn.h
7248 do :
7249 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7250 "
7251 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_DLFCN_H 1
7254 _ACEOF
7255
7256 fi
7257
7258 done
7259
7260
7261
7262
7263
7264 # Set options
7265
7266
7267
7268 enable_dlopen=no
7269
7270
7271 enable_win32_dll=no
7272
7273
7274 # Check whether --enable-shared was given.
7275 if test "${enable_shared+set}" = set; then :
7276 enableval=$enable_shared; p=${PACKAGE-default}
7277 case $enableval in
7278 yes) enable_shared=yes ;;
7279 no) enable_shared=no ;;
7280 *)
7281 enable_shared=no
7282 # Look at the argument we got. We use all the common list separators.
7283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7284 for pkg in $enableval; do
7285 IFS="$lt_save_ifs"
7286 if test "X$pkg" = "X$p"; then
7287 enable_shared=yes
7288 fi
7289 done
7290 IFS="$lt_save_ifs"
7291 ;;
7292 esac
7293 else
7294 enable_shared=yes
7295 fi
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 # Check whether --enable-static was given.
7306 if test "${enable_static+set}" = set; then :
7307 enableval=$enable_static; p=${PACKAGE-default}
7308 case $enableval in
7309 yes) enable_static=yes ;;
7310 no) enable_static=no ;;
7311 *)
7312 enable_static=no
7313 # Look at the argument we got. We use all the common list separators.
7314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7315 for pkg in $enableval; do
7316 IFS="$lt_save_ifs"
7317 if test "X$pkg" = "X$p"; then
7318 enable_static=yes
7319 fi
7320 done
7321 IFS="$lt_save_ifs"
7322 ;;
7323 esac
7324 else
7325 enable_static=yes
7326 fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337 # Check whether --with-pic was given.
7338 if test "${with_pic+set}" = set; then :
7339 withval=$with_pic; pic_mode="$withval"
7340 else
7341 pic_mode=default
7342 fi
7343
7344
7345 test -z "$pic_mode" && pic_mode=default
7346
7347
7348
7349
7350
7351
7352
7353 # Check whether --enable-fast-install was given.
7354 if test "${enable_fast_install+set}" = set; then :
7355 enableval=$enable_fast_install; p=${PACKAGE-default}
7356 case $enableval in
7357 yes) enable_fast_install=yes ;;
7358 no) enable_fast_install=no ;;
7359 *)
7360 enable_fast_install=no
7361 # Look at the argument we got. We use all the common list separators.
7362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7363 for pkg in $enableval; do
7364 IFS="$lt_save_ifs"
7365 if test "X$pkg" = "X$p"; then
7366 enable_fast_install=yes
7367 fi
7368 done
7369 IFS="$lt_save_ifs"
7370 ;;
7371 esac
7372 else
7373 enable_fast_install=yes
7374 fi
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386 # This can be used to rebuild libtool when needed
7387 LIBTOOL_DEPS="$ltmain"
7388
7389 # Always use our own libtool.
7390 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 test -z "$LN_S" && LN_S="ln -s"
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 if test -n "${ZSH_VERSION+set}" ; then
7433 setopt NO_GLOB_SUBST
7434 fi
7435
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7437 $as_echo_n "checking for objdir... " >&6; }
7438 if ${lt_cv_objdir+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 rm -f .libs 2>/dev/null
7442 mkdir .libs 2>/dev/null
7443 if test -d .libs; then
7444 lt_cv_objdir=.libs
7445 else
7446 # MS-DOS does not allow filenames that begin with a dot.
7447 lt_cv_objdir=_libs
7448 fi
7449 rmdir .libs 2>/dev/null
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7452 $as_echo "$lt_cv_objdir" >&6; }
7453 objdir=$lt_cv_objdir
7454
7455
7456
7457
7458
7459 cat >>confdefs.h <<_ACEOF
7460 #define LT_OBJDIR "$lt_cv_objdir/"
7461 _ACEOF
7462
7463
7464
7465
7466 case $host_os in
7467 aix3*)
7468 # AIX sometimes has problems with the GCC collect2 program. For some
7469 # reason, if we set the COLLECT_NAMES environment variable, the problems
7470 # vanish in a puff of smoke.
7471 if test "X${COLLECT_NAMES+set}" != Xset; then
7472 COLLECT_NAMES=
7473 export COLLECT_NAMES
7474 fi
7475 ;;
7476 esac
7477
7478 # Global variables:
7479 ofile=libtool
7480 can_build_shared=yes
7481
7482 # All known linkers require a `.a' archive for static linking (except MSVC,
7483 # which needs '.lib').
7484 libext=a
7485
7486 with_gnu_ld="$lt_cv_prog_gnu_ld"
7487
7488 old_CC="$CC"
7489 old_CFLAGS="$CFLAGS"
7490
7491 # Set sane defaults for various variables
7492 test -z "$CC" && CC=cc
7493 test -z "$LTCC" && LTCC=$CC
7494 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7495 test -z "$LD" && LD=ld
7496 test -z "$ac_objext" && ac_objext=o
7497
7498 for cc_temp in $compiler""; do
7499 case $cc_temp in
7500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7502 \-*) ;;
7503 *) break;;
7504 esac
7505 done
7506 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7507
7508
7509 # Only perform the check for file, if the check method requires it
7510 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7511 case $deplibs_check_method in
7512 file_magic*)
7513 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7515 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7516 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 case $MAGIC_CMD in
7520 [\\/*] | ?:[\\/]*)
7521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 lt_save_MAGIC_CMD="$MAGIC_CMD"
7525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7527 for ac_dir in $ac_dummy; do
7528 IFS="$lt_save_ifs"
7529 test -z "$ac_dir" && ac_dir=.
7530 if test -f $ac_dir/${ac_tool_prefix}file; then
7531 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7532 if test -n "$file_magic_test_file"; then
7533 case $deplibs_check_method in
7534 "file_magic "*)
7535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7538 $EGREP "$file_magic_regex" > /dev/null; then
7539 :
7540 else
7541 cat <<_LT_EOF 1>&2
7542
7543 *** Warning: the command libtool uses to detect shared libraries,
7544 *** $file_magic_cmd, produces output that libtool cannot recognize.
7545 *** The result is that libtool may fail to recognize shared libraries
7546 *** as such. This will affect the creation of libtool libraries that
7547 *** depend on shared libraries, but programs linked with such libtool
7548 *** libraries will work regardless of this problem. Nevertheless, you
7549 *** may want to report the problem to your system manager and/or to
7550 *** bug-libtool@gnu.org
7551
7552 _LT_EOF
7553 fi ;;
7554 esac
7555 fi
7556 break
7557 fi
7558 done
7559 IFS="$lt_save_ifs"
7560 MAGIC_CMD="$lt_save_MAGIC_CMD"
7561 ;;
7562 esac
7563 fi
7564
7565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566 if test -n "$MAGIC_CMD"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7568 $as_echo "$MAGIC_CMD" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575
7576
7577
7578 if test -z "$lt_cv_path_MAGIC_CMD"; then
7579 if test -n "$ac_tool_prefix"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7581 $as_echo_n "checking for file... " >&6; }
7582 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 case $MAGIC_CMD in
7586 [\\/*] | ?:[\\/]*)
7587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7588 ;;
7589 *)
7590 lt_save_MAGIC_CMD="$MAGIC_CMD"
7591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7592 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7593 for ac_dir in $ac_dummy; do
7594 IFS="$lt_save_ifs"
7595 test -z "$ac_dir" && ac_dir=.
7596 if test -f $ac_dir/file; then
7597 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7598 if test -n "$file_magic_test_file"; then
7599 case $deplibs_check_method in
7600 "file_magic "*)
7601 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7603 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7604 $EGREP "$file_magic_regex" > /dev/null; then
7605 :
7606 else
7607 cat <<_LT_EOF 1>&2
7608
7609 *** Warning: the command libtool uses to detect shared libraries,
7610 *** $file_magic_cmd, produces output that libtool cannot recognize.
7611 *** The result is that libtool may fail to recognize shared libraries
7612 *** as such. This will affect the creation of libtool libraries that
7613 *** depend on shared libraries, but programs linked with such libtool
7614 *** libraries will work regardless of this problem. Nevertheless, you
7615 *** may want to report the problem to your system manager and/or to
7616 *** bug-libtool@gnu.org
7617
7618 _LT_EOF
7619 fi ;;
7620 esac
7621 fi
7622 break
7623 fi
7624 done
7625 IFS="$lt_save_ifs"
7626 MAGIC_CMD="$lt_save_MAGIC_CMD"
7627 ;;
7628 esac
7629 fi
7630
7631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7632 if test -n "$MAGIC_CMD"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7634 $as_echo "$MAGIC_CMD" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641 else
7642 MAGIC_CMD=:
7643 fi
7644 fi
7645
7646 fi
7647 ;;
7648 esac
7649
7650 # Use C for the default configuration in the libtool script
7651
7652 lt_save_CC="$CC"
7653 ac_ext=c
7654 ac_cpp='$CPP $CPPFLAGS'
7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659
7660 # Source file extension for C test sources.
7661 ac_ext=c
7662
7663 # Object file extension for compiled C test sources.
7664 objext=o
7665 objext=$objext
7666
7667 # Code to be used in simple compile tests
7668 lt_simple_compile_test_code="int some_variable = 0;"
7669
7670 # Code to be used in simple link tests
7671 lt_simple_link_test_code='int main(){return(0);}'
7672
7673
7674
7675
7676
7677
7678
7679 # If no C compiler was specified, use CC.
7680 LTCC=${LTCC-"$CC"}
7681
7682 # If no C compiler flags were specified, use CFLAGS.
7683 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7684
7685 # Allow CC to be a program name with arguments.
7686 compiler=$CC
7687
7688 # Save the default compiler, since it gets overwritten when the other
7689 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7690 compiler_DEFAULT=$CC
7691
7692 # save warnings/boilerplate of simple test code
7693 ac_outfile=conftest.$ac_objext
7694 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7695 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7696 _lt_compiler_boilerplate=`cat conftest.err`
7697 $RM conftest*
7698
7699 ac_outfile=conftest.$ac_objext
7700 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7701 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7702 _lt_linker_boilerplate=`cat conftest.err`
7703 $RM -r conftest*
7704
7705
7706 if test -n "$compiler"; then
7707
7708 lt_prog_compiler_no_builtin_flag=
7709
7710 if test "$GCC" = yes; then
7711 case $cc_basename in
7712 nvcc*)
7713 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7714 *)
7715 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7716 esac
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7719 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7720 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 lt_cv_prog_compiler_rtti_exceptions=no
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7726 lt_compiler_flag="-fno-rtti -fno-exceptions"
7727 # Insert the option either (1) after the last *FLAGS variable, or
7728 # (2) before a word containing "conftest.", or (3) at the end.
7729 # Note that $ac_compile itself does not contain backslashes and begins
7730 # with a dollar sign (not a hyphen), so the echo should work correctly.
7731 # The option is referenced via a variable to avoid confusing sed.
7732 lt_compile=`echo "$ac_compile" | $SED \
7733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7735 -e 's:$: $lt_compiler_flag:'`
7736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7737 (eval "$lt_compile" 2>conftest.err)
7738 ac_status=$?
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 if (exit $ac_status) && test -s "$ac_outfile"; then
7742 # The compiler can only warn and ignore the option if not recognized
7743 # So say no if there are warnings other than the usual output.
7744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7747 lt_cv_prog_compiler_rtti_exceptions=yes
7748 fi
7749 fi
7750 $RM conftest*
7751
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7754 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7755
7756 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7757 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7758 else
7759 :
7760 fi
7761
7762 fi
7763
7764
7765
7766
7767
7768
7769 lt_prog_compiler_wl=
7770 lt_prog_compiler_pic=
7771 lt_prog_compiler_static=
7772
7773
7774 if test "$GCC" = yes; then
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_static='-static'
7777
7778 case $host_os in
7779 aix*)
7780 # All AIX code is PIC.
7781 if test "$host_cpu" = ia64; then
7782 # AIX 5 now supports IA64 processor
7783 lt_prog_compiler_static='-Bstatic'
7784 fi
7785 ;;
7786
7787 amigaos*)
7788 case $host_cpu in
7789 powerpc)
7790 # see comment about AmigaOS4 .so support
7791 lt_prog_compiler_pic='-fPIC'
7792 ;;
7793 m68k)
7794 # FIXME: we need at least 68020 code to build shared libraries, but
7795 # adding the `-m68020' flag to GCC prevents building anything better,
7796 # like `-m68040'.
7797 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7798 ;;
7799 esac
7800 ;;
7801
7802 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7803 # PIC is the default for these OSes.
7804 ;;
7805
7806 mingw* | cygwin* | pw32* | os2* | cegcc*)
7807 # This hack is so that the source file can tell whether it is being
7808 # built for inclusion in a dll (and should export symbols for example).
7809 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7810 # (--disable-auto-import) libraries
7811 lt_prog_compiler_pic='-DDLL_EXPORT'
7812 ;;
7813
7814 darwin* | rhapsody*)
7815 # PIC is the default on this platform
7816 # Common symbols not allowed in MH_DYLIB files
7817 lt_prog_compiler_pic='-fno-common'
7818 ;;
7819
7820 haiku*)
7821 # PIC is the default for Haiku.
7822 # The "-static" flag exists, but is broken.
7823 lt_prog_compiler_static=
7824 ;;
7825
7826 hpux*)
7827 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7828 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7829 # sets the default TLS model and affects inlining.
7830 case $host_cpu in
7831 hppa*64*)
7832 # +Z the default
7833 ;;
7834 *)
7835 lt_prog_compiler_pic='-fPIC'
7836 ;;
7837 esac
7838 ;;
7839
7840 interix[3-9]*)
7841 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7842 # Instead, we relocate shared libraries at runtime.
7843 ;;
7844
7845 msdosdjgpp*)
7846 # Just because we use GCC doesn't mean we suddenly get shared libraries
7847 # on systems that don't support them.
7848 lt_prog_compiler_can_build_shared=no
7849 enable_shared=no
7850 ;;
7851
7852 *nto* | *qnx*)
7853 # QNX uses GNU C++, but need to define -shared option too, otherwise
7854 # it will coredump.
7855 lt_prog_compiler_pic='-fPIC -shared'
7856 ;;
7857
7858 sysv4*MP*)
7859 if test -d /usr/nec; then
7860 lt_prog_compiler_pic=-Kconform_pic
7861 fi
7862 ;;
7863
7864 *)
7865 lt_prog_compiler_pic='-fPIC'
7866 ;;
7867 esac
7868
7869 case $cc_basename in
7870 nvcc*) # Cuda Compiler Driver 2.2
7871 lt_prog_compiler_wl='-Xlinker '
7872 lt_prog_compiler_pic='-Xcompiler -fPIC'
7873 ;;
7874 esac
7875 else
7876 # PORTME Check for flag to pass linker flags through the system compiler.
7877 case $host_os in
7878 aix*)
7879 lt_prog_compiler_wl='-Wl,'
7880 if test "$host_cpu" = ia64; then
7881 # AIX 5 now supports IA64 processor
7882 lt_prog_compiler_static='-Bstatic'
7883 else
7884 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7885 fi
7886 ;;
7887
7888 mingw* | cygwin* | pw32* | os2* | cegcc*)
7889 # This hack is so that the source file can tell whether it is being
7890 # built for inclusion in a dll (and should export symbols for example).
7891 lt_prog_compiler_pic='-DDLL_EXPORT'
7892 ;;
7893
7894 hpux9* | hpux10* | hpux11*)
7895 lt_prog_compiler_wl='-Wl,'
7896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7897 # not for PA HP-UX.
7898 case $host_cpu in
7899 hppa*64*|ia64*)
7900 # +Z the default
7901 ;;
7902 *)
7903 lt_prog_compiler_pic='+Z'
7904 ;;
7905 esac
7906 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7907 lt_prog_compiler_static='${wl}-a ${wl}archive'
7908 ;;
7909
7910 irix5* | irix6* | nonstopux*)
7911 lt_prog_compiler_wl='-Wl,'
7912 # PIC (with -KPIC) is the default.
7913 lt_prog_compiler_static='-non_shared'
7914 ;;
7915
7916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7917 case $cc_basename in
7918 # old Intel for x86_64 which still supported -KPIC.
7919 ecc*)
7920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_pic='-KPIC'
7922 lt_prog_compiler_static='-static'
7923 ;;
7924 # icc used to be incompatible with GCC.
7925 # ICC 10 doesn't accept -KPIC any more.
7926 icc* | ifort*)
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_pic='-fPIC'
7929 lt_prog_compiler_static='-static'
7930 ;;
7931 # Lahey Fortran 8.1.
7932 lf95*)
7933 lt_prog_compiler_wl='-Wl,'
7934 lt_prog_compiler_pic='--shared'
7935 lt_prog_compiler_static='--static'
7936 ;;
7937 nagfor*)
7938 # NAG Fortran compiler
7939 lt_prog_compiler_wl='-Wl,-Wl,,'
7940 lt_prog_compiler_pic='-PIC'
7941 lt_prog_compiler_static='-Bstatic'
7942 ;;
7943 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7944 # Portland Group compilers (*not* the Pentium gcc compiler,
7945 # which looks to be a dead project)
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_pic='-fpic'
7948 lt_prog_compiler_static='-Bstatic'
7949 ;;
7950 ccc*)
7951 lt_prog_compiler_wl='-Wl,'
7952 # All Alpha code is PIC.
7953 lt_prog_compiler_static='-non_shared'
7954 ;;
7955 xl* | bgxl* | bgf* | mpixl*)
7956 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_pic='-qpic'
7959 lt_prog_compiler_static='-qstaticlink'
7960 ;;
7961 *)
7962 case `$CC -V 2>&1 | sed 5q` in
7963 *Sun\ F* | *Sun*Fortran*)
7964 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7967 lt_prog_compiler_wl=''
7968 ;;
7969 *Sun\ C*)
7970 # Sun C 5.9
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-Bstatic'
7973 lt_prog_compiler_wl='-Wl,'
7974 ;;
7975 esac
7976 ;;
7977 esac
7978 ;;
7979
7980 newsos6)
7981 lt_prog_compiler_pic='-KPIC'
7982 lt_prog_compiler_static='-Bstatic'
7983 ;;
7984
7985 *nto* | *qnx*)
7986 # QNX uses GNU C++, but need to define -shared option too, otherwise
7987 # it will coredump.
7988 lt_prog_compiler_pic='-fPIC -shared'
7989 ;;
7990
7991 osf3* | osf4* | osf5*)
7992 lt_prog_compiler_wl='-Wl,'
7993 # All OSF/1 code is PIC.
7994 lt_prog_compiler_static='-non_shared'
7995 ;;
7996
7997 rdos*)
7998 lt_prog_compiler_static='-non_shared'
7999 ;;
8000
8001 solaris*)
8002 lt_prog_compiler_pic='-KPIC'
8003 lt_prog_compiler_static='-Bstatic'
8004 case $cc_basename in
8005 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8006 lt_prog_compiler_wl='-Qoption ld ';;
8007 *)
8008 lt_prog_compiler_wl='-Wl,';;
8009 esac
8010 ;;
8011
8012 sunos4*)
8013 lt_prog_compiler_wl='-Qoption ld '
8014 lt_prog_compiler_pic='-PIC'
8015 lt_prog_compiler_static='-Bstatic'
8016 ;;
8017
8018 sysv4 | sysv4.2uw2* | sysv4.3*)
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_pic='-KPIC'
8021 lt_prog_compiler_static='-Bstatic'
8022 ;;
8023
8024 sysv4*MP*)
8025 if test -d /usr/nec ;then
8026 lt_prog_compiler_pic='-Kconform_pic'
8027 lt_prog_compiler_static='-Bstatic'
8028 fi
8029 ;;
8030
8031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-Bstatic'
8035 ;;
8036
8037 unicos*)
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_can_build_shared=no
8040 ;;
8041
8042 uts4*)
8043 lt_prog_compiler_pic='-pic'
8044 lt_prog_compiler_static='-Bstatic'
8045 ;;
8046
8047 *)
8048 lt_prog_compiler_can_build_shared=no
8049 ;;
8050 esac
8051 fi
8052
8053 case $host_os in
8054 # For platforms which do not support PIC, -DPIC is meaningless:
8055 *djgpp*)
8056 lt_prog_compiler_pic=
8057 ;;
8058 *)
8059 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8060 ;;
8061 esac
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8064 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8065 if ${lt_cv_prog_compiler_pic+:} false; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8071 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8072 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8073
8074 #
8075 # Check to make sure the PIC flag actually works.
8076 #
8077 if test -n "$lt_prog_compiler_pic"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8079 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8080 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 lt_cv_prog_compiler_pic_works=no
8084 ac_outfile=conftest.$ac_objext
8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8087 # Insert the option either (1) after the last *FLAGS variable, or
8088 # (2) before a word containing "conftest.", or (3) at the end.
8089 # Note that $ac_compile itself does not contain backslashes and begins
8090 # with a dollar sign (not a hyphen), so the echo should work correctly.
8091 # The option is referenced via a variable to avoid confusing sed.
8092 lt_compile=`echo "$ac_compile" | $SED \
8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095 -e 's:$: $lt_compiler_flag:'`
8096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8097 (eval "$lt_compile" 2>conftest.err)
8098 ac_status=$?
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 if (exit $ac_status) && test -s "$ac_outfile"; then
8102 # The compiler can only warn and ignore the option if not recognized
8103 # So say no if there are warnings other than the usual output.
8104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8107 lt_cv_prog_compiler_pic_works=yes
8108 fi
8109 fi
8110 $RM conftest*
8111
8112 fi
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8114 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8115
8116 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8117 case $lt_prog_compiler_pic in
8118 "" | " "*) ;;
8119 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8120 esac
8121 else
8122 lt_prog_compiler_pic=
8123 lt_prog_compiler_can_build_shared=no
8124 fi
8125
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138 #
8139 # Check to make sure the static flag actually works.
8140 #
8141 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8143 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8144 if ${lt_cv_prog_compiler_static_works+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 lt_cv_prog_compiler_static_works=no
8148 save_LDFLAGS="$LDFLAGS"
8149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8150 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8152 # The linker can only warn and ignore the option if not recognized
8153 # So say no if there are warnings
8154 if test -s conftest.err; then
8155 # Append any errors to the config.log.
8156 cat conftest.err 1>&5
8157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159 if diff conftest.exp conftest.er2 >/dev/null; then
8160 lt_cv_prog_compiler_static_works=yes
8161 fi
8162 else
8163 lt_cv_prog_compiler_static_works=yes
8164 fi
8165 fi
8166 $RM -r conftest*
8167 LDFLAGS="$save_LDFLAGS"
8168
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8171 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8172
8173 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8174 :
8175 else
8176 lt_prog_compiler_static=
8177 fi
8178
8179
8180
8181
8182
8183
8184
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8187 if ${lt_cv_prog_compiler_c_o+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 lt_cv_prog_compiler_c_o=no
8191 $RM -r conftest 2>/dev/null
8192 mkdir conftest
8193 cd conftest
8194 mkdir out
8195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8196
8197 lt_compiler_flag="-o out/conftest2.$ac_objext"
8198 # Insert the option either (1) after the last *FLAGS variable, or
8199 # (2) before a word containing "conftest.", or (3) at the end.
8200 # Note that $ac_compile itself does not contain backslashes and begins
8201 # with a dollar sign (not a hyphen), so the echo should work correctly.
8202 lt_compile=`echo "$ac_compile" | $SED \
8203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8205 -e 's:$: $lt_compiler_flag:'`
8206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8207 (eval "$lt_compile" 2>out/conftest.err)
8208 ac_status=$?
8209 cat out/conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8212 then
8213 # The compiler can only warn and ignore the option if not recognized
8214 # So say no if there are warnings
8215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8218 lt_cv_prog_compiler_c_o=yes
8219 fi
8220 fi
8221 chmod u+w . 2>&5
8222 $RM conftest*
8223 # SGI C++ compiler will create directory out/ii_files/ for
8224 # template instantiation
8225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8226 $RM out/* && rmdir out
8227 cd ..
8228 $RM -r conftest
8229 $RM conftest*
8230
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8233 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8234
8235
8236
8237
8238
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8241 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8242 if ${lt_cv_prog_compiler_c_o+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 lt_cv_prog_compiler_c_o=no
8246 $RM -r conftest 2>/dev/null
8247 mkdir conftest
8248 cd conftest
8249 mkdir out
8250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8251
8252 lt_compiler_flag="-o out/conftest2.$ac_objext"
8253 # Insert the option either (1) after the last *FLAGS variable, or
8254 # (2) before a word containing "conftest.", or (3) at the end.
8255 # Note that $ac_compile itself does not contain backslashes and begins
8256 # with a dollar sign (not a hyphen), so the echo should work correctly.
8257 lt_compile=`echo "$ac_compile" | $SED \
8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260 -e 's:$: $lt_compiler_flag:'`
8261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8262 (eval "$lt_compile" 2>out/conftest.err)
8263 ac_status=$?
8264 cat out/conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8267 then
8268 # The compiler can only warn and ignore the option if not recognized
8269 # So say no if there are warnings
8270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8273 lt_cv_prog_compiler_c_o=yes
8274 fi
8275 fi
8276 chmod u+w . 2>&5
8277 $RM conftest*
8278 # SGI C++ compiler will create directory out/ii_files/ for
8279 # template instantiation
8280 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8281 $RM out/* && rmdir out
8282 cd ..
8283 $RM -r conftest
8284 $RM conftest*
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8288 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8289
8290
8291
8292
8293 hard_links="nottested"
8294 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8295 # do not overwrite the value of need_locks provided by the user
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8297 $as_echo_n "checking if we can lock with hard links... " >&6; }
8298 hard_links=yes
8299 $RM conftest*
8300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8301 touch conftest.a
8302 ln conftest.a conftest.b 2>&5 || hard_links=no
8303 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8305 $as_echo "$hard_links" >&6; }
8306 if test "$hard_links" = no; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8308 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8309 need_locks=warn
8310 fi
8311 else
8312 need_locks=no
8313 fi
8314
8315
8316
8317
8318
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8321 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8322
8323 runpath_var=
8324 allow_undefined_flag=
8325 always_export_symbols=no
8326 archive_cmds=
8327 archive_expsym_cmds=
8328 compiler_needs_object=no
8329 enable_shared_with_static_runtimes=no
8330 export_dynamic_flag_spec=
8331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8332 hardcode_automatic=no
8333 hardcode_direct=no
8334 hardcode_direct_absolute=no
8335 hardcode_libdir_flag_spec=
8336 hardcode_libdir_flag_spec_ld=
8337 hardcode_libdir_separator=
8338 hardcode_minus_L=no
8339 hardcode_shlibpath_var=unsupported
8340 inherit_rpath=no
8341 link_all_deplibs=unknown
8342 module_cmds=
8343 module_expsym_cmds=
8344 old_archive_from_new_cmds=
8345 old_archive_from_expsyms_cmds=
8346 thread_safe_flag_spec=
8347 whole_archive_flag_spec=
8348 # include_expsyms should be a list of space-separated symbols to be *always*
8349 # included in the symbol list
8350 include_expsyms=
8351 # exclude_expsyms can be an extended regexp of symbols to exclude
8352 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8353 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8354 # as well as any symbol that contains `d'.
8355 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8356 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8357 # platforms (ab)use it in PIC code, but their linkers get confused if
8358 # the symbol is explicitly referenced. Since portable code cannot
8359 # rely on this symbol name, it's probably fine to never include it in
8360 # preloaded symbol tables.
8361 # Exclude shared library initialization/finalization symbols.
8362 extract_expsyms_cmds=
8363
8364 case $host_os in
8365 cygwin* | mingw* | pw32* | cegcc*)
8366 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8367 # When not using gcc, we currently assume that we are using
8368 # Microsoft Visual C++.
8369 if test "$GCC" != yes; then
8370 with_gnu_ld=no
8371 fi
8372 ;;
8373 interix*)
8374 # we just hope/assume this is gcc and not c89 (= MSVC++)
8375 with_gnu_ld=yes
8376 ;;
8377 openbsd*)
8378 with_gnu_ld=no
8379 ;;
8380 esac
8381
8382 ld_shlibs=yes
8383
8384 # On some targets, GNU ld is compatible enough with the native linker
8385 # that we're better off using the native interface for both.
8386 lt_use_gnu_ld_interface=no
8387 if test "$with_gnu_ld" = yes; then
8388 case $host_os in
8389 aix*)
8390 # The AIX port of GNU ld has always aspired to compatibility
8391 # with the native linker. However, as the warning in the GNU ld
8392 # block says, versions before 2.19.5* couldn't really create working
8393 # shared libraries, regardless of the interface used.
8394 case `$LD -v 2>&1` in
8395 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8396 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8397 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8398 *)
8399 lt_use_gnu_ld_interface=yes
8400 ;;
8401 esac
8402 ;;
8403 *)
8404 lt_use_gnu_ld_interface=yes
8405 ;;
8406 esac
8407 fi
8408
8409 if test "$lt_use_gnu_ld_interface" = yes; then
8410 # If archive_cmds runs LD, not CC, wlarc should be empty
8411 wlarc='${wl}'
8412
8413 # Set some defaults for GNU ld with shared library support. These
8414 # are reset later if shared libraries are not supported. Putting them
8415 # here allows them to be overridden if necessary.
8416 runpath_var=LD_RUN_PATH
8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 export_dynamic_flag_spec='${wl}--export-dynamic'
8419 # ancient GNU ld didn't support --whole-archive et. al.
8420 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8421 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8422 else
8423 whole_archive_flag_spec=
8424 fi
8425 supports_anon_versioning=no
8426 case `$LD -v 2>&1` in
8427 *GNU\ gold*) supports_anon_versioning=yes ;;
8428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8431 *\ 2.11.*) ;; # other 2.11 versions
8432 *) supports_anon_versioning=yes ;;
8433 esac
8434
8435 # See if GNU ld supports shared libraries.
8436 case $host_os in
8437 aix[3-9]*)
8438 # On AIX/PPC, the GNU linker is very broken
8439 if test "$host_cpu" != ia64; then
8440 ld_shlibs=no
8441 cat <<_LT_EOF 1>&2
8442
8443 *** Warning: the GNU linker, at least up to release 2.19, is reported
8444 *** to be unable to reliably create shared libraries on AIX.
8445 *** Therefore, libtool is disabling shared libraries support. If you
8446 *** really care for shared libraries, you may want to install binutils
8447 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8448 *** You will then need to restart the configuration process.
8449
8450 _LT_EOF
8451 fi
8452 ;;
8453
8454 amigaos*)
8455 case $host_cpu in
8456 powerpc)
8457 # see comment about AmigaOS4 .so support
8458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8459 archive_expsym_cmds=''
8460 ;;
8461 m68k)
8462 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)'
8463 hardcode_libdir_flag_spec='-L$libdir'
8464 hardcode_minus_L=yes
8465 ;;
8466 esac
8467 ;;
8468
8469 beos*)
8470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8471 allow_undefined_flag=unsupported
8472 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8473 # support --undefined. This deserves some investigation. FIXME
8474 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475 else
8476 ld_shlibs=no
8477 fi
8478 ;;
8479
8480 cygwin* | mingw* | pw32* | cegcc*)
8481 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8482 # as there is no search path for DLLs.
8483 hardcode_libdir_flag_spec='-L$libdir'
8484 export_dynamic_flag_spec='${wl}--export-all-symbols'
8485 allow_undefined_flag=unsupported
8486 always_export_symbols=no
8487 enable_shared_with_static_runtimes=yes
8488 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'
8489 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8490
8491 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8493 # If the export-symbols file already is a .def file (1st line
8494 # is EXPORTS), use it as is; otherwise, prepend...
8495 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8496 cp $export_symbols $output_objdir/$soname.def;
8497 else
8498 echo EXPORTS > $output_objdir/$soname.def;
8499 cat $export_symbols >> $output_objdir/$soname.def;
8500 fi~
8501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8502 else
8503 ld_shlibs=no
8504 fi
8505 ;;
8506
8507 haiku*)
8508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509 link_all_deplibs=yes
8510 ;;
8511
8512 interix[3-9]*)
8513 hardcode_direct=no
8514 hardcode_shlibpath_var=no
8515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8516 export_dynamic_flag_spec='${wl}-E'
8517 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8518 # Instead, shared libraries are loaded at an image base (0x10000000 by
8519 # default) and relocated if they conflict, which is a slow very memory
8520 # consuming and fragmenting process. To avoid this, we pick a random,
8521 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8522 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8524 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'
8525 ;;
8526
8527 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8528 tmp_diet=no
8529 if test "$host_os" = linux-dietlibc; then
8530 case $cc_basename in
8531 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8532 esac
8533 fi
8534 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8535 && test "$tmp_diet" = no
8536 then
8537 tmp_addflag=' $pic_flag'
8538 tmp_sharedflag='-shared'
8539 case $cc_basename,$host_cpu in
8540 pgcc*) # Portland Group C compiler
8541 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'
8542 tmp_addflag=' $pic_flag'
8543 ;;
8544 pgf77* | pgf90* | pgf95* | pgfortran*)
8545 # Portland Group f77 and f90 compilers
8546 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'
8547 tmp_addflag=' $pic_flag -Mnomain' ;;
8548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8549 tmp_addflag=' -i_dynamic' ;;
8550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8551 tmp_addflag=' -i_dynamic -nofor_main' ;;
8552 ifc* | ifort*) # Intel Fortran compiler
8553 tmp_addflag=' -nofor_main' ;;
8554 lf95*) # Lahey Fortran 8.1
8555 whole_archive_flag_spec=
8556 tmp_sharedflag='--shared' ;;
8557 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8558 tmp_sharedflag='-qmkshrobj'
8559 tmp_addflag= ;;
8560 nvcc*) # Cuda Compiler Driver 2.2
8561 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'
8562 compiler_needs_object=yes
8563 ;;
8564 esac
8565 case `$CC -V 2>&1 | sed 5q` in
8566 *Sun\ C*) # Sun C 5.9
8567 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'
8568 compiler_needs_object=yes
8569 tmp_sharedflag='-G' ;;
8570 *Sun\ F*) # Sun Fortran 8.3
8571 tmp_sharedflag='-G' ;;
8572 esac
8573 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574
8575 if test "x$supports_anon_versioning" = xyes; then
8576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8578 echo "local: *; };" >> $output_objdir/$libname.ver~
8579 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8580 fi
8581
8582 case $cc_basename in
8583 xlf* | bgf* | bgxlf* | mpixlf*)
8584 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8585 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8586 hardcode_libdir_flag_spec=
8587 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8588 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8589 if test "x$supports_anon_versioning" = xyes; then
8590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8592 echo "local: *; };" >> $output_objdir/$libname.ver~
8593 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8594 fi
8595 ;;
8596 esac
8597 else
8598 ld_shlibs=no
8599 fi
8600 ;;
8601
8602 netbsd*)
8603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8605 wlarc=
8606 else
8607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8609 fi
8610 ;;
8611
8612 solaris*)
8613 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8614 ld_shlibs=no
8615 cat <<_LT_EOF 1>&2
8616
8617 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8618 *** create shared libraries on Solaris systems. Therefore, libtool
8619 *** is disabling shared libraries support. We urge you to upgrade GNU
8620 *** binutils to release 2.9.1 or newer. Another option is to modify
8621 *** your PATH or compiler configuration so that the native linker is
8622 *** used, and then restart.
8623
8624 _LT_EOF
8625 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8628 else
8629 ld_shlibs=no
8630 fi
8631 ;;
8632
8633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8634 case `$LD -v 2>&1` in
8635 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8636 ld_shlibs=no
8637 cat <<_LT_EOF 1>&2
8638
8639 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8640 *** reliably create shared libraries on SCO systems. Therefore, libtool
8641 *** is disabling shared libraries support. We urge you to upgrade GNU
8642 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8643 *** your PATH or compiler configuration so that the native linker is
8644 *** used, and then restart.
8645
8646 _LT_EOF
8647 ;;
8648 *)
8649 # For security reasons, it is highly recommended that you always
8650 # use absolute paths for naming shared libraries, and exclude the
8651 # DT_RUNPATH tag from executables and libraries. But doing so
8652 # requires that you compile everything twice, which is a pain.
8653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661 esac
8662 ;;
8663
8664 sunos4*)
8665 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666 wlarc=
8667 hardcode_direct=yes
8668 hardcode_shlibpath_var=no
8669 ;;
8670
8671 *)
8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8675 else
8676 ld_shlibs=no
8677 fi
8678 ;;
8679 esac
8680
8681 if test "$ld_shlibs" = no; then
8682 runpath_var=
8683 hardcode_libdir_flag_spec=
8684 export_dynamic_flag_spec=
8685 whole_archive_flag_spec=
8686 fi
8687 else
8688 # PORTME fill in a description of your system's linker (not GNU ld)
8689 case $host_os in
8690 aix3*)
8691 allow_undefined_flag=unsupported
8692 always_export_symbols=yes
8693 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'
8694 # Note: this linker hardcodes the directories in LIBPATH if there
8695 # are no directories specified by -L.
8696 hardcode_minus_L=yes
8697 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8698 # Neither direct hardcoding nor static linking is supported with a
8699 # broken collect2.
8700 hardcode_direct=unsupported
8701 fi
8702 ;;
8703
8704 aix[4-9]*)
8705 if test "$host_cpu" = ia64; then
8706 # On IA64, the linker does run time linking by default, so we don't
8707 # have to do anything special.
8708 aix_use_runtimelinking=no
8709 exp_sym_flag='-Bexport'
8710 no_entry_flag=""
8711 else
8712 # If we're using GNU nm, then we don't want the "-C" option.
8713 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8714 # Also, AIX nm treats weak defined symbols like other global
8715 # defined symbols, whereas GNU nm marks them as "W".
8716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8717 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'
8718 else
8719 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'
8720 fi
8721 aix_use_runtimelinking=no
8722
8723 # Test if we are trying to use run time linking or normal
8724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8725 # need to do runtime linking.
8726 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8727 for ld_flag in $LDFLAGS; do
8728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8729 aix_use_runtimelinking=yes
8730 break
8731 fi
8732 done
8733 ;;
8734 esac
8735
8736 exp_sym_flag='-bexport'
8737 no_entry_flag='-bnoentry'
8738 fi
8739
8740 # When large executables or shared objects are built, AIX ld can
8741 # have problems creating the table of contents. If linking a library
8742 # or program results in "error TOC overflow" add -mminimal-toc to
8743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8745
8746 archive_cmds=''
8747 hardcode_direct=yes
8748 hardcode_direct_absolute=yes
8749 hardcode_libdir_separator=':'
8750 link_all_deplibs=yes
8751 file_list_spec='${wl}-f,'
8752
8753 if test "$GCC" = yes; then
8754 case $host_os in aix4.[012]|aix4.[012].*)
8755 # We only want to do this on AIX 4.2 and lower, the check
8756 # below for broken collect2 doesn't work under 4.3+
8757 collect2name=`${CC} -print-prog-name=collect2`
8758 if test -f "$collect2name" &&
8759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8760 then
8761 # We have reworked collect2
8762 :
8763 else
8764 # We have old collect2
8765 hardcode_direct=unsupported
8766 # It fails to find uninstalled libraries when the uninstalled
8767 # path is not listed in the libpath. Setting hardcode_minus_L
8768 # to unsupported forces relinking
8769 hardcode_minus_L=yes
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_libdir_separator=
8772 fi
8773 ;;
8774 esac
8775 shared_flag='-shared'
8776 if test "$aix_use_runtimelinking" = yes; then
8777 shared_flag="$shared_flag "'${wl}-G'
8778 fi
8779 else
8780 # not using gcc
8781 if test "$host_cpu" = ia64; then
8782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8783 # chokes on -Wl,-G. The following line is correct:
8784 shared_flag='-G'
8785 else
8786 if test "$aix_use_runtimelinking" = yes; then
8787 shared_flag='${wl}-G'
8788 else
8789 shared_flag='${wl}-bM:SRE'
8790 fi
8791 fi
8792 fi
8793
8794 export_dynamic_flag_spec='${wl}-bexpall'
8795 # It seems that -bexpall does not export symbols beginning with
8796 # underscore (_), so it is better to generate a list of symbols to export.
8797 always_export_symbols=yes
8798 if test "$aix_use_runtimelinking" = yes; then
8799 # Warning - without using the other runtime loading flags (-brtl),
8800 # -berok will link without error, but may produce a broken library.
8801 allow_undefined_flag='-berok'
8802 # Determine the default libpath from the value encoded in an
8803 # empty executable.
8804 if test "${lt_cv_aix_libpath+set}" = set; then
8805 aix_libpath=$lt_cv_aix_libpath
8806 else
8807 if ${lt_cv_aix_libpath_+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812
8813 int
8814 main ()
8815 {
8816
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
8822
8823 lt_aix_libpath_sed='
8824 /Import File Strings/,/^$/ {
8825 /^0/ {
8826 s/^0 *\([^ ]*\) *$/\1/
8827 p
8828 }
8829 }'
8830 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831 # Check for a 64-bit object if we didn't find anything.
8832 if test -z "$lt_cv_aix_libpath_"; then
8833 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8834 fi
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 if test -z "$lt_cv_aix_libpath_"; then
8839 lt_cv_aix_libpath_="/usr/lib:/lib"
8840 fi
8841
8842 fi
8843
8844 aix_libpath=$lt_cv_aix_libpath_
8845 fi
8846
8847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8848 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"
8849 else
8850 if test "$host_cpu" = ia64; then
8851 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8852 allow_undefined_flag="-z nodefs"
8853 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"
8854 else
8855 # Determine the default libpath from the value encoded in an
8856 # empty executable.
8857 if test "${lt_cv_aix_libpath+set}" = set; then
8858 aix_libpath=$lt_cv_aix_libpath
8859 else
8860 if ${lt_cv_aix_libpath_+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865
8866 int
8867 main ()
8868 {
8869
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875
8876 lt_aix_libpath_sed='
8877 /Import File Strings/,/^$/ {
8878 /^0/ {
8879 s/^0 *\([^ ]*\) *$/\1/
8880 p
8881 }
8882 }'
8883 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 # Check for a 64-bit object if we didn't find anything.
8885 if test -z "$lt_cv_aix_libpath_"; then
8886 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 fi
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 if test -z "$lt_cv_aix_libpath_"; then
8892 lt_cv_aix_libpath_="/usr/lib:/lib"
8893 fi
8894
8895 fi
8896
8897 aix_libpath=$lt_cv_aix_libpath_
8898 fi
8899
8900 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8901 # Warning - without using the other run time loading flags,
8902 # -berok will link without error, but may produce a broken library.
8903 no_undefined_flag=' ${wl}-bernotok'
8904 allow_undefined_flag=' ${wl}-berok'
8905 if test "$with_gnu_ld" = yes; then
8906 # We only use this code for GNU lds that support --whole-archive.
8907 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8908 else
8909 # Exported symbols can be pulled into shared objects from archives
8910 whole_archive_flag_spec='$convenience'
8911 fi
8912 archive_cmds_need_lc=yes
8913 # This is similar to how AIX traditionally builds its shared libraries.
8914 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'
8915 fi
8916 fi
8917 ;;
8918
8919 amigaos*)
8920 case $host_cpu in
8921 powerpc)
8922 # see comment about AmigaOS4 .so support
8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 archive_expsym_cmds=''
8925 ;;
8926 m68k)
8927 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)'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_minus_L=yes
8930 ;;
8931 esac
8932 ;;
8933
8934 bsdi[45]*)
8935 export_dynamic_flag_spec=-rdynamic
8936 ;;
8937
8938 cygwin* | mingw* | pw32* | cegcc*)
8939 # When not using gcc, we currently assume that we are using
8940 # Microsoft Visual C++.
8941 # hardcode_libdir_flag_spec is actually meaningless, as there is
8942 # no search path for DLLs.
8943 case $cc_basename in
8944 cl*)
8945 # Native MSVC
8946 hardcode_libdir_flag_spec=' '
8947 allow_undefined_flag=unsupported
8948 always_export_symbols=yes
8949 file_list_spec='@'
8950 # Tell ltmain to make .lib files, not .a files.
8951 libext=lib
8952 # Tell ltmain to make .dll files, not .so files.
8953 shrext_cmds=".dll"
8954 # FIXME: Setting linknames here is a bad hack.
8955 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8956 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8957 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8958 else
8959 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8960 fi~
8961 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8962 linknames='
8963 # The linker will not automatically build a static lib if we build a DLL.
8964 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8965 enable_shared_with_static_runtimes=yes
8966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8967 # Don't use ranlib
8968 old_postinstall_cmds='chmod 644 $oldlib'
8969 postlink_cmds='lt_outputfile="@OUTPUT@"~
8970 lt_tool_outputfile="@TOOL_OUTPUT@"~
8971 case $lt_outputfile in
8972 *.exe|*.EXE) ;;
8973 *)
8974 lt_outputfile="$lt_outputfile.exe"
8975 lt_tool_outputfile="$lt_tool_outputfile.exe"
8976 ;;
8977 esac~
8978 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8979 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8980 $RM "$lt_outputfile.manifest";
8981 fi'
8982 ;;
8983 *)
8984 # Assume MSVC wrapper
8985 hardcode_libdir_flag_spec=' '
8986 allow_undefined_flag=unsupported
8987 # Tell ltmain to make .lib files, not .a files.
8988 libext=lib
8989 # Tell ltmain to make .dll files, not .so files.
8990 shrext_cmds=".dll"
8991 # FIXME: Setting linknames here is a bad hack.
8992 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8993 # The linker will automatically build a .lib file if we build a DLL.
8994 old_archive_from_new_cmds='true'
8995 # FIXME: Should let the user specify the lib program.
8996 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8997 enable_shared_with_static_runtimes=yes
8998 ;;
8999 esac
9000 ;;
9001
9002 darwin* | rhapsody*)
9003
9004
9005 archive_cmds_need_lc=no
9006 hardcode_direct=no
9007 hardcode_automatic=yes
9008 hardcode_shlibpath_var=unsupported
9009 if test "$lt_cv_ld_force_load" = "yes"; then
9010 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\"`'
9011 else
9012 whole_archive_flag_spec=''
9013 fi
9014 link_all_deplibs=yes
9015 allow_undefined_flag="$_lt_dar_allow_undefined"
9016 case $cc_basename in
9017 ifort*) _lt_dar_can_shared=yes ;;
9018 *) _lt_dar_can_shared=$GCC ;;
9019 esac
9020 if test "$_lt_dar_can_shared" = "yes"; then
9021 output_verbose_link_cmd=func_echo_all
9022 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9023 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9024 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}"
9025 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}"
9026
9027 else
9028 ld_shlibs=no
9029 fi
9030
9031 ;;
9032
9033 dgux*)
9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_shlibpath_var=no
9037 ;;
9038
9039 freebsd1*)
9040 ld_shlibs=no
9041 ;;
9042
9043 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9044 # support. Future versions do this automatically, but an explicit c++rt0.o
9045 # does not break anything, and helps significantly (at the cost of a little
9046 # extra space).
9047 freebsd2.2*)
9048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9049 hardcode_libdir_flag_spec='-R$libdir'
9050 hardcode_direct=yes
9051 hardcode_shlibpath_var=no
9052 ;;
9053
9054 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9055 freebsd2*)
9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_direct=yes
9058 hardcode_minus_L=yes
9059 hardcode_shlibpath_var=no
9060 ;;
9061
9062 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9063 freebsd* | dragonfly*)
9064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9065 hardcode_libdir_flag_spec='-R$libdir'
9066 hardcode_direct=yes
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 hpux9*)
9071 if test "$GCC" = yes; then
9072 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'
9073 else
9074 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'
9075 fi
9076 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9077 hardcode_libdir_separator=:
9078 hardcode_direct=yes
9079
9080 # hardcode_minus_L: Not really in the search PATH,
9081 # but as the default location of the library.
9082 hardcode_minus_L=yes
9083 export_dynamic_flag_spec='${wl}-E'
9084 ;;
9085
9086 hpux10*)
9087 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9088 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9089 else
9090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9091 fi
9092 if test "$with_gnu_ld" = no; then
9093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9094 hardcode_libdir_flag_spec_ld='+b $libdir'
9095 hardcode_libdir_separator=:
9096 hardcode_direct=yes
9097 hardcode_direct_absolute=yes
9098 export_dynamic_flag_spec='${wl}-E'
9099 # hardcode_minus_L: Not really in the search PATH,
9100 # but as the default location of the library.
9101 hardcode_minus_L=yes
9102 fi
9103 ;;
9104
9105 hpux11*)
9106 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9107 case $host_cpu in
9108 hppa*64*)
9109 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 ;;
9111 ia64*)
9112 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9113 ;;
9114 *)
9115 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9116 ;;
9117 esac
9118 else
9119 case $host_cpu in
9120 hppa*64*)
9121 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9122 ;;
9123 ia64*)
9124 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9125 ;;
9126 *)
9127
9128 # Older versions of the 11.00 compiler do not understand -b yet
9129 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9131 $as_echo_n "checking if $CC understands -b... " >&6; }
9132 if ${lt_cv_prog_compiler__b+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 lt_cv_prog_compiler__b=no
9136 save_LDFLAGS="$LDFLAGS"
9137 LDFLAGS="$LDFLAGS -b"
9138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9140 # The linker can only warn and ignore the option if not recognized
9141 # So say no if there are warnings
9142 if test -s conftest.err; then
9143 # Append any errors to the config.log.
9144 cat conftest.err 1>&5
9145 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9147 if diff conftest.exp conftest.er2 >/dev/null; then
9148 lt_cv_prog_compiler__b=yes
9149 fi
9150 else
9151 lt_cv_prog_compiler__b=yes
9152 fi
9153 fi
9154 $RM -r conftest*
9155 LDFLAGS="$save_LDFLAGS"
9156
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9159 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9160
9161 if test x"$lt_cv_prog_compiler__b" = xyes; then
9162 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163 else
9164 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9165 fi
9166
9167 ;;
9168 esac
9169 fi
9170 if test "$with_gnu_ld" = no; then
9171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9172 hardcode_libdir_separator=:
9173
9174 case $host_cpu in
9175 hppa*64*|ia64*)
9176 hardcode_direct=no
9177 hardcode_shlibpath_var=no
9178 ;;
9179 *)
9180 hardcode_direct=yes
9181 hardcode_direct_absolute=yes
9182 export_dynamic_flag_spec='${wl}-E'
9183
9184 # hardcode_minus_L: Not really in the search PATH,
9185 # but as the default location of the library.
9186 hardcode_minus_L=yes
9187 ;;
9188 esac
9189 fi
9190 ;;
9191
9192 irix5* | irix6* | nonstopux*)
9193 if test "$GCC" = yes; then
9194 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'
9195 # Try to use the -exported_symbol ld option, if it does not
9196 # work, assume that -exports_file does not work either and
9197 # implicitly export all symbols.
9198 # This should be the same for all languages, so no per-tag cache variable.
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9200 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9201 if ${lt_cv_irix_exported_symbol+:} false; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 save_LDFLAGS="$LDFLAGS"
9205 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int foo (void) { return 0; }
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 lt_cv_irix_exported_symbol=yes
9212 else
9213 lt_cv_irix_exported_symbol=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 LDFLAGS="$save_LDFLAGS"
9218 fi
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9220 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9221 if test "$lt_cv_irix_exported_symbol" = yes; then
9222 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'
9223 fi
9224 else
9225 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'
9226 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'
9227 fi
9228 archive_cmds_need_lc='no'
9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230 hardcode_libdir_separator=:
9231 inherit_rpath=yes
9232 link_all_deplibs=yes
9233 ;;
9234
9235 netbsd*)
9236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9238 else
9239 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9240 fi
9241 hardcode_libdir_flag_spec='-R$libdir'
9242 hardcode_direct=yes
9243 hardcode_shlibpath_var=no
9244 ;;
9245
9246 newsos6)
9247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248 hardcode_direct=yes
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 hardcode_libdir_separator=:
9251 hardcode_shlibpath_var=no
9252 ;;
9253
9254 *nto* | *qnx*)
9255 ;;
9256
9257 openbsd*)
9258 if test -f /usr/libexec/ld.so; then
9259 hardcode_direct=yes
9260 hardcode_shlibpath_var=no
9261 hardcode_direct_absolute=yes
9262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266 export_dynamic_flag_spec='${wl}-E'
9267 else
9268 case $host_os in
9269 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9271 hardcode_libdir_flag_spec='-R$libdir'
9272 ;;
9273 *)
9274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276 ;;
9277 esac
9278 fi
9279 else
9280 ld_shlibs=no
9281 fi
9282 ;;
9283
9284 os2*)
9285 hardcode_libdir_flag_spec='-L$libdir'
9286 hardcode_minus_L=yes
9287 allow_undefined_flag=unsupported
9288 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'
9289 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9290 ;;
9291
9292 osf3*)
9293 if test "$GCC" = yes; then
9294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9295 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'
9296 else
9297 allow_undefined_flag=' -expect_unresolved \*'
9298 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'
9299 fi
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 hardcode_libdir_separator=:
9303 ;;
9304
9305 osf4* | osf5*) # as osf3* with the addition of -msym flag
9306 if test "$GCC" = yes; then
9307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9308 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'
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 else
9311 allow_undefined_flag=' -expect_unresolved \*'
9312 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'
9313 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~
9314 $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'
9315
9316 # Both c and cxx compiler support -rpath directly
9317 hardcode_libdir_flag_spec='-rpath $libdir'
9318 fi
9319 archive_cmds_need_lc='no'
9320 hardcode_libdir_separator=:
9321 ;;
9322
9323 solaris*)
9324 no_undefined_flag=' -z defs'
9325 if test "$GCC" = yes; then
9326 wlarc='${wl}'
9327 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9329 $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'
9330 else
9331 case `$CC -V 2>&1` in
9332 *"Compilers 5.0"*)
9333 wlarc=''
9334 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9337 ;;
9338 *)
9339 wlarc='${wl}'
9340 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9342 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9343 ;;
9344 esac
9345 fi
9346 hardcode_libdir_flag_spec='-R$libdir'
9347 hardcode_shlibpath_var=no
9348 case $host_os in
9349 solaris2.[0-5] | solaris2.[0-5].*) ;;
9350 *)
9351 # The compiler driver will combine and reorder linker options,
9352 # but understands `-z linker_flag'. GCC discards it without `$wl',
9353 # but is careful enough not to reorder.
9354 # Supported since Solaris 2.6 (maybe 2.5.1?)
9355 if test "$GCC" = yes; then
9356 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9357 else
9358 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9359 fi
9360 ;;
9361 esac
9362 link_all_deplibs=yes
9363 ;;
9364
9365 sunos4*)
9366 if test "x$host_vendor" = xsequent; then
9367 # Use $CC to link under sequent, because it throws in some extra .o
9368 # files that make .init and .fini sections work.
9369 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9370 else
9371 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9372 fi
9373 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_direct=yes
9375 hardcode_minus_L=yes
9376 hardcode_shlibpath_var=no
9377 ;;
9378
9379 sysv4)
9380 case $host_vendor in
9381 sni)
9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_direct=yes # is this really true???
9384 ;;
9385 siemens)
9386 ## LD is ld it makes a PLAMLIB
9387 ## CC just makes a GrossModule.
9388 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9389 reload_cmds='$CC -r -o $output$reload_objs'
9390 hardcode_direct=no
9391 ;;
9392 motorola)
9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9395 ;;
9396 esac
9397 runpath_var='LD_RUN_PATH'
9398 hardcode_shlibpath_var=no
9399 ;;
9400
9401 sysv4.3*)
9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_shlibpath_var=no
9404 export_dynamic_flag_spec='-Bexport'
9405 ;;
9406
9407 sysv4*MP*)
9408 if test -d /usr/nec; then
9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var=no
9411 runpath_var=LD_RUN_PATH
9412 hardcode_runpath_var=yes
9413 ld_shlibs=yes
9414 fi
9415 ;;
9416
9417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9418 no_undefined_flag='${wl}-z,text'
9419 archive_cmds_need_lc=no
9420 hardcode_shlibpath_var=no
9421 runpath_var='LD_RUN_PATH'
9422
9423 if test "$GCC" = yes; then
9424 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 else
9427 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 fi
9430 ;;
9431
9432 sysv5* | sco3.2v5* | sco5v6*)
9433 # Note: We can NOT use -z defs as we might desire, because we do not
9434 # link with -lc, and that would cause any symbols used from libc to
9435 # always be unresolved, which means just about no library would
9436 # ever link correctly. If we're not using GNU ld we use -z text
9437 # though, which does catch some bad symbols but isn't as heavy-handed
9438 # as -z defs.
9439 no_undefined_flag='${wl}-z,text'
9440 allow_undefined_flag='${wl}-z,nodefs'
9441 archive_cmds_need_lc=no
9442 hardcode_shlibpath_var=no
9443 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9444 hardcode_libdir_separator=':'
9445 link_all_deplibs=yes
9446 export_dynamic_flag_spec='${wl}-Bexport'
9447 runpath_var='LD_RUN_PATH'
9448
9449 if test "$GCC" = yes; then
9450 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 else
9453 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 fi
9456 ;;
9457
9458 uts4*)
9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 hardcode_shlibpath_var=no
9462 ;;
9463
9464 *)
9465 ld_shlibs=no
9466 ;;
9467 esac
9468
9469 if test x$host_vendor = xsni; then
9470 case $host in
9471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9472 export_dynamic_flag_spec='${wl}-Blargedynsym'
9473 ;;
9474 esac
9475 fi
9476 fi
9477
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9479 $as_echo "$ld_shlibs" >&6; }
9480 test "$ld_shlibs" = no && can_build_shared=no
9481
9482 with_gnu_ld=$with_gnu_ld
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498 #
9499 # Do we need to explicitly link libc?
9500 #
9501 case "x$archive_cmds_need_lc" in
9502 x|xyes)
9503 # Assume -lc should be added
9504 archive_cmds_need_lc=yes
9505
9506 if test "$enable_shared" = yes && test "$GCC" = yes; then
9507 case $archive_cmds in
9508 *'~'*)
9509 # FIXME: we may have to deal with multi-command sequences.
9510 ;;
9511 '$CC '*)
9512 # Test whether the compiler implicitly links with -lc since on some
9513 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9514 # to ld, don't add -lc before -lgcc.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9516 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9517 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 $RM conftest*
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522
9523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9524 (eval $ac_compile) 2>&5
9525 ac_status=$?
9526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9527 test $ac_status = 0; } 2>conftest.err; then
9528 soname=conftest
9529 lib=conftest
9530 libobjs=conftest.$ac_objext
9531 deplibs=
9532 wl=$lt_prog_compiler_wl
9533 pic_flag=$lt_prog_compiler_pic
9534 compiler_flags=-v
9535 linker_flags=-v
9536 verstring=
9537 output_objdir=.
9538 libname=conftest
9539 lt_save_allow_undefined_flag=$allow_undefined_flag
9540 allow_undefined_flag=
9541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9542 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9543 ac_status=$?
9544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9545 test $ac_status = 0; }
9546 then
9547 lt_cv_archive_cmds_need_lc=no
9548 else
9549 lt_cv_archive_cmds_need_lc=yes
9550 fi
9551 allow_undefined_flag=$lt_save_allow_undefined_flag
9552 else
9553 cat conftest.err 1>&5
9554 fi
9555 $RM conftest*
9556
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9559 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9560 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9561 ;;
9562 esac
9563 fi
9564 ;;
9565 esac
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9725
9726 if test "$GCC" = yes; then
9727 case $host_os in
9728 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9729 *) lt_awk_arg="/^libraries:/" ;;
9730 esac
9731 case $host_os in
9732 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9733 *) lt_sed_strip_eq="s,=/,/,g" ;;
9734 esac
9735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9736 case $lt_search_path_spec in
9737 *\;*)
9738 # if the path contains ";" then we assume it to be the separator
9739 # otherwise default to the standard path separator (i.e. ":") - it is
9740 # assumed that no part of a normal pathname contains ";" but that should
9741 # okay in the real world where ";" in dirpaths is itself problematic.
9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9743 ;;
9744 *)
9745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9746 ;;
9747 esac
9748 # Ok, now we have the path, separated by spaces, we can step through it
9749 # and add multilib dir if necessary.
9750 lt_tmp_lt_search_path_spec=
9751 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9752 for lt_sys_path in $lt_search_path_spec; do
9753 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9755 else
9756 test -d "$lt_sys_path" && \
9757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9758 fi
9759 done
9760 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9761 BEGIN {RS=" "; FS="/|\n";} {
9762 lt_foo="";
9763 lt_count=0;
9764 for (lt_i = NF; lt_i > 0; lt_i--) {
9765 if ($lt_i != "" && $lt_i != ".") {
9766 if ($lt_i == "..") {
9767 lt_count++;
9768 } else {
9769 if (lt_count == 0) {
9770 lt_foo="/" $lt_i lt_foo;
9771 } else {
9772 lt_count--;
9773 }
9774 }
9775 }
9776 }
9777 if (lt_foo != "") { lt_freq[lt_foo]++; }
9778 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9779 }'`
9780 # AWK program above erroneously prepends '/' to C:/dos/paths
9781 # for these hosts.
9782 case $host_os in
9783 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9784 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9785 esac
9786 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9787 else
9788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9789 fi
9790 library_names_spec=
9791 libname_spec='lib$name'
9792 soname_spec=
9793 shrext_cmds=".so"
9794 postinstall_cmds=
9795 postuninstall_cmds=
9796 finish_cmds=
9797 finish_eval=
9798 shlibpath_var=
9799 shlibpath_overrides_runpath=unknown
9800 version_type=none
9801 dynamic_linker="$host_os ld.so"
9802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9803 need_lib_prefix=unknown
9804 hardcode_into_libs=no
9805
9806 # when you set need_version to no, make sure it does not cause -set_version
9807 # flags to be left without arguments
9808 need_version=unknown
9809
9810 case $host_os in
9811 aix3*)
9812 version_type=linux
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9814 shlibpath_var=LIBPATH
9815
9816 # AIX 3 has no versioning support, so we append a major version to the name.
9817 soname_spec='${libname}${release}${shared_ext}$major'
9818 ;;
9819
9820 aix[4-9]*)
9821 version_type=linux
9822 need_lib_prefix=no
9823 need_version=no
9824 hardcode_into_libs=yes
9825 if test "$host_cpu" = ia64; then
9826 # AIX 5 supports IA64
9827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 else
9830 # With GCC up to 2.95.x, collect2 would create an import file
9831 # for dependence libraries. The import file would start with
9832 # the line `#! .'. This would cause the generated library to
9833 # depend on `.', always an invalid library. This was fixed in
9834 # development snapshots of GCC prior to 3.0.
9835 case $host_os in
9836 aix4 | aix4.[01] | aix4.[01].*)
9837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9838 echo ' yes '
9839 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9840 :
9841 else
9842 can_build_shared=no
9843 fi
9844 ;;
9845 esac
9846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9847 # soname into executable. Probably we can add versioning support to
9848 # collect2, so additional links can be useful in future.
9849 if test "$aix_use_runtimelinking" = yes; then
9850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9851 # instead of lib<name>.a to let people know that these are not
9852 # typical AIX shared libraries.
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 else
9855 # We preserve .a as extension for shared libraries through AIX4.2
9856 # and later when we are not doing run time linking.
9857 library_names_spec='${libname}${release}.a $libname.a'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 fi
9860 shlibpath_var=LIBPATH
9861 fi
9862 ;;
9863
9864 amigaos*)
9865 case $host_cpu in
9866 powerpc)
9867 # Since July 2007 AmigaOS4 officially supports .so libraries.
9868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 ;;
9871 m68k)
9872 library_names_spec='$libname.ixlibrary $libname.a'
9873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9874 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'
9875 ;;
9876 esac
9877 ;;
9878
9879 beos*)
9880 library_names_spec='${libname}${shared_ext}'
9881 dynamic_linker="$host_os ld.so"
9882 shlibpath_var=LIBRARY_PATH
9883 ;;
9884
9885 bsdi[45]*)
9886 version_type=linux
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9894 # the default ld.so.conf also contains /usr/contrib/lib and
9895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9896 # libtool to hard-code these into programs
9897 ;;
9898
9899 cygwin* | mingw* | pw32* | cegcc*)
9900 version_type=windows
9901 shrext_cmds=".dll"
9902 need_version=no
9903 need_lib_prefix=no
9904
9905 case $GCC,$cc_basename in
9906 yes,*)
9907 # gcc
9908 library_names_spec='$libname.dll.a'
9909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9910 postinstall_cmds='base_file=`basename \${file}`~
9911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9912 dldir=$destdir/`dirname \$dlpath`~
9913 test -d \$dldir || mkdir -p \$dldir~
9914 $install_prog $dir/$dlname \$dldir/$dlname~
9915 chmod a+x \$dldir/$dlname~
9916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9918 fi'
9919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9920 dlpath=$dir/\$dldll~
9921 $RM \$dlpath'
9922 shlibpath_overrides_runpath=yes
9923
9924 case $host_os in
9925 cygwin*)
9926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928
9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9930 ;;
9931 mingw* | cegcc*)
9932 # MinGW DLLs use traditional 'lib' prefix
9933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 ;;
9935 pw32*)
9936 # pw32 DLLs use 'pw' prefix rather than 'lib'
9937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9938 ;;
9939 esac
9940 dynamic_linker='Win32 ld.exe'
9941 ;;
9942
9943 *,cl*)
9944 # Native MSVC
9945 libname_spec='$name'
9946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 library_names_spec='${libname}.dll.lib'
9948
9949 case $build_os in
9950 mingw*)
9951 sys_lib_search_path_spec=
9952 lt_save_ifs=$IFS
9953 IFS=';'
9954 for lt_path in $LIB
9955 do
9956 IFS=$lt_save_ifs
9957 # Let DOS variable expansion print the short 8.3 style file name.
9958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9960 done
9961 IFS=$lt_save_ifs
9962 # Convert to MSYS style.
9963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9964 ;;
9965 cygwin*)
9966 # Convert to unix form, then to dos form, then back to unix form
9967 # but this time dos style (no spaces!) so that the unix form looks
9968 # like /cygdrive/c/PROGRA~1:/cygdr...
9969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9972 ;;
9973 *)
9974 sys_lib_search_path_spec="$LIB"
9975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9976 # It is most probably a Windows format PATH.
9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9978 else
9979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9980 fi
9981 # FIXME: find the short name or the path components, as spaces are
9982 # common. (e.g. "Program Files" -> "PROGRA~1")
9983 ;;
9984 esac
9985
9986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9987 postinstall_cmds='base_file=`basename \${file}`~
9988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9989 dldir=$destdir/`dirname \$dlpath`~
9990 test -d \$dldir || mkdir -p \$dldir~
9991 $install_prog $dir/$dlname \$dldir/$dlname'
9992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9993 dlpath=$dir/\$dldll~
9994 $RM \$dlpath'
9995 shlibpath_overrides_runpath=yes
9996 dynamic_linker='Win32 link.exe'
9997 ;;
9998
9999 *)
10000 # Assume MSVC wrapper
10001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10002 dynamic_linker='Win32 ld.exe'
10003 ;;
10004 esac
10005 # FIXME: first we should search . and the directory the executable is in
10006 shlibpath_var=PATH
10007 ;;
10008
10009 darwin* | rhapsody*)
10010 dynamic_linker="$host_os dyld"
10011 version_type=darwin
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10015 soname_spec='${libname}${release}${major}$shared_ext'
10016 shlibpath_overrides_runpath=yes
10017 shlibpath_var=DYLD_LIBRARY_PATH
10018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10019
10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10022 ;;
10023
10024 dgux*)
10025 version_type=linux
10026 need_lib_prefix=no
10027 need_version=no
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 ;;
10032
10033 freebsd1*)
10034 dynamic_linker=no
10035 ;;
10036
10037 freebsd* | dragonfly*)
10038 # DragonFly does not have aout. When/if they implement a new
10039 # versioning mechanism, adjust this.
10040 if test -x /usr/bin/objformat; then
10041 objformat=`/usr/bin/objformat`
10042 else
10043 case $host_os in
10044 freebsd[123]*) objformat=aout ;;
10045 *) objformat=elf ;;
10046 esac
10047 fi
10048 version_type=freebsd-$objformat
10049 case $version_type in
10050 freebsd-elf*)
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10052 need_version=no
10053 need_lib_prefix=no
10054 ;;
10055 freebsd-*)
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10057 need_version=yes
10058 ;;
10059 esac
10060 shlibpath_var=LD_LIBRARY_PATH
10061 case $host_os in
10062 freebsd2*)
10063 shlibpath_overrides_runpath=yes
10064 ;;
10065 freebsd3.[01]* | freebsdelf3.[01]*)
10066 shlibpath_overrides_runpath=yes
10067 hardcode_into_libs=yes
10068 ;;
10069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10073 ;;
10074 *) # from 4.6 on, and DragonFly
10075 shlibpath_overrides_runpath=yes
10076 hardcode_into_libs=yes
10077 ;;
10078 esac
10079 ;;
10080
10081 gnu*)
10082 version_type=linux
10083 need_lib_prefix=no
10084 need_version=no
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 hardcode_into_libs=yes
10089 ;;
10090
10091 haiku*)
10092 version_type=linux
10093 need_lib_prefix=no
10094 need_version=no
10095 dynamic_linker="$host_os runtime_loader"
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LIBRARY_PATH
10099 shlibpath_overrides_runpath=yes
10100 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10101 hardcode_into_libs=yes
10102 ;;
10103
10104 hpux9* | hpux10* | hpux11*)
10105 # Give a soname corresponding to the major version so that dld.sl refuses to
10106 # link against other versions.
10107 version_type=sunos
10108 need_lib_prefix=no
10109 need_version=no
10110 case $host_cpu in
10111 ia64*)
10112 shrext_cmds='.so'
10113 hardcode_into_libs=yes
10114 dynamic_linker="$host_os dld.so"
10115 shlibpath_var=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 if test "X$HPUX_IA64_MODE" = X32; then
10120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10121 else
10122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10123 fi
10124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10125 ;;
10126 hppa*64*)
10127 shrext_cmds='.sl'
10128 hardcode_into_libs=yes
10129 dynamic_linker="$host_os dld.sl"
10130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10136 ;;
10137 *)
10138 shrext_cmds='.sl'
10139 dynamic_linker="$host_os dld.sl"
10140 shlibpath_var=SHLIB_PATH
10141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 ;;
10145 esac
10146 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10147 postinstall_cmds='chmod 555 $lib'
10148 # or fails outright, so override atomically:
10149 install_override_mode=555
10150 ;;
10151
10152 interix[3-9]*)
10153 version_type=linux
10154 need_lib_prefix=no
10155 need_version=no
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10162 ;;
10163
10164 irix5* | irix6* | nonstopux*)
10165 case $host_os in
10166 nonstopux*) version_type=nonstopux ;;
10167 *)
10168 if test "$lt_cv_prog_gnu_ld" = yes; then
10169 version_type=linux
10170 else
10171 version_type=irix
10172 fi ;;
10173 esac
10174 need_lib_prefix=no
10175 need_version=no
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10178 case $host_os in
10179 irix5* | nonstopux*)
10180 libsuff= shlibsuff=
10181 ;;
10182 *)
10183 case $LD in # libtool.m4 will add one of these switches to LD
10184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10185 libsuff= shlibsuff= libmagic=32-bit;;
10186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10187 libsuff=32 shlibsuff=N32 libmagic=N32;;
10188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10190 *) libsuff= shlibsuff= libmagic=never-match;;
10191 esac
10192 ;;
10193 esac
10194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10195 shlibpath_overrides_runpath=no
10196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10198 hardcode_into_libs=yes
10199 ;;
10200
10201 # No shared lib support for Linux oldld, aout, or coff.
10202 linux*oldld* | linux*aout* | linux*coff*)
10203 dynamic_linker=no
10204 ;;
10205
10206 # This must be Linux ELF.
10207 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10208 version_type=linux
10209 need_lib_prefix=no
10210 need_version=no
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=no
10216
10217 # Some binutils ld are patched to set DT_RUNPATH
10218 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 lt_cv_shlibpath_overrides_runpath=no
10222 save_LDFLAGS=$LDFLAGS
10223 save_libdir=$libdir
10224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228
10229 int
10230 main ()
10231 {
10232
10233 ;
10234 return 0;
10235 }
10236 _ACEOF
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10239 lt_cv_shlibpath_overrides_runpath=yes
10240 fi
10241 fi
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LDFLAGS=$save_LDFLAGS
10245 libdir=$save_libdir
10246
10247 fi
10248
10249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10250
10251 # This implies no fast_install, which is unacceptable.
10252 # Some rework will be needed to allow for fast_install
10253 # before this can be enabled.
10254 hardcode_into_libs=yes
10255
10256 # Append ld.so.conf contents to the search path
10257 if test -f /etc/ld.so.conf; then
10258 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' ' '`
10259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10260 fi
10261
10262 # We used to test for /lib/ld.so.1 and disable shared libraries on
10263 # powerpc, because MkLinux only supported shared libraries with the
10264 # GNU dynamic linker. Since this was broken with cross compilers,
10265 # most powerpc-linux boxes support dynamic linking these days and
10266 # people can always --disable-shared, the test was removed, and we
10267 # assume the GNU/Linux dynamic linker is in use.
10268 dynamic_linker='GNU/Linux ld.so'
10269 ;;
10270
10271 netbsd*)
10272 version_type=sunos
10273 need_lib_prefix=no
10274 need_version=no
10275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10278 dynamic_linker='NetBSD (a.out) ld.so'
10279 else
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 dynamic_linker='NetBSD ld.elf_so'
10283 fi
10284 shlibpath_var=LD_LIBRARY_PATH
10285 shlibpath_overrides_runpath=yes
10286 hardcode_into_libs=yes
10287 ;;
10288
10289 newsos6)
10290 version_type=linux
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=yes
10294 ;;
10295
10296 *nto* | *qnx*)
10297 version_type=qnx
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=no
10304 hardcode_into_libs=yes
10305 dynamic_linker='ldqnx.so'
10306 ;;
10307
10308 openbsd*)
10309 version_type=sunos
10310 sys_lib_dlsearch_path_spec="/usr/lib"
10311 need_lib_prefix=no
10312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10313 case $host_os in
10314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10315 *) need_version=no ;;
10316 esac
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10321 case $host_os in
10322 openbsd2.[89] | openbsd2.[89].*)
10323 shlibpath_overrides_runpath=no
10324 ;;
10325 *)
10326 shlibpath_overrides_runpath=yes
10327 ;;
10328 esac
10329 else
10330 shlibpath_overrides_runpath=yes
10331 fi
10332 ;;
10333
10334 os2*)
10335 libname_spec='$name'
10336 shrext_cmds=".dll"
10337 need_lib_prefix=no
10338 library_names_spec='$libname${shared_ext} $libname.a'
10339 dynamic_linker='OS/2 ld.exe'
10340 shlibpath_var=LIBPATH
10341 ;;
10342
10343 osf3* | osf4* | osf5*)
10344 version_type=osf
10345 need_lib_prefix=no
10346 need_version=no
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10352 ;;
10353
10354 rdos*)
10355 dynamic_linker=no
10356 ;;
10357
10358 solaris*)
10359 version_type=linux
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 hardcode_into_libs=yes
10367 # ldd complains unless libraries are executable
10368 postinstall_cmds='chmod +x $lib'
10369 ;;
10370
10371 sunos4*)
10372 version_type=sunos
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=yes
10377 if test "$with_gnu_ld" = yes; then
10378 need_lib_prefix=no
10379 fi
10380 need_version=yes
10381 ;;
10382
10383 sysv4 | sysv4.3*)
10384 version_type=linux
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 case $host_vendor in
10389 sni)
10390 shlibpath_overrides_runpath=no
10391 need_lib_prefix=no
10392 runpath_var=LD_RUN_PATH
10393 ;;
10394 siemens)
10395 need_lib_prefix=no
10396 ;;
10397 motorola)
10398 need_lib_prefix=no
10399 need_version=no
10400 shlibpath_overrides_runpath=no
10401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10402 ;;
10403 esac
10404 ;;
10405
10406 sysv4*MP*)
10407 if test -d /usr/nec ;then
10408 version_type=linux
10409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10410 soname_spec='$libname${shared_ext}.$major'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 fi
10413 ;;
10414
10415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10416 version_type=freebsd-elf
10417 need_lib_prefix=no
10418 need_version=no
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=yes
10423 hardcode_into_libs=yes
10424 if test "$with_gnu_ld" = yes; then
10425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10426 else
10427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10428 case $host_os in
10429 sco3.2v5*)
10430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10431 ;;
10432 esac
10433 fi
10434 sys_lib_dlsearch_path_spec='/usr/lib'
10435 ;;
10436
10437 tpf*)
10438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10439 version_type=linux
10440 need_lib_prefix=no
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=no
10445 hardcode_into_libs=yes
10446 ;;
10447
10448 uts4*)
10449 version_type=linux
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 ;;
10454
10455 *)
10456 dynamic_linker=no
10457 ;;
10458 esac
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10460 $as_echo "$dynamic_linker" >&6; }
10461 test "$dynamic_linker" = no && can_build_shared=no
10462
10463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10464 if test "$GCC" = yes; then
10465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10466 fi
10467
10468 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10470 fi
10471 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10473 fi
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10568 hardcode_action=
10569 if test -n "$hardcode_libdir_flag_spec" ||
10570 test -n "$runpath_var" ||
10571 test "X$hardcode_automatic" = "Xyes" ; then
10572
10573 # We can hardcode non-existent directories.
10574 if test "$hardcode_direct" != no &&
10575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10576 # have to relink, otherwise we might link with an installed library
10577 # when we should be linking with a yet-to-be-installed one
10578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10579 test "$hardcode_minus_L" != no; then
10580 # Linking always hardcodes the temporary library directory.
10581 hardcode_action=relink
10582 else
10583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10584 hardcode_action=immediate
10585 fi
10586 else
10587 # We cannot hardcode anything, or else we can only hardcode existing
10588 # directories.
10589 hardcode_action=unsupported
10590 fi
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10592 $as_echo "$hardcode_action" >&6; }
10593
10594 if test "$hardcode_action" = relink ||
10595 test "$inherit_rpath" = yes; then
10596 # Fast installation is not supported
10597 enable_fast_install=no
10598 elif test "$shlibpath_overrides_runpath" = yes ||
10599 test "$enable_shared" = no; then
10600 # Fast installation is not necessary
10601 enable_fast_install=needless
10602 fi
10603
10604
10605
10606
10607
10608
10609 if test "x$enable_dlopen" != xyes; then
10610 enable_dlopen=unknown
10611 enable_dlopen_self=unknown
10612 enable_dlopen_self_static=unknown
10613 else
10614 lt_cv_dlopen=no
10615 lt_cv_dlopen_libs=
10616
10617 case $host_os in
10618 beos*)
10619 lt_cv_dlopen="load_add_on"
10620 lt_cv_dlopen_libs=
10621 lt_cv_dlopen_self=yes
10622 ;;
10623
10624 mingw* | pw32* | cegcc*)
10625 lt_cv_dlopen="LoadLibrary"
10626 lt_cv_dlopen_libs=
10627 ;;
10628
10629 cygwin*)
10630 lt_cv_dlopen="dlopen"
10631 lt_cv_dlopen_libs=
10632 ;;
10633
10634 darwin*)
10635 # if libdl is installed we need to link against it
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10638 if ${ac_cv_lib_dl_dlopen+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-ldl $LIBS"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645
10646 /* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 char dlopen ();
10653 int
10654 main ()
10655 {
10656 return dlopen ();
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_lib_dl_dlopen=yes
10663 else
10664 ac_cv_lib_dl_dlopen=no
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10672 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10674 else
10675
10676 lt_cv_dlopen="dyld"
10677 lt_cv_dlopen_libs=
10678 lt_cv_dlopen_self=yes
10679
10680 fi
10681
10682 ;;
10683
10684 *)
10685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10686 if test "x$ac_cv_func_shl_load" = xyes; then :
10687 lt_cv_dlopen="shl_load"
10688 else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10690 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10691 if ${ac_cv_lib_dld_shl_load+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-ldld $LIBS"
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char shl_load ();
10706 int
10707 main ()
10708 {
10709 return shl_load ();
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_dld_shl_load=yes
10716 else
10717 ac_cv_lib_dld_shl_load=no
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10725 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10727 else
10728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10729 if test "x$ac_cv_func_dlopen" = xyes; then :
10730 lt_cv_dlopen="dlopen"
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10733 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10734 if ${ac_cv_lib_dl_dlopen+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 ac_check_lib_save_LIBS=$LIBS
10738 LIBS="-ldl $LIBS"
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10741
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char dlopen ();
10749 int
10750 main ()
10751 {
10752 return dlopen ();
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 if ac_fn_c_try_link "$LINENO"; then :
10758 ac_cv_lib_dl_dlopen=yes
10759 else
10760 ac_cv_lib_dl_dlopen=no
10761 fi
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 LIBS=$ac_check_lib_save_LIBS
10765 fi
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10768 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10772 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10773 if ${ac_cv_lib_svld_dlopen+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lsvld $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char dlopen ();
10788 int
10789 main ()
10790 {
10791 return dlopen ();
10792 ;
10793 return 0;
10794 }
10795 _ACEOF
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_svld_dlopen=yes
10798 else
10799 ac_cv_lib_svld_dlopen=no
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10807 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10811 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10812 if ${ac_cv_lib_dld_dld_link+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-ldld $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dld_link ();
10827 int
10828 main ()
10829 {
10830 return dld_link ();
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_dld_dld_link=yes
10837 else
10838 ac_cv_lib_dld_dld_link=no
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10843 fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10846 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10848 fi
10849
10850
10851 fi
10852
10853
10854 fi
10855
10856
10857 fi
10858
10859
10860 fi
10861
10862
10863 fi
10864
10865 ;;
10866 esac
10867
10868 if test "x$lt_cv_dlopen" != xno; then
10869 enable_dlopen=yes
10870 else
10871 enable_dlopen=no
10872 fi
10873
10874 case $lt_cv_dlopen in
10875 dlopen)
10876 save_CPPFLAGS="$CPPFLAGS"
10877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10878
10879 save_LDFLAGS="$LDFLAGS"
10880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10881
10882 save_LIBS="$LIBS"
10883 LIBS="$lt_cv_dlopen_libs $LIBS"
10884
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10887 if ${lt_cv_dlopen_self+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 if test "$cross_compiling" = yes; then :
10891 lt_cv_dlopen_self=cross
10892 else
10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894 lt_status=$lt_dlunknown
10895 cat > conftest.$ac_ext <<_LT_EOF
10896 #line $LINENO "configure"
10897 #include "confdefs.h"
10898
10899 #if HAVE_DLFCN_H
10900 #include <dlfcn.h>
10901 #endif
10902
10903 #include <stdio.h>
10904
10905 #ifdef RTLD_GLOBAL
10906 # define LT_DLGLOBAL RTLD_GLOBAL
10907 #else
10908 # ifdef DL_GLOBAL
10909 # define LT_DLGLOBAL DL_GLOBAL
10910 # else
10911 # define LT_DLGLOBAL 0
10912 # endif
10913 #endif
10914
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916 find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10918 # ifdef RTLD_LAZY
10919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10920 # else
10921 # ifdef DL_LAZY
10922 # define LT_DLLAZY_OR_NOW DL_LAZY
10923 # else
10924 # ifdef RTLD_NOW
10925 # define LT_DLLAZY_OR_NOW RTLD_NOW
10926 # else
10927 # ifdef DL_NOW
10928 # define LT_DLLAZY_OR_NOW DL_NOW
10929 # else
10930 # define LT_DLLAZY_OR_NOW 0
10931 # endif
10932 # endif
10933 # endif
10934 # endif
10935 #endif
10936
10937 /* When -fvisbility=hidden is used, assume the code has been annotated
10938 correspondingly for the symbols needed. */
10939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10940 int fnord () __attribute__((visibility("default")));
10941 #endif
10942
10943 int fnord () { return 42; }
10944 int main ()
10945 {
10946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10947 int status = $lt_dlunknown;
10948
10949 if (self)
10950 {
10951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10952 else
10953 {
10954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10955 else puts (dlerror ());
10956 }
10957 /* dlclose (self); */
10958 }
10959 else
10960 puts (dlerror ());
10961
10962 return status;
10963 }
10964 _LT_EOF
10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10966 (eval $ac_link) 2>&5
10967 ac_status=$?
10968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10970 (./conftest; exit; ) >&5 2>/dev/null
10971 lt_status=$?
10972 case x$lt_status in
10973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10976 esac
10977 else :
10978 # compilation failed
10979 lt_cv_dlopen_self=no
10980 fi
10981 fi
10982 rm -fr conftest*
10983
10984
10985 fi
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10987 $as_echo "$lt_cv_dlopen_self" >&6; }
10988
10989 if test "x$lt_cv_dlopen_self" = xyes; then
10990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10993 if ${lt_cv_dlopen_self_static+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test "$cross_compiling" = yes; then :
10997 lt_cv_dlopen_self_static=cross
10998 else
10999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11000 lt_status=$lt_dlunknown
11001 cat > conftest.$ac_ext <<_LT_EOF
11002 #line $LINENO "configure"
11003 #include "confdefs.h"
11004
11005 #if HAVE_DLFCN_H
11006 #include <dlfcn.h>
11007 #endif
11008
11009 #include <stdio.h>
11010
11011 #ifdef RTLD_GLOBAL
11012 # define LT_DLGLOBAL RTLD_GLOBAL
11013 #else
11014 # ifdef DL_GLOBAL
11015 # define LT_DLGLOBAL DL_GLOBAL
11016 # else
11017 # define LT_DLGLOBAL 0
11018 # endif
11019 #endif
11020
11021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11022 find out it does not work in some platform. */
11023 #ifndef LT_DLLAZY_OR_NOW
11024 # ifdef RTLD_LAZY
11025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11026 # else
11027 # ifdef DL_LAZY
11028 # define LT_DLLAZY_OR_NOW DL_LAZY
11029 # else
11030 # ifdef RTLD_NOW
11031 # define LT_DLLAZY_OR_NOW RTLD_NOW
11032 # else
11033 # ifdef DL_NOW
11034 # define LT_DLLAZY_OR_NOW DL_NOW
11035 # else
11036 # define LT_DLLAZY_OR_NOW 0
11037 # endif
11038 # endif
11039 # endif
11040 # endif
11041 #endif
11042
11043 /* When -fvisbility=hidden is used, assume the code has been annotated
11044 correspondingly for the symbols needed. */
11045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11046 int fnord () __attribute__((visibility("default")));
11047 #endif
11048
11049 int fnord () { return 42; }
11050 int main ()
11051 {
11052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11053 int status = $lt_dlunknown;
11054
11055 if (self)
11056 {
11057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11058 else
11059 {
11060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11061 else puts (dlerror ());
11062 }
11063 /* dlclose (self); */
11064 }
11065 else
11066 puts (dlerror ());
11067
11068 return status;
11069 }
11070 _LT_EOF
11071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11072 (eval $ac_link) 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11076 (./conftest; exit; ) >&5 2>/dev/null
11077 lt_status=$?
11078 case x$lt_status in
11079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11082 esac
11083 else :
11084 # compilation failed
11085 lt_cv_dlopen_self_static=no
11086 fi
11087 fi
11088 rm -fr conftest*
11089
11090
11091 fi
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11093 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11094 fi
11095
11096 CPPFLAGS="$save_CPPFLAGS"
11097 LDFLAGS="$save_LDFLAGS"
11098 LIBS="$save_LIBS"
11099 ;;
11100 esac
11101
11102 case $lt_cv_dlopen_self in
11103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11104 *) enable_dlopen_self=unknown ;;
11105 esac
11106
11107 case $lt_cv_dlopen_self_static in
11108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11109 *) enable_dlopen_self_static=unknown ;;
11110 esac
11111 fi
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129 striplib=
11130 old_striplib=
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11132 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11133 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137 $as_echo "yes" >&6; }
11138 else
11139 # FIXME - insert some real tests, host_os isn't really good enough
11140 case $host_os in
11141 darwin*)
11142 if test -n "$STRIP" ; then
11143 striplib="$STRIP -x"
11144 old_striplib="$STRIP -S"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11146 $as_echo "yes" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11150 fi
11151 ;;
11152 *)
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155 ;;
11156 esac
11157 fi
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170 # Report which library types will actually be built
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11172 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11174 $as_echo "$can_build_shared" >&6; }
11175
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11177 $as_echo_n "checking whether to build shared libraries... " >&6; }
11178 test "$can_build_shared" = "no" && enable_shared=no
11179
11180 # On AIX, shared libraries and static libraries use the same namespace, and
11181 # are all built from PIC.
11182 case $host_os in
11183 aix3*)
11184 test "$enable_shared" = yes && enable_static=no
11185 if test -n "$RANLIB"; then
11186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11187 postinstall_cmds='$RANLIB $lib'
11188 fi
11189 ;;
11190
11191 aix[4-9]*)
11192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11193 test "$enable_shared" = yes && enable_static=no
11194 fi
11195 ;;
11196 esac
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11198 $as_echo "$enable_shared" >&6; }
11199
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11201 $as_echo_n "checking whether to build static libraries... " >&6; }
11202 # Make sure either enable_shared or enable_static is yes.
11203 test "$enable_shared" = yes || enable_static=yes
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11205 $as_echo "$enable_static" >&6; }
11206
11207
11208
11209
11210 fi
11211 ac_ext=c
11212 ac_cpp='$CPP $CPPFLAGS'
11213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11216
11217 CC="$lt_save_CC"
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231 ac_config_commands="$ac_config_commands libtool"
11232
11233
11234
11235
11236 # Only expand once:
11237
11238
11239
11240 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11253 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11254 if ${ac_cv_prog_cc_c99+:} false; then :
11255 $as_echo_n "(cached) " >&6
11256 else
11257 ac_cv_prog_cc_c99=no
11258 ac_save_CC=$CC
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 #include <stdarg.h>
11262 #include <stdbool.h>
11263 #include <stdlib.h>
11264 #include <wchar.h>
11265 #include <stdio.h>
11266
11267 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11268 #define debug(...) fprintf (stderr, __VA_ARGS__)
11269 #define showlist(...) puts (#__VA_ARGS__)
11270 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11271 static void
11272 test_varargs_macros (void)
11273 {
11274 int x = 1234;
11275 int y = 5678;
11276 debug ("Flag");
11277 debug ("X = %d\n", x);
11278 showlist (The first, second, and third items.);
11279 report (x>y, "x is %d but y is %d", x, y);
11280 }
11281
11282 // Check long long types.
11283 #define BIG64 18446744073709551615ull
11284 #define BIG32 4294967295ul
11285 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11286 #if !BIG_OK
11287 your preprocessor is broken;
11288 #endif
11289 #if BIG_OK
11290 #else
11291 your preprocessor is broken;
11292 #endif
11293 static long long int bignum = -9223372036854775807LL;
11294 static unsigned long long int ubignum = BIG64;
11295
11296 struct incomplete_array
11297 {
11298 int datasize;
11299 double data[];
11300 };
11301
11302 struct named_init {
11303 int number;
11304 const wchar_t *name;
11305 double average;
11306 };
11307
11308 typedef const char *ccp;
11309
11310 static inline int
11311 test_restrict (ccp restrict text)
11312 {
11313 // See if C++-style comments work.
11314 // Iterate through items via the restricted pointer.
11315 // Also check for declarations in for loops.
11316 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11317 continue;
11318 return 0;
11319 }
11320
11321 // Check varargs and va_copy.
11322 static void
11323 test_varargs (const char *format, ...)
11324 {
11325 va_list args;
11326 va_start (args, format);
11327 va_list args_copy;
11328 va_copy (args_copy, args);
11329
11330 const char *str;
11331 int number;
11332 float fnumber;
11333
11334 while (*format)
11335 {
11336 switch (*format++)
11337 {
11338 case 's': // string
11339 str = va_arg (args_copy, const char *);
11340 break;
11341 case 'd': // int
11342 number = va_arg (args_copy, int);
11343 break;
11344 case 'f': // float
11345 fnumber = va_arg (args_copy, double);
11346 break;
11347 default:
11348 break;
11349 }
11350 }
11351 va_end (args_copy);
11352 va_end (args);
11353 }
11354
11355 int
11356 main ()
11357 {
11358
11359 // Check bool.
11360 _Bool success = false;
11361
11362 // Check restrict.
11363 if (test_restrict ("String literal") == 0)
11364 success = true;
11365 char *restrict newvar = "Another string";
11366
11367 // Check varargs.
11368 test_varargs ("s, d' f .", "string", 65, 34.234);
11369 test_varargs_macros ();
11370
11371 // Check flexible array members.
11372 struct incomplete_array *ia =
11373 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11374 ia->datasize = 10;
11375 for (int i = 0; i < ia->datasize; ++i)
11376 ia->data[i] = i * 1.234;
11377
11378 // Check named initializers.
11379 struct named_init ni = {
11380 .number = 34,
11381 .name = L"Test wide string",
11382 .average = 543.34343,
11383 };
11384
11385 ni.number = 58;
11386
11387 int dynamic_array[ni.number];
11388 dynamic_array[ni.number - 1] = 543;
11389
11390 // work around unused variable warnings
11391 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11392 || dynamic_array[ni.number - 1] != 543);
11393
11394 ;
11395 return 0;
11396 }
11397 _ACEOF
11398 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11399 do
11400 CC="$ac_save_CC $ac_arg"
11401 if ac_fn_c_try_compile "$LINENO"; then :
11402 ac_cv_prog_cc_c99=$ac_arg
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext
11405 test "x$ac_cv_prog_cc_c99" != "xno" && break
11406 done
11407 rm -f conftest.$ac_ext
11408 CC=$ac_save_CC
11409
11410 fi
11411 # AC_CACHE_VAL
11412 case "x$ac_cv_prog_cc_c99" in
11413 x)
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11415 $as_echo "none needed" >&6; } ;;
11416 xno)
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11418 $as_echo "unsupported" >&6; } ;;
11419 *)
11420 CC="$CC $ac_cv_prog_cc_c99"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11422 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11423 esac
11424 if test "x$ac_cv_prog_cc_c99" != xno; then :
11425
11426 fi
11427
11428
11429
11430
11431
11432
11433 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11434 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11435 CLANGCC="yes"
11436 else
11437 CLANGCC="no"
11438 fi
11439
11440 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11441 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11442 INTELCC="yes"
11443 else
11444 INTELCC="no"
11445 fi
11446
11447 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11448 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11449 SUNCC="yes"
11450 else
11451 SUNCC="no"
11452 fi
11453
11454
11455
11456
11457 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11458 if test -n "$ac_tool_prefix"; then
11459 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11460 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 case $PKG_CONFIG in
11467 [\\/]* | ?:[\\/]*)
11468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11469 ;;
11470 *)
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11473 do
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11478 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11481 fi
11482 done
11483 done
11484 IFS=$as_save_IFS
11485
11486 ;;
11487 esac
11488 fi
11489 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11490 if test -n "$PKG_CONFIG"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11492 $as_echo "$PKG_CONFIG" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11496 fi
11497
11498
11499 fi
11500 if test -z "$ac_cv_path_PKG_CONFIG"; then
11501 ac_pt_PKG_CONFIG=$PKG_CONFIG
11502 # Extract the first word of "pkg-config", so it can be a program name with args.
11503 set dummy pkg-config; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 case $ac_pt_PKG_CONFIG in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11512 ;;
11513 *)
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11516 do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525 done
11526 done
11527 IFS=$as_save_IFS
11528
11529 ;;
11530 esac
11531 fi
11532 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11533 if test -n "$ac_pt_PKG_CONFIG"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11535 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11539 fi
11540
11541 if test "x$ac_pt_PKG_CONFIG" = x; then
11542 PKG_CONFIG=""
11543 else
11544 case $cross_compiling:$ac_tool_warned in
11545 yes:)
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548 ac_tool_warned=yes ;;
11549 esac
11550 PKG_CONFIG=$ac_pt_PKG_CONFIG
11551 fi
11552 else
11553 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11554 fi
11555
11556 fi
11557 if test -n "$PKG_CONFIG"; then
11558 _pkg_min_version=0.9.0
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11560 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11561 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11563 $as_echo "yes" >&6; }
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11567 PKG_CONFIG=""
11568 fi
11569
11570 fi
11571
11572
11573
11574
11575
11576 # Check whether --enable-selective-werror was given.
11577 if test "${enable_selective_werror+set}" = set; then :
11578 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11579 else
11580 SELECTIVE_WERROR=yes
11581 fi
11582
11583
11584
11585
11586
11587 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11588 if test "x$SUNCC" = "xyes"; then
11589 BASE_CFLAGS="-v"
11590 else
11591 BASE_CFLAGS=""
11592 fi
11593
11594 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606 xorg_testset_save_CFLAGS="$CFLAGS"
11607
11608 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11611 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11612 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11617 int i;
11618 _ACEOF
11619 if ac_fn_c_try_compile "$LINENO"; then :
11620 xorg_cv_compiler_flag_unknown_warning_option=yes
11621 else
11622 xorg_cv_compiler_flag_unknown_warning_option=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11627 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11628 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11629 CFLAGS="$xorg_testset_save_CFLAGS"
11630 fi
11631
11632 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11635 fi
11636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11638 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11639 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644 int i;
11645 _ACEOF
11646 if ac_fn_c_try_compile "$LINENO"; then :
11647 xorg_cv_compiler_flag_unused_command_line_argument=yes
11648 else
11649 xorg_cv_compiler_flag_unused_command_line_argument=no
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652 fi
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11654 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11655 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11656 CFLAGS="$xorg_testset_save_CFLAGS"
11657 fi
11658
11659 found="no"
11660
11661 if test $found = "no" ; then
11662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11664 fi
11665
11666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11668 fi
11669
11670 CFLAGS="$CFLAGS -Wall"
11671
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11673 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11674 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11675 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 /* end confdefs.h. */
11680 int i;
11681 int
11682 main ()
11683 {
11684
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_link "$LINENO"; then :
11690 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11691 else
11692 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 fi
11697
11698
11699 CFLAGS="$xorg_testset_save_CFLAGS"
11700
11701 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11703 $as_echo "$supported" >&6; }
11704 if test "$supported" = "yes" ; then
11705 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11706 found="yes"
11707 fi
11708 fi
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722 xorg_testset_save_CFLAGS="$CFLAGS"
11723
11724 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11727 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11728 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 int i;
11734 _ACEOF
11735 if ac_fn_c_try_compile "$LINENO"; then :
11736 xorg_cv_compiler_flag_unknown_warning_option=yes
11737 else
11738 xorg_cv_compiler_flag_unknown_warning_option=no
11739 fi
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11743 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11744 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11745 CFLAGS="$xorg_testset_save_CFLAGS"
11746 fi
11747
11748 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11751 fi
11752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11754 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11755 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 int i;
11761 _ACEOF
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763 xorg_cv_compiler_flag_unused_command_line_argument=yes
11764 else
11765 xorg_cv_compiler_flag_unused_command_line_argument=no
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11770 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11771 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11772 CFLAGS="$xorg_testset_save_CFLAGS"
11773 fi
11774
11775 found="no"
11776
11777 if test $found = "no" ; then
11778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11780 fi
11781
11782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11784 fi
11785
11786 CFLAGS="$CFLAGS -Wpointer-arith"
11787
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11789 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11790 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11791 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 int i;
11797 int
11798 main ()
11799 {
11800
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_link "$LINENO"; then :
11806 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11807 else
11808 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812 fi
11813
11814
11815 CFLAGS="$xorg_testset_save_CFLAGS"
11816
11817 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11819 $as_echo "$supported" >&6; }
11820 if test "$supported" = "yes" ; then
11821 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11822 found="yes"
11823 fi
11824 fi
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838 xorg_testset_save_CFLAGS="$CFLAGS"
11839
11840 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11843 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11844 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11849 int i;
11850 _ACEOF
11851 if ac_fn_c_try_compile "$LINENO"; then :
11852 xorg_cv_compiler_flag_unknown_warning_option=yes
11853 else
11854 xorg_cv_compiler_flag_unknown_warning_option=no
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11859 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11860 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11861 CFLAGS="$xorg_testset_save_CFLAGS"
11862 fi
11863
11864 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11867 fi
11868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11870 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11871 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 int i;
11877 _ACEOF
11878 if ac_fn_c_try_compile "$LINENO"; then :
11879 xorg_cv_compiler_flag_unused_command_line_argument=yes
11880 else
11881 xorg_cv_compiler_flag_unused_command_line_argument=no
11882 fi
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11886 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11887 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11888 CFLAGS="$xorg_testset_save_CFLAGS"
11889 fi
11890
11891 found="no"
11892
11893 if test $found = "no" ; then
11894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11896 fi
11897
11898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11900 fi
11901
11902 CFLAGS="$CFLAGS -Wmissing-declarations"
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11905 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11906 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11907 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11908 $as_echo_n "(cached) " >&6
11909 else
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11912 int i;
11913 int
11914 main ()
11915 {
11916
11917 ;
11918 return 0;
11919 }
11920 _ACEOF
11921 if ac_fn_c_try_link "$LINENO"; then :
11922 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11923 else
11924 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11925 fi
11926 rm -f core conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11928 fi
11929
11930
11931 CFLAGS="$xorg_testset_save_CFLAGS"
11932
11933 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11935 $as_echo "$supported" >&6; }
11936 if test "$supported" = "yes" ; then
11937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11938 found="yes"
11939 fi
11940 fi
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 xorg_testset_save_CFLAGS="$CFLAGS"
11955
11956 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11959 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11960 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965 int i;
11966 _ACEOF
11967 if ac_fn_c_try_compile "$LINENO"; then :
11968 xorg_cv_compiler_flag_unknown_warning_option=yes
11969 else
11970 xorg_cv_compiler_flag_unknown_warning_option=no
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11975 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11976 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11977 CFLAGS="$xorg_testset_save_CFLAGS"
11978 fi
11979
11980 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11983 fi
11984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11986 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11987 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992 int i;
11993 _ACEOF
11994 if ac_fn_c_try_compile "$LINENO"; then :
11995 xorg_cv_compiler_flag_unused_command_line_argument=yes
11996 else
11997 xorg_cv_compiler_flag_unused_command_line_argument=no
11998 fi
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 fi
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12002 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12003 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12004 CFLAGS="$xorg_testset_save_CFLAGS"
12005 fi
12006
12007 found="no"
12008
12009 if test $found = "no" ; then
12010 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12012 fi
12013
12014 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12016 fi
12017
12018 CFLAGS="$CFLAGS -Wformat=2"
12019
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12021 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12022 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12023 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028 int i;
12029 int
12030 main ()
12031 {
12032
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 if ac_fn_c_try_link "$LINENO"; then :
12038 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12039 else
12040 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 fi
12045
12046
12047 CFLAGS="$xorg_testset_save_CFLAGS"
12048
12049 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12051 $as_echo "$supported" >&6; }
12052 if test "$supported" = "yes" ; then
12053 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12054 found="yes"
12055 fi
12056 fi
12057
12058 if test $found = "no" ; then
12059 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12061 fi
12062
12063 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12065 fi
12066
12067 CFLAGS="$CFLAGS -Wformat"
12068
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12070 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12071 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12072 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 int i;
12078 int
12079 main ()
12080 {
12081
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12088 else
12089 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093 fi
12094
12095
12096 CFLAGS="$xorg_testset_save_CFLAGS"
12097
12098 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12100 $as_echo "$supported" >&6; }
12101 if test "$supported" = "yes" ; then
12102 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12103 found="yes"
12104 fi
12105 fi
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121 xorg_testset_save_CFLAGS="$CFLAGS"
12122
12123 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12126 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12127 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 int i;
12133 _ACEOF
12134 if ac_fn_c_try_compile "$LINENO"; then :
12135 xorg_cv_compiler_flag_unknown_warning_option=yes
12136 else
12137 xorg_cv_compiler_flag_unknown_warning_option=no
12138 fi
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12142 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12143 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12144 CFLAGS="$xorg_testset_save_CFLAGS"
12145 fi
12146
12147 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12150 fi
12151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12153 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12154 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 int i;
12160 _ACEOF
12161 if ac_fn_c_try_compile "$LINENO"; then :
12162 xorg_cv_compiler_flag_unused_command_line_argument=yes
12163 else
12164 xorg_cv_compiler_flag_unused_command_line_argument=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12169 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12170 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12171 CFLAGS="$xorg_testset_save_CFLAGS"
12172 fi
12173
12174 found="no"
12175
12176 if test $found = "no" ; then
12177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12179 fi
12180
12181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12183 fi
12184
12185 CFLAGS="$CFLAGS -Wstrict-prototypes"
12186
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12188 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12189 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12190 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 int i;
12196 int
12197 main ()
12198 {
12199
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12206 else
12207 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 fi
12212
12213
12214 CFLAGS="$xorg_testset_save_CFLAGS"
12215
12216 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12218 $as_echo "$supported" >&6; }
12219 if test "$supported" = "yes" ; then
12220 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12221 found="yes"
12222 fi
12223 fi
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237 xorg_testset_save_CFLAGS="$CFLAGS"
12238
12239 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12242 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12243 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248 int i;
12249 _ACEOF
12250 if ac_fn_c_try_compile "$LINENO"; then :
12251 xorg_cv_compiler_flag_unknown_warning_option=yes
12252 else
12253 xorg_cv_compiler_flag_unknown_warning_option=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12258 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12259 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12260 CFLAGS="$xorg_testset_save_CFLAGS"
12261 fi
12262
12263 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12266 fi
12267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12269 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12270 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 int i;
12276 _ACEOF
12277 if ac_fn_c_try_compile "$LINENO"; then :
12278 xorg_cv_compiler_flag_unused_command_line_argument=yes
12279 else
12280 xorg_cv_compiler_flag_unused_command_line_argument=no
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12285 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12286 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12287 CFLAGS="$xorg_testset_save_CFLAGS"
12288 fi
12289
12290 found="no"
12291
12292 if test $found = "no" ; then
12293 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12295 fi
12296
12297 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12299 fi
12300
12301 CFLAGS="$CFLAGS -Wmissing-prototypes"
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12304 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12305 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12306 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311 int i;
12312 int
12313 main ()
12314 {
12315
12316 ;
12317 return 0;
12318 }
12319 _ACEOF
12320 if ac_fn_c_try_link "$LINENO"; then :
12321 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12322 else
12323 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 fi
12328
12329
12330 CFLAGS="$xorg_testset_save_CFLAGS"
12331
12332 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12334 $as_echo "$supported" >&6; }
12335 if test "$supported" = "yes" ; then
12336 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12337 found="yes"
12338 fi
12339 fi
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353 xorg_testset_save_CFLAGS="$CFLAGS"
12354
12355 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12358 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12359 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364 int i;
12365 _ACEOF
12366 if ac_fn_c_try_compile "$LINENO"; then :
12367 xorg_cv_compiler_flag_unknown_warning_option=yes
12368 else
12369 xorg_cv_compiler_flag_unknown_warning_option=no
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12374 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12375 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12376 CFLAGS="$xorg_testset_save_CFLAGS"
12377 fi
12378
12379 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12382 fi
12383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12385 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12386 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12391 int i;
12392 _ACEOF
12393 if ac_fn_c_try_compile "$LINENO"; then :
12394 xorg_cv_compiler_flag_unused_command_line_argument=yes
12395 else
12396 xorg_cv_compiler_flag_unused_command_line_argument=no
12397 fi
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12401 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12402 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12403 CFLAGS="$xorg_testset_save_CFLAGS"
12404 fi
12405
12406 found="no"
12407
12408 if test $found = "no" ; then
12409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12411 fi
12412
12413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12415 fi
12416
12417 CFLAGS="$CFLAGS -Wnested-externs"
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12420 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12421 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12422 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 int i;
12428 int
12429 main ()
12430 {
12431
12432 ;
12433 return 0;
12434 }
12435 _ACEOF
12436 if ac_fn_c_try_link "$LINENO"; then :
12437 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12438 else
12439 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12440 fi
12441 rm -f core conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
12443 fi
12444
12445
12446 CFLAGS="$xorg_testset_save_CFLAGS"
12447
12448 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12450 $as_echo "$supported" >&6; }
12451 if test "$supported" = "yes" ; then
12452 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12453 found="yes"
12454 fi
12455 fi
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469 xorg_testset_save_CFLAGS="$CFLAGS"
12470
12471 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12474 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12475 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 int i;
12481 _ACEOF
12482 if ac_fn_c_try_compile "$LINENO"; then :
12483 xorg_cv_compiler_flag_unknown_warning_option=yes
12484 else
12485 xorg_cv_compiler_flag_unknown_warning_option=no
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12490 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12491 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12492 CFLAGS="$xorg_testset_save_CFLAGS"
12493 fi
12494
12495 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12498 fi
12499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12501 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12502 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 int i;
12508 _ACEOF
12509 if ac_fn_c_try_compile "$LINENO"; then :
12510 xorg_cv_compiler_flag_unused_command_line_argument=yes
12511 else
12512 xorg_cv_compiler_flag_unused_command_line_argument=no
12513 fi
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12517 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12518 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12519 CFLAGS="$xorg_testset_save_CFLAGS"
12520 fi
12521
12522 found="no"
12523
12524 if test $found = "no" ; then
12525 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12527 fi
12528
12529 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12531 fi
12532
12533 CFLAGS="$CFLAGS -Wbad-function-cast"
12534
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12536 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12537 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12538 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543 int i;
12544 int
12545 main ()
12546 {
12547
12548 ;
12549 return 0;
12550 }
12551 _ACEOF
12552 if ac_fn_c_try_link "$LINENO"; then :
12553 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12554 else
12555 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12556 fi
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 fi
12560
12561
12562 CFLAGS="$xorg_testset_save_CFLAGS"
12563
12564 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12566 $as_echo "$supported" >&6; }
12567 if test "$supported" = "yes" ; then
12568 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12569 found="yes"
12570 fi
12571 fi
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585 xorg_testset_save_CFLAGS="$CFLAGS"
12586
12587 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12590 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12591 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 int i;
12597 _ACEOF
12598 if ac_fn_c_try_compile "$LINENO"; then :
12599 xorg_cv_compiler_flag_unknown_warning_option=yes
12600 else
12601 xorg_cv_compiler_flag_unknown_warning_option=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12606 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12607 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12608 CFLAGS="$xorg_testset_save_CFLAGS"
12609 fi
12610
12611 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12614 fi
12615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12617 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12618 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 int i;
12624 _ACEOF
12625 if ac_fn_c_try_compile "$LINENO"; then :
12626 xorg_cv_compiler_flag_unused_command_line_argument=yes
12627 else
12628 xorg_cv_compiler_flag_unused_command_line_argument=no
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 fi
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12633 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12634 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12635 CFLAGS="$xorg_testset_save_CFLAGS"
12636 fi
12637
12638 found="no"
12639
12640 if test $found = "no" ; then
12641 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12643 fi
12644
12645 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12647 fi
12648
12649 CFLAGS="$CFLAGS -Wold-style-definition"
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12652 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12653 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12654 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 int i;
12660 int
12661 main ()
12662 {
12663
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12670 else
12671 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 fi
12676
12677
12678 CFLAGS="$xorg_testset_save_CFLAGS"
12679
12680 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12682 $as_echo "$supported" >&6; }
12683 if test "$supported" = "yes" ; then
12684 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12685 found="yes"
12686 fi
12687 fi
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701 xorg_testset_save_CFLAGS="$CFLAGS"
12702
12703 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12706 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12707 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12712 int i;
12713 _ACEOF
12714 if ac_fn_c_try_compile "$LINENO"; then :
12715 xorg_cv_compiler_flag_unknown_warning_option=yes
12716 else
12717 xorg_cv_compiler_flag_unknown_warning_option=no
12718 fi
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720 fi
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12722 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12723 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12724 CFLAGS="$xorg_testset_save_CFLAGS"
12725 fi
12726
12727 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12730 fi
12731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12733 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12734 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 int i;
12740 _ACEOF
12741 if ac_fn_c_try_compile "$LINENO"; then :
12742 xorg_cv_compiler_flag_unused_command_line_argument=yes
12743 else
12744 xorg_cv_compiler_flag_unused_command_line_argument=no
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12749 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12750 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12751 CFLAGS="$xorg_testset_save_CFLAGS"
12752 fi
12753
12754 found="no"
12755
12756 if test $found = "no" ; then
12757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12759 fi
12760
12761 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12763 fi
12764
12765 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12766
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12768 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12769 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12770 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12771 $as_echo_n "(cached) " >&6
12772 else
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775 int i;
12776 int
12777 main ()
12778 {
12779
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_c_try_link "$LINENO"; then :
12785 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12786 else
12787 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12788 fi
12789 rm -f core conftest.err conftest.$ac_objext \
12790 conftest$ac_exeext conftest.$ac_ext
12791 fi
12792
12793
12794 CFLAGS="$xorg_testset_save_CFLAGS"
12795
12796 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12798 $as_echo "$supported" >&6; }
12799 if test "$supported" = "yes" ; then
12800 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12801 found="yes"
12802 fi
12803 fi
12804
12805
12806
12807
12808
12809 # This chunk adds additional warnings that could catch undesired effects.
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821 xorg_testset_save_CFLAGS="$CFLAGS"
12822
12823 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12826 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12827 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832 int i;
12833 _ACEOF
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835 xorg_cv_compiler_flag_unknown_warning_option=yes
12836 else
12837 xorg_cv_compiler_flag_unknown_warning_option=no
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12842 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12843 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12844 CFLAGS="$xorg_testset_save_CFLAGS"
12845 fi
12846
12847 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12850 fi
12851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12853 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12854 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859 int i;
12860 _ACEOF
12861 if ac_fn_c_try_compile "$LINENO"; then :
12862 xorg_cv_compiler_flag_unused_command_line_argument=yes
12863 else
12864 xorg_cv_compiler_flag_unused_command_line_argument=no
12865 fi
12866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 fi
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12869 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12870 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12871 CFLAGS="$xorg_testset_save_CFLAGS"
12872 fi
12873
12874 found="no"
12875
12876 if test $found = "no" ; then
12877 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12879 fi
12880
12881 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12883 fi
12884
12885 CFLAGS="$CFLAGS -Wunused"
12886
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12888 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12889 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12890 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 int i;
12896 int
12897 main ()
12898 {
12899
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 if ac_fn_c_try_link "$LINENO"; then :
12905 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12906 else
12907 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 fi
12912
12913
12914 CFLAGS="$xorg_testset_save_CFLAGS"
12915
12916 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12918 $as_echo "$supported" >&6; }
12919 if test "$supported" = "yes" ; then
12920 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12921 found="yes"
12922 fi
12923 fi
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937 xorg_testset_save_CFLAGS="$CFLAGS"
12938
12939 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12942 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12943 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 int i;
12949 _ACEOF
12950 if ac_fn_c_try_compile "$LINENO"; then :
12951 xorg_cv_compiler_flag_unknown_warning_option=yes
12952 else
12953 xorg_cv_compiler_flag_unknown_warning_option=no
12954 fi
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12958 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12959 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12960 CFLAGS="$xorg_testset_save_CFLAGS"
12961 fi
12962
12963 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12966 fi
12967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12969 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12970 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 int i;
12976 _ACEOF
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 xorg_cv_compiler_flag_unused_command_line_argument=yes
12979 else
12980 xorg_cv_compiler_flag_unused_command_line_argument=no
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12985 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12986 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12987 CFLAGS="$xorg_testset_save_CFLAGS"
12988 fi
12989
12990 found="no"
12991
12992 if test $found = "no" ; then
12993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12995 fi
12996
12997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12999 fi
13000
13001 CFLAGS="$CFLAGS -Wuninitialized"
13002
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13004 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13005 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13006 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011 int i;
13012 int
13013 main ()
13014 {
13015
13016 ;
13017 return 0;
13018 }
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13022 else
13023 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027 fi
13028
13029
13030 CFLAGS="$xorg_testset_save_CFLAGS"
13031
13032 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13034 $as_echo "$supported" >&6; }
13035 if test "$supported" = "yes" ; then
13036 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13037 found="yes"
13038 fi
13039 fi
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053 xorg_testset_save_CFLAGS="$CFLAGS"
13054
13055 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13058 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13059 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 int i;
13065 _ACEOF
13066 if ac_fn_c_try_compile "$LINENO"; then :
13067 xorg_cv_compiler_flag_unknown_warning_option=yes
13068 else
13069 xorg_cv_compiler_flag_unknown_warning_option=no
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13074 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13075 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13076 CFLAGS="$xorg_testset_save_CFLAGS"
13077 fi
13078
13079 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13082 fi
13083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13085 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13086 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13091 int i;
13092 _ACEOF
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094 xorg_cv_compiler_flag_unused_command_line_argument=yes
13095 else
13096 xorg_cv_compiler_flag_unused_command_line_argument=no
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13101 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13102 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13103 CFLAGS="$xorg_testset_save_CFLAGS"
13104 fi
13105
13106 found="no"
13107
13108 if test $found = "no" ; then
13109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111 fi
13112
13113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13115 fi
13116
13117 CFLAGS="$CFLAGS -Wshadow"
13118
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13120 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13121 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13122 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 int i;
13128 int
13129 main ()
13130 {
13131
13132 ;
13133 return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"; then :
13137 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13138 else
13139 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13143 fi
13144
13145
13146 CFLAGS="$xorg_testset_save_CFLAGS"
13147
13148 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13150 $as_echo "$supported" >&6; }
13151 if test "$supported" = "yes" ; then
13152 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13153 found="yes"
13154 fi
13155 fi
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169 xorg_testset_save_CFLAGS="$CFLAGS"
13170
13171 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13174 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13175 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 int i;
13181 _ACEOF
13182 if ac_fn_c_try_compile "$LINENO"; then :
13183 xorg_cv_compiler_flag_unknown_warning_option=yes
13184 else
13185 xorg_cv_compiler_flag_unknown_warning_option=no
13186 fi
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188 fi
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13190 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13191 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13192 CFLAGS="$xorg_testset_save_CFLAGS"
13193 fi
13194
13195 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13196 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13198 fi
13199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13201 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13202 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207 int i;
13208 _ACEOF
13209 if ac_fn_c_try_compile "$LINENO"; then :
13210 xorg_cv_compiler_flag_unused_command_line_argument=yes
13211 else
13212 xorg_cv_compiler_flag_unused_command_line_argument=no
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13217 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13218 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13219 CFLAGS="$xorg_testset_save_CFLAGS"
13220 fi
13221
13222 found="no"
13223
13224 if test $found = "no" ; then
13225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13227 fi
13228
13229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231 fi
13232
13233 CFLAGS="$CFLAGS -Wcast-qual"
13234
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13236 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13237 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13238 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13243 int i;
13244 int
13245 main ()
13246 {
13247
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 if ac_fn_c_try_link "$LINENO"; then :
13253 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13254 else
13255 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13256 fi
13257 rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13259 fi
13260
13261
13262 CFLAGS="$xorg_testset_save_CFLAGS"
13263
13264 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13266 $as_echo "$supported" >&6; }
13267 if test "$supported" = "yes" ; then
13268 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13269 found="yes"
13270 fi
13271 fi
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285 xorg_testset_save_CFLAGS="$CFLAGS"
13286
13287 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13290 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13291 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 int i;
13297 _ACEOF
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299 xorg_cv_compiler_flag_unknown_warning_option=yes
13300 else
13301 xorg_cv_compiler_flag_unknown_warning_option=no
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13306 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13307 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13308 CFLAGS="$xorg_testset_save_CFLAGS"
13309 fi
13310
13311 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13312 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13314 fi
13315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13317 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13318 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323 int i;
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326 xorg_cv_compiler_flag_unused_command_line_argument=yes
13327 else
13328 xorg_cv_compiler_flag_unused_command_line_argument=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13333 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13334 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13335 CFLAGS="$xorg_testset_save_CFLAGS"
13336 fi
13337
13338 found="no"
13339
13340 if test $found = "no" ; then
13341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13343 fi
13344
13345 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13347 fi
13348
13349 CFLAGS="$CFLAGS -Wmissing-noreturn"
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13352 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13353 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13354 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 int
13361 main ()
13362 {
13363
13364 ;
13365 return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13370 else
13371 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 fi
13376
13377
13378 CFLAGS="$xorg_testset_save_CFLAGS"
13379
13380 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13382 $as_echo "$supported" >&6; }
13383 if test "$supported" = "yes" ; then
13384 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13385 found="yes"
13386 fi
13387 fi
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401 xorg_testset_save_CFLAGS="$CFLAGS"
13402
13403 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13406 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13407 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 int i;
13413 _ACEOF
13414 if ac_fn_c_try_compile "$LINENO"; then :
13415 xorg_cv_compiler_flag_unknown_warning_option=yes
13416 else
13417 xorg_cv_compiler_flag_unknown_warning_option=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13422 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13423 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13424 CFLAGS="$xorg_testset_save_CFLAGS"
13425 fi
13426
13427 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13430 fi
13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13433 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13434 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 int i;
13440 _ACEOF
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442 xorg_cv_compiler_flag_unused_command_line_argument=yes
13443 else
13444 xorg_cv_compiler_flag_unused_command_line_argument=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13449 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13450 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13451 CFLAGS="$xorg_testset_save_CFLAGS"
13452 fi
13453
13454 found="no"
13455
13456 if test $found = "no" ; then
13457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13459 fi
13460
13461 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13463 fi
13464
13465 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13466
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13468 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13469 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13470 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 int i;
13476 int
13477 main ()
13478 {
13479
13480 ;
13481 return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13486 else
13487 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13491 fi
13492
13493
13494 CFLAGS="$xorg_testset_save_CFLAGS"
13495
13496 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13498 $as_echo "$supported" >&6; }
13499 if test "$supported" = "yes" ; then
13500 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13501 found="yes"
13502 fi
13503 fi
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517 xorg_testset_save_CFLAGS="$CFLAGS"
13518
13519 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13522 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13523 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 int i;
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 xorg_cv_compiler_flag_unknown_warning_option=yes
13532 else
13533 xorg_cv_compiler_flag_unknown_warning_option=no
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13538 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13539 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13540 CFLAGS="$xorg_testset_save_CFLAGS"
13541 fi
13542
13543 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13546 fi
13547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13549 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13550 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 int i;
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"; then :
13558 xorg_cv_compiler_flag_unused_command_line_argument=yes
13559 else
13560 xorg_cv_compiler_flag_unused_command_line_argument=no
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 fi
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13565 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13566 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13567 CFLAGS="$xorg_testset_save_CFLAGS"
13568 fi
13569
13570 found="no"
13571
13572 if test $found = "no" ; then
13573 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575 fi
13576
13577 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579 fi
13580
13581 CFLAGS="$CFLAGS -Wredundant-decls"
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13584 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13585 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13586 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 int i;
13592 int
13593 main ()
13594 {
13595
13596 ;
13597 return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13602 else
13603 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 fi
13608
13609
13610 CFLAGS="$xorg_testset_save_CFLAGS"
13611
13612 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13614 $as_echo "$supported" >&6; }
13615 if test "$supported" = "yes" ; then
13616 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13617 found="yes"
13618 fi
13619 fi
13620
13621
13622
13623 # These are currently disabled because they are noisy. They will be enabled
13624 # in the future once the codebase is sufficiently modernized to silence
13625 # them. For now, I don't want them to drown out the other warnings.
13626 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13627 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13628 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13629
13630 # Turn some warnings into errors, so we don't accidently get successful builds
13631 # when there are problems that should be fixed.
13632
13633 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645 xorg_testset_save_CFLAGS="$CFLAGS"
13646
13647 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13650 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13651 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 int i;
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 xorg_cv_compiler_flag_unknown_warning_option=yes
13660 else
13661 xorg_cv_compiler_flag_unknown_warning_option=no
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13666 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13667 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13668 CFLAGS="$xorg_testset_save_CFLAGS"
13669 fi
13670
13671 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674 fi
13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13677 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13678 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 int i;
13684 _ACEOF
13685 if ac_fn_c_try_compile "$LINENO"; then :
13686 xorg_cv_compiler_flag_unused_command_line_argument=yes
13687 else
13688 xorg_cv_compiler_flag_unused_command_line_argument=no
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13693 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13694 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13695 CFLAGS="$xorg_testset_save_CFLAGS"
13696 fi
13697
13698 found="no"
13699
13700 if test $found = "no" ; then
13701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13703 fi
13704
13705 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13707 fi
13708
13709 CFLAGS="$CFLAGS -Werror=implicit"
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13712 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13713 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13714 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 int i;
13720 int
13721 main ()
13722 {
13723
13724 ;
13725 return 0;
13726 }
13727 _ACEOF
13728 if ac_fn_c_try_link "$LINENO"; then :
13729 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13730 else
13731 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 fi
13736
13737
13738 CFLAGS="$xorg_testset_save_CFLAGS"
13739
13740 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13742 $as_echo "$supported" >&6; }
13743 if test "$supported" = "yes" ; then
13744 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13745 found="yes"
13746 fi
13747 fi
13748
13749 if test $found = "no" ; then
13750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13752 fi
13753
13754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13756 fi
13757
13758 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13759
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13761 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13762 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13763 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 int i;
13769 int
13770 main ()
13771 {
13772
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13779 else
13780 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13784 fi
13785
13786
13787 CFLAGS="$xorg_testset_save_CFLAGS"
13788
13789 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13791 $as_echo "$supported" >&6; }
13792 if test "$supported" = "yes" ; then
13793 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13794 found="yes"
13795 fi
13796 fi
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810 xorg_testset_save_CFLAGS="$CFLAGS"
13811
13812 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13815 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13816 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 int i;
13822 _ACEOF
13823 if ac_fn_c_try_compile "$LINENO"; then :
13824 xorg_cv_compiler_flag_unknown_warning_option=yes
13825 else
13826 xorg_cv_compiler_flag_unknown_warning_option=no
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13831 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13832 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13833 CFLAGS="$xorg_testset_save_CFLAGS"
13834 fi
13835
13836 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13837 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839 fi
13840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13842 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13843 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 int i;
13849 _ACEOF
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851 xorg_cv_compiler_flag_unused_command_line_argument=yes
13852 else
13853 xorg_cv_compiler_flag_unused_command_line_argument=no
13854 fi
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 fi
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13858 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13859 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13860 CFLAGS="$xorg_testset_save_CFLAGS"
13861 fi
13862
13863 found="no"
13864
13865 if test $found = "no" ; then
13866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13868 fi
13869
13870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13872 fi
13873
13874 CFLAGS="$CFLAGS -Werror=nonnull"
13875
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13877 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13878 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13879 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 int i;
13885 int
13886 main ()
13887 {
13888
13889 ;
13890 return 0;
13891 }
13892 _ACEOF
13893 if ac_fn_c_try_link "$LINENO"; then :
13894 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13895 else
13896 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13897 fi
13898 rm -f core conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13900 fi
13901
13902
13903 CFLAGS="$xorg_testset_save_CFLAGS"
13904
13905 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13907 $as_echo "$supported" >&6; }
13908 if test "$supported" = "yes" ; then
13909 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13910 found="yes"
13911 fi
13912 fi
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926 xorg_testset_save_CFLAGS="$CFLAGS"
13927
13928 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13931 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13932 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13937 int i;
13938 _ACEOF
13939 if ac_fn_c_try_compile "$LINENO"; then :
13940 xorg_cv_compiler_flag_unknown_warning_option=yes
13941 else
13942 xorg_cv_compiler_flag_unknown_warning_option=no
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 fi
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13947 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13948 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13949 CFLAGS="$xorg_testset_save_CFLAGS"
13950 fi
13951
13952 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13955 fi
13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13958 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13959 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 int i;
13965 _ACEOF
13966 if ac_fn_c_try_compile "$LINENO"; then :
13967 xorg_cv_compiler_flag_unused_command_line_argument=yes
13968 else
13969 xorg_cv_compiler_flag_unused_command_line_argument=no
13970 fi
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13974 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13975 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13976 CFLAGS="$xorg_testset_save_CFLAGS"
13977 fi
13978
13979 found="no"
13980
13981 if test $found = "no" ; then
13982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13984 fi
13985
13986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13988 fi
13989
13990 CFLAGS="$CFLAGS -Werror=init-self"
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13993 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13994 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13995 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 int i;
14001 int
14002 main ()
14003 {
14004
14005 ;
14006 return 0;
14007 }
14008 _ACEOF
14009 if ac_fn_c_try_link "$LINENO"; then :
14010 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14011 else
14012 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14013 fi
14014 rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14016 fi
14017
14018
14019 CFLAGS="$xorg_testset_save_CFLAGS"
14020
14021 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14023 $as_echo "$supported" >&6; }
14024 if test "$supported" = "yes" ; then
14025 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14026 found="yes"
14027 fi
14028 fi
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042 xorg_testset_save_CFLAGS="$CFLAGS"
14043
14044 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14047 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14048 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 int i;
14054 _ACEOF
14055 if ac_fn_c_try_compile "$LINENO"; then :
14056 xorg_cv_compiler_flag_unknown_warning_option=yes
14057 else
14058 xorg_cv_compiler_flag_unknown_warning_option=no
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14063 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14064 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14065 CFLAGS="$xorg_testset_save_CFLAGS"
14066 fi
14067
14068 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14071 fi
14072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14074 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14075 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 int i;
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 xorg_cv_compiler_flag_unused_command_line_argument=yes
14084 else
14085 xorg_cv_compiler_flag_unused_command_line_argument=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14090 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14091 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14092 CFLAGS="$xorg_testset_save_CFLAGS"
14093 fi
14094
14095 found="no"
14096
14097 if test $found = "no" ; then
14098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14100 fi
14101
14102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14104 fi
14105
14106 CFLAGS="$CFLAGS -Werror=main"
14107
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14109 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14110 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14111 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116 int i;
14117 int
14118 main ()
14119 {
14120
14121 ;
14122 return 0;
14123 }
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14127 else
14128 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14129 fi
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 fi
14133
14134
14135 CFLAGS="$xorg_testset_save_CFLAGS"
14136
14137 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14139 $as_echo "$supported" >&6; }
14140 if test "$supported" = "yes" ; then
14141 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14142 found="yes"
14143 fi
14144 fi
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158 xorg_testset_save_CFLAGS="$CFLAGS"
14159
14160 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14163 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14164 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 int i;
14170 _ACEOF
14171 if ac_fn_c_try_compile "$LINENO"; then :
14172 xorg_cv_compiler_flag_unknown_warning_option=yes
14173 else
14174 xorg_cv_compiler_flag_unknown_warning_option=no
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14179 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14180 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14181 CFLAGS="$xorg_testset_save_CFLAGS"
14182 fi
14183
14184 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14187 fi
14188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14190 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14191 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 int i;
14197 _ACEOF
14198 if ac_fn_c_try_compile "$LINENO"; then :
14199 xorg_cv_compiler_flag_unused_command_line_argument=yes
14200 else
14201 xorg_cv_compiler_flag_unused_command_line_argument=no
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 fi
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14206 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14207 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14208 CFLAGS="$xorg_testset_save_CFLAGS"
14209 fi
14210
14211 found="no"
14212
14213 if test $found = "no" ; then
14214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216 fi
14217
14218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220 fi
14221
14222 CFLAGS="$CFLAGS -Werror=missing-braces"
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14225 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14226 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14227 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 int i;
14233 int
14234 main ()
14235 {
14236
14237 ;
14238 return 0;
14239 }
14240 _ACEOF
14241 if ac_fn_c_try_link "$LINENO"; then :
14242 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14243 else
14244 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14248 fi
14249
14250
14251 CFLAGS="$xorg_testset_save_CFLAGS"
14252
14253 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14255 $as_echo "$supported" >&6; }
14256 if test "$supported" = "yes" ; then
14257 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14258 found="yes"
14259 fi
14260 fi
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274 xorg_testset_save_CFLAGS="$CFLAGS"
14275
14276 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14279 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14280 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 int i;
14286 _ACEOF
14287 if ac_fn_c_try_compile "$LINENO"; then :
14288 xorg_cv_compiler_flag_unknown_warning_option=yes
14289 else
14290 xorg_cv_compiler_flag_unknown_warning_option=no
14291 fi
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 fi
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14295 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14296 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14297 CFLAGS="$xorg_testset_save_CFLAGS"
14298 fi
14299
14300 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14303 fi
14304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14306 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14307 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 int i;
14313 _ACEOF
14314 if ac_fn_c_try_compile "$LINENO"; then :
14315 xorg_cv_compiler_flag_unused_command_line_argument=yes
14316 else
14317 xorg_cv_compiler_flag_unused_command_line_argument=no
14318 fi
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 fi
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14322 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14323 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14324 CFLAGS="$xorg_testset_save_CFLAGS"
14325 fi
14326
14327 found="no"
14328
14329 if test $found = "no" ; then
14330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14332 fi
14333
14334 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14336 fi
14337
14338 CFLAGS="$CFLAGS -Werror=sequence-point"
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14341 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14342 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14343 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 int i;
14349 int
14350 main ()
14351 {
14352
14353 ;
14354 return 0;
14355 }
14356 _ACEOF
14357 if ac_fn_c_try_link "$LINENO"; then :
14358 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14359 else
14360 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext \
14363 conftest$ac_exeext conftest.$ac_ext
14364 fi
14365
14366
14367 CFLAGS="$xorg_testset_save_CFLAGS"
14368
14369 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14371 $as_echo "$supported" >&6; }
14372 if test "$supported" = "yes" ; then
14373 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14374 found="yes"
14375 fi
14376 fi
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390 xorg_testset_save_CFLAGS="$CFLAGS"
14391
14392 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14395 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14396 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 int i;
14402 _ACEOF
14403 if ac_fn_c_try_compile "$LINENO"; then :
14404 xorg_cv_compiler_flag_unknown_warning_option=yes
14405 else
14406 xorg_cv_compiler_flag_unknown_warning_option=no
14407 fi
14408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14409 fi
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14411 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14412 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14413 CFLAGS="$xorg_testset_save_CFLAGS"
14414 fi
14415
14416 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419 fi
14420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14422 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14423 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 int i;
14429 _ACEOF
14430 if ac_fn_c_try_compile "$LINENO"; then :
14431 xorg_cv_compiler_flag_unused_command_line_argument=yes
14432 else
14433 xorg_cv_compiler_flag_unused_command_line_argument=no
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 fi
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14438 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14439 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14440 CFLAGS="$xorg_testset_save_CFLAGS"
14441 fi
14442
14443 found="no"
14444
14445 if test $found = "no" ; then
14446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14448 fi
14449
14450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14452 fi
14453
14454 CFLAGS="$CFLAGS -Werror=return-type"
14455
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14457 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14458 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14459 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14464 int i;
14465 int
14466 main ()
14467 {
14468
14469 ;
14470 return 0;
14471 }
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14475 else
14476 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 fi
14481
14482
14483 CFLAGS="$xorg_testset_save_CFLAGS"
14484
14485 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14487 $as_echo "$supported" >&6; }
14488 if test "$supported" = "yes" ; then
14489 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14490 found="yes"
14491 fi
14492 fi
14493
14494 if test $found = "no" ; then
14495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14497 fi
14498
14499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14501 fi
14502
14503 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14506 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14507 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14508 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 int i;
14514 int
14515 main ()
14516 {
14517
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_c_try_link "$LINENO"; then :
14523 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14524 else
14525 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 fi
14530
14531
14532 CFLAGS="$xorg_testset_save_CFLAGS"
14533
14534 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14536 $as_echo "$supported" >&6; }
14537 if test "$supported" = "yes" ; then
14538 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14539 found="yes"
14540 fi
14541 fi
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555 xorg_testset_save_CFLAGS="$CFLAGS"
14556
14557 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14560 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14561 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 int i;
14567 _ACEOF
14568 if ac_fn_c_try_compile "$LINENO"; then :
14569 xorg_cv_compiler_flag_unknown_warning_option=yes
14570 else
14571 xorg_cv_compiler_flag_unknown_warning_option=no
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14576 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14577 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14578 CFLAGS="$xorg_testset_save_CFLAGS"
14579 fi
14580
14581 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14584 fi
14585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14587 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14588 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 int i;
14594 _ACEOF
14595 if ac_fn_c_try_compile "$LINENO"; then :
14596 xorg_cv_compiler_flag_unused_command_line_argument=yes
14597 else
14598 xorg_cv_compiler_flag_unused_command_line_argument=no
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 fi
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14603 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14604 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14605 CFLAGS="$xorg_testset_save_CFLAGS"
14606 fi
14607
14608 found="no"
14609
14610 if test $found = "no" ; then
14611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14613 fi
14614
14615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14617 fi
14618
14619 CFLAGS="$CFLAGS -Werror=trigraphs"
14620
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14622 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14623 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14624 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14629 int i;
14630 int
14631 main ()
14632 {
14633
14634 ;
14635 return 0;
14636 }
14637 _ACEOF
14638 if ac_fn_c_try_link "$LINENO"; then :
14639 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14640 else
14641 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext \
14644 conftest$ac_exeext conftest.$ac_ext
14645 fi
14646
14647
14648 CFLAGS="$xorg_testset_save_CFLAGS"
14649
14650 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14652 $as_echo "$supported" >&6; }
14653 if test "$supported" = "yes" ; then
14654 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14655 found="yes"
14656 fi
14657 fi
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671 xorg_testset_save_CFLAGS="$CFLAGS"
14672
14673 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14676 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14677 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 int i;
14683 _ACEOF
14684 if ac_fn_c_try_compile "$LINENO"; then :
14685 xorg_cv_compiler_flag_unknown_warning_option=yes
14686 else
14687 xorg_cv_compiler_flag_unknown_warning_option=no
14688 fi
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 fi
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14692 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14693 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14694 CFLAGS="$xorg_testset_save_CFLAGS"
14695 fi
14696
14697 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700 fi
14701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14703 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14704 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 int i;
14710 _ACEOF
14711 if ac_fn_c_try_compile "$LINENO"; then :
14712 xorg_cv_compiler_flag_unused_command_line_argument=yes
14713 else
14714 xorg_cv_compiler_flag_unused_command_line_argument=no
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14719 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14720 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14721 CFLAGS="$xorg_testset_save_CFLAGS"
14722 fi
14723
14724 found="no"
14725
14726 if test $found = "no" ; then
14727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14729 fi
14730
14731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14733 fi
14734
14735 CFLAGS="$CFLAGS -Werror=array-bounds"
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14738 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14739 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14740 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 int i;
14746 int
14747 main ()
14748 {
14749
14750 ;
14751 return 0;
14752 }
14753 _ACEOF
14754 if ac_fn_c_try_link "$LINENO"; then :
14755 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14756 else
14757 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 fi
14762
14763
14764 CFLAGS="$xorg_testset_save_CFLAGS"
14765
14766 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14768 $as_echo "$supported" >&6; }
14769 if test "$supported" = "yes" ; then
14770 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14771 found="yes"
14772 fi
14773 fi
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787 xorg_testset_save_CFLAGS="$CFLAGS"
14788
14789 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14792 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14793 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 int i;
14799 _ACEOF
14800 if ac_fn_c_try_compile "$LINENO"; then :
14801 xorg_cv_compiler_flag_unknown_warning_option=yes
14802 else
14803 xorg_cv_compiler_flag_unknown_warning_option=no
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14808 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14809 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14810 CFLAGS="$xorg_testset_save_CFLAGS"
14811 fi
14812
14813 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14814 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14816 fi
14817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14819 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14820 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 int i;
14826 _ACEOF
14827 if ac_fn_c_try_compile "$LINENO"; then :
14828 xorg_cv_compiler_flag_unused_command_line_argument=yes
14829 else
14830 xorg_cv_compiler_flag_unused_command_line_argument=no
14831 fi
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 fi
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14835 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14836 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14837 CFLAGS="$xorg_testset_save_CFLAGS"
14838 fi
14839
14840 found="no"
14841
14842 if test $found = "no" ; then
14843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14845 fi
14846
14847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14849 fi
14850
14851 CFLAGS="$CFLAGS -Werror=write-strings"
14852
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14854 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14855 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14856 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 int i;
14862 int
14863 main ()
14864 {
14865
14866 ;
14867 return 0;
14868 }
14869 _ACEOF
14870 if ac_fn_c_try_link "$LINENO"; then :
14871 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14872 else
14873 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14874 fi
14875 rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14877 fi
14878
14879
14880 CFLAGS="$xorg_testset_save_CFLAGS"
14881
14882 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14884 $as_echo "$supported" >&6; }
14885 if test "$supported" = "yes" ; then
14886 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14887 found="yes"
14888 fi
14889 fi
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903 xorg_testset_save_CFLAGS="$CFLAGS"
14904
14905 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14908 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14909 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 int i;
14915 _ACEOF
14916 if ac_fn_c_try_compile "$LINENO"; then :
14917 xorg_cv_compiler_flag_unknown_warning_option=yes
14918 else
14919 xorg_cv_compiler_flag_unknown_warning_option=no
14920 fi
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14924 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14925 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14926 CFLAGS="$xorg_testset_save_CFLAGS"
14927 fi
14928
14929 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14932 fi
14933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14935 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14936 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941 int i;
14942 _ACEOF
14943 if ac_fn_c_try_compile "$LINENO"; then :
14944 xorg_cv_compiler_flag_unused_command_line_argument=yes
14945 else
14946 xorg_cv_compiler_flag_unused_command_line_argument=no
14947 fi
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 fi
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14951 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14952 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14953 CFLAGS="$xorg_testset_save_CFLAGS"
14954 fi
14955
14956 found="no"
14957
14958 if test $found = "no" ; then
14959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961 fi
14962
14963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14965 fi
14966
14967 CFLAGS="$CFLAGS -Werror=address"
14968
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14970 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14971 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14972 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 int i;
14978 int
14979 main ()
14980 {
14981
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 if ac_fn_c_try_link "$LINENO"; then :
14987 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14988 else
14989 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14990 fi
14991 rm -f core conftest.err conftest.$ac_objext \
14992 conftest$ac_exeext conftest.$ac_ext
14993 fi
14994
14995
14996 CFLAGS="$xorg_testset_save_CFLAGS"
14997
14998 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15000 $as_echo "$supported" >&6; }
15001 if test "$supported" = "yes" ; then
15002 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15003 found="yes"
15004 fi
15005 fi
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019 xorg_testset_save_CFLAGS="$CFLAGS"
15020
15021 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15024 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15025 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 int i;
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 xorg_cv_compiler_flag_unknown_warning_option=yes
15034 else
15035 xorg_cv_compiler_flag_unknown_warning_option=no
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15040 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15041 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15042 CFLAGS="$xorg_testset_save_CFLAGS"
15043 fi
15044
15045 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15048 fi
15049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15051 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15052 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 int i;
15058 _ACEOF
15059 if ac_fn_c_try_compile "$LINENO"; then :
15060 xorg_cv_compiler_flag_unused_command_line_argument=yes
15061 else
15062 xorg_cv_compiler_flag_unused_command_line_argument=no
15063 fi
15064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15065 fi
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15067 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15068 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15069 CFLAGS="$xorg_testset_save_CFLAGS"
15070 fi
15071
15072 found="no"
15073
15074 if test $found = "no" ; then
15075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15077 fi
15078
15079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15081 fi
15082
15083 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15084
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15086 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15087 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15088 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 int i;
15094 int
15095 main ()
15096 {
15097
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15104 else
15105 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15106 fi
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15109 fi
15110
15111
15112 CFLAGS="$xorg_testset_save_CFLAGS"
15113
15114 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15116 $as_echo "$supported" >&6; }
15117 if test "$supported" = "yes" ; then
15118 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15119 found="yes"
15120 fi
15121 fi
15122
15123 if test $found = "no" ; then
15124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15126 fi
15127
15128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15130 fi
15131
15132 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15133
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15135 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15136 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15137 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 int i;
15143 int
15144 main ()
15145 {
15146
15147 ;
15148 return 0;
15149 }
15150 _ACEOF
15151 if ac_fn_c_try_link "$LINENO"; then :
15152 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15153 else
15154 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158 fi
15159
15160
15161 CFLAGS="$xorg_testset_save_CFLAGS"
15162
15163 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15165 $as_echo "$supported" >&6; }
15166 if test "$supported" = "yes" ; then
15167 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15168 found="yes"
15169 fi
15170 fi
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184 xorg_testset_save_CFLAGS="$CFLAGS"
15185
15186 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15189 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15190 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15191 $as_echo_n "(cached) " >&6
15192 else
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195 int i;
15196 _ACEOF
15197 if ac_fn_c_try_compile "$LINENO"; then :
15198 xorg_cv_compiler_flag_unknown_warning_option=yes
15199 else
15200 xorg_cv_compiler_flag_unknown_warning_option=no
15201 fi
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 fi
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15205 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15206 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15207 CFLAGS="$xorg_testset_save_CFLAGS"
15208 fi
15209
15210 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15213 fi
15214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15216 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15217 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15218 $as_echo_n "(cached) " >&6
15219 else
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 int i;
15223 _ACEOF
15224 if ac_fn_c_try_compile "$LINENO"; then :
15225 xorg_cv_compiler_flag_unused_command_line_argument=yes
15226 else
15227 xorg_cv_compiler_flag_unused_command_line_argument=no
15228 fi
15229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230 fi
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15232 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15233 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15234 CFLAGS="$xorg_testset_save_CFLAGS"
15235 fi
15236
15237 found="no"
15238
15239 if test $found = "no" ; then
15240 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15242 fi
15243
15244 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15246 fi
15247
15248 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15251 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15252 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15253 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 int i;
15259 int
15260 main ()
15261 {
15262
15263 ;
15264 return 0;
15265 }
15266 _ACEOF
15267 if ac_fn_c_try_link "$LINENO"; then :
15268 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15269 else
15270 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15271 fi
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15274 fi
15275
15276
15277 CFLAGS="$xorg_testset_save_CFLAGS"
15278
15279 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15281 $as_echo "$supported" >&6; }
15282 if test "$supported" = "yes" ; then
15283 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15284 found="yes"
15285 fi
15286 fi
15287
15288 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15289 else
15290 { $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
15291 $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;}
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303 xorg_testset_save_CFLAGS="$CFLAGS"
15304
15305 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15308 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15309 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15310 $as_echo_n "(cached) " >&6
15311 else
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 int i;
15315 _ACEOF
15316 if ac_fn_c_try_compile "$LINENO"; then :
15317 xorg_cv_compiler_flag_unknown_warning_option=yes
15318 else
15319 xorg_cv_compiler_flag_unknown_warning_option=no
15320 fi
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 fi
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15324 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15325 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15326 CFLAGS="$xorg_testset_save_CFLAGS"
15327 fi
15328
15329 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15332 fi
15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15335 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15336 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15337 $as_echo_n "(cached) " >&6
15338 else
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 int i;
15342 _ACEOF
15343 if ac_fn_c_try_compile "$LINENO"; then :
15344 xorg_cv_compiler_flag_unused_command_line_argument=yes
15345 else
15346 xorg_cv_compiler_flag_unused_command_line_argument=no
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15351 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15352 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15353 CFLAGS="$xorg_testset_save_CFLAGS"
15354 fi
15355
15356 found="no"
15357
15358 if test $found = "no" ; then
15359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15361 fi
15362
15363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15365 fi
15366
15367 CFLAGS="$CFLAGS -Wimplicit"
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15370 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15371 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15372 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15373 $as_echo_n "(cached) " >&6
15374 else
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 int i;
15378 int
15379 main ()
15380 {
15381
15382 ;
15383 return 0;
15384 }
15385 _ACEOF
15386 if ac_fn_c_try_link "$LINENO"; then :
15387 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15388 else
15389 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15393 fi
15394
15395
15396 CFLAGS="$xorg_testset_save_CFLAGS"
15397
15398 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15400 $as_echo "$supported" >&6; }
15401 if test "$supported" = "yes" ; then
15402 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15403 found="yes"
15404 fi
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419 xorg_testset_save_CFLAGS="$CFLAGS"
15420
15421 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15424 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15425 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15426 $as_echo_n "(cached) " >&6
15427 else
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15430 int i;
15431 _ACEOF
15432 if ac_fn_c_try_compile "$LINENO"; then :
15433 xorg_cv_compiler_flag_unknown_warning_option=yes
15434 else
15435 xorg_cv_compiler_flag_unknown_warning_option=no
15436 fi
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15440 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15441 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15442 CFLAGS="$xorg_testset_save_CFLAGS"
15443 fi
15444
15445 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15448 fi
15449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15451 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15452 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 int i;
15458 _ACEOF
15459 if ac_fn_c_try_compile "$LINENO"; then :
15460 xorg_cv_compiler_flag_unused_command_line_argument=yes
15461 else
15462 xorg_cv_compiler_flag_unused_command_line_argument=no
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465 fi
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15467 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15468 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15469 CFLAGS="$xorg_testset_save_CFLAGS"
15470 fi
15471
15472 found="no"
15473
15474 if test $found = "no" ; then
15475 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15477 fi
15478
15479 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15481 fi
15482
15483 CFLAGS="$CFLAGS -Wnonnull"
15484
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15486 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15487 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15488 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493 int i;
15494 int
15495 main ()
15496 {
15497
15498 ;
15499 return 0;
15500 }
15501 _ACEOF
15502 if ac_fn_c_try_link "$LINENO"; then :
15503 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15504 else
15505 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15506 fi
15507 rm -f core conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
15509 fi
15510
15511
15512 CFLAGS="$xorg_testset_save_CFLAGS"
15513
15514 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15516 $as_echo "$supported" >&6; }
15517 if test "$supported" = "yes" ; then
15518 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15519 found="yes"
15520 fi
15521 fi
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535 xorg_testset_save_CFLAGS="$CFLAGS"
15536
15537 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15540 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15541 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15542 $as_echo_n "(cached) " >&6
15543 else
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15546 int i;
15547 _ACEOF
15548 if ac_fn_c_try_compile "$LINENO"; then :
15549 xorg_cv_compiler_flag_unknown_warning_option=yes
15550 else
15551 xorg_cv_compiler_flag_unknown_warning_option=no
15552 fi
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15554 fi
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15556 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15557 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15558 CFLAGS="$xorg_testset_save_CFLAGS"
15559 fi
15560
15561 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15564 fi
15565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15567 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15568 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15569 $as_echo_n "(cached) " >&6
15570 else
15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572 /* end confdefs.h. */
15573 int i;
15574 _ACEOF
15575 if ac_fn_c_try_compile "$LINENO"; then :
15576 xorg_cv_compiler_flag_unused_command_line_argument=yes
15577 else
15578 xorg_cv_compiler_flag_unused_command_line_argument=no
15579 fi
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581 fi
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15583 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15584 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15585 CFLAGS="$xorg_testset_save_CFLAGS"
15586 fi
15587
15588 found="no"
15589
15590 if test $found = "no" ; then
15591 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15593 fi
15594
15595 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15597 fi
15598
15599 CFLAGS="$CFLAGS -Winit-self"
15600
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15602 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15603 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15604 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15608 /* end confdefs.h. */
15609 int i;
15610 int
15611 main ()
15612 {
15613
15614 ;
15615 return 0;
15616 }
15617 _ACEOF
15618 if ac_fn_c_try_link "$LINENO"; then :
15619 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15620 else
15621 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15625 fi
15626
15627
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15629
15630 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15632 $as_echo "$supported" >&6; }
15633 if test "$supported" = "yes" ; then
15634 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15635 found="yes"
15636 fi
15637 fi
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651 xorg_testset_save_CFLAGS="$CFLAGS"
15652
15653 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15656 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15657 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15658 $as_echo_n "(cached) " >&6
15659 else
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 int i;
15663 _ACEOF
15664 if ac_fn_c_try_compile "$LINENO"; then :
15665 xorg_cv_compiler_flag_unknown_warning_option=yes
15666 else
15667 xorg_cv_compiler_flag_unknown_warning_option=no
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 fi
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15672 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15673 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15674 CFLAGS="$xorg_testset_save_CFLAGS"
15675 fi
15676
15677 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15680 fi
15681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15683 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15684 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15685 $as_echo_n "(cached) " >&6
15686 else
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 int i;
15690 _ACEOF
15691 if ac_fn_c_try_compile "$LINENO"; then :
15692 xorg_cv_compiler_flag_unused_command_line_argument=yes
15693 else
15694 xorg_cv_compiler_flag_unused_command_line_argument=no
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15697 fi
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15699 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15700 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15701 CFLAGS="$xorg_testset_save_CFLAGS"
15702 fi
15703
15704 found="no"
15705
15706 if test $found = "no" ; then
15707 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709 fi
15710
15711 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15713 fi
15714
15715 CFLAGS="$CFLAGS -Wmain"
15716
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15718 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15719 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15720 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 int i;
15726 int
15727 main ()
15728 {
15729
15730 ;
15731 return 0;
15732 }
15733 _ACEOF
15734 if ac_fn_c_try_link "$LINENO"; then :
15735 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15736 else
15737 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15738 fi
15739 rm -f core conftest.err conftest.$ac_objext \
15740 conftest$ac_exeext conftest.$ac_ext
15741 fi
15742
15743
15744 CFLAGS="$xorg_testset_save_CFLAGS"
15745
15746 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15748 $as_echo "$supported" >&6; }
15749 if test "$supported" = "yes" ; then
15750 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15751 found="yes"
15752 fi
15753 fi
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767 xorg_testset_save_CFLAGS="$CFLAGS"
15768
15769 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15772 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15773 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15774 $as_echo_n "(cached) " >&6
15775 else
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 int i;
15779 _ACEOF
15780 if ac_fn_c_try_compile "$LINENO"; then :
15781 xorg_cv_compiler_flag_unknown_warning_option=yes
15782 else
15783 xorg_cv_compiler_flag_unknown_warning_option=no
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 fi
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15788 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15789 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15790 CFLAGS="$xorg_testset_save_CFLAGS"
15791 fi
15792
15793 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15796 fi
15797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15799 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15800 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15801 $as_echo_n "(cached) " >&6
15802 else
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805 int i;
15806 _ACEOF
15807 if ac_fn_c_try_compile "$LINENO"; then :
15808 xorg_cv_compiler_flag_unused_command_line_argument=yes
15809 else
15810 xorg_cv_compiler_flag_unused_command_line_argument=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 fi
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15815 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15816 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15817 CFLAGS="$xorg_testset_save_CFLAGS"
15818 fi
15819
15820 found="no"
15821
15822 if test $found = "no" ; then
15823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15825 fi
15826
15827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15829 fi
15830
15831 CFLAGS="$CFLAGS -Wmissing-braces"
15832
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15834 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15835 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15836 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15837 $as_echo_n "(cached) " >&6
15838 else
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 int i;
15842 int
15843 main ()
15844 {
15845
15846 ;
15847 return 0;
15848 }
15849 _ACEOF
15850 if ac_fn_c_try_link "$LINENO"; then :
15851 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15852 else
15853 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15854 fi
15855 rm -f core conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15857 fi
15858
15859
15860 CFLAGS="$xorg_testset_save_CFLAGS"
15861
15862 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15864 $as_echo "$supported" >&6; }
15865 if test "$supported" = "yes" ; then
15866 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15867 found="yes"
15868 fi
15869 fi
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883 xorg_testset_save_CFLAGS="$CFLAGS"
15884
15885 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15888 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15889 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15890 $as_echo_n "(cached) " >&6
15891 else
15892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h. */
15894 int i;
15895 _ACEOF
15896 if ac_fn_c_try_compile "$LINENO"; then :
15897 xorg_cv_compiler_flag_unknown_warning_option=yes
15898 else
15899 xorg_cv_compiler_flag_unknown_warning_option=no
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15904 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15905 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15906 CFLAGS="$xorg_testset_save_CFLAGS"
15907 fi
15908
15909 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15912 fi
15913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15915 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15916 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15921 int i;
15922 _ACEOF
15923 if ac_fn_c_try_compile "$LINENO"; then :
15924 xorg_cv_compiler_flag_unused_command_line_argument=yes
15925 else
15926 xorg_cv_compiler_flag_unused_command_line_argument=no
15927 fi
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 fi
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15931 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15932 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15933 CFLAGS="$xorg_testset_save_CFLAGS"
15934 fi
15935
15936 found="no"
15937
15938 if test $found = "no" ; then
15939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15941 fi
15942
15943 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15945 fi
15946
15947 CFLAGS="$CFLAGS -Wsequence-point"
15948
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15950 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15951 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15952 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15953 $as_echo_n "(cached) " >&6
15954 else
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15957 int i;
15958 int
15959 main ()
15960 {
15961
15962 ;
15963 return 0;
15964 }
15965 _ACEOF
15966 if ac_fn_c_try_link "$LINENO"; then :
15967 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15968 else
15969 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15970 fi
15971 rm -f core conftest.err conftest.$ac_objext \
15972 conftest$ac_exeext conftest.$ac_ext
15973 fi
15974
15975
15976 CFLAGS="$xorg_testset_save_CFLAGS"
15977
15978 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15980 $as_echo "$supported" >&6; }
15981 if test "$supported" = "yes" ; then
15982 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15983 found="yes"
15984 fi
15985 fi
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999 xorg_testset_save_CFLAGS="$CFLAGS"
16000
16001 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16004 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16005 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 int i;
16011 _ACEOF
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 xorg_cv_compiler_flag_unknown_warning_option=yes
16014 else
16015 xorg_cv_compiler_flag_unknown_warning_option=no
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16020 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16021 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16022 CFLAGS="$xorg_testset_save_CFLAGS"
16023 fi
16024
16025 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028 fi
16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16031 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16032 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16033 $as_echo_n "(cached) " >&6
16034 else
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16037 int i;
16038 _ACEOF
16039 if ac_fn_c_try_compile "$LINENO"; then :
16040 xorg_cv_compiler_flag_unused_command_line_argument=yes
16041 else
16042 xorg_cv_compiler_flag_unused_command_line_argument=no
16043 fi
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16047 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16048 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16049 CFLAGS="$xorg_testset_save_CFLAGS"
16050 fi
16051
16052 found="no"
16053
16054 if test $found = "no" ; then
16055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057 fi
16058
16059 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16061 fi
16062
16063 CFLAGS="$CFLAGS -Wreturn-type"
16064
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16066 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16067 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16068 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 int i;
16074 int
16075 main ()
16076 {
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16083 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16084 else
16085 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16086 fi
16087 rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16089 fi
16090
16091
16092 CFLAGS="$xorg_testset_save_CFLAGS"
16093
16094 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16096 $as_echo "$supported" >&6; }
16097 if test "$supported" = "yes" ; then
16098 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16099 found="yes"
16100 fi
16101 fi
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115 xorg_testset_save_CFLAGS="$CFLAGS"
16116
16117 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16120 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16121 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16122 $as_echo_n "(cached) " >&6
16123 else
16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 int i;
16127 _ACEOF
16128 if ac_fn_c_try_compile "$LINENO"; then :
16129 xorg_cv_compiler_flag_unknown_warning_option=yes
16130 else
16131 xorg_cv_compiler_flag_unknown_warning_option=no
16132 fi
16133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134 fi
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16136 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16137 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16138 CFLAGS="$xorg_testset_save_CFLAGS"
16139 fi
16140
16141 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16144 fi
16145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16147 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16148 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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 _ACEOF
16155 if ac_fn_c_try_compile "$LINENO"; then :
16156 xorg_cv_compiler_flag_unused_command_line_argument=yes
16157 else
16158 xorg_cv_compiler_flag_unused_command_line_argument=no
16159 fi
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16163 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16164 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16165 CFLAGS="$xorg_testset_save_CFLAGS"
16166 fi
16167
16168 found="no"
16169
16170 if test $found = "no" ; then
16171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173 fi
16174
16175 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16177 fi
16178
16179 CFLAGS="$CFLAGS -Wtrigraphs"
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16182 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16183 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16184 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 int i;
16190 int
16191 main ()
16192 {
16193
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"; then :
16199 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16200 else
16201 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext \
16204 conftest$ac_exeext conftest.$ac_ext
16205 fi
16206
16207
16208 CFLAGS="$xorg_testset_save_CFLAGS"
16209
16210 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16212 $as_echo "$supported" >&6; }
16213 if test "$supported" = "yes" ; then
16214 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16215 found="yes"
16216 fi
16217 fi
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231 xorg_testset_save_CFLAGS="$CFLAGS"
16232
16233 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16236 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16237 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242 int i;
16243 _ACEOF
16244 if ac_fn_c_try_compile "$LINENO"; then :
16245 xorg_cv_compiler_flag_unknown_warning_option=yes
16246 else
16247 xorg_cv_compiler_flag_unknown_warning_option=no
16248 fi
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 fi
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16252 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16253 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16254 CFLAGS="$xorg_testset_save_CFLAGS"
16255 fi
16256
16257 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16258 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260 fi
16261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16263 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16264 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16265 $as_echo_n "(cached) " >&6
16266 else
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 int i;
16270 _ACEOF
16271 if ac_fn_c_try_compile "$LINENO"; then :
16272 xorg_cv_compiler_flag_unused_command_line_argument=yes
16273 else
16274 xorg_cv_compiler_flag_unused_command_line_argument=no
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 fi
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16279 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16280 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16281 CFLAGS="$xorg_testset_save_CFLAGS"
16282 fi
16283
16284 found="no"
16285
16286 if test $found = "no" ; then
16287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16289 fi
16290
16291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16293 fi
16294
16295 CFLAGS="$CFLAGS -Warray-bounds"
16296
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16298 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16299 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16300 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16301 $as_echo_n "(cached) " >&6
16302 else
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16305 int i;
16306 int
16307 main ()
16308 {
16309
16310 ;
16311 return 0;
16312 }
16313 _ACEOF
16314 if ac_fn_c_try_link "$LINENO"; then :
16315 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16316 else
16317 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16318 fi
16319 rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321 fi
16322
16323
16324 CFLAGS="$xorg_testset_save_CFLAGS"
16325
16326 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16328 $as_echo "$supported" >&6; }
16329 if test "$supported" = "yes" ; then
16330 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16331 found="yes"
16332 fi
16333 fi
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347 xorg_testset_save_CFLAGS="$CFLAGS"
16348
16349 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16352 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16353 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 int i;
16359 _ACEOF
16360 if ac_fn_c_try_compile "$LINENO"; then :
16361 xorg_cv_compiler_flag_unknown_warning_option=yes
16362 else
16363 xorg_cv_compiler_flag_unknown_warning_option=no
16364 fi
16365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366 fi
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16368 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16369 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16370 CFLAGS="$xorg_testset_save_CFLAGS"
16371 fi
16372
16373 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376 fi
16377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16379 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16380 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16381 $as_echo_n "(cached) " >&6
16382 else
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 int i;
16386 _ACEOF
16387 if ac_fn_c_try_compile "$LINENO"; then :
16388 xorg_cv_compiler_flag_unused_command_line_argument=yes
16389 else
16390 xorg_cv_compiler_flag_unused_command_line_argument=no
16391 fi
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393 fi
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16395 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16396 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16397 CFLAGS="$xorg_testset_save_CFLAGS"
16398 fi
16399
16400 found="no"
16401
16402 if test $found = "no" ; then
16403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16405 fi
16406
16407 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409 fi
16410
16411 CFLAGS="$CFLAGS -Wwrite-strings"
16412
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16414 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16415 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16416 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 int i;
16422 int
16423 main ()
16424 {
16425
16426 ;
16427 return 0;
16428 }
16429 _ACEOF
16430 if ac_fn_c_try_link "$LINENO"; then :
16431 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16432 else
16433 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16434 fi
16435 rm -f core conftest.err conftest.$ac_objext \
16436 conftest$ac_exeext conftest.$ac_ext
16437 fi
16438
16439
16440 CFLAGS="$xorg_testset_save_CFLAGS"
16441
16442 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16444 $as_echo "$supported" >&6; }
16445 if test "$supported" = "yes" ; then
16446 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16447 found="yes"
16448 fi
16449 fi
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463 xorg_testset_save_CFLAGS="$CFLAGS"
16464
16465 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16468 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16469 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 int i;
16475 _ACEOF
16476 if ac_fn_c_try_compile "$LINENO"; then :
16477 xorg_cv_compiler_flag_unknown_warning_option=yes
16478 else
16479 xorg_cv_compiler_flag_unknown_warning_option=no
16480 fi
16481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482 fi
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16484 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16485 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16486 CFLAGS="$xorg_testset_save_CFLAGS"
16487 fi
16488
16489 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16492 fi
16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16495 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16496 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498 else
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 int i;
16502 _ACEOF
16503 if ac_fn_c_try_compile "$LINENO"; then :
16504 xorg_cv_compiler_flag_unused_command_line_argument=yes
16505 else
16506 xorg_cv_compiler_flag_unused_command_line_argument=no
16507 fi
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509 fi
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16511 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16512 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16513 CFLAGS="$xorg_testset_save_CFLAGS"
16514 fi
16515
16516 found="no"
16517
16518 if test $found = "no" ; then
16519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16521 fi
16522
16523 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16525 fi
16526
16527 CFLAGS="$CFLAGS -Waddress"
16528
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16530 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16531 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16532 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16533 $as_echo_n "(cached) " >&6
16534 else
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537 int i;
16538 int
16539 main ()
16540 {
16541
16542 ;
16543 return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16547 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16548 else
16549 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16550 fi
16551 rm -f core conftest.err conftest.$ac_objext \
16552 conftest$ac_exeext conftest.$ac_ext
16553 fi
16554
16555
16556 CFLAGS="$xorg_testset_save_CFLAGS"
16557
16558 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16560 $as_echo "$supported" >&6; }
16561 if test "$supported" = "yes" ; then
16562 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16563 found="yes"
16564 fi
16565 fi
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579 xorg_testset_save_CFLAGS="$CFLAGS"
16580
16581 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16584 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16585 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16586 $as_echo_n "(cached) " >&6
16587 else
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590 int i;
16591 _ACEOF
16592 if ac_fn_c_try_compile "$LINENO"; then :
16593 xorg_cv_compiler_flag_unknown_warning_option=yes
16594 else
16595 xorg_cv_compiler_flag_unknown_warning_option=no
16596 fi
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16600 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16601 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16602 CFLAGS="$xorg_testset_save_CFLAGS"
16603 fi
16604
16605 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 fi
16609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16611 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16612 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16613 $as_echo_n "(cached) " >&6
16614 else
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 int i;
16618 _ACEOF
16619 if ac_fn_c_try_compile "$LINENO"; then :
16620 xorg_cv_compiler_flag_unused_command_line_argument=yes
16621 else
16622 xorg_cv_compiler_flag_unused_command_line_argument=no
16623 fi
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 fi
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16627 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16628 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16629 CFLAGS="$xorg_testset_save_CFLAGS"
16630 fi
16631
16632 found="no"
16633
16634 if test $found = "no" ; then
16635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637 fi
16638
16639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641 fi
16642
16643 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16646 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16647 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16648 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16649 $as_echo_n "(cached) " >&6
16650 else
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653 int i;
16654 int
16655 main ()
16656 {
16657
16658 ;
16659 return 0;
16660 }
16661 _ACEOF
16662 if ac_fn_c_try_link "$LINENO"; then :
16663 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16664 else
16665 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16666 fi
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 fi
16670
16671
16672 CFLAGS="$xorg_testset_save_CFLAGS"
16673
16674 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16676 $as_echo "$supported" >&6; }
16677 if test "$supported" = "yes" ; then
16678 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16679 found="yes"
16680 fi
16681 fi
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695 xorg_testset_save_CFLAGS="$CFLAGS"
16696
16697 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16700 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16701 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16702 $as_echo_n "(cached) " >&6
16703 else
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706 int i;
16707 _ACEOF
16708 if ac_fn_c_try_compile "$LINENO"; then :
16709 xorg_cv_compiler_flag_unknown_warning_option=yes
16710 else
16711 xorg_cv_compiler_flag_unknown_warning_option=no
16712 fi
16713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16714 fi
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16716 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16717 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16718 CFLAGS="$xorg_testset_save_CFLAGS"
16719 fi
16720
16721 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16724 fi
16725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16727 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16728 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16729 $as_echo_n "(cached) " >&6
16730 else
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 int i;
16734 _ACEOF
16735 if ac_fn_c_try_compile "$LINENO"; then :
16736 xorg_cv_compiler_flag_unused_command_line_argument=yes
16737 else
16738 xorg_cv_compiler_flag_unused_command_line_argument=no
16739 fi
16740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741 fi
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16743 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16744 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16745 CFLAGS="$xorg_testset_save_CFLAGS"
16746 fi
16747
16748 found="no"
16749
16750 if test $found = "no" ; then
16751 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753 fi
16754
16755 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757 fi
16758
16759 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16760
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16762 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16763 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16764 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16765 $as_echo_n "(cached) " >&6
16766 else
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769 int i;
16770 int
16771 main ()
16772 {
16773
16774 ;
16775 return 0;
16776 }
16777 _ACEOF
16778 if ac_fn_c_try_link "$LINENO"; then :
16779 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16780 else
16781 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16785 fi
16786
16787
16788 CFLAGS="$xorg_testset_save_CFLAGS"
16789
16790 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16792 $as_echo "$supported" >&6; }
16793 if test "$supported" = "yes" ; then
16794 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16795 found="yes"
16796 fi
16797 fi
16798
16799
16800 fi
16801
16802
16803
16804
16805
16806
16807
16808 CWARNFLAGS="$BASE_CFLAGS"
16809 if test "x$GCC" = xyes ; then
16810 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16811 fi
16812
16813
16814
16815
16816
16817
16818
16819
16820 # Check whether --enable-strict-compilation was given.
16821 if test "${enable_strict_compilation+set}" = set; then :
16822 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16823 else
16824 STRICT_COMPILE=no
16825 fi
16826
16827
16828
16829
16830
16831
16832 STRICT_CFLAGS=""
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844 xorg_testset_save_CFLAGS="$CFLAGS"
16845
16846 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16849 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16850 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16851 $as_echo_n "(cached) " >&6
16852 else
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855 int i;
16856 _ACEOF
16857 if ac_fn_c_try_compile "$LINENO"; then :
16858 xorg_cv_compiler_flag_unknown_warning_option=yes
16859 else
16860 xorg_cv_compiler_flag_unknown_warning_option=no
16861 fi
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 fi
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16865 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16866 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16867 CFLAGS="$xorg_testset_save_CFLAGS"
16868 fi
16869
16870 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16873 fi
16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16876 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16877 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16878 $as_echo_n "(cached) " >&6
16879 else
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16882 int i;
16883 _ACEOF
16884 if ac_fn_c_try_compile "$LINENO"; then :
16885 xorg_cv_compiler_flag_unused_command_line_argument=yes
16886 else
16887 xorg_cv_compiler_flag_unused_command_line_argument=no
16888 fi
16889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890 fi
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16892 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16893 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16894 CFLAGS="$xorg_testset_save_CFLAGS"
16895 fi
16896
16897 found="no"
16898
16899 if test $found = "no" ; then
16900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16902 fi
16903
16904 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16906 fi
16907
16908 CFLAGS="$CFLAGS -pedantic"
16909
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16911 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16912 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16913 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16914 $as_echo_n "(cached) " >&6
16915 else
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918 int i;
16919 int
16920 main ()
16921 {
16922
16923 ;
16924 return 0;
16925 }
16926 _ACEOF
16927 if ac_fn_c_try_link "$LINENO"; then :
16928 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16929 else
16930 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16931 fi
16932 rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16934 fi
16935
16936
16937 CFLAGS="$xorg_testset_save_CFLAGS"
16938
16939 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16941 $as_echo "$supported" >&6; }
16942 if test "$supported" = "yes" ; then
16943 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16944 found="yes"
16945 fi
16946 fi
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960 xorg_testset_save_CFLAGS="$CFLAGS"
16961
16962 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16965 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16966 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16967 $as_echo_n "(cached) " >&6
16968 else
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 int i;
16972 _ACEOF
16973 if ac_fn_c_try_compile "$LINENO"; then :
16974 xorg_cv_compiler_flag_unknown_warning_option=yes
16975 else
16976 xorg_cv_compiler_flag_unknown_warning_option=no
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 fi
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16981 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16982 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16983 CFLAGS="$xorg_testset_save_CFLAGS"
16984 fi
16985
16986 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989 fi
16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16992 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16993 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16994 $as_echo_n "(cached) " >&6
16995 else
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998 int i;
16999 _ACEOF
17000 if ac_fn_c_try_compile "$LINENO"; then :
17001 xorg_cv_compiler_flag_unused_command_line_argument=yes
17002 else
17003 xorg_cv_compiler_flag_unused_command_line_argument=no
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17008 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17009 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17010 CFLAGS="$xorg_testset_save_CFLAGS"
17011 fi
17012
17013 found="no"
17014
17015 if test $found = "no" ; then
17016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17018 fi
17019
17020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17022 fi
17023
17024 CFLAGS="$CFLAGS -Werror"
17025
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17027 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17028 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17029 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 int
17036 main ()
17037 {
17038
17039 ;
17040 return 0;
17041 }
17042 _ACEOF
17043 if ac_fn_c_try_link "$LINENO"; then :
17044 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17045 else
17046 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17047 fi
17048 rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17050 fi
17051
17052
17053 CFLAGS="$xorg_testset_save_CFLAGS"
17054
17055 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17057 $as_echo "$supported" >&6; }
17058 if test "$supported" = "yes" ; then
17059 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17060 found="yes"
17061 fi
17062 fi
17063
17064 if test $found = "no" ; then
17065 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17067 fi
17068
17069 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17071 fi
17072
17073 CFLAGS="$CFLAGS -errwarn"
17074
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17076 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17077 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17078 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17079 $as_echo_n "(cached) " >&6
17080 else
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17083 int i;
17084 int
17085 main ()
17086 {
17087
17088 ;
17089 return 0;
17090 }
17091 _ACEOF
17092 if ac_fn_c_try_link "$LINENO"; then :
17093 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17094 else
17095 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17096 fi
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 fi
17100
17101
17102 CFLAGS="$xorg_testset_save_CFLAGS"
17103
17104 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17106 $as_echo "$supported" >&6; }
17107 if test "$supported" = "yes" ; then
17108 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17109 found="yes"
17110 fi
17111 fi
17112
17113
17114
17115 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17116 # activate it with -Werror, so we add it here explicitly.
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128 xorg_testset_save_CFLAGS="$CFLAGS"
17129
17130 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17133 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17134 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17135 $as_echo_n "(cached) " >&6
17136 else
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17139 int i;
17140 _ACEOF
17141 if ac_fn_c_try_compile "$LINENO"; then :
17142 xorg_cv_compiler_flag_unknown_warning_option=yes
17143 else
17144 xorg_cv_compiler_flag_unknown_warning_option=no
17145 fi
17146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 fi
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17149 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17150 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17151 CFLAGS="$xorg_testset_save_CFLAGS"
17152 fi
17153
17154 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17157 fi
17158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17160 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17161 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17162 $as_echo_n "(cached) " >&6
17163 else
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17166 int i;
17167 _ACEOF
17168 if ac_fn_c_try_compile "$LINENO"; then :
17169 xorg_cv_compiler_flag_unused_command_line_argument=yes
17170 else
17171 xorg_cv_compiler_flag_unused_command_line_argument=no
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 fi
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17176 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17177 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17178 CFLAGS="$xorg_testset_save_CFLAGS"
17179 fi
17180
17181 found="no"
17182
17183 if test $found = "no" ; then
17184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186 fi
17187
17188 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17190 fi
17191
17192 CFLAGS="$CFLAGS -Werror=attributes"
17193
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17195 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17196 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17197 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17202 int i;
17203 int
17204 main ()
17205 {
17206
17207 ;
17208 return 0;
17209 }
17210 _ACEOF
17211 if ac_fn_c_try_link "$LINENO"; then :
17212 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17213 else
17214 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17215 fi
17216 rm -f core conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17218 fi
17219
17220
17221 CFLAGS="$xorg_testset_save_CFLAGS"
17222
17223 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17225 $as_echo "$supported" >&6; }
17226 if test "$supported" = "yes" ; then
17227 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17228 found="yes"
17229 fi
17230 fi
17231
17232
17233
17234 if test "x$STRICT_COMPILE" = "xyes"; then
17235 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17236 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17237 fi
17238
17239
17240
17241
17242
17243
17244 cat >>confdefs.h <<_ACEOF
17245 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17246 _ACEOF
17247
17248 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17249 if test "x$PVM" = "x"; then
17250 PVM="0"
17251 fi
17252
17253 cat >>confdefs.h <<_ACEOF
17254 #define PACKAGE_VERSION_MINOR $PVM
17255 _ACEOF
17256
17257 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17258 if test "x$PVP" = "x"; then
17259 PVP="0"
17260 fi
17261
17262 cat >>confdefs.h <<_ACEOF
17263 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17264 _ACEOF
17265
17266
17267
17268 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17269 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17270 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17271 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17272
17273
17274
17275
17276 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17277 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17278 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17279 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17280 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17281
17282
17283
17284
17285
17286
17287 if test x$APP_MAN_SUFFIX = x ; then
17288 APP_MAN_SUFFIX=1
17289 fi
17290 if test x$APP_MAN_DIR = x ; then
17291 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17292 fi
17293
17294 if test x$LIB_MAN_SUFFIX = x ; then
17295 LIB_MAN_SUFFIX=3
17296 fi
17297 if test x$LIB_MAN_DIR = x ; then
17298 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17299 fi
17300
17301 if test x$FILE_MAN_SUFFIX = x ; then
17302 case $host_os in
17303 solaris*) FILE_MAN_SUFFIX=4 ;;
17304 *) FILE_MAN_SUFFIX=5 ;;
17305 esac
17306 fi
17307 if test x$FILE_MAN_DIR = x ; then
17308 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17309 fi
17310
17311 if test x$MISC_MAN_SUFFIX = x ; then
17312 case $host_os in
17313 solaris*) MISC_MAN_SUFFIX=5 ;;
17314 *) MISC_MAN_SUFFIX=7 ;;
17315 esac
17316 fi
17317 if test x$MISC_MAN_DIR = x ; then
17318 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17319 fi
17320
17321 if test x$DRIVER_MAN_SUFFIX = x ; then
17322 case $host_os in
17323 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17324 *) DRIVER_MAN_SUFFIX=4 ;;
17325 esac
17326 fi
17327 if test x$DRIVER_MAN_DIR = x ; then
17328 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17329 fi
17330
17331 if test x$ADMIN_MAN_SUFFIX = x ; then
17332 case $host_os in
17333 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17334 *) ADMIN_MAN_SUFFIX=8 ;;
17335 esac
17336 fi
17337 if test x$ADMIN_MAN_DIR = x ; then
17338 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17339 fi
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355 XORG_MAN_PAGE="X Version 11"
17356
17357 MAN_SUBSTS="\
17358 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17359 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17360 -e 's|__xservername__|Xorg|g' \
17361 -e 's|__xconfigfile__|xorg.conf|g' \
17362 -e 's|__projectroot__|\$(prefix)|g' \
17363 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17364 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17365 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17366 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17367 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17368 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17369 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17370
17371
17372
17373 # Check whether --enable-silent-rules was given.
17374 if test "${enable_silent_rules+set}" = set; then :
17375 enableval=$enable_silent_rules;
17376 fi
17377
17378 case $enable_silent_rules in
17379 yes) AM_DEFAULT_VERBOSITY=0;;
17380 no) AM_DEFAULT_VERBOSITY=1;;
17381 *) AM_DEFAULT_VERBOSITY=0;;
17382 esac
17383 AM_BACKSLASH='\'
17384
17385
17386
17387 # Check whether --enable-malloc0returnsnull was given.
17388 if test "${enable_malloc0returnsnull+set}" = set; then :
17389 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17390 else
17391 MALLOC_ZERO_RETURNS_NULL=auto
17392 fi
17393
17394
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17396 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17397 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17398 if test "$cross_compiling" = yes; then :
17399 MALLOC_ZERO_RETURNS_NULL=yes
17400 else
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17403
17404 #include <stdlib.h>
17405
17406 int
17407 main ()
17408 {
17409
17410 char *m0, *r0, *c0, *p;
17411 m0 = malloc(0);
17412 p = malloc(10);
17413 r0 = realloc(p,0);
17414 c0 = calloc(0,10);
17415 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17416
17417 ;
17418 return 0;
17419 }
17420 _ACEOF
17421 if ac_fn_c_try_run "$LINENO"; then :
17422 MALLOC_ZERO_RETURNS_NULL=yes
17423 else
17424 MALLOC_ZERO_RETURNS_NULL=no
17425 fi
17426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17427 conftest.$ac_objext conftest.beam conftest.$ac_ext
17428 fi
17429
17430 fi
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17432 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17433
17434 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17435 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17436 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17437 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17438 else
17439 MALLOC_ZERO_CFLAGS=""
17440 XMALLOC_ZERO_CFLAGS=""
17441 XTMALLOC_ZERO_CFLAGS=""
17442 fi
17443
17444
17445
17446
17447
17448
17449 # Obtain compiler/linker options for depedencies
17450
17451 pkg_failed=no
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
17453 $as_echo_n "checking for XINERAMA... " >&6; }
17454
17455 if test -n "$XINERAMA_CFLAGS"; then
17456 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
17457 elif test -n "$PKG_CONFIG"; then
17458 if test -n "$PKG_CONFIG" && \
17459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
17460 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
17461 ac_status=$?
17462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17463 test $ac_status = 0; }; then
17464 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
17465 else
17466 pkg_failed=yes
17467 fi
17468 else
17469 pkg_failed=untried
17470 fi
17471 if test -n "$XINERAMA_LIBS"; then
17472 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
17473 elif test -n "$PKG_CONFIG"; then
17474 if test -n "$PKG_CONFIG" && \
17475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
17476 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
17477 ac_status=$?
17478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479 test $ac_status = 0; }; then
17480 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
17481 else
17482 pkg_failed=yes
17483 fi
17484 else
17485 pkg_failed=untried
17486 fi
17487
17488
17489
17490 if test $pkg_failed = yes; then
17491
17492 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17493 _pkg_short_errors_supported=yes
17494 else
17495 _pkg_short_errors_supported=no
17496 fi
17497 if test $_pkg_short_errors_supported = yes; then
17498 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
17499 else
17500 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
17501 fi
17502 # Put the nasty error message in config.log where it belongs
17503 echo "$XINERAMA_PKG_ERRORS" >&5
17504
17505 as_fn_error $? "Package requirements (x11 xext xextproto xineramaproto >= 1.1.99.1) were not met:
17506
17507 $XINERAMA_PKG_ERRORS
17508
17509 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17510 installed software in a non-standard prefix.
17511
17512 Alternatively, you may set the environment variables XINERAMA_CFLAGS
17513 and XINERAMA_LIBS to avoid the need to call pkg-config.
17514 See the pkg-config man page for more details.
17515 " "$LINENO" 5
17516 elif test $pkg_failed = untried; then
17517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17519 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17520 is in your PATH or set the PKG_CONFIG environment variable to the full
17521 path to pkg-config.
17522
17523 Alternatively, you may set the environment variables XINERAMA_CFLAGS
17524 and XINERAMA_LIBS to avoid the need to call pkg-config.
17525 See the pkg-config man page for more details.
17526
17527 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17528 See \`config.log' for more details" "$LINENO" 5; }
17529 else
17530 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
17531 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17533 $as_echo "yes" >&6; }
17534 :
17535 fi
17536
17537 # Allow checking code with lint, sparse, etc.
17538
17539
17540
17541
17542
17543 # Check whether --with-lint was given.
17544 if test "${with_lint+set}" = set; then :
17545 withval=$with_lint; use_lint=$withval
17546 else
17547 use_lint=no
17548 fi
17549
17550
17551 # Obtain platform specific info like program name and options
17552 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17553 case $host_os in
17554 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17555 lint_name=splint
17556 lint_options="-badflag"
17557 ;;
17558 *freebsd* | *netbsd*)
17559 lint_name=lint
17560 lint_options="-u -b"
17561 ;;
17562 *solaris*)
17563 lint_name=lint
17564 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17565 ;;
17566 esac
17567
17568 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17569 if test "x$use_lint" = x"yes" ; then
17570 # Extract the first word of "$lint_name", so it can be a program name with args.
17571 set dummy $lint_name; ac_word=$2
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17573 $as_echo_n "checking for $ac_word... " >&6; }
17574 if ${ac_cv_path_LINT+:} false; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577 case $LINT in
17578 [\\/]* | ?:[\\/]*)
17579 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17580 ;;
17581 *)
17582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17583 for as_dir in $PATH
17584 do
17585 IFS=$as_save_IFS
17586 test -z "$as_dir" && as_dir=.
17587 for ac_exec_ext in '' $ac_executable_extensions; do
17588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17589 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17591 break 2
17592 fi
17593 done
17594 done
17595 IFS=$as_save_IFS
17596
17597 ;;
17598 esac
17599 fi
17600 LINT=$ac_cv_path_LINT
17601 if test -n "$LINT"; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17603 $as_echo "$LINT" >&6; }
17604 else
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17606 $as_echo "no" >&6; }
17607 fi
17608
17609
17610 if test "x$LINT" = "x"; then
17611 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17612 fi
17613 elif test "x$use_lint" = x"no" ; then
17614 if test "x$LINT" != "x"; then
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17616 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17617 fi
17618 else
17619 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17620 fi
17621
17622 # User supplied flags override default flags
17623 if test "x$LINT_FLAGS" != "x"; then
17624 lint_options=$LINT_FLAGS
17625 fi
17626
17627 LINT_FLAGS=$lint_options
17628
17629 if test "x$LINT" != x; then
17630 LINT_TRUE=
17631 LINT_FALSE='#'
17632 else
17633 LINT_TRUE='#'
17634 LINT_FALSE=
17635 fi
17636
17637
17638
17639 LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
17640
17641 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc"
17642
17643 cat >confcache <<\_ACEOF
17644 # This file is a shell script that caches the results of configure
17645 # tests run on this system so they can be shared between configure
17646 # scripts and configure runs, see configure's option --config-cache.
17647 # It is not useful on other systems. If it contains results you don't
17648 # want to keep, you may remove or edit it.
17649 #
17650 # config.status only pays attention to the cache file if you give it
17651 # the --recheck option to rerun configure.
17652 #
17653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17655 # following values.
17656
17657 _ACEOF
17658
17659 # The following way of writing the cache mishandles newlines in values,
17660 # but we know of no workaround that is simple, portable, and efficient.
17661 # So, we kill variables containing newlines.
17662 # Ultrix sh set writes to stderr and can't be redirected directly,
17663 # and sets the high bit in the cache file unless we assign to the vars.
17664 (
17665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17666 eval ac_val=\$$ac_var
17667 case $ac_val in #(
17668 *${as_nl}*)
17669 case $ac_var in #(
17670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17672 esac
17673 case $ac_var in #(
17674 _ | IFS | as_nl) ;; #(
17675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17676 *) { eval $ac_var=; unset $ac_var;} ;;
17677 esac ;;
17678 esac
17679 done
17680
17681 (set) 2>&1 |
17682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17683 *${as_nl}ac_space=\ *)
17684 # `set' does not quote correctly, so add quotes: double-quote
17685 # substitution turns \\\\ into \\, and sed turns \\ into \.
17686 sed -n \
17687 "s/'/'\\\\''/g;
17688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17689 ;; #(
17690 *)
17691 # `set' quotes correctly as required by POSIX, so do not add quotes.
17692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17693 ;;
17694 esac |
17695 sort
17696 ) |
17697 sed '
17698 /^ac_cv_env_/b end
17699 t clear
17700 :clear
17701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17702 t end
17703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17704 :end' >>confcache
17705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17706 if test -w "$cache_file"; then
17707 if test "x$cache_file" != "x/dev/null"; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17709 $as_echo "$as_me: updating cache $cache_file" >&6;}
17710 if test ! -f "$cache_file" || test -h "$cache_file"; then
17711 cat confcache >"$cache_file"
17712 else
17713 case $cache_file in #(
17714 */* | ?:*)
17715 mv -f confcache "$cache_file"$$ &&
17716 mv -f "$cache_file"$$ "$cache_file" ;; #(
17717 *)
17718 mv -f confcache "$cache_file" ;;
17719 esac
17720 fi
17721 fi
17722 else
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17724 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17725 fi
17726 fi
17727 rm -f confcache
17728
17729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17730 # Let make expand exec_prefix.
17731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17732
17733 DEFS=-DHAVE_CONFIG_H
17734
17735 ac_libobjs=
17736 ac_ltlibobjs=
17737 U=
17738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17739 # 1. Remove the extension, and $U if already installed.
17740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17743 # will be set to the directory where LIBOBJS objects are built.
17744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17746 done
17747 LIBOBJS=$ac_libobjs
17748
17749 LTLIBOBJS=$ac_ltlibobjs
17750
17751
17752 if test -n "$EXEEXT"; then
17753 am__EXEEXT_TRUE=
17754 am__EXEEXT_FALSE='#'
17755 else
17756 am__EXEEXT_TRUE='#'
17757 am__EXEEXT_FALSE=
17758 fi
17759
17760 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17761 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17763 fi
17764 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17765 as_fn_error $? "conditional \"AMDEP\" was never defined.
17766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17767 fi
17768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17771 fi
17772 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17773 as_fn_error $? "conditional \"LINT\" was never defined.
17774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17775 fi
17776
17777 : "${CONFIG_STATUS=./config.status}"
17778 ac_write_fail=0
17779 ac_clean_files_save=$ac_clean_files
17780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17783 as_write_fail=0
17784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17785 #! $SHELL
17786 # Generated by $as_me.
17787 # Run this file to recreate the current configuration.
17788 # Compiler output produced by configure, useful for debugging
17789 # configure, is in config.log if it exists.
17790
17791 debug=false
17792 ac_cs_recheck=false
17793 ac_cs_silent=false
17794
17795 SHELL=\${CONFIG_SHELL-$SHELL}
17796 export SHELL
17797 _ASEOF
17798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17799 ## -------------------- ##
17800 ## M4sh Initialization. ##
17801 ## -------------------- ##
17802
17803 # Be more Bourne compatible
17804 DUALCASE=1; export DUALCASE # for MKS sh
17805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17806 emulate sh
17807 NULLCMD=:
17808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17809 # is contrary to our usage. Disable this feature.
17810 alias -g '${1+"$@"}'='"$@"'
17811 setopt NO_GLOB_SUBST
17812 else
17813 case `(set -o) 2>/dev/null` in #(
17814 *posix*) :
17815 set -o posix ;; #(
17816 *) :
17817 ;;
17818 esac
17819 fi
17820
17821
17822 as_nl='
17823 '
17824 export as_nl
17825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17829 # Prefer a ksh shell builtin over an external printf program on Solaris,
17830 # but without wasting forks for bash or zsh.
17831 if test -z "$BASH_VERSION$ZSH_VERSION" \
17832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17833 as_echo='print -r --'
17834 as_echo_n='print -rn --'
17835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17836 as_echo='printf %s\n'
17837 as_echo_n='printf %s'
17838 else
17839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17841 as_echo_n='/usr/ucb/echo -n'
17842 else
17843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17844 as_echo_n_body='eval
17845 arg=$1;
17846 case $arg in #(
17847 *"$as_nl"*)
17848 expr "X$arg" : "X\\(.*\\)$as_nl";
17849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17850 esac;
17851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17852 '
17853 export as_echo_n_body
17854 as_echo_n='sh -c $as_echo_n_body as_echo'
17855 fi
17856 export as_echo_body
17857 as_echo='sh -c $as_echo_body as_echo'
17858 fi
17859
17860 # The user is always right.
17861 if test "${PATH_SEPARATOR+set}" != set; then
17862 PATH_SEPARATOR=:
17863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17865 PATH_SEPARATOR=';'
17866 }
17867 fi
17868
17869
17870 # IFS
17871 # We need space, tab and new line, in precisely that order. Quoting is
17872 # there to prevent editors from complaining about space-tab.
17873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17874 # splitting by setting IFS to empty value.)
17875 IFS=" "" $as_nl"
17876
17877 # Find who we are. Look in the path if we contain no directory separator.
17878 as_myself=
17879 case $0 in #((
17880 *[\\/]* ) as_myself=$0 ;;
17881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17882 for as_dir in $PATH
17883 do
17884 IFS=$as_save_IFS
17885 test -z "$as_dir" && as_dir=.
17886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17887 done
17888 IFS=$as_save_IFS
17889
17890 ;;
17891 esac
17892 # We did not find ourselves, most probably we were run as `sh COMMAND'
17893 # in which case we are not to be found in the path.
17894 if test "x$as_myself" = x; then
17895 as_myself=$0
17896 fi
17897 if test ! -f "$as_myself"; then
17898 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17899 exit 1
17900 fi
17901
17902 # Unset variables that we do not need and which cause bugs (e.g. in
17903 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17904 # suppresses any "Segmentation fault" message there. '((' could
17905 # trigger a bug in pdksh 5.2.14.
17906 for as_var in BASH_ENV ENV MAIL MAILPATH
17907 do eval test x\${$as_var+set} = xset \
17908 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17909 done
17910 PS1='$ '
17911 PS2='> '
17912 PS4='+ '
17913
17914 # NLS nuisances.
17915 LC_ALL=C
17916 export LC_ALL
17917 LANGUAGE=C
17918 export LANGUAGE
17919
17920 # CDPATH.
17921 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17922
17923
17924 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17925 # ----------------------------------------
17926 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17927 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17928 # script with STATUS, using 1 if that was 0.
17929 as_fn_error ()
17930 {
17931 as_status=$1; test $as_status -eq 0 && as_status=1
17932 if test "$4"; then
17933 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17934 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17935 fi
17936 $as_echo "$as_me: error: $2" >&2
17937 as_fn_exit $as_status
17938 } # as_fn_error
17939
17940
17941 # as_fn_set_status STATUS
17942 # -----------------------
17943 # Set $? to STATUS, without forking.
17944 as_fn_set_status ()
17945 {
17946 return $1
17947 } # as_fn_set_status
17948
17949 # as_fn_exit STATUS
17950 # -----------------
17951 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17952 as_fn_exit ()
17953 {
17954 set +e
17955 as_fn_set_status $1
17956 exit $1
17957 } # as_fn_exit
17958
17959 # as_fn_unset VAR
17960 # ---------------
17961 # Portably unset VAR.
17962 as_fn_unset ()
17963 {
17964 { eval $1=; unset $1;}
17965 }
17966 as_unset=as_fn_unset
17967 # as_fn_append VAR VALUE
17968 # ----------------------
17969 # Append the text in VALUE to the end of the definition contained in VAR. Take
17970 # advantage of any shell optimizations that allow amortized linear growth over
17971 # repeated appends, instead of the typical quadratic growth present in naive
17972 # implementations.
17973 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17974 eval 'as_fn_append ()
17975 {
17976 eval $1+=\$2
17977 }'
17978 else
17979 as_fn_append ()
17980 {
17981 eval $1=\$$1\$2
17982 }
17983 fi # as_fn_append
17984
17985 # as_fn_arith ARG...
17986 # ------------------
17987 # Perform arithmetic evaluation on the ARGs, and store the result in the
17988 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17989 # must be portable across $(()) and expr.
17990 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17991 eval 'as_fn_arith ()
17992 {
17993 as_val=$(( $* ))
17994 }'
17995 else
17996 as_fn_arith ()
17997 {
17998 as_val=`expr "$@" || test $? -eq 1`
17999 }
18000 fi # as_fn_arith
18001
18002
18003 if expr a : '\(a\)' >/dev/null 2>&1 &&
18004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18005 as_expr=expr
18006 else
18007 as_expr=false
18008 fi
18009
18010 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18011 as_basename=basename
18012 else
18013 as_basename=false
18014 fi
18015
18016 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18017 as_dirname=dirname
18018 else
18019 as_dirname=false
18020 fi
18021
18022 as_me=`$as_basename -- "$0" ||
18023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18024 X"$0" : 'X\(//\)$' \| \
18025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18026 $as_echo X/"$0" |
18027 sed '/^.*\/\([^/][^/]*\)\/*$/{
18028 s//\1/
18029 q
18030 }
18031 /^X\/\(\/\/\)$/{
18032 s//\1/
18033 q
18034 }
18035 /^X\/\(\/\).*/{
18036 s//\1/
18037 q
18038 }
18039 s/.*/./; q'`
18040
18041 # Avoid depending upon Character Ranges.
18042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18045 as_cr_digits='0123456789'
18046 as_cr_alnum=$as_cr_Letters$as_cr_digits
18047
18048 ECHO_C= ECHO_N= ECHO_T=
18049 case `echo -n x` in #(((((
18050 -n*)
18051 case `echo 'xy\c'` in
18052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18053 xy) ECHO_C='\c';;
18054 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18055 ECHO_T=' ';;
18056 esac;;
18057 *)
18058 ECHO_N='-n';;
18059 esac
18060
18061 rm -f conf$$ conf$$.exe conf$$.file
18062 if test -d conf$$.dir; then
18063 rm -f conf$$.dir/conf$$.file
18064 else
18065 rm -f conf$$.dir
18066 mkdir conf$$.dir 2>/dev/null
18067 fi
18068 if (echo >conf$$.file) 2>/dev/null; then
18069 if ln -s conf$$.file conf$$ 2>/dev/null; then
18070 as_ln_s='ln -s'
18071 # ... but there are two gotchas:
18072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18074 # In both cases, we have to default to `cp -p'.
18075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18076 as_ln_s='cp -p'
18077 elif ln conf$$.file conf$$ 2>/dev/null; then
18078 as_ln_s=ln
18079 else
18080 as_ln_s='cp -p'
18081 fi
18082 else
18083 as_ln_s='cp -p'
18084 fi
18085 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18086 rmdir conf$$.dir 2>/dev/null
18087
18088
18089 # as_fn_mkdir_p
18090 # -------------
18091 # Create "$as_dir" as a directory, including parents if necessary.
18092 as_fn_mkdir_p ()
18093 {
18094
18095 case $as_dir in #(
18096 -*) as_dir=./$as_dir;;
18097 esac
18098 test -d "$as_dir" || eval $as_mkdir_p || {
18099 as_dirs=
18100 while :; do
18101 case $as_dir in #(
18102 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18103 *) as_qdir=$as_dir;;
18104 esac
18105 as_dirs="'$as_qdir' $as_dirs"
18106 as_dir=`$as_dirname -- "$as_dir" ||
18107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18108 X"$as_dir" : 'X\(//\)[^/]' \| \
18109 X"$as_dir" : 'X\(//\)$' \| \
18110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18111 $as_echo X"$as_dir" |
18112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18113 s//\1/
18114 q
18115 }
18116 /^X\(\/\/\)[^/].*/{
18117 s//\1/
18118 q
18119 }
18120 /^X\(\/\/\)$/{
18121 s//\1/
18122 q
18123 }
18124 /^X\(\/\).*/{
18125 s//\1/
18126 q
18127 }
18128 s/.*/./; q'`
18129 test -d "$as_dir" && break
18130 done
18131 test -z "$as_dirs" || eval "mkdir $as_dirs"
18132 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18133
18134
18135 } # as_fn_mkdir_p
18136 if mkdir -p . 2>/dev/null; then
18137 as_mkdir_p='mkdir -p "$as_dir"'
18138 else
18139 test -d ./-p && rmdir ./-p
18140 as_mkdir_p=false
18141 fi
18142
18143 if test -x / >/dev/null 2>&1; then
18144 as_test_x='test -x'
18145 else
18146 if ls -dL / >/dev/null 2>&1; then
18147 as_ls_L_option=L
18148 else
18149 as_ls_L_option=
18150 fi
18151 as_test_x='
18152 eval sh -c '\''
18153 if test -d "$1"; then
18154 test -d "$1/.";
18155 else
18156 case $1 in #(
18157 -*)set "./$1";;
18158 esac;
18159 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18160 ???[sx]*):;;*)false;;esac;fi
18161 '\'' sh
18162 '
18163 fi
18164 as_executable_p=$as_test_x
18165
18166 # Sed expression to map a string onto a valid CPP name.
18167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18168
18169 # Sed expression to map a string onto a valid variable name.
18170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18171
18172
18173 exec 6>&1
18174 ## ----------------------------------- ##
18175 ## Main body of $CONFIG_STATUS script. ##
18176 ## ----------------------------------- ##
18177 _ASEOF
18178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18179
18180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18181 # Save the log message, to keep $0 and so on meaningful, and to
18182 # report actual input values of CONFIG_FILES etc. instead of their
18183 # values after options handling.
18184 ac_log="
18185 This file was extended by libXinerama $as_me 1.1.2, which was
18186 generated by GNU Autoconf 2.68. Invocation command line was
18187
18188 CONFIG_FILES = $CONFIG_FILES
18189 CONFIG_HEADERS = $CONFIG_HEADERS
18190 CONFIG_LINKS = $CONFIG_LINKS
18191 CONFIG_COMMANDS = $CONFIG_COMMANDS
18192 $ $0 $@
18193
18194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18195 "
18196
18197 _ACEOF
18198
18199 case $ac_config_files in *"
18200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18201 esac
18202
18203 case $ac_config_headers in *"
18204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18205 esac
18206
18207
18208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18209 # Files that config.status was made for.
18210 config_files="$ac_config_files"
18211 config_headers="$ac_config_headers"
18212 config_commands="$ac_config_commands"
18213
18214 _ACEOF
18215
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 ac_cs_usage="\
18218 \`$as_me' instantiates files and other configuration actions
18219 from templates according to the current configuration. Unless the files
18220 and actions are specified as TAGs, all are instantiated by default.
18221
18222 Usage: $0 [OPTION]... [TAG]...
18223
18224 -h, --help print this help, then exit
18225 -V, --version print version number and configuration settings, then exit
18226 --config print configuration, then exit
18227 -q, --quiet, --silent
18228 do not print progress messages
18229 -d, --debug don't remove temporary files
18230 --recheck update $as_me by reconfiguring in the same conditions
18231 --file=FILE[:TEMPLATE]
18232 instantiate the configuration file FILE
18233 --header=FILE[:TEMPLATE]
18234 instantiate the configuration header FILE
18235
18236 Configuration files:
18237 $config_files
18238
18239 Configuration headers:
18240 $config_headers
18241
18242 Configuration commands:
18243 $config_commands
18244
18245 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18246
18247 _ACEOF
18248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18250 ac_cs_version="\\
18251 libXinerama config.status 1.1.2
18252 configured by $0, generated by GNU Autoconf 2.68,
18253 with options \\"\$ac_cs_config\\"
18254
18255 Copyright (C) 2010 Free Software Foundation, Inc.
18256 This config.status script is free software; the Free Software Foundation
18257 gives unlimited permission to copy, distribute and modify it."
18258
18259 ac_pwd='$ac_pwd'
18260 srcdir='$srcdir'
18261 INSTALL='$INSTALL'
18262 MKDIR_P='$MKDIR_P'
18263 AWK='$AWK'
18264 test -n "\$AWK" || AWK=awk
18265 _ACEOF
18266
18267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18268 # The default lists apply if the user does not specify any file.
18269 ac_need_defaults=:
18270 while test $# != 0
18271 do
18272 case $1 in
18273 --*=?*)
18274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18276 ac_shift=:
18277 ;;
18278 --*=)
18279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18280 ac_optarg=
18281 ac_shift=:
18282 ;;
18283 *)
18284 ac_option=$1
18285 ac_optarg=$2
18286 ac_shift=shift
18287 ;;
18288 esac
18289
18290 case $ac_option in
18291 # Handling of the options.
18292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18293 ac_cs_recheck=: ;;
18294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18295 $as_echo "$ac_cs_version"; exit ;;
18296 --config | --confi | --conf | --con | --co | --c )
18297 $as_echo "$ac_cs_config"; exit ;;
18298 --debug | --debu | --deb | --de | --d | -d )
18299 debug=: ;;
18300 --file | --fil | --fi | --f )
18301 $ac_shift
18302 case $ac_optarg in
18303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18304 '') as_fn_error $? "missing file argument" ;;
18305 esac
18306 as_fn_append CONFIG_FILES " '$ac_optarg'"
18307 ac_need_defaults=false;;
18308 --header | --heade | --head | --hea )
18309 $ac_shift
18310 case $ac_optarg in
18311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18312 esac
18313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18314 ac_need_defaults=false;;
18315 --he | --h)
18316 # Conflict between --help and --header
18317 as_fn_error $? "ambiguous option: \`$1'
18318 Try \`$0 --help' for more information.";;
18319 --help | --hel | -h )
18320 $as_echo "$ac_cs_usage"; exit ;;
18321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18323 ac_cs_silent=: ;;
18324
18325 # This is an error.
18326 -*) as_fn_error $? "unrecognized option: \`$1'
18327 Try \`$0 --help' for more information." ;;
18328
18329 *) as_fn_append ac_config_targets " $1"
18330 ac_need_defaults=false ;;
18331
18332 esac
18333 shift
18334 done
18335
18336 ac_configure_extra_args=
18337
18338 if $ac_cs_silent; then
18339 exec 6>/dev/null
18340 ac_configure_extra_args="$ac_configure_extra_args --silent"
18341 fi
18342
18343 _ACEOF
18344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18345 if \$ac_cs_recheck; then
18346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18347 shift
18348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18349 CONFIG_SHELL='$SHELL'
18350 export CONFIG_SHELL
18351 exec "\$@"
18352 fi
18353
18354 _ACEOF
18355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18356 exec 5>>config.log
18357 {
18358 echo
18359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18360 ## Running $as_me. ##
18361 _ASBOX
18362 $as_echo "$ac_log"
18363 } >&5
18364
18365 _ACEOF
18366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18367 #
18368 # INIT-COMMANDS
18369 #
18370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18371
18372
18373 # The HP-UX ksh and POSIX shell print the target directory to stdout
18374 # if CDPATH is set.
18375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18376
18377 sed_quote_subst='$sed_quote_subst'
18378 double_quote_subst='$double_quote_subst'
18379 delay_variable_subst='$delay_variable_subst'
18380 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18381 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18388 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18389 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18390 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18391 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18392 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18393 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18394 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18395 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18396 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18397 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18398 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18399 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18400 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18401 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18402 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18403 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18404 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18405 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18406 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18407 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18408 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18409 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18410 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18411 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18412 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18413 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18414 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18415 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18416 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18417 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18418 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18419 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18420 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18421 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18422 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18423 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18424 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18425 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18426 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18427 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18428 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18429 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18430 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18431 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18432 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18433 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18434 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18435 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"`'
18436 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18437 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18438 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18439 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18440 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18441 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18442 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18443 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18444 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18445 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18446 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18447 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18448 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18449 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18450 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18451 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18452 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18453 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18454 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18455 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18456 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18457 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18458 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18459 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18460 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18461 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18462 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18463 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18464 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18465 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18466 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18467 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18468 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18469 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18470 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18471 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18472 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18473 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18474 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18475 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18476 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18477 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18478 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18479 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18480 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18481 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18482 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18483 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18484 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18485 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18486 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18487 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18488 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18489 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18490 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18491 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18492 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18493 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18494 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18495 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18496 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18497 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18498 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18499 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18500 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18501 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18502 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18503 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18504 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18505 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18506 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18507 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18508 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18509 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18510
18511 LTCC='$LTCC'
18512 LTCFLAGS='$LTCFLAGS'
18513 compiler='$compiler_DEFAULT'
18514
18515 # A function that is used when there is no print builtin or printf.
18516 func_fallback_echo ()
18517 {
18518 eval 'cat <<_LTECHO_EOF
18519 \$1
18520 _LTECHO_EOF'
18521 }
18522
18523 # Quote evaled strings.
18524 for var in SHELL \
18525 ECHO \
18526 SED \
18527 GREP \
18528 EGREP \
18529 FGREP \
18530 LD \
18531 NM \
18532 LN_S \
18533 lt_SP2NL \
18534 lt_NL2SP \
18535 reload_flag \
18536 OBJDUMP \
18537 deplibs_check_method \
18538 file_magic_cmd \
18539 file_magic_glob \
18540 want_nocaseglob \
18541 DLLTOOL \
18542 sharedlib_from_linklib_cmd \
18543 AR \
18544 AR_FLAGS \
18545 archiver_list_spec \
18546 STRIP \
18547 RANLIB \
18548 CC \
18549 CFLAGS \
18550 compiler \
18551 lt_cv_sys_global_symbol_pipe \
18552 lt_cv_sys_global_symbol_to_cdecl \
18553 lt_cv_sys_global_symbol_to_c_name_address \
18554 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18555 nm_file_list_spec \
18556 lt_prog_compiler_no_builtin_flag \
18557 lt_prog_compiler_pic \
18558 lt_prog_compiler_wl \
18559 lt_prog_compiler_static \
18560 lt_cv_prog_compiler_c_o \
18561 need_locks \
18562 MANIFEST_TOOL \
18563 DSYMUTIL \
18564 NMEDIT \
18565 LIPO \
18566 OTOOL \
18567 OTOOL64 \
18568 shrext_cmds \
18569 export_dynamic_flag_spec \
18570 whole_archive_flag_spec \
18571 compiler_needs_object \
18572 with_gnu_ld \
18573 allow_undefined_flag \
18574 no_undefined_flag \
18575 hardcode_libdir_flag_spec \
18576 hardcode_libdir_flag_spec_ld \
18577 hardcode_libdir_separator \
18578 exclude_expsyms \
18579 include_expsyms \
18580 file_list_spec \
18581 variables_saved_for_relink \
18582 libname_spec \
18583 library_names_spec \
18584 soname_spec \
18585 install_override_mode \
18586 finish_eval \
18587 old_striplib \
18588 striplib; do
18589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18590 *[\\\\\\\`\\"\\\$]*)
18591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18592 ;;
18593 *)
18594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18595 ;;
18596 esac
18597 done
18598
18599 # Double-quote double-evaled strings.
18600 for var in reload_cmds \
18601 old_postinstall_cmds \
18602 old_postuninstall_cmds \
18603 old_archive_cmds \
18604 extract_expsyms_cmds \
18605 old_archive_from_new_cmds \
18606 old_archive_from_expsyms_cmds \
18607 archive_cmds \
18608 archive_expsym_cmds \
18609 module_cmds \
18610 module_expsym_cmds \
18611 export_symbols_cmds \
18612 prelink_cmds \
18613 postlink_cmds \
18614 postinstall_cmds \
18615 postuninstall_cmds \
18616 finish_cmds \
18617 sys_lib_search_path_spec \
18618 sys_lib_dlsearch_path_spec; do
18619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18620 *[\\\\\\\`\\"\\\$]*)
18621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18622 ;;
18623 *)
18624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18625 ;;
18626 esac
18627 done
18628
18629 ac_aux_dir='$ac_aux_dir'
18630 xsi_shell='$xsi_shell'
18631 lt_shell_append='$lt_shell_append'
18632
18633 # See if we are running on zsh, and set the options which allow our
18634 # commands through without removal of \ escapes INIT.
18635 if test -n "\${ZSH_VERSION+set}" ; then
18636 setopt NO_GLOB_SUBST
18637 fi
18638
18639
18640 PACKAGE='$PACKAGE'
18641 VERSION='$VERSION'
18642 TIMESTAMP='$TIMESTAMP'
18643 RM='$RM'
18644 ofile='$ofile'
18645
18646
18647
18648
18649 _ACEOF
18650
18651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18652
18653 # Handling of arguments.
18654 for ac_config_target in $ac_config_targets
18655 do
18656 case $ac_config_target in
18657 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18659 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18661 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18662 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18663 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;;
18664
18665 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18666 esac
18667 done
18668
18669
18670 # If the user did not use the arguments to specify the items to instantiate,
18671 # then the envvar interface is used. Set only those that are not.
18672 # We use the long form for the default assignment because of an extremely
18673 # bizarre bug on SunOS 4.1.3.
18674 if $ac_need_defaults; then
18675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18678 fi
18679
18680 # Have a temporary directory for convenience. Make it in the build tree
18681 # simply because there is no reason against having it here, and in addition,
18682 # creating and moving files from /tmp can sometimes cause problems.
18683 # Hook for its removal unless debugging.
18684 # Note that there is a small window in which the directory will not be cleaned:
18685 # after its creation but before its name has been assigned to `$tmp'.
18686 $debug ||
18687 {
18688 tmp= ac_tmp=
18689 trap 'exit_status=$?
18690 : "${ac_tmp:=$tmp}"
18691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18692 ' 0
18693 trap 'as_fn_exit 1' 1 2 13 15
18694 }
18695 # Create a (secure) tmp directory for tmp files.
18696
18697 {
18698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18699 test -d "$tmp"
18700 } ||
18701 {
18702 tmp=./conf$$-$RANDOM
18703 (umask 077 && mkdir "$tmp")
18704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18705 ac_tmp=$tmp
18706
18707 # Set up the scripts for CONFIG_FILES section.
18708 # No need to generate them if there are no CONFIG_FILES.
18709 # This happens for instance with `./config.status config.h'.
18710 if test -n "$CONFIG_FILES"; then
18711
18712
18713 ac_cr=`echo X | tr X '\015'`
18714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18715 # But we know of no other shell where ac_cr would be empty at this
18716 # point, so we can use a bashism as a fallback.
18717 if test "x$ac_cr" = x; then
18718 eval ac_cr=\$\'\\r\'
18719 fi
18720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18722 ac_cs_awk_cr='\\r'
18723 else
18724 ac_cs_awk_cr=$ac_cr
18725 fi
18726
18727 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18728 _ACEOF
18729
18730
18731 {
18732 echo "cat >conf$$subs.awk <<_ACEOF" &&
18733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18734 echo "_ACEOF"
18735 } >conf$$subs.sh ||
18736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18738 ac_delim='%!_!# '
18739 for ac_last_try in false false false false false :; do
18740 . ./conf$$subs.sh ||
18741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18742
18743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18744 if test $ac_delim_n = $ac_delim_num; then
18745 break
18746 elif $ac_last_try; then
18747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18748 else
18749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18750 fi
18751 done
18752 rm -f conf$$subs.sh
18753
18754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18755 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18756 _ACEOF
18757 sed -n '
18758 h
18759 s/^/S["/; s/!.*/"]=/
18760 p
18761 g
18762 s/^[^!]*!//
18763 :repl
18764 t repl
18765 s/'"$ac_delim"'$//
18766 t delim
18767 :nl
18768 h
18769 s/\(.\{148\}\)..*/\1/
18770 t more1
18771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18772 p
18773 n
18774 b repl
18775 :more1
18776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18777 p
18778 g
18779 s/.\{148\}//
18780 t nl
18781 :delim
18782 h
18783 s/\(.\{148\}\)..*/\1/
18784 t more2
18785 s/["\\]/\\&/g; s/^/"/; s/$/"/
18786 p
18787 b
18788 :more2
18789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18790 p
18791 g
18792 s/.\{148\}//
18793 t delim
18794 ' <conf$$subs.awk | sed '
18795 /^[^""]/{
18796 N
18797 s/\n//
18798 }
18799 ' >>$CONFIG_STATUS || ac_write_fail=1
18800 rm -f conf$$subs.awk
18801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18802 _ACAWK
18803 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18804 for (key in S) S_is_set[key] = 1
18805 FS = ""
18806
18807 }
18808 {
18809 line = $ 0
18810 nfields = split(line, field, "@")
18811 substed = 0
18812 len = length(field[1])
18813 for (i = 2; i < nfields; i++) {
18814 key = field[i]
18815 keylen = length(key)
18816 if (S_is_set[key]) {
18817 value = S[key]
18818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18819 len += length(value) + length(field[++i])
18820 substed = 1
18821 } else
18822 len += 1 + keylen
18823 }
18824
18825 print line
18826 }
18827
18828 _ACAWK
18829 _ACEOF
18830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18833 else
18834 cat
18835 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18836 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18837 _ACEOF
18838
18839 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18840 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18841 # trailing colons and then remove the whole line if VPATH becomes empty
18842 # (actually we leave an empty line to preserve line numbers).
18843 if test "x$srcdir" = x.; then
18844 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18845 h
18846 s///
18847 s/^/:/
18848 s/[ ]*$/:/
18849 s/:\$(srcdir):/:/g
18850 s/:\${srcdir}:/:/g
18851 s/:@srcdir@:/:/g
18852 s/^:*//
18853 s/:*$//
18854 x
18855 s/\(=[ ]*\).*/\1/
18856 G
18857 s/\n//
18858 s/^[^=]*=[ ]*$//
18859 }'
18860 fi
18861
18862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18863 fi # test -n "$CONFIG_FILES"
18864
18865 # Set up the scripts for CONFIG_HEADERS section.
18866 # No need to generate them if there are no CONFIG_HEADERS.
18867 # This happens for instance with `./config.status Makefile'.
18868 if test -n "$CONFIG_HEADERS"; then
18869 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18870 BEGIN {
18871 _ACEOF
18872
18873 # Transform confdefs.h into an awk script `defines.awk', embedded as
18874 # here-document in config.status, that substitutes the proper values into
18875 # config.h.in to produce config.h.
18876
18877 # Create a delimiter string that does not exist in confdefs.h, to ease
18878 # handling of long lines.
18879 ac_delim='%!_!# '
18880 for ac_last_try in false false :; do
18881 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18882 if test -z "$ac_tt"; then
18883 break
18884 elif $ac_last_try; then
18885 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18886 else
18887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18888 fi
18889 done
18890
18891 # For the awk script, D is an array of macro values keyed by name,
18892 # likewise P contains macro parameters if any. Preserve backslash
18893 # newline sequences.
18894
18895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18896 sed -n '
18897 s/.\{148\}/&'"$ac_delim"'/g
18898 t rset
18899 :rset
18900 s/^[ ]*#[ ]*define[ ][ ]*/ /
18901 t def
18902 d
18903 :def
18904 s/\\$//
18905 t bsnl
18906 s/["\\]/\\&/g
18907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18908 D["\1"]=" \3"/p
18909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18910 d
18911 :bsnl
18912 s/["\\]/\\&/g
18913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18914 D["\1"]=" \3\\\\\\n"\\/p
18915 t cont
18916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18917 t cont
18918 d
18919 :cont
18920 n
18921 s/.\{148\}/&'"$ac_delim"'/g
18922 t clear
18923 :clear
18924 s/\\$//
18925 t bsnlc
18926 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18927 d
18928 :bsnlc
18929 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18930 b cont
18931 ' <confdefs.h | sed '
18932 s/'"$ac_delim"'/"\\\
18933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18934
18935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18936 for (key in D) D_is_set[key] = 1
18937 FS = ""
18938 }
18939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18940 line = \$ 0
18941 split(line, arg, " ")
18942 if (arg[1] == "#") {
18943 defundef = arg[2]
18944 mac1 = arg[3]
18945 } else {
18946 defundef = substr(arg[1], 2)
18947 mac1 = arg[2]
18948 }
18949 split(mac1, mac2, "(") #)
18950 macro = mac2[1]
18951 prefix = substr(line, 1, index(line, defundef) - 1)
18952 if (D_is_set[macro]) {
18953 # Preserve the white space surrounding the "#".
18954 print prefix "define", macro P[macro] D[macro]
18955 next
18956 } else {
18957 # Replace #undef with comments. This is necessary, for example,
18958 # in the case of _POSIX_SOURCE, which is predefined and required
18959 # on some systems where configure will not decide to define it.
18960 if (defundef == "undef") {
18961 print "/*", prefix defundef, macro, "*/"
18962 next
18963 }
18964 }
18965 }
18966 { print }
18967 _ACAWK
18968 _ACEOF
18969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18970 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18971 fi # test -n "$CONFIG_HEADERS"
18972
18973
18974 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18975 shift
18976 for ac_tag
18977 do
18978 case $ac_tag in
18979 :[FHLC]) ac_mode=$ac_tag; continue;;
18980 esac
18981 case $ac_mode$ac_tag in
18982 :[FHL]*:*);;
18983 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18984 :[FH]-) ac_tag=-:-;;
18985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18986 esac
18987 ac_save_IFS=$IFS
18988 IFS=:
18989 set x $ac_tag
18990 IFS=$ac_save_IFS
18991 shift
18992 ac_file=$1
18993 shift
18994
18995 case $ac_mode in
18996 :L) ac_source=$1;;
18997 :[FH])
18998 ac_file_inputs=
18999 for ac_f
19000 do
19001 case $ac_f in
19002 -) ac_f="$ac_tmp/stdin";;
19003 *) # Look for the file first in the build tree, then in the source tree
19004 # (if the path is not absolute). The absolute path cannot be DOS-style,
19005 # because $ac_f cannot contain `:'.
19006 test -f "$ac_f" ||
19007 case $ac_f in
19008 [\\/$]*) false;;
19009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19010 esac ||
19011 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19012 esac
19013 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19014 as_fn_append ac_file_inputs " '$ac_f'"
19015 done
19016
19017 # Let's still pretend it is `configure' which instantiates (i.e., don't
19018 # use $as_me), people would be surprised to read:
19019 # /* config.h. Generated by config.status. */
19020 configure_input='Generated from '`
19021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19022 `' by configure.'
19023 if test x"$ac_file" != x-; then
19024 configure_input="$ac_file. $configure_input"
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19026 $as_echo "$as_me: creating $ac_file" >&6;}
19027 fi
19028 # Neutralize special characters interpreted by sed in replacement strings.
19029 case $configure_input in #(
19030 *\&* | *\|* | *\\* )
19031 ac_sed_conf_input=`$as_echo "$configure_input" |
19032 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19033 *) ac_sed_conf_input=$configure_input;;
19034 esac
19035
19036 case $ac_tag in
19037 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19039 esac
19040 ;;
19041 esac
19042
19043 ac_dir=`$as_dirname -- "$ac_file" ||
19044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19045 X"$ac_file" : 'X\(//\)[^/]' \| \
19046 X"$ac_file" : 'X\(//\)$' \| \
19047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19048 $as_echo X"$ac_file" |
19049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19050 s//\1/
19051 q
19052 }
19053 /^X\(\/\/\)[^/].*/{
19054 s//\1/
19055 q
19056 }
19057 /^X\(\/\/\)$/{
19058 s//\1/
19059 q
19060 }
19061 /^X\(\/\).*/{
19062 s//\1/
19063 q
19064 }
19065 s/.*/./; q'`
19066 as_dir="$ac_dir"; as_fn_mkdir_p
19067 ac_builddir=.
19068
19069 case "$ac_dir" in
19070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19071 *)
19072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19073 # A ".." for each directory in $ac_dir_suffix.
19074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19075 case $ac_top_builddir_sub in
19076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19078 esac ;;
19079 esac
19080 ac_abs_top_builddir=$ac_pwd
19081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19082 # for backward compatibility:
19083 ac_top_builddir=$ac_top_build_prefix
19084
19085 case $srcdir in
19086 .) # We are building in place.
19087 ac_srcdir=.
19088 ac_top_srcdir=$ac_top_builddir_sub
19089 ac_abs_top_srcdir=$ac_pwd ;;
19090 [\\/]* | ?:[\\/]* ) # Absolute name.
19091 ac_srcdir=$srcdir$ac_dir_suffix;
19092 ac_top_srcdir=$srcdir
19093 ac_abs_top_srcdir=$srcdir ;;
19094 *) # Relative name.
19095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19096 ac_top_srcdir=$ac_top_build_prefix$srcdir
19097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19098 esac
19099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19100
19101
19102 case $ac_mode in
19103 :F)
19104 #
19105 # CONFIG_FILE
19106 #
19107
19108 case $INSTALL in
19109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19110 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19111 esac
19112 ac_MKDIR_P=$MKDIR_P
19113 case $MKDIR_P in
19114 [\\/$]* | ?:[\\/]* ) ;;
19115 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19116 esac
19117 _ACEOF
19118
19119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19120 # If the template does not know about datarootdir, expand it.
19121 # FIXME: This hack should be removed a few years after 2.60.
19122 ac_datarootdir_hack=; ac_datarootdir_seen=
19123 ac_sed_dataroot='
19124 /datarootdir/ {
19125 p
19126 q
19127 }
19128 /@datadir@/p
19129 /@docdir@/p
19130 /@infodir@/p
19131 /@localedir@/p
19132 /@mandir@/p'
19133 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19134 *datarootdir*) ac_datarootdir_seen=yes;;
19135 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19137 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19138 _ACEOF
19139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19140 ac_datarootdir_hack='
19141 s&@datadir@&$datadir&g
19142 s&@docdir@&$docdir&g
19143 s&@infodir@&$infodir&g
19144 s&@localedir@&$localedir&g
19145 s&@mandir@&$mandir&g
19146 s&\\\${datarootdir}&$datarootdir&g' ;;
19147 esac
19148 _ACEOF
19149
19150 # Neutralize VPATH when `$srcdir' = `.'.
19151 # Shell code in configure.ac might set extrasub.
19152 # FIXME: do we really want to maintain this feature?
19153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 ac_sed_extra="$ac_vpsub
19155 $extrasub
19156 _ACEOF
19157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158 :t
19159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19160 s|@configure_input@|$ac_sed_conf_input|;t t
19161 s&@top_builddir@&$ac_top_builddir_sub&;t t
19162 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19163 s&@srcdir@&$ac_srcdir&;t t
19164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19165 s&@top_srcdir@&$ac_top_srcdir&;t t
19166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19167 s&@builddir@&$ac_builddir&;t t
19168 s&@abs_builddir@&$ac_abs_builddir&;t t
19169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19170 s&@INSTALL@&$ac_INSTALL&;t t
19171 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19172 $ac_datarootdir_hack
19173 "
19174 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19175 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19176
19177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19178 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19180 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19182 which seems to be undefined. Please make sure it is defined" >&5
19183 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19184 which seems to be undefined. Please make sure it is defined" >&2;}
19185
19186 rm -f "$ac_tmp/stdin"
19187 case $ac_file in
19188 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19189 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19190 esac \
19191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19192 ;;
19193 :H)
19194 #
19195 # CONFIG_HEADER
19196 #
19197 if test x"$ac_file" != x-; then
19198 {
19199 $as_echo "/* $configure_input */" \
19200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19201 } >"$ac_tmp/config.h" \
19202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19203 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19205 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19206 else
19207 rm -f "$ac_file"
19208 mv "$ac_tmp/config.h" "$ac_file" \
19209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19210 fi
19211 else
19212 $as_echo "/* $configure_input */" \
19213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19214 || as_fn_error $? "could not create -" "$LINENO" 5
19215 fi
19216 # Compute "$ac_file"'s index in $config_headers.
19217 _am_arg="$ac_file"
19218 _am_stamp_count=1
19219 for _am_header in $config_headers :; do
19220 case $_am_header in
19221 $_am_arg | $_am_arg:* )
19222 break ;;
19223 * )
19224 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19225 esac
19226 done
19227 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19228 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19229 X"$_am_arg" : 'X\(//\)[^/]' \| \
19230 X"$_am_arg" : 'X\(//\)$' \| \
19231 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19232 $as_echo X"$_am_arg" |
19233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19234 s//\1/
19235 q
19236 }
19237 /^X\(\/\/\)[^/].*/{
19238 s//\1/
19239 q
19240 }
19241 /^X\(\/\/\)$/{
19242 s//\1/
19243 q
19244 }
19245 /^X\(\/\).*/{
19246 s//\1/
19247 q
19248 }
19249 s/.*/./; q'`/stamp-h$_am_stamp_count
19250 ;;
19251
19252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19253 $as_echo "$as_me: executing $ac_file commands" >&6;}
19254 ;;
19255 esac
19256
19257
19258 case $ac_file$ac_mode in
19259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19260 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19261 # are listed without --file. Let's play safe and only enable the eval
19262 # if we detect the quoting.
19263 case $CONFIG_FILES in
19264 *\'*) eval set x "$CONFIG_FILES" ;;
19265 *) set x $CONFIG_FILES ;;
19266 esac
19267 shift
19268 for mf
19269 do
19270 # Strip MF so we end up with the name of the file.
19271 mf=`echo "$mf" | sed -e 's/:.*$//'`
19272 # Check whether this is an Automake generated Makefile or not.
19273 # We used to match only the files named `Makefile.in', but
19274 # some people rename them; so instead we look at the file content.
19275 # Grep'ing the first line is not enough: some people post-process
19276 # each Makefile.in and add a new line on top of each file to say so.
19277 # Grep'ing the whole file is not good either: AIX grep has a line
19278 # limit of 2048, but all sed's we know have understand at least 4000.
19279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19280 dirpart=`$as_dirname -- "$mf" ||
19281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19282 X"$mf" : 'X\(//\)[^/]' \| \
19283 X"$mf" : 'X\(//\)$' \| \
19284 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19285 $as_echo X"$mf" |
19286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19287 s//\1/
19288 q
19289 }
19290 /^X\(\/\/\)[^/].*/{
19291 s//\1/
19292 q
19293 }
19294 /^X\(\/\/\)$/{
19295 s//\1/
19296 q
19297 }
19298 /^X\(\/\).*/{
19299 s//\1/
19300 q
19301 }
19302 s/.*/./; q'`
19303 else
19304 continue
19305 fi
19306 # Extract the definition of DEPDIR, am__include, and am__quote
19307 # from the Makefile without running `make'.
19308 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19309 test -z "$DEPDIR" && continue
19310 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19311 test -z "am__include" && continue
19312 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19313 # When using ansi2knr, U may be empty or an underscore; expand it
19314 U=`sed -n 's/^U = //p' < "$mf"`
19315 # Find all dependency output files, they are included files with
19316 # $(DEPDIR) in their names. We invoke sed twice because it is the
19317 # simplest approach to changing $(DEPDIR) to its actual value in the
19318 # expansion.
19319 for file in `sed -n "
19320 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19322 # Make sure the directory exists.
19323 test -f "$dirpart/$file" && continue
19324 fdir=`$as_dirname -- "$file" ||
19325 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19326 X"$file" : 'X\(//\)[^/]' \| \
19327 X"$file" : 'X\(//\)$' \| \
19328 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19329 $as_echo X"$file" |
19330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19331 s//\1/
19332 q
19333 }
19334 /^X\(\/\/\)[^/].*/{
19335 s//\1/
19336 q
19337 }
19338 /^X\(\/\/\)$/{
19339 s//\1/
19340 q
19341 }
19342 /^X\(\/\).*/{
19343 s//\1/
19344 q
19345 }
19346 s/.*/./; q'`
19347 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19348 # echo "creating $dirpart/$file"
19349 echo '# dummy' > "$dirpart/$file"
19350 done
19351 done
19352 }
19353 ;;
19354 "libtool":C)
19355
19356 # See if we are running on zsh, and set the options which allow our
19357 # commands through without removal of \ escapes.
19358 if test -n "${ZSH_VERSION+set}" ; then
19359 setopt NO_GLOB_SUBST
19360 fi
19361
19362 cfgfile="${ofile}T"
19363 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19364 $RM "$cfgfile"
19365
19366 cat <<_LT_EOF >> "$cfgfile"
19367 #! $SHELL
19368
19369 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19370 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19372 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19373 #
19374 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19375 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19376 # Inc.
19377 # Written by Gordon Matzigkeit, 1996
19378 #
19379 # This file is part of GNU Libtool.
19380 #
19381 # GNU Libtool is free software; you can redistribute it and/or
19382 # modify it under the terms of the GNU General Public License as
19383 # published by the Free Software Foundation; either version 2 of
19384 # the License, or (at your option) any later version.
19385 #
19386 # As a special exception to the GNU General Public License,
19387 # if you distribute this file as part of a program or library that
19388 # is built using GNU Libtool, you may include this file under the
19389 # same distribution terms that you use for the rest of that program.
19390 #
19391 # GNU Libtool is distributed in the hope that it will be useful,
19392 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19393 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19394 # GNU General Public License for more details.
19395 #
19396 # You should have received a copy of the GNU General Public License
19397 # along with GNU Libtool; see the file COPYING. If not, a copy
19398 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19399 # obtained by writing to the Free Software Foundation, Inc.,
19400 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19401
19402
19403 # The names of the tagged configurations supported by this script.
19404 available_tags=""
19405
19406 # ### BEGIN LIBTOOL CONFIG
19407
19408 # Which release of libtool.m4 was used?
19409 macro_version=$macro_version
19410 macro_revision=$macro_revision
19411
19412 # Whether or not to build shared libraries.
19413 build_libtool_libs=$enable_shared
19414
19415 # Whether or not to build static libraries.
19416 build_old_libs=$enable_static
19417
19418 # What type of objects to build.
19419 pic_mode=$pic_mode
19420
19421 # Whether or not to optimize for fast installation.
19422 fast_install=$enable_fast_install
19423
19424 # Shell to use when invoking shell scripts.
19425 SHELL=$lt_SHELL
19426
19427 # An echo program that protects backslashes.
19428 ECHO=$lt_ECHO
19429
19430 # The host system.
19431 host_alias=$host_alias
19432 host=$host
19433 host_os=$host_os
19434
19435 # The build system.
19436 build_alias=$build_alias
19437 build=$build
19438 build_os=$build_os
19439
19440 # A sed program that does not truncate output.
19441 SED=$lt_SED
19442
19443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19444 Xsed="\$SED -e 1s/^X//"
19445
19446 # A grep program that handles long lines.
19447 GREP=$lt_GREP
19448
19449 # An ERE matcher.
19450 EGREP=$lt_EGREP
19451
19452 # A literal string matcher.
19453 FGREP=$lt_FGREP
19454
19455 # A BSD- or MS-compatible name lister.
19456 NM=$lt_NM
19457
19458 # Whether we need soft or hard links.
19459 LN_S=$lt_LN_S
19460
19461 # What is the maximum length of a command?
19462 max_cmd_len=$max_cmd_len
19463
19464 # Object file suffix (normally "o").
19465 objext=$ac_objext
19466
19467 # Executable file suffix (normally "").
19468 exeext=$exeext
19469
19470 # whether the shell understands "unset".
19471 lt_unset=$lt_unset
19472
19473 # turn spaces into newlines.
19474 SP2NL=$lt_lt_SP2NL
19475
19476 # turn newlines into spaces.
19477 NL2SP=$lt_lt_NL2SP
19478
19479 # convert \$build file names to \$host format.
19480 to_host_file_cmd=$lt_cv_to_host_file_cmd
19481
19482 # convert \$build files to toolchain format.
19483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19484
19485 # An object symbol dumper.
19486 OBJDUMP=$lt_OBJDUMP
19487
19488 # Method to check whether dependent libraries are shared objects.
19489 deplibs_check_method=$lt_deplibs_check_method
19490
19491 # Command to use when deplibs_check_method = "file_magic".
19492 file_magic_cmd=$lt_file_magic_cmd
19493
19494 # How to find potential files when deplibs_check_method = "file_magic".
19495 file_magic_glob=$lt_file_magic_glob
19496
19497 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19498 want_nocaseglob=$lt_want_nocaseglob
19499
19500 # DLL creation program.
19501 DLLTOOL=$lt_DLLTOOL
19502
19503 # Command to associate shared and link libraries.
19504 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19505
19506 # The archiver.
19507 AR=$lt_AR
19508
19509 # Flags to create an archive.
19510 AR_FLAGS=$lt_AR_FLAGS
19511
19512 # How to feed a file listing to the archiver.
19513 archiver_list_spec=$lt_archiver_list_spec
19514
19515 # A symbol stripping program.
19516 STRIP=$lt_STRIP
19517
19518 # Commands used to install an old-style archive.
19519 RANLIB=$lt_RANLIB
19520 old_postinstall_cmds=$lt_old_postinstall_cmds
19521 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19522
19523 # Whether to use a lock for old archive extraction.
19524 lock_old_archive_extraction=$lock_old_archive_extraction
19525
19526 # A C compiler.
19527 LTCC=$lt_CC
19528
19529 # LTCC compiler flags.
19530 LTCFLAGS=$lt_CFLAGS
19531
19532 # Take the output of nm and produce a listing of raw symbols and C names.
19533 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19534
19535 # Transform the output of nm in a proper C declaration.
19536 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19537
19538 # Transform the output of nm in a C name address pair.
19539 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19540
19541 # Transform the output of nm in a C name address pair when lib prefix is needed.
19542 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19543
19544 # Specify filename containing input files for \$NM.
19545 nm_file_list_spec=$lt_nm_file_list_spec
19546
19547 # The root where to search for dependent libraries,and in which our libraries should be installed.
19548 lt_sysroot=$lt_sysroot
19549
19550 # The name of the directory that contains temporary libtool files.
19551 objdir=$objdir
19552
19553 # Used to examine libraries when file_magic_cmd begins with "file".
19554 MAGIC_CMD=$MAGIC_CMD
19555
19556 # Must we lock files when doing compilation?
19557 need_locks=$lt_need_locks
19558
19559 # Manifest tool.
19560 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19561
19562 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19563 DSYMUTIL=$lt_DSYMUTIL
19564
19565 # Tool to change global to local symbols on Mac OS X.
19566 NMEDIT=$lt_NMEDIT
19567
19568 # Tool to manipulate fat objects and archives on Mac OS X.
19569 LIPO=$lt_LIPO
19570
19571 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19572 OTOOL=$lt_OTOOL
19573
19574 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19575 OTOOL64=$lt_OTOOL64
19576
19577 # Old archive suffix (normally "a").
19578 libext=$libext
19579
19580 # Shared library suffix (normally ".so").
19581 shrext_cmds=$lt_shrext_cmds
19582
19583 # The commands to extract the exported symbol list from a shared archive.
19584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19585
19586 # Variables whose values should be saved in libtool wrapper scripts and
19587 # restored at link time.
19588 variables_saved_for_relink=$lt_variables_saved_for_relink
19589
19590 # Do we need the "lib" prefix for modules?
19591 need_lib_prefix=$need_lib_prefix
19592
19593 # Do we need a version for libraries?
19594 need_version=$need_version
19595
19596 # Library versioning type.
19597 version_type=$version_type
19598
19599 # Shared library runtime path variable.
19600 runpath_var=$runpath_var
19601
19602 # Shared library path variable.
19603 shlibpath_var=$shlibpath_var
19604
19605 # Is shlibpath searched before the hard-coded library search path?
19606 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19607
19608 # Format of library name prefix.
19609 libname_spec=$lt_libname_spec
19610
19611 # List of archive names. First name is the real one, the rest are links.
19612 # The last name is the one that the linker finds with -lNAME
19613 library_names_spec=$lt_library_names_spec
19614
19615 # The coded name of the library, if different from the real name.
19616 soname_spec=$lt_soname_spec
19617
19618 # Permission mode override for installation of shared libraries.
19619 install_override_mode=$lt_install_override_mode
19620
19621 # Command to use after installation of a shared archive.
19622 postinstall_cmds=$lt_postinstall_cmds
19623
19624 # Command to use after uninstallation of a shared archive.
19625 postuninstall_cmds=$lt_postuninstall_cmds
19626
19627 # Commands used to finish a libtool library installation in a directory.
19628 finish_cmds=$lt_finish_cmds
19629
19630 # As "finish_cmds", except a single script fragment to be evaled but
19631 # not shown.
19632 finish_eval=$lt_finish_eval
19633
19634 # Whether we should hardcode library paths into libraries.
19635 hardcode_into_libs=$hardcode_into_libs
19636
19637 # Compile-time system search path for libraries.
19638 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19639
19640 # Run-time system search path for libraries.
19641 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19642
19643 # Whether dlopen is supported.
19644 dlopen_support=$enable_dlopen
19645
19646 # Whether dlopen of programs is supported.
19647 dlopen_self=$enable_dlopen_self
19648
19649 # Whether dlopen of statically linked programs is supported.
19650 dlopen_self_static=$enable_dlopen_self_static
19651
19652 # Commands to strip libraries.
19653 old_striplib=$lt_old_striplib
19654 striplib=$lt_striplib
19655
19656
19657 # The linker used to build libraries.
19658 LD=$lt_LD
19659
19660 # How to create reloadable object files.
19661 reload_flag=$lt_reload_flag
19662 reload_cmds=$lt_reload_cmds
19663
19664 # Commands used to build an old-style archive.
19665 old_archive_cmds=$lt_old_archive_cmds
19666
19667 # A language specific compiler.
19668 CC=$lt_compiler
19669
19670 # Is the compiler the GNU compiler?
19671 with_gcc=$GCC
19672
19673 # Compiler flag to turn off builtin functions.
19674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19675
19676 # Additional compiler flags for building library objects.
19677 pic_flag=$lt_lt_prog_compiler_pic
19678
19679 # How to pass a linker flag through the compiler.
19680 wl=$lt_lt_prog_compiler_wl
19681
19682 # Compiler flag to prevent dynamic linking.
19683 link_static_flag=$lt_lt_prog_compiler_static
19684
19685 # Does compiler simultaneously support -c and -o options?
19686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19687
19688 # Whether or not to add -lc for building shared libraries.
19689 build_libtool_need_lc=$archive_cmds_need_lc
19690
19691 # Whether or not to disallow shared libs when runtime libs are static.
19692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19693
19694 # Compiler flag to allow reflexive dlopens.
19695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19696
19697 # Compiler flag to generate shared objects directly from archives.
19698 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19699
19700 # Whether the compiler copes with passing no objects directly.
19701 compiler_needs_object=$lt_compiler_needs_object
19702
19703 # Create an old-style archive from a shared archive.
19704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19705
19706 # Create a temporary old-style archive to link instead of a shared archive.
19707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19708
19709 # Commands used to build a shared archive.
19710 archive_cmds=$lt_archive_cmds
19711 archive_expsym_cmds=$lt_archive_expsym_cmds
19712
19713 # Commands used to build a loadable module if different from building
19714 # a shared archive.
19715 module_cmds=$lt_module_cmds
19716 module_expsym_cmds=$lt_module_expsym_cmds
19717
19718 # Whether we are building with GNU ld or not.
19719 with_gnu_ld=$lt_with_gnu_ld
19720
19721 # Flag that allows shared libraries with undefined symbols to be built.
19722 allow_undefined_flag=$lt_allow_undefined_flag
19723
19724 # Flag that enforces no undefined symbols.
19725 no_undefined_flag=$lt_no_undefined_flag
19726
19727 # Flag to hardcode \$libdir into a binary during linking.
19728 # This must work even if \$libdir does not exist
19729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19730
19731 # If ld is used when linking, flag to hardcode \$libdir into a binary
19732 # during linking. This must work even if \$libdir does not exist.
19733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19734
19735 # Whether we need a single "-rpath" flag with a separated argument.
19736 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19737
19738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19739 # DIR into the resulting binary.
19740 hardcode_direct=$hardcode_direct
19741
19742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19743 # DIR into the resulting binary and the resulting library dependency is
19744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19745 # library is relocated.
19746 hardcode_direct_absolute=$hardcode_direct_absolute
19747
19748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19749 # into the resulting binary.
19750 hardcode_minus_L=$hardcode_minus_L
19751
19752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19753 # into the resulting binary.
19754 hardcode_shlibpath_var=$hardcode_shlibpath_var
19755
19756 # Set to "yes" if building a shared library automatically hardcodes DIR
19757 # into the library and all subsequent libraries and executables linked
19758 # against it.
19759 hardcode_automatic=$hardcode_automatic
19760
19761 # Set to yes if linker adds runtime paths of dependent libraries
19762 # to runtime path list.
19763 inherit_rpath=$inherit_rpath
19764
19765 # Whether libtool must link a program against all its dependency libraries.
19766 link_all_deplibs=$link_all_deplibs
19767
19768 # Set to "yes" if exported symbols are required.
19769 always_export_symbols=$always_export_symbols
19770
19771 # The commands to list exported symbols.
19772 export_symbols_cmds=$lt_export_symbols_cmds
19773
19774 # Symbols that should not be listed in the preloaded symbols.
19775 exclude_expsyms=$lt_exclude_expsyms
19776
19777 # Symbols that must always be exported.
19778 include_expsyms=$lt_include_expsyms
19779
19780 # Commands necessary for linking programs (against libraries) with templates.
19781 prelink_cmds=$lt_prelink_cmds
19782
19783 # Commands necessary for finishing linking programs.
19784 postlink_cmds=$lt_postlink_cmds
19785
19786 # Specify filename containing input files.
19787 file_list_spec=$lt_file_list_spec
19788
19789 # How to hardcode a shared library path into an executable.
19790 hardcode_action=$hardcode_action
19791
19792 # ### END LIBTOOL CONFIG
19793
19794 _LT_EOF
19795
19796 case $host_os in
19797 aix3*)
19798 cat <<\_LT_EOF >> "$cfgfile"
19799 # AIX sometimes has problems with the GCC collect2 program. For some
19800 # reason, if we set the COLLECT_NAMES environment variable, the problems
19801 # vanish in a puff of smoke.
19802 if test "X${COLLECT_NAMES+set}" != Xset; then
19803 COLLECT_NAMES=
19804 export COLLECT_NAMES
19805 fi
19806 _LT_EOF
19807 ;;
19808 esac
19809
19810
19811 ltmain="$ac_aux_dir/ltmain.sh"
19812
19813
19814 # We use sed instead of cat because bash on DJGPP gets confused if
19815 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19816 # text mode, it properly converts lines to CR/LF. This bash problem
19817 # is reportedly fixed, but why not run on old versions too?
19818 sed '$q' "$ltmain" >> "$cfgfile" \
19819 || (rm -f "$cfgfile"; exit 1)
19820
19821 if test x"$xsi_shell" = xyes; then
19822 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19823 func_dirname ()\
19824 {\
19825 \ case ${1} in\
19826 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19827 \ * ) func_dirname_result="${3}" ;;\
19828 \ esac\
19829 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19830 && mv -f "$cfgfile.tmp" "$cfgfile" \
19831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19832 test 0 -eq $? || _lt_function_replace_fail=:
19833
19834
19835 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19836 func_basename ()\
19837 {\
19838 \ func_basename_result="${1##*/}"\
19839 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19840 && mv -f "$cfgfile.tmp" "$cfgfile" \
19841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19842 test 0 -eq $? || _lt_function_replace_fail=:
19843
19844
19845 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19846 func_dirname_and_basename ()\
19847 {\
19848 \ case ${1} in\
19849 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19850 \ * ) func_dirname_result="${3}" ;;\
19851 \ esac\
19852 \ func_basename_result="${1##*/}"\
19853 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19854 && mv -f "$cfgfile.tmp" "$cfgfile" \
19855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19856 test 0 -eq $? || _lt_function_replace_fail=:
19857
19858
19859 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19860 func_stripname ()\
19861 {\
19862 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19863 \ # positional parameters, so assign one to ordinary parameter first.\
19864 \ func_stripname_result=${3}\
19865 \ func_stripname_result=${func_stripname_result#"${1}"}\
19866 \ func_stripname_result=${func_stripname_result%"${2}"}\
19867 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19868 && mv -f "$cfgfile.tmp" "$cfgfile" \
19869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19870 test 0 -eq $? || _lt_function_replace_fail=:
19871
19872
19873 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19874 func_split_long_opt ()\
19875 {\
19876 \ func_split_long_opt_name=${1%%=*}\
19877 \ func_split_long_opt_arg=${1#*=}\
19878 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19879 && mv -f "$cfgfile.tmp" "$cfgfile" \
19880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19881 test 0 -eq $? || _lt_function_replace_fail=:
19882
19883
19884 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19885 func_split_short_opt ()\
19886 {\
19887 \ func_split_short_opt_arg=${1#??}\
19888 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19889 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19890 && mv -f "$cfgfile.tmp" "$cfgfile" \
19891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19892 test 0 -eq $? || _lt_function_replace_fail=:
19893
19894
19895 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19896 func_lo2o ()\
19897 {\
19898 \ case ${1} in\
19899 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19900 \ *) func_lo2o_result=${1} ;;\
19901 \ esac\
19902 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19903 && mv -f "$cfgfile.tmp" "$cfgfile" \
19904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19905 test 0 -eq $? || _lt_function_replace_fail=:
19906
19907
19908 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19909 func_xform ()\
19910 {\
19911 func_xform_result=${1%.*}.lo\
19912 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19913 && mv -f "$cfgfile.tmp" "$cfgfile" \
19914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19915 test 0 -eq $? || _lt_function_replace_fail=:
19916
19917
19918 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19919 func_arith ()\
19920 {\
19921 func_arith_result=$(( $* ))\
19922 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19923 && mv -f "$cfgfile.tmp" "$cfgfile" \
19924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19925 test 0 -eq $? || _lt_function_replace_fail=:
19926
19927
19928 sed -e '/^func_len ()$/,/^} # func_len /c\
19929 func_len ()\
19930 {\
19931 func_len_result=${#1}\
19932 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19933 && mv -f "$cfgfile.tmp" "$cfgfile" \
19934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19935 test 0 -eq $? || _lt_function_replace_fail=:
19936
19937 fi
19938
19939 if test x"$lt_shell_append" = xyes; then
19940 sed -e '/^func_append ()$/,/^} # func_append /c\
19941 func_append ()\
19942 {\
19943 eval "${1}+=\\${2}"\
19944 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19945 && mv -f "$cfgfile.tmp" "$cfgfile" \
19946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19947 test 0 -eq $? || _lt_function_replace_fail=:
19948
19949
19950 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19951 func_append_quoted ()\
19952 {\
19953 \ func_quote_for_eval "${2}"\
19954 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19955 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19956 && mv -f "$cfgfile.tmp" "$cfgfile" \
19957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19958 test 0 -eq $? || _lt_function_replace_fail=:
19959
19960
19961 # Save a `func_append' function call where possible by direct use of '+='
19962 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19963 && mv -f "$cfgfile.tmp" "$cfgfile" \
19964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19965 test 0 -eq $? || _lt_function_replace_fail=:
19966 else
19967 # Save a `func_append' function call even when '+=' is not available
19968 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19969 && mv -f "$cfgfile.tmp" "$cfgfile" \
19970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19971 test 0 -eq $? || _lt_function_replace_fail=:
19972 fi
19973
19974 if test x"$_lt_function_replace_fail" = x":"; then
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19976 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19977 fi
19978
19979
19980 mv -f "$cfgfile" "$ofile" ||
19981 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19982 chmod +x "$ofile"
19983
19984 ;;
19985
19986 esac
19987 done # for ac_tag
19988
19989
19990 as_fn_exit 0
19991 _ACEOF
19992 ac_clean_files=$ac_clean_files_save
19993
19994 test $ac_write_fail = 0 ||
19995 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19996
19997
19998 # configure is writing to config.log, and then calls config.status.
19999 # config.status does its own redirection, appending to config.log.
20000 # Unfortunately, on DOS this fails, as config.log is still kept open
20001 # by configure, so config.status won't be able to write to it; its
20002 # output is simply discarded. So we exec the FD to /dev/null,
20003 # effectively closing config.log, so it can be properly (re)opened and
20004 # appended to by config.status. When coming back to configure, we
20005 # need to make the FD available again.
20006 if test "$no_create" != yes; then
20007 ac_cs_success=:
20008 ac_config_status_args=
20009 test "$silent" = yes &&
20010 ac_config_status_args="$ac_config_status_args --quiet"
20011 exec 5>/dev/null
20012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20013 exec 5>>config.log
20014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20015 # would make configure fail if this is the last instruction.
20016 $ac_cs_success || as_fn_exit 1
20017 fi
20018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20021 fi
20022
20023