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.69 for libxkbfile 1.0.9.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libxkbfile'
593 PACKAGE_TARNAME='libxkbfile'
594 PACKAGE_VERSION='1.0.9'
595 PACKAGE_STRING='libxkbfile 1.0.9'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XKBFILE_LIBS
641 XKBFILE_CFLAGS
642 MAN_SUBSTS
643 XORG_MAN_PAGE
644 ADMIN_MAN_DIR
645 DRIVER_MAN_DIR
646 MISC_MAN_DIR
647 FILE_MAN_DIR
648 LIB_MAN_DIR
649 APP_MAN_DIR
650 ADMIN_MAN_SUFFIX
651 DRIVER_MAN_SUFFIX
652 MISC_MAN_SUFFIX
653 FILE_MAN_SUFFIX
654 LIB_MAN_SUFFIX
655 APP_MAN_SUFFIX
656 INSTALL_CMD
657 PKG_CONFIG
658 CHANGELOG_CMD
659 STRICT_CFLAGS
660 CWARNFLAGS
661 BASE_CFLAGS
662 CPP
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 RANLIB
670 ac_ct_AR
671 AR
672 DLLTOOL
673 OBJDUMP
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 SED
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 LIBTOOL
709 AM_BACKSLASH
710 AM_DEFAULT_VERBOSITY
711 AM_DEFAULT_V
712 AM_V
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_silent_rules
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 enable_dependency_tracking
783 with_gnu_ld
784 with_sysroot
785 enable_libtool_lock
786 enable_selective_werror
787 enable_strict_compilation
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CPP
798 PKG_CONFIG
799 XKBFILE_CFLAGS
800 XKBFILE_LIBS'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
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 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 ;;
1207
1208 esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229 do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259 fi
1260
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264 test "$silent" = yes && exec 6>/dev/null
1265
1266
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1305 fi
1306 else
1307 ac_srcdir_defaulted=no
1308 fi
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320 fi
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1333
1334 #
1335 # Report the --help message.
1336 #
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures libxkbfile 1.0.9 to adapt to many kinds of systems.
1342
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1347
1348 Defaults for the options are specified in brackets.
1349
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1366
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1371
1372 For better control, use the options below.
1373
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of libxkbfile 1.0.9:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
1429 --disable-libtool-lock avoid locking (might break parallel builds)
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot=DIR Search for dependent libraries within DIR
1444 (or the compiler's sysroot if not specified).
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 CPP C preprocessor
1455 PKG_CONFIG path to pkg-config utility
1456 XKBFILE_CFLAGS
1457 C compiler flags for XKBFILE, overriding pkg-config
1458 XKBFILE_LIBS
1459 linker flags for XKBFILE, overriding pkg-config
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 libxkbfile configure 1.0.9
1528 generated by GNU Autoconf 2.69
1529
1530 Copyright (C) 2012 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 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 libxkbfile $as_me 1.0.9, which was
1852 generated by GNU Autoconf 2.69. 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.15'
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 as_fn_executable_p "$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 # Reject unsafe characters in $srcdir or the absolute working directory
2331 # name. Accept space and tab only in the latter.
2332 am_lf='
2333 '
2334 case `pwd` in
2335 *[\\\"\#\$\&\'\`$am_lf]*)
2336 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2337 esac
2338 case $srcdir in
2339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2340 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2341 esac
2342
2343 # Do 'set' in a subshell so we don't clobber the current shell's
2344 # arguments. Must try -L first in case configure is actually a
2345 # symlink; some systems play weird games with the mod time of symlinks
2346 # (eg FreeBSD returns the mod time of the symlink's containing
2347 # directory).
2348 if (
2349 am_has_slept=no
2350 for am_try in 1 2; do
2351 echo "timestamp, slept: $am_has_slept" > conftest.file
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 if test "$*" != "X $srcdir/configure conftest.file" \
2358 && test "$*" != "X conftest.file $srcdir/configure"; then
2359
2360 # If neither matched, then we have a broken ls. This can happen
2361 # if, for instance, CONFIG_SHELL is bash and it inherits a
2362 # broken ls alias from the environment. This has actually
2363 # happened. Such a system could not be considered "sane".
2364 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2365 alias in your environment" "$LINENO" 5
2366 fi
2367 if test "$2" = conftest.file || test $am_try -eq 2; then
2368 break
2369 fi
2370 # Just in case.
2371 sleep 1
2372 am_has_slept=yes
2373 done
2374 test "$2" = conftest.file
2375 )
2376 then
2377 # Ok.
2378 :
2379 else
2380 as_fn_error $? "newly created file is older than distributed files!
2381 Check your system clock" "$LINENO" 5
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2384 $as_echo "yes" >&6; }
2385 # If we didn't sleep, we still need to ensure time stamps of config.status and
2386 # generated files are strictly newer.
2387 am_sleep_pid=
2388 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2389 ( sleep 1 ) &
2390 am_sleep_pid=$!
2391 fi
2392
2393 rm -f conftest.file
2394
2395 test "$program_prefix" != NONE &&
2396 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2397 # Use a double $ so make ignores it.
2398 test "$program_suffix" != NONE &&
2399 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2400 # Double any \ or $.
2401 # By default was `s,x,x', remove it if useless.
2402 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2403 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2404
2405 # Expand $ac_aux_dir to an absolute path.
2406 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2407
2408 if test x"${MISSING+set}" != xset; then
2409 case $am_aux_dir in
2410 *\ * | *\ *)
2411 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2412 *)
2413 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2414 esac
2415 fi
2416 # Use eval to expand $SHELL
2417 if eval "$MISSING --is-lightweight"; then
2418 am_missing_run="$MISSING "
2419 else
2420 am_missing_run=
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2422 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2423 fi
2424
2425 if test x"${install_sh+set}" != xset; then
2426 case $am_aux_dir in
2427 *\ * | *\ *)
2428 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2429 *)
2430 install_sh="\${SHELL} $am_aux_dir/install-sh"
2431 esac
2432 fi
2433
2434 # Installed binaries are usually stripped using 'strip' when the user
2435 # run "make install-strip". However 'strip' might not be the right
2436 # tool to use in cross-compilation environments, therefore Automake
2437 # will honor the 'STRIP' environment variable to overrule this program.
2438 if test "$cross_compiling" != no; then
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}strip; ac_word=$2
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443 $as_echo_n "checking for $ac_word... " >&6; }
2444 if ${ac_cv_prog_STRIP+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 if test -n "$STRIP"; then
2448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 fi
2466 fi
2467 STRIP=$ac_cv_prog_STRIP
2468 if test -n "$STRIP"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2470 $as_echo "$STRIP" >&6; }
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473 $as_echo "no" >&6; }
2474 fi
2475
2476
2477 fi
2478 if test -z "$ac_cv_prog_STRIP"; then
2479 ac_ct_STRIP=$STRIP
2480 # Extract the first word of "strip", so it can be a program name with args.
2481 set dummy strip; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 if test -n "$ac_ct_STRIP"; then
2488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_STRIP="strip"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2508 if test -n "$ac_ct_STRIP"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2510 $as_echo "$ac_ct_STRIP" >&6; }
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516 if test "x$ac_ct_STRIP" = x; then
2517 STRIP=":"
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525 STRIP=$ac_ct_STRIP
2526 fi
2527 else
2528 STRIP="$ac_cv_prog_STRIP"
2529 fi
2530
2531 fi
2532 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2535 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2536 if test -z "$MKDIR_P"; then
2537 if ${ac_cv_path_mkdir+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_prog in mkdir gmkdir; do
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2548 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2549 'mkdir (GNU coreutils) '* | \
2550 'mkdir (coreutils) '* | \
2551 'mkdir (fileutils) '4.1*)
2552 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2553 break 3;;
2554 esac
2555 done
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561
2562 test -d ./--version && rmdir ./--version
2563 if test "${ac_cv_path_mkdir+set}" = set; then
2564 MKDIR_P="$ac_cv_path_mkdir -p"
2565 else
2566 # As a last resort, use the slow shell script. Don't cache a
2567 # value for MKDIR_P within a source directory, because that will
2568 # break other packages using the cache if that directory is
2569 # removed, or if the value is a relative name.
2570 MKDIR_P="$ac_install_sh -d"
2571 fi
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2574 $as_echo "$MKDIR_P" >&6; }
2575
2576 for ac_prog in gawk mawk nawk awk
2577 do
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_AWK+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$AWK"; then
2586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_AWK="$ac_prog"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 AWK=$ac_cv_prog_AWK
2606 if test -n "$AWK"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608 $as_echo "$AWK" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614
2615 test -n "$AWK" && break
2616 done
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2619 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2620 set x ${MAKE-make}
2621 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2622 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 cat >conftest.make <<\_ACEOF
2626 SHELL = /bin/sh
2627 all:
2628 @echo '@@@%%%=$(MAKE)=@@@%%%'
2629 _ACEOF
2630 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2631 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2632 *@@@%%%=?*=@@@%%%*)
2633 eval ac_cv_prog_make_${ac_make}_set=yes;;
2634 *)
2635 eval ac_cv_prog_make_${ac_make}_set=no;;
2636 esac
2637 rm -f conftest.make
2638 fi
2639 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2642 SET_MAKE=
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 SET_MAKE="MAKE=${MAKE-make}"
2647 fi
2648
2649 rm -rf .tst 2>/dev/null
2650 mkdir .tst 2>/dev/null
2651 if test -d .tst; then
2652 am__leading_dot=.
2653 else
2654 am__leading_dot=_
2655 fi
2656 rmdir .tst 2>/dev/null
2657
2658 # Check whether --enable-silent-rules was given.
2659 if test "${enable_silent_rules+set}" = set; then :
2660 enableval=$enable_silent_rules;
2661 fi
2662
2663 case $enable_silent_rules in # (((
2664 yes) AM_DEFAULT_VERBOSITY=0;;
2665 no) AM_DEFAULT_VERBOSITY=1;;
2666 *) AM_DEFAULT_VERBOSITY=1;;
2667 esac
2668 am_make=${MAKE-make}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2670 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2671 if ${am_cv_make_support_nested_variables+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if $as_echo 'TRUE=$(BAR$(V))
2675 BAR0=false
2676 BAR1=true
2677 V=1
2678 am__doit:
2679 @$(TRUE)
2680 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2681 am_cv_make_support_nested_variables=yes
2682 else
2683 am_cv_make_support_nested_variables=no
2684 fi
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2687 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2688 if test $am_cv_make_support_nested_variables = yes; then
2689 AM_V='$(V)'
2690 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2691 else
2692 AM_V=$AM_DEFAULT_VERBOSITY
2693 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2694 fi
2695 AM_BACKSLASH='\'
2696
2697 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2698 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2699 # is not polluted with repeated "-I."
2700 am__isrc=' -I$(srcdir)'
2701 # test to see if srcdir already configured
2702 if test -f $srcdir/config.status; then
2703 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2704 fi
2705 fi
2706
2707 # test whether we have cygpath
2708 if test -z "$CYGPATH_W"; then
2709 if (cygpath --version) >/dev/null 2>/dev/null; then
2710 CYGPATH_W='cygpath -w'
2711 else
2712 CYGPATH_W=echo
2713 fi
2714 fi
2715
2716
2717 # Define the identity of the package.
2718 PACKAGE='libxkbfile'
2719 VERSION='1.0.9'
2720
2721
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE "$PACKAGE"
2724 _ACEOF
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define VERSION "$VERSION"
2729 _ACEOF
2730
2731 # Some tools Automake needs.
2732
2733 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2734
2735
2736 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2737
2738
2739 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2740
2741
2742 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2743
2744
2745 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2746
2747 # For better backward compatibility. To be removed once Automake 1.9.x
2748 # dies out for good. For more background, see:
2749 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2750 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2751 mkdir_p='$(MKDIR_P)'
2752
2753 # We need awk for the "check" target (and possibly the TAP driver). The
2754 # system "awk" is bad on some platforms.
2755 # Always define AMTAR for backward compatibility. Yes, it's still used
2756 # in the wild :-( We should find a proper way to deprecate it ...
2757 AMTAR='$${TAR-tar}'
2758
2759
2760 # We'll loop over all known methods to create a tar archive until one works.
2761 _am_tools='gnutar pax cpio none'
2762
2763 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2764
2765
2766
2767
2768
2769
2770 # POSIX will say in a future version that running "rm -f" with no argument
2771 # is OK; and we want to be able to make that assumption in our Makefile
2772 # recipes. So use an aggressive probe to check that the usage we want is
2773 # actually supported "in the wild" to an acceptable degree.
2774 # See automake bug#10828.
2775 # To make any issue more visible, cause the running configure to be aborted
2776 # by default if the 'rm' program in use doesn't match our expectations; the
2777 # user can still override this though.
2778 if rm -f && rm -fr && rm -rf; then : OK; else
2779 cat >&2 <<'END'
2780 Oops!
2781
2782 Your 'rm' program seems unable to run without file operands specified
2783 on the command line, even when the '-f' option is present. This is contrary
2784 to the behaviour of most rm programs out there, and not conforming with
2785 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2786
2787 Please tell bug-automake@gnu.org about your system, including the value
2788 of your $PATH and any error possibly output before this message. This
2789 can help us improve future automake versions.
2790
2791 END
2792 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2793 echo 'Configuration will proceed anyway, since you have set the' >&2
2794 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2795 echo >&2
2796 else
2797 cat >&2 <<'END'
2798 Aborting the configuration process, to ensure you take notice of the issue.
2799
2800 You can download and install GNU coreutils to get an 'rm' implementation
2801 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2802
2803 If you want to complete the configuration process using your problematic
2804 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2805 to "yes", and re-run configure.
2806
2807 END
2808 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2809 fi
2810 fi
2811
2812
2813 # Initialize libtool
2814 case `pwd` in
2815 *\ * | *\ *)
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2817 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2818 esac
2819
2820
2821
2822 macro_version='2.4.2'
2823 macro_revision='1.3337'
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837 ltmain="$ac_aux_dir/ltmain.sh"
2838
2839 # Make sure we can run config.sub.
2840 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2841 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2842
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2844 $as_echo_n "checking build system type... " >&6; }
2845 if ${ac_cv_build+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 ac_build_alias=$build_alias
2849 test "x$ac_build_alias" = x &&
2850 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2851 test "x$ac_build_alias" = x &&
2852 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2853 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2854 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2855
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2858 $as_echo "$ac_cv_build" >&6; }
2859 case $ac_cv_build in
2860 *-*-*) ;;
2861 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2862 esac
2863 build=$ac_cv_build
2864 ac_save_IFS=$IFS; IFS='-'
2865 set x $ac_cv_build
2866 shift
2867 build_cpu=$1
2868 build_vendor=$2
2869 shift; shift
2870 # Remember, the first character of IFS is used to create $*,
2871 # except with old shells:
2872 build_os=$*
2873 IFS=$ac_save_IFS
2874 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2875
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2878 $as_echo_n "checking host system type... " >&6; }
2879 if ${ac_cv_host+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test "x$host_alias" = x; then
2883 ac_cv_host=$ac_cv_build
2884 else
2885 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2887 fi
2888
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2891 $as_echo "$ac_cv_host" >&6; }
2892 case $ac_cv_host in
2893 *-*-*) ;;
2894 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2895 esac
2896 host=$ac_cv_host
2897 ac_save_IFS=$IFS; IFS='-'
2898 set x $ac_cv_host
2899 shift
2900 host_cpu=$1
2901 host_vendor=$2
2902 shift; shift
2903 # Remember, the first character of IFS is used to create $*,
2904 # except with old shells:
2905 host_os=$*
2906 IFS=$ac_save_IFS
2907 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2908
2909
2910 # Backslashify metacharacters that are still active within
2911 # double-quoted strings.
2912 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2913
2914 # Same as above, but do not quote variable references.
2915 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2916
2917 # Sed substitution to delay expansion of an escaped shell variable in a
2918 # double_quote_subst'ed string.
2919 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2920
2921 # Sed substitution to delay expansion of an escaped single quote.
2922 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2923
2924 # Sed substitution to avoid accidental globbing in evaled expressions
2925 no_glob_subst='s/\*/\\\*/g'
2926
2927 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2928 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2929 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2930
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2932 $as_echo_n "checking how to print strings... " >&6; }
2933 # Test print first, because it will be a builtin if present.
2934 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2935 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2936 ECHO='print -r --'
2937 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2938 ECHO='printf %s\n'
2939 else
2940 # Use this function as a fallback that always works.
2941 func_fallback_echo ()
2942 {
2943 eval 'cat <<_LTECHO_EOF
2944 $1
2945 _LTECHO_EOF'
2946 }
2947 ECHO='func_fallback_echo'
2948 fi
2949
2950 # func_echo_all arg...
2951 # Invoke $ECHO with all args, space-separated.
2952 func_echo_all ()
2953 {
2954 $ECHO ""
2955 }
2956
2957 case "$ECHO" in
2958 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2959 $as_echo "printf" >&6; } ;;
2960 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2961 $as_echo "print -r" >&6; } ;;
2962 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2963 $as_echo "cat" >&6; } ;;
2964 esac
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979 DEPDIR="${am__leading_dot}deps"
2980
2981 ac_config_commands="$ac_config_commands depfiles"
2982
2983
2984 am_make=${MAKE-make}
2985 cat > confinc << 'END'
2986 am__doit:
2987 @echo this is the am__doit target
2988 .PHONY: am__doit
2989 END
2990 # If we don't find an include directive, just comment out the code.
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2992 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2993 am__include="#"
2994 am__quote=
2995 _am_result=none
2996 # First try GNU make style include.
2997 echo "include confinc" > confmf
2998 # Ignore all kinds of additional output from 'make'.
2999 case `$am_make -s -f confmf 2> /dev/null` in #(
3000 *the\ am__doit\ target*)
3001 am__include=include
3002 am__quote=
3003 _am_result=GNU
3004 ;;
3005 esac
3006 # Now try BSD make style include.
3007 if test "$am__include" = "#"; then
3008 echo '.include "confinc"' > confmf
3009 case `$am_make -s -f confmf 2> /dev/null` in #(
3010 *the\ am__doit\ target*)
3011 am__include=.include
3012 am__quote="\""
3013 _am_result=BSD
3014 ;;
3015 esac
3016 fi
3017
3018
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3020 $as_echo "$_am_result" >&6; }
3021 rm -f confinc confmf
3022
3023 # Check whether --enable-dependency-tracking was given.
3024 if test "${enable_dependency_tracking+set}" = set; then :
3025 enableval=$enable_dependency_tracking;
3026 fi
3027
3028 if test "x$enable_dependency_tracking" != xno; then
3029 am_depcomp="$ac_aux_dir/depcomp"
3030 AMDEPBACKSLASH='\'
3031 am__nodep='_no'
3032 fi
3033 if test "x$enable_dependency_tracking" != xno; then
3034 AMDEP_TRUE=
3035 AMDEP_FALSE='#'
3036 else
3037 AMDEP_TRUE='#'
3038 AMDEP_FALSE=
3039 fi
3040
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 fi
3086 if test -z "$ac_cv_prog_CC"; then
3087 ac_ct_CC=$CC
3088 # Extract the first word of "gcc", so it can be a program name with args.
3089 set dummy gcc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_CC="gcc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124 if test "x$ac_ct_CC" = x; then
3125 CC=""
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133 CC=$ac_ct_CC
3134 fi
3135 else
3136 CC="$ac_cv_prog_CC"
3137 fi
3138
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}cc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="${ac_tool_prefix}cc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 fi
3179 fi
3180 if test -z "$CC"; then
3181 # Extract the first word of "cc", so it can be a program name with args.
3182 set dummy cc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 ac_prog_rejected=no
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3200 ac_prog_rejected=yes
3201 continue
3202 fi
3203 ac_cv_prog_CC="cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 if test $ac_prog_rejected = yes; then
3212 # We found a bogon in the path, so make sure we never use it.
3213 set dummy $ac_cv_prog_CC
3214 shift
3215 if test $# != 0; then
3216 # We chose a different compiler from the bogus one.
3217 # However, it has the same basename, so the bogon will be chosen
3218 # first if we set CC to just the basename; use the full file name.
3219 shift
3220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3221 fi
3222 fi
3223 fi
3224 fi
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228 $as_echo "$CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235 fi
3236 if test -z "$CC"; then
3237 if test -n "$ac_tool_prefix"; then
3238 for ac_prog in cl.exe
3239 do
3240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 test -n "$CC" && break
3278 done
3279 fi
3280 if test -z "$CC"; then
3281 ac_ct_CC=$CC
3282 for ac_prog in cl.exe
3283 do
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_CC="$ac_prog"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314 $as_echo "$ac_ct_CC" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321 test -n "$ac_ct_CC" && break
3322 done
3323
3324 if test "x$ac_ct_CC" = x; then
3325 CC=""
3326 else
3327 case $cross_compiling:$ac_tool_warned in
3328 yes:)
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333 CC=$ac_ct_CC
3334 fi
3335 fi
3336
3337 fi
3338
3339
3340 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details" "$LINENO" 5; }
3344
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3347 set X $ac_compile
3348 ac_compiler=$2
3349 for ac_option in --version -v -V -qversion; do
3350 { { ac_try="$ac_compiler $ac_option >&5"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3358 ac_status=$?
3359 if test -s conftest.err; then
3360 sed '10a\
3361 ... rest of stderr output deleted ...
3362 10q' conftest.err >conftest.er1
3363 cat conftest.er1 >&5
3364 fi
3365 rm -f conftest.er1 conftest.err
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3368 done
3369
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition
3385 # of exeext.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3387 $as_echo_n "checking whether the C compiler works... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389
3390 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392
3393 ac_rmfiles=
3394 for ac_file in $ac_files
3395 do
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 esac
3400 done
3401 rm -f $ac_rmfiles
3402
3403 if { { ac_try="$ac_link_default"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link_default") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; then :
3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to
3418 # Autoconf.
3419 for ac_file in $ac_files ''
3420 do
3421 test -f "$ac_file" || continue
3422 case $ac_file in
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424 ;;
3425 [ab].out )
3426 # We found the default executable, but exeext='' is most
3427 # certainly right.
3428 break;;
3429 *.* )
3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431 then :; else
3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 fi
3434 # We set ac_cv_exeext here because the later test for it is not
3435 # safe: cross compilers may not add the suffix if given an `-o'
3436 # argument, so we may need to know it at that point already.
3437 # Even if this section looks crufty: it has the advantage of
3438 # actually working.
3439 break;;
3440 * )
3441 break;;
3442 esac
3443 done
3444 test "$ac_cv_exeext" = no && ac_cv_exeext=
3445
3446 else
3447 ac_file=''
3448 fi
3449 if test -z "$ac_file"; then :
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error 77 "C compiler cannot create executables
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3461 $as_echo "yes" >&6; }
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3464 $as_echo_n "checking for C compiler default output file name... " >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3466 $as_echo "$ac_file" >&6; }
3467 ac_exeext=$ac_cv_exeext
3468
3469 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3470 ac_clean_files=$ac_clean_files_save
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3472 $as_echo_n "checking for suffix of executables... " >&6; }
3473 if { { ac_try="$ac_link"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_link") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3485 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3486 # work properly (i.e., refer to `conftest.exe'), while it won't with
3487 # `rm'.
3488 for ac_file in conftest.exe conftest conftest.*; do
3489 test -f "$ac_file" || continue
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3492 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493 break;;
3494 * ) break;;
3495 esac
3496 done
3497 else
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3501 See \`config.log' for more details" "$LINENO" 5; }
3502 fi
3503 rm -f conftest conftest$ac_cv_exeext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3505 $as_echo "$ac_cv_exeext" >&6; }
3506
3507 rm -f conftest.$ac_ext
3508 EXEEXT=$ac_cv_exeext
3509 ac_exeext=$EXEEXT
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512 #include <stdio.h>
3513 int
3514 main ()
3515 {
3516 FILE *f = fopen ("conftest.out", "w");
3517 return ferror (f) || fclose (f) != 0;
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 ac_clean_files="$ac_clean_files conftest.out"
3524 # Check that the compiler produces executables we can run. If not, either
3525 # the compiler is broken, or we cross compile.
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3527 $as_echo_n "checking whether we are cross compiling... " >&6; }
3528 if test "$cross_compiling" != yes; then
3529 { { ac_try="$ac_link"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_link") 2>&5
3537 ac_status=$?
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }
3540 if { ac_try='./conftest$ac_cv_exeext'
3541 { { case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_try") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; }; then
3551 cross_compiling=no
3552 else
3553 if test "$cross_compiling" = maybe; then
3554 cross_compiling=yes
3555 else
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot run C compiled programs.
3559 If you meant to cross compile, use \`--host'.
3560 See \`config.log' for more details" "$LINENO" 5; }
3561 fi
3562 fi
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565 $as_echo "$cross_compiling" >&6; }
3566
3567 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if ${ac_cv_objext+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576
3577 int
3578 main ()
3579 {
3580
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.o conftest.obj
3586 if { { ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compile") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602 break;;
3603 esac
3604 done
3605 else
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details" "$LINENO" 5; }
3613 fi
3614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3617 $as_echo "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3619 ac_objext=$OBJEXT
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3621 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3622 if ${ac_cv_c_compiler_gnu+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627
3628 int
3629 main ()
3630 {
3631 #ifndef __GNUC__
3632 choke me
3633 #endif
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640 ac_compiler_gnu=yes
3641 else
3642 ac_compiler_gnu=no
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3649 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3650 if test $ac_compiler_gnu = yes; then
3651 GCC=yes
3652 else
3653 GCC=
3654 fi
3655 ac_test_CFLAGS=${CFLAGS+set}
3656 ac_save_CFLAGS=$CFLAGS
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3658 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3659 if ${ac_cv_prog_cc_g+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 ac_save_c_werror_flag=$ac_c_werror_flag
3663 ac_c_werror_flag=yes
3664 ac_cv_prog_cc_g=no
3665 CFLAGS="-g"
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_g=yes
3679 else
3680 CFLAGS=""
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693
3694 else
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3696 CFLAGS="-g"
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709 ac_cv_prog_cc_g=yes
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_c_werror_flag=$ac_save_c_werror_flag
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3719 $as_echo "$ac_cv_prog_cc_g" >&6; }
3720 if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3724 CFLAGS="-g -O2"
3725 else
3726 CFLAGS="-g"
3727 fi
3728 else
3729 if test "$GCC" = yes; then
3730 CFLAGS="-O2"
3731 else
3732 CFLAGS=
3733 fi
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3736 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3737 if ${ac_cv_prog_cc_c89+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 ac_cv_prog_cc_c89=no
3741 ac_save_CC=$CC
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <stdarg.h>
3745 #include <stdio.h>
3746 struct stat;
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3751 char **p;
3752 int i;
3753 {
3754 return p[i];
3755 }
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3757 {
3758 char *s;
3759 va_list v;
3760 va_start (v,p);
3761 s = g (p, va_arg (v,int));
3762 va_end (v);
3763 return s;
3764 }
3765
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3767 function prototypes and stuff, but not '\xHH' hex character constants.
3768 These don't provoke an error unfortunately, instead are silently treated
3769 as 'x'. The following induces an error, until -std is added to get
3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3771 array size at least. It's necessary to write '\x00'==0 to get something
3772 that's true only with -std. */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774
3775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776 inside strings and character constants. */
3777 #define FOO(x) 'x'
3778 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 int argc;
3785 char **argv;
3786 int
3787 main ()
3788 {
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 do
3797 CC="$ac_save_CC $ac_arg"
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_c89=$ac_arg
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext
3802 test "x$ac_cv_prog_cc_c89" != "xno" && break
3803 done
3804 rm -f conftest.$ac_ext
3805 CC=$ac_save_CC
3806
3807 fi
3808 # AC_CACHE_VAL
3809 case "x$ac_cv_prog_cc_c89" in
3810 x)
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3812 $as_echo "none needed" >&6; } ;;
3813 xno)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3815 $as_echo "unsupported" >&6; } ;;
3816 *)
3817 CC="$CC $ac_cv_prog_cc_c89"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3819 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3820 esac
3821 if test "x$ac_cv_prog_cc_c89" != xno; then :
3822
3823 fi
3824
3825 ac_ext=c
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3837 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3838 if ${am_cv_prog_cc_c_o+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 int
3845 main ()
3846 {
3847
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 # Make sure it works both with $CC and with simple cc.
3853 # Following AC_PROG_CC_C_O, we do the test twice because some
3854 # compilers refuse to overwrite an existing .o file with -o,
3855 # though they will create one.
3856 am_cv_prog_cc_c_o=yes
3857 for am_i in 1 2; do
3858 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3859 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } \
3863 && test -f conftest2.$ac_objext; then
3864 : OK
3865 else
3866 am_cv_prog_cc_c_o=no
3867 break
3868 fi
3869 done
3870 rm -f core conftest*
3871 unset am_i
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3874 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3875 if test "$am_cv_prog_cc_c_o" != yes; then
3876 # Losing compiler, so override with the script.
3877 # FIXME: It is wrong to rewrite CC.
3878 # But if we don't then we get into trouble of one sort or another.
3879 # A longer-term fix would be to have automake use am__CC in this case,
3880 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3881 CC="$am_aux_dir/compile $CC"
3882 fi
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890 depcc="$CC" am_compiler_list=
3891
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3893 $as_echo_n "checking dependency style of $depcc... " >&6; }
3894 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3898 # We make a subdir and do the tests there. Otherwise we can end up
3899 # making bogus files that we don't know about and never remove. For
3900 # instance it was reported that on HP-UX the gcc test will end up
3901 # making a dummy file named 'D' -- because '-MD' means "put the output
3902 # in D".
3903 rm -rf conftest.dir
3904 mkdir conftest.dir
3905 # Copy depcomp to subdir because otherwise we won't find it if we're
3906 # using a relative directory.
3907 cp "$am_depcomp" conftest.dir
3908 cd conftest.dir
3909 # We will build objects and dependencies in a subdirectory because
3910 # it helps to detect inapplicable dependency modes. For instance
3911 # both Tru64's cc and ICC support -MD to output dependencies as a
3912 # side effect of compilation, but ICC will put the dependencies in
3913 # the current directory while Tru64 will put them in the object
3914 # directory.
3915 mkdir sub
3916
3917 am_cv_CC_dependencies_compiler_type=none
3918 if test "$am_compiler_list" = ""; then
3919 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3920 fi
3921 am__universal=false
3922 case " $depcc " in #(
3923 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3924 esac
3925
3926 for depmode in $am_compiler_list; do
3927 # Setup a source with many dependencies, because some compilers
3928 # like to wrap large dependency lists on column 80 (with \), and
3929 # we should not choose a depcomp mode which is confused by this.
3930 #
3931 # We need to recreate these files for each test, as the compiler may
3932 # overwrite some of them when testing with obscure command lines.
3933 # This happens at least with the AIX C compiler.
3934 : > sub/conftest.c
3935 for i in 1 2 3 4 5 6; do
3936 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3937 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3938 # Solaris 10 /bin/sh.
3939 echo '/* dummy */' > sub/conftst$i.h
3940 done
3941 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3942
3943 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3944 # mode. It turns out that the SunPro C++ compiler does not properly
3945 # handle '-M -o', and we need to detect this. Also, some Intel
3946 # versions had trouble with output in subdirs.
3947 am__obj=sub/conftest.${OBJEXT-o}
3948 am__minus_obj="-o $am__obj"
3949 case $depmode in
3950 gcc)
3951 # This depmode causes a compiler race in universal mode.
3952 test "$am__universal" = false || continue
3953 ;;
3954 nosideeffect)
3955 # After this tag, mechanisms are not by side-effect, so they'll
3956 # only be used when explicitly requested.
3957 if test "x$enable_dependency_tracking" = xyes; then
3958 continue
3959 else
3960 break
3961 fi
3962 ;;
3963 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3964 # This compiler won't grok '-c -o', but also, the minuso test has
3965 # not run yet. These depmodes are late enough in the game, and
3966 # so weak that their functioning should not be impacted.
3967 am__obj=conftest.${OBJEXT-o}
3968 am__minus_obj=
3969 ;;
3970 none) break ;;
3971 esac
3972 if depmode=$depmode \
3973 source=sub/conftest.c object=$am__obj \
3974 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3975 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3976 >/dev/null 2>conftest.err &&
3977 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3978 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3979 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3980 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3981 # icc doesn't choke on unknown options, it will just issue warnings
3982 # or remarks (even with -Werror). So we grep stderr for any message
3983 # that says an option was ignored or not supported.
3984 # When given -MP, icc 7.0 and 7.1 complain thusly:
3985 # icc: Command line warning: ignoring option '-M'; no argument required
3986 # The diagnosis changed in icc 8.0:
3987 # icc: Command line remark: option '-MP' not supported
3988 if (grep 'ignoring option' conftest.err ||
3989 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3990 am_cv_CC_dependencies_compiler_type=$depmode
3991 break
3992 fi
3993 fi
3994 done
3995
3996 cd ..
3997 rm -rf conftest.dir
3998 else
3999 am_cv_CC_dependencies_compiler_type=none
4000 fi
4001
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4004 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4005 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4006
4007 if
4008 test "x$enable_dependency_tracking" != xno \
4009 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4010 am__fastdepCC_TRUE=
4011 am__fastdepCC_FALSE='#'
4012 else
4013 am__fastdepCC_TRUE='#'
4014 am__fastdepCC_FALSE=
4015 fi
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4019 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4020 if ${ac_cv_path_SED+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4024 for ac_i in 1 2 3 4 5 6 7; do
4025 ac_script="$ac_script$as_nl$ac_script"
4026 done
4027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4028 { ac_script=; unset ac_script;}
4029 if test -z "$SED"; then
4030 ac_path_SED_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_prog in sed gsed; do
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4040 as_fn_executable_p "$ac_path_SED" || continue
4041 # Check for GNU ac_path_SED and select it if it is found.
4042 # Check for GNU $ac_path_SED
4043 case `"$ac_path_SED" --version 2>&1` in
4044 *GNU*)
4045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4046 *)
4047 ac_count=0
4048 $as_echo_n 0123456789 >"conftest.in"
4049 while :
4050 do
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 $as_echo '' >> "conftest.nl"
4055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
4058 if test $ac_count -gt ${ac_path_SED_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_SED="$ac_path_SED"
4061 ac_path_SED_max=$ac_count
4062 fi
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4065 done
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067 esac
4068
4069 $ac_path_SED_found && break 3
4070 done
4071 done
4072 done
4073 IFS=$as_save_IFS
4074 if test -z "$ac_cv_path_SED"; then
4075 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4076 fi
4077 else
4078 ac_cv_path_SED=$SED
4079 fi
4080
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4083 $as_echo "$ac_cv_path_SED" >&6; }
4084 SED="$ac_cv_path_SED"
4085 rm -f conftest.sed
4086
4087 test -z "$SED" && SED=sed
4088 Xsed="$SED -e 1s/^X//"
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4102 if ${ac_cv_path_GREP+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if test -z "$GREP"; then
4106 ac_path_GREP_found=false
4107 # Loop through the user's path and test for each of PROGNAME-LIST
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_prog in grep ggrep; do
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4116 as_fn_executable_p "$ac_path_GREP" || continue
4117 # Check for GNU ac_path_GREP and select it if it is found.
4118 # Check for GNU $ac_path_GREP
4119 case `"$ac_path_GREP" --version 2>&1` in
4120 *GNU*)
4121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4122 *)
4123 ac_count=0
4124 $as_echo_n 0123456789 >"conftest.in"
4125 while :
4126 do
4127 cat "conftest.in" "conftest.in" >"conftest.tmp"
4128 mv "conftest.tmp" "conftest.in"
4129 cp "conftest.in" "conftest.nl"
4130 $as_echo 'GREP' >> "conftest.nl"
4131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133 as_fn_arith $ac_count + 1 && ac_count=$as_val
4134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4135 # Best one so far, save it but keep looking for a better one
4136 ac_cv_path_GREP="$ac_path_GREP"
4137 ac_path_GREP_max=$ac_count
4138 fi
4139 # 10*(2^10) chars as input seems more than enough
4140 test $ac_count -gt 10 && break
4141 done
4142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4143 esac
4144
4145 $ac_path_GREP_found && break 3
4146 done
4147 done
4148 done
4149 IFS=$as_save_IFS
4150 if test -z "$ac_cv_path_GREP"; then
4151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4152 fi
4153 else
4154 ac_cv_path_GREP=$GREP
4155 fi
4156
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4159 $as_echo "$ac_cv_path_GREP" >&6; }
4160 GREP="$ac_cv_path_GREP"
4161
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4164 $as_echo_n "checking for egrep... " >&6; }
4165 if ${ac_cv_path_EGREP+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4169 then ac_cv_path_EGREP="$GREP -E"
4170 else
4171 if test -z "$EGREP"; then
4172 ac_path_EGREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in egrep; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4182 as_fn_executable_p "$ac_path_EGREP" || continue
4183 # Check for GNU ac_path_EGREP and select it if it is found.
4184 # Check for GNU $ac_path_EGREP
4185 case `"$ac_path_EGREP" --version 2>&1` in
4186 *GNU*)
4187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4188 *)
4189 ac_count=0
4190 $as_echo_n 0123456789 >"conftest.in"
4191 while :
4192 do
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 $as_echo 'EGREP' >> "conftest.nl"
4197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 as_fn_arith $ac_count + 1 && ac_count=$as_val
4200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_EGREP="$ac_path_EGREP"
4203 ac_path_EGREP_max=$ac_count
4204 fi
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4207 done
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211 $ac_path_EGREP_found && break 3
4212 done
4213 done
4214 done
4215 IFS=$as_save_IFS
4216 if test -z "$ac_cv_path_EGREP"; then
4217 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4218 fi
4219 else
4220 ac_cv_path_EGREP=$EGREP
4221 fi
4222
4223 fi
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4226 $as_echo "$ac_cv_path_EGREP" >&6; }
4227 EGREP="$ac_cv_path_EGREP"
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4231 $as_echo_n "checking for fgrep... " >&6; }
4232 if ${ac_cv_path_FGREP+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4236 then ac_cv_path_FGREP="$GREP -F"
4237 else
4238 if test -z "$FGREP"; then
4239 ac_path_FGREP_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in fgrep; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4249 as_fn_executable_p "$ac_path_FGREP" || continue
4250 # Check for GNU ac_path_FGREP and select it if it is found.
4251 # Check for GNU $ac_path_FGREP
4252 case `"$ac_path_FGREP" --version 2>&1` in
4253 *GNU*)
4254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4255 *)
4256 ac_count=0
4257 $as_echo_n 0123456789 >"conftest.in"
4258 while :
4259 do
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo 'FGREP' >> "conftest.nl"
4264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_FGREP="$ac_path_FGREP"
4270 ac_path_FGREP_max=$ac_count
4271 fi
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4274 done
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278 $ac_path_FGREP_found && break 3
4279 done
4280 done
4281 done
4282 IFS=$as_save_IFS
4283 if test -z "$ac_cv_path_FGREP"; then
4284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285 fi
4286 else
4287 ac_cv_path_FGREP=$FGREP
4288 fi
4289
4290 fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4293 $as_echo "$ac_cv_path_FGREP" >&6; }
4294 FGREP="$ac_cv_path_FGREP"
4295
4296
4297 test -z "$GREP" && GREP=grep
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 # Check whether --with-gnu-ld was given.
4318 if test "${with_gnu_ld+set}" = set; then :
4319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4320 else
4321 with_gnu_ld=no
4322 fi
4323
4324 ac_prog=ld
4325 if test "$GCC" = yes; then
4326 # Check if gcc -print-prog-name=ld gives a path.
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4328 $as_echo_n "checking for ld used by $CC... " >&6; }
4329 case $host in
4330 *-*-mingw*)
4331 # gcc leaves a trailing carriage return which upsets mingw
4332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4333 *)
4334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4335 esac
4336 case $ac_prog in
4337 # Accept absolute paths.
4338 [\\/]* | ?:[\\/]*)
4339 re_direlt='/[^/][^/]*/\.\./'
4340 # Canonicalize the pathname of ld
4341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4344 done
4345 test -z "$LD" && LD="$ac_prog"
4346 ;;
4347 "")
4348 # If it fails, then pretend we aren't using GCC.
4349 ac_prog=ld
4350 ;;
4351 *)
4352 # If it is relative, then search for the first ld in PATH.
4353 with_gnu_ld=unknown
4354 ;;
4355 esac
4356 elif test "$with_gnu_ld" = yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4358 $as_echo_n "checking for GNU ld... " >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4361 $as_echo_n "checking for non-GNU ld... " >&6; }
4362 fi
4363 if ${lt_cv_path_LD+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -z "$LD"; then
4367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4368 for ac_dir in $PATH; do
4369 IFS="$lt_save_ifs"
4370 test -z "$ac_dir" && ac_dir=.
4371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4372 lt_cv_path_LD="$ac_dir/$ac_prog"
4373 # Check to see if the program is GNU ld. I'd rather use --version,
4374 # but apparently some variants of GNU ld only accept -v.
4375 # Break only if it was the GNU/non-GNU ld that we prefer.
4376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4377 *GNU* | *'with BFD'*)
4378 test "$with_gnu_ld" != no && break
4379 ;;
4380 *)
4381 test "$with_gnu_ld" != yes && break
4382 ;;
4383 esac
4384 fi
4385 done
4386 IFS="$lt_save_ifs"
4387 else
4388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4389 fi
4390 fi
4391
4392 LD="$lt_cv_path_LD"
4393 if test -n "$LD"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4395 $as_echo "$LD" >&6; }
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4403 if ${lt_cv_prog_gnu_ld+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4407 case `$LD -v 2>&1 </dev/null` in
4408 *GNU* | *'with BFD'*)
4409 lt_cv_prog_gnu_ld=yes
4410 ;;
4411 *)
4412 lt_cv_prog_gnu_ld=no
4413 ;;
4414 esac
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4418 with_gnu_ld=$lt_cv_prog_gnu_ld
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4430 if ${lt_cv_path_NM+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$NM"; then
4434 # Let the user override the test.
4435 lt_cv_path_NM="$NM"
4436 else
4437 lt_nm_to_check="${ac_tool_prefix}nm"
4438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4439 lt_nm_to_check="$lt_nm_to_check nm"
4440 fi
4441 for lt_tmp_nm in $lt_nm_to_check; do
4442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4444 IFS="$lt_save_ifs"
4445 test -z "$ac_dir" && ac_dir=.
4446 tmp_nm="$ac_dir/$lt_tmp_nm"
4447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4448 # Check to see if the nm accepts a BSD-compat flag.
4449 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4450 # nm: unknown option "B" ignored
4451 # Tru64's nm complains that /dev/null is an invalid object file
4452 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4453 */dev/null* | *'Invalid file or object type'*)
4454 lt_cv_path_NM="$tmp_nm -B"
4455 break
4456 ;;
4457 *)
4458 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4459 */dev/null*)
4460 lt_cv_path_NM="$tmp_nm -p"
4461 break
4462 ;;
4463 *)
4464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4465 continue # so that we can try to find one that supports BSD flags
4466 ;;
4467 esac
4468 ;;
4469 esac
4470 fi
4471 done
4472 IFS="$lt_save_ifs"
4473 done
4474 : ${lt_cv_path_NM=no}
4475 fi
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4478 $as_echo "$lt_cv_path_NM" >&6; }
4479 if test "$lt_cv_path_NM" != "no"; then
4480 NM="$lt_cv_path_NM"
4481 else
4482 # Didn't find any BSD compatible name lister, look for dumpbin.
4483 if test -n "$DUMPBIN"; then :
4484 # Let the user override the test.
4485 else
4486 if test -n "$ac_tool_prefix"; then
4487 for ac_prog in dumpbin "link -dump"
4488 do
4489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_prog_DUMPBIN+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if test -n "$DUMPBIN"; then
4497 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510 done
4511 done
4512 IFS=$as_save_IFS
4513
4514 fi
4515 fi
4516 DUMPBIN=$ac_cv_prog_DUMPBIN
4517 if test -n "$DUMPBIN"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4519 $as_echo "$DUMPBIN" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524
4525
4526 test -n "$DUMPBIN" && break
4527 done
4528 fi
4529 if test -z "$DUMPBIN"; then
4530 ac_ct_DUMPBIN=$DUMPBIN
4531 for ac_prog in dumpbin "link -dump"
4532 do
4533 # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$ac_ct_DUMPBIN"; then
4541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4561 if test -n "$ac_ct_DUMPBIN"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4563 $as_echo "$ac_ct_DUMPBIN" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570 test -n "$ac_ct_DUMPBIN" && break
4571 done
4572
4573 if test "x$ac_ct_DUMPBIN" = x; then
4574 DUMPBIN=":"
4575 else
4576 case $cross_compiling:$ac_tool_warned in
4577 yes:)
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580 ac_tool_warned=yes ;;
4581 esac
4582 DUMPBIN=$ac_ct_DUMPBIN
4583 fi
4584 fi
4585
4586 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4587 *COFF*)
4588 DUMPBIN="$DUMPBIN -symbols"
4589 ;;
4590 *)
4591 DUMPBIN=:
4592 ;;
4593 esac
4594 fi
4595
4596 if test "$DUMPBIN" != ":"; then
4597 NM="$DUMPBIN"
4598 fi
4599 fi
4600 test -z "$NM" && NM=nm
4601
4602
4603
4604
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4609 if ${lt_cv_nm_interface+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 lt_cv_nm_interface="BSD nm"
4613 echo "int some_variable = 0;" > conftest.$ac_ext
4614 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4615 (eval "$ac_compile" 2>conftest.err)
4616 cat conftest.err >&5
4617 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4618 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4619 cat conftest.err >&5
4620 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4621 cat conftest.out >&5
4622 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4623 lt_cv_nm_interface="MS dumpbin"
4624 fi
4625 rm -f conftest*
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4628 $as_echo "$lt_cv_nm_interface" >&6; }
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4631 $as_echo_n "checking whether ln -s works... " >&6; }
4632 LN_S=$as_ln_s
4633 if test "$LN_S" = "ln -s"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 $as_echo "yes" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4638 $as_echo "no, using $LN_S" >&6; }
4639 fi
4640
4641 # find the maximum length of command line arguments
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4644 if ${lt_cv_sys_max_cmd_len+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 i=0
4648 teststring="ABCD"
4649
4650 case $build_os in
4651 msdosdjgpp*)
4652 # On DJGPP, this test can blow up pretty badly due to problems in libc
4653 # (any single argument exceeding 2000 bytes causes a buffer overrun
4654 # during glob expansion). Even if it were fixed, the result of this
4655 # check would be larger than it should be.
4656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4657 ;;
4658
4659 gnu*)
4660 # Under GNU Hurd, this test is not required because there is
4661 # no limit to the length of command line arguments.
4662 # Libtool will interpret -1 as no limit whatsoever
4663 lt_cv_sys_max_cmd_len=-1;
4664 ;;
4665
4666 cygwin* | mingw* | cegcc*)
4667 # On Win9x/ME, this test blows up -- it succeeds, but takes
4668 # about 5 minutes as the teststring grows exponentially.
4669 # Worse, since 9x/ME are not pre-emptively multitasking,
4670 # you end up with a "frozen" computer, even though with patience
4671 # the test eventually succeeds (with a max line length of 256k).
4672 # Instead, let's just punt: use the minimum linelength reported by
4673 # all of the supported platforms: 8192 (on NT/2K/XP).
4674 lt_cv_sys_max_cmd_len=8192;
4675 ;;
4676
4677 mint*)
4678 # On MiNT this can take a long time and run out of memory.
4679 lt_cv_sys_max_cmd_len=8192;
4680 ;;
4681
4682 amigaos*)
4683 # On AmigaOS with pdksh, this test takes hours, literally.
4684 # So we just punt and use a minimum line length of 8192.
4685 lt_cv_sys_max_cmd_len=8192;
4686 ;;
4687
4688 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4689 # This has been around since 386BSD, at least. Likely further.
4690 if test -x /sbin/sysctl; then
4691 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4692 elif test -x /usr/sbin/sysctl; then
4693 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4694 else
4695 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4696 fi
4697 # And add a safety zone
4698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4700 ;;
4701
4702 interix*)
4703 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4704 lt_cv_sys_max_cmd_len=196608
4705 ;;
4706
4707 os2*)
4708 # The test takes a long time on OS/2.
4709 lt_cv_sys_max_cmd_len=8192
4710 ;;
4711
4712 osf*)
4713 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4714 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4715 # nice to cause kernel panics so lets avoid the loop below.
4716 # First set a reasonable default.
4717 lt_cv_sys_max_cmd_len=16384
4718 #
4719 if test -x /sbin/sysconfig; then
4720 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4721 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4722 esac
4723 fi
4724 ;;
4725 sco3.2v5*)
4726 lt_cv_sys_max_cmd_len=102400
4727 ;;
4728 sysv5* | sco5v6* | sysv4.2uw2*)
4729 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4730 if test -n "$kargmax"; then
4731 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4732 else
4733 lt_cv_sys_max_cmd_len=32768
4734 fi
4735 ;;
4736 *)
4737 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4738 if test -n "$lt_cv_sys_max_cmd_len"; then
4739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4741 else
4742 # Make teststring a little bigger before we do anything with it.
4743 # a 1K string should be a reasonable start.
4744 for i in 1 2 3 4 5 6 7 8 ; do
4745 teststring=$teststring$teststring
4746 done
4747 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4748 # If test is not a shell built-in, we'll probably end up computing a
4749 # maximum length that is only half of the actual maximum length, but
4750 # we can't tell.
4751 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4752 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4753 test $i != 17 # 1/2 MB should be enough
4754 do
4755 i=`expr $i + 1`
4756 teststring=$teststring$teststring
4757 done
4758 # Only check the string length outside the loop.
4759 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4760 teststring=
4761 # Add a significant safety factor because C++ compilers can tack on
4762 # massive amounts of additional arguments before passing them to the
4763 # linker. It appears as though 1/2 is a usable value.
4764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4765 fi
4766 ;;
4767 esac
4768
4769 fi
4770
4771 if test -n $lt_cv_sys_max_cmd_len ; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4773 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4776 $as_echo "none" >&6; }
4777 fi
4778 max_cmd_len=$lt_cv_sys_max_cmd_len
4779
4780
4781
4782
4783
4784
4785 : ${CP="cp -f"}
4786 : ${MV="mv -f"}
4787 : ${RM="rm -f"}
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4790 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4791 # Try some XSI features
4792 xsi_shell=no
4793 ( _lt_dummy="a/b/c"
4794 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4795 = c,a/b,b/c, \
4796 && eval 'test $(( 1 + 1 )) -eq 2 \
4797 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4798 && xsi_shell=yes
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4800 $as_echo "$xsi_shell" >&6; }
4801
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4804 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4805 lt_shell_append=no
4806 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4807 >/dev/null 2>&1 \
4808 && lt_shell_append=yes
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4810 $as_echo "$lt_shell_append" >&6; }
4811
4812
4813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4814 lt_unset=unset
4815 else
4816 lt_unset=false
4817 fi
4818
4819
4820
4821
4822
4823 # test EBCDIC or ASCII
4824 case `echo X|tr X '\101'` in
4825 A) # ASCII based system
4826 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4827 lt_SP2NL='tr \040 \012'
4828 lt_NL2SP='tr \015\012 \040\040'
4829 ;;
4830 *) # EBCDIC based system
4831 lt_SP2NL='tr \100 \n'
4832 lt_NL2SP='tr \r\n \100\100'
4833 ;;
4834 esac
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4845 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4846 if ${lt_cv_to_host_file_cmd+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 case $host in
4850 *-*-mingw* )
4851 case $build in
4852 *-*-mingw* ) # actually msys
4853 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4854 ;;
4855 *-*-cygwin* )
4856 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4857 ;;
4858 * ) # otherwise, assume *nix
4859 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4860 ;;
4861 esac
4862 ;;
4863 *-*-cygwin* )
4864 case $build in
4865 *-*-mingw* ) # actually msys
4866 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4867 ;;
4868 *-*-cygwin* )
4869 lt_cv_to_host_file_cmd=func_convert_file_noop
4870 ;;
4871 * ) # otherwise, assume *nix
4872 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4873 ;;
4874 esac
4875 ;;
4876 * ) # unhandled hosts (and "normal" native builds)
4877 lt_cv_to_host_file_cmd=func_convert_file_noop
4878 ;;
4879 esac
4880
4881 fi
4882
4883 to_host_file_cmd=$lt_cv_to_host_file_cmd
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4885 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4886
4887
4888
4889
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4892 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4893 if ${lt_cv_to_tool_file_cmd+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 #assume ordinary cross tools, or native build.
4897 lt_cv_to_tool_file_cmd=func_convert_file_noop
4898 case $host in
4899 *-*-mingw* )
4900 case $build in
4901 *-*-mingw* ) # actually msys
4902 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4903 ;;
4904 esac
4905 ;;
4906 esac
4907
4908 fi
4909
4910 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4912 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4913
4914
4915
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4919 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4920 if ${lt_cv_ld_reload_flag+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 lt_cv_ld_reload_flag='-r'
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4926 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4927 reload_flag=$lt_cv_ld_reload_flag
4928 case $reload_flag in
4929 "" | " "*) ;;
4930 *) reload_flag=" $reload_flag" ;;
4931 esac
4932 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4933 case $host_os in
4934 cygwin* | mingw* | pw32* | cegcc*)
4935 if test "$GCC" != yes; then
4936 reload_cmds=false
4937 fi
4938 ;;
4939 darwin*)
4940 if test "$GCC" = yes; then
4941 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4942 else
4943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4944 fi
4945 ;;
4946 esac
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 if test -n "$ac_tool_prefix"; then
4957 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4958 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_OBJDUMP+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -n "$OBJDUMP"; then
4965 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4977 fi
4978 done
4979 done
4980 IFS=$as_save_IFS
4981
4982 fi
4983 fi
4984 OBJDUMP=$ac_cv_prog_OBJDUMP
4985 if test -n "$OBJDUMP"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4987 $as_echo "$OBJDUMP" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993
4994 fi
4995 if test -z "$ac_cv_prog_OBJDUMP"; then
4996 ac_ct_OBJDUMP=$OBJDUMP
4997 # Extract the first word of "objdump", so it can be a program name with args.
4998 set dummy objdump; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -n "$ac_ct_OBJDUMP"; then
5005 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018 done
5019 done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5025 if test -n "$ac_ct_OBJDUMP"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5027 $as_echo "$ac_ct_OBJDUMP" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5032
5033 if test "x$ac_ct_OBJDUMP" = x; then
5034 OBJDUMP="false"
5035 else
5036 case $cross_compiling:$ac_tool_warned in
5037 yes:)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5040 ac_tool_warned=yes ;;
5041 esac
5042 OBJDUMP=$ac_ct_OBJDUMP
5043 fi
5044 else
5045 OBJDUMP="$ac_cv_prog_OBJDUMP"
5046 fi
5047
5048 test -z "$OBJDUMP" && OBJDUMP=objdump
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5059 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5060 if ${lt_cv_deplibs_check_method+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 lt_cv_file_magic_cmd='$MAGIC_CMD'
5064 lt_cv_file_magic_test_file=
5065 lt_cv_deplibs_check_method='unknown'
5066 # Need to set the preceding variable on all platforms that support
5067 # interlibrary dependencies.
5068 # 'none' -- dependencies not supported.
5069 # `unknown' -- same as none, but documents that we really don't know.
5070 # 'pass_all' -- all dependencies passed with no checks.
5071 # 'test_compile' -- check by making test program.
5072 # 'file_magic [[regex]]' -- check by looking for files in library path
5073 # which responds to the $file_magic_cmd with a given extended regex.
5074 # If you have `file' or equivalent on your system and you're not sure
5075 # whether `pass_all' will *always* work, you probably want this one.
5076
5077 case $host_os in
5078 aix[4-9]*)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082 beos*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086 bsdi[45]*)
5087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5088 lt_cv_file_magic_cmd='/usr/bin/file -L'
5089 lt_cv_file_magic_test_file=/shlib/libc.so
5090 ;;
5091
5092 cygwin*)
5093 # func_win32_libid is a shell function defined in ltmain.sh
5094 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5095 lt_cv_file_magic_cmd='func_win32_libid'
5096 ;;
5097
5098 mingw* | pw32*)
5099 # Base MSYS/MinGW do not provide the 'file' command needed by
5100 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5101 # unless we find 'file', for example because we are cross-compiling.
5102 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5103 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5105 lt_cv_file_magic_cmd='func_win32_libid'
5106 else
5107 # Keep this pattern in sync with the one in func_win32_libid.
5108 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5109 lt_cv_file_magic_cmd='$OBJDUMP -f'
5110 fi
5111 ;;
5112
5113 cegcc*)
5114 # use the weaker test based on 'objdump'. See mingw*.
5115 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5116 lt_cv_file_magic_cmd='$OBJDUMP -f'
5117 ;;
5118
5119 darwin* | rhapsody*)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
5122
5123 freebsd* | dragonfly*)
5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125 case $host_cpu in
5126 i*86 )
5127 # Not sure whether the presence of OpenBSD here was a mistake.
5128 # Let's accept both of them until this is cleared up.
5129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5130 lt_cv_file_magic_cmd=/usr/bin/file
5131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5132 ;;
5133 esac
5134 else
5135 lt_cv_deplibs_check_method=pass_all
5136 fi
5137 ;;
5138
5139 gnu*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142
5143 haiku*)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
5147 hpux10.20* | hpux11*)
5148 lt_cv_file_magic_cmd=/usr/bin/file
5149 case $host_cpu in
5150 ia64*)
5151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5152 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5153 ;;
5154 hppa*64*)
5155 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]'
5156 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5157 ;;
5158 *)
5159 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5160 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5161 ;;
5162 esac
5163 ;;
5164
5165 interix[3-9]*)
5166 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5168 ;;
5169
5170 irix5* | irix6* | nonstopux*)
5171 case $LD in
5172 *-32|*"-32 ") libmagic=32-bit;;
5173 *-n32|*"-n32 ") libmagic=N32;;
5174 *-64|*"-64 ") libmagic=64-bit;;
5175 *) libmagic=never-match;;
5176 esac
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179
5180 # This must be glibc/ELF.
5181 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
5184
5185 netbsd*)
5186 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5188 else
5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5190 fi
5191 ;;
5192
5193 newos6*)
5194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5195 lt_cv_file_magic_cmd=/usr/bin/file
5196 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5197 ;;
5198
5199 *nto* | *qnx*)
5200 lt_cv_deplibs_check_method=pass_all
5201 ;;
5202
5203 openbsd*)
5204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5206 else
5207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5208 fi
5209 ;;
5210
5211 osf3* | osf4* | osf5*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 rdos*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 solaris*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227 sysv4 | sysv4.3*)
5228 case $host_vendor in
5229 motorola)
5230 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]'
5231 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5232 ;;
5233 ncr)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236 sequent)
5237 lt_cv_file_magic_cmd='/bin/file'
5238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5239 ;;
5240 sni)
5241 lt_cv_file_magic_cmd='/bin/file'
5242 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5243 lt_cv_file_magic_test_file=/lib/libc.so
5244 ;;
5245 siemens)
5246 lt_cv_deplibs_check_method=pass_all
5247 ;;
5248 pc)
5249 lt_cv_deplibs_check_method=pass_all
5250 ;;
5251 esac
5252 ;;
5253
5254 tpf*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257 esac
5258
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5261 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5262
5263 file_magic_glob=
5264 want_nocaseglob=no
5265 if test "$build" = "$host"; then
5266 case $host_os in
5267 mingw* | pw32*)
5268 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5269 want_nocaseglob=yes
5270 else
5271 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5272 fi
5273 ;;
5274 esac
5275 fi
5276
5277 file_magic_cmd=$lt_cv_file_magic_cmd
5278 deplibs_check_method=$lt_cv_deplibs_check_method
5279 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302 if test -n "$ac_tool_prefix"; then
5303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5304 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_DLLTOOL+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$DLLTOOL"; then
5311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5323 fi
5324 done
5325 done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 DLLTOOL=$ac_cv_prog_DLLTOOL
5331 if test -n "$DLLTOOL"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5333 $as_echo "$DLLTOOL" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339
5340 fi
5341 if test -z "$ac_cv_prog_DLLTOOL"; then
5342 ac_ct_DLLTOOL=$DLLTOOL
5343 # Extract the first word of "dlltool", so it can be a program name with args.
5344 set dummy dlltool; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$ac_ct_DLLTOOL"; then
5351 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368 fi
5369 fi
5370 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5371 if test -n "$ac_ct_DLLTOOL"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5373 $as_echo "$ac_ct_DLLTOOL" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 fi
5378
5379 if test "x$ac_ct_DLLTOOL" = x; then
5380 DLLTOOL="false"
5381 else
5382 case $cross_compiling:$ac_tool_warned in
5383 yes:)
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386 ac_tool_warned=yes ;;
5387 esac
5388 DLLTOOL=$ac_ct_DLLTOOL
5389 fi
5390 else
5391 DLLTOOL="$ac_cv_prog_DLLTOOL"
5392 fi
5393
5394 test -z "$DLLTOOL" && DLLTOOL=dlltool
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5406 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5407 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 lt_cv_sharedlib_from_linklib_cmd='unknown'
5411
5412 case $host_os in
5413 cygwin* | mingw* | pw32* | cegcc*)
5414 # two different shell functions defined in ltmain.sh
5415 # decide which to use based on capabilities of $DLLTOOL
5416 case `$DLLTOOL --help 2>&1` in
5417 *--identify-strict*)
5418 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5419 ;;
5420 *)
5421 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5422 ;;
5423 esac
5424 ;;
5425 *)
5426 # fallback: assume linklib IS sharedlib
5427 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5428 ;;
5429 esac
5430
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5433 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5434 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5435 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5436
5437
5438
5439
5440
5441
5442
5443
5444 if test -n "$ac_tool_prefix"; then
5445 for ac_prog in ar
5446 do
5447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_AR+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$AR"; then
5455 ac_cv_prog_AR="$AR" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 AR=$ac_cv_prog_AR
5475 if test -n "$AR"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5477 $as_echo "$AR" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 test -n "$AR" && break
5485 done
5486 fi
5487 if test -z "$AR"; then
5488 ac_ct_AR=$AR
5489 for ac_prog in ar
5490 do
5491 # Extract the first word of "$ac_prog", so it can be a program name with args.
5492 set dummy $ac_prog; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$ac_ct_AR"; then
5499 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_ac_ct_AR="$ac_prog"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5519 if test -n "$ac_ct_AR"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5521 $as_echo "$ac_ct_AR" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527
5528 test -n "$ac_ct_AR" && break
5529 done
5530
5531 if test "x$ac_ct_AR" = x; then
5532 AR="false"
5533 else
5534 case $cross_compiling:$ac_tool_warned in
5535 yes:)
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538 ac_tool_warned=yes ;;
5539 esac
5540 AR=$ac_ct_AR
5541 fi
5542 fi
5543
5544 : ${AR=ar}
5545 : ${AR_FLAGS=cru}
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5558 $as_echo_n "checking for archiver @FILE support... " >&6; }
5559 if ${lt_cv_ar_at_file+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 lt_cv_ar_at_file=no
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565
5566 int
5567 main ()
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 echo conftest.$ac_objext > conftest.lst
5576 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5578 (eval $lt_ar_try) 2>&5
5579 ac_status=$?
5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581 test $ac_status = 0; }
5582 if test "$ac_status" -eq 0; then
5583 # Ensure the archiver fails upon bogus file names.
5584 rm -f conftest.$ac_objext libconftest.a
5585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5586 (eval $lt_ar_try) 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589 test $ac_status = 0; }
5590 if test "$ac_status" -ne 0; then
5591 lt_cv_ar_at_file=@
5592 fi
5593 fi
5594 rm -f conftest.* libconftest.a
5595
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5601 $as_echo "$lt_cv_ar_at_file" >&6; }
5602
5603 if test "x$lt_cv_ar_at_file" = xno; then
5604 archiver_list_spec=
5605 else
5606 archiver_list_spec=$lt_cv_ar_at_file
5607 fi
5608
5609
5610
5611
5612
5613
5614
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}strip; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_STRIP+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$STRIP"; then
5624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 STRIP=$ac_cv_prog_STRIP
5644 if test -n "$STRIP"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5646 $as_echo "$STRIP" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 fi
5654 if test -z "$ac_cv_prog_STRIP"; then
5655 ac_ct_STRIP=$STRIP
5656 # Extract the first word of "strip", so it can be a program name with args.
5657 set dummy strip; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$ac_ct_STRIP"; then
5664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_STRIP="strip"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677 done
5678 done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5684 if test -n "$ac_ct_STRIP"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5686 $as_echo "$ac_ct_STRIP" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692 if test "x$ac_ct_STRIP" = x; then
5693 STRIP=":"
5694 else
5695 case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701 STRIP=$ac_ct_STRIP
5702 fi
5703 else
5704 STRIP="$ac_cv_prog_STRIP"
5705 fi
5706
5707 test -z "$STRIP" && STRIP=:
5708
5709
5710
5711
5712
5713
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_RANLIB+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$RANLIB"; then
5723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736 done
5737 done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 RANLIB=$ac_cv_prog_RANLIB
5743 if test -n "$RANLIB"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5745 $as_echo "$RANLIB" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752 fi
5753 if test -z "$ac_cv_prog_RANLIB"; then
5754 ac_ct_RANLIB=$RANLIB
5755 # Extract the first word of "ranlib", so it can be a program name with args.
5756 set dummy ranlib; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_RANLIB"; then
5763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_RANLIB="ranlib"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5783 if test -n "$ac_ct_RANLIB"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5785 $as_echo "$ac_ct_RANLIB" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791 if test "x$ac_ct_RANLIB" = x; then
5792 RANLIB=":"
5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795 yes:)
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5799 esac
5800 RANLIB=$ac_ct_RANLIB
5801 fi
5802 else
5803 RANLIB="$ac_cv_prog_RANLIB"
5804 fi
5805
5806 test -z "$RANLIB" && RANLIB=:
5807
5808
5809
5810
5811
5812
5813 # Determine commands to create old-style static archives.
5814 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5815 old_postinstall_cmds='chmod 644 $oldlib'
5816 old_postuninstall_cmds=
5817
5818 if test -n "$RANLIB"; then
5819 case $host_os in
5820 openbsd*)
5821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5822 ;;
5823 *)
5824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5825 ;;
5826 esac
5827 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5828 fi
5829
5830 case $host_os in
5831 darwin*)
5832 lock_old_archive_extraction=yes ;;
5833 *)
5834 lock_old_archive_extraction=no ;;
5835 esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 # If no C compiler was specified, use CC.
5876 LTCC=${LTCC-"$CC"}
5877
5878 # If no C compiler flags were specified, use CFLAGS.
5879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5880
5881 # Allow CC to be a program name with arguments.
5882 compiler=$CC
5883
5884
5885 # Check for command to grab the raw symbol name followed by C symbol from nm.
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5887 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5888 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891
5892 # These are sane defaults that work on at least a few old systems.
5893 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5894
5895 # Character class describing NM global symbol codes.
5896 symcode='[BCDEGRST]'
5897
5898 # Regexp to match symbols that can be accessed directly from C.
5899 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5900
5901 # Define system-specific variables.
5902 case $host_os in
5903 aix*)
5904 symcode='[BCDT]'
5905 ;;
5906 cygwin* | mingw* | pw32* | cegcc*)
5907 symcode='[ABCDGISTW]'
5908 ;;
5909 hpux*)
5910 if test "$host_cpu" = ia64; then
5911 symcode='[ABCDEGRST]'
5912 fi
5913 ;;
5914 irix* | nonstopux*)
5915 symcode='[BCDEGRST]'
5916 ;;
5917 osf*)
5918 symcode='[BCDEGQRST]'
5919 ;;
5920 solaris*)
5921 symcode='[BDRT]'
5922 ;;
5923 sco3.2v5*)
5924 symcode='[DT]'
5925 ;;
5926 sysv4.2uw2*)
5927 symcode='[DT]'
5928 ;;
5929 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5930 symcode='[ABDT]'
5931 ;;
5932 sysv4)
5933 symcode='[DFNSTU]'
5934 ;;
5935 esac
5936
5937 # If we're using GNU nm, then use its standard symbol codes.
5938 case `$NM -V 2>&1` in
5939 *GNU* | *'with BFD'*)
5940 symcode='[ABCDGIRSTW]' ;;
5941 esac
5942
5943 # Transform an extracted symbol line into a proper C declaration.
5944 # Some systems (esp. on ia64) link data and code symbols differently,
5945 # so use this general approach.
5946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5947
5948 # Transform an extracted symbol line into symbol name and symbol address
5949 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5950 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'"
5951
5952 # Handle CRLF in mingw tool chain
5953 opt_cr=
5954 case $build_os in
5955 mingw*)
5956 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5957 ;;
5958 esac
5959
5960 # Try without a prefix underscore, then with it.
5961 for ac_symprfx in "" "_"; do
5962
5963 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5964 symxfrm="\\1 $ac_symprfx\\2 \\2"
5965
5966 # Write the raw and C identifiers.
5967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5968 # Fake it for dumpbin and say T for any non-static function
5969 # and D for any global variable.
5970 # Also find C++ and __fastcall symbols from MSVC++,
5971 # which start with @ or ?.
5972 lt_cv_sys_global_symbol_pipe="$AWK '"\
5973 " {last_section=section; section=\$ 3};"\
5974 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5975 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5976 " \$ 0!~/External *\|/{next};"\
5977 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5978 " {if(hide[section]) next};"\
5979 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5980 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5981 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5982 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5983 " ' prfx=^$ac_symprfx"
5984 else
5985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5986 fi
5987 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5988
5989 # Check to see that the pipe works correctly.
5990 pipe_works=no
5991
5992 rm -f conftest*
5993 cat > conftest.$ac_ext <<_LT_EOF
5994 #ifdef __cplusplus
5995 extern "C" {
5996 #endif
5997 char nm_test_var;
5998 void nm_test_func(void);
5999 void nm_test_func(void){}
6000 #ifdef __cplusplus
6001 }
6002 #endif
6003 int main(){nm_test_var='a';nm_test_func();return(0);}
6004 _LT_EOF
6005
6006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6007 (eval $ac_compile) 2>&5
6008 ac_status=$?
6009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6010 test $ac_status = 0; }; then
6011 # Now try to grab the symbols.
6012 nlist=conftest.nm
6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6014 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; } && test -s "$nlist"; then
6018 # Try sorting and uniquifying the output.
6019 if sort "$nlist" | uniq > "$nlist"T; then
6020 mv -f "$nlist"T "$nlist"
6021 else
6022 rm -f "$nlist"T
6023 fi
6024
6025 # Make sure that we snagged all the symbols we need.
6026 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6027 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6028 cat <<_LT_EOF > conftest.$ac_ext
6029 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6030 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6031 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6032 relocations are performed -- see ld's documentation on pseudo-relocs. */
6033 # define LT_DLSYM_CONST
6034 #elif defined(__osf__)
6035 /* This system does not cope well with relocations in const data. */
6036 # define LT_DLSYM_CONST
6037 #else
6038 # define LT_DLSYM_CONST const
6039 #endif
6040
6041 #ifdef __cplusplus
6042 extern "C" {
6043 #endif
6044
6045 _LT_EOF
6046 # Now generate the symbol file.
6047 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6048
6049 cat <<_LT_EOF >> conftest.$ac_ext
6050
6051 /* The mapping between symbol names and symbols. */
6052 LT_DLSYM_CONST struct {
6053 const char *name;
6054 void *address;
6055 }
6056 lt__PROGRAM__LTX_preloaded_symbols[] =
6057 {
6058 { "@PROGRAM@", (void *) 0 },
6059 _LT_EOF
6060 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6061 cat <<\_LT_EOF >> conftest.$ac_ext
6062 {0, (void *) 0}
6063 };
6064
6065 /* This works around a problem in FreeBSD linker */
6066 #ifdef FREEBSD_WORKAROUND
6067 static const void *lt_preloaded_setup() {
6068 return lt__PROGRAM__LTX_preloaded_symbols;
6069 }
6070 #endif
6071
6072 #ifdef __cplusplus
6073 }
6074 #endif
6075 _LT_EOF
6076 # Now try linking the two files.
6077 mv conftest.$ac_objext conftstm.$ac_objext
6078 lt_globsym_save_LIBS=$LIBS
6079 lt_globsym_save_CFLAGS=$CFLAGS
6080 LIBS="conftstm.$ac_objext"
6081 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6083 (eval $ac_link) 2>&5
6084 ac_status=$?
6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6087 pipe_works=yes
6088 fi
6089 LIBS=$lt_globsym_save_LIBS
6090 CFLAGS=$lt_globsym_save_CFLAGS
6091 else
6092 echo "cannot find nm_test_func in $nlist" >&5
6093 fi
6094 else
6095 echo "cannot find nm_test_var in $nlist" >&5
6096 fi
6097 else
6098 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6099 fi
6100 else
6101 echo "$progname: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 fi
6104 rm -rf conftest* conftst*
6105
6106 # Do not use the global_symbol_pipe unless it works.
6107 if test "$pipe_works" = yes; then
6108 break
6109 else
6110 lt_cv_sys_global_symbol_pipe=
6111 fi
6112 done
6113
6114 fi
6115
6116 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6117 lt_cv_sys_global_symbol_to_cdecl=
6118 fi
6119 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6121 $as_echo "failed" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6124 $as_echo "ok" >&6; }
6125 fi
6126
6127 # Response file support.
6128 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6129 nm_file_list_spec='@'
6130 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6131 nm_file_list_spec='@'
6132 fi
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6161 $as_echo_n "checking for sysroot... " >&6; }
6162
6163 # Check whether --with-sysroot was given.
6164 if test "${with_sysroot+set}" = set; then :
6165 withval=$with_sysroot;
6166 else
6167 with_sysroot=no
6168 fi
6169
6170
6171 lt_sysroot=
6172 case ${with_sysroot} in #(
6173 yes)
6174 if test "$GCC" = yes; then
6175 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6176 fi
6177 ;; #(
6178 /*)
6179 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6180 ;; #(
6181 no|'')
6182 ;; #(
6183 *)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6185 $as_echo "${with_sysroot}" >&6; }
6186 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6187 ;;
6188 esac
6189
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6191 $as_echo "${lt_sysroot:-no}" >&6; }
6192
6193
6194
6195
6196
6197 # Check whether --enable-libtool-lock was given.
6198 if test "${enable_libtool_lock+set}" = set; then :
6199 enableval=$enable_libtool_lock;
6200 fi
6201
6202 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6203
6204 # Some flags need to be propagated to the compiler or linker for good
6205 # libtool support.
6206 case $host in
6207 ia64-*-hpux*)
6208 # Find out which ABI we are using.
6209 echo 'int i;' > conftest.$ac_ext
6210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6211 (eval $ac_compile) 2>&5
6212 ac_status=$?
6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6214 test $ac_status = 0; }; then
6215 case `/usr/bin/file conftest.$ac_objext` in
6216 *ELF-32*)
6217 HPUX_IA64_MODE="32"
6218 ;;
6219 *ELF-64*)
6220 HPUX_IA64_MODE="64"
6221 ;;
6222 esac
6223 fi
6224 rm -rf conftest*
6225 ;;
6226 *-*-irix6*)
6227 # Find out which ABI we are using.
6228 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230 (eval $ac_compile) 2>&5
6231 ac_status=$?
6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233 test $ac_status = 0; }; then
6234 if test "$lt_cv_prog_gnu_ld" = yes; then
6235 case `/usr/bin/file conftest.$ac_objext` in
6236 *32-bit*)
6237 LD="${LD-ld} -melf32bsmip"
6238 ;;
6239 *N32*)
6240 LD="${LD-ld} -melf32bmipn32"
6241 ;;
6242 *64-bit*)
6243 LD="${LD-ld} -melf64bmip"
6244 ;;
6245 esac
6246 else
6247 case `/usr/bin/file conftest.$ac_objext` in
6248 *32-bit*)
6249 LD="${LD-ld} -32"
6250 ;;
6251 *N32*)
6252 LD="${LD-ld} -n32"
6253 ;;
6254 *64-bit*)
6255 LD="${LD-ld} -64"
6256 ;;
6257 esac
6258 fi
6259 fi
6260 rm -rf conftest*
6261 ;;
6262
6263 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6264 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6265 # Find out which ABI we are using.
6266 echo 'int i;' > conftest.$ac_ext
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6268 (eval $ac_compile) 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
6272 case `/usr/bin/file conftest.o` in
6273 *32-bit*)
6274 case $host in
6275 x86_64-*kfreebsd*-gnu)
6276 LD="${LD-ld} -m elf_i386_fbsd"
6277 ;;
6278 x86_64-*linux*)
6279 LD="${LD-ld} -m elf_i386"
6280 ;;
6281 ppc64-*linux*|powerpc64-*linux*)
6282 LD="${LD-ld} -m elf32ppclinux"
6283 ;;
6284 s390x-*linux*)
6285 LD="${LD-ld} -m elf_s390"
6286 ;;
6287 sparc64-*linux*)
6288 LD="${LD-ld} -m elf32_sparc"
6289 ;;
6290 esac
6291 ;;
6292 *64-bit*)
6293 case $host in
6294 x86_64-*kfreebsd*-gnu)
6295 LD="${LD-ld} -m elf_x86_64_fbsd"
6296 ;;
6297 x86_64-*linux*)
6298 LD="${LD-ld} -m elf_x86_64"
6299 ;;
6300 ppc*-*linux*|powerpc*-*linux*)
6301 LD="${LD-ld} -m elf64ppc"
6302 ;;
6303 s390*-*linux*|s390*-*tpf*)
6304 LD="${LD-ld} -m elf64_s390"
6305 ;;
6306 sparc*-*linux*)
6307 LD="${LD-ld} -m elf64_sparc"
6308 ;;
6309 esac
6310 ;;
6311 esac
6312 fi
6313 rm -rf conftest*
6314 ;;
6315
6316 *-*-sco3.2v5*)
6317 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6318 SAVE_CFLAGS="$CFLAGS"
6319 CFLAGS="$CFLAGS -belf"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6321 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6322 if ${lt_cv_cc_needs_belf+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 ac_ext=c
6326 ac_cpp='$CPP $CPPFLAGS'
6327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333
6334 int
6335 main ()
6336 {
6337
6338 ;
6339 return 0;
6340 }
6341 _ACEOF
6342 if ac_fn_c_try_link "$LINENO"; then :
6343 lt_cv_cc_needs_belf=yes
6344 else
6345 lt_cv_cc_needs_belf=no
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6349 ac_ext=c
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6357 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6358 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6359 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6360 CFLAGS="$SAVE_CFLAGS"
6361 fi
6362 ;;
6363 *-*solaris*)
6364 # Find out which ABI we are using.
6365 echo 'int i;' > conftest.$ac_ext
6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6367 (eval $ac_compile) 2>&5
6368 ac_status=$?
6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370 test $ac_status = 0; }; then
6371 case `/usr/bin/file conftest.o` in
6372 *64-bit*)
6373 case $lt_cv_prog_gnu_ld in
6374 yes*)
6375 case $host in
6376 i?86-*-solaris*)
6377 LD="${LD-ld} -m elf_x86_64"
6378 ;;
6379 sparc*-*-solaris*)
6380 LD="${LD-ld} -m elf64_sparc"
6381 ;;
6382 esac
6383 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6384 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6385 LD="${LD-ld}_sol2"
6386 fi
6387 ;;
6388 *)
6389 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6390 LD="${LD-ld} -64"
6391 fi
6392 ;;
6393 esac
6394 ;;
6395 esac
6396 fi
6397 rm -rf conftest*
6398 ;;
6399 esac
6400
6401 need_locks="$enable_libtool_lock"
6402
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}mt; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$MANIFEST_TOOL"; then
6412 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6432 if test -n "$MANIFEST_TOOL"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6434 $as_echo "$MANIFEST_TOOL" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441 fi
6442 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6443 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6444 # Extract the first word of "mt", so it can be a program name with args.
6445 set dummy mt; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_MANIFEST_TOOL"; then
6452 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6472 if test -n "$ac_ct_MANIFEST_TOOL"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6474 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6481 MANIFEST_TOOL=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6490 fi
6491 else
6492 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6493 fi
6494
6495 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6497 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6498 if ${lt_cv_path_mainfest_tool+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 lt_cv_path_mainfest_tool=no
6502 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6503 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6504 cat conftest.err >&5
6505 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6506 lt_cv_path_mainfest_tool=yes
6507 fi
6508 rm -f conftest*
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6511 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6512 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6513 MANIFEST_TOOL=:
6514 fi
6515
6516
6517
6518
6519
6520
6521 case $host_os in
6522 rhapsody* | darwin*)
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 if test -n "$DSYMUTIL"; then
6532 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6552 if test -n "$DSYMUTIL"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6554 $as_echo "$DSYMUTIL" >&6; }
6555 else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560
6561 fi
6562 if test -z "$ac_cv_prog_DSYMUTIL"; then
6563 ac_ct_DSYMUTIL=$DSYMUTIL
6564 # Extract the first word of "dsymutil", so it can be a program name with args.
6565 set dummy dsymutil; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -n "$ac_ct_DSYMUTIL"; then
6572 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6592 if test -n "$ac_ct_DSYMUTIL"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6594 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600 if test "x$ac_ct_DSYMUTIL" = x; then
6601 DSYMUTIL=":"
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609 DSYMUTIL=$ac_ct_DSYMUTIL
6610 fi
6611 else
6612 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6613 fi
6614
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if ${ac_cv_prog_NMEDIT+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$NMEDIT"; then
6624 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 NMEDIT=$ac_cv_prog_NMEDIT
6644 if test -n "$NMEDIT"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6646 $as_echo "$NMEDIT" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_NMEDIT"; then
6655 ac_ct_NMEDIT=$NMEDIT
6656 # Extract the first word of "nmedit", so it can be a program name with args.
6657 set dummy nmedit; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$ac_ct_NMEDIT"; then
6664 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6684 if test -n "$ac_ct_NMEDIT"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6686 $as_echo "$ac_ct_NMEDIT" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692 if test "x$ac_ct_NMEDIT" = x; then
6693 NMEDIT=":"
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 NMEDIT=$ac_ct_NMEDIT
6702 fi
6703 else
6704 NMEDIT="$ac_cv_prog_NMEDIT"
6705 fi
6706
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_LIPO+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$LIPO"; then
6716 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 LIPO=$ac_cv_prog_LIPO
6736 if test -n "$LIPO"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6738 $as_echo "$LIPO" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_LIPO"; then
6747 ac_ct_LIPO=$LIPO
6748 # Extract the first word of "lipo", so it can be a program name with args.
6749 set dummy lipo; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_LIPO"; then
6756 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_LIPO="lipo"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6776 if test -n "$ac_ct_LIPO"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6778 $as_echo "$ac_ct_LIPO" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784 if test "x$ac_ct_LIPO" = x; then
6785 LIPO=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 LIPO=$ac_ct_LIPO
6794 fi
6795 else
6796 LIPO="$ac_cv_prog_LIPO"
6797 fi
6798
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}otool; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_OTOOL+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$OTOOL"; then
6808 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 OTOOL=$ac_cv_prog_OTOOL
6828 if test -n "$OTOOL"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6830 $as_echo "$OTOOL" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_OTOOL"; then
6839 ac_ct_OTOOL=$OTOOL
6840 # Extract the first word of "otool", so it can be a program name with args.
6841 set dummy otool; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_OTOOL"; then
6848 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_ac_ct_OTOOL="otool"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6868 if test -n "$ac_ct_OTOOL"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6870 $as_echo "$ac_ct_OTOOL" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876 if test "x$ac_ct_OTOOL" = x; then
6877 OTOOL=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 OTOOL=$ac_ct_OTOOL
6886 fi
6887 else
6888 OTOOL="$ac_cv_prog_OTOOL"
6889 fi
6890
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_OTOOL64+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$OTOOL64"; then
6900 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 OTOOL64=$ac_cv_prog_OTOOL64
6920 if test -n "$OTOOL64"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6922 $as_echo "$OTOOL64" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_OTOOL64"; then
6931 ac_ct_OTOOL64=$OTOOL64
6932 # Extract the first word of "otool64", so it can be a program name with args.
6933 set dummy otool64; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_OTOOL64"; then
6940 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_OTOOL64="otool64"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6960 if test -n "$ac_ct_OTOOL64"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6962 $as_echo "$ac_ct_OTOOL64" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_OTOOL64" = x; then
6969 OTOOL64=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 OTOOL64=$ac_ct_OTOOL64
6978 fi
6979 else
6980 OTOOL64="$ac_cv_prog_OTOOL64"
6981 fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7010 $as_echo_n "checking for -single_module linker flag... " >&6; }
7011 if ${lt_cv_apple_cc_single_mod+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 lt_cv_apple_cc_single_mod=no
7015 if test -z "${LT_MULTI_MODULE}"; then
7016 # By default we will add the -single_module flag. You can override
7017 # by either setting the environment variable LT_MULTI_MODULE
7018 # non-empty at configure time, or by adding -multi_module to the
7019 # link flags.
7020 rm -rf libconftest.dylib*
7021 echo "int foo(void){return 1;}" > conftest.c
7022 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7023 -dynamiclib -Wl,-single_module conftest.c" >&5
7024 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7025 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7026 _lt_result=$?
7027 # If there is a non-empty error log, and "single_module"
7028 # appears in it, assume the flag caused a linker warning
7029 if test -s conftest.err && $GREP single_module conftest.err; then
7030 cat conftest.err >&5
7031 # Otherwise, if the output was created with a 0 exit code from
7032 # the compiler, it worked.
7033 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7034 lt_cv_apple_cc_single_mod=yes
7035 else
7036 cat conftest.err >&5
7037 fi
7038 rm -rf libconftest.dylib*
7039 rm -f conftest.*
7040 fi
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7043 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7044
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7046 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7047 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 lt_cv_ld_exported_symbols_list=no
7051 save_LDFLAGS=$LDFLAGS
7052 echo "_main" > conftest.sym
7053 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056
7057 int
7058 main ()
7059 {
7060
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_link "$LINENO"; then :
7066 lt_cv_ld_exported_symbols_list=yes
7067 else
7068 lt_cv_ld_exported_symbols_list=no
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7072 LDFLAGS="$save_LDFLAGS"
7073
7074 fi
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7076 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7077
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7079 $as_echo_n "checking for -force_load linker flag... " >&6; }
7080 if ${lt_cv_ld_force_load+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 lt_cv_ld_force_load=no
7084 cat > conftest.c << _LT_EOF
7085 int forced_loaded() { return 2;}
7086 _LT_EOF
7087 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7088 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7089 echo "$AR cru libconftest.a conftest.o" >&5
7090 $AR cru libconftest.a conftest.o 2>&5
7091 echo "$RANLIB libconftest.a" >&5
7092 $RANLIB libconftest.a 2>&5
7093 cat > conftest.c << _LT_EOF
7094 int main() { return 0;}
7095 _LT_EOF
7096 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7097 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7098 _lt_result=$?
7099 if test -s conftest.err && $GREP force_load conftest.err; then
7100 cat conftest.err >&5
7101 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7102 lt_cv_ld_force_load=yes
7103 else
7104 cat conftest.err >&5
7105 fi
7106 rm -f conftest.err libconftest.a conftest conftest.c
7107 rm -rf conftest.dSYM
7108
7109 fi
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7111 $as_echo "$lt_cv_ld_force_load" >&6; }
7112 case $host_os in
7113 rhapsody* | darwin1.[012])
7114 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7115 darwin1.*)
7116 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7117 darwin*) # darwin 5.x on
7118 # if running on 10.5 or later, the deployment target defaults
7119 # to the OS version, if on x86, and 10.4, the deployment
7120 # target defaults to 10.4. Don't you love it?
7121 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7122 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7123 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7124 10.[012]*)
7125 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7126 10.*)
7127 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7128 esac
7129 ;;
7130 esac
7131 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7132 _lt_dar_single_mod='$single_module'
7133 fi
7134 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7135 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7136 else
7137 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7138 fi
7139 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7140 _lt_dsymutil='~$DSYMUTIL $lib || :'
7141 else
7142 _lt_dsymutil=
7143 fi
7144 ;;
7145 esac
7146
7147 ac_ext=c
7148 ac_cpp='$CPP $CPPFLAGS'
7149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7153 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7154 # On Suns, sometimes $CPP names a directory.
7155 if test -n "$CPP" && test -d "$CPP"; then
7156 CPP=
7157 fi
7158 if test -z "$CPP"; then
7159 if ${ac_cv_prog_CPP+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 # Double quotes because CPP needs to be expanded
7163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7164 do
7165 ac_preproc_ok=false
7166 for ac_c_preproc_warn_flag in '' yes
7167 do
7168 # Use a header file that comes with gcc, so configuring glibc
7169 # with a fresh cross-compiler works.
7170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7171 # <limits.h> exists even on freestanding compilers.
7172 # On the NeXT, cc -E runs the code through the compiler's parser,
7173 # not just through cpp. "Syntax error" is here to catch this case.
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #ifdef __STDC__
7177 # include <limits.h>
7178 #else
7179 # include <assert.h>
7180 #endif
7181 Syntax error
7182 _ACEOF
7183 if ac_fn_c_try_cpp "$LINENO"; then :
7184
7185 else
7186 # Broken: fails on valid input.
7187 continue
7188 fi
7189 rm -f conftest.err conftest.i conftest.$ac_ext
7190
7191 # OK, works on sane cases. Now check whether nonexistent headers
7192 # can be detected and how.
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <ac_nonexistent.h>
7196 _ACEOF
7197 if ac_fn_c_try_cpp "$LINENO"; then :
7198 # Broken: success on invalid input.
7199 continue
7200 else
7201 # Passes both tests.
7202 ac_preproc_ok=:
7203 break
7204 fi
7205 rm -f conftest.err conftest.i conftest.$ac_ext
7206
7207 done
7208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7209 rm -f conftest.i conftest.err conftest.$ac_ext
7210 if $ac_preproc_ok; then :
7211 break
7212 fi
7213
7214 done
7215 ac_cv_prog_CPP=$CPP
7216
7217 fi
7218 CPP=$ac_cv_prog_CPP
7219 else
7220 ac_cv_prog_CPP=$CPP
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7223 $as_echo "$CPP" >&6; }
7224 ac_preproc_ok=false
7225 for ac_c_preproc_warn_flag in '' yes
7226 do
7227 # Use a header file that comes with gcc, so configuring glibc
7228 # with a fresh cross-compiler works.
7229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7230 # <limits.h> exists even on freestanding compilers.
7231 # On the NeXT, cc -E runs the code through the compiler's parser,
7232 # not just through cpp. "Syntax error" is here to catch this case.
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #ifdef __STDC__
7236 # include <limits.h>
7237 #else
7238 # include <assert.h>
7239 #endif
7240 Syntax error
7241 _ACEOF
7242 if ac_fn_c_try_cpp "$LINENO"; then :
7243
7244 else
7245 # Broken: fails on valid input.
7246 continue
7247 fi
7248 rm -f conftest.err conftest.i conftest.$ac_ext
7249
7250 # OK, works on sane cases. Now check whether nonexistent headers
7251 # can be detected and how.
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 #include <ac_nonexistent.h>
7255 _ACEOF
7256 if ac_fn_c_try_cpp "$LINENO"; then :
7257 # Broken: success on invalid input.
7258 continue
7259 else
7260 # Passes both tests.
7261 ac_preproc_ok=:
7262 break
7263 fi
7264 rm -f conftest.err conftest.i conftest.$ac_ext
7265
7266 done
7267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7268 rm -f conftest.i conftest.err conftest.$ac_ext
7269 if $ac_preproc_ok; then :
7270
7271 else
7272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7274 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7275 See \`config.log' for more details" "$LINENO" 5; }
7276 fi
7277
7278 ac_ext=c
7279 ac_cpp='$CPP $CPPFLAGS'
7280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283
7284
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7286 $as_echo_n "checking for ANSI C header files... " >&6; }
7287 if ${ac_cv_header_stdc+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 #include <stdlib.h>
7293 #include <stdarg.h>
7294 #include <string.h>
7295 #include <float.h>
7296
7297 int
7298 main ()
7299 {
7300
7301 ;
7302 return 0;
7303 }
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 ac_cv_header_stdc=yes
7307 else
7308 ac_cv_header_stdc=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311
7312 if test $ac_cv_header_stdc = yes; then
7313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 #include <string.h>
7317
7318 _ACEOF
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320 $EGREP "memchr" >/dev/null 2>&1; then :
7321
7322 else
7323 ac_cv_header_stdc=no
7324 fi
7325 rm -f conftest*
7326
7327 fi
7328
7329 if test $ac_cv_header_stdc = yes; then
7330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 #include <stdlib.h>
7334
7335 _ACEOF
7336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7337 $EGREP "free" >/dev/null 2>&1; then :
7338
7339 else
7340 ac_cv_header_stdc=no
7341 fi
7342 rm -f conftest*
7343
7344 fi
7345
7346 if test $ac_cv_header_stdc = yes; then
7347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7348 if test "$cross_compiling" = yes; then :
7349 :
7350 else
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353 #include <ctype.h>
7354 #include <stdlib.h>
7355 #if ((' ' & 0x0FF) == 0x020)
7356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7358 #else
7359 # define ISLOWER(c) \
7360 (('a' <= (c) && (c) <= 'i') \
7361 || ('j' <= (c) && (c) <= 'r') \
7362 || ('s' <= (c) && (c) <= 'z'))
7363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7364 #endif
7365
7366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7367 int
7368 main ()
7369 {
7370 int i;
7371 for (i = 0; i < 256; i++)
7372 if (XOR (islower (i), ISLOWER (i))
7373 || toupper (i) != TOUPPER (i))
7374 return 2;
7375 return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_c_try_run "$LINENO"; then :
7379
7380 else
7381 ac_cv_header_stdc=no
7382 fi
7383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7384 conftest.$ac_objext conftest.beam conftest.$ac_ext
7385 fi
7386
7387 fi
7388 fi
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7390 $as_echo "$ac_cv_header_stdc" >&6; }
7391 if test $ac_cv_header_stdc = yes; then
7392
7393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7394
7395 fi
7396
7397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7398 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7399 inttypes.h stdint.h unistd.h
7400 do :
7401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7403 "
7404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7405 cat >>confdefs.h <<_ACEOF
7406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407 _ACEOF
7408
7409 fi
7410
7411 done
7412
7413
7414 for ac_header in dlfcn.h
7415 do :
7416 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7417 "
7418 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7419 cat >>confdefs.h <<_ACEOF
7420 #define HAVE_DLFCN_H 1
7421 _ACEOF
7422
7423 fi
7424
7425 done
7426
7427
7428
7429
7430
7431 # Set options
7432
7433
7434
7435 enable_dlopen=no
7436
7437
7438 enable_win32_dll=no
7439
7440
7441 # Check whether --enable-shared was given.
7442 if test "${enable_shared+set}" = set; then :
7443 enableval=$enable_shared; p=${PACKAGE-default}
7444 case $enableval in
7445 yes) enable_shared=yes ;;
7446 no) enable_shared=no ;;
7447 *)
7448 enable_shared=no
7449 # Look at the argument we got. We use all the common list separators.
7450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7451 for pkg in $enableval; do
7452 IFS="$lt_save_ifs"
7453 if test "X$pkg" = "X$p"; then
7454 enable_shared=yes
7455 fi
7456 done
7457 IFS="$lt_save_ifs"
7458 ;;
7459 esac
7460 else
7461 enable_shared=yes
7462 fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472 # Check whether --enable-static was given.
7473 if test "${enable_static+set}" = set; then :
7474 enableval=$enable_static; p=${PACKAGE-default}
7475 case $enableval in
7476 yes) enable_static=yes ;;
7477 no) enable_static=no ;;
7478 *)
7479 enable_static=no
7480 # Look at the argument we got. We use all the common list separators.
7481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7482 for pkg in $enableval; do
7483 IFS="$lt_save_ifs"
7484 if test "X$pkg" = "X$p"; then
7485 enable_static=yes
7486 fi
7487 done
7488 IFS="$lt_save_ifs"
7489 ;;
7490 esac
7491 else
7492 enable_static=yes
7493 fi
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504 # Check whether --with-pic was given.
7505 if test "${with_pic+set}" = set; then :
7506 withval=$with_pic; lt_p=${PACKAGE-default}
7507 case $withval in
7508 yes|no) pic_mode=$withval ;;
7509 *)
7510 pic_mode=default
7511 # Look at the argument we got. We use all the common list separators.
7512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7513 for lt_pkg in $withval; do
7514 IFS="$lt_save_ifs"
7515 if test "X$lt_pkg" = "X$lt_p"; then
7516 pic_mode=yes
7517 fi
7518 done
7519 IFS="$lt_save_ifs"
7520 ;;
7521 esac
7522 else
7523 pic_mode=default
7524 fi
7525
7526
7527 test -z "$pic_mode" && pic_mode=default
7528
7529
7530
7531
7532
7533
7534
7535 # Check whether --enable-fast-install was given.
7536 if test "${enable_fast_install+set}" = set; then :
7537 enableval=$enable_fast_install; p=${PACKAGE-default}
7538 case $enableval in
7539 yes) enable_fast_install=yes ;;
7540 no) enable_fast_install=no ;;
7541 *)
7542 enable_fast_install=no
7543 # Look at the argument we got. We use all the common list separators.
7544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7545 for pkg in $enableval; do
7546 IFS="$lt_save_ifs"
7547 if test "X$pkg" = "X$p"; then
7548 enable_fast_install=yes
7549 fi
7550 done
7551 IFS="$lt_save_ifs"
7552 ;;
7553 esac
7554 else
7555 enable_fast_install=yes
7556 fi
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 # This can be used to rebuild libtool when needed
7569 LIBTOOL_DEPS="$ltmain"
7570
7571 # Always use our own libtool.
7572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 test -z "$LN_S" && LN_S="ln -s"
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 if test -n "${ZSH_VERSION+set}" ; then
7619 setopt NO_GLOB_SUBST
7620 fi
7621
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7623 $as_echo_n "checking for objdir... " >&6; }
7624 if ${lt_cv_objdir+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 rm -f .libs 2>/dev/null
7628 mkdir .libs 2>/dev/null
7629 if test -d .libs; then
7630 lt_cv_objdir=.libs
7631 else
7632 # MS-DOS does not allow filenames that begin with a dot.
7633 lt_cv_objdir=_libs
7634 fi
7635 rmdir .libs 2>/dev/null
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7638 $as_echo "$lt_cv_objdir" >&6; }
7639 objdir=$lt_cv_objdir
7640
7641
7642
7643
7644
7645 cat >>confdefs.h <<_ACEOF
7646 #define LT_OBJDIR "$lt_cv_objdir/"
7647 _ACEOF
7648
7649
7650
7651
7652 case $host_os in
7653 aix3*)
7654 # AIX sometimes has problems with the GCC collect2 program. For some
7655 # reason, if we set the COLLECT_NAMES environment variable, the problems
7656 # vanish in a puff of smoke.
7657 if test "X${COLLECT_NAMES+set}" != Xset; then
7658 COLLECT_NAMES=
7659 export COLLECT_NAMES
7660 fi
7661 ;;
7662 esac
7663
7664 # Global variables:
7665 ofile=libtool
7666 can_build_shared=yes
7667
7668 # All known linkers require a `.a' archive for static linking (except MSVC,
7669 # which needs '.lib').
7670 libext=a
7671
7672 with_gnu_ld="$lt_cv_prog_gnu_ld"
7673
7674 old_CC="$CC"
7675 old_CFLAGS="$CFLAGS"
7676
7677 # Set sane defaults for various variables
7678 test -z "$CC" && CC=cc
7679 test -z "$LTCC" && LTCC=$CC
7680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7681 test -z "$LD" && LD=ld
7682 test -z "$ac_objext" && ac_objext=o
7683
7684 for cc_temp in $compiler""; do
7685 case $cc_temp in
7686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7688 \-*) ;;
7689 *) break;;
7690 esac
7691 done
7692 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7693
7694
7695 # Only perform the check for file, if the check method requires it
7696 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7697 case $deplibs_check_method in
7698 file_magic*)
7699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7701 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7702 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 case $MAGIC_CMD in
7706 [\\/*] | ?:[\\/]*)
7707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7708 ;;
7709 *)
7710 lt_save_MAGIC_CMD="$MAGIC_CMD"
7711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7712 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7713 for ac_dir in $ac_dummy; do
7714 IFS="$lt_save_ifs"
7715 test -z "$ac_dir" && ac_dir=.
7716 if test -f $ac_dir/${ac_tool_prefix}file; then
7717 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7718 if test -n "$file_magic_test_file"; then
7719 case $deplibs_check_method in
7720 "file_magic "*)
7721 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7724 $EGREP "$file_magic_regex" > /dev/null; then
7725 :
7726 else
7727 cat <<_LT_EOF 1>&2
7728
7729 *** Warning: the command libtool uses to detect shared libraries,
7730 *** $file_magic_cmd, produces output that libtool cannot recognize.
7731 *** The result is that libtool may fail to recognize shared libraries
7732 *** as such. This will affect the creation of libtool libraries that
7733 *** depend on shared libraries, but programs linked with such libtool
7734 *** libraries will work regardless of this problem. Nevertheless, you
7735 *** may want to report the problem to your system manager and/or to
7736 *** bug-libtool@gnu.org
7737
7738 _LT_EOF
7739 fi ;;
7740 esac
7741 fi
7742 break
7743 fi
7744 done
7745 IFS="$lt_save_ifs"
7746 MAGIC_CMD="$lt_save_MAGIC_CMD"
7747 ;;
7748 esac
7749 fi
7750
7751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752 if test -n "$MAGIC_CMD"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7754 $as_echo "$MAGIC_CMD" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761
7762
7763
7764 if test -z "$lt_cv_path_MAGIC_CMD"; then
7765 if test -n "$ac_tool_prefix"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7767 $as_echo_n "checking for file... " >&6; }
7768 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 case $MAGIC_CMD in
7772 [\\/*] | ?:[\\/]*)
7773 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7774 ;;
7775 *)
7776 lt_save_MAGIC_CMD="$MAGIC_CMD"
7777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7778 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7779 for ac_dir in $ac_dummy; do
7780 IFS="$lt_save_ifs"
7781 test -z "$ac_dir" && ac_dir=.
7782 if test -f $ac_dir/file; then
7783 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7784 if test -n "$file_magic_test_file"; then
7785 case $deplibs_check_method in
7786 "file_magic "*)
7787 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7790 $EGREP "$file_magic_regex" > /dev/null; then
7791 :
7792 else
7793 cat <<_LT_EOF 1>&2
7794
7795 *** Warning: the command libtool uses to detect shared libraries,
7796 *** $file_magic_cmd, produces output that libtool cannot recognize.
7797 *** The result is that libtool may fail to recognize shared libraries
7798 *** as such. This will affect the creation of libtool libraries that
7799 *** depend on shared libraries, but programs linked with such libtool
7800 *** libraries will work regardless of this problem. Nevertheless, you
7801 *** may want to report the problem to your system manager and/or to
7802 *** bug-libtool@gnu.org
7803
7804 _LT_EOF
7805 fi ;;
7806 esac
7807 fi
7808 break
7809 fi
7810 done
7811 IFS="$lt_save_ifs"
7812 MAGIC_CMD="$lt_save_MAGIC_CMD"
7813 ;;
7814 esac
7815 fi
7816
7817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7818 if test -n "$MAGIC_CMD"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7820 $as_echo "$MAGIC_CMD" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826
7827 else
7828 MAGIC_CMD=:
7829 fi
7830 fi
7831
7832 fi
7833 ;;
7834 esac
7835
7836 # Use C for the default configuration in the libtool script
7837
7838 lt_save_CC="$CC"
7839 ac_ext=c
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845
7846 # Source file extension for C test sources.
7847 ac_ext=c
7848
7849 # Object file extension for compiled C test sources.
7850 objext=o
7851 objext=$objext
7852
7853 # Code to be used in simple compile tests
7854 lt_simple_compile_test_code="int some_variable = 0;"
7855
7856 # Code to be used in simple link tests
7857 lt_simple_link_test_code='int main(){return(0);}'
7858
7859
7860
7861
7862
7863
7864
7865 # If no C compiler was specified, use CC.
7866 LTCC=${LTCC-"$CC"}
7867
7868 # If no C compiler flags were specified, use CFLAGS.
7869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7870
7871 # Allow CC to be a program name with arguments.
7872 compiler=$CC
7873
7874 # Save the default compiler, since it gets overwritten when the other
7875 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7876 compiler_DEFAULT=$CC
7877
7878 # save warnings/boilerplate of simple test code
7879 ac_outfile=conftest.$ac_objext
7880 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7882 _lt_compiler_boilerplate=`cat conftest.err`
7883 $RM conftest*
7884
7885 ac_outfile=conftest.$ac_objext
7886 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7888 _lt_linker_boilerplate=`cat conftest.err`
7889 $RM -r conftest*
7890
7891
7892 if test -n "$compiler"; then
7893
7894 lt_prog_compiler_no_builtin_flag=
7895
7896 if test "$GCC" = yes; then
7897 case $cc_basename in
7898 nvcc*)
7899 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7900 *)
7901 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7902 esac
7903
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7906 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 lt_cv_prog_compiler_rtti_exceptions=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="-fno-rtti -fno-exceptions"
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7924 ac_status=$?
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_rtti_exceptions=yes
7934 fi
7935 fi
7936 $RM conftest*
7937
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7941
7942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7944 else
7945 :
7946 fi
7947
7948 fi
7949
7950
7951
7952
7953
7954
7955 lt_prog_compiler_wl=
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_static=
7958
7959
7960 if test "$GCC" = yes; then
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_static='-static'
7963
7964 case $host_os in
7965 aix*)
7966 # All AIX code is PIC.
7967 if test "$host_cpu" = ia64; then
7968 # AIX 5 now supports IA64 processor
7969 lt_prog_compiler_static='-Bstatic'
7970 fi
7971 ;;
7972
7973 amigaos*)
7974 case $host_cpu in
7975 powerpc)
7976 # see comment about AmigaOS4 .so support
7977 lt_prog_compiler_pic='-fPIC'
7978 ;;
7979 m68k)
7980 # FIXME: we need at least 68020 code to build shared libraries, but
7981 # adding the `-m68020' flag to GCC prevents building anything better,
7982 # like `-m68040'.
7983 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7984 ;;
7985 esac
7986 ;;
7987
7988 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7989 # PIC is the default for these OSes.
7990 ;;
7991
7992 mingw* | cygwin* | pw32* | os2* | cegcc*)
7993 # This hack is so that the source file can tell whether it is being
7994 # built for inclusion in a dll (and should export symbols for example).
7995 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7996 # (--disable-auto-import) libraries
7997 lt_prog_compiler_pic='-DDLL_EXPORT'
7998 ;;
7999
8000 darwin* | rhapsody*)
8001 # PIC is the default on this platform
8002 # Common symbols not allowed in MH_DYLIB files
8003 lt_prog_compiler_pic='-fno-common'
8004 ;;
8005
8006 haiku*)
8007 # PIC is the default for Haiku.
8008 # The "-static" flag exists, but is broken.
8009 lt_prog_compiler_static=
8010 ;;
8011
8012 hpux*)
8013 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8014 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8015 # sets the default TLS model and affects inlining.
8016 case $host_cpu in
8017 hppa*64*)
8018 # +Z the default
8019 ;;
8020 *)
8021 lt_prog_compiler_pic='-fPIC'
8022 ;;
8023 esac
8024 ;;
8025
8026 interix[3-9]*)
8027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8028 # Instead, we relocate shared libraries at runtime.
8029 ;;
8030
8031 msdosdjgpp*)
8032 # Just because we use GCC doesn't mean we suddenly get shared libraries
8033 # on systems that don't support them.
8034 lt_prog_compiler_can_build_shared=no
8035 enable_shared=no
8036 ;;
8037
8038 *nto* | *qnx*)
8039 # QNX uses GNU C++, but need to define -shared option too, otherwise
8040 # it will coredump.
8041 lt_prog_compiler_pic='-fPIC -shared'
8042 ;;
8043
8044 sysv4*MP*)
8045 if test -d /usr/nec; then
8046 lt_prog_compiler_pic=-Kconform_pic
8047 fi
8048 ;;
8049
8050 *)
8051 lt_prog_compiler_pic='-fPIC'
8052 ;;
8053 esac
8054
8055 case $cc_basename in
8056 nvcc*) # Cuda Compiler Driver 2.2
8057 lt_prog_compiler_wl='-Xlinker '
8058 if test -n "$lt_prog_compiler_pic"; then
8059 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8060 fi
8061 ;;
8062 esac
8063 else
8064 # PORTME Check for flag to pass linker flags through the system compiler.
8065 case $host_os in
8066 aix*)
8067 lt_prog_compiler_wl='-Wl,'
8068 if test "$host_cpu" = ia64; then
8069 # AIX 5 now supports IA64 processor
8070 lt_prog_compiler_static='-Bstatic'
8071 else
8072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8073 fi
8074 ;;
8075
8076 mingw* | cygwin* | pw32* | os2* | cegcc*)
8077 # This hack is so that the source file can tell whether it is being
8078 # built for inclusion in a dll (and should export symbols for example).
8079 lt_prog_compiler_pic='-DDLL_EXPORT'
8080 ;;
8081
8082 hpux9* | hpux10* | hpux11*)
8083 lt_prog_compiler_wl='-Wl,'
8084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8085 # not for PA HP-UX.
8086 case $host_cpu in
8087 hppa*64*|ia64*)
8088 # +Z the default
8089 ;;
8090 *)
8091 lt_prog_compiler_pic='+Z'
8092 ;;
8093 esac
8094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8095 lt_prog_compiler_static='${wl}-a ${wl}archive'
8096 ;;
8097
8098 irix5* | irix6* | nonstopux*)
8099 lt_prog_compiler_wl='-Wl,'
8100 # PIC (with -KPIC) is the default.
8101 lt_prog_compiler_static='-non_shared'
8102 ;;
8103
8104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8105 case $cc_basename in
8106 # old Intel for x86_64 which still supported -KPIC.
8107 ecc*)
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-static'
8111 ;;
8112 # icc used to be incompatible with GCC.
8113 # ICC 10 doesn't accept -KPIC any more.
8114 icc* | ifort*)
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_pic='-fPIC'
8117 lt_prog_compiler_static='-static'
8118 ;;
8119 # Lahey Fortran 8.1.
8120 lf95*)
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='--shared'
8123 lt_prog_compiler_static='--static'
8124 ;;
8125 nagfor*)
8126 # NAG Fortran compiler
8127 lt_prog_compiler_wl='-Wl,-Wl,,'
8128 lt_prog_compiler_pic='-PIC'
8129 lt_prog_compiler_static='-Bstatic'
8130 ;;
8131 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8132 # Portland Group compilers (*not* the Pentium gcc compiler,
8133 # which looks to be a dead project)
8134 lt_prog_compiler_wl='-Wl,'
8135 lt_prog_compiler_pic='-fpic'
8136 lt_prog_compiler_static='-Bstatic'
8137 ;;
8138 ccc*)
8139 lt_prog_compiler_wl='-Wl,'
8140 # All Alpha code is PIC.
8141 lt_prog_compiler_static='-non_shared'
8142 ;;
8143 xl* | bgxl* | bgf* | mpixl*)
8144 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8145 lt_prog_compiler_wl='-Wl,'
8146 lt_prog_compiler_pic='-qpic'
8147 lt_prog_compiler_static='-qstaticlink'
8148 ;;
8149 *)
8150 case `$CC -V 2>&1 | sed 5q` in
8151 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8152 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8153 lt_prog_compiler_pic='-KPIC'
8154 lt_prog_compiler_static='-Bstatic'
8155 lt_prog_compiler_wl=''
8156 ;;
8157 *Sun\ F* | *Sun*Fortran*)
8158 lt_prog_compiler_pic='-KPIC'
8159 lt_prog_compiler_static='-Bstatic'
8160 lt_prog_compiler_wl='-Qoption ld '
8161 ;;
8162 *Sun\ C*)
8163 # Sun C 5.9
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-Bstatic'
8166 lt_prog_compiler_wl='-Wl,'
8167 ;;
8168 *Intel*\ [CF]*Compiler*)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-fPIC'
8171 lt_prog_compiler_static='-static'
8172 ;;
8173 *Portland\ Group*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-fpic'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178 esac
8179 ;;
8180 esac
8181 ;;
8182
8183 newsos6)
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187
8188 *nto* | *qnx*)
8189 # QNX uses GNU C++, but need to define -shared option too, otherwise
8190 # it will coredump.
8191 lt_prog_compiler_pic='-fPIC -shared'
8192 ;;
8193
8194 osf3* | osf4* | osf5*)
8195 lt_prog_compiler_wl='-Wl,'
8196 # All OSF/1 code is PIC.
8197 lt_prog_compiler_static='-non_shared'
8198 ;;
8199
8200 rdos*)
8201 lt_prog_compiler_static='-non_shared'
8202 ;;
8203
8204 solaris*)
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8207 case $cc_basename in
8208 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8209 lt_prog_compiler_wl='-Qoption ld ';;
8210 *)
8211 lt_prog_compiler_wl='-Wl,';;
8212 esac
8213 ;;
8214
8215 sunos4*)
8216 lt_prog_compiler_wl='-Qoption ld '
8217 lt_prog_compiler_pic='-PIC'
8218 lt_prog_compiler_static='-Bstatic'
8219 ;;
8220
8221 sysv4 | sysv4.2uw2* | sysv4.3*)
8222 lt_prog_compiler_wl='-Wl,'
8223 lt_prog_compiler_pic='-KPIC'
8224 lt_prog_compiler_static='-Bstatic'
8225 ;;
8226
8227 sysv4*MP*)
8228 if test -d /usr/nec ;then
8229 lt_prog_compiler_pic='-Kconform_pic'
8230 lt_prog_compiler_static='-Bstatic'
8231 fi
8232 ;;
8233
8234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8235 lt_prog_compiler_wl='-Wl,'
8236 lt_prog_compiler_pic='-KPIC'
8237 lt_prog_compiler_static='-Bstatic'
8238 ;;
8239
8240 unicos*)
8241 lt_prog_compiler_wl='-Wl,'
8242 lt_prog_compiler_can_build_shared=no
8243 ;;
8244
8245 uts4*)
8246 lt_prog_compiler_pic='-pic'
8247 lt_prog_compiler_static='-Bstatic'
8248 ;;
8249
8250 *)
8251 lt_prog_compiler_can_build_shared=no
8252 ;;
8253 esac
8254 fi
8255
8256 case $host_os in
8257 # For platforms which do not support PIC, -DPIC is meaningless:
8258 *djgpp*)
8259 lt_prog_compiler_pic=
8260 ;;
8261 *)
8262 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8263 ;;
8264 esac
8265
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8268 if ${lt_cv_prog_compiler_pic+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8274 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8275 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8276
8277 #
8278 # Check to make sure the PIC flag actually works.
8279 #
8280 if test -n "$lt_prog_compiler_pic"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8283 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 lt_cv_prog_compiler_pic_works=no
8287 ac_outfile=conftest.$ac_objext
8288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8289 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8290 # Insert the option either (1) after the last *FLAGS variable, or
8291 # (2) before a word containing "conftest.", or (3) at the end.
8292 # Note that $ac_compile itself does not contain backslashes and begins
8293 # with a dollar sign (not a hyphen), so the echo should work correctly.
8294 # The option is referenced via a variable to avoid confusing sed.
8295 lt_compile=`echo "$ac_compile" | $SED \
8296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8298 -e 's:$: $lt_compiler_flag:'`
8299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8300 (eval "$lt_compile" 2>conftest.err)
8301 ac_status=$?
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 if (exit $ac_status) && test -s "$ac_outfile"; then
8305 # The compiler can only warn and ignore the option if not recognized
8306 # So say no if there are warnings other than the usual output.
8307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8310 lt_cv_prog_compiler_pic_works=yes
8311 fi
8312 fi
8313 $RM conftest*
8314
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8317 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8318
8319 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8320 case $lt_prog_compiler_pic in
8321 "" | " "*) ;;
8322 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8323 esac
8324 else
8325 lt_prog_compiler_pic=
8326 lt_prog_compiler_can_build_shared=no
8327 fi
8328
8329 fi
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 #
8342 # Check to make sure the static flag actually works.
8343 #
8344 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8346 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8347 if ${lt_cv_prog_compiler_static_works+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 lt_cv_prog_compiler_static_works=no
8351 save_LDFLAGS="$LDFLAGS"
8352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8355 # The linker can only warn and ignore the option if not recognized
8356 # So say no if there are warnings
8357 if test -s conftest.err; then
8358 # Append any errors to the config.log.
8359 cat conftest.err 1>&5
8360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8362 if diff conftest.exp conftest.er2 >/dev/null; then
8363 lt_cv_prog_compiler_static_works=yes
8364 fi
8365 else
8366 lt_cv_prog_compiler_static_works=yes
8367 fi
8368 fi
8369 $RM -r conftest*
8370 LDFLAGS="$save_LDFLAGS"
8371
8372 fi
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8374 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8375
8376 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8377 :
8378 else
8379 lt_prog_compiler_static=
8380 fi
8381
8382
8383
8384
8385
8386
8387
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8390 if ${lt_cv_prog_compiler_c_o+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 lt_cv_prog_compiler_c_o=no
8394 $RM -r conftest 2>/dev/null
8395 mkdir conftest
8396 cd conftest
8397 mkdir out
8398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8399
8400 lt_compiler_flag="-o out/conftest2.$ac_objext"
8401 # Insert the option either (1) after the last *FLAGS variable, or
8402 # (2) before a word containing "conftest.", or (3) at the end.
8403 # Note that $ac_compile itself does not contain backslashes and begins
8404 # with a dollar sign (not a hyphen), so the echo should work correctly.
8405 lt_compile=`echo "$ac_compile" | $SED \
8406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408 -e 's:$: $lt_compiler_flag:'`
8409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8410 (eval "$lt_compile" 2>out/conftest.err)
8411 ac_status=$?
8412 cat out/conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8415 then
8416 # The compiler can only warn and ignore the option if not recognized
8417 # So say no if there are warnings
8418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8421 lt_cv_prog_compiler_c_o=yes
8422 fi
8423 fi
8424 chmod u+w . 2>&5
8425 $RM conftest*
8426 # SGI C++ compiler will create directory out/ii_files/ for
8427 # template instantiation
8428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8429 $RM out/* && rmdir out
8430 cd ..
8431 $RM -r conftest
8432 $RM conftest*
8433
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8436 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8437
8438
8439
8440
8441
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8444 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8445 if ${lt_cv_prog_compiler_c_o+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 lt_cv_prog_compiler_c_o=no
8449 $RM -r conftest 2>/dev/null
8450 mkdir conftest
8451 cd conftest
8452 mkdir out
8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8454
8455 lt_compiler_flag="-o out/conftest2.$ac_objext"
8456 # Insert the option either (1) after the last *FLAGS variable, or
8457 # (2) before a word containing "conftest.", or (3) at the end.
8458 # Note that $ac_compile itself does not contain backslashes and begins
8459 # with a dollar sign (not a hyphen), so the echo should work correctly.
8460 lt_compile=`echo "$ac_compile" | $SED \
8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8463 -e 's:$: $lt_compiler_flag:'`
8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8465 (eval "$lt_compile" 2>out/conftest.err)
8466 ac_status=$?
8467 cat out/conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8470 then
8471 # The compiler can only warn and ignore the option if not recognized
8472 # So say no if there are warnings
8473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8476 lt_cv_prog_compiler_c_o=yes
8477 fi
8478 fi
8479 chmod u+w . 2>&5
8480 $RM conftest*
8481 # SGI C++ compiler will create directory out/ii_files/ for
8482 # template instantiation
8483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8484 $RM out/* && rmdir out
8485 cd ..
8486 $RM -r conftest
8487 $RM conftest*
8488
8489 fi
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8491 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8492
8493
8494
8495
8496 hard_links="nottested"
8497 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8498 # do not overwrite the value of need_locks provided by the user
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8500 $as_echo_n "checking if we can lock with hard links... " >&6; }
8501 hard_links=yes
8502 $RM conftest*
8503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8504 touch conftest.a
8505 ln conftest.a conftest.b 2>&5 || hard_links=no
8506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8508 $as_echo "$hard_links" >&6; }
8509 if test "$hard_links" = no; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8511 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8512 need_locks=warn
8513 fi
8514 else
8515 need_locks=no
8516 fi
8517
8518
8519
8520
8521
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8524 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8525
8526 runpath_var=
8527 allow_undefined_flag=
8528 always_export_symbols=no
8529 archive_cmds=
8530 archive_expsym_cmds=
8531 compiler_needs_object=no
8532 enable_shared_with_static_runtimes=no
8533 export_dynamic_flag_spec=
8534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8535 hardcode_automatic=no
8536 hardcode_direct=no
8537 hardcode_direct_absolute=no
8538 hardcode_libdir_flag_spec=
8539 hardcode_libdir_separator=
8540 hardcode_minus_L=no
8541 hardcode_shlibpath_var=unsupported
8542 inherit_rpath=no
8543 link_all_deplibs=unknown
8544 module_cmds=
8545 module_expsym_cmds=
8546 old_archive_from_new_cmds=
8547 old_archive_from_expsyms_cmds=
8548 thread_safe_flag_spec=
8549 whole_archive_flag_spec=
8550 # include_expsyms should be a list of space-separated symbols to be *always*
8551 # included in the symbol list
8552 include_expsyms=
8553 # exclude_expsyms can be an extended regexp of symbols to exclude
8554 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8556 # as well as any symbol that contains `d'.
8557 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8559 # platforms (ab)use it in PIC code, but their linkers get confused if
8560 # the symbol is explicitly referenced. Since portable code cannot
8561 # rely on this symbol name, it's probably fine to never include it in
8562 # preloaded symbol tables.
8563 # Exclude shared library initialization/finalization symbols.
8564 extract_expsyms_cmds=
8565
8566 case $host_os in
8567 cygwin* | mingw* | pw32* | cegcc*)
8568 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8569 # When not using gcc, we currently assume that we are using
8570 # Microsoft Visual C++.
8571 if test "$GCC" != yes; then
8572 with_gnu_ld=no
8573 fi
8574 ;;
8575 interix*)
8576 # we just hope/assume this is gcc and not c89 (= MSVC++)
8577 with_gnu_ld=yes
8578 ;;
8579 openbsd*)
8580 with_gnu_ld=no
8581 ;;
8582 esac
8583
8584 ld_shlibs=yes
8585
8586 # On some targets, GNU ld is compatible enough with the native linker
8587 # that we're better off using the native interface for both.
8588 lt_use_gnu_ld_interface=no
8589 if test "$with_gnu_ld" = yes; then
8590 case $host_os in
8591 aix*)
8592 # The AIX port of GNU ld has always aspired to compatibility
8593 # with the native linker. However, as the warning in the GNU ld
8594 # block says, versions before 2.19.5* couldn't really create working
8595 # shared libraries, regardless of the interface used.
8596 case `$LD -v 2>&1` in
8597 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8598 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8599 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8600 *)
8601 lt_use_gnu_ld_interface=yes
8602 ;;
8603 esac
8604 ;;
8605 *)
8606 lt_use_gnu_ld_interface=yes
8607 ;;
8608 esac
8609 fi
8610
8611 if test "$lt_use_gnu_ld_interface" = yes; then
8612 # If archive_cmds runs LD, not CC, wlarc should be empty
8613 wlarc='${wl}'
8614
8615 # Set some defaults for GNU ld with shared library support. These
8616 # are reset later if shared libraries are not supported. Putting them
8617 # here allows them to be overridden if necessary.
8618 runpath_var=LD_RUN_PATH
8619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620 export_dynamic_flag_spec='${wl}--export-dynamic'
8621 # ancient GNU ld didn't support --whole-archive et. al.
8622 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8623 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8624 else
8625 whole_archive_flag_spec=
8626 fi
8627 supports_anon_versioning=no
8628 case `$LD -v 2>&1` in
8629 *GNU\ gold*) supports_anon_versioning=yes ;;
8630 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8631 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8632 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8633 *\ 2.11.*) ;; # other 2.11 versions
8634 *) supports_anon_versioning=yes ;;
8635 esac
8636
8637 # See if GNU ld supports shared libraries.
8638 case $host_os in
8639 aix[3-9]*)
8640 # On AIX/PPC, the GNU linker is very broken
8641 if test "$host_cpu" != ia64; then
8642 ld_shlibs=no
8643 cat <<_LT_EOF 1>&2
8644
8645 *** Warning: the GNU linker, at least up to release 2.19, is reported
8646 *** to be unable to reliably create shared libraries on AIX.
8647 *** Therefore, libtool is disabling shared libraries support. If you
8648 *** really care for shared libraries, you may want to install binutils
8649 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8650 *** You will then need to restart the configuration process.
8651
8652 _LT_EOF
8653 fi
8654 ;;
8655
8656 amigaos*)
8657 case $host_cpu in
8658 powerpc)
8659 # see comment about AmigaOS4 .so support
8660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 archive_expsym_cmds=''
8662 ;;
8663 m68k)
8664 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)'
8665 hardcode_libdir_flag_spec='-L$libdir'
8666 hardcode_minus_L=yes
8667 ;;
8668 esac
8669 ;;
8670
8671 beos*)
8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8673 allow_undefined_flag=unsupported
8674 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8675 # support --undefined. This deserves some investigation. FIXME
8676 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677 else
8678 ld_shlibs=no
8679 fi
8680 ;;
8681
8682 cygwin* | mingw* | pw32* | cegcc*)
8683 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8684 # as there is no search path for DLLs.
8685 hardcode_libdir_flag_spec='-L$libdir'
8686 export_dynamic_flag_spec='${wl}--export-all-symbols'
8687 allow_undefined_flag=unsupported
8688 always_export_symbols=no
8689 enable_shared_with_static_runtimes=yes
8690 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'
8691 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8692
8693 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8695 # If the export-symbols file already is a .def file (1st line
8696 # is EXPORTS), use it as is; otherwise, prepend...
8697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8698 cp $export_symbols $output_objdir/$soname.def;
8699 else
8700 echo EXPORTS > $output_objdir/$soname.def;
8701 cat $export_symbols >> $output_objdir/$soname.def;
8702 fi~
8703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8704 else
8705 ld_shlibs=no
8706 fi
8707 ;;
8708
8709 haiku*)
8710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711 link_all_deplibs=yes
8712 ;;
8713
8714 interix[3-9]*)
8715 hardcode_direct=no
8716 hardcode_shlibpath_var=no
8717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8718 export_dynamic_flag_spec='${wl}-E'
8719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8720 # Instead, shared libraries are loaded at an image base (0x10000000 by
8721 # default) and relocated if they conflict, which is a slow very memory
8722 # consuming and fragmenting process. To avoid this, we pick a random,
8723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8726 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'
8727 ;;
8728
8729 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8730 tmp_diet=no
8731 if test "$host_os" = linux-dietlibc; then
8732 case $cc_basename in
8733 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8734 esac
8735 fi
8736 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8737 && test "$tmp_diet" = no
8738 then
8739 tmp_addflag=' $pic_flag'
8740 tmp_sharedflag='-shared'
8741 case $cc_basename,$host_cpu in
8742 pgcc*) # Portland Group C compiler
8743 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'
8744 tmp_addflag=' $pic_flag'
8745 ;;
8746 pgf77* | pgf90* | pgf95* | pgfortran*)
8747 # Portland Group f77 and f90 compilers
8748 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'
8749 tmp_addflag=' $pic_flag -Mnomain' ;;
8750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8751 tmp_addflag=' -i_dynamic' ;;
8752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8753 tmp_addflag=' -i_dynamic -nofor_main' ;;
8754 ifc* | ifort*) # Intel Fortran compiler
8755 tmp_addflag=' -nofor_main' ;;
8756 lf95*) # Lahey Fortran 8.1
8757 whole_archive_flag_spec=
8758 tmp_sharedflag='--shared' ;;
8759 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8760 tmp_sharedflag='-qmkshrobj'
8761 tmp_addflag= ;;
8762 nvcc*) # Cuda Compiler Driver 2.2
8763 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'
8764 compiler_needs_object=yes
8765 ;;
8766 esac
8767 case `$CC -V 2>&1 | sed 5q` in
8768 *Sun\ C*) # Sun C 5.9
8769 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'
8770 compiler_needs_object=yes
8771 tmp_sharedflag='-G' ;;
8772 *Sun\ F*) # Sun Fortran 8.3
8773 tmp_sharedflag='-G' ;;
8774 esac
8775 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776
8777 if test "x$supports_anon_versioning" = xyes; then
8778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8780 echo "local: *; };" >> $output_objdir/$libname.ver~
8781 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8782 fi
8783
8784 case $cc_basename in
8785 xlf* | bgf* | bgxlf* | mpixlf*)
8786 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8787 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8790 if test "x$supports_anon_versioning" = xyes; then
8791 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8793 echo "local: *; };" >> $output_objdir/$libname.ver~
8794 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8795 fi
8796 ;;
8797 esac
8798 else
8799 ld_shlibs=no
8800 fi
8801 ;;
8802
8803 netbsd*)
8804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8805 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8806 wlarc=
8807 else
8808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810 fi
8811 ;;
8812
8813 solaris*)
8814 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8815 ld_shlibs=no
8816 cat <<_LT_EOF 1>&2
8817
8818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8819 *** create shared libraries on Solaris systems. Therefore, libtool
8820 *** is disabling shared libraries support. We urge you to upgrade GNU
8821 *** binutils to release 2.9.1 or newer. Another option is to modify
8822 *** your PATH or compiler configuration so that the native linker is
8823 *** used, and then restart.
8824
8825 _LT_EOF
8826 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8829 else
8830 ld_shlibs=no
8831 fi
8832 ;;
8833
8834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8835 case `$LD -v 2>&1` in
8836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8837 ld_shlibs=no
8838 cat <<_LT_EOF 1>&2
8839
8840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8841 *** reliably create shared libraries on SCO systems. Therefore, libtool
8842 *** is disabling shared libraries support. We urge you to upgrade GNU
8843 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8844 *** your PATH or compiler configuration so that the native linker is
8845 *** used, and then restart.
8846
8847 _LT_EOF
8848 ;;
8849 *)
8850 # For security reasons, it is highly recommended that you always
8851 # use absolute paths for naming shared libraries, and exclude the
8852 # DT_RUNPATH tag from executables and libraries. But doing so
8853 # requires that you compile everything twice, which is a pain.
8854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8858 else
8859 ld_shlibs=no
8860 fi
8861 ;;
8862 esac
8863 ;;
8864
8865 sunos4*)
8866 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8867 wlarc=
8868 hardcode_direct=yes
8869 hardcode_shlibpath_var=no
8870 ;;
8871
8872 *)
8873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8876 else
8877 ld_shlibs=no
8878 fi
8879 ;;
8880 esac
8881
8882 if test "$ld_shlibs" = no; then
8883 runpath_var=
8884 hardcode_libdir_flag_spec=
8885 export_dynamic_flag_spec=
8886 whole_archive_flag_spec=
8887 fi
8888 else
8889 # PORTME fill in a description of your system's linker (not GNU ld)
8890 case $host_os in
8891 aix3*)
8892 allow_undefined_flag=unsupported
8893 always_export_symbols=yes
8894 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'
8895 # Note: this linker hardcodes the directories in LIBPATH if there
8896 # are no directories specified by -L.
8897 hardcode_minus_L=yes
8898 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8899 # Neither direct hardcoding nor static linking is supported with a
8900 # broken collect2.
8901 hardcode_direct=unsupported
8902 fi
8903 ;;
8904
8905 aix[4-9]*)
8906 if test "$host_cpu" = ia64; then
8907 # On IA64, the linker does run time linking by default, so we don't
8908 # have to do anything special.
8909 aix_use_runtimelinking=no
8910 exp_sym_flag='-Bexport'
8911 no_entry_flag=""
8912 else
8913 # If we're using GNU nm, then we don't want the "-C" option.
8914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8915 # Also, AIX nm treats weak defined symbols like other global
8916 # defined symbols, whereas GNU nm marks them as "W".
8917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8918 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'
8919 else
8920 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'
8921 fi
8922 aix_use_runtimelinking=no
8923
8924 # Test if we are trying to use run time linking or normal
8925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8926 # need to do runtime linking.
8927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8928 for ld_flag in $LDFLAGS; do
8929 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8930 aix_use_runtimelinking=yes
8931 break
8932 fi
8933 done
8934 ;;
8935 esac
8936
8937 exp_sym_flag='-bexport'
8938 no_entry_flag='-bnoentry'
8939 fi
8940
8941 # When large executables or shared objects are built, AIX ld can
8942 # have problems creating the table of contents. If linking a library
8943 # or program results in "error TOC overflow" add -mminimal-toc to
8944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8946
8947 archive_cmds=''
8948 hardcode_direct=yes
8949 hardcode_direct_absolute=yes
8950 hardcode_libdir_separator=':'
8951 link_all_deplibs=yes
8952 file_list_spec='${wl}-f,'
8953
8954 if test "$GCC" = yes; then
8955 case $host_os in aix4.[012]|aix4.[012].*)
8956 # We only want to do this on AIX 4.2 and lower, the check
8957 # below for broken collect2 doesn't work under 4.3+
8958 collect2name=`${CC} -print-prog-name=collect2`
8959 if test -f "$collect2name" &&
8960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8961 then
8962 # We have reworked collect2
8963 :
8964 else
8965 # We have old collect2
8966 hardcode_direct=unsupported
8967 # It fails to find uninstalled libraries when the uninstalled
8968 # path is not listed in the libpath. Setting hardcode_minus_L
8969 # to unsupported forces relinking
8970 hardcode_minus_L=yes
8971 hardcode_libdir_flag_spec='-L$libdir'
8972 hardcode_libdir_separator=
8973 fi
8974 ;;
8975 esac
8976 shared_flag='-shared'
8977 if test "$aix_use_runtimelinking" = yes; then
8978 shared_flag="$shared_flag "'${wl}-G'
8979 fi
8980 else
8981 # not using gcc
8982 if test "$host_cpu" = ia64; then
8983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8984 # chokes on -Wl,-G. The following line is correct:
8985 shared_flag='-G'
8986 else
8987 if test "$aix_use_runtimelinking" = yes; then
8988 shared_flag='${wl}-G'
8989 else
8990 shared_flag='${wl}-bM:SRE'
8991 fi
8992 fi
8993 fi
8994
8995 export_dynamic_flag_spec='${wl}-bexpall'
8996 # It seems that -bexpall does not export symbols beginning with
8997 # underscore (_), so it is better to generate a list of symbols to export.
8998 always_export_symbols=yes
8999 if test "$aix_use_runtimelinking" = yes; then
9000 # Warning - without using the other runtime loading flags (-brtl),
9001 # -berok will link without error, but may produce a broken library.
9002 allow_undefined_flag='-berok'
9003 # Determine the default libpath from the value encoded in an
9004 # empty executable.
9005 if test "${lt_cv_aix_libpath+set}" = set; then
9006 aix_libpath=$lt_cv_aix_libpath
9007 else
9008 if ${lt_cv_aix_libpath_+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013
9014 int
9015 main ()
9016 {
9017
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_link "$LINENO"; then :
9023
9024 lt_aix_libpath_sed='
9025 /Import File Strings/,/^$/ {
9026 /^0/ {
9027 s/^0 *\([^ ]*\) *$/\1/
9028 p
9029 }
9030 }'
9031 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9032 # Check for a 64-bit object if we didn't find anything.
9033 if test -z "$lt_cv_aix_libpath_"; then
9034 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9035 fi
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9039 if test -z "$lt_cv_aix_libpath_"; then
9040 lt_cv_aix_libpath_="/usr/lib:/lib"
9041 fi
9042
9043 fi
9044
9045 aix_libpath=$lt_cv_aix_libpath_
9046 fi
9047
9048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9049 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"
9050 else
9051 if test "$host_cpu" = ia64; then
9052 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9053 allow_undefined_flag="-z nodefs"
9054 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"
9055 else
9056 # Determine the default libpath from the value encoded in an
9057 # empty executable.
9058 if test "${lt_cv_aix_libpath+set}" = set; then
9059 aix_libpath=$lt_cv_aix_libpath
9060 else
9061 if ${lt_cv_aix_libpath_+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066
9067 int
9068 main ()
9069 {
9070
9071 ;
9072 return 0;
9073 }
9074 _ACEOF
9075 if ac_fn_c_try_link "$LINENO"; then :
9076
9077 lt_aix_libpath_sed='
9078 /Import File Strings/,/^$/ {
9079 /^0/ {
9080 s/^0 *\([^ ]*\) *$/\1/
9081 p
9082 }
9083 }'
9084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9085 # Check for a 64-bit object if we didn't find anything.
9086 if test -z "$lt_cv_aix_libpath_"; then
9087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9088 fi
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext \
9091 conftest$ac_exeext conftest.$ac_ext
9092 if test -z "$lt_cv_aix_libpath_"; then
9093 lt_cv_aix_libpath_="/usr/lib:/lib"
9094 fi
9095
9096 fi
9097
9098 aix_libpath=$lt_cv_aix_libpath_
9099 fi
9100
9101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9102 # Warning - without using the other run time loading flags,
9103 # -berok will link without error, but may produce a broken library.
9104 no_undefined_flag=' ${wl}-bernotok'
9105 allow_undefined_flag=' ${wl}-berok'
9106 if test "$with_gnu_ld" = yes; then
9107 # We only use this code for GNU lds that support --whole-archive.
9108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9109 else
9110 # Exported symbols can be pulled into shared objects from archives
9111 whole_archive_flag_spec='$convenience'
9112 fi
9113 archive_cmds_need_lc=yes
9114 # This is similar to how AIX traditionally builds its shared libraries.
9115 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'
9116 fi
9117 fi
9118 ;;
9119
9120 amigaos*)
9121 case $host_cpu in
9122 powerpc)
9123 # see comment about AmigaOS4 .so support
9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 archive_expsym_cmds=''
9126 ;;
9127 m68k)
9128 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)'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_minus_L=yes
9131 ;;
9132 esac
9133 ;;
9134
9135 bsdi[45]*)
9136 export_dynamic_flag_spec=-rdynamic
9137 ;;
9138
9139 cygwin* | mingw* | pw32* | cegcc*)
9140 # When not using gcc, we currently assume that we are using
9141 # Microsoft Visual C++.
9142 # hardcode_libdir_flag_spec is actually meaningless, as there is
9143 # no search path for DLLs.
9144 case $cc_basename in
9145 cl*)
9146 # Native MSVC
9147 hardcode_libdir_flag_spec=' '
9148 allow_undefined_flag=unsupported
9149 always_export_symbols=yes
9150 file_list_spec='@'
9151 # Tell ltmain to make .lib files, not .a files.
9152 libext=lib
9153 # Tell ltmain to make .dll files, not .so files.
9154 shrext_cmds=".dll"
9155 # FIXME: Setting linknames here is a bad hack.
9156 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9158 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9159 else
9160 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9161 fi~
9162 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9163 linknames='
9164 # The linker will not automatically build a static lib if we build a DLL.
9165 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9166 enable_shared_with_static_runtimes=yes
9167 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9169 # Don't use ranlib
9170 old_postinstall_cmds='chmod 644 $oldlib'
9171 postlink_cmds='lt_outputfile="@OUTPUT@"~
9172 lt_tool_outputfile="@TOOL_OUTPUT@"~
9173 case $lt_outputfile in
9174 *.exe|*.EXE) ;;
9175 *)
9176 lt_outputfile="$lt_outputfile.exe"
9177 lt_tool_outputfile="$lt_tool_outputfile.exe"
9178 ;;
9179 esac~
9180 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9181 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9182 $RM "$lt_outputfile.manifest";
9183 fi'
9184 ;;
9185 *)
9186 # Assume MSVC wrapper
9187 hardcode_libdir_flag_spec=' '
9188 allow_undefined_flag=unsupported
9189 # Tell ltmain to make .lib files, not .a files.
9190 libext=lib
9191 # Tell ltmain to make .dll files, not .so files.
9192 shrext_cmds=".dll"
9193 # FIXME: Setting linknames here is a bad hack.
9194 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9195 # The linker will automatically build a .lib file if we build a DLL.
9196 old_archive_from_new_cmds='true'
9197 # FIXME: Should let the user specify the lib program.
9198 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9199 enable_shared_with_static_runtimes=yes
9200 ;;
9201 esac
9202 ;;
9203
9204 darwin* | rhapsody*)
9205
9206
9207 archive_cmds_need_lc=no
9208 hardcode_direct=no
9209 hardcode_automatic=yes
9210 hardcode_shlibpath_var=unsupported
9211 if test "$lt_cv_ld_force_load" = "yes"; then
9212 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\"`'
9213
9214 else
9215 whole_archive_flag_spec=''
9216 fi
9217 link_all_deplibs=yes
9218 allow_undefined_flag="$_lt_dar_allow_undefined"
9219 case $cc_basename in
9220 ifort*) _lt_dar_can_shared=yes ;;
9221 *) _lt_dar_can_shared=$GCC ;;
9222 esac
9223 if test "$_lt_dar_can_shared" = "yes"; then
9224 output_verbose_link_cmd=func_echo_all
9225 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9226 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9227 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}"
9228 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}"
9229
9230 else
9231 ld_shlibs=no
9232 fi
9233
9234 ;;
9235
9236 dgux*)
9237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 hardcode_shlibpath_var=no
9240 ;;
9241
9242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9243 # support. Future versions do this automatically, but an explicit c++rt0.o
9244 # does not break anything, and helps significantly (at the cost of a little
9245 # extra space).
9246 freebsd2.2*)
9247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9248 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_direct=yes
9250 hardcode_shlibpath_var=no
9251 ;;
9252
9253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9254 freebsd2.*)
9255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9256 hardcode_direct=yes
9257 hardcode_minus_L=yes
9258 hardcode_shlibpath_var=no
9259 ;;
9260
9261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9262 freebsd* | dragonfly*)
9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264 hardcode_libdir_flag_spec='-R$libdir'
9265 hardcode_direct=yes
9266 hardcode_shlibpath_var=no
9267 ;;
9268
9269 hpux9*)
9270 if test "$GCC" = yes; then
9271 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'
9272 else
9273 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'
9274 fi
9275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9276 hardcode_libdir_separator=:
9277 hardcode_direct=yes
9278
9279 # hardcode_minus_L: Not really in the search PATH,
9280 # but as the default location of the library.
9281 hardcode_minus_L=yes
9282 export_dynamic_flag_spec='${wl}-E'
9283 ;;
9284
9285 hpux10*)
9286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9287 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9288 else
9289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9290 fi
9291 if test "$with_gnu_ld" = no; then
9292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 hardcode_direct=yes
9295 hardcode_direct_absolute=yes
9296 export_dynamic_flag_spec='${wl}-E'
9297 # hardcode_minus_L: Not really in the search PATH,
9298 # but as the default location of the library.
9299 hardcode_minus_L=yes
9300 fi
9301 ;;
9302
9303 hpux11*)
9304 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9305 case $host_cpu in
9306 hppa*64*)
9307 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9308 ;;
9309 ia64*)
9310 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9311 ;;
9312 *)
9313 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9314 ;;
9315 esac
9316 else
9317 case $host_cpu in
9318 hppa*64*)
9319 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320 ;;
9321 ia64*)
9322 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9323 ;;
9324 *)
9325
9326 # Older versions of the 11.00 compiler do not understand -b yet
9327 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9329 $as_echo_n "checking if $CC understands -b... " >&6; }
9330 if ${lt_cv_prog_compiler__b+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 lt_cv_prog_compiler__b=no
9334 save_LDFLAGS="$LDFLAGS"
9335 LDFLAGS="$LDFLAGS -b"
9336 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9338 # The linker can only warn and ignore the option if not recognized
9339 # So say no if there are warnings
9340 if test -s conftest.err; then
9341 # Append any errors to the config.log.
9342 cat conftest.err 1>&5
9343 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9345 if diff conftest.exp conftest.er2 >/dev/null; then
9346 lt_cv_prog_compiler__b=yes
9347 fi
9348 else
9349 lt_cv_prog_compiler__b=yes
9350 fi
9351 fi
9352 $RM -r conftest*
9353 LDFLAGS="$save_LDFLAGS"
9354
9355 fi
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9357 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9358
9359 if test x"$lt_cv_prog_compiler__b" = xyes; then
9360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9361 else
9362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9363 fi
9364
9365 ;;
9366 esac
9367 fi
9368 if test "$with_gnu_ld" = no; then
9369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370 hardcode_libdir_separator=:
9371
9372 case $host_cpu in
9373 hppa*64*|ia64*)
9374 hardcode_direct=no
9375 hardcode_shlibpath_var=no
9376 ;;
9377 *)
9378 hardcode_direct=yes
9379 hardcode_direct_absolute=yes
9380 export_dynamic_flag_spec='${wl}-E'
9381
9382 # hardcode_minus_L: Not really in the search PATH,
9383 # but as the default location of the library.
9384 hardcode_minus_L=yes
9385 ;;
9386 esac
9387 fi
9388 ;;
9389
9390 irix5* | irix6* | nonstopux*)
9391 if test "$GCC" = yes; then
9392 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'
9393 # Try to use the -exported_symbol ld option, if it does not
9394 # work, assume that -exports_file does not work either and
9395 # implicitly export all symbols.
9396 # This should be the same for all languages, so no per-tag cache variable.
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9398 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9399 if ${lt_cv_irix_exported_symbol+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 save_LDFLAGS="$LDFLAGS"
9403 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 int foo (void) { return 0; }
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"; then :
9409 lt_cv_irix_exported_symbol=yes
9410 else
9411 lt_cv_irix_exported_symbol=no
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 LDFLAGS="$save_LDFLAGS"
9416 fi
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9418 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9419 if test "$lt_cv_irix_exported_symbol" = yes; then
9420 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'
9421 fi
9422 else
9423 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'
9424 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'
9425 fi
9426 archive_cmds_need_lc='no'
9427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9428 hardcode_libdir_separator=:
9429 inherit_rpath=yes
9430 link_all_deplibs=yes
9431 ;;
9432
9433 netbsd*)
9434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9436 else
9437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9438 fi
9439 hardcode_libdir_flag_spec='-R$libdir'
9440 hardcode_direct=yes
9441 hardcode_shlibpath_var=no
9442 ;;
9443
9444 newsos6)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_direct=yes
9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448 hardcode_libdir_separator=:
9449 hardcode_shlibpath_var=no
9450 ;;
9451
9452 *nto* | *qnx*)
9453 ;;
9454
9455 openbsd*)
9456 if test -f /usr/libexec/ld.so; then
9457 hardcode_direct=yes
9458 hardcode_shlibpath_var=no
9459 hardcode_direct_absolute=yes
9460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9464 export_dynamic_flag_spec='${wl}-E'
9465 else
9466 case $host_os in
9467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_libdir_flag_spec='-R$libdir'
9470 ;;
9471 *)
9472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9473 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9474 ;;
9475 esac
9476 fi
9477 else
9478 ld_shlibs=no
9479 fi
9480 ;;
9481
9482 os2*)
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_minus_L=yes
9485 allow_undefined_flag=unsupported
9486 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'
9487 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9488 ;;
9489
9490 osf3*)
9491 if test "$GCC" = yes; then
9492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9493 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'
9494 else
9495 allow_undefined_flag=' -expect_unresolved \*'
9496 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'
9497 fi
9498 archive_cmds_need_lc='no'
9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500 hardcode_libdir_separator=:
9501 ;;
9502
9503 osf4* | osf5*) # as osf3* with the addition of -msym flag
9504 if test "$GCC" = yes; then
9505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9506 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'
9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 else
9509 allow_undefined_flag=' -expect_unresolved \*'
9510 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'
9511 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~
9512 $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'
9513
9514 # Both c and cxx compiler support -rpath directly
9515 hardcode_libdir_flag_spec='-rpath $libdir'
9516 fi
9517 archive_cmds_need_lc='no'
9518 hardcode_libdir_separator=:
9519 ;;
9520
9521 solaris*)
9522 no_undefined_flag=' -z defs'
9523 if test "$GCC" = yes; then
9524 wlarc='${wl}'
9525 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9527 $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'
9528 else
9529 case `$CC -V 2>&1` in
9530 *"Compilers 5.0"*)
9531 wlarc=''
9532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9535 ;;
9536 *)
9537 wlarc='${wl}'
9538 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9540 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9541 ;;
9542 esac
9543 fi
9544 hardcode_libdir_flag_spec='-R$libdir'
9545 hardcode_shlibpath_var=no
9546 case $host_os in
9547 solaris2.[0-5] | solaris2.[0-5].*) ;;
9548 *)
9549 # The compiler driver will combine and reorder linker options,
9550 # but understands `-z linker_flag'. GCC discards it without `$wl',
9551 # but is careful enough not to reorder.
9552 # Supported since Solaris 2.6 (maybe 2.5.1?)
9553 if test "$GCC" = yes; then
9554 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9555 else
9556 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9557 fi
9558 ;;
9559 esac
9560 link_all_deplibs=yes
9561 ;;
9562
9563 sunos4*)
9564 if test "x$host_vendor" = xsequent; then
9565 # Use $CC to link under sequent, because it throws in some extra .o
9566 # files that make .init and .fini sections work.
9567 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9568 else
9569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9570 fi
9571 hardcode_libdir_flag_spec='-L$libdir'
9572 hardcode_direct=yes
9573 hardcode_minus_L=yes
9574 hardcode_shlibpath_var=no
9575 ;;
9576
9577 sysv4)
9578 case $host_vendor in
9579 sni)
9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_direct=yes # is this really true???
9582 ;;
9583 siemens)
9584 ## LD is ld it makes a PLAMLIB
9585 ## CC just makes a GrossModule.
9586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9587 reload_cmds='$CC -r -o $output$reload_objs'
9588 hardcode_direct=no
9589 ;;
9590 motorola)
9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9593 ;;
9594 esac
9595 runpath_var='LD_RUN_PATH'
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 sysv4.3*)
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_shlibpath_var=no
9602 export_dynamic_flag_spec='-Bexport'
9603 ;;
9604
9605 sysv4*MP*)
9606 if test -d /usr/nec; then
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_shlibpath_var=no
9609 runpath_var=LD_RUN_PATH
9610 hardcode_runpath_var=yes
9611 ld_shlibs=yes
9612 fi
9613 ;;
9614
9615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9616 no_undefined_flag='${wl}-z,text'
9617 archive_cmds_need_lc=no
9618 hardcode_shlibpath_var=no
9619 runpath_var='LD_RUN_PATH'
9620
9621 if test "$GCC" = yes; then
9622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 else
9625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 fi
9628 ;;
9629
9630 sysv5* | sco3.2v5* | sco5v6*)
9631 # Note: We can NOT use -z defs as we might desire, because we do not
9632 # link with -lc, and that would cause any symbols used from libc to
9633 # always be unresolved, which means just about no library would
9634 # ever link correctly. If we're not using GNU ld we use -z text
9635 # though, which does catch some bad symbols but isn't as heavy-handed
9636 # as -z defs.
9637 no_undefined_flag='${wl}-z,text'
9638 allow_undefined_flag='${wl}-z,nodefs'
9639 archive_cmds_need_lc=no
9640 hardcode_shlibpath_var=no
9641 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9642 hardcode_libdir_separator=':'
9643 link_all_deplibs=yes
9644 export_dynamic_flag_spec='${wl}-Bexport'
9645 runpath_var='LD_RUN_PATH'
9646
9647 if test "$GCC" = yes; then
9648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 else
9651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653 fi
9654 ;;
9655
9656 uts4*)
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-L$libdir'
9659 hardcode_shlibpath_var=no
9660 ;;
9661
9662 *)
9663 ld_shlibs=no
9664 ;;
9665 esac
9666
9667 if test x$host_vendor = xsni; then
9668 case $host in
9669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9670 export_dynamic_flag_spec='${wl}-Blargedynsym'
9671 ;;
9672 esac
9673 fi
9674 fi
9675
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9677 $as_echo "$ld_shlibs" >&6; }
9678 test "$ld_shlibs" = no && can_build_shared=no
9679
9680 with_gnu_ld=$with_gnu_ld
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696 #
9697 # Do we need to explicitly link libc?
9698 #
9699 case "x$archive_cmds_need_lc" in
9700 x|xyes)
9701 # Assume -lc should be added
9702 archive_cmds_need_lc=yes
9703
9704 if test "$enable_shared" = yes && test "$GCC" = yes; then
9705 case $archive_cmds in
9706 *'~'*)
9707 # FIXME: we may have to deal with multi-command sequences.
9708 ;;
9709 '$CC '*)
9710 # Test whether the compiler implicitly links with -lc since on some
9711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9712 # to ld, don't add -lc before -lgcc.
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9714 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9715 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 $RM conftest*
9719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9720
9721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9722 (eval $ac_compile) 2>&5
9723 ac_status=$?
9724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9725 test $ac_status = 0; } 2>conftest.err; then
9726 soname=conftest
9727 lib=conftest
9728 libobjs=conftest.$ac_objext
9729 deplibs=
9730 wl=$lt_prog_compiler_wl
9731 pic_flag=$lt_prog_compiler_pic
9732 compiler_flags=-v
9733 linker_flags=-v
9734 verstring=
9735 output_objdir=.
9736 libname=conftest
9737 lt_save_allow_undefined_flag=$allow_undefined_flag
9738 allow_undefined_flag=
9739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9740 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9741 ac_status=$?
9742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9743 test $ac_status = 0; }
9744 then
9745 lt_cv_archive_cmds_need_lc=no
9746 else
9747 lt_cv_archive_cmds_need_lc=yes
9748 fi
9749 allow_undefined_flag=$lt_save_allow_undefined_flag
9750 else
9751 cat conftest.err 1>&5
9752 fi
9753 $RM conftest*
9754
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9757 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9758 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9759 ;;
9760 esac
9761 fi
9762 ;;
9763 esac
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9917 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9918
9919 if test "$GCC" = yes; then
9920 case $host_os in
9921 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9922 *) lt_awk_arg="/^libraries:/" ;;
9923 esac
9924 case $host_os in
9925 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9926 *) lt_sed_strip_eq="s,=/,/,g" ;;
9927 esac
9928 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9929 case $lt_search_path_spec in
9930 *\;*)
9931 # if the path contains ";" then we assume it to be the separator
9932 # otherwise default to the standard path separator (i.e. ":") - it is
9933 # assumed that no part of a normal pathname contains ";" but that should
9934 # okay in the real world where ";" in dirpaths is itself problematic.
9935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9936 ;;
9937 *)
9938 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9939 ;;
9940 esac
9941 # Ok, now we have the path, separated by spaces, we can step through it
9942 # and add multilib dir if necessary.
9943 lt_tmp_lt_search_path_spec=
9944 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9945 for lt_sys_path in $lt_search_path_spec; do
9946 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9948 else
9949 test -d "$lt_sys_path" && \
9950 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9951 fi
9952 done
9953 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9954 BEGIN {RS=" "; FS="/|\n";} {
9955 lt_foo="";
9956 lt_count=0;
9957 for (lt_i = NF; lt_i > 0; lt_i--) {
9958 if ($lt_i != "" && $lt_i != ".") {
9959 if ($lt_i == "..") {
9960 lt_count++;
9961 } else {
9962 if (lt_count == 0) {
9963 lt_foo="/" $lt_i lt_foo;
9964 } else {
9965 lt_count--;
9966 }
9967 }
9968 }
9969 }
9970 if (lt_foo != "") { lt_freq[lt_foo]++; }
9971 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9972 }'`
9973 # AWK program above erroneously prepends '/' to C:/dos/paths
9974 # for these hosts.
9975 case $host_os in
9976 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9977 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9978 esac
9979 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9980 else
9981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9982 fi
9983 library_names_spec=
9984 libname_spec='lib$name'
9985 soname_spec=
9986 shrext_cmds=".so"
9987 postinstall_cmds=
9988 postuninstall_cmds=
9989 finish_cmds=
9990 finish_eval=
9991 shlibpath_var=
9992 shlibpath_overrides_runpath=unknown
9993 version_type=none
9994 dynamic_linker="$host_os ld.so"
9995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9996 need_lib_prefix=unknown
9997 hardcode_into_libs=no
9998
9999 # when you set need_version to no, make sure it does not cause -set_version
10000 # flags to be left without arguments
10001 need_version=unknown
10002
10003 case $host_os in
10004 aix3*)
10005 version_type=linux # correct to gnu/linux during the next big refactor
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10007 shlibpath_var=LIBPATH
10008
10009 # AIX 3 has no versioning support, so we append a major version to the name.
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 ;;
10012
10013 aix[4-9]*)
10014 version_type=linux # correct to gnu/linux during the next big refactor
10015 need_lib_prefix=no
10016 need_version=no
10017 hardcode_into_libs=yes
10018 if test "$host_cpu" = ia64; then
10019 # AIX 5 supports IA64
10020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 else
10023 # With GCC up to 2.95.x, collect2 would create an import file
10024 # for dependence libraries. The import file would start with
10025 # the line `#! .'. This would cause the generated library to
10026 # depend on `.', always an invalid library. This was fixed in
10027 # development snapshots of GCC prior to 3.0.
10028 case $host_os in
10029 aix4 | aix4.[01] | aix4.[01].*)
10030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10031 echo ' yes '
10032 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10033 :
10034 else
10035 can_build_shared=no
10036 fi
10037 ;;
10038 esac
10039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10040 # soname into executable. Probably we can add versioning support to
10041 # collect2, so additional links can be useful in future.
10042 if test "$aix_use_runtimelinking" = yes; then
10043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10044 # instead of lib<name>.a to let people know that these are not
10045 # typical AIX shared libraries.
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 else
10048 # We preserve .a as extension for shared libraries through AIX4.2
10049 # and later when we are not doing run time linking.
10050 library_names_spec='${libname}${release}.a $libname.a'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 fi
10053 shlibpath_var=LIBPATH
10054 fi
10055 ;;
10056
10057 amigaos*)
10058 case $host_cpu in
10059 powerpc)
10060 # Since July 2007 AmigaOS4 officially supports .so libraries.
10061 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 ;;
10064 m68k)
10065 library_names_spec='$libname.ixlibrary $libname.a'
10066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10067 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'
10068 ;;
10069 esac
10070 ;;
10071
10072 beos*)
10073 library_names_spec='${libname}${shared_ext}'
10074 dynamic_linker="$host_os ld.so"
10075 shlibpath_var=LIBRARY_PATH
10076 ;;
10077
10078 bsdi[45]*)
10079 version_type=linux # correct to gnu/linux during the next big refactor
10080 need_version=no
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10087 # the default ld.so.conf also contains /usr/contrib/lib and
10088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10089 # libtool to hard-code these into programs
10090 ;;
10091
10092 cygwin* | mingw* | pw32* | cegcc*)
10093 version_type=windows
10094 shrext_cmds=".dll"
10095 need_version=no
10096 need_lib_prefix=no
10097
10098 case $GCC,$cc_basename in
10099 yes,*)
10100 # gcc
10101 library_names_spec='$libname.dll.a'
10102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10103 postinstall_cmds='base_file=`basename \${file}`~
10104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10105 dldir=$destdir/`dirname \$dlpath`~
10106 test -d \$dldir || mkdir -p \$dldir~
10107 $install_prog $dir/$dlname \$dldir/$dlname~
10108 chmod a+x \$dldir/$dlname~
10109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10111 fi'
10112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10113 dlpath=$dir/\$dldll~
10114 $RM \$dlpath'
10115 shlibpath_overrides_runpath=yes
10116
10117 case $host_os in
10118 cygwin*)
10119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121
10122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10123 ;;
10124 mingw* | cegcc*)
10125 # MinGW DLLs use traditional 'lib' prefix
10126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10127 ;;
10128 pw32*)
10129 # pw32 DLLs use 'pw' prefix rather than 'lib'
10130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10131 ;;
10132 esac
10133 dynamic_linker='Win32 ld.exe'
10134 ;;
10135
10136 *,cl*)
10137 # Native MSVC
10138 libname_spec='$name'
10139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10140 library_names_spec='${libname}.dll.lib'
10141
10142 case $build_os in
10143 mingw*)
10144 sys_lib_search_path_spec=
10145 lt_save_ifs=$IFS
10146 IFS=';'
10147 for lt_path in $LIB
10148 do
10149 IFS=$lt_save_ifs
10150 # Let DOS variable expansion print the short 8.3 style file name.
10151 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10152 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10153 done
10154 IFS=$lt_save_ifs
10155 # Convert to MSYS style.
10156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10157 ;;
10158 cygwin*)
10159 # Convert to unix form, then to dos form, then back to unix form
10160 # but this time dos style (no spaces!) so that the unix form looks
10161 # like /cygdrive/c/PROGRA~1:/cygdr...
10162 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10163 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10164 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10165 ;;
10166 *)
10167 sys_lib_search_path_spec="$LIB"
10168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10169 # It is most probably a Windows format PATH.
10170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10171 else
10172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10173 fi
10174 # FIXME: find the short name or the path components, as spaces are
10175 # common. (e.g. "Program Files" -> "PROGRA~1")
10176 ;;
10177 esac
10178
10179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10180 postinstall_cmds='base_file=`basename \${file}`~
10181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10182 dldir=$destdir/`dirname \$dlpath`~
10183 test -d \$dldir || mkdir -p \$dldir~
10184 $install_prog $dir/$dlname \$dldir/$dlname'
10185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10186 dlpath=$dir/\$dldll~
10187 $RM \$dlpath'
10188 shlibpath_overrides_runpath=yes
10189 dynamic_linker='Win32 link.exe'
10190 ;;
10191
10192 *)
10193 # Assume MSVC wrapper
10194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10195 dynamic_linker='Win32 ld.exe'
10196 ;;
10197 esac
10198 # FIXME: first we should search . and the directory the executable is in
10199 shlibpath_var=PATH
10200 ;;
10201
10202 darwin* | rhapsody*)
10203 dynamic_linker="$host_os dyld"
10204 version_type=darwin
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10208 soname_spec='${libname}${release}${major}$shared_ext'
10209 shlibpath_overrides_runpath=yes
10210 shlibpath_var=DYLD_LIBRARY_PATH
10211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10212
10213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10215 ;;
10216
10217 dgux*)
10218 version_type=linux # correct to gnu/linux during the next big refactor
10219 need_lib_prefix=no
10220 need_version=no
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 ;;
10225
10226 freebsd* | dragonfly*)
10227 # DragonFly does not have aout. When/if they implement a new
10228 # versioning mechanism, adjust this.
10229 if test -x /usr/bin/objformat; then
10230 objformat=`/usr/bin/objformat`
10231 else
10232 case $host_os in
10233 freebsd[23].*) objformat=aout ;;
10234 *) objformat=elf ;;
10235 esac
10236 fi
10237 version_type=freebsd-$objformat
10238 case $version_type in
10239 freebsd-elf*)
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10241 need_version=no
10242 need_lib_prefix=no
10243 ;;
10244 freebsd-*)
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10246 need_version=yes
10247 ;;
10248 esac
10249 shlibpath_var=LD_LIBRARY_PATH
10250 case $host_os in
10251 freebsd2.*)
10252 shlibpath_overrides_runpath=yes
10253 ;;
10254 freebsd3.[01]* | freebsdelf3.[01]*)
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10257 ;;
10258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10260 shlibpath_overrides_runpath=no
10261 hardcode_into_libs=yes
10262 ;;
10263 *) # from 4.6 on, and DragonFly
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10266 ;;
10267 esac
10268 ;;
10269
10270 gnu*)
10271 version_type=linux # correct to gnu/linux during the next big refactor
10272 need_lib_prefix=no
10273 need_version=no
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=no
10278 hardcode_into_libs=yes
10279 ;;
10280
10281 haiku*)
10282 version_type=linux # correct to gnu/linux during the next big refactor
10283 need_lib_prefix=no
10284 need_version=no
10285 dynamic_linker="$host_os runtime_loader"
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10291 hardcode_into_libs=yes
10292 ;;
10293
10294 hpux9* | hpux10* | hpux11*)
10295 # Give a soname corresponding to the major version so that dld.sl refuses to
10296 # link against other versions.
10297 version_type=sunos
10298 need_lib_prefix=no
10299 need_version=no
10300 case $host_cpu in
10301 ia64*)
10302 shrext_cmds='.so'
10303 hardcode_into_libs=yes
10304 dynamic_linker="$host_os dld.so"
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 if test "X$HPUX_IA64_MODE" = X32; then
10310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10311 else
10312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10313 fi
10314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10315 ;;
10316 hppa*64*)
10317 shrext_cmds='.sl'
10318 hardcode_into_libs=yes
10319 dynamic_linker="$host_os dld.sl"
10320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10326 ;;
10327 *)
10328 shrext_cmds='.sl'
10329 dynamic_linker="$host_os dld.sl"
10330 shlibpath_var=SHLIB_PATH
10331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 ;;
10335 esac
10336 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10337 postinstall_cmds='chmod 555 $lib'
10338 # or fails outright, so override atomically:
10339 install_override_mode=555
10340 ;;
10341
10342 interix[3-9]*)
10343 version_type=linux # correct to gnu/linux during the next big refactor
10344 need_lib_prefix=no
10345 need_version=no
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=no
10351 hardcode_into_libs=yes
10352 ;;
10353
10354 irix5* | irix6* | nonstopux*)
10355 case $host_os in
10356 nonstopux*) version_type=nonstopux ;;
10357 *)
10358 if test "$lt_cv_prog_gnu_ld" = yes; then
10359 version_type=linux # correct to gnu/linux during the next big refactor
10360 else
10361 version_type=irix
10362 fi ;;
10363 esac
10364 need_lib_prefix=no
10365 need_version=no
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10368 case $host_os in
10369 irix5* | nonstopux*)
10370 libsuff= shlibsuff=
10371 ;;
10372 *)
10373 case $LD in # libtool.m4 will add one of these switches to LD
10374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10375 libsuff= shlibsuff= libmagic=32-bit;;
10376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10377 libsuff=32 shlibsuff=N32 libmagic=N32;;
10378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10380 *) libsuff= shlibsuff= libmagic=never-match;;
10381 esac
10382 ;;
10383 esac
10384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10385 shlibpath_overrides_runpath=no
10386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10388 hardcode_into_libs=yes
10389 ;;
10390
10391 # No shared lib support for Linux oldld, aout, or coff.
10392 linux*oldld* | linux*aout* | linux*coff*)
10393 dynamic_linker=no
10394 ;;
10395
10396 # This must be glibc/ELF.
10397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10398 version_type=linux # correct to gnu/linux during the next big refactor
10399 need_lib_prefix=no
10400 need_version=no
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=no
10406
10407 # Some binutils ld are patched to set DT_RUNPATH
10408 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 lt_cv_shlibpath_overrides_runpath=no
10412 save_LDFLAGS=$LDFLAGS
10413 save_libdir=$libdir
10414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418
10419 int
10420 main ()
10421 {
10422
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10429 lt_cv_shlibpath_overrides_runpath=yes
10430 fi
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LDFLAGS=$save_LDFLAGS
10435 libdir=$save_libdir
10436
10437 fi
10438
10439 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10440
10441 # This implies no fast_install, which is unacceptable.
10442 # Some rework will be needed to allow for fast_install
10443 # before this can be enabled.
10444 hardcode_into_libs=yes
10445
10446 # Append ld.so.conf contents to the search path
10447 if test -f /etc/ld.so.conf; then
10448 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' ' '`
10449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10450 fi
10451
10452 # We used to test for /lib/ld.so.1 and disable shared libraries on
10453 # powerpc, because MkLinux only supported shared libraries with the
10454 # GNU dynamic linker. Since this was broken with cross compilers,
10455 # most powerpc-linux boxes support dynamic linking these days and
10456 # people can always --disable-shared, the test was removed, and we
10457 # assume the GNU/Linux dynamic linker is in use.
10458 dynamic_linker='GNU/Linux ld.so'
10459 ;;
10460
10461 netbsd*)
10462 version_type=sunos
10463 need_lib_prefix=no
10464 need_version=no
10465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10468 dynamic_linker='NetBSD (a.out) ld.so'
10469 else
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 dynamic_linker='NetBSD ld.elf_so'
10473 fi
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10477 ;;
10478
10479 newsos6)
10480 version_type=linux # correct to gnu/linux during the next big refactor
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=yes
10484 ;;
10485
10486 *nto* | *qnx*)
10487 version_type=qnx
10488 need_lib_prefix=no
10489 need_version=no
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=no
10494 hardcode_into_libs=yes
10495 dynamic_linker='ldqnx.so'
10496 ;;
10497
10498 openbsd*)
10499 version_type=sunos
10500 sys_lib_dlsearch_path_spec="/usr/lib"
10501 need_lib_prefix=no
10502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10503 case $host_os in
10504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10505 *) need_version=no ;;
10506 esac
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10511 case $host_os in
10512 openbsd2.[89] | openbsd2.[89].*)
10513 shlibpath_overrides_runpath=no
10514 ;;
10515 *)
10516 shlibpath_overrides_runpath=yes
10517 ;;
10518 esac
10519 else
10520 shlibpath_overrides_runpath=yes
10521 fi
10522 ;;
10523
10524 os2*)
10525 libname_spec='$name'
10526 shrext_cmds=".dll"
10527 need_lib_prefix=no
10528 library_names_spec='$libname${shared_ext} $libname.a'
10529 dynamic_linker='OS/2 ld.exe'
10530 shlibpath_var=LIBPATH
10531 ;;
10532
10533 osf3* | osf4* | osf5*)
10534 version_type=osf
10535 need_lib_prefix=no
10536 need_version=no
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10542 ;;
10543
10544 rdos*)
10545 dynamic_linker=no
10546 ;;
10547
10548 solaris*)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=yes
10556 hardcode_into_libs=yes
10557 # ldd complains unless libraries are executable
10558 postinstall_cmds='chmod +x $lib'
10559 ;;
10560
10561 sunos4*)
10562 version_type=sunos
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=yes
10567 if test "$with_gnu_ld" = yes; then
10568 need_lib_prefix=no
10569 fi
10570 need_version=yes
10571 ;;
10572
10573 sysv4 | sysv4.3*)
10574 version_type=linux # correct to gnu/linux during the next big refactor
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 case $host_vendor in
10579 sni)
10580 shlibpath_overrides_runpath=no
10581 need_lib_prefix=no
10582 runpath_var=LD_RUN_PATH
10583 ;;
10584 siemens)
10585 need_lib_prefix=no
10586 ;;
10587 motorola)
10588 need_lib_prefix=no
10589 need_version=no
10590 shlibpath_overrides_runpath=no
10591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10592 ;;
10593 esac
10594 ;;
10595
10596 sysv4*MP*)
10597 if test -d /usr/nec ;then
10598 version_type=linux # correct to gnu/linux during the next big refactor
10599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10600 soname_spec='$libname${shared_ext}.$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 fi
10603 ;;
10604
10605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10606 version_type=freebsd-elf
10607 need_lib_prefix=no
10608 need_version=no
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10613 hardcode_into_libs=yes
10614 if test "$with_gnu_ld" = yes; then
10615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10616 else
10617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10618 case $host_os in
10619 sco3.2v5*)
10620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10621 ;;
10622 esac
10623 fi
10624 sys_lib_dlsearch_path_spec='/usr/lib'
10625 ;;
10626
10627 tpf*)
10628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10629 version_type=linux # correct to gnu/linux during the next big refactor
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=no
10635 hardcode_into_libs=yes
10636 ;;
10637
10638 uts4*)
10639 version_type=linux # correct to gnu/linux during the next big refactor
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 ;;
10644
10645 *)
10646 dynamic_linker=no
10647 ;;
10648 esac
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10650 $as_echo "$dynamic_linker" >&6; }
10651 test "$dynamic_linker" = no && can_build_shared=no
10652
10653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10654 if test "$GCC" = yes; then
10655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10656 fi
10657
10658 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10659 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10660 fi
10661 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10662 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10663 fi
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10757 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10758 hardcode_action=
10759 if test -n "$hardcode_libdir_flag_spec" ||
10760 test -n "$runpath_var" ||
10761 test "X$hardcode_automatic" = "Xyes" ; then
10762
10763 # We can hardcode non-existent directories.
10764 if test "$hardcode_direct" != no &&
10765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10766 # have to relink, otherwise we might link with an installed library
10767 # when we should be linking with a yet-to-be-installed one
10768 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10769 test "$hardcode_minus_L" != no; then
10770 # Linking always hardcodes the temporary library directory.
10771 hardcode_action=relink
10772 else
10773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10774 hardcode_action=immediate
10775 fi
10776 else
10777 # We cannot hardcode anything, or else we can only hardcode existing
10778 # directories.
10779 hardcode_action=unsupported
10780 fi
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10782 $as_echo "$hardcode_action" >&6; }
10783
10784 if test "$hardcode_action" = relink ||
10785 test "$inherit_rpath" = yes; then
10786 # Fast installation is not supported
10787 enable_fast_install=no
10788 elif test "$shlibpath_overrides_runpath" = yes ||
10789 test "$enable_shared" = no; then
10790 # Fast installation is not necessary
10791 enable_fast_install=needless
10792 fi
10793
10794
10795
10796
10797
10798
10799 if test "x$enable_dlopen" != xyes; then
10800 enable_dlopen=unknown
10801 enable_dlopen_self=unknown
10802 enable_dlopen_self_static=unknown
10803 else
10804 lt_cv_dlopen=no
10805 lt_cv_dlopen_libs=
10806
10807 case $host_os in
10808 beos*)
10809 lt_cv_dlopen="load_add_on"
10810 lt_cv_dlopen_libs=
10811 lt_cv_dlopen_self=yes
10812 ;;
10813
10814 mingw* | pw32* | cegcc*)
10815 lt_cv_dlopen="LoadLibrary"
10816 lt_cv_dlopen_libs=
10817 ;;
10818
10819 cygwin*)
10820 lt_cv_dlopen="dlopen"
10821 lt_cv_dlopen_libs=
10822 ;;
10823
10824 darwin*)
10825 # if libdl is installed we need to link against it
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10827 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10828 if ${ac_cv_lib_dl_dlopen+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-ldl $LIBS"
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char dlopen ();
10843 int
10844 main ()
10845 {
10846 return dlopen ();
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852 ac_cv_lib_dl_dlopen=yes
10853 else
10854 ac_cv_lib_dl_dlopen=no
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10859 fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10861 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10862 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10864 else
10865
10866 lt_cv_dlopen="dyld"
10867 lt_cv_dlopen_libs=
10868 lt_cv_dlopen_self=yes
10869
10870 fi
10871
10872 ;;
10873
10874 *)
10875 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10876 if test "x$ac_cv_func_shl_load" = xyes; then :
10877 lt_cv_dlopen="shl_load"
10878 else
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10880 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10881 if ${ac_cv_lib_dld_shl_load+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldld $LIBS"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892 #ifdef __cplusplus
10893 extern "C"
10894 #endif
10895 char shl_load ();
10896 int
10897 main ()
10898 {
10899 return shl_load ();
10900 ;
10901 return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 ac_cv_lib_dld_shl_load=yes
10906 else
10907 ac_cv_lib_dld_shl_load=no
10908 fi
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10914 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10915 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10917 else
10918 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10919 if test "x$ac_cv_func_dlopen" = xyes; then :
10920 lt_cv_dlopen="dlopen"
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10923 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10924 if ${ac_cv_lib_dl_dlopen+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_lib_save_LIBS=$LIBS
10928 LIBS="-ldl $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char dlopen ();
10939 int
10940 main ()
10941 {
10942 return dlopen ();
10943 ;
10944 return 0;
10945 }
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_dl_dlopen=yes
10949 else
10950 ac_cv_lib_dl_dlopen=no
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10958 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10962 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10963 if ${ac_cv_lib_svld_dlopen+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-lsvld $LIBS"
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10970
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char dlopen ();
10978 int
10979 main ()
10980 {
10981 return dlopen ();
10982 ;
10983 return 0;
10984 }
10985 _ACEOF
10986 if ac_fn_c_try_link "$LINENO"; then :
10987 ac_cv_lib_svld_dlopen=yes
10988 else
10989 ac_cv_lib_svld_dlopen=no
10990 fi
10991 rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10994 fi
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10996 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10997 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11001 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11002 if ${ac_cv_lib_dld_dld_link+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-ldld $LIBS"
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 char dld_link ();
11017 int
11018 main ()
11019 {
11020 return dld_link ();
11021 ;
11022 return 0;
11023 }
11024 _ACEOF
11025 if ac_fn_c_try_link "$LINENO"; then :
11026 ac_cv_lib_dld_dld_link=yes
11027 else
11028 ac_cv_lib_dld_dld_link=no
11029 fi
11030 rm -f core conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext conftest.$ac_ext
11032 LIBS=$ac_check_lib_save_LIBS
11033 fi
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11035 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11036 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11038 fi
11039
11040
11041 fi
11042
11043
11044 fi
11045
11046
11047 fi
11048
11049
11050 fi
11051
11052
11053 fi
11054
11055 ;;
11056 esac
11057
11058 if test "x$lt_cv_dlopen" != xno; then
11059 enable_dlopen=yes
11060 else
11061 enable_dlopen=no
11062 fi
11063
11064 case $lt_cv_dlopen in
11065 dlopen)
11066 save_CPPFLAGS="$CPPFLAGS"
11067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11068
11069 save_LDFLAGS="$LDFLAGS"
11070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11071
11072 save_LIBS="$LIBS"
11073 LIBS="$lt_cv_dlopen_libs $LIBS"
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11076 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11077 if ${lt_cv_dlopen_self+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test "$cross_compiling" = yes; then :
11081 lt_cv_dlopen_self=cross
11082 else
11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084 lt_status=$lt_dlunknown
11085 cat > conftest.$ac_ext <<_LT_EOF
11086 #line $LINENO "configure"
11087 #include "confdefs.h"
11088
11089 #if HAVE_DLFCN_H
11090 #include <dlfcn.h>
11091 #endif
11092
11093 #include <stdio.h>
11094
11095 #ifdef RTLD_GLOBAL
11096 # define LT_DLGLOBAL RTLD_GLOBAL
11097 #else
11098 # ifdef DL_GLOBAL
11099 # define LT_DLGLOBAL DL_GLOBAL
11100 # else
11101 # define LT_DLGLOBAL 0
11102 # endif
11103 #endif
11104
11105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106 find out it does not work in some platform. */
11107 #ifndef LT_DLLAZY_OR_NOW
11108 # ifdef RTLD_LAZY
11109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11110 # else
11111 # ifdef DL_LAZY
11112 # define LT_DLLAZY_OR_NOW DL_LAZY
11113 # else
11114 # ifdef RTLD_NOW
11115 # define LT_DLLAZY_OR_NOW RTLD_NOW
11116 # else
11117 # ifdef DL_NOW
11118 # define LT_DLLAZY_OR_NOW DL_NOW
11119 # else
11120 # define LT_DLLAZY_OR_NOW 0
11121 # endif
11122 # endif
11123 # endif
11124 # endif
11125 #endif
11126
11127 /* When -fvisbility=hidden is used, assume the code has been annotated
11128 correspondingly for the symbols needed. */
11129 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11130 int fnord () __attribute__((visibility("default")));
11131 #endif
11132
11133 int fnord () { return 42; }
11134 int main ()
11135 {
11136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11137 int status = $lt_dlunknown;
11138
11139 if (self)
11140 {
11141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11142 else
11143 {
11144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11145 else puts (dlerror ());
11146 }
11147 /* dlclose (self); */
11148 }
11149 else
11150 puts (dlerror ());
11151
11152 return status;
11153 }
11154 _LT_EOF
11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11160 (./conftest; exit; ) >&5 2>/dev/null
11161 lt_status=$?
11162 case x$lt_status in
11163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11165 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11166 esac
11167 else :
11168 # compilation failed
11169 lt_cv_dlopen_self=no
11170 fi
11171 fi
11172 rm -fr conftest*
11173
11174
11175 fi
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11177 $as_echo "$lt_cv_dlopen_self" >&6; }
11178
11179 if test "x$lt_cv_dlopen_self" = xyes; then
11180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11182 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11183 if ${lt_cv_dlopen_self_static+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self_static=cross
11188 else
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<_LT_EOF
11192 #line $LINENO "configure"
11193 #include "confdefs.h"
11194
11195 #if HAVE_DLFCN_H
11196 #include <dlfcn.h>
11197 #endif
11198
11199 #include <stdio.h>
11200
11201 #ifdef RTLD_GLOBAL
11202 # define LT_DLGLOBAL RTLD_GLOBAL
11203 #else
11204 # ifdef DL_GLOBAL
11205 # define LT_DLGLOBAL DL_GLOBAL
11206 # else
11207 # define LT_DLGLOBAL 0
11208 # endif
11209 #endif
11210
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11214 # ifdef RTLD_LAZY
11215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11216 # else
11217 # ifdef DL_LAZY
11218 # define LT_DLLAZY_OR_NOW DL_LAZY
11219 # else
11220 # ifdef RTLD_NOW
11221 # define LT_DLLAZY_OR_NOW RTLD_NOW
11222 # else
11223 # ifdef DL_NOW
11224 # define LT_DLLAZY_OR_NOW DL_NOW
11225 # else
11226 # define LT_DLLAZY_OR_NOW 0
11227 # endif
11228 # endif
11229 # endif
11230 # endif
11231 #endif
11232
11233 /* When -fvisbility=hidden is used, assume the code has been annotated
11234 correspondingly for the symbols needed. */
11235 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11236 int fnord () __attribute__((visibility("default")));
11237 #endif
11238
11239 int fnord () { return 42; }
11240 int main ()
11241 {
11242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11243 int status = $lt_dlunknown;
11244
11245 if (self)
11246 {
11247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11248 else
11249 {
11250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11251 else puts (dlerror ());
11252 }
11253 /* dlclose (self); */
11254 }
11255 else
11256 puts (dlerror ());
11257
11258 return status;
11259 }
11260 _LT_EOF
11261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11262 (eval $ac_link) 2>&5
11263 ac_status=$?
11264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11266 (./conftest; exit; ) >&5 2>/dev/null
11267 lt_status=$?
11268 case x$lt_status in
11269 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11271 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11272 esac
11273 else :
11274 # compilation failed
11275 lt_cv_dlopen_self_static=no
11276 fi
11277 fi
11278 rm -fr conftest*
11279
11280
11281 fi
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11283 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11284 fi
11285
11286 CPPFLAGS="$save_CPPFLAGS"
11287 LDFLAGS="$save_LDFLAGS"
11288 LIBS="$save_LIBS"
11289 ;;
11290 esac
11291
11292 case $lt_cv_dlopen_self in
11293 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11294 *) enable_dlopen_self=unknown ;;
11295 esac
11296
11297 case $lt_cv_dlopen_self_static in
11298 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11299 *) enable_dlopen_self_static=unknown ;;
11300 esac
11301 fi
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319 striplib=
11320 old_striplib=
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11322 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11323 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11327 $as_echo "yes" >&6; }
11328 else
11329 # FIXME - insert some real tests, host_os isn't really good enough
11330 case $host_os in
11331 darwin*)
11332 if test -n "$STRIP" ; then
11333 striplib="$STRIP -x"
11334 old_striplib="$STRIP -S"
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11336 $as_echo "yes" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11340 fi
11341 ;;
11342 *)
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 ;;
11346 esac
11347 fi
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360 # Report which library types will actually be built
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11362 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11364 $as_echo "$can_build_shared" >&6; }
11365
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11367 $as_echo_n "checking whether to build shared libraries... " >&6; }
11368 test "$can_build_shared" = "no" && enable_shared=no
11369
11370 # On AIX, shared libraries and static libraries use the same namespace, and
11371 # are all built from PIC.
11372 case $host_os in
11373 aix3*)
11374 test "$enable_shared" = yes && enable_static=no
11375 if test -n "$RANLIB"; then
11376 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11377 postinstall_cmds='$RANLIB $lib'
11378 fi
11379 ;;
11380
11381 aix[4-9]*)
11382 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11383 test "$enable_shared" = yes && enable_static=no
11384 fi
11385 ;;
11386 esac
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11388 $as_echo "$enable_shared" >&6; }
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11391 $as_echo_n "checking whether to build static libraries... " >&6; }
11392 # Make sure either enable_shared or enable_static is yes.
11393 test "$enable_shared" = yes || enable_static=yes
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11395 $as_echo "$enable_static" >&6; }
11396
11397
11398
11399
11400 fi
11401 ac_ext=c
11402 ac_cpp='$CPP $CPPFLAGS'
11403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11406
11407 CC="$lt_save_CC"
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423 ac_config_commands="$ac_config_commands libtool"
11424
11425
11426
11427
11428 # Only expand once:
11429
11430
11431
11432 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11445 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11446 if ${ac_cv_prog_cc_c99+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 ac_cv_prog_cc_c99=no
11450 ac_save_CC=$CC
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453 #include <stdarg.h>
11454 #include <stdbool.h>
11455 #include <stdlib.h>
11456 #include <wchar.h>
11457 #include <stdio.h>
11458
11459 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11460 #define debug(...) fprintf (stderr, __VA_ARGS__)
11461 #define showlist(...) puts (#__VA_ARGS__)
11462 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11463 static void
11464 test_varargs_macros (void)
11465 {
11466 int x = 1234;
11467 int y = 5678;
11468 debug ("Flag");
11469 debug ("X = %d\n", x);
11470 showlist (The first, second, and third items.);
11471 report (x>y, "x is %d but y is %d", x, y);
11472 }
11473
11474 // Check long long types.
11475 #define BIG64 18446744073709551615ull
11476 #define BIG32 4294967295ul
11477 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11478 #if !BIG_OK
11479 your preprocessor is broken;
11480 #endif
11481 #if BIG_OK
11482 #else
11483 your preprocessor is broken;
11484 #endif
11485 static long long int bignum = -9223372036854775807LL;
11486 static unsigned long long int ubignum = BIG64;
11487
11488 struct incomplete_array
11489 {
11490 int datasize;
11491 double data[];
11492 };
11493
11494 struct named_init {
11495 int number;
11496 const wchar_t *name;
11497 double average;
11498 };
11499
11500 typedef const char *ccp;
11501
11502 static inline int
11503 test_restrict (ccp restrict text)
11504 {
11505 // See if C++-style comments work.
11506 // Iterate through items via the restricted pointer.
11507 // Also check for declarations in for loops.
11508 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11509 continue;
11510 return 0;
11511 }
11512
11513 // Check varargs and va_copy.
11514 static void
11515 test_varargs (const char *format, ...)
11516 {
11517 va_list args;
11518 va_start (args, format);
11519 va_list args_copy;
11520 va_copy (args_copy, args);
11521
11522 const char *str;
11523 int number;
11524 float fnumber;
11525
11526 while (*format)
11527 {
11528 switch (*format++)
11529 {
11530 case 's': // string
11531 str = va_arg (args_copy, const char *);
11532 break;
11533 case 'd': // int
11534 number = va_arg (args_copy, int);
11535 break;
11536 case 'f': // float
11537 fnumber = va_arg (args_copy, double);
11538 break;
11539 default:
11540 break;
11541 }
11542 }
11543 va_end (args_copy);
11544 va_end (args);
11545 }
11546
11547 int
11548 main ()
11549 {
11550
11551 // Check bool.
11552 _Bool success = false;
11553
11554 // Check restrict.
11555 if (test_restrict ("String literal") == 0)
11556 success = true;
11557 char *restrict newvar = "Another string";
11558
11559 // Check varargs.
11560 test_varargs ("s, d' f .", "string", 65, 34.234);
11561 test_varargs_macros ();
11562
11563 // Check flexible array members.
11564 struct incomplete_array *ia =
11565 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11566 ia->datasize = 10;
11567 for (int i = 0; i < ia->datasize; ++i)
11568 ia->data[i] = i * 1.234;
11569
11570 // Check named initializers.
11571 struct named_init ni = {
11572 .number = 34,
11573 .name = L"Test wide string",
11574 .average = 543.34343,
11575 };
11576
11577 ni.number = 58;
11578
11579 int dynamic_array[ni.number];
11580 dynamic_array[ni.number - 1] = 543;
11581
11582 // work around unused variable warnings
11583 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11584 || dynamic_array[ni.number - 1] != 543);
11585
11586 ;
11587 return 0;
11588 }
11589 _ACEOF
11590 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11591 do
11592 CC="$ac_save_CC $ac_arg"
11593 if ac_fn_c_try_compile "$LINENO"; then :
11594 ac_cv_prog_cc_c99=$ac_arg
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext
11597 test "x$ac_cv_prog_cc_c99" != "xno" && break
11598 done
11599 rm -f conftest.$ac_ext
11600 CC=$ac_save_CC
11601
11602 fi
11603 # AC_CACHE_VAL
11604 case "x$ac_cv_prog_cc_c99" in
11605 x)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11607 $as_echo "none needed" >&6; } ;;
11608 xno)
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11610 $as_echo "unsupported" >&6; } ;;
11611 *)
11612 CC="$CC $ac_cv_prog_cc_c99"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11614 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11615 esac
11616 if test "x$ac_cv_prog_cc_c99" != xno; then :
11617
11618 fi
11619
11620
11621
11622
11623
11624
11625 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11626 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11627 CLANGCC="yes"
11628 else
11629 CLANGCC="no"
11630 fi
11631
11632 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11633 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11634 INTELCC="yes"
11635 else
11636 INTELCC="no"
11637 fi
11638
11639 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11640 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11641 SUNCC="yes"
11642 else
11643 SUNCC="no"
11644 fi
11645
11646
11647
11648
11649 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11650 if test -n "$ac_tool_prefix"; then
11651 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11652 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 case $PKG_CONFIG in
11659 [\\/]* | ?:[\\/]*)
11660 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11661 ;;
11662 *)
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674 done
11675 done
11676 IFS=$as_save_IFS
11677
11678 ;;
11679 esac
11680 fi
11681 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11682 if test -n "$PKG_CONFIG"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11684 $as_echo "$PKG_CONFIG" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11688 fi
11689
11690
11691 fi
11692 if test -z "$ac_cv_path_PKG_CONFIG"; then
11693 ac_pt_PKG_CONFIG=$PKG_CONFIG
11694 # Extract the first word of "pkg-config", so it can be a program name with args.
11695 set dummy pkg-config; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 case $ac_pt_PKG_CONFIG in
11702 [\\/]* | ?:[\\/]*)
11703 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11704 ;;
11705 *)
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717 done
11718 done
11719 IFS=$as_save_IFS
11720
11721 ;;
11722 esac
11723 fi
11724 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11725 if test -n "$ac_pt_PKG_CONFIG"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11727 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11728 else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11731 fi
11732
11733 if test "x$ac_pt_PKG_CONFIG" = x; then
11734 PKG_CONFIG=""
11735 else
11736 case $cross_compiling:$ac_tool_warned in
11737 yes:)
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11740 ac_tool_warned=yes ;;
11741 esac
11742 PKG_CONFIG=$ac_pt_PKG_CONFIG
11743 fi
11744 else
11745 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11746 fi
11747
11748 fi
11749 if test -n "$PKG_CONFIG"; then
11750 _pkg_min_version=0.9.0
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11752 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11753 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11755 $as_echo "yes" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11759 PKG_CONFIG=""
11760 fi
11761
11762 fi
11763
11764
11765
11766
11767
11768 # Check whether --enable-selective-werror was given.
11769 if test "${enable_selective_werror+set}" = set; then :
11770 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11771 else
11772 SELECTIVE_WERROR=yes
11773 fi
11774
11775
11776
11777
11778
11779 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11780 if test "x$SUNCC" = "xyes"; then
11781 BASE_CFLAGS="-v"
11782 else
11783 BASE_CFLAGS=""
11784 fi
11785
11786 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800 xorg_testset_save_CFLAGS="$CFLAGS"
11801
11802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 int i;
11812 _ACEOF
11813 if ac_fn_c_try_compile "$LINENO"; then :
11814 xorg_cv_cc_flag_unknown_warning_option=yes
11815 else
11816 xorg_cv_cc_flag_unknown_warning_option=no
11817 fi
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 fi
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11823 CFLAGS="$xorg_testset_save_CFLAGS"
11824 fi
11825
11826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11829 fi
11830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838 int i;
11839 _ACEOF
11840 if ac_fn_c_try_compile "$LINENO"; then :
11841 xorg_cv_cc_flag_unused_command_line_argument=yes
11842 else
11843 xorg_cv_cc_flag_unused_command_line_argument=no
11844 fi
11845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846 fi
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11850 CFLAGS="$xorg_testset_save_CFLAGS"
11851 fi
11852
11853 found="no"
11854
11855 if test $found = "no" ; then
11856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11858 fi
11859
11860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11862 fi
11863
11864 CFLAGS="$CFLAGS -Wall"
11865
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11867 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11868 cacheid=xorg_cv_cc_flag__Wall
11869 if eval \${$cacheid+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874 int i;
11875 int
11876 main ()
11877 {
11878
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 if ac_fn_c_try_link "$LINENO"; then :
11884 eval $cacheid=yes
11885 else
11886 eval $cacheid=no
11887 fi
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 fi
11891
11892
11893 CFLAGS="$xorg_testset_save_CFLAGS"
11894
11895 eval supported=\$$cacheid
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11897 $as_echo "$supported" >&6; }
11898 if test "$supported" = "yes" ; then
11899 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11900 found="yes"
11901 fi
11902 fi
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918 xorg_testset_save_CFLAGS="$CFLAGS"
11919
11920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929 int i;
11930 _ACEOF
11931 if ac_fn_c_try_compile "$LINENO"; then :
11932 xorg_cv_cc_flag_unknown_warning_option=yes
11933 else
11934 xorg_cv_cc_flag_unknown_warning_option=no
11935 fi
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11941 CFLAGS="$xorg_testset_save_CFLAGS"
11942 fi
11943
11944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11947 fi
11948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 int i;
11957 _ACEOF
11958 if ac_fn_c_try_compile "$LINENO"; then :
11959 xorg_cv_cc_flag_unused_command_line_argument=yes
11960 else
11961 xorg_cv_cc_flag_unused_command_line_argument=no
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11968 CFLAGS="$xorg_testset_save_CFLAGS"
11969 fi
11970
11971 found="no"
11972
11973 if test $found = "no" ; then
11974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11976 fi
11977
11978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11980 fi
11981
11982 CFLAGS="$CFLAGS -Wpointer-arith"
11983
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11985 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11986 cacheid=xorg_cv_cc_flag__Wpointer_arith
11987 if eval \${$cacheid+:} 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 int
11994 main ()
11995 {
11996
11997 ;
11998 return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 eval $cacheid=yes
12003 else
12004 eval $cacheid=no
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 fi
12009
12010
12011 CFLAGS="$xorg_testset_save_CFLAGS"
12012
12013 eval supported=\$$cacheid
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12015 $as_echo "$supported" >&6; }
12016 if test "$supported" = "yes" ; then
12017 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12018 found="yes"
12019 fi
12020 fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036 xorg_testset_save_CFLAGS="$CFLAGS"
12037
12038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047 int i;
12048 _ACEOF
12049 if ac_fn_c_try_compile "$LINENO"; then :
12050 xorg_cv_cc_flag_unknown_warning_option=yes
12051 else
12052 xorg_cv_cc_flag_unknown_warning_option=no
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12059 CFLAGS="$xorg_testset_save_CFLAGS"
12060 fi
12061
12062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12065 fi
12066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 int i;
12075 _ACEOF
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077 xorg_cv_cc_flag_unused_command_line_argument=yes
12078 else
12079 xorg_cv_cc_flag_unused_command_line_argument=no
12080 fi
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12086 CFLAGS="$xorg_testset_save_CFLAGS"
12087 fi
12088
12089 found="no"
12090
12091 if test $found = "no" ; then
12092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12094 fi
12095
12096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12098 fi
12099
12100 CFLAGS="$CFLAGS -Wmissing-declarations"
12101
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12103 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12104 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12105 if eval \${$cacheid+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 int i;
12111 int
12112 main ()
12113 {
12114
12115 ;
12116 return 0;
12117 }
12118 _ACEOF
12119 if ac_fn_c_try_link "$LINENO"; then :
12120 eval $cacheid=yes
12121 else
12122 eval $cacheid=no
12123 fi
12124 rm -f core conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126 fi
12127
12128
12129 CFLAGS="$xorg_testset_save_CFLAGS"
12130
12131 eval supported=\$$cacheid
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12133 $as_echo "$supported" >&6; }
12134 if test "$supported" = "yes" ; then
12135 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12136 found="yes"
12137 fi
12138 fi
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154 xorg_testset_save_CFLAGS="$CFLAGS"
12155
12156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12165 int i;
12166 _ACEOF
12167 if ac_fn_c_try_compile "$LINENO"; then :
12168 xorg_cv_cc_flag_unknown_warning_option=yes
12169 else
12170 xorg_cv_cc_flag_unknown_warning_option=no
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12177 CFLAGS="$xorg_testset_save_CFLAGS"
12178 fi
12179
12180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12183 fi
12184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 int i;
12193 _ACEOF
12194 if ac_fn_c_try_compile "$LINENO"; then :
12195 xorg_cv_cc_flag_unused_command_line_argument=yes
12196 else
12197 xorg_cv_cc_flag_unused_command_line_argument=no
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12204 CFLAGS="$xorg_testset_save_CFLAGS"
12205 fi
12206
12207 found="no"
12208
12209 if test $found = "no" ; then
12210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12212 fi
12213
12214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12216 fi
12217
12218 CFLAGS="$CFLAGS -Wformat=2"
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12221 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12222 cacheid=xorg_cv_cc_flag__Wformat_2
12223 if eval \${$cacheid+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228 int i;
12229 int
12230 main ()
12231 {
12232
12233 ;
12234 return 0;
12235 }
12236 _ACEOF
12237 if ac_fn_c_try_link "$LINENO"; then :
12238 eval $cacheid=yes
12239 else
12240 eval $cacheid=no
12241 fi
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 fi
12245
12246
12247 CFLAGS="$xorg_testset_save_CFLAGS"
12248
12249 eval supported=\$$cacheid
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12251 $as_echo "$supported" >&6; }
12252 if test "$supported" = "yes" ; then
12253 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12254 found="yes"
12255 fi
12256 fi
12257
12258 if test $found = "no" ; then
12259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12261 fi
12262
12263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12265 fi
12266
12267 CFLAGS="$CFLAGS -Wformat"
12268
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12270 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12271 cacheid=xorg_cv_cc_flag__Wformat
12272 if eval \${$cacheid+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 int i;
12278 int
12279 main ()
12280 {
12281
12282 ;
12283 return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287 eval $cacheid=yes
12288 else
12289 eval $cacheid=no
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 fi
12294
12295
12296 CFLAGS="$xorg_testset_save_CFLAGS"
12297
12298 eval supported=\$$cacheid
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12300 $as_echo "$supported" >&6; }
12301 if test "$supported" = "yes" ; then
12302 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12303 found="yes"
12304 fi
12305 fi
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 xorg_testset_save_CFLAGS="$CFLAGS"
12324
12325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 int i;
12335 _ACEOF
12336 if ac_fn_c_try_compile "$LINENO"; then :
12337 xorg_cv_cc_flag_unknown_warning_option=yes
12338 else
12339 xorg_cv_cc_flag_unknown_warning_option=no
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12346 CFLAGS="$xorg_testset_save_CFLAGS"
12347 fi
12348
12349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12352 fi
12353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 int i;
12362 _ACEOF
12363 if ac_fn_c_try_compile "$LINENO"; then :
12364 xorg_cv_cc_flag_unused_command_line_argument=yes
12365 else
12366 xorg_cv_cc_flag_unused_command_line_argument=no
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12373 CFLAGS="$xorg_testset_save_CFLAGS"
12374 fi
12375
12376 found="no"
12377
12378 if test $found = "no" ; then
12379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12381 fi
12382
12383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12385 fi
12386
12387 CFLAGS="$CFLAGS -Wstrict-prototypes"
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12390 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12391 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12392 if eval \${$cacheid+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 int i;
12398 int
12399 main ()
12400 {
12401
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 eval $cacheid=yes
12408 else
12409 eval $cacheid=no
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 fi
12414
12415
12416 CFLAGS="$xorg_testset_save_CFLAGS"
12417
12418 eval supported=\$$cacheid
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12420 $as_echo "$supported" >&6; }
12421 if test "$supported" = "yes" ; then
12422 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12423 found="yes"
12424 fi
12425 fi
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441 xorg_testset_save_CFLAGS="$CFLAGS"
12442
12443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 int i;
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455 xorg_cv_cc_flag_unknown_warning_option=yes
12456 else
12457 xorg_cv_cc_flag_unknown_warning_option=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12464 CFLAGS="$xorg_testset_save_CFLAGS"
12465 fi
12466
12467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12470 fi
12471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 int i;
12480 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482 xorg_cv_cc_flag_unused_command_line_argument=yes
12483 else
12484 xorg_cv_cc_flag_unused_command_line_argument=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12491 CFLAGS="$xorg_testset_save_CFLAGS"
12492 fi
12493
12494 found="no"
12495
12496 if test $found = "no" ; then
12497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499 fi
12500
12501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12503 fi
12504
12505 CFLAGS="$CFLAGS -Wmissing-prototypes"
12506
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12508 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12509 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12510 if eval \${$cacheid+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 int i;
12516 int
12517 main ()
12518 {
12519
12520 ;
12521 return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 eval $cacheid=yes
12526 else
12527 eval $cacheid=no
12528 fi
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 fi
12532
12533
12534 CFLAGS="$xorg_testset_save_CFLAGS"
12535
12536 eval supported=\$$cacheid
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12538 $as_echo "$supported" >&6; }
12539 if test "$supported" = "yes" ; then
12540 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12541 found="yes"
12542 fi
12543 fi
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 xorg_testset_save_CFLAGS="$CFLAGS"
12560
12561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int i;
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 xorg_cv_cc_flag_unknown_warning_option=yes
12574 else
12575 xorg_cv_cc_flag_unknown_warning_option=no
12576 fi
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12582 CFLAGS="$xorg_testset_save_CFLAGS"
12583 fi
12584
12585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588 fi
12589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 int i;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 xorg_cv_cc_flag_unused_command_line_argument=yes
12601 else
12602 xorg_cv_cc_flag_unused_command_line_argument=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12609 CFLAGS="$xorg_testset_save_CFLAGS"
12610 fi
12611
12612 found="no"
12613
12614 if test $found = "no" ; then
12615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617 fi
12618
12619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12621 fi
12622
12623 CFLAGS="$CFLAGS -Wnested-externs"
12624
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12626 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12627 cacheid=xorg_cv_cc_flag__Wnested_externs
12628 if eval \${$cacheid+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 int i;
12634 int
12635 main ()
12636 {
12637
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 eval $cacheid=yes
12644 else
12645 eval $cacheid=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 fi
12650
12651
12652 CFLAGS="$xorg_testset_save_CFLAGS"
12653
12654 eval supported=\$$cacheid
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12656 $as_echo "$supported" >&6; }
12657 if test "$supported" = "yes" ; then
12658 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12659 found="yes"
12660 fi
12661 fi
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677 xorg_testset_save_CFLAGS="$CFLAGS"
12678
12679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 int i;
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691 xorg_cv_cc_flag_unknown_warning_option=yes
12692 else
12693 xorg_cv_cc_flag_unknown_warning_option=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12700 CFLAGS="$xorg_testset_save_CFLAGS"
12701 fi
12702
12703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12706 fi
12707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715 int i;
12716 _ACEOF
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 xorg_cv_cc_flag_unused_command_line_argument=yes
12719 else
12720 xorg_cv_cc_flag_unused_command_line_argument=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12727 CFLAGS="$xorg_testset_save_CFLAGS"
12728 fi
12729
12730 found="no"
12731
12732 if test $found = "no" ; then
12733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12735 fi
12736
12737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12739 fi
12740
12741 CFLAGS="$CFLAGS -Wbad-function-cast"
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12744 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12745 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12746 if eval \${$cacheid+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 int i;
12752 int
12753 main ()
12754 {
12755
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_link "$LINENO"; then :
12761 eval $cacheid=yes
12762 else
12763 eval $cacheid=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext \
12766 conftest$ac_exeext conftest.$ac_ext
12767 fi
12768
12769
12770 CFLAGS="$xorg_testset_save_CFLAGS"
12771
12772 eval supported=\$$cacheid
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12774 $as_echo "$supported" >&6; }
12775 if test "$supported" = "yes" ; then
12776 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12777 found="yes"
12778 fi
12779 fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795 xorg_testset_save_CFLAGS="$CFLAGS"
12796
12797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806 int i;
12807 _ACEOF
12808 if ac_fn_c_try_compile "$LINENO"; then :
12809 xorg_cv_cc_flag_unknown_warning_option=yes
12810 else
12811 xorg_cv_cc_flag_unknown_warning_option=no
12812 fi
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12818 CFLAGS="$xorg_testset_save_CFLAGS"
12819 fi
12820
12821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12824 fi
12825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 int i;
12834 _ACEOF
12835 if ac_fn_c_try_compile "$LINENO"; then :
12836 xorg_cv_cc_flag_unused_command_line_argument=yes
12837 else
12838 xorg_cv_cc_flag_unused_command_line_argument=no
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12845 CFLAGS="$xorg_testset_save_CFLAGS"
12846 fi
12847
12848 found="no"
12849
12850 if test $found = "no" ; then
12851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853 fi
12854
12855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12857 fi
12858
12859 CFLAGS="$CFLAGS -Wold-style-definition"
12860
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12862 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12863 cacheid=xorg_cv_cc_flag__Wold_style_definition
12864 if eval \${$cacheid+:} false; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 int i;
12870 int
12871 main ()
12872 {
12873
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 eval $cacheid=yes
12880 else
12881 eval $cacheid=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 fi
12886
12887
12888 CFLAGS="$xorg_testset_save_CFLAGS"
12889
12890 eval supported=\$$cacheid
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12892 $as_echo "$supported" >&6; }
12893 if test "$supported" = "yes" ; then
12894 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12895 found="yes"
12896 fi
12897 fi
12898
12899 if test $found = "no" ; then
12900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12902 fi
12903
12904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12906 fi
12907
12908 CFLAGS="$CFLAGS -fd"
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12911 $as_echo_n "checking if $CC supports -fd... " >&6; }
12912 cacheid=xorg_cv_cc_flag__fd
12913 if eval \${$cacheid+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 int i;
12919 int
12920 main ()
12921 {
12922
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 eval $cacheid=yes
12929 else
12930 eval $cacheid=no
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 fi
12935
12936
12937 CFLAGS="$xorg_testset_save_CFLAGS"
12938
12939 eval supported=\$$cacheid
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12941 $as_echo "$supported" >&6; }
12942 if test "$supported" = "yes" ; then
12943 BASE_CFLAGS="$BASE_CFLAGS -fd"
12944 found="yes"
12945 fi
12946 fi
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962 xorg_testset_save_CFLAGS="$CFLAGS"
12963
12964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 int i;
12974 _ACEOF
12975 if ac_fn_c_try_compile "$LINENO"; then :
12976 xorg_cv_cc_flag_unknown_warning_option=yes
12977 else
12978 xorg_cv_cc_flag_unknown_warning_option=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 fi
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12985 CFLAGS="$xorg_testset_save_CFLAGS"
12986 fi
12987
12988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12991 fi
12992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 int i;
13001 _ACEOF
13002 if ac_fn_c_try_compile "$LINENO"; then :
13003 xorg_cv_cc_flag_unused_command_line_argument=yes
13004 else
13005 xorg_cv_cc_flag_unused_command_line_argument=no
13006 fi
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 fi
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13012 CFLAGS="$xorg_testset_save_CFLAGS"
13013 fi
13014
13015 found="no"
13016
13017 if test $found = "no" ; then
13018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13020 fi
13021
13022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13024 fi
13025
13026 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13027
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13029 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13030 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13031 if eval \${$cacheid+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13036 int i;
13037 int
13038 main ()
13039 {
13040
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_link "$LINENO"; then :
13046 eval $cacheid=yes
13047 else
13048 eval $cacheid=no
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 fi
13053
13054
13055 CFLAGS="$xorg_testset_save_CFLAGS"
13056
13057 eval supported=\$$cacheid
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13059 $as_echo "$supported" >&6; }
13060 if test "$supported" = "yes" ; then
13061 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13062 found="yes"
13063 fi
13064 fi
13065
13066
13067
13068
13069
13070 # This chunk adds additional warnings that could catch undesired effects.
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084 xorg_testset_save_CFLAGS="$CFLAGS"
13085
13086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 int i;
13096 _ACEOF
13097 if ac_fn_c_try_compile "$LINENO"; then :
13098 xorg_cv_cc_flag_unknown_warning_option=yes
13099 else
13100 xorg_cv_cc_flag_unknown_warning_option=no
13101 fi
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13107 CFLAGS="$xorg_testset_save_CFLAGS"
13108 fi
13109
13110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13113 fi
13114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13122 int i;
13123 _ACEOF
13124 if ac_fn_c_try_compile "$LINENO"; then :
13125 xorg_cv_cc_flag_unused_command_line_argument=yes
13126 else
13127 xorg_cv_cc_flag_unused_command_line_argument=no
13128 fi
13129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13134 CFLAGS="$xorg_testset_save_CFLAGS"
13135 fi
13136
13137 found="no"
13138
13139 if test $found = "no" ; then
13140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13142 fi
13143
13144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13146 fi
13147
13148 CFLAGS="$CFLAGS -Wunused"
13149
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13151 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13152 cacheid=xorg_cv_cc_flag__Wunused
13153 if eval \${$cacheid+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 int i;
13159 int
13160 main ()
13161 {
13162
13163 ;
13164 return 0;
13165 }
13166 _ACEOF
13167 if ac_fn_c_try_link "$LINENO"; then :
13168 eval $cacheid=yes
13169 else
13170 eval $cacheid=no
13171 fi
13172 rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13174 fi
13175
13176
13177 CFLAGS="$xorg_testset_save_CFLAGS"
13178
13179 eval supported=\$$cacheid
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13181 $as_echo "$supported" >&6; }
13182 if test "$supported" = "yes" ; then
13183 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13184 found="yes"
13185 fi
13186 fi
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202 xorg_testset_save_CFLAGS="$CFLAGS"
13203
13204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213 int i;
13214 _ACEOF
13215 if ac_fn_c_try_compile "$LINENO"; then :
13216 xorg_cv_cc_flag_unknown_warning_option=yes
13217 else
13218 xorg_cv_cc_flag_unknown_warning_option=no
13219 fi
13220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13225 CFLAGS="$xorg_testset_save_CFLAGS"
13226 fi
13227
13228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13231 fi
13232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240 int i;
13241 _ACEOF
13242 if ac_fn_c_try_compile "$LINENO"; then :
13243 xorg_cv_cc_flag_unused_command_line_argument=yes
13244 else
13245 xorg_cv_cc_flag_unused_command_line_argument=no
13246 fi
13247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13252 CFLAGS="$xorg_testset_save_CFLAGS"
13253 fi
13254
13255 found="no"
13256
13257 if test $found = "no" ; then
13258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260 fi
13261
13262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13264 fi
13265
13266 CFLAGS="$CFLAGS -Wuninitialized"
13267
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13269 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13270 cacheid=xorg_cv_cc_flag__Wuninitialized
13271 if eval \${$cacheid+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 int i;
13277 int
13278 main ()
13279 {
13280
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_link "$LINENO"; then :
13286 eval $cacheid=yes
13287 else
13288 eval $cacheid=no
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13292 fi
13293
13294
13295 CFLAGS="$xorg_testset_save_CFLAGS"
13296
13297 eval supported=\$$cacheid
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13299 $as_echo "$supported" >&6; }
13300 if test "$supported" = "yes" ; then
13301 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13302 found="yes"
13303 fi
13304 fi
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320 xorg_testset_save_CFLAGS="$CFLAGS"
13321
13322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331 int i;
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"; then :
13334 xorg_cv_cc_flag_unknown_warning_option=yes
13335 else
13336 xorg_cv_cc_flag_unknown_warning_option=no
13337 fi
13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 fi
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13343 CFLAGS="$xorg_testset_save_CFLAGS"
13344 fi
13345
13346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13349 fi
13350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 int i;
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361 xorg_cv_cc_flag_unused_command_line_argument=yes
13362 else
13363 xorg_cv_cc_flag_unused_command_line_argument=no
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 fi
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13370 CFLAGS="$xorg_testset_save_CFLAGS"
13371 fi
13372
13373 found="no"
13374
13375 if test $found = "no" ; then
13376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13378 fi
13379
13380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13382 fi
13383
13384 CFLAGS="$CFLAGS -Wshadow"
13385
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13387 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13388 cacheid=xorg_cv_cc_flag__Wshadow
13389 if eval \${$cacheid+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 int i;
13395 int
13396 main ()
13397 {
13398
13399 ;
13400 return 0;
13401 }
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"; then :
13404 eval $cacheid=yes
13405 else
13406 eval $cacheid=no
13407 fi
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410 fi
13411
13412
13413 CFLAGS="$xorg_testset_save_CFLAGS"
13414
13415 eval supported=\$$cacheid
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13417 $as_echo "$supported" >&6; }
13418 if test "$supported" = "yes" ; then
13419 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13420 found="yes"
13421 fi
13422 fi
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438 xorg_testset_save_CFLAGS="$CFLAGS"
13439
13440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 int i;
13450 _ACEOF
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 xorg_cv_cc_flag_unknown_warning_option=yes
13453 else
13454 xorg_cv_cc_flag_unknown_warning_option=no
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13461 CFLAGS="$xorg_testset_save_CFLAGS"
13462 fi
13463
13464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467 fi
13468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 int i;
13477 _ACEOF
13478 if ac_fn_c_try_compile "$LINENO"; then :
13479 xorg_cv_cc_flag_unused_command_line_argument=yes
13480 else
13481 xorg_cv_cc_flag_unused_command_line_argument=no
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13488 CFLAGS="$xorg_testset_save_CFLAGS"
13489 fi
13490
13491 found="no"
13492
13493 if test $found = "no" ; then
13494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13496 fi
13497
13498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13500 fi
13501
13502 CFLAGS="$CFLAGS -Wmissing-noreturn"
13503
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13505 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13506 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13507 if eval \${$cacheid+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 int i;
13513 int
13514 main ()
13515 {
13516
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522 eval $cacheid=yes
13523 else
13524 eval $cacheid=no
13525 fi
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 fi
13529
13530
13531 CFLAGS="$xorg_testset_save_CFLAGS"
13532
13533 eval supported=\$$cacheid
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13535 $as_echo "$supported" >&6; }
13536 if test "$supported" = "yes" ; then
13537 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13538 found="yes"
13539 fi
13540 fi
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556 xorg_testset_save_CFLAGS="$CFLAGS"
13557
13558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 int i;
13568 _ACEOF
13569 if ac_fn_c_try_compile "$LINENO"; then :
13570 xorg_cv_cc_flag_unknown_warning_option=yes
13571 else
13572 xorg_cv_cc_flag_unknown_warning_option=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13579 CFLAGS="$xorg_testset_save_CFLAGS"
13580 fi
13581
13582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585 fi
13586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 int i;
13595 _ACEOF
13596 if ac_fn_c_try_compile "$LINENO"; then :
13597 xorg_cv_cc_flag_unused_command_line_argument=yes
13598 else
13599 xorg_cv_cc_flag_unused_command_line_argument=no
13600 fi
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13606 CFLAGS="$xorg_testset_save_CFLAGS"
13607 fi
13608
13609 found="no"
13610
13611 if test $found = "no" ; then
13612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13614 fi
13615
13616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13618 fi
13619
13620 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13621
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13623 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13624 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13625 if eval \${$cacheid+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630 int i;
13631 int
13632 main ()
13633 {
13634
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 eval $cacheid=yes
13641 else
13642 eval $cacheid=no
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13646 fi
13647
13648
13649 CFLAGS="$xorg_testset_save_CFLAGS"
13650
13651 eval supported=\$$cacheid
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13653 $as_echo "$supported" >&6; }
13654 if test "$supported" = "yes" ; then
13655 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13656 found="yes"
13657 fi
13658 fi
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674 xorg_testset_save_CFLAGS="$CFLAGS"
13675
13676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 int i;
13686 _ACEOF
13687 if ac_fn_c_try_compile "$LINENO"; then :
13688 xorg_cv_cc_flag_unknown_warning_option=yes
13689 else
13690 xorg_cv_cc_flag_unknown_warning_option=no
13691 fi
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13697 CFLAGS="$xorg_testset_save_CFLAGS"
13698 fi
13699
13700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13703 fi
13704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 int i;
13713 _ACEOF
13714 if ac_fn_c_try_compile "$LINENO"; then :
13715 xorg_cv_cc_flag_unused_command_line_argument=yes
13716 else
13717 xorg_cv_cc_flag_unused_command_line_argument=no
13718 fi
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13724 CFLAGS="$xorg_testset_save_CFLAGS"
13725 fi
13726
13727 found="no"
13728
13729 if test $found = "no" ; then
13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732 fi
13733
13734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13736 fi
13737
13738 CFLAGS="$CFLAGS -Wredundant-decls"
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13741 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13742 cacheid=xorg_cv_cc_flag__Wredundant_decls
13743 if eval \${$cacheid+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 int i;
13749 int
13750 main ()
13751 {
13752
13753 ;
13754 return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_c_try_link "$LINENO"; then :
13758 eval $cacheid=yes
13759 else
13760 eval $cacheid=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext \
13763 conftest$ac_exeext conftest.$ac_ext
13764 fi
13765
13766
13767 CFLAGS="$xorg_testset_save_CFLAGS"
13768
13769 eval supported=\$$cacheid
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13771 $as_echo "$supported" >&6; }
13772 if test "$supported" = "yes" ; then
13773 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13774 found="yes"
13775 fi
13776 fi
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792 xorg_testset_save_CFLAGS="$CFLAGS"
13793
13794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 int i;
13804 _ACEOF
13805 if ac_fn_c_try_compile "$LINENO"; then :
13806 xorg_cv_cc_flag_unknown_warning_option=yes
13807 else
13808 xorg_cv_cc_flag_unknown_warning_option=no
13809 fi
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13815 CFLAGS="$xorg_testset_save_CFLAGS"
13816 fi
13817
13818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13821 fi
13822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 int i;
13831 _ACEOF
13832 if ac_fn_c_try_compile "$LINENO"; then :
13833 xorg_cv_cc_flag_unused_command_line_argument=yes
13834 else
13835 xorg_cv_cc_flag_unused_command_line_argument=no
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13842 CFLAGS="$xorg_testset_save_CFLAGS"
13843 fi
13844
13845 found="no"
13846
13847 if test $found = "no" ; then
13848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13850 fi
13851
13852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13854 fi
13855
13856 CFLAGS="$CFLAGS -Wlogical-op"
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13859 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13860 cacheid=xorg_cv_cc_flag__Wlogical_op
13861 if eval \${$cacheid+:} false; then :
13862 $as_echo_n "(cached) " >&6
13863 else
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13866 int i;
13867 int
13868 main ()
13869 {
13870
13871 ;
13872 return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_link "$LINENO"; then :
13876 eval $cacheid=yes
13877 else
13878 eval $cacheid=no
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext \
13881 conftest$ac_exeext conftest.$ac_ext
13882 fi
13883
13884
13885 CFLAGS="$xorg_testset_save_CFLAGS"
13886
13887 eval supported=\$$cacheid
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13889 $as_echo "$supported" >&6; }
13890 if test "$supported" = "yes" ; then
13891 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13892 found="yes"
13893 fi
13894 fi
13895
13896
13897
13898 # These are currently disabled because they are noisy. They will be enabled
13899 # in the future once the codebase is sufficiently modernized to silence
13900 # them. For now, I don't want them to drown out the other warnings.
13901 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13902 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13903 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13904
13905 # Turn some warnings into errors, so we don't accidently get successful builds
13906 # when there are problems that should be fixed.
13907
13908 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922 xorg_testset_save_CFLAGS="$CFLAGS"
13923
13924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 int i;
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 xorg_cv_cc_flag_unknown_warning_option=yes
13937 else
13938 xorg_cv_cc_flag_unknown_warning_option=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13945 CFLAGS="$xorg_testset_save_CFLAGS"
13946 fi
13947
13948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13951 fi
13952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int i;
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"; then :
13963 xorg_cv_cc_flag_unused_command_line_argument=yes
13964 else
13965 xorg_cv_cc_flag_unused_command_line_argument=no
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13972 CFLAGS="$xorg_testset_save_CFLAGS"
13973 fi
13974
13975 found="no"
13976
13977 if test $found = "no" ; then
13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980 fi
13981
13982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13984 fi
13985
13986 CFLAGS="$CFLAGS -Werror=implicit"
13987
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13989 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13990 cacheid=xorg_cv_cc_flag__Werror_implicit
13991 if eval \${$cacheid+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 int i;
13997 int
13998 main ()
13999 {
14000
14001 ;
14002 return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 eval $cacheid=yes
14007 else
14008 eval $cacheid=no
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 fi
14013
14014
14015 CFLAGS="$xorg_testset_save_CFLAGS"
14016
14017 eval supported=\$$cacheid
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14019 $as_echo "$supported" >&6; }
14020 if test "$supported" = "yes" ; then
14021 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14022 found="yes"
14023 fi
14024 fi
14025
14026 if test $found = "no" ; then
14027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14029 fi
14030
14031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14033 fi
14034
14035 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14038 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14039 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14040 if eval \${$cacheid+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 int i;
14046 int
14047 main ()
14048 {
14049
14050 ;
14051 return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_link "$LINENO"; then :
14055 eval $cacheid=yes
14056 else
14057 eval $cacheid=no
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 fi
14062
14063
14064 CFLAGS="$xorg_testset_save_CFLAGS"
14065
14066 eval supported=\$$cacheid
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14068 $as_echo "$supported" >&6; }
14069 if test "$supported" = "yes" ; then
14070 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14071 found="yes"
14072 fi
14073 fi
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089 xorg_testset_save_CFLAGS="$CFLAGS"
14090
14091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 int i;
14101 _ACEOF
14102 if ac_fn_c_try_compile "$LINENO"; then :
14103 xorg_cv_cc_flag_unknown_warning_option=yes
14104 else
14105 xorg_cv_cc_flag_unknown_warning_option=no
14106 fi
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14112 CFLAGS="$xorg_testset_save_CFLAGS"
14113 fi
14114
14115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14118 fi
14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 int i;
14128 _ACEOF
14129 if ac_fn_c_try_compile "$LINENO"; then :
14130 xorg_cv_cc_flag_unused_command_line_argument=yes
14131 else
14132 xorg_cv_cc_flag_unused_command_line_argument=no
14133 fi
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 fi
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14139 CFLAGS="$xorg_testset_save_CFLAGS"
14140 fi
14141
14142 found="no"
14143
14144 if test $found = "no" ; then
14145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14147 fi
14148
14149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14151 fi
14152
14153 CFLAGS="$CFLAGS -Werror=nonnull"
14154
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14156 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14157 cacheid=xorg_cv_cc_flag__Werror_nonnull
14158 if eval \${$cacheid+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 int i;
14164 int
14165 main ()
14166 {
14167
14168 ;
14169 return 0;
14170 }
14171 _ACEOF
14172 if ac_fn_c_try_link "$LINENO"; then :
14173 eval $cacheid=yes
14174 else
14175 eval $cacheid=no
14176 fi
14177 rm -f core conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179 fi
14180
14181
14182 CFLAGS="$xorg_testset_save_CFLAGS"
14183
14184 eval supported=\$$cacheid
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14186 $as_echo "$supported" >&6; }
14187 if test "$supported" = "yes" ; then
14188 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14189 found="yes"
14190 fi
14191 fi
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207 xorg_testset_save_CFLAGS="$CFLAGS"
14208
14209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 int i;
14219 _ACEOF
14220 if ac_fn_c_try_compile "$LINENO"; then :
14221 xorg_cv_cc_flag_unknown_warning_option=yes
14222 else
14223 xorg_cv_cc_flag_unknown_warning_option=no
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14230 CFLAGS="$xorg_testset_save_CFLAGS"
14231 fi
14232
14233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14236 fi
14237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14241 $as_echo_n "(cached) " >&6
14242 else
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245 int i;
14246 _ACEOF
14247 if ac_fn_c_try_compile "$LINENO"; then :
14248 xorg_cv_cc_flag_unused_command_line_argument=yes
14249 else
14250 xorg_cv_cc_flag_unused_command_line_argument=no
14251 fi
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 fi
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14257 CFLAGS="$xorg_testset_save_CFLAGS"
14258 fi
14259
14260 found="no"
14261
14262 if test $found = "no" ; then
14263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14265 fi
14266
14267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14269 fi
14270
14271 CFLAGS="$CFLAGS -Werror=init-self"
14272
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14274 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14275 cacheid=xorg_cv_cc_flag__Werror_init_self
14276 if eval \${$cacheid+:} false; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 int i;
14282 int
14283 main ()
14284 {
14285
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"; then :
14291 eval $cacheid=yes
14292 else
14293 eval $cacheid=no
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 fi
14298
14299
14300 CFLAGS="$xorg_testset_save_CFLAGS"
14301
14302 eval supported=\$$cacheid
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14304 $as_echo "$supported" >&6; }
14305 if test "$supported" = "yes" ; then
14306 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14307 found="yes"
14308 fi
14309 fi
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325 xorg_testset_save_CFLAGS="$CFLAGS"
14326
14327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14330 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14331 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 int i;
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339 xorg_cv_cc_flag_unknown_warning_option=yes
14340 else
14341 xorg_cv_cc_flag_unknown_warning_option=no
14342 fi
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14346 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14348 CFLAGS="$xorg_testset_save_CFLAGS"
14349 fi
14350
14351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14354 fi
14355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14357 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14358 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 int i;
14364 _ACEOF
14365 if ac_fn_c_try_compile "$LINENO"; then :
14366 xorg_cv_cc_flag_unused_command_line_argument=yes
14367 else
14368 xorg_cv_cc_flag_unused_command_line_argument=no
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14373 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14375 CFLAGS="$xorg_testset_save_CFLAGS"
14376 fi
14377
14378 found="no"
14379
14380 if test $found = "no" ; then
14381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14383 fi
14384
14385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14387 fi
14388
14389 CFLAGS="$CFLAGS -Werror=main"
14390
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14392 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14393 cacheid=xorg_cv_cc_flag__Werror_main
14394 if eval \${$cacheid+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399 int i;
14400 int
14401 main ()
14402 {
14403
14404 ;
14405 return 0;
14406 }
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 eval $cacheid=yes
14410 else
14411 eval $cacheid=no
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 fi
14416
14417
14418 CFLAGS="$xorg_testset_save_CFLAGS"
14419
14420 eval supported=\$$cacheid
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14422 $as_echo "$supported" >&6; }
14423 if test "$supported" = "yes" ; then
14424 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14425 found="yes"
14426 fi
14427 fi
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443 xorg_testset_save_CFLAGS="$CFLAGS"
14444
14445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14448 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14449 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454 int i;
14455 _ACEOF
14456 if ac_fn_c_try_compile "$LINENO"; then :
14457 xorg_cv_cc_flag_unknown_warning_option=yes
14458 else
14459 xorg_cv_cc_flag_unknown_warning_option=no
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14464 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14466 CFLAGS="$xorg_testset_save_CFLAGS"
14467 fi
14468
14469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14472 fi
14473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14475 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14476 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 int i;
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 xorg_cv_cc_flag_unused_command_line_argument=yes
14485 else
14486 xorg_cv_cc_flag_unused_command_line_argument=no
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 fi
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14491 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14493 CFLAGS="$xorg_testset_save_CFLAGS"
14494 fi
14495
14496 found="no"
14497
14498 if test $found = "no" ; then
14499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14501 fi
14502
14503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14505 fi
14506
14507 CFLAGS="$CFLAGS -Werror=missing-braces"
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14510 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14511 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14512 if eval \${$cacheid+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 int i;
14518 int
14519 main ()
14520 {
14521
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 if ac_fn_c_try_link "$LINENO"; then :
14527 eval $cacheid=yes
14528 else
14529 eval $cacheid=no
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14533 fi
14534
14535
14536 CFLAGS="$xorg_testset_save_CFLAGS"
14537
14538 eval supported=\$$cacheid
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14540 $as_echo "$supported" >&6; }
14541 if test "$supported" = "yes" ; then
14542 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14543 found="yes"
14544 fi
14545 fi
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561 xorg_testset_save_CFLAGS="$CFLAGS"
14562
14563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14572 int i;
14573 _ACEOF
14574 if ac_fn_c_try_compile "$LINENO"; then :
14575 xorg_cv_cc_flag_unknown_warning_option=yes
14576 else
14577 xorg_cv_cc_flag_unknown_warning_option=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 fi
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14584 CFLAGS="$xorg_testset_save_CFLAGS"
14585 fi
14586
14587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14590 fi
14591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 int i;
14600 _ACEOF
14601 if ac_fn_c_try_compile "$LINENO"; then :
14602 xorg_cv_cc_flag_unused_command_line_argument=yes
14603 else
14604 xorg_cv_cc_flag_unused_command_line_argument=no
14605 fi
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 fi
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14611 CFLAGS="$xorg_testset_save_CFLAGS"
14612 fi
14613
14614 found="no"
14615
14616 if test $found = "no" ; then
14617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14619 fi
14620
14621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14623 fi
14624
14625 CFLAGS="$CFLAGS -Werror=sequence-point"
14626
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14628 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14629 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14630 if eval \${$cacheid+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635 int i;
14636 int
14637 main ()
14638 {
14639
14640 ;
14641 return 0;
14642 }
14643 _ACEOF
14644 if ac_fn_c_try_link "$LINENO"; then :
14645 eval $cacheid=yes
14646 else
14647 eval $cacheid=no
14648 fi
14649 rm -f core conftest.err conftest.$ac_objext \
14650 conftest$ac_exeext conftest.$ac_ext
14651 fi
14652
14653
14654 CFLAGS="$xorg_testset_save_CFLAGS"
14655
14656 eval supported=\$$cacheid
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14658 $as_echo "$supported" >&6; }
14659 if test "$supported" = "yes" ; then
14660 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14661 found="yes"
14662 fi
14663 fi
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679 xorg_testset_save_CFLAGS="$CFLAGS"
14680
14681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 int i;
14691 _ACEOF
14692 if ac_fn_c_try_compile "$LINENO"; then :
14693 xorg_cv_cc_flag_unknown_warning_option=yes
14694 else
14695 xorg_cv_cc_flag_unknown_warning_option=no
14696 fi
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14702 CFLAGS="$xorg_testset_save_CFLAGS"
14703 fi
14704
14705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14708 fi
14709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14717 int i;
14718 _ACEOF
14719 if ac_fn_c_try_compile "$LINENO"; then :
14720 xorg_cv_cc_flag_unused_command_line_argument=yes
14721 else
14722 xorg_cv_cc_flag_unused_command_line_argument=no
14723 fi
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 fi
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14729 CFLAGS="$xorg_testset_save_CFLAGS"
14730 fi
14731
14732 found="no"
14733
14734 if test $found = "no" ; then
14735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14737 fi
14738
14739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14741 fi
14742
14743 CFLAGS="$CFLAGS -Werror=return-type"
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14746 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14747 cacheid=xorg_cv_cc_flag__Werror_return_type
14748 if eval \${$cacheid+:} false; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 int i;
14754 int
14755 main ()
14756 {
14757
14758 ;
14759 return 0;
14760 }
14761 _ACEOF
14762 if ac_fn_c_try_link "$LINENO"; then :
14763 eval $cacheid=yes
14764 else
14765 eval $cacheid=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext \
14768 conftest$ac_exeext conftest.$ac_ext
14769 fi
14770
14771
14772 CFLAGS="$xorg_testset_save_CFLAGS"
14773
14774 eval supported=\$$cacheid
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14776 $as_echo "$supported" >&6; }
14777 if test "$supported" = "yes" ; then
14778 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14779 found="yes"
14780 fi
14781 fi
14782
14783 if test $found = "no" ; then
14784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14786 fi
14787
14788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14790 fi
14791
14792 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14793
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14795 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14796 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14797 if eval \${$cacheid+:} false; then :
14798 $as_echo_n "(cached) " >&6
14799 else
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 int i;
14803 int
14804 main ()
14805 {
14806
14807 ;
14808 return 0;
14809 }
14810 _ACEOF
14811 if ac_fn_c_try_link "$LINENO"; then :
14812 eval $cacheid=yes
14813 else
14814 eval $cacheid=no
14815 fi
14816 rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
14818 fi
14819
14820
14821 CFLAGS="$xorg_testset_save_CFLAGS"
14822
14823 eval supported=\$$cacheid
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14825 $as_echo "$supported" >&6; }
14826 if test "$supported" = "yes" ; then
14827 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14828 found="yes"
14829 fi
14830 fi
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846 xorg_testset_save_CFLAGS="$CFLAGS"
14847
14848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14857 int i;
14858 _ACEOF
14859 if ac_fn_c_try_compile "$LINENO"; then :
14860 xorg_cv_cc_flag_unknown_warning_option=yes
14861 else
14862 xorg_cv_cc_flag_unknown_warning_option=no
14863 fi
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14869 CFLAGS="$xorg_testset_save_CFLAGS"
14870 fi
14871
14872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14875 fi
14876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14884 int i;
14885 _ACEOF
14886 if ac_fn_c_try_compile "$LINENO"; then :
14887 xorg_cv_cc_flag_unused_command_line_argument=yes
14888 else
14889 xorg_cv_cc_flag_unused_command_line_argument=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14896 CFLAGS="$xorg_testset_save_CFLAGS"
14897 fi
14898
14899 found="no"
14900
14901 if test $found = "no" ; then
14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14904 fi
14905
14906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14908 fi
14909
14910 CFLAGS="$CFLAGS -Werror=trigraphs"
14911
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14913 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14914 cacheid=xorg_cv_cc_flag__Werror_trigraphs
14915 if eval \${$cacheid+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 int i;
14921 int
14922 main ()
14923 {
14924
14925 ;
14926 return 0;
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_link "$LINENO"; then :
14930 eval $cacheid=yes
14931 else
14932 eval $cacheid=no
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext \
14935 conftest$ac_exeext conftest.$ac_ext
14936 fi
14937
14938
14939 CFLAGS="$xorg_testset_save_CFLAGS"
14940
14941 eval supported=\$$cacheid
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14943 $as_echo "$supported" >&6; }
14944 if test "$supported" = "yes" ; then
14945 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14946 found="yes"
14947 fi
14948 fi
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964 xorg_testset_save_CFLAGS="$CFLAGS"
14965
14966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14975 int i;
14976 _ACEOF
14977 if ac_fn_c_try_compile "$LINENO"; then :
14978 xorg_cv_cc_flag_unknown_warning_option=yes
14979 else
14980 xorg_cv_cc_flag_unknown_warning_option=no
14981 fi
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14987 CFLAGS="$xorg_testset_save_CFLAGS"
14988 fi
14989
14990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14993 fi
14994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 int i;
15003 _ACEOF
15004 if ac_fn_c_try_compile "$LINENO"; then :
15005 xorg_cv_cc_flag_unused_command_line_argument=yes
15006 else
15007 xorg_cv_cc_flag_unused_command_line_argument=no
15008 fi
15009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 fi
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15014 CFLAGS="$xorg_testset_save_CFLAGS"
15015 fi
15016
15017 found="no"
15018
15019 if test $found = "no" ; then
15020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022 fi
15023
15024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15026 fi
15027
15028 CFLAGS="$CFLAGS -Werror=array-bounds"
15029
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15031 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15032 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15033 if eval \${$cacheid+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 int i;
15039 int
15040 main ()
15041 {
15042
15043 ;
15044 return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"; then :
15048 eval $cacheid=yes
15049 else
15050 eval $cacheid=no
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15054 fi
15055
15056
15057 CFLAGS="$xorg_testset_save_CFLAGS"
15058
15059 eval supported=\$$cacheid
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15061 $as_echo "$supported" >&6; }
15062 if test "$supported" = "yes" ; then
15063 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15064 found="yes"
15065 fi
15066 fi
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082 xorg_testset_save_CFLAGS="$CFLAGS"
15083
15084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15088 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
15095 if ac_fn_c_try_compile "$LINENO"; then :
15096 xorg_cv_cc_flag_unknown_warning_option=yes
15097 else
15098 xorg_cv_cc_flag_unknown_warning_option=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 fi
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15105 CFLAGS="$xorg_testset_save_CFLAGS"
15106 fi
15107
15108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15111 fi
15112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15120 int i;
15121 _ACEOF
15122 if ac_fn_c_try_compile "$LINENO"; then :
15123 xorg_cv_cc_flag_unused_command_line_argument=yes
15124 else
15125 xorg_cv_cc_flag_unused_command_line_argument=no
15126 fi
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 fi
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15132 CFLAGS="$xorg_testset_save_CFLAGS"
15133 fi
15134
15135 found="no"
15136
15137 if test $found = "no" ; then
15138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15140 fi
15141
15142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15144 fi
15145
15146 CFLAGS="$CFLAGS -Werror=write-strings"
15147
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15149 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15150 cacheid=xorg_cv_cc_flag__Werror_write_strings
15151 if eval \${$cacheid+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15156 int i;
15157 int
15158 main ()
15159 {
15160
15161 ;
15162 return 0;
15163 }
15164 _ACEOF
15165 if ac_fn_c_try_link "$LINENO"; then :
15166 eval $cacheid=yes
15167 else
15168 eval $cacheid=no
15169 fi
15170 rm -f core conftest.err conftest.$ac_objext \
15171 conftest$ac_exeext conftest.$ac_ext
15172 fi
15173
15174
15175 CFLAGS="$xorg_testset_save_CFLAGS"
15176
15177 eval supported=\$$cacheid
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15179 $as_echo "$supported" >&6; }
15180 if test "$supported" = "yes" ; then
15181 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15182 found="yes"
15183 fi
15184 fi
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200 xorg_testset_save_CFLAGS="$CFLAGS"
15201
15202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15207 $as_echo_n "(cached) " >&6
15208 else
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 int i;
15212 _ACEOF
15213 if ac_fn_c_try_compile "$LINENO"; then :
15214 xorg_cv_cc_flag_unknown_warning_option=yes
15215 else
15216 xorg_cv_cc_flag_unknown_warning_option=no
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 fi
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15223 CFLAGS="$xorg_testset_save_CFLAGS"
15224 fi
15225
15226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15229 fi
15230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15234 $as_echo_n "(cached) " >&6
15235 else
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238 int i;
15239 _ACEOF
15240 if ac_fn_c_try_compile "$LINENO"; then :
15241 xorg_cv_cc_flag_unused_command_line_argument=yes
15242 else
15243 xorg_cv_cc_flag_unused_command_line_argument=no
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15250 CFLAGS="$xorg_testset_save_CFLAGS"
15251 fi
15252
15253 found="no"
15254
15255 if test $found = "no" ; then
15256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15258 fi
15259
15260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15262 fi
15263
15264 CFLAGS="$CFLAGS -Werror=address"
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15267 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15268 cacheid=xorg_cv_cc_flag__Werror_address
15269 if eval \${$cacheid+:} false; then :
15270 $as_echo_n "(cached) " >&6
15271 else
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274 int i;
15275 int
15276 main ()
15277 {
15278
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_c_try_link "$LINENO"; then :
15284 eval $cacheid=yes
15285 else
15286 eval $cacheid=no
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15290 fi
15291
15292
15293 CFLAGS="$xorg_testset_save_CFLAGS"
15294
15295 eval supported=\$$cacheid
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15297 $as_echo "$supported" >&6; }
15298 if test "$supported" = "yes" ; then
15299 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15300 found="yes"
15301 fi
15302 fi
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318 xorg_testset_save_CFLAGS="$CFLAGS"
15319
15320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 int i;
15330 _ACEOF
15331 if ac_fn_c_try_compile "$LINENO"; then :
15332 xorg_cv_cc_flag_unknown_warning_option=yes
15333 else
15334 xorg_cv_cc_flag_unknown_warning_option=no
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15341 CFLAGS="$xorg_testset_save_CFLAGS"
15342 fi
15343
15344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15347 fi
15348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15352 $as_echo_n "(cached) " >&6
15353 else
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15356 int i;
15357 _ACEOF
15358 if ac_fn_c_try_compile "$LINENO"; then :
15359 xorg_cv_cc_flag_unused_command_line_argument=yes
15360 else
15361 xorg_cv_cc_flag_unused_command_line_argument=no
15362 fi
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15368 CFLAGS="$xorg_testset_save_CFLAGS"
15369 fi
15370
15371 found="no"
15372
15373 if test $found = "no" ; then
15374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15376 fi
15377
15378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15380 fi
15381
15382 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15383
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15385 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15386 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15387 if eval \${$cacheid+:} false; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392 int i;
15393 int
15394 main ()
15395 {
15396
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402 eval $cacheid=yes
15403 else
15404 eval $cacheid=no
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 fi
15409
15410
15411 CFLAGS="$xorg_testset_save_CFLAGS"
15412
15413 eval supported=\$$cacheid
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15415 $as_echo "$supported" >&6; }
15416 if test "$supported" = "yes" ; then
15417 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15418 found="yes"
15419 fi
15420 fi
15421
15422 if test $found = "no" ; then
15423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15425 fi
15426
15427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15429 fi
15430
15431 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15432
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15434 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15435 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15436 if eval \${$cacheid+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15441 int i;
15442 int
15443 main ()
15444 {
15445
15446 ;
15447 return 0;
15448 }
15449 _ACEOF
15450 if ac_fn_c_try_link "$LINENO"; then :
15451 eval $cacheid=yes
15452 else
15453 eval $cacheid=no
15454 fi
15455 rm -f core conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
15457 fi
15458
15459
15460 CFLAGS="$xorg_testset_save_CFLAGS"
15461
15462 eval supported=\$$cacheid
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15464 $as_echo "$supported" >&6; }
15465 if test "$supported" = "yes" ; then
15466 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15467 found="yes"
15468 fi
15469 fi
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485 xorg_testset_save_CFLAGS="$CFLAGS"
15486
15487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15496 int i;
15497 _ACEOF
15498 if ac_fn_c_try_compile "$LINENO"; then :
15499 xorg_cv_cc_flag_unknown_warning_option=yes
15500 else
15501 xorg_cv_cc_flag_unknown_warning_option=no
15502 fi
15503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15508 CFLAGS="$xorg_testset_save_CFLAGS"
15509 fi
15510
15511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15514 fi
15515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523 int i;
15524 _ACEOF
15525 if ac_fn_c_try_compile "$LINENO"; then :
15526 xorg_cv_cc_flag_unused_command_line_argument=yes
15527 else
15528 xorg_cv_cc_flag_unused_command_line_argument=no
15529 fi
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15535 CFLAGS="$xorg_testset_save_CFLAGS"
15536 fi
15537
15538 found="no"
15539
15540 if test $found = "no" ; then
15541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15543 fi
15544
15545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15547 fi
15548
15549 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15550
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15552 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15553 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15554 if eval \${$cacheid+:} false; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559 int i;
15560 int
15561 main ()
15562 {
15563
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_link "$LINENO"; then :
15569 eval $cacheid=yes
15570 else
15571 eval $cacheid=no
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext \
15574 conftest$ac_exeext conftest.$ac_ext
15575 fi
15576
15577
15578 CFLAGS="$xorg_testset_save_CFLAGS"
15579
15580 eval supported=\$$cacheid
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15582 $as_echo "$supported" >&6; }
15583 if test "$supported" = "yes" ; then
15584 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15585 found="yes"
15586 fi
15587 fi
15588
15589 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15590 else
15591 { $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
15592 $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;}
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606 xorg_testset_save_CFLAGS="$CFLAGS"
15607
15608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15611 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15612 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15617 int i;
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 xorg_cv_cc_flag_unknown_warning_option=yes
15621 else
15622 xorg_cv_cc_flag_unknown_warning_option=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15627 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15629 CFLAGS="$xorg_testset_save_CFLAGS"
15630 fi
15631
15632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635 fi
15636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15638 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15639 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 int i;
15645 _ACEOF
15646 if ac_fn_c_try_compile "$LINENO"; then :
15647 xorg_cv_cc_flag_unused_command_line_argument=yes
15648 else
15649 xorg_cv_cc_flag_unused_command_line_argument=no
15650 fi
15651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15654 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15656 CFLAGS="$xorg_testset_save_CFLAGS"
15657 fi
15658
15659 found="no"
15660
15661 if test $found = "no" ; then
15662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15664 fi
15665
15666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15668 fi
15669
15670 CFLAGS="$CFLAGS -Wimplicit"
15671
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15673 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15674 cacheid=xorg_cv_cc_flag__Wimplicit
15675 if eval \${$cacheid+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 int i;
15681 int
15682 main ()
15683 {
15684
15685 ;
15686 return 0;
15687 }
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15690 eval $cacheid=yes
15691 else
15692 eval $cacheid=no
15693 fi
15694 rm -f core conftest.err conftest.$ac_objext \
15695 conftest$ac_exeext conftest.$ac_ext
15696 fi
15697
15698
15699 CFLAGS="$xorg_testset_save_CFLAGS"
15700
15701 eval supported=\$$cacheid
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15703 $as_echo "$supported" >&6; }
15704 if test "$supported" = "yes" ; then
15705 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15706 found="yes"
15707 fi
15708 fi
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724 xorg_testset_save_CFLAGS="$CFLAGS"
15725
15726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 int i;
15736 _ACEOF
15737 if ac_fn_c_try_compile "$LINENO"; then :
15738 xorg_cv_cc_flag_unknown_warning_option=yes
15739 else
15740 xorg_cv_cc_flag_unknown_warning_option=no
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15748 fi
15749
15750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753 fi
15754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 int i;
15763 _ACEOF
15764 if ac_fn_c_try_compile "$LINENO"; then :
15765 xorg_cv_cc_flag_unused_command_line_argument=yes
15766 else
15767 xorg_cv_cc_flag_unused_command_line_argument=no
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15774 CFLAGS="$xorg_testset_save_CFLAGS"
15775 fi
15776
15777 found="no"
15778
15779 if test $found = "no" ; then
15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782 fi
15783
15784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15786 fi
15787
15788 CFLAGS="$CFLAGS -Wnonnull"
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15791 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15792 cacheid=xorg_cv_cc_flag__Wnonnull
15793 if eval \${$cacheid+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 int i;
15799 int
15800 main ()
15801 {
15802
15803 ;
15804 return 0;
15805 }
15806 _ACEOF
15807 if ac_fn_c_try_link "$LINENO"; then :
15808 eval $cacheid=yes
15809 else
15810 eval $cacheid=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext conftest.$ac_ext
15814 fi
15815
15816
15817 CFLAGS="$xorg_testset_save_CFLAGS"
15818
15819 eval supported=\$$cacheid
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15821 $as_echo "$supported" >&6; }
15822 if test "$supported" = "yes" ; then
15823 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15824 found="yes"
15825 fi
15826 fi
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842 xorg_testset_save_CFLAGS="$CFLAGS"
15843
15844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 int i;
15854 _ACEOF
15855 if ac_fn_c_try_compile "$LINENO"; then :
15856 xorg_cv_cc_flag_unknown_warning_option=yes
15857 else
15858 xorg_cv_cc_flag_unknown_warning_option=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15865 CFLAGS="$xorg_testset_save_CFLAGS"
15866 fi
15867
15868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15871 fi
15872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15876 $as_echo_n "(cached) " >&6
15877 else
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 int i;
15881 _ACEOF
15882 if ac_fn_c_try_compile "$LINENO"; then :
15883 xorg_cv_cc_flag_unused_command_line_argument=yes
15884 else
15885 xorg_cv_cc_flag_unused_command_line_argument=no
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 fi
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15892 CFLAGS="$xorg_testset_save_CFLAGS"
15893 fi
15894
15895 found="no"
15896
15897 if test $found = "no" ; then
15898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900 fi
15901
15902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15904 fi
15905
15906 CFLAGS="$CFLAGS -Winit-self"
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15909 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15910 cacheid=xorg_cv_cc_flag__Winit_self
15911 if eval \${$cacheid+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 int i;
15917 int
15918 main ()
15919 {
15920
15921 ;
15922 return 0;
15923 }
15924 _ACEOF
15925 if ac_fn_c_try_link "$LINENO"; then :
15926 eval $cacheid=yes
15927 else
15928 eval $cacheid=no
15929 fi
15930 rm -f core conftest.err conftest.$ac_objext \
15931 conftest$ac_exeext conftest.$ac_ext
15932 fi
15933
15934
15935 CFLAGS="$xorg_testset_save_CFLAGS"
15936
15937 eval supported=\$$cacheid
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15939 $as_echo "$supported" >&6; }
15940 if test "$supported" = "yes" ; then
15941 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15942 found="yes"
15943 fi
15944 fi
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960 xorg_testset_save_CFLAGS="$CFLAGS"
15961
15962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 int i;
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974 xorg_cv_cc_flag_unknown_warning_option=yes
15975 else
15976 xorg_cv_cc_flag_unknown_warning_option=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 fi
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15983 CFLAGS="$xorg_testset_save_CFLAGS"
15984 fi
15985
15986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15989 fi
15990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15994 $as_echo_n "(cached) " >&6
15995 else
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15998 int i;
15999 _ACEOF
16000 if ac_fn_c_try_compile "$LINENO"; then :
16001 xorg_cv_cc_flag_unused_command_line_argument=yes
16002 else
16003 xorg_cv_cc_flag_unused_command_line_argument=no
16004 fi
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 fi
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16010 CFLAGS="$xorg_testset_save_CFLAGS"
16011 fi
16012
16013 found="no"
16014
16015 if test $found = "no" ; then
16016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018 fi
16019
16020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16022 fi
16023
16024 CFLAGS="$CFLAGS -Wmain"
16025
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16027 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16028 cacheid=xorg_cv_cc_flag__Wmain
16029 if eval \${$cacheid+:} false; then :
16030 $as_echo_n "(cached) " >&6
16031 else
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16034 int i;
16035 int
16036 main ()
16037 {
16038
16039 ;
16040 return 0;
16041 }
16042 _ACEOF
16043 if ac_fn_c_try_link "$LINENO"; then :
16044 eval $cacheid=yes
16045 else
16046 eval $cacheid=no
16047 fi
16048 rm -f core conftest.err conftest.$ac_objext \
16049 conftest$ac_exeext conftest.$ac_ext
16050 fi
16051
16052
16053 CFLAGS="$xorg_testset_save_CFLAGS"
16054
16055 eval supported=\$$cacheid
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16057 $as_echo "$supported" >&6; }
16058 if test "$supported" = "yes" ; then
16059 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16060 found="yes"
16061 fi
16062 fi
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078 xorg_testset_save_CFLAGS="$CFLAGS"
16079
16080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 int i;
16090 _ACEOF
16091 if ac_fn_c_try_compile "$LINENO"; then :
16092 xorg_cv_cc_flag_unknown_warning_option=yes
16093 else
16094 xorg_cv_cc_flag_unknown_warning_option=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097 fi
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16101 CFLAGS="$xorg_testset_save_CFLAGS"
16102 fi
16103
16104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16107 fi
16108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16112 $as_echo_n "(cached) " >&6
16113 else
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16116 int i;
16117 _ACEOF
16118 if ac_fn_c_try_compile "$LINENO"; then :
16119 xorg_cv_cc_flag_unused_command_line_argument=yes
16120 else
16121 xorg_cv_cc_flag_unused_command_line_argument=no
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16124 fi
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16128 CFLAGS="$xorg_testset_save_CFLAGS"
16129 fi
16130
16131 found="no"
16132
16133 if test $found = "no" ; then
16134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16136 fi
16137
16138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16140 fi
16141
16142 CFLAGS="$CFLAGS -Wmissing-braces"
16143
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16145 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16146 cacheid=xorg_cv_cc_flag__Wmissing_braces
16147 if eval \${$cacheid+:} false; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16152 int i;
16153 int
16154 main ()
16155 {
16156
16157 ;
16158 return 0;
16159 }
16160 _ACEOF
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 eval $cacheid=yes
16163 else
16164 eval $cacheid=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16168 fi
16169
16170
16171 CFLAGS="$xorg_testset_save_CFLAGS"
16172
16173 eval supported=\$$cacheid
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16175 $as_echo "$supported" >&6; }
16176 if test "$supported" = "yes" ; then
16177 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16178 found="yes"
16179 fi
16180 fi
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196 xorg_testset_save_CFLAGS="$CFLAGS"
16197
16198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16203 $as_echo_n "(cached) " >&6
16204 else
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 int i;
16208 _ACEOF
16209 if ac_fn_c_try_compile "$LINENO"; then :
16210 xorg_cv_cc_flag_unknown_warning_option=yes
16211 else
16212 xorg_cv_cc_flag_unknown_warning_option=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16219 CFLAGS="$xorg_testset_save_CFLAGS"
16220 fi
16221
16222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16225 fi
16226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16230 $as_echo_n "(cached) " >&6
16231 else
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16234 int i;
16235 _ACEOF
16236 if ac_fn_c_try_compile "$LINENO"; then :
16237 xorg_cv_cc_flag_unused_command_line_argument=yes
16238 else
16239 xorg_cv_cc_flag_unused_command_line_argument=no
16240 fi
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 fi
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16246 CFLAGS="$xorg_testset_save_CFLAGS"
16247 fi
16248
16249 found="no"
16250
16251 if test $found = "no" ; then
16252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16254 fi
16255
16256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16258 fi
16259
16260 CFLAGS="$CFLAGS -Wsequence-point"
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16263 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16264 cacheid=xorg_cv_cc_flag__Wsequence_point
16265 if eval \${$cacheid+:} false; then :
16266 $as_echo_n "(cached) " >&6
16267 else
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270 int i;
16271 int
16272 main ()
16273 {
16274
16275 ;
16276 return 0;
16277 }
16278 _ACEOF
16279 if ac_fn_c_try_link "$LINENO"; then :
16280 eval $cacheid=yes
16281 else
16282 eval $cacheid=no
16283 fi
16284 rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286 fi
16287
16288
16289 CFLAGS="$xorg_testset_save_CFLAGS"
16290
16291 eval supported=\$$cacheid
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16293 $as_echo "$supported" >&6; }
16294 if test "$supported" = "yes" ; then
16295 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16296 found="yes"
16297 fi
16298 fi
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314 xorg_testset_save_CFLAGS="$CFLAGS"
16315
16316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16325 int i;
16326 _ACEOF
16327 if ac_fn_c_try_compile "$LINENO"; then :
16328 xorg_cv_cc_flag_unknown_warning_option=yes
16329 else
16330 xorg_cv_cc_flag_unknown_warning_option=no
16331 fi
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 fi
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16337 CFLAGS="$xorg_testset_save_CFLAGS"
16338 fi
16339
16340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16343 fi
16344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 int i;
16353 _ACEOF
16354 if ac_fn_c_try_compile "$LINENO"; then :
16355 xorg_cv_cc_flag_unused_command_line_argument=yes
16356 else
16357 xorg_cv_cc_flag_unused_command_line_argument=no
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 fi
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16364 CFLAGS="$xorg_testset_save_CFLAGS"
16365 fi
16366
16367 found="no"
16368
16369 if test $found = "no" ; then
16370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372 fi
16373
16374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16376 fi
16377
16378 CFLAGS="$CFLAGS -Wreturn-type"
16379
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16381 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16382 cacheid=xorg_cv_cc_flag__Wreturn_type
16383 if eval \${$cacheid+:} false; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16388 int i;
16389 int
16390 main ()
16391 {
16392
16393 ;
16394 return 0;
16395 }
16396 _ACEOF
16397 if ac_fn_c_try_link "$LINENO"; then :
16398 eval $cacheid=yes
16399 else
16400 eval $cacheid=no
16401 fi
16402 rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16404 fi
16405
16406
16407 CFLAGS="$xorg_testset_save_CFLAGS"
16408
16409 eval supported=\$$cacheid
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16411 $as_echo "$supported" >&6; }
16412 if test "$supported" = "yes" ; then
16413 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16414 found="yes"
16415 fi
16416 fi
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432 xorg_testset_save_CFLAGS="$CFLAGS"
16433
16434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 int i;
16444 _ACEOF
16445 if ac_fn_c_try_compile "$LINENO"; then :
16446 xorg_cv_cc_flag_unknown_warning_option=yes
16447 else
16448 xorg_cv_cc_flag_unknown_warning_option=no
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16455 CFLAGS="$xorg_testset_save_CFLAGS"
16456 fi
16457
16458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16461 fi
16462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16466 $as_echo_n "(cached) " >&6
16467 else
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 int i;
16471 _ACEOF
16472 if ac_fn_c_try_compile "$LINENO"; then :
16473 xorg_cv_cc_flag_unused_command_line_argument=yes
16474 else
16475 xorg_cv_cc_flag_unused_command_line_argument=no
16476 fi
16477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478 fi
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16482 CFLAGS="$xorg_testset_save_CFLAGS"
16483 fi
16484
16485 found="no"
16486
16487 if test $found = "no" ; then
16488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490 fi
16491
16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16494 fi
16495
16496 CFLAGS="$CFLAGS -Wtrigraphs"
16497
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16499 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16500 cacheid=xorg_cv_cc_flag__Wtrigraphs
16501 if eval \${$cacheid+:} false; then :
16502 $as_echo_n "(cached) " >&6
16503 else
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 int i;
16507 int
16508 main ()
16509 {
16510
16511 ;
16512 return 0;
16513 }
16514 _ACEOF
16515 if ac_fn_c_try_link "$LINENO"; then :
16516 eval $cacheid=yes
16517 else
16518 eval $cacheid=no
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext \
16521 conftest$ac_exeext conftest.$ac_ext
16522 fi
16523
16524
16525 CFLAGS="$xorg_testset_save_CFLAGS"
16526
16527 eval supported=\$$cacheid
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16529 $as_echo "$supported" >&6; }
16530 if test "$supported" = "yes" ; then
16531 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16532 found="yes"
16533 fi
16534 fi
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550 xorg_testset_save_CFLAGS="$CFLAGS"
16551
16552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558 else
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16561 int i;
16562 _ACEOF
16563 if ac_fn_c_try_compile "$LINENO"; then :
16564 xorg_cv_cc_flag_unknown_warning_option=yes
16565 else
16566 xorg_cv_cc_flag_unknown_warning_option=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 fi
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16573 CFLAGS="$xorg_testset_save_CFLAGS"
16574 fi
16575
16576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16579 fi
16580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 int i;
16589 _ACEOF
16590 if ac_fn_c_try_compile "$LINENO"; then :
16591 xorg_cv_cc_flag_unused_command_line_argument=yes
16592 else
16593 xorg_cv_cc_flag_unused_command_line_argument=no
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16600 CFLAGS="$xorg_testset_save_CFLAGS"
16601 fi
16602
16603 found="no"
16604
16605 if test $found = "no" ; then
16606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 fi
16609
16610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16612 fi
16613
16614 CFLAGS="$CFLAGS -Warray-bounds"
16615
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16617 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16618 cacheid=xorg_cv_cc_flag__Warray_bounds
16619 if eval \${$cacheid+:} false; then :
16620 $as_echo_n "(cached) " >&6
16621 else
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16624 int i;
16625 int
16626 main ()
16627 {
16628
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 if ac_fn_c_try_link "$LINENO"; then :
16634 eval $cacheid=yes
16635 else
16636 eval $cacheid=no
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext \
16639 conftest$ac_exeext conftest.$ac_ext
16640 fi
16641
16642
16643 CFLAGS="$xorg_testset_save_CFLAGS"
16644
16645 eval supported=\$$cacheid
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16647 $as_echo "$supported" >&6; }
16648 if test "$supported" = "yes" ; then
16649 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16650 found="yes"
16651 fi
16652 fi
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668 xorg_testset_save_CFLAGS="$CFLAGS"
16669
16670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16675 $as_echo_n "(cached) " >&6
16676 else
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679 int i;
16680 _ACEOF
16681 if ac_fn_c_try_compile "$LINENO"; then :
16682 xorg_cv_cc_flag_unknown_warning_option=yes
16683 else
16684 xorg_cv_cc_flag_unknown_warning_option=no
16685 fi
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687 fi
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16691 CFLAGS="$xorg_testset_save_CFLAGS"
16692 fi
16693
16694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16697 fi
16698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_cc_flag_unused_command_line_argument=yes
16710 else
16711 xorg_cv_cc_flag_unused_command_line_argument=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_cc_flag_unused_command_line_argument" >&5
16716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16718 CFLAGS="$xorg_testset_save_CFLAGS"
16719 fi
16720
16721 found="no"
16722
16723 if test $found = "no" ; then
16724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16726 fi
16727
16728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16730 fi
16731
16732 CFLAGS="$CFLAGS -Wwrite-strings"
16733
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16735 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16736 cacheid=xorg_cv_cc_flag__Wwrite_strings
16737 if eval \${$cacheid+:} false; then :
16738 $as_echo_n "(cached) " >&6
16739 else
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 int i;
16743 int
16744 main ()
16745 {
16746
16747 ;
16748 return 0;
16749 }
16750 _ACEOF
16751 if ac_fn_c_try_link "$LINENO"; then :
16752 eval $cacheid=yes
16753 else
16754 eval $cacheid=no
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext \
16757 conftest$ac_exeext conftest.$ac_ext
16758 fi
16759
16760
16761 CFLAGS="$xorg_testset_save_CFLAGS"
16762
16763 eval supported=\$$cacheid
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16765 $as_echo "$supported" >&6; }
16766 if test "$supported" = "yes" ; then
16767 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16768 found="yes"
16769 fi
16770 fi
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786 xorg_testset_save_CFLAGS="$CFLAGS"
16787
16788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16793 $as_echo_n "(cached) " >&6
16794 else
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16797 int i;
16798 _ACEOF
16799 if ac_fn_c_try_compile "$LINENO"; then :
16800 xorg_cv_cc_flag_unknown_warning_option=yes
16801 else
16802 xorg_cv_cc_flag_unknown_warning_option=no
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16809 CFLAGS="$xorg_testset_save_CFLAGS"
16810 fi
16811
16812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16815 fi
16816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824 int i;
16825 _ACEOF
16826 if ac_fn_c_try_compile "$LINENO"; then :
16827 xorg_cv_cc_flag_unused_command_line_argument=yes
16828 else
16829 xorg_cv_cc_flag_unused_command_line_argument=no
16830 fi
16831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832 fi
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16836 CFLAGS="$xorg_testset_save_CFLAGS"
16837 fi
16838
16839 found="no"
16840
16841 if test $found = "no" ; then
16842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16844 fi
16845
16846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16848 fi
16849
16850 CFLAGS="$CFLAGS -Waddress"
16851
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16853 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16854 cacheid=xorg_cv_cc_flag__Waddress
16855 if eval \${$cacheid+:} false; then :
16856 $as_echo_n "(cached) " >&6
16857 else
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16860 int i;
16861 int
16862 main ()
16863 {
16864
16865 ;
16866 return 0;
16867 }
16868 _ACEOF
16869 if ac_fn_c_try_link "$LINENO"; then :
16870 eval $cacheid=yes
16871 else
16872 eval $cacheid=no
16873 fi
16874 rm -f core conftest.err conftest.$ac_objext \
16875 conftest$ac_exeext conftest.$ac_ext
16876 fi
16877
16878
16879 CFLAGS="$xorg_testset_save_CFLAGS"
16880
16881 eval supported=\$$cacheid
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16883 $as_echo "$supported" >&6; }
16884 if test "$supported" = "yes" ; then
16885 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16886 found="yes"
16887 fi
16888 fi
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904 xorg_testset_save_CFLAGS="$CFLAGS"
16905
16906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16911 $as_echo_n "(cached) " >&6
16912 else
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915 int i;
16916 _ACEOF
16917 if ac_fn_c_try_compile "$LINENO"; then :
16918 xorg_cv_cc_flag_unknown_warning_option=yes
16919 else
16920 xorg_cv_cc_flag_unknown_warning_option=no
16921 fi
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16927 CFLAGS="$xorg_testset_save_CFLAGS"
16928 fi
16929
16930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16933 fi
16934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16938 $as_echo_n "(cached) " >&6
16939 else
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16942 int i;
16943 _ACEOF
16944 if ac_fn_c_try_compile "$LINENO"; then :
16945 xorg_cv_cc_flag_unused_command_line_argument=yes
16946 else
16947 xorg_cv_cc_flag_unused_command_line_argument=no
16948 fi
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 fi
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16954 CFLAGS="$xorg_testset_save_CFLAGS"
16955 fi
16956
16957 found="no"
16958
16959 if test $found = "no" ; then
16960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16962 fi
16963
16964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16966 fi
16967
16968 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16969
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16971 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16972 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16973 if eval \${$cacheid+:} false; then :
16974 $as_echo_n "(cached) " >&6
16975 else
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16978 int i;
16979 int
16980 main ()
16981 {
16982
16983 ;
16984 return 0;
16985 }
16986 _ACEOF
16987 if ac_fn_c_try_link "$LINENO"; then :
16988 eval $cacheid=yes
16989 else
16990 eval $cacheid=no
16991 fi
16992 rm -f core conftest.err conftest.$ac_objext \
16993 conftest$ac_exeext conftest.$ac_ext
16994 fi
16995
16996
16997 CFLAGS="$xorg_testset_save_CFLAGS"
16998
16999 eval supported=\$$cacheid
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17001 $as_echo "$supported" >&6; }
17002 if test "$supported" = "yes" ; then
17003 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17004 found="yes"
17005 fi
17006 fi
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022 xorg_testset_save_CFLAGS="$CFLAGS"
17023
17024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033 int i;
17034 _ACEOF
17035 if ac_fn_c_try_compile "$LINENO"; then :
17036 xorg_cv_cc_flag_unknown_warning_option=yes
17037 else
17038 xorg_cv_cc_flag_unknown_warning_option=no
17039 fi
17040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 fi
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17045 CFLAGS="$xorg_testset_save_CFLAGS"
17046 fi
17047
17048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051 fi
17052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17060 int i;
17061 _ACEOF
17062 if ac_fn_c_try_compile "$LINENO"; then :
17063 xorg_cv_cc_flag_unused_command_line_argument=yes
17064 else
17065 xorg_cv_cc_flag_unused_command_line_argument=no
17066 fi
17067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068 fi
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17072 CFLAGS="$xorg_testset_save_CFLAGS"
17073 fi
17074
17075 found="no"
17076
17077 if test $found = "no" ; then
17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080 fi
17081
17082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17084 fi
17085
17086 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17087
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17089 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17090 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17091 if eval \${$cacheid+:} false; then :
17092 $as_echo_n "(cached) " >&6
17093 else
17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17096 int i;
17097 int
17098 main ()
17099 {
17100
17101 ;
17102 return 0;
17103 }
17104 _ACEOF
17105 if ac_fn_c_try_link "$LINENO"; then :
17106 eval $cacheid=yes
17107 else
17108 eval $cacheid=no
17109 fi
17110 rm -f core conftest.err conftest.$ac_objext \
17111 conftest$ac_exeext conftest.$ac_ext
17112 fi
17113
17114
17115 CFLAGS="$xorg_testset_save_CFLAGS"
17116
17117 eval supported=\$$cacheid
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17119 $as_echo "$supported" >&6; }
17120 if test "$supported" = "yes" ; then
17121 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17122 found="yes"
17123 fi
17124 fi
17125
17126
17127 fi
17128
17129
17130
17131
17132
17133
17134
17135 CWARNFLAGS="$BASE_CFLAGS"
17136 if test "x$GCC" = xyes ; then
17137 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17138 fi
17139
17140
17141
17142
17143
17144
17145
17146
17147 # Check whether --enable-strict-compilation was given.
17148 if test "${enable_strict_compilation+set}" = set; then :
17149 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17150 else
17151 STRICT_COMPILE=no
17152 fi
17153
17154
17155
17156
17157
17158
17159 STRICT_CFLAGS=""
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173 xorg_testset_save_CFLAGS="$CFLAGS"
17174
17175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17180 $as_echo_n "(cached) " >&6
17181 else
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17184 int i;
17185 _ACEOF
17186 if ac_fn_c_try_compile "$LINENO"; then :
17187 xorg_cv_cc_flag_unknown_warning_option=yes
17188 else
17189 xorg_cv_cc_flag_unknown_warning_option=no
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 fi
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17196 CFLAGS="$xorg_testset_save_CFLAGS"
17197 fi
17198
17199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17202 fi
17203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17207 $as_echo_n "(cached) " >&6
17208 else
17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17211 int i;
17212 _ACEOF
17213 if ac_fn_c_try_compile "$LINENO"; then :
17214 xorg_cv_cc_flag_unused_command_line_argument=yes
17215 else
17216 xorg_cv_cc_flag_unused_command_line_argument=no
17217 fi
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17223 CFLAGS="$xorg_testset_save_CFLAGS"
17224 fi
17225
17226 found="no"
17227
17228 if test $found = "no" ; then
17229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17231 fi
17232
17233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17235 fi
17236
17237 CFLAGS="$CFLAGS -pedantic"
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17240 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17241 cacheid=xorg_cv_cc_flag__pedantic
17242 if eval \${$cacheid+:} false; then :
17243 $as_echo_n "(cached) " >&6
17244 else
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 int i;
17248 int
17249 main ()
17250 {
17251
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 if ac_fn_c_try_link "$LINENO"; then :
17257 eval $cacheid=yes
17258 else
17259 eval $cacheid=no
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17263 fi
17264
17265
17266 CFLAGS="$xorg_testset_save_CFLAGS"
17267
17268 eval supported=\$$cacheid
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17270 $as_echo "$supported" >&6; }
17271 if test "$supported" = "yes" ; then
17272 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17273 found="yes"
17274 fi
17275 fi
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291 xorg_testset_save_CFLAGS="$CFLAGS"
17292
17293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17298 $as_echo_n "(cached) " >&6
17299 else
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 int i;
17303 _ACEOF
17304 if ac_fn_c_try_compile "$LINENO"; then :
17305 xorg_cv_cc_flag_unknown_warning_option=yes
17306 else
17307 xorg_cv_cc_flag_unknown_warning_option=no
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 fi
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17314 CFLAGS="$xorg_testset_save_CFLAGS"
17315 fi
17316
17317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17320 fi
17321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17325 $as_echo_n "(cached) " >&6
17326 else
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329 int i;
17330 _ACEOF
17331 if ac_fn_c_try_compile "$LINENO"; then :
17332 xorg_cv_cc_flag_unused_command_line_argument=yes
17333 else
17334 xorg_cv_cc_flag_unused_command_line_argument=no
17335 fi
17336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 fi
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17341 CFLAGS="$xorg_testset_save_CFLAGS"
17342 fi
17343
17344 found="no"
17345
17346 if test $found = "no" ; then
17347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349 fi
17350
17351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17353 fi
17354
17355 CFLAGS="$CFLAGS -Werror"
17356
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17358 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17359 cacheid=xorg_cv_cc_flag__Werror
17360 if eval \${$cacheid+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17365 int i;
17366 int
17367 main ()
17368 {
17369
17370 ;
17371 return 0;
17372 }
17373 _ACEOF
17374 if ac_fn_c_try_link "$LINENO"; then :
17375 eval $cacheid=yes
17376 else
17377 eval $cacheid=no
17378 fi
17379 rm -f core conftest.err conftest.$ac_objext \
17380 conftest$ac_exeext conftest.$ac_ext
17381 fi
17382
17383
17384 CFLAGS="$xorg_testset_save_CFLAGS"
17385
17386 eval supported=\$$cacheid
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17388 $as_echo "$supported" >&6; }
17389 if test "$supported" = "yes" ; then
17390 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17391 found="yes"
17392 fi
17393 fi
17394
17395 if test $found = "no" ; then
17396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17398 fi
17399
17400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17402 fi
17403
17404 CFLAGS="$CFLAGS -errwarn"
17405
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17407 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17408 cacheid=xorg_cv_cc_flag__errwarn
17409 if eval \${$cacheid+:} false; then :
17410 $as_echo_n "(cached) " >&6
17411 else
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414 int i;
17415 int
17416 main ()
17417 {
17418
17419 ;
17420 return 0;
17421 }
17422 _ACEOF
17423 if ac_fn_c_try_link "$LINENO"; then :
17424 eval $cacheid=yes
17425 else
17426 eval $cacheid=no
17427 fi
17428 rm -f core conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17430 fi
17431
17432
17433 CFLAGS="$xorg_testset_save_CFLAGS"
17434
17435 eval supported=\$$cacheid
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17437 $as_echo "$supported" >&6; }
17438 if test "$supported" = "yes" ; then
17439 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17440 found="yes"
17441 fi
17442 fi
17443
17444
17445
17446 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17447 # activate it with -Werror, so we add it here explicitly.
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461 xorg_testset_save_CFLAGS="$CFLAGS"
17462
17463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17468 $as_echo_n "(cached) " >&6
17469 else
17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471 /* end confdefs.h. */
17472 int i;
17473 _ACEOF
17474 if ac_fn_c_try_compile "$LINENO"; then :
17475 xorg_cv_cc_flag_unknown_warning_option=yes
17476 else
17477 xorg_cv_cc_flag_unknown_warning_option=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17484 CFLAGS="$xorg_testset_save_CFLAGS"
17485 fi
17486
17487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17490 fi
17491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17495 $as_echo_n "(cached) " >&6
17496 else
17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17499 int i;
17500 _ACEOF
17501 if ac_fn_c_try_compile "$LINENO"; then :
17502 xorg_cv_cc_flag_unused_command_line_argument=yes
17503 else
17504 xorg_cv_cc_flag_unused_command_line_argument=no
17505 fi
17506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17507 fi
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17511 CFLAGS="$xorg_testset_save_CFLAGS"
17512 fi
17513
17514 found="no"
17515
17516 if test $found = "no" ; then
17517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17519 fi
17520
17521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17523 fi
17524
17525 CFLAGS="$CFLAGS -Werror=attributes"
17526
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17528 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17529 cacheid=xorg_cv_cc_flag__Werror_attributes
17530 if eval \${$cacheid+:} false; then :
17531 $as_echo_n "(cached) " >&6
17532 else
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534 /* end confdefs.h. */
17535 int i;
17536 int
17537 main ()
17538 {
17539
17540 ;
17541 return 0;
17542 }
17543 _ACEOF
17544 if ac_fn_c_try_link "$LINENO"; then :
17545 eval $cacheid=yes
17546 else
17547 eval $cacheid=no
17548 fi
17549 rm -f core conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17551 fi
17552
17553
17554 CFLAGS="$xorg_testset_save_CFLAGS"
17555
17556 eval supported=\$$cacheid
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17558 $as_echo "$supported" >&6; }
17559 if test "$supported" = "yes" ; then
17560 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17561 found="yes"
17562 fi
17563 fi
17564
17565
17566
17567 if test "x$STRICT_COMPILE" = "xyes"; then
17568 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17569 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17570 fi
17571
17572
17573
17574
17575
17576
17577 cat >>confdefs.h <<_ACEOF
17578 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17579 _ACEOF
17580
17581 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17582 if test "x$PVM" = "x"; then
17583 PVM="0"
17584 fi
17585
17586 cat >>confdefs.h <<_ACEOF
17587 #define PACKAGE_VERSION_MINOR $PVM
17588 _ACEOF
17589
17590 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17591 if test "x$PVP" = "x"; then
17592 PVP="0"
17593 fi
17594
17595 cat >>confdefs.h <<_ACEOF
17596 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17597 _ACEOF
17598
17599
17600
17601 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17602 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17603 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17604 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17605
17606
17607
17608
17609 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17610 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17611 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17612 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17613 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17614
17615
17616
17617
17618
17619
17620 if test x$APP_MAN_SUFFIX = x ; then
17621 APP_MAN_SUFFIX=1
17622 fi
17623 if test x$APP_MAN_DIR = x ; then
17624 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17625 fi
17626
17627 if test x$LIB_MAN_SUFFIX = x ; then
17628 LIB_MAN_SUFFIX=3
17629 fi
17630 if test x$LIB_MAN_DIR = x ; then
17631 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17632 fi
17633
17634 if test x$FILE_MAN_SUFFIX = x ; then
17635 case $host_os in
17636 solaris*) FILE_MAN_SUFFIX=4 ;;
17637 *) FILE_MAN_SUFFIX=5 ;;
17638 esac
17639 fi
17640 if test x$FILE_MAN_DIR = x ; then
17641 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17642 fi
17643
17644 if test x$MISC_MAN_SUFFIX = x ; then
17645 case $host_os in
17646 solaris*) MISC_MAN_SUFFIX=5 ;;
17647 *) MISC_MAN_SUFFIX=7 ;;
17648 esac
17649 fi
17650 if test x$MISC_MAN_DIR = x ; then
17651 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17652 fi
17653
17654 if test x$DRIVER_MAN_SUFFIX = x ; then
17655 case $host_os in
17656 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17657 *) DRIVER_MAN_SUFFIX=4 ;;
17658 esac
17659 fi
17660 if test x$DRIVER_MAN_DIR = x ; then
17661 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17662 fi
17663
17664 if test x$ADMIN_MAN_SUFFIX = x ; then
17665 case $host_os in
17666 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17667 *) ADMIN_MAN_SUFFIX=8 ;;
17668 esac
17669 fi
17670 if test x$ADMIN_MAN_DIR = x ; then
17671 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17672 fi
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688 XORG_MAN_PAGE="X Version 11"
17689
17690 MAN_SUBSTS="\
17691 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17692 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17693 -e 's|__xservername__|Xorg|g' \
17694 -e 's|__xconfigfile__|xorg.conf|g' \
17695 -e 's|__projectroot__|\$(prefix)|g' \
17696 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17697 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17698 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17699 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17700 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17701 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17702 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17703
17704
17705
17706 # Check whether --enable-silent-rules was given.
17707 if test "${enable_silent_rules+set}" = set; then :
17708 enableval=$enable_silent_rules;
17709 fi
17710
17711 case $enable_silent_rules in # (((
17712 yes) AM_DEFAULT_VERBOSITY=0;;
17713 no) AM_DEFAULT_VERBOSITY=1;;
17714 *) AM_DEFAULT_VERBOSITY=0;;
17715 esac
17716 am_make=${MAKE-make}
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17718 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17719 if ${am_cv_make_support_nested_variables+:} false; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17722 if $as_echo 'TRUE=$(BAR$(V))
17723 BAR0=false
17724 BAR1=true
17725 V=1
17726 am__doit:
17727 @$(TRUE)
17728 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17729 am_cv_make_support_nested_variables=yes
17730 else
17731 am_cv_make_support_nested_variables=no
17732 fi
17733 fi
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17735 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17736 if test $am_cv_make_support_nested_variables = yes; then
17737 AM_V='$(V)'
17738 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17739 else
17740 AM_V=$AM_DEFAULT_VERBOSITY
17741 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17742 fi
17743 AM_BACKSLASH='\'
17744
17745
17746
17747 # Checks for library functions.
17748 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17749 if test "x$ac_cv_func_strcasecmp" = xyes; then :
17750
17751 else
17752
17753 $as_echo "#define NEED_STRCASECMP 1" >>confdefs.h
17754
17755 fi
17756
17757 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
17758 if test "x$ac_cv_func_getc_unlocked" = xyes; then :
17759
17760 $as_echo "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h
17761
17762 fi
17763
17764
17765 # Obtain compiler/linker options for depedencies
17766
17767 pkg_failed=no
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5
17769 $as_echo_n "checking for XKBFILE... " >&6; }
17770
17771 if test -n "$XKBFILE_CFLAGS"; then
17772 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS"
17773 elif test -n "$PKG_CONFIG"; then
17774 if test -n "$PKG_CONFIG" && \
17775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
17776 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
17777 ac_status=$?
17778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17779 test $ac_status = 0; }; then
17780 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
17781 else
17782 pkg_failed=yes
17783 fi
17784 else
17785 pkg_failed=untried
17786 fi
17787 if test -n "$XKBFILE_LIBS"; then
17788 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS"
17789 elif test -n "$PKG_CONFIG"; then
17790 if test -n "$PKG_CONFIG" && \
17791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
17792 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
17793 ac_status=$?
17794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17795 test $ac_status = 0; }; then
17796 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
17797 else
17798 pkg_failed=yes
17799 fi
17800 else
17801 pkg_failed=untried
17802 fi
17803
17804
17805
17806 if test $pkg_failed = yes; then
17807
17808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17809 _pkg_short_errors_supported=yes
17810 else
17811 _pkg_short_errors_supported=no
17812 fi
17813 if test $_pkg_short_errors_supported = yes; then
17814 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 kbproto" 2>&1`
17815 else
17816 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 kbproto" 2>&1`
17817 fi
17818 # Put the nasty error message in config.log where it belongs
17819 echo "$XKBFILE_PKG_ERRORS" >&5
17820
17821 as_fn_error $? "Package requirements (x11 kbproto) were not met:
17822
17823 $XKBFILE_PKG_ERRORS
17824
17825 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17826 installed software in a non-standard prefix.
17827
17828 Alternatively, you may set the environment variables XKBFILE_CFLAGS
17829 and XKBFILE_LIBS to avoid the need to call pkg-config.
17830 See the pkg-config man page for more details.
17831 " "$LINENO" 5
17832 elif test $pkg_failed = untried; then
17833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17835 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17836 is in your PATH or set the PKG_CONFIG environment variable to the full
17837 path to pkg-config.
17838
17839 Alternatively, you may set the environment variables XKBFILE_CFLAGS
17840 and XKBFILE_LIBS to avoid the need to call pkg-config.
17841 See the pkg-config man page for more details.
17842
17843 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17844 See \`config.log' for more details" "$LINENO" 5; }
17845 else
17846 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS
17847 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17849 $as_echo "yes" >&6; }
17850 :
17851 fi
17852
17853 ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc"
17854
17855 cat >confcache <<\_ACEOF
17856 # This file is a shell script that caches the results of configure
17857 # tests run on this system so they can be shared between configure
17858 # scripts and configure runs, see configure's option --config-cache.
17859 # It is not useful on other systems. If it contains results you don't
17860 # want to keep, you may remove or edit it.
17861 #
17862 # config.status only pays attention to the cache file if you give it
17863 # the --recheck option to rerun configure.
17864 #
17865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17867 # following values.
17868
17869 _ACEOF
17870
17871 # The following way of writing the cache mishandles newlines in values,
17872 # but we know of no workaround that is simple, portable, and efficient.
17873 # So, we kill variables containing newlines.
17874 # Ultrix sh set writes to stderr and can't be redirected directly,
17875 # and sets the high bit in the cache file unless we assign to the vars.
17876 (
17877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17878 eval ac_val=\$$ac_var
17879 case $ac_val in #(
17880 *${as_nl}*)
17881 case $ac_var in #(
17882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17884 esac
17885 case $ac_var in #(
17886 _ | IFS | as_nl) ;; #(
17887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17888 *) { eval $ac_var=; unset $ac_var;} ;;
17889 esac ;;
17890 esac
17891 done
17892
17893 (set) 2>&1 |
17894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17895 *${as_nl}ac_space=\ *)
17896 # `set' does not quote correctly, so add quotes: double-quote
17897 # substitution turns \\\\ into \\, and sed turns \\ into \.
17898 sed -n \
17899 "s/'/'\\\\''/g;
17900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17901 ;; #(
17902 *)
17903 # `set' quotes correctly as required by POSIX, so do not add quotes.
17904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17905 ;;
17906 esac |
17907 sort
17908 ) |
17909 sed '
17910 /^ac_cv_env_/b end
17911 t clear
17912 :clear
17913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17914 t end
17915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17916 :end' >>confcache
17917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17918 if test -w "$cache_file"; then
17919 if test "x$cache_file" != "x/dev/null"; then
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17921 $as_echo "$as_me: updating cache $cache_file" >&6;}
17922 if test ! -f "$cache_file" || test -h "$cache_file"; then
17923 cat confcache >"$cache_file"
17924 else
17925 case $cache_file in #(
17926 */* | ?:*)
17927 mv -f confcache "$cache_file"$$ &&
17928 mv -f "$cache_file"$$ "$cache_file" ;; #(
17929 *)
17930 mv -f confcache "$cache_file" ;;
17931 esac
17932 fi
17933 fi
17934 else
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17937 fi
17938 fi
17939 rm -f confcache
17940
17941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17942 # Let make expand exec_prefix.
17943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17944
17945 DEFS=-DHAVE_CONFIG_H
17946
17947 ac_libobjs=
17948 ac_ltlibobjs=
17949 U=
17950 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17951 # 1. Remove the extension, and $U if already installed.
17952 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17953 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17954 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17955 # will be set to the directory where LIBOBJS objects are built.
17956 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17957 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17958 done
17959 LIBOBJS=$ac_libobjs
17960
17961 LTLIBOBJS=$ac_ltlibobjs
17962
17963
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17965 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17966 if test -n "$am_sleep_pid"; then
17967 # Hide warnings about reused PIDs.
17968 wait $am_sleep_pid 2>/dev/null
17969 fi
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17971 $as_echo "done" >&6; }
17972 if test -n "$EXEEXT"; then
17973 am__EXEEXT_TRUE=
17974 am__EXEEXT_FALSE='#'
17975 else
17976 am__EXEEXT_TRUE='#'
17977 am__EXEEXT_FALSE=
17978 fi
17979
17980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17981 as_fn_error $? "conditional \"AMDEP\" was never defined.
17982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17983 fi
17984 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17985 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17987 fi
17988
17989 : "${CONFIG_STATUS=./config.status}"
17990 ac_write_fail=0
17991 ac_clean_files_save=$ac_clean_files
17992 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17994 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17995 as_write_fail=0
17996 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17997 #! $SHELL
17998 # Generated by $as_me.
17999 # Run this file to recreate the current configuration.
18000 # Compiler output produced by configure, useful for debugging
18001 # configure, is in config.log if it exists.
18002
18003 debug=false
18004 ac_cs_recheck=false
18005 ac_cs_silent=false
18006
18007 SHELL=\${CONFIG_SHELL-$SHELL}
18008 export SHELL
18009 _ASEOF
18010 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18011 ## -------------------- ##
18012 ## M4sh Initialization. ##
18013 ## -------------------- ##
18014
18015 # Be more Bourne compatible
18016 DUALCASE=1; export DUALCASE # for MKS sh
18017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18018 emulate sh
18019 NULLCMD=:
18020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18021 # is contrary to our usage. Disable this feature.
18022 alias -g '${1+"$@"}'='"$@"'
18023 setopt NO_GLOB_SUBST
18024 else
18025 case `(set -o) 2>/dev/null` in #(
18026 *posix*) :
18027 set -o posix ;; #(
18028 *) :
18029 ;;
18030 esac
18031 fi
18032
18033
18034 as_nl='
18035 '
18036 export as_nl
18037 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18038 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18041 # Prefer a ksh shell builtin over an external printf program on Solaris,
18042 # but without wasting forks for bash or zsh.
18043 if test -z "$BASH_VERSION$ZSH_VERSION" \
18044 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18045 as_echo='print -r --'
18046 as_echo_n='print -rn --'
18047 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18048 as_echo='printf %s\n'
18049 as_echo_n='printf %s'
18050 else
18051 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18052 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18053 as_echo_n='/usr/ucb/echo -n'
18054 else
18055 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18056 as_echo_n_body='eval
18057 arg=$1;
18058 case $arg in #(
18059 *"$as_nl"*)
18060 expr "X$arg" : "X\\(.*\\)$as_nl";
18061 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18062 esac;
18063 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18064 '
18065 export as_echo_n_body
18066 as_echo_n='sh -c $as_echo_n_body as_echo'
18067 fi
18068 export as_echo_body
18069 as_echo='sh -c $as_echo_body as_echo'
18070 fi
18071
18072 # The user is always right.
18073 if test "${PATH_SEPARATOR+set}" != set; then
18074 PATH_SEPARATOR=:
18075 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18076 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18077 PATH_SEPARATOR=';'
18078 }
18079 fi
18080
18081
18082 # IFS
18083 # We need space, tab and new line, in precisely that order. Quoting is
18084 # there to prevent editors from complaining about space-tab.
18085 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18086 # splitting by setting IFS to empty value.)
18087 IFS=" "" $as_nl"
18088
18089 # Find who we are. Look in the path if we contain no directory separator.
18090 as_myself=
18091 case $0 in #((
18092 *[\\/]* ) as_myself=$0 ;;
18093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18094 for as_dir in $PATH
18095 do
18096 IFS=$as_save_IFS
18097 test -z "$as_dir" && as_dir=.
18098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18099 done
18100 IFS=$as_save_IFS
18101
18102 ;;
18103 esac
18104 # We did not find ourselves, most probably we were run as `sh COMMAND'
18105 # in which case we are not to be found in the path.
18106 if test "x$as_myself" = x; then
18107 as_myself=$0
18108 fi
18109 if test ! -f "$as_myself"; then
18110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18111 exit 1
18112 fi
18113
18114 # Unset variables that we do not need and which cause bugs (e.g. in
18115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18116 # suppresses any "Segmentation fault" message there. '((' could
18117 # trigger a bug in pdksh 5.2.14.
18118 for as_var in BASH_ENV ENV MAIL MAILPATH
18119 do eval test x\${$as_var+set} = xset \
18120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18121 done
18122 PS1='$ '
18123 PS2='> '
18124 PS4='+ '
18125
18126 # NLS nuisances.
18127 LC_ALL=C
18128 export LC_ALL
18129 LANGUAGE=C
18130 export LANGUAGE
18131
18132 # CDPATH.
18133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18134
18135
18136 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18137 # ----------------------------------------
18138 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18139 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18140 # script with STATUS, using 1 if that was 0.
18141 as_fn_error ()
18142 {
18143 as_status=$1; test $as_status -eq 0 && as_status=1
18144 if test "$4"; then
18145 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18146 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18147 fi
18148 $as_echo "$as_me: error: $2" >&2
18149 as_fn_exit $as_status
18150 } # as_fn_error
18151
18152
18153 # as_fn_set_status STATUS
18154 # -----------------------
18155 # Set $? to STATUS, without forking.
18156 as_fn_set_status ()
18157 {
18158 return $1
18159 } # as_fn_set_status
18160
18161 # as_fn_exit STATUS
18162 # -----------------
18163 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18164 as_fn_exit ()
18165 {
18166 set +e
18167 as_fn_set_status $1
18168 exit $1
18169 } # as_fn_exit
18170
18171 # as_fn_unset VAR
18172 # ---------------
18173 # Portably unset VAR.
18174 as_fn_unset ()
18175 {
18176 { eval $1=; unset $1;}
18177 }
18178 as_unset=as_fn_unset
18179 # as_fn_append VAR VALUE
18180 # ----------------------
18181 # Append the text in VALUE to the end of the definition contained in VAR. Take
18182 # advantage of any shell optimizations that allow amortized linear growth over
18183 # repeated appends, instead of the typical quadratic growth present in naive
18184 # implementations.
18185 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18186 eval 'as_fn_append ()
18187 {
18188 eval $1+=\$2
18189 }'
18190 else
18191 as_fn_append ()
18192 {
18193 eval $1=\$$1\$2
18194 }
18195 fi # as_fn_append
18196
18197 # as_fn_arith ARG...
18198 # ------------------
18199 # Perform arithmetic evaluation on the ARGs, and store the result in the
18200 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18201 # must be portable across $(()) and expr.
18202 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18203 eval 'as_fn_arith ()
18204 {
18205 as_val=$(( $* ))
18206 }'
18207 else
18208 as_fn_arith ()
18209 {
18210 as_val=`expr "$@" || test $? -eq 1`
18211 }
18212 fi # as_fn_arith
18213
18214
18215 if expr a : '\(a\)' >/dev/null 2>&1 &&
18216 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18217 as_expr=expr
18218 else
18219 as_expr=false
18220 fi
18221
18222 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18223 as_basename=basename
18224 else
18225 as_basename=false
18226 fi
18227
18228 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18229 as_dirname=dirname
18230 else
18231 as_dirname=false
18232 fi
18233
18234 as_me=`$as_basename -- "$0" ||
18235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18236 X"$0" : 'X\(//\)$' \| \
18237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18238 $as_echo X/"$0" |
18239 sed '/^.*\/\([^/][^/]*\)\/*$/{
18240 s//\1/
18241 q
18242 }
18243 /^X\/\(\/\/\)$/{
18244 s//\1/
18245 q
18246 }
18247 /^X\/\(\/\).*/{
18248 s//\1/
18249 q
18250 }
18251 s/.*/./; q'`
18252
18253 # Avoid depending upon Character Ranges.
18254 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18255 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18256 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18257 as_cr_digits='0123456789'
18258 as_cr_alnum=$as_cr_Letters$as_cr_digits
18259
18260 ECHO_C= ECHO_N= ECHO_T=
18261 case `echo -n x` in #(((((
18262 -n*)
18263 case `echo 'xy\c'` in
18264 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18265 xy) ECHO_C='\c';;
18266 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18267 ECHO_T=' ';;
18268 esac;;
18269 *)
18270 ECHO_N='-n';;
18271 esac
18272
18273 rm -f conf$$ conf$$.exe conf$$.file
18274 if test -d conf$$.dir; then
18275 rm -f conf$$.dir/conf$$.file
18276 else
18277 rm -f conf$$.dir
18278 mkdir conf$$.dir 2>/dev/null
18279 fi
18280 if (echo >conf$$.file) 2>/dev/null; then
18281 if ln -s conf$$.file conf$$ 2>/dev/null; then
18282 as_ln_s='ln -s'
18283 # ... but there are two gotchas:
18284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18286 # In both cases, we have to default to `cp -pR'.
18287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18288 as_ln_s='cp -pR'
18289 elif ln conf$$.file conf$$ 2>/dev/null; then
18290 as_ln_s=ln
18291 else
18292 as_ln_s='cp -pR'
18293 fi
18294 else
18295 as_ln_s='cp -pR'
18296 fi
18297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18298 rmdir conf$$.dir 2>/dev/null
18299
18300
18301 # as_fn_mkdir_p
18302 # -------------
18303 # Create "$as_dir" as a directory, including parents if necessary.
18304 as_fn_mkdir_p ()
18305 {
18306
18307 case $as_dir in #(
18308 -*) as_dir=./$as_dir;;
18309 esac
18310 test -d "$as_dir" || eval $as_mkdir_p || {
18311 as_dirs=
18312 while :; do
18313 case $as_dir in #(
18314 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18315 *) as_qdir=$as_dir;;
18316 esac
18317 as_dirs="'$as_qdir' $as_dirs"
18318 as_dir=`$as_dirname -- "$as_dir" ||
18319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18320 X"$as_dir" : 'X\(//\)[^/]' \| \
18321 X"$as_dir" : 'X\(//\)$' \| \
18322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18323 $as_echo X"$as_dir" |
18324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18325 s//\1/
18326 q
18327 }
18328 /^X\(\/\/\)[^/].*/{
18329 s//\1/
18330 q
18331 }
18332 /^X\(\/\/\)$/{
18333 s//\1/
18334 q
18335 }
18336 /^X\(\/\).*/{
18337 s//\1/
18338 q
18339 }
18340 s/.*/./; q'`
18341 test -d "$as_dir" && break
18342 done
18343 test -z "$as_dirs" || eval "mkdir $as_dirs"
18344 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18345
18346
18347 } # as_fn_mkdir_p
18348 if mkdir -p . 2>/dev/null; then
18349 as_mkdir_p='mkdir -p "$as_dir"'
18350 else
18351 test -d ./-p && rmdir ./-p
18352 as_mkdir_p=false
18353 fi
18354
18355
18356 # as_fn_executable_p FILE
18357 # -----------------------
18358 # Test if FILE is an executable regular file.
18359 as_fn_executable_p ()
18360 {
18361 test -f "$1" && test -x "$1"
18362 } # as_fn_executable_p
18363 as_test_x='test -x'
18364 as_executable_p=as_fn_executable_p
18365
18366 # Sed expression to map a string onto a valid CPP name.
18367 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18368
18369 # Sed expression to map a string onto a valid variable name.
18370 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18371
18372
18373 exec 6>&1
18374 ## ----------------------------------- ##
18375 ## Main body of $CONFIG_STATUS script. ##
18376 ## ----------------------------------- ##
18377 _ASEOF
18378 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18379
18380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381 # Save the log message, to keep $0 and so on meaningful, and to
18382 # report actual input values of CONFIG_FILES etc. instead of their
18383 # values after options handling.
18384 ac_log="
18385 This file was extended by libxkbfile $as_me 1.0.9, which was
18386 generated by GNU Autoconf 2.69. Invocation command line was
18387
18388 CONFIG_FILES = $CONFIG_FILES
18389 CONFIG_HEADERS = $CONFIG_HEADERS
18390 CONFIG_LINKS = $CONFIG_LINKS
18391 CONFIG_COMMANDS = $CONFIG_COMMANDS
18392 $ $0 $@
18393
18394 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18395 "
18396
18397 _ACEOF
18398
18399 case $ac_config_files in *"
18400 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18401 esac
18402
18403 case $ac_config_headers in *"
18404 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18405 esac
18406
18407
18408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18409 # Files that config.status was made for.
18410 config_files="$ac_config_files"
18411 config_headers="$ac_config_headers"
18412 config_commands="$ac_config_commands"
18413
18414 _ACEOF
18415
18416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18417 ac_cs_usage="\
18418 \`$as_me' instantiates files and other configuration actions
18419 from templates according to the current configuration. Unless the files
18420 and actions are specified as TAGs, all are instantiated by default.
18421
18422 Usage: $0 [OPTION]... [TAG]...
18423
18424 -h, --help print this help, then exit
18425 -V, --version print version number and configuration settings, then exit
18426 --config print configuration, then exit
18427 -q, --quiet, --silent
18428 do not print progress messages
18429 -d, --debug don't remove temporary files
18430 --recheck update $as_me by reconfiguring in the same conditions
18431 --file=FILE[:TEMPLATE]
18432 instantiate the configuration file FILE
18433 --header=FILE[:TEMPLATE]
18434 instantiate the configuration header FILE
18435
18436 Configuration files:
18437 $config_files
18438
18439 Configuration headers:
18440 $config_headers
18441
18442 Configuration commands:
18443 $config_commands
18444
18445 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18446
18447 _ACEOF
18448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18449 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18450 ac_cs_version="\\
18451 libxkbfile config.status 1.0.9
18452 configured by $0, generated by GNU Autoconf 2.69,
18453 with options \\"\$ac_cs_config\\"
18454
18455 Copyright (C) 2012 Free Software Foundation, Inc.
18456 This config.status script is free software; the Free Software Foundation
18457 gives unlimited permission to copy, distribute and modify it."
18458
18459 ac_pwd='$ac_pwd'
18460 srcdir='$srcdir'
18461 INSTALL='$INSTALL'
18462 MKDIR_P='$MKDIR_P'
18463 AWK='$AWK'
18464 test -n "\$AWK" || AWK=awk
18465 _ACEOF
18466
18467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18468 # The default lists apply if the user does not specify any file.
18469 ac_need_defaults=:
18470 while test $# != 0
18471 do
18472 case $1 in
18473 --*=?*)
18474 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18475 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18476 ac_shift=:
18477 ;;
18478 --*=)
18479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18480 ac_optarg=
18481 ac_shift=:
18482 ;;
18483 *)
18484 ac_option=$1
18485 ac_optarg=$2
18486 ac_shift=shift
18487 ;;
18488 esac
18489
18490 case $ac_option in
18491 # Handling of the options.
18492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18493 ac_cs_recheck=: ;;
18494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18495 $as_echo "$ac_cs_version"; exit ;;
18496 --config | --confi | --conf | --con | --co | --c )
18497 $as_echo "$ac_cs_config"; exit ;;
18498 --debug | --debu | --deb | --de | --d | -d )
18499 debug=: ;;
18500 --file | --fil | --fi | --f )
18501 $ac_shift
18502 case $ac_optarg in
18503 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18504 '') as_fn_error $? "missing file argument" ;;
18505 esac
18506 as_fn_append CONFIG_FILES " '$ac_optarg'"
18507 ac_need_defaults=false;;
18508 --header | --heade | --head | --hea )
18509 $ac_shift
18510 case $ac_optarg in
18511 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18512 esac
18513 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18514 ac_need_defaults=false;;
18515 --he | --h)
18516 # Conflict between --help and --header
18517 as_fn_error $? "ambiguous option: \`$1'
18518 Try \`$0 --help' for more information.";;
18519 --help | --hel | -h )
18520 $as_echo "$ac_cs_usage"; exit ;;
18521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18523 ac_cs_silent=: ;;
18524
18525 # This is an error.
18526 -*) as_fn_error $? "unrecognized option: \`$1'
18527 Try \`$0 --help' for more information." ;;
18528
18529 *) as_fn_append ac_config_targets " $1"
18530 ac_need_defaults=false ;;
18531
18532 esac
18533 shift
18534 done
18535
18536 ac_configure_extra_args=
18537
18538 if $ac_cs_silent; then
18539 exec 6>/dev/null
18540 ac_configure_extra_args="$ac_configure_extra_args --silent"
18541 fi
18542
18543 _ACEOF
18544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18545 if \$ac_cs_recheck; then
18546 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18547 shift
18548 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18549 CONFIG_SHELL='$SHELL'
18550 export CONFIG_SHELL
18551 exec "\$@"
18552 fi
18553
18554 _ACEOF
18555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18556 exec 5>>config.log
18557 {
18558 echo
18559 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18560 ## Running $as_me. ##
18561 _ASBOX
18562 $as_echo "$ac_log"
18563 } >&5
18564
18565 _ACEOF
18566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18567 #
18568 # INIT-COMMANDS
18569 #
18570 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18571
18572
18573 # The HP-UX ksh and POSIX shell print the target directory to stdout
18574 # if CDPATH is set.
18575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18576
18577 sed_quote_subst='$sed_quote_subst'
18578 double_quote_subst='$double_quote_subst'
18579 delay_variable_subst='$delay_variable_subst'
18580 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18581 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18582 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18583 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18584 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18585 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18586 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18587 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18588 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18589 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18590 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18591 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18592 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18593 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18594 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18595 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18596 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18597 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18598 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18599 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18600 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18601 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18602 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18603 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18604 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18605 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18606 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18607 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18608 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18609 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18610 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18611 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18612 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18613 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18614 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18615 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18616 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18617 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18618 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18619 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18620 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18621 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18622 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18623 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18624 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18625 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18626 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18627 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18628 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18629 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18630 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18631 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18632 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18633 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18635 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18636 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"`'
18637 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18638 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18639 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18640 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18641 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18642 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18643 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18644 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18645 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18646 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18647 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18648 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18649 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18650 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18651 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18652 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18653 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18654 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18655 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18656 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18657 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18658 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18659 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18660 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18661 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18662 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18663 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18664 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18665 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18666 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18667 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18668 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18669 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18670 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18671 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18672 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18673 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18674 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18675 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18676 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18677 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18678 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18679 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18680 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18681 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18682 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18683 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18684 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18685 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18686 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18687 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18688 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18689 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18690 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18691 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18692 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18693 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18694 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18695 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18696 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18697 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18698 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18699 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18700 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18701 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18702 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18703 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18704 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18705 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18706 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18707 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18708 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18709 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18710
18711 LTCC='$LTCC'
18712 LTCFLAGS='$LTCFLAGS'
18713 compiler='$compiler_DEFAULT'
18714
18715 # A function that is used when there is no print builtin or printf.
18716 func_fallback_echo ()
18717 {
18718 eval 'cat <<_LTECHO_EOF
18719 \$1
18720 _LTECHO_EOF'
18721 }
18722
18723 # Quote evaled strings.
18724 for var in SHELL \
18725 ECHO \
18726 PATH_SEPARATOR \
18727 SED \
18728 GREP \
18729 EGREP \
18730 FGREP \
18731 LD \
18732 NM \
18733 LN_S \
18734 lt_SP2NL \
18735 lt_NL2SP \
18736 reload_flag \
18737 OBJDUMP \
18738 deplibs_check_method \
18739 file_magic_cmd \
18740 file_magic_glob \
18741 want_nocaseglob \
18742 DLLTOOL \
18743 sharedlib_from_linklib_cmd \
18744 AR \
18745 AR_FLAGS \
18746 archiver_list_spec \
18747 STRIP \
18748 RANLIB \
18749 CC \
18750 CFLAGS \
18751 compiler \
18752 lt_cv_sys_global_symbol_pipe \
18753 lt_cv_sys_global_symbol_to_cdecl \
18754 lt_cv_sys_global_symbol_to_c_name_address \
18755 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18756 nm_file_list_spec \
18757 lt_prog_compiler_no_builtin_flag \
18758 lt_prog_compiler_pic \
18759 lt_prog_compiler_wl \
18760 lt_prog_compiler_static \
18761 lt_cv_prog_compiler_c_o \
18762 need_locks \
18763 MANIFEST_TOOL \
18764 DSYMUTIL \
18765 NMEDIT \
18766 LIPO \
18767 OTOOL \
18768 OTOOL64 \
18769 shrext_cmds \
18770 export_dynamic_flag_spec \
18771 whole_archive_flag_spec \
18772 compiler_needs_object \
18773 with_gnu_ld \
18774 allow_undefined_flag \
18775 no_undefined_flag \
18776 hardcode_libdir_flag_spec \
18777 hardcode_libdir_separator \
18778 exclude_expsyms \
18779 include_expsyms \
18780 file_list_spec \
18781 variables_saved_for_relink \
18782 libname_spec \
18783 library_names_spec \
18784 soname_spec \
18785 install_override_mode \
18786 finish_eval \
18787 old_striplib \
18788 striplib; do
18789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18790 *[\\\\\\\`\\"\\\$]*)
18791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18792 ;;
18793 *)
18794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18795 ;;
18796 esac
18797 done
18798
18799 # Double-quote double-evaled strings.
18800 for var in reload_cmds \
18801 old_postinstall_cmds \
18802 old_postuninstall_cmds \
18803 old_archive_cmds \
18804 extract_expsyms_cmds \
18805 old_archive_from_new_cmds \
18806 old_archive_from_expsyms_cmds \
18807 archive_cmds \
18808 archive_expsym_cmds \
18809 module_cmds \
18810 module_expsym_cmds \
18811 export_symbols_cmds \
18812 prelink_cmds \
18813 postlink_cmds \
18814 postinstall_cmds \
18815 postuninstall_cmds \
18816 finish_cmds \
18817 sys_lib_search_path_spec \
18818 sys_lib_dlsearch_path_spec; do
18819 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18820 *[\\\\\\\`\\"\\\$]*)
18821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18822 ;;
18823 *)
18824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18825 ;;
18826 esac
18827 done
18828
18829 ac_aux_dir='$ac_aux_dir'
18830 xsi_shell='$xsi_shell'
18831 lt_shell_append='$lt_shell_append'
18832
18833 # See if we are running on zsh, and set the options which allow our
18834 # commands through without removal of \ escapes INIT.
18835 if test -n "\${ZSH_VERSION+set}" ; then
18836 setopt NO_GLOB_SUBST
18837 fi
18838
18839
18840 PACKAGE='$PACKAGE'
18841 VERSION='$VERSION'
18842 TIMESTAMP='$TIMESTAMP'
18843 RM='$RM'
18844 ofile='$ofile'
18845
18846
18847
18848
18849 _ACEOF
18850
18851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18852
18853 # Handling of arguments.
18854 for ac_config_target in $ac_config_targets
18855 do
18856 case $ac_config_target in
18857 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18858 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18859 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18861 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18862 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;;
18863
18864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18865 esac
18866 done
18867
18868
18869 # If the user did not use the arguments to specify the items to instantiate,
18870 # then the envvar interface is used. Set only those that are not.
18871 # We use the long form for the default assignment because of an extremely
18872 # bizarre bug on SunOS 4.1.3.
18873 if $ac_need_defaults; then
18874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18877 fi
18878
18879 # Have a temporary directory for convenience. Make it in the build tree
18880 # simply because there is no reason against having it here, and in addition,
18881 # creating and moving files from /tmp can sometimes cause problems.
18882 # Hook for its removal unless debugging.
18883 # Note that there is a small window in which the directory will not be cleaned:
18884 # after its creation but before its name has been assigned to `$tmp'.
18885 $debug ||
18886 {
18887 tmp= ac_tmp=
18888 trap 'exit_status=$?
18889 : "${ac_tmp:=$tmp}"
18890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18891 ' 0
18892 trap 'as_fn_exit 1' 1 2 13 15
18893 }
18894 # Create a (secure) tmp directory for tmp files.
18895
18896 {
18897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18898 test -d "$tmp"
18899 } ||
18900 {
18901 tmp=./conf$$-$RANDOM
18902 (umask 077 && mkdir "$tmp")
18903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18904 ac_tmp=$tmp
18905
18906 # Set up the scripts for CONFIG_FILES section.
18907 # No need to generate them if there are no CONFIG_FILES.
18908 # This happens for instance with `./config.status config.h'.
18909 if test -n "$CONFIG_FILES"; then
18910
18911
18912 ac_cr=`echo X | tr X '\015'`
18913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18914 # But we know of no other shell where ac_cr would be empty at this
18915 # point, so we can use a bashism as a fallback.
18916 if test "x$ac_cr" = x; then
18917 eval ac_cr=\$\'\\r\'
18918 fi
18919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18921 ac_cs_awk_cr='\\r'
18922 else
18923 ac_cs_awk_cr=$ac_cr
18924 fi
18925
18926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18927 _ACEOF
18928
18929
18930 {
18931 echo "cat >conf$$subs.awk <<_ACEOF" &&
18932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18933 echo "_ACEOF"
18934 } >conf$$subs.sh ||
18935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18937 ac_delim='%!_!# '
18938 for ac_last_try in false false false false false :; do
18939 . ./conf$$subs.sh ||
18940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18941
18942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18943 if test $ac_delim_n = $ac_delim_num; then
18944 break
18945 elif $ac_last_try; then
18946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18947 else
18948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18949 fi
18950 done
18951 rm -f conf$$subs.sh
18952
18953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18955 _ACEOF
18956 sed -n '
18957 h
18958 s/^/S["/; s/!.*/"]=/
18959 p
18960 g
18961 s/^[^!]*!//
18962 :repl
18963 t repl
18964 s/'"$ac_delim"'$//
18965 t delim
18966 :nl
18967 h
18968 s/\(.\{148\}\)..*/\1/
18969 t more1
18970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18971 p
18972 n
18973 b repl
18974 :more1
18975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18976 p
18977 g
18978 s/.\{148\}//
18979 t nl
18980 :delim
18981 h
18982 s/\(.\{148\}\)..*/\1/
18983 t more2
18984 s/["\\]/\\&/g; s/^/"/; s/$/"/
18985 p
18986 b
18987 :more2
18988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18989 p
18990 g
18991 s/.\{148\}//
18992 t delim
18993 ' <conf$$subs.awk | sed '
18994 /^[^""]/{
18995 N
18996 s/\n//
18997 }
18998 ' >>$CONFIG_STATUS || ac_write_fail=1
18999 rm -f conf$$subs.awk
19000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19001 _ACAWK
19002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19003 for (key in S) S_is_set[key] = 1
19004 FS = ""
19005
19006 }
19007 {
19008 line = $ 0
19009 nfields = split(line, field, "@")
19010 substed = 0
19011 len = length(field[1])
19012 for (i = 2; i < nfields; i++) {
19013 key = field[i]
19014 keylen = length(key)
19015 if (S_is_set[key]) {
19016 value = S[key]
19017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19018 len += length(value) + length(field[++i])
19019 substed = 1
19020 } else
19021 len += 1 + keylen
19022 }
19023
19024 print line
19025 }
19026
19027 _ACAWK
19028 _ACEOF
19029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19032 else
19033 cat
19034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19036 _ACEOF
19037
19038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19040 # trailing colons and then remove the whole line if VPATH becomes empty
19041 # (actually we leave an empty line to preserve line numbers).
19042 if test "x$srcdir" = x.; then
19043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19044 h
19045 s///
19046 s/^/:/
19047 s/[ ]*$/:/
19048 s/:\$(srcdir):/:/g
19049 s/:\${srcdir}:/:/g
19050 s/:@srcdir@:/:/g
19051 s/^:*//
19052 s/:*$//
19053 x
19054 s/\(=[ ]*\).*/\1/
19055 G
19056 s/\n//
19057 s/^[^=]*=[ ]*$//
19058 }'
19059 fi
19060
19061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19062 fi # test -n "$CONFIG_FILES"
19063
19064 # Set up the scripts for CONFIG_HEADERS section.
19065 # No need to generate them if there are no CONFIG_HEADERS.
19066 # This happens for instance with `./config.status Makefile'.
19067 if test -n "$CONFIG_HEADERS"; then
19068 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19069 BEGIN {
19070 _ACEOF
19071
19072 # Transform confdefs.h into an awk script `defines.awk', embedded as
19073 # here-document in config.status, that substitutes the proper values into
19074 # config.h.in to produce config.h.
19075
19076 # Create a delimiter string that does not exist in confdefs.h, to ease
19077 # handling of long lines.
19078 ac_delim='%!_!# '
19079 for ac_last_try in false false :; do
19080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19081 if test -z "$ac_tt"; then
19082 break
19083 elif $ac_last_try; then
19084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19085 else
19086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19087 fi
19088 done
19089
19090 # For the awk script, D is an array of macro values keyed by name,
19091 # likewise P contains macro parameters if any. Preserve backslash
19092 # newline sequences.
19093
19094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19095 sed -n '
19096 s/.\{148\}/&'"$ac_delim"'/g
19097 t rset
19098 :rset
19099 s/^[ ]*#[ ]*define[ ][ ]*/ /
19100 t def
19101 d
19102 :def
19103 s/\\$//
19104 t bsnl
19105 s/["\\]/\\&/g
19106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19107 D["\1"]=" \3"/p
19108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19109 d
19110 :bsnl
19111 s/["\\]/\\&/g
19112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19113 D["\1"]=" \3\\\\\\n"\\/p
19114 t cont
19115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19116 t cont
19117 d
19118 :cont
19119 n
19120 s/.\{148\}/&'"$ac_delim"'/g
19121 t clear
19122 :clear
19123 s/\\$//
19124 t bsnlc
19125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19126 d
19127 :bsnlc
19128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19129 b cont
19130 ' <confdefs.h | sed '
19131 s/'"$ac_delim"'/"\\\
19132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19133
19134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19135 for (key in D) D_is_set[key] = 1
19136 FS = ""
19137 }
19138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19139 line = \$ 0
19140 split(line, arg, " ")
19141 if (arg[1] == "#") {
19142 defundef = arg[2]
19143 mac1 = arg[3]
19144 } else {
19145 defundef = substr(arg[1], 2)
19146 mac1 = arg[2]
19147 }
19148 split(mac1, mac2, "(") #)
19149 macro = mac2[1]
19150 prefix = substr(line, 1, index(line, defundef) - 1)
19151 if (D_is_set[macro]) {
19152 # Preserve the white space surrounding the "#".
19153 print prefix "define", macro P[macro] D[macro]
19154 next
19155 } else {
19156 # Replace #undef with comments. This is necessary, for example,
19157 # in the case of _POSIX_SOURCE, which is predefined and required
19158 # on some systems where configure will not decide to define it.
19159 if (defundef == "undef") {
19160 print "/*", prefix defundef, macro, "*/"
19161 next
19162 }
19163 }
19164 }
19165 { print }
19166 _ACAWK
19167 _ACEOF
19168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19170 fi # test -n "$CONFIG_HEADERS"
19171
19172
19173 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19174 shift
19175 for ac_tag
19176 do
19177 case $ac_tag in
19178 :[FHLC]) ac_mode=$ac_tag; continue;;
19179 esac
19180 case $ac_mode$ac_tag in
19181 :[FHL]*:*);;
19182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19183 :[FH]-) ac_tag=-:-;;
19184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19185 esac
19186 ac_save_IFS=$IFS
19187 IFS=:
19188 set x $ac_tag
19189 IFS=$ac_save_IFS
19190 shift
19191 ac_file=$1
19192 shift
19193
19194 case $ac_mode in
19195 :L) ac_source=$1;;
19196 :[FH])
19197 ac_file_inputs=
19198 for ac_f
19199 do
19200 case $ac_f in
19201 -) ac_f="$ac_tmp/stdin";;
19202 *) # Look for the file first in the build tree, then in the source tree
19203 # (if the path is not absolute). The absolute path cannot be DOS-style,
19204 # because $ac_f cannot contain `:'.
19205 test -f "$ac_f" ||
19206 case $ac_f in
19207 [\\/$]*) false;;
19208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19209 esac ||
19210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19211 esac
19212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19213 as_fn_append ac_file_inputs " '$ac_f'"
19214 done
19215
19216 # Let's still pretend it is `configure' which instantiates (i.e., don't
19217 # use $as_me), people would be surprised to read:
19218 # /* config.h. Generated by config.status. */
19219 configure_input='Generated from '`
19220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19221 `' by configure.'
19222 if test x"$ac_file" != x-; then
19223 configure_input="$ac_file. $configure_input"
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19225 $as_echo "$as_me: creating $ac_file" >&6;}
19226 fi
19227 # Neutralize special characters interpreted by sed in replacement strings.
19228 case $configure_input in #(
19229 *\&* | *\|* | *\\* )
19230 ac_sed_conf_input=`$as_echo "$configure_input" |
19231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19232 *) ac_sed_conf_input=$configure_input;;
19233 esac
19234
19235 case $ac_tag in
19236 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19238 esac
19239 ;;
19240 esac
19241
19242 ac_dir=`$as_dirname -- "$ac_file" ||
19243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19244 X"$ac_file" : 'X\(//\)[^/]' \| \
19245 X"$ac_file" : 'X\(//\)$' \| \
19246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19247 $as_echo X"$ac_file" |
19248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19249 s//\1/
19250 q
19251 }
19252 /^X\(\/\/\)[^/].*/{
19253 s//\1/
19254 q
19255 }
19256 /^X\(\/\/\)$/{
19257 s//\1/
19258 q
19259 }
19260 /^X\(\/\).*/{
19261 s//\1/
19262 q
19263 }
19264 s/.*/./; q'`
19265 as_dir="$ac_dir"; as_fn_mkdir_p
19266 ac_builddir=.
19267
19268 case "$ac_dir" in
19269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19270 *)
19271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19272 # A ".." for each directory in $ac_dir_suffix.
19273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19274 case $ac_top_builddir_sub in
19275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19277 esac ;;
19278 esac
19279 ac_abs_top_builddir=$ac_pwd
19280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19281 # for backward compatibility:
19282 ac_top_builddir=$ac_top_build_prefix
19283
19284 case $srcdir in
19285 .) # We are building in place.
19286 ac_srcdir=.
19287 ac_top_srcdir=$ac_top_builddir_sub
19288 ac_abs_top_srcdir=$ac_pwd ;;
19289 [\\/]* | ?:[\\/]* ) # Absolute name.
19290 ac_srcdir=$srcdir$ac_dir_suffix;
19291 ac_top_srcdir=$srcdir
19292 ac_abs_top_srcdir=$srcdir ;;
19293 *) # Relative name.
19294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19295 ac_top_srcdir=$ac_top_build_prefix$srcdir
19296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19297 esac
19298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19299
19300
19301 case $ac_mode in
19302 :F)
19303 #
19304 # CONFIG_FILE
19305 #
19306
19307 case $INSTALL in
19308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19310 esac
19311 ac_MKDIR_P=$MKDIR_P
19312 case $MKDIR_P in
19313 [\\/$]* | ?:[\\/]* ) ;;
19314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19315 esac
19316 _ACEOF
19317
19318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19319 # If the template does not know about datarootdir, expand it.
19320 # FIXME: This hack should be removed a few years after 2.60.
19321 ac_datarootdir_hack=; ac_datarootdir_seen=
19322 ac_sed_dataroot='
19323 /datarootdir/ {
19324 p
19325 q
19326 }
19327 /@datadir@/p
19328 /@docdir@/p
19329 /@infodir@/p
19330 /@localedir@/p
19331 /@mandir@/p'
19332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19333 *datarootdir*) ac_datarootdir_seen=yes;;
19334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19337 _ACEOF
19338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19339 ac_datarootdir_hack='
19340 s&@datadir@&$datadir&g
19341 s&@docdir@&$docdir&g
19342 s&@infodir@&$infodir&g
19343 s&@localedir@&$localedir&g
19344 s&@mandir@&$mandir&g
19345 s&\\\${datarootdir}&$datarootdir&g' ;;
19346 esac
19347 _ACEOF
19348
19349 # Neutralize VPATH when `$srcdir' = `.'.
19350 # Shell code in configure.ac might set extrasub.
19351 # FIXME: do we really want to maintain this feature?
19352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19353 ac_sed_extra="$ac_vpsub
19354 $extrasub
19355 _ACEOF
19356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19357 :t
19358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19359 s|@configure_input@|$ac_sed_conf_input|;t t
19360 s&@top_builddir@&$ac_top_builddir_sub&;t t
19361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19362 s&@srcdir@&$ac_srcdir&;t t
19363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19364 s&@top_srcdir@&$ac_top_srcdir&;t t
19365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19366 s&@builddir@&$ac_builddir&;t t
19367 s&@abs_builddir@&$ac_abs_builddir&;t t
19368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19369 s&@INSTALL@&$ac_INSTALL&;t t
19370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19371 $ac_datarootdir_hack
19372 "
19373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19375
19376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19381 which seems to be undefined. Please make sure it is defined" >&5
19382 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19383 which seems to be undefined. Please make sure it is defined" >&2;}
19384
19385 rm -f "$ac_tmp/stdin"
19386 case $ac_file in
19387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19389 esac \
19390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19391 ;;
19392 :H)
19393 #
19394 # CONFIG_HEADER
19395 #
19396 if test x"$ac_file" != x-; then
19397 {
19398 $as_echo "/* $configure_input */" \
19399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19400 } >"$ac_tmp/config.h" \
19401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19405 else
19406 rm -f "$ac_file"
19407 mv "$ac_tmp/config.h" "$ac_file" \
19408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19409 fi
19410 else
19411 $as_echo "/* $configure_input */" \
19412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19413 || as_fn_error $? "could not create -" "$LINENO" 5
19414 fi
19415 # Compute "$ac_file"'s index in $config_headers.
19416 _am_arg="$ac_file"
19417 _am_stamp_count=1
19418 for _am_header in $config_headers :; do
19419 case $_am_header in
19420 $_am_arg | $_am_arg:* )
19421 break ;;
19422 * )
19423 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19424 esac
19425 done
19426 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19427 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19428 X"$_am_arg" : 'X\(//\)[^/]' \| \
19429 X"$_am_arg" : 'X\(//\)$' \| \
19430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19431 $as_echo X"$_am_arg" |
19432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19433 s//\1/
19434 q
19435 }
19436 /^X\(\/\/\)[^/].*/{
19437 s//\1/
19438 q
19439 }
19440 /^X\(\/\/\)$/{
19441 s//\1/
19442 q
19443 }
19444 /^X\(\/\).*/{
19445 s//\1/
19446 q
19447 }
19448 s/.*/./; q'`/stamp-h$_am_stamp_count
19449 ;;
19450
19451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19452 $as_echo "$as_me: executing $ac_file commands" >&6;}
19453 ;;
19454 esac
19455
19456
19457 case $ac_file$ac_mode in
19458 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19459 # Older Autoconf quotes --file arguments for eval, but not when files
19460 # are listed without --file. Let's play safe and only enable the eval
19461 # if we detect the quoting.
19462 case $CONFIG_FILES in
19463 *\'*) eval set x "$CONFIG_FILES" ;;
19464 *) set x $CONFIG_FILES ;;
19465 esac
19466 shift
19467 for mf
19468 do
19469 # Strip MF so we end up with the name of the file.
19470 mf=`echo "$mf" | sed -e 's/:.*$//'`
19471 # Check whether this is an Automake generated Makefile or not.
19472 # We used to match only the files named 'Makefile.in', but
19473 # some people rename them; so instead we look at the file content.
19474 # Grep'ing the first line is not enough: some people post-process
19475 # each Makefile.in and add a new line on top of each file to say so.
19476 # Grep'ing the whole file is not good either: AIX grep has a line
19477 # limit of 2048, but all sed's we know have understand at least 4000.
19478 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19479 dirpart=`$as_dirname -- "$mf" ||
19480 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19481 X"$mf" : 'X\(//\)[^/]' \| \
19482 X"$mf" : 'X\(//\)$' \| \
19483 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19484 $as_echo X"$mf" |
19485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19486 s//\1/
19487 q
19488 }
19489 /^X\(\/\/\)[^/].*/{
19490 s//\1/
19491 q
19492 }
19493 /^X\(\/\/\)$/{
19494 s//\1/
19495 q
19496 }
19497 /^X\(\/\).*/{
19498 s//\1/
19499 q
19500 }
19501 s/.*/./; q'`
19502 else
19503 continue
19504 fi
19505 # Extract the definition of DEPDIR, am__include, and am__quote
19506 # from the Makefile without running 'make'.
19507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19508 test -z "$DEPDIR" && continue
19509 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19510 test -z "$am__include" && continue
19511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19512 # Find all dependency output files, they are included files with
19513 # $(DEPDIR) in their names. We invoke sed twice because it is the
19514 # simplest approach to changing $(DEPDIR) to its actual value in the
19515 # expansion.
19516 for file in `sed -n "
19517 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19518 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19519 # Make sure the directory exists.
19520 test -f "$dirpart/$file" && continue
19521 fdir=`$as_dirname -- "$file" ||
19522 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19523 X"$file" : 'X\(//\)[^/]' \| \
19524 X"$file" : 'X\(//\)$' \| \
19525 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19526 $as_echo X"$file" |
19527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19528 s//\1/
19529 q
19530 }
19531 /^X\(\/\/\)[^/].*/{
19532 s//\1/
19533 q
19534 }
19535 /^X\(\/\/\)$/{
19536 s//\1/
19537 q
19538 }
19539 /^X\(\/\).*/{
19540 s//\1/
19541 q
19542 }
19543 s/.*/./; q'`
19544 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19545 # echo "creating $dirpart/$file"
19546 echo '# dummy' > "$dirpart/$file"
19547 done
19548 done
19549 }
19550 ;;
19551 "libtool":C)
19552
19553 # See if we are running on zsh, and set the options which allow our
19554 # commands through without removal of \ escapes.
19555 if test -n "${ZSH_VERSION+set}" ; then
19556 setopt NO_GLOB_SUBST
19557 fi
19558
19559 cfgfile="${ofile}T"
19560 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19561 $RM "$cfgfile"
19562
19563 cat <<_LT_EOF >> "$cfgfile"
19564 #! $SHELL
19565
19566 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19567 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19570 #
19571 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19572 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19573 # Foundation, Inc.
19574 # Written by Gordon Matzigkeit, 1996
19575 #
19576 # This file is part of GNU Libtool.
19577 #
19578 # GNU Libtool is free software; you can redistribute it and/or
19579 # modify it under the terms of the GNU General Public License as
19580 # published by the Free Software Foundation; either version 2 of
19581 # the License, or (at your option) any later version.
19582 #
19583 # As a special exception to the GNU General Public License,
19584 # if you distribute this file as part of a program or library that
19585 # is built using GNU Libtool, you may include this file under the
19586 # same distribution terms that you use for the rest of that program.
19587 #
19588 # GNU Libtool is distributed in the hope that it will be useful,
19589 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19591 # GNU General Public License for more details.
19592 #
19593 # You should have received a copy of the GNU General Public License
19594 # along with GNU Libtool; see the file COPYING. If not, a copy
19595 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19596 # obtained by writing to the Free Software Foundation, Inc.,
19597 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19598
19599
19600 # The names of the tagged configurations supported by this script.
19601 available_tags=""
19602
19603 # ### BEGIN LIBTOOL CONFIG
19604
19605 # Which release of libtool.m4 was used?
19606 macro_version=$macro_version
19607 macro_revision=$macro_revision
19608
19609 # Whether or not to build shared libraries.
19610 build_libtool_libs=$enable_shared
19611
19612 # Whether or not to build static libraries.
19613 build_old_libs=$enable_static
19614
19615 # What type of objects to build.
19616 pic_mode=$pic_mode
19617
19618 # Whether or not to optimize for fast installation.
19619 fast_install=$enable_fast_install
19620
19621 # Shell to use when invoking shell scripts.
19622 SHELL=$lt_SHELL
19623
19624 # An echo program that protects backslashes.
19625 ECHO=$lt_ECHO
19626
19627 # The PATH separator for the build system.
19628 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19629
19630 # The host system.
19631 host_alias=$host_alias
19632 host=$host
19633 host_os=$host_os
19634
19635 # The build system.
19636 build_alias=$build_alias
19637 build=$build
19638 build_os=$build_os
19639
19640 # A sed program that does not truncate output.
19641 SED=$lt_SED
19642
19643 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19644 Xsed="\$SED -e 1s/^X//"
19645
19646 # A grep program that handles long lines.
19647 GREP=$lt_GREP
19648
19649 # An ERE matcher.
19650 EGREP=$lt_EGREP
19651
19652 # A literal string matcher.
19653 FGREP=$lt_FGREP
19654
19655 # A BSD- or MS-compatible name lister.
19656 NM=$lt_NM
19657
19658 # Whether we need soft or hard links.
19659 LN_S=$lt_LN_S
19660
19661 # What is the maximum length of a command?
19662 max_cmd_len=$max_cmd_len
19663
19664 # Object file suffix (normally "o").
19665 objext=$ac_objext
19666
19667 # Executable file suffix (normally "").
19668 exeext=$exeext
19669
19670 # whether the shell understands "unset".
19671 lt_unset=$lt_unset
19672
19673 # turn spaces into newlines.
19674 SP2NL=$lt_lt_SP2NL
19675
19676 # turn newlines into spaces.
19677 NL2SP=$lt_lt_NL2SP
19678
19679 # convert \$build file names to \$host format.
19680 to_host_file_cmd=$lt_cv_to_host_file_cmd
19681
19682 # convert \$build files to toolchain format.
19683 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19684
19685 # An object symbol dumper.
19686 OBJDUMP=$lt_OBJDUMP
19687
19688 # Method to check whether dependent libraries are shared objects.
19689 deplibs_check_method=$lt_deplibs_check_method
19690
19691 # Command to use when deplibs_check_method = "file_magic".
19692 file_magic_cmd=$lt_file_magic_cmd
19693
19694 # How to find potential files when deplibs_check_method = "file_magic".
19695 file_magic_glob=$lt_file_magic_glob
19696
19697 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19698 want_nocaseglob=$lt_want_nocaseglob
19699
19700 # DLL creation program.
19701 DLLTOOL=$lt_DLLTOOL
19702
19703 # Command to associate shared and link libraries.
19704 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19705
19706 # The archiver.
19707 AR=$lt_AR
19708
19709 # Flags to create an archive.
19710 AR_FLAGS=$lt_AR_FLAGS
19711
19712 # How to feed a file listing to the archiver.
19713 archiver_list_spec=$lt_archiver_list_spec
19714
19715 # A symbol stripping program.
19716 STRIP=$lt_STRIP
19717
19718 # Commands used to install an old-style archive.
19719 RANLIB=$lt_RANLIB
19720 old_postinstall_cmds=$lt_old_postinstall_cmds
19721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19722
19723 # Whether to use a lock for old archive extraction.
19724 lock_old_archive_extraction=$lock_old_archive_extraction
19725
19726 # A C compiler.
19727 LTCC=$lt_CC
19728
19729 # LTCC compiler flags.
19730 LTCFLAGS=$lt_CFLAGS
19731
19732 # Take the output of nm and produce a listing of raw symbols and C names.
19733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19734
19735 # Transform the output of nm in a proper C declaration.
19736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19737
19738 # Transform the output of nm in a C name address pair.
19739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19740
19741 # Transform the output of nm in a C name address pair when lib prefix is needed.
19742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19743
19744 # Specify filename containing input files for \$NM.
19745 nm_file_list_spec=$lt_nm_file_list_spec
19746
19747 # The root where to search for dependent libraries,and in which our libraries should be installed.
19748 lt_sysroot=$lt_sysroot
19749
19750 # The name of the directory that contains temporary libtool files.
19751 objdir=$objdir
19752
19753 # Used to examine libraries when file_magic_cmd begins with "file".
19754 MAGIC_CMD=$MAGIC_CMD
19755
19756 # Must we lock files when doing compilation?
19757 need_locks=$lt_need_locks
19758
19759 # Manifest tool.
19760 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19761
19762 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19763 DSYMUTIL=$lt_DSYMUTIL
19764
19765 # Tool to change global to local symbols on Mac OS X.
19766 NMEDIT=$lt_NMEDIT
19767
19768 # Tool to manipulate fat objects and archives on Mac OS X.
19769 LIPO=$lt_LIPO
19770
19771 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19772 OTOOL=$lt_OTOOL
19773
19774 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19775 OTOOL64=$lt_OTOOL64
19776
19777 # Old archive suffix (normally "a").
19778 libext=$libext
19779
19780 # Shared library suffix (normally ".so").
19781 shrext_cmds=$lt_shrext_cmds
19782
19783 # The commands to extract the exported symbol list from a shared archive.
19784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19785
19786 # Variables whose values should be saved in libtool wrapper scripts and
19787 # restored at link time.
19788 variables_saved_for_relink=$lt_variables_saved_for_relink
19789
19790 # Do we need the "lib" prefix for modules?
19791 need_lib_prefix=$need_lib_prefix
19792
19793 # Do we need a version for libraries?
19794 need_version=$need_version
19795
19796 # Library versioning type.
19797 version_type=$version_type
19798
19799 # Shared library runtime path variable.
19800 runpath_var=$runpath_var
19801
19802 # Shared library path variable.
19803 shlibpath_var=$shlibpath_var
19804
19805 # Is shlibpath searched before the hard-coded library search path?
19806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19807
19808 # Format of library name prefix.
19809 libname_spec=$lt_libname_spec
19810
19811 # List of archive names. First name is the real one, the rest are links.
19812 # The last name is the one that the linker finds with -lNAME
19813 library_names_spec=$lt_library_names_spec
19814
19815 # The coded name of the library, if different from the real name.
19816 soname_spec=$lt_soname_spec
19817
19818 # Permission mode override for installation of shared libraries.
19819 install_override_mode=$lt_install_override_mode
19820
19821 # Command to use after installation of a shared archive.
19822 postinstall_cmds=$lt_postinstall_cmds
19823
19824 # Command to use after uninstallation of a shared archive.
19825 postuninstall_cmds=$lt_postuninstall_cmds
19826
19827 # Commands used to finish a libtool library installation in a directory.
19828 finish_cmds=$lt_finish_cmds
19829
19830 # As "finish_cmds", except a single script fragment to be evaled but
19831 # not shown.
19832 finish_eval=$lt_finish_eval
19833
19834 # Whether we should hardcode library paths into libraries.
19835 hardcode_into_libs=$hardcode_into_libs
19836
19837 # Compile-time system search path for libraries.
19838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19839
19840 # Run-time system search path for libraries.
19841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19842
19843 # Whether dlopen is supported.
19844 dlopen_support=$enable_dlopen
19845
19846 # Whether dlopen of programs is supported.
19847 dlopen_self=$enable_dlopen_self
19848
19849 # Whether dlopen of statically linked programs is supported.
19850 dlopen_self_static=$enable_dlopen_self_static
19851
19852 # Commands to strip libraries.
19853 old_striplib=$lt_old_striplib
19854 striplib=$lt_striplib
19855
19856
19857 # The linker used to build libraries.
19858 LD=$lt_LD
19859
19860 # How to create reloadable object files.
19861 reload_flag=$lt_reload_flag
19862 reload_cmds=$lt_reload_cmds
19863
19864 # Commands used to build an old-style archive.
19865 old_archive_cmds=$lt_old_archive_cmds
19866
19867 # A language specific compiler.
19868 CC=$lt_compiler
19869
19870 # Is the compiler the GNU compiler?
19871 with_gcc=$GCC
19872
19873 # Compiler flag to turn off builtin functions.
19874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19875
19876 # Additional compiler flags for building library objects.
19877 pic_flag=$lt_lt_prog_compiler_pic
19878
19879 # How to pass a linker flag through the compiler.
19880 wl=$lt_lt_prog_compiler_wl
19881
19882 # Compiler flag to prevent dynamic linking.
19883 link_static_flag=$lt_lt_prog_compiler_static
19884
19885 # Does compiler simultaneously support -c and -o options?
19886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19887
19888 # Whether or not to add -lc for building shared libraries.
19889 build_libtool_need_lc=$archive_cmds_need_lc
19890
19891 # Whether or not to disallow shared libs when runtime libs are static.
19892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19893
19894 # Compiler flag to allow reflexive dlopens.
19895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19896
19897 # Compiler flag to generate shared objects directly from archives.
19898 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19899
19900 # Whether the compiler copes with passing no objects directly.
19901 compiler_needs_object=$lt_compiler_needs_object
19902
19903 # Create an old-style archive from a shared archive.
19904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19905
19906 # Create a temporary old-style archive to link instead of a shared archive.
19907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19908
19909 # Commands used to build a shared archive.
19910 archive_cmds=$lt_archive_cmds
19911 archive_expsym_cmds=$lt_archive_expsym_cmds
19912
19913 # Commands used to build a loadable module if different from building
19914 # a shared archive.
19915 module_cmds=$lt_module_cmds
19916 module_expsym_cmds=$lt_module_expsym_cmds
19917
19918 # Whether we are building with GNU ld or not.
19919 with_gnu_ld=$lt_with_gnu_ld
19920
19921 # Flag that allows shared libraries with undefined symbols to be built.
19922 allow_undefined_flag=$lt_allow_undefined_flag
19923
19924 # Flag that enforces no undefined symbols.
19925 no_undefined_flag=$lt_no_undefined_flag
19926
19927 # Flag to hardcode \$libdir into a binary during linking.
19928 # This must work even if \$libdir does not exist
19929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19930
19931 # Whether we need a single "-rpath" flag with a separated argument.
19932 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19933
19934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19935 # DIR into the resulting binary.
19936 hardcode_direct=$hardcode_direct
19937
19938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19939 # DIR into the resulting binary and the resulting library dependency is
19940 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19941 # library is relocated.
19942 hardcode_direct_absolute=$hardcode_direct_absolute
19943
19944 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19945 # into the resulting binary.
19946 hardcode_minus_L=$hardcode_minus_L
19947
19948 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19949 # into the resulting binary.
19950 hardcode_shlibpath_var=$hardcode_shlibpath_var
19951
19952 # Set to "yes" if building a shared library automatically hardcodes DIR
19953 # into the library and all subsequent libraries and executables linked
19954 # against it.
19955 hardcode_automatic=$hardcode_automatic
19956
19957 # Set to yes if linker adds runtime paths of dependent libraries
19958 # to runtime path list.
19959 inherit_rpath=$inherit_rpath
19960
19961 # Whether libtool must link a program against all its dependency libraries.
19962 link_all_deplibs=$link_all_deplibs
19963
19964 # Set to "yes" if exported symbols are required.
19965 always_export_symbols=$always_export_symbols
19966
19967 # The commands to list exported symbols.
19968 export_symbols_cmds=$lt_export_symbols_cmds
19969
19970 # Symbols that should not be listed in the preloaded symbols.
19971 exclude_expsyms=$lt_exclude_expsyms
19972
19973 # Symbols that must always be exported.
19974 include_expsyms=$lt_include_expsyms
19975
19976 # Commands necessary for linking programs (against libraries) with templates.
19977 prelink_cmds=$lt_prelink_cmds
19978
19979 # Commands necessary for finishing linking programs.
19980 postlink_cmds=$lt_postlink_cmds
19981
19982 # Specify filename containing input files.
19983 file_list_spec=$lt_file_list_spec
19984
19985 # How to hardcode a shared library path into an executable.
19986 hardcode_action=$hardcode_action
19987
19988 # ### END LIBTOOL CONFIG
19989
19990 _LT_EOF
19991
19992 case $host_os in
19993 aix3*)
19994 cat <<\_LT_EOF >> "$cfgfile"
19995 # AIX sometimes has problems with the GCC collect2 program. For some
19996 # reason, if we set the COLLECT_NAMES environment variable, the problems
19997 # vanish in a puff of smoke.
19998 if test "X${COLLECT_NAMES+set}" != Xset; then
19999 COLLECT_NAMES=
20000 export COLLECT_NAMES
20001 fi
20002 _LT_EOF
20003 ;;
20004 esac
20005
20006
20007 ltmain="$ac_aux_dir/ltmain.sh"
20008
20009
20010 # We use sed instead of cat because bash on DJGPP gets confused if
20011 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20012 # text mode, it properly converts lines to CR/LF. This bash problem
20013 # is reportedly fixed, but why not run on old versions too?
20014 sed '$q' "$ltmain" >> "$cfgfile" \
20015 || (rm -f "$cfgfile"; exit 1)
20016
20017 if test x"$xsi_shell" = xyes; then
20018 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20019 func_dirname ()\
20020 {\
20021 \ case ${1} in\
20022 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20023 \ * ) func_dirname_result="${3}" ;;\
20024 \ esac\
20025 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20026 && mv -f "$cfgfile.tmp" "$cfgfile" \
20027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20028 test 0 -eq $? || _lt_function_replace_fail=:
20029
20030
20031 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20032 func_basename ()\
20033 {\
20034 \ func_basename_result="${1##*/}"\
20035 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20036 && mv -f "$cfgfile.tmp" "$cfgfile" \
20037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20038 test 0 -eq $? || _lt_function_replace_fail=:
20039
20040
20041 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20042 func_dirname_and_basename ()\
20043 {\
20044 \ case ${1} in\
20045 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20046 \ * ) func_dirname_result="${3}" ;;\
20047 \ esac\
20048 \ func_basename_result="${1##*/}"\
20049 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20050 && mv -f "$cfgfile.tmp" "$cfgfile" \
20051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20052 test 0 -eq $? || _lt_function_replace_fail=:
20053
20054
20055 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20056 func_stripname ()\
20057 {\
20058 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20059 \ # positional parameters, so assign one to ordinary parameter first.\
20060 \ func_stripname_result=${3}\
20061 \ func_stripname_result=${func_stripname_result#"${1}"}\
20062 \ func_stripname_result=${func_stripname_result%"${2}"}\
20063 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20064 && mv -f "$cfgfile.tmp" "$cfgfile" \
20065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20066 test 0 -eq $? || _lt_function_replace_fail=:
20067
20068
20069 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20070 func_split_long_opt ()\
20071 {\
20072 \ func_split_long_opt_name=${1%%=*}\
20073 \ func_split_long_opt_arg=${1#*=}\
20074 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20075 && mv -f "$cfgfile.tmp" "$cfgfile" \
20076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20077 test 0 -eq $? || _lt_function_replace_fail=:
20078
20079
20080 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20081 func_split_short_opt ()\
20082 {\
20083 \ func_split_short_opt_arg=${1#??}\
20084 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20085 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20086 && mv -f "$cfgfile.tmp" "$cfgfile" \
20087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20088 test 0 -eq $? || _lt_function_replace_fail=:
20089
20090
20091 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20092 func_lo2o ()\
20093 {\
20094 \ case ${1} in\
20095 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20096 \ *) func_lo2o_result=${1} ;;\
20097 \ esac\
20098 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20099 && mv -f "$cfgfile.tmp" "$cfgfile" \
20100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20101 test 0 -eq $? || _lt_function_replace_fail=:
20102
20103
20104 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20105 func_xform ()\
20106 {\
20107 func_xform_result=${1%.*}.lo\
20108 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20109 && mv -f "$cfgfile.tmp" "$cfgfile" \
20110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20111 test 0 -eq $? || _lt_function_replace_fail=:
20112
20113
20114 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20115 func_arith ()\
20116 {\
20117 func_arith_result=$(( $* ))\
20118 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20119 && mv -f "$cfgfile.tmp" "$cfgfile" \
20120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20121 test 0 -eq $? || _lt_function_replace_fail=:
20122
20123
20124 sed -e '/^func_len ()$/,/^} # func_len /c\
20125 func_len ()\
20126 {\
20127 func_len_result=${#1}\
20128 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20129 && mv -f "$cfgfile.tmp" "$cfgfile" \
20130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20131 test 0 -eq $? || _lt_function_replace_fail=:
20132
20133 fi
20134
20135 if test x"$lt_shell_append" = xyes; then
20136 sed -e '/^func_append ()$/,/^} # func_append /c\
20137 func_append ()\
20138 {\
20139 eval "${1}+=\\${2}"\
20140 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20141 && mv -f "$cfgfile.tmp" "$cfgfile" \
20142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20143 test 0 -eq $? || _lt_function_replace_fail=:
20144
20145
20146 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20147 func_append_quoted ()\
20148 {\
20149 \ func_quote_for_eval "${2}"\
20150 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20151 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20152 && mv -f "$cfgfile.tmp" "$cfgfile" \
20153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20154 test 0 -eq $? || _lt_function_replace_fail=:
20155
20156
20157 # Save a `func_append' function call where possible by direct use of '+='
20158 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20159 && mv -f "$cfgfile.tmp" "$cfgfile" \
20160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20161 test 0 -eq $? || _lt_function_replace_fail=:
20162 else
20163 # Save a `func_append' function call even when '+=' is not available
20164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20165 && mv -f "$cfgfile.tmp" "$cfgfile" \
20166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20167 test 0 -eq $? || _lt_function_replace_fail=:
20168 fi
20169
20170 if test x"$_lt_function_replace_fail" = x":"; then
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20172 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20173 fi
20174
20175
20176 mv -f "$cfgfile" "$ofile" ||
20177 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20178 chmod +x "$ofile"
20179
20180 ;;
20181
20182 esac
20183 done # for ac_tag
20184
20185
20186 as_fn_exit 0
20187 _ACEOF
20188 ac_clean_files=$ac_clean_files_save
20189
20190 test $ac_write_fail = 0 ||
20191 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20192
20193
20194 # configure is writing to config.log, and then calls config.status.
20195 # config.status does its own redirection, appending to config.log.
20196 # Unfortunately, on DOS this fails, as config.log is still kept open
20197 # by configure, so config.status won't be able to write to it; its
20198 # output is simply discarded. So we exec the FD to /dev/null,
20199 # effectively closing config.log, so it can be properly (re)opened and
20200 # appended to by config.status. When coming back to configure, we
20201 # need to make the FD available again.
20202 if test "$no_create" != yes; then
20203 ac_cs_success=:
20204 ac_config_status_args=
20205 test "$silent" = yes &&
20206 ac_config_status_args="$ac_config_status_args --quiet"
20207 exec 5>/dev/null
20208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20209 exec 5>>config.log
20210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20211 # would make configure fail if this is the last instruction.
20212 $ac_cs_success || as_fn_exit 1
20213 fi
20214 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20216 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20217 fi
20218
20219