configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXres 1.2.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (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='libXres'
593 PACKAGE_TARNAME='libXres'
594 PACKAGE_VERSION='1.2.0'
595 PACKAGE_STRING='libXres 1.2.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XRES_LIBS
641 XRES_CFLAGS
642 XTMALLOC_ZERO_CFLAGS
643 XMALLOC_ZERO_CFLAGS
644 MALLOC_ZERO_CFLAGS
645 MAN_SUBSTS
646 XORG_MAN_PAGE
647 ADMIN_MAN_DIR
648 DRIVER_MAN_DIR
649 MISC_MAN_DIR
650 FILE_MAN_DIR
651 LIB_MAN_DIR
652 APP_MAN_DIR
653 ADMIN_MAN_SUFFIX
654 DRIVER_MAN_SUFFIX
655 MISC_MAN_SUFFIX
656 FILE_MAN_SUFFIX
657 LIB_MAN_SUFFIX
658 APP_MAN_SUFFIX
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 CPP
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 LIBTOOL
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_aix_soname
789 enable_dependency_tracking
790 with_gnu_ld
791 with_sysroot
792 enable_libtool_lock
793 enable_selective_werror
794 enable_strict_compilation
795 enable_malloc0returnsnull
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 LT_SYS_LIBRARY_PATH
806 CPP
807 PKG_CONFIG
808 PKG_CONFIG_PATH
809 PKG_CONFIG_LIBDIR
810 XRES_CFLAGS
811 XRES_LIBS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317 else
1318 ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures libXres 1.2.0 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libXres]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libXres 1.2.0:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --disable-selective-werror
1442 Turn off selective compiler errors. (default:
1443 enabled)
1444 --enable-strict-compilation
1445 Enable all warnings from compiler and make them
1446 errors (default: disabled)
1447 --enable-malloc0returnsnull
1448 malloc(0) returns NULL (default: auto)
1449
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-aix-soname=aix|svr4|both
1456 shared library versioning (aka "SONAME") variant to
1457 provide on AIX, [default=aix].
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1460 compiler's sysroot if not specified).
1461
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 LT_SYS_LIBRARY_PATH
1471 User-defined run-time library search path.
1472 CPP C preprocessor
1473 PKG_CONFIG path to pkg-config utility
1474 PKG_CONFIG_PATH
1475 directories to add to pkg-config's search path
1476 PKG_CONFIG_LIBDIR
1477 path overriding pkg-config's built-in search path
1478 XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1479 XRES_LIBS linker flags for XRES, overriding pkg-config
1480
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1483
1484 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1485 _ACEOF
1486 ac_status=$?
1487 fi
1488
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 continue
1495 ac_builddir=.
1496
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *)
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1512
1513 case $srcdir in
1514 .) # We are building in place.
1515 ac_srcdir=.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1522 *) # Relative name.
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1537 else
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1541 done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546 cat <<\_ACEOF
1547 libXres configure 1.2.0
1548 generated by GNU Autoconf 2.69
1549
1550 Copyright (C) 2012 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554 exit
1555 fi
1556
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1560
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_c_try_link LINENO
1600 # -----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_link ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext conftest$ac_exeext
1606 if { { ac_try="$ac_link"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest$ac_exeext && {
1625 test "$cross_compiling" = yes ||
1626 test -x conftest$ac_exeext
1627 }; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1
1634 fi
1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637 # interfere with the next link command; also delete a directory that is
1638 # left behind by Apple's compiler. We do this before executing the actions.
1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_link
1644
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1656 else
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 eval "$3=yes"
1664 else
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_compile
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1771
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1776
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1782
1783 #undef $2
1784
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1798
1799 int
1800 main ()
1801 {
1802 return $2 ();
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_func
1821
1822 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1823 # ---------------------------------------------
1824 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_decl ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 as_decl_name=`echo $2|sed 's/ *(.*//'`
1830 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1832 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 int
1840 main ()
1841 {
1842 #ifndef $as_decl_name
1843 #ifdef __cplusplus
1844 (void) $as_decl_use;
1845 #else
1846 (void) $as_decl_name;
1847 #endif
1848 #endif
1849
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 eval "$3=yes"
1856 else
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_decl
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by libXres $as_me 1.2.0, which was
1872 generated by GNU Autoconf 2.69. Invocation command line was
1873
1874 $ $0 $@
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 $as_echo "PATH: $as_dir"
1909 done
1910 IFS=$as_save_IFS
1911
1912 } >&5
1913
1914 cat >&5 <<_ACEOF
1915
1916
1917 ## ----------- ##
1918 ## Core tests. ##
1919 ## ----------- ##
1920
1921 _ACEOF
1922
1923
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1929 ac_configure_args=
1930 ac_configure_args0=
1931 ac_configure_args1=
1932 ac_must_keep_next=false
1933 for ac_pass in 1 2
1934 do
1935 for ac_arg
1936 do
1937 case $ac_arg in
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1941 continue ;;
1942 *\'*)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 esac
1945 case $ac_pass in
1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947 2)
1948 as_fn_append ac_configure_args1 " '$ac_arg'"
1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1951 else
1952 case $ac_arg in
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 esac
1960 ;;
1961 -* ) ac_must_keep_next=true ;;
1962 esac
1963 fi
1964 as_fn_append ac_configure_args " '$ac_arg'"
1965 ;;
1966 esac
1967 done
1968 done
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1971
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log. We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1979 {
1980 echo
1981
1982 $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
1987 (
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2000 esac ;;
2001 esac
2002 done
2003 (set) 2>&1 |
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2006 sed -n \
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
2010 *)
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012 ;;
2013 esac |
2014 sort
2015 )
2016 echo
2017
2018 $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2021 echo
2022 for ac_var in $ac_subst_vars
2023 do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2031
2032 if test -n "$ac_subst_files"; then
2033 $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2036 echo
2037 for ac_var in $ac_subst_files
2038 do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2046 fi
2047
2048 if test -s confdefs.h; then
2049 $as_echo "## ----------- ##
2050 ## confdefs.h. ##
2051 ## ----------- ##"
2052 echo
2053 cat confdefs.h
2054 echo
2055 fi
2056 test "$ac_signal" != 0 &&
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
2059 } >&5
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062 exit $exit_status
2063 ' 0
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 done
2067 ac_signal=0
2068
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2071
2072 $as_echo "/* confdefs.h */" > confdefs.h
2073
2074 # Predefined preprocessor variables.
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2098 _ACEOF
2099
2100
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 ac_site_file1=NONE
2104 ac_site_file2=NONE
2105 if test -n "$CONFIG_SITE"; then
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2111 esac
2112 elif test "x$prefix" != xNONE; then
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
2115 else
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
2118 fi
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120 do
2121 test "x$ac_site_file" = xNONE && continue
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2126 . "$ac_site_file" \
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2131 fi
2132 done
2133
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2140 case $cache_file in
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2143 esac
2144 fi
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2148 >$cache_file
2149 fi
2150
2151 # Check that the precious variables saved in the cache have kept the same
2152 # value.
2153 ac_cache_corrupted=false
2154 for ac_var in $ac_precious_vars; do
2155 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156 eval ac_new_set=\$ac_env_${ac_var}_set
2157 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158 eval ac_new_val=\$ac_env_${ac_var}_value
2159 case $ac_old_set,$ac_new_set in
2160 set,)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,set)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,);;
2169 *)
2170 if test "x$ac_old_val" != "x$ac_new_val"; then
2171 # differences in whitespace do not lead to failure.
2172 ac_old_val_w=`echo x $ac_old_val`
2173 ac_new_val_w=`echo x $ac_new_val`
2174 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177 ac_cache_corrupted=:
2178 else
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181 eval $ac_var=\$ac_old_val
2182 fi
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2184 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2186 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2187 fi;;
2188 esac
2189 # Pass precious variables to config.status.
2190 if test "$ac_new_set" = set; then
2191 case $ac_new_val in
2192 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 *) ac_arg=$ac_var=$ac_new_val ;;
2194 esac
2195 case " $ac_configure_args " in
2196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2197 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198 esac
2199 fi
2200 done
2201 if $ac_cache_corrupted; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207 fi
2208 ## -------------------- ##
2209 ## Main body of script. ##
2210 ## -------------------- ##
2211
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217
2218
2219
2220 ac_config_headers="$ac_config_headers config.h"
2221
2222
2223 # Initialize Automake
2224 am__api_version='1.15'
2225
2226 ac_aux_dir=
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228 if test -f "$ac_dir/install-sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2231 break
2232 elif test -f "$ac_dir/install.sh"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2235 break
2236 elif test -f "$ac_dir/shtool"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 break
2240 fi
2241 done
2242 if test -z "$ac_aux_dir"; then
2243 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2244 fi
2245
2246 # These three variables are undocumented and unsupported,
2247 # and are intended to be withdrawn in a future Autoconf release.
2248 # They can cause serious problems if a builder's source tree is in a directory
2249 # whose full name contains unusual characters.
2250 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2251 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2252 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253
2254
2255 # Find a good install program. We prefer a C program (faster),
2256 # so one script is as good as another. But avoid the broken or
2257 # incompatible versions:
2258 # SysV /etc/install, /usr/sbin/install
2259 # SunOS /usr/etc/install
2260 # IRIX /sbin/install
2261 # AIX /bin/install
2262 # AmigaOS /C/install, which installs bootblocks on floppy discs
2263 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2264 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2265 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266 # OS/2's system install, which has a completely different semantic
2267 # ./install, which can be erroneously created by make from ./install.sh.
2268 # Reject install programs that cannot install multiple files.
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2270 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2271 if test -z "$INSTALL"; then
2272 if ${ac_cv_path_install+:} false; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 # Account for people who put trailing slashes in PATH elements.
2281 case $as_dir/ in #((
2282 ./ | .// | /[cC]/* | \
2283 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2285 /usr/ucb/* ) ;;
2286 *)
2287 # OSF1 and SCO ODT 3.0 have their own names for install.
2288 # Don't use installbsd from OSF since it installs stuff as root
2289 # by default.
2290 for ac_prog in ginstall scoinst install; do
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2293 if test $ac_prog = install &&
2294 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # AIX install. It has an incompatible calling convention.
2296 :
2297 elif test $ac_prog = install &&
2298 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # program-specific install script used by HP pwplus--don't use.
2300 :
2301 else
2302 rm -rf conftest.one conftest.two conftest.dir
2303 echo one > conftest.one
2304 echo two > conftest.two
2305 mkdir conftest.dir
2306 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2307 test -s conftest.one && test -s conftest.two &&
2308 test -s conftest.dir/conftest.one &&
2309 test -s conftest.dir/conftest.two
2310 then
2311 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2312 break 3
2313 fi
2314 fi
2315 fi
2316 done
2317 done
2318 ;;
2319 esac
2320
2321 done
2322 IFS=$as_save_IFS
2323
2324 rm -rf conftest.one conftest.two conftest.dir
2325
2326 fi
2327 if test "${ac_cv_path_install+set}" = set; then
2328 INSTALL=$ac_cv_path_install
2329 else
2330 # As a last resort, use the slow shell script. Don't cache a
2331 # value for INSTALL within a source directory, because that will
2332 # break other packages using the cache if that directory is
2333 # removed, or if the value is a relative name.
2334 INSTALL=$ac_install_sh
2335 fi
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2338 $as_echo "$INSTALL" >&6; }
2339
2340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2341 # It thinks the first close brace ends the variable substitution.
2342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2343
2344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2345
2346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2347
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2349 $as_echo_n "checking whether build environment is sane... " >&6; }
2350 # Reject unsafe characters in $srcdir or the absolute working directory
2351 # name. Accept space and tab only in the latter.
2352 am_lf='
2353 '
2354 case `pwd` in
2355 *[\\\"\#\$\&\'\`$am_lf]*)
2356 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2357 esac
2358 case $srcdir in
2359 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2360 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2361 esac
2362
2363 # Do 'set' in a subshell so we don't clobber the current shell's
2364 # arguments. Must try -L first in case configure is actually a
2365 # symlink; some systems play weird games with the mod time of symlinks
2366 # (eg FreeBSD returns the mod time of the symlink's containing
2367 # directory).
2368 if (
2369 am_has_slept=no
2370 for am_try in 1 2; do
2371 echo "timestamp, slept: $am_has_slept" > conftest.file
2372 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2373 if test "$*" = "X"; then
2374 # -L didn't work.
2375 set X `ls -t "$srcdir/configure" conftest.file`
2376 fi
2377 if test "$*" != "X $srcdir/configure conftest.file" \
2378 && test "$*" != "X conftest.file $srcdir/configure"; then
2379
2380 # If neither matched, then we have a broken ls. This can happen
2381 # if, for instance, CONFIG_SHELL is bash and it inherits a
2382 # broken ls alias from the environment. This has actually
2383 # happened. Such a system could not be considered "sane".
2384 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2385 alias in your environment" "$LINENO" 5
2386 fi
2387 if test "$2" = conftest.file || test $am_try -eq 2; then
2388 break
2389 fi
2390 # Just in case.
2391 sleep 1
2392 am_has_slept=yes
2393 done
2394 test "$2" = conftest.file
2395 )
2396 then
2397 # Ok.
2398 :
2399 else
2400 as_fn_error $? "newly created file is older than distributed files!
2401 Check your system clock" "$LINENO" 5
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2404 $as_echo "yes" >&6; }
2405 # If we didn't sleep, we still need to ensure time stamps of config.status and
2406 # generated files are strictly newer.
2407 am_sleep_pid=
2408 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2409 ( sleep 1 ) &
2410 am_sleep_pid=$!
2411 fi
2412
2413 rm -f conftest.file
2414
2415 test "$program_prefix" != NONE &&
2416 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2417 # Use a double $ so make ignores it.
2418 test "$program_suffix" != NONE &&
2419 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2420 # Double any \ or $.
2421 # By default was `s,x,x', remove it if useless.
2422 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2423 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2424
2425 # Expand $ac_aux_dir to an absolute path.
2426 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2427
2428 if test x"${MISSING+set}" != xset; then
2429 case $am_aux_dir in
2430 *\ * | *\ *)
2431 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2432 *)
2433 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2434 esac
2435 fi
2436 # Use eval to expand $SHELL
2437 if eval "$MISSING --is-lightweight"; then
2438 am_missing_run="$MISSING "
2439 else
2440 am_missing_run=
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2442 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2443 fi
2444
2445 if test x"${install_sh+set}" != xset; then
2446 case $am_aux_dir in
2447 *\ * | *\ *)
2448 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2449 *)
2450 install_sh="\${SHELL} $am_aux_dir/install-sh"
2451 esac
2452 fi
2453
2454 # Installed binaries are usually stripped using 'strip' when the user
2455 # run "make install-strip". However 'strip' might not be the right
2456 # tool to use in cross-compilation environments, therefore Automake
2457 # will honor the 'STRIP' environment variable to overrule this program.
2458 if test "$cross_compiling" != no; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}strip; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_STRIP+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$STRIP"; then
2468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 STRIP=$ac_cv_prog_STRIP
2488 if test -n "$STRIP"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2490 $as_echo "$STRIP" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496
2497 fi
2498 if test -z "$ac_cv_prog_STRIP"; then
2499 ac_ct_STRIP=$STRIP
2500 # Extract the first word of "strip", so it can be a program name with args.
2501 set dummy strip; ac_word=$2
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2503 $as_echo_n "checking for $ac_word... " >&6; }
2504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 if test -n "$ac_ct_STRIP"; then
2508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 ac_cv_prog_ac_ct_STRIP="strip"
2518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2520 fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528 if test -n "$ac_ct_STRIP"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2530 $as_echo "$ac_ct_STRIP" >&6; }
2531 else
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533 $as_echo "no" >&6; }
2534 fi
2535
2536 if test "x$ac_ct_STRIP" = x; then
2537 STRIP=":"
2538 else
2539 case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2543 ac_tool_warned=yes ;;
2544 esac
2545 STRIP=$ac_ct_STRIP
2546 fi
2547 else
2548 STRIP="$ac_cv_prog_STRIP"
2549 fi
2550
2551 fi
2552 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2555 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2556 if test -z "$MKDIR_P"; then
2557 if ${ac_cv_path_mkdir+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_prog in mkdir gmkdir; do
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2568 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2569 'mkdir (GNU coreutils) '* | \
2570 'mkdir (coreutils) '* | \
2571 'mkdir (fileutils) '4.1*)
2572 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2573 break 3;;
2574 esac
2575 done
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581
2582 test -d ./--version && rmdir ./--version
2583 if test "${ac_cv_path_mkdir+set}" = set; then
2584 MKDIR_P="$ac_cv_path_mkdir -p"
2585 else
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for MKDIR_P within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 MKDIR_P="$ac_install_sh -d"
2591 fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2594 $as_echo "$MKDIR_P" >&6; }
2595
2596 for ac_prog in gawk mawk nawk awk
2597 do
2598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2599 set dummy $ac_prog; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_AWK+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test -n "$AWK"; then
2606 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_AWK="$ac_prog"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 AWK=$ac_cv_prog_AWK
2626 if test -n "$AWK"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2628 $as_echo "$AWK" >&6; }
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2633
2634
2635 test -n "$AWK" && break
2636 done
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2639 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2640 set x ${MAKE-make}
2641 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2642 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 cat >conftest.make <<\_ACEOF
2646 SHELL = /bin/sh
2647 all:
2648 @echo '@@@%%%=$(MAKE)=@@@%%%'
2649 _ACEOF
2650 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2651 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2652 *@@@%%%=?*=@@@%%%*)
2653 eval ac_cv_prog_make_${ac_make}_set=yes;;
2654 *)
2655 eval ac_cv_prog_make_${ac_make}_set=no;;
2656 esac
2657 rm -f conftest.make
2658 fi
2659 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2661 $as_echo "yes" >&6; }
2662 SET_MAKE=
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 SET_MAKE="MAKE=${MAKE-make}"
2667 fi
2668
2669 rm -rf .tst 2>/dev/null
2670 mkdir .tst 2>/dev/null
2671 if test -d .tst; then
2672 am__leading_dot=.
2673 else
2674 am__leading_dot=_
2675 fi
2676 rmdir .tst 2>/dev/null
2677
2678 # Check whether --enable-silent-rules was given.
2679 if test "${enable_silent_rules+set}" = set; then :
2680 enableval=$enable_silent_rules;
2681 fi
2682
2683 case $enable_silent_rules in # (((
2684 yes) AM_DEFAULT_VERBOSITY=0;;
2685 no) AM_DEFAULT_VERBOSITY=1;;
2686 *) AM_DEFAULT_VERBOSITY=1;;
2687 esac
2688 am_make=${MAKE-make}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2690 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2691 if ${am_cv_make_support_nested_variables+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if $as_echo 'TRUE=$(BAR$(V))
2695 BAR0=false
2696 BAR1=true
2697 V=1
2698 am__doit:
2699 @$(TRUE)
2700 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2701 am_cv_make_support_nested_variables=yes
2702 else
2703 am_cv_make_support_nested_variables=no
2704 fi
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2707 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2708 if test $am_cv_make_support_nested_variables = yes; then
2709 AM_V='$(V)'
2710 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2711 else
2712 AM_V=$AM_DEFAULT_VERBOSITY
2713 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2714 fi
2715 AM_BACKSLASH='\'
2716
2717 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2718 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2719 # is not polluted with repeated "-I."
2720 am__isrc=' -I$(srcdir)'
2721 # test to see if srcdir already configured
2722 if test -f $srcdir/config.status; then
2723 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2724 fi
2725 fi
2726
2727 # test whether we have cygpath
2728 if test -z "$CYGPATH_W"; then
2729 if (cygpath --version) >/dev/null 2>/dev/null; then
2730 CYGPATH_W='cygpath -w'
2731 else
2732 CYGPATH_W=echo
2733 fi
2734 fi
2735
2736
2737 # Define the identity of the package.
2738 PACKAGE='libXres'
2739 VERSION='1.2.0'
2740
2741
2742 cat >>confdefs.h <<_ACEOF
2743 #define PACKAGE "$PACKAGE"
2744 _ACEOF
2745
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define VERSION "$VERSION"
2749 _ACEOF
2750
2751 # Some tools Automake needs.
2752
2753 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2754
2755
2756 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2757
2758
2759 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2760
2761
2762 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2763
2764
2765 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2766
2767 # For better backward compatibility. To be removed once Automake 1.9.x
2768 # dies out for good. For more background, see:
2769 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2770 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2771 mkdir_p='$(MKDIR_P)'
2772
2773 # We need awk for the "check" target (and possibly the TAP driver). The
2774 # system "awk" is bad on some platforms.
2775 # Always define AMTAR for backward compatibility. Yes, it's still used
2776 # in the wild :-( We should find a proper way to deprecate it ...
2777 AMTAR='$${TAR-tar}'
2778
2779
2780 # We'll loop over all known methods to create a tar archive until one works.
2781 _am_tools='gnutar pax cpio none'
2782
2783 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2784
2785
2786
2787
2788
2789
2790 # POSIX will say in a future version that running "rm -f" with no argument
2791 # is OK; and we want to be able to make that assumption in our Makefile
2792 # recipes. So use an aggressive probe to check that the usage we want is
2793 # actually supported "in the wild" to an acceptable degree.
2794 # See automake bug#10828.
2795 # To make any issue more visible, cause the running configure to be aborted
2796 # by default if the 'rm' program in use doesn't match our expectations; the
2797 # user can still override this though.
2798 if rm -f && rm -fr && rm -rf; then : OK; else
2799 cat >&2 <<'END'
2800 Oops!
2801
2802 Your 'rm' program seems unable to run without file operands specified
2803 on the command line, even when the '-f' option is present. This is contrary
2804 to the behaviour of most rm programs out there, and not conforming with
2805 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2806
2807 Please tell bug-automake@gnu.org about your system, including the value
2808 of your $PATH and any error possibly output before this message. This
2809 can help us improve future automake versions.
2810
2811 END
2812 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2813 echo 'Configuration will proceed anyway, since you have set the' >&2
2814 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2815 echo >&2
2816 else
2817 cat >&2 <<'END'
2818 Aborting the configuration process, to ensure you take notice of the issue.
2819
2820 You can download and install GNU coreutils to get an 'rm' implementation
2821 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2822
2823 If you want to complete the configuration process using your problematic
2824 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2825 to "yes", and re-run configure.
2826
2827 END
2828 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2829 fi
2830 fi
2831
2832
2833 # Initialize libtool
2834 case `pwd` in
2835 *\ * | *\ *)
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2837 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2838 esac
2839
2840
2841
2842 macro_version='2.4.6'
2843 macro_revision='2.4.6'
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857 ltmain=$ac_aux_dir/ltmain.sh
2858
2859 # Make sure we can run config.sub.
2860 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2861 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2864 $as_echo_n "checking build system type... " >&6; }
2865 if ${ac_cv_build+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 ac_build_alias=$build_alias
2869 test "x$ac_build_alias" = x &&
2870 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2871 test "x$ac_build_alias" = x &&
2872 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2873 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2874 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2875
2876 fi
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2878 $as_echo "$ac_cv_build" >&6; }
2879 case $ac_cv_build in
2880 *-*-*) ;;
2881 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2882 esac
2883 build=$ac_cv_build
2884 ac_save_IFS=$IFS; IFS='-'
2885 set x $ac_cv_build
2886 shift
2887 build_cpu=$1
2888 build_vendor=$2
2889 shift; shift
2890 # Remember, the first character of IFS is used to create $*,
2891 # except with old shells:
2892 build_os=$*
2893 IFS=$ac_save_IFS
2894 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2895
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2898 $as_echo_n "checking host system type... " >&6; }
2899 if ${ac_cv_host+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test "x$host_alias" = x; then
2903 ac_cv_host=$ac_cv_build
2904 else
2905 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2906 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2907 fi
2908
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2911 $as_echo "$ac_cv_host" >&6; }
2912 case $ac_cv_host in
2913 *-*-*) ;;
2914 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2915 esac
2916 host=$ac_cv_host
2917 ac_save_IFS=$IFS; IFS='-'
2918 set x $ac_cv_host
2919 shift
2920 host_cpu=$1
2921 host_vendor=$2
2922 shift; shift
2923 # Remember, the first character of IFS is used to create $*,
2924 # except with old shells:
2925 host_os=$*
2926 IFS=$ac_save_IFS
2927 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2928
2929
2930 # Backslashify metacharacters that are still active within
2931 # double-quoted strings.
2932 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2933
2934 # Same as above, but do not quote variable references.
2935 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2936
2937 # Sed substitution to delay expansion of an escaped shell variable in a
2938 # double_quote_subst'ed string.
2939 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2940
2941 # Sed substitution to delay expansion of an escaped single quote.
2942 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2943
2944 # Sed substitution to avoid accidental globbing in evaled expressions
2945 no_glob_subst='s/\*/\\\*/g'
2946
2947 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2952 $as_echo_n "checking how to print strings... " >&6; }
2953 # Test print first, because it will be a builtin if present.
2954 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2956 ECHO='print -r --'
2957 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2958 ECHO='printf %s\n'
2959 else
2960 # Use this function as a fallback that always works.
2961 func_fallback_echo ()
2962 {
2963 eval 'cat <<_LTECHO_EOF
2964 $1
2965 _LTECHO_EOF'
2966 }
2967 ECHO='func_fallback_echo'
2968 fi
2969
2970 # func_echo_all arg...
2971 # Invoke $ECHO with all args, space-separated.
2972 func_echo_all ()
2973 {
2974 $ECHO ""
2975 }
2976
2977 case $ECHO in
2978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2979 $as_echo "printf" >&6; } ;;
2980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2981 $as_echo "print -r" >&6; } ;;
2982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2983 $as_echo "cat" >&6; } ;;
2984 esac
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999 DEPDIR="${am__leading_dot}deps"
3000
3001 ac_config_commands="$ac_config_commands depfiles"
3002
3003
3004 am_make=${MAKE-make}
3005 cat > confinc << 'END'
3006 am__doit:
3007 @echo this is the am__doit target
3008 .PHONY: am__doit
3009 END
3010 # If we don't find an include directive, just comment out the code.
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3013 am__include="#"
3014 am__quote=
3015 _am_result=none
3016 # First try GNU make style include.
3017 echo "include confinc" > confmf
3018 # Ignore all kinds of additional output from 'make'.
3019 case `$am_make -s -f confmf 2> /dev/null` in #(
3020 *the\ am__doit\ target*)
3021 am__include=include
3022 am__quote=
3023 _am_result=GNU
3024 ;;
3025 esac
3026 # Now try BSD make style include.
3027 if test "$am__include" = "#"; then
3028 echo '.include "confinc"' > confmf
3029 case `$am_make -s -f confmf 2> /dev/null` in #(
3030 *the\ am__doit\ target*)
3031 am__include=.include
3032 am__quote="\""
3033 _am_result=BSD
3034 ;;
3035 esac
3036 fi
3037
3038
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3040 $as_echo "$_am_result" >&6; }
3041 rm -f confinc confmf
3042
3043 # Check whether --enable-dependency-tracking was given.
3044 if test "${enable_dependency_tracking+set}" = set; then :
3045 enableval=$enable_dependency_tracking;
3046 fi
3047
3048 if test "x$enable_dependency_tracking" != xno; then
3049 am_depcomp="$ac_aux_dir/depcomp"
3050 AMDEPBACKSLASH='\'
3051 am__nodep='_no'
3052 fi
3053 if test "x$enable_dependency_tracking" != xno; then
3054 AMDEP_TRUE=
3055 AMDEP_FALSE='#'
3056 else
3057 AMDEP_TRUE='#'
3058 AMDEP_FALSE=
3059 fi
3060
3061
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067 if test -n "$ac_tool_prefix"; then
3068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if ${ac_cv_prog_CC+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 CC=$ac_cv_prog_CC
3096 if test -n "$CC"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098 $as_echo "$CC" >&6; }
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104
3105 fi
3106 if test -z "$ac_cv_prog_CC"; then
3107 ac_ct_CC=$CC
3108 # Extract the first word of "gcc", so it can be a program name with args.
3109 set dummy gcc; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="gcc"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138 $as_echo "$ac_ct_CC" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153 CC=$ac_ct_CC
3154 fi
3155 else
3156 CC="$ac_cv_prog_CC"
3157 fi
3158
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}cc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_CC="${ac_tool_prefix}cc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 fi
3199 fi
3200 if test -z "$CC"; then
3201 # Extract the first word of "cc", so it can be a program name with args.
3202 set dummy cc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 ac_prog_rejected=no
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3220 ac_prog_rejected=yes
3221 continue
3222 fi
3223 ac_cv_prog_CC="cc"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3226 fi
3227 done
3228 done
3229 IFS=$as_save_IFS
3230
3231 if test $ac_prog_rejected = yes; then
3232 # We found a bogon in the path, so make sure we never use it.
3233 set dummy $ac_cv_prog_CC
3234 shift
3235 if test $# != 0; then
3236 # We chose a different compiler from the bogus one.
3237 # However, it has the same basename, so the bogon will be chosen
3238 # first if we set CC to just the basename; use the full file name.
3239 shift
3240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3241 fi
3242 fi
3243 fi
3244 fi
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255 fi
3256 if test -z "$CC"; then
3257 if test -n "$ac_tool_prefix"; then
3258 for ac_prog in cl.exe
3259 do
3260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if ${ac_cv_prog_CC+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281 done
3282 done
3283 IFS=$as_save_IFS
3284
3285 fi
3286 fi
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295
3296
3297 test -n "$CC" && break
3298 done
3299 fi
3300 if test -z "$CC"; then
3301 ac_ct_CC=$CC
3302 for ac_prog in cl.exe
3303 do
3304 # Extract the first word of "$ac_prog", so it can be a program name with args.
3305 set dummy $ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CC="$ac_prog"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341 test -n "$ac_ct_CC" && break
3342 done
3343
3344 if test "x$ac_ct_CC" = x; then
3345 CC=""
3346 else
3347 case $cross_compiling:$ac_tool_warned in
3348 yes:)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3351 ac_tool_warned=yes ;;
3352 esac
3353 CC=$ac_ct_CC
3354 fi
3355 fi
3356
3357 fi
3358
3359
3360 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "no acceptable C compiler found in \$PATH
3363 See \`config.log' for more details" "$LINENO" 5; }
3364
3365 # Provide some information about the compiler.
3366 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3367 set X $ac_compile
3368 ac_compiler=$2
3369 for ac_option in --version -v -V -qversion; do
3370 { { ac_try="$ac_compiler $ac_option >&5"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3378 ac_status=$?
3379 if test -s conftest.err; then
3380 sed '10a\
3381 ... rest of stderr output deleted ...
3382 10q' conftest.err >conftest.er1
3383 cat conftest.er1 >&5
3384 fi
3385 rm -f conftest.er1 conftest.err
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }
3388 done
3389
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392
3393 int
3394 main ()
3395 {
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 ac_clean_files_save=$ac_clean_files
3402 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3403 # Try to create an executable without -o first, disregard a.out.
3404 # It will help us diagnose broken compilers, and finding out an intuition
3405 # of exeext.
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3407 $as_echo_n "checking whether the C compiler works... " >&6; }
3408 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3409
3410 # The possible output files:
3411 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3412
3413 ac_rmfiles=
3414 for ac_file in $ac_files
3415 do
3416 case $ac_file in
3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3418 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3419 esac
3420 done
3421 rm -f $ac_rmfiles
3422
3423 if { { ac_try="$ac_link_default"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_link_default") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; then :
3434 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3435 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3436 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3437 # so that the user can short-circuit this test for compilers unknown to
3438 # Autoconf.
3439 for ac_file in $ac_files ''
3440 do
3441 test -f "$ac_file" || continue
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3444 ;;
3445 [ab].out )
3446 # We found the default executable, but exeext='' is most
3447 # certainly right.
3448 break;;
3449 *.* )
3450 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3451 then :; else
3452 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 fi
3454 # We set ac_cv_exeext here because the later test for it is not
3455 # safe: cross compilers may not add the suffix if given an `-o'
3456 # argument, so we may need to know it at that point already.
3457 # Even if this section looks crufty: it has the advantage of
3458 # actually working.
3459 break;;
3460 * )
3461 break;;
3462 esac
3463 done
3464 test "$ac_cv_exeext" = no && ac_cv_exeext=
3465
3466 else
3467 ac_file=''
3468 fi
3469 if test -z "$ac_file"; then :
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 $as_echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error 77 "C compiler cannot create executables
3478 See \`config.log' for more details" "$LINENO" 5; }
3479 else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3481 $as_echo "yes" >&6; }
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3484 $as_echo_n "checking for C compiler default output file name... " >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3486 $as_echo "$ac_file" >&6; }
3487 ac_exeext=$ac_cv_exeext
3488
3489 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3490 ac_clean_files=$ac_clean_files_save
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3492 $as_echo_n "checking for suffix of executables... " >&6; }
3493 if { { ac_try="$ac_link"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link") 2>&5
3501 ac_status=$?
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3505 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3506 # work properly (i.e., refer to `conftest.exe'), while it won't with
3507 # `rm'.
3508 for ac_file in conftest.exe conftest conftest.*; do
3509 test -f "$ac_file" || continue
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3512 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513 break;;
3514 * ) break;;
3515 esac
3516 done
3517 else
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3521 See \`config.log' for more details" "$LINENO" 5; }
3522 fi
3523 rm -f conftest conftest$ac_cv_exeext
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3525 $as_echo "$ac_cv_exeext" >&6; }
3526
3527 rm -f conftest.$ac_ext
3528 EXEEXT=$ac_cv_exeext
3529 ac_exeext=$EXEEXT
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532 #include <stdio.h>
3533 int
3534 main ()
3535 {
3536 FILE *f = fopen ("conftest.out", "w");
3537 return ferror (f) || fclose (f) != 0;
3538
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 ac_clean_files="$ac_clean_files conftest.out"
3544 # Check that the compiler produces executables we can run. If not, either
3545 # the compiler is broken, or we cross compile.
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3547 $as_echo_n "checking whether we are cross compiling... " >&6; }
3548 if test "$cross_compiling" != yes; then
3549 { { ac_try="$ac_link"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_link") 2>&5
3557 ac_status=$?
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }
3560 if { ac_try='./conftest$ac_cv_exeext'
3561 { { case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_try") 2>&5
3568 ac_status=$?
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }; }; then
3571 cross_compiling=no
3572 else
3573 if test "$cross_compiling" = maybe; then
3574 cross_compiling=yes
3575 else
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error $? "cannot run C compiled programs.
3579 If you meant to cross compile, use \`--host'.
3580 See \`config.log' for more details" "$LINENO" 5; }
3581 fi
3582 fi
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3585 $as_echo "$cross_compiling" >&6; }
3586
3587 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3588 ac_clean_files=$ac_clean_files_save
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3590 $as_echo_n "checking for suffix of object files... " >&6; }
3591 if ${ac_cv_objext+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.o conftest.obj
3606 if { { ac_try="$ac_compile"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compile") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 for ac_file in conftest.o conftest.obj conftest.*; do
3618 test -f "$ac_file" || continue;
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3622 break;;
3623 esac
3624 done
3625 else
3626 $as_echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error $? "cannot compute suffix of object files: cannot compile
3632 See \`config.log' for more details" "$LINENO" 5; }
3633 fi
3634 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3637 $as_echo "$ac_cv_objext" >&6; }
3638 OBJEXT=$ac_cv_objext
3639 ac_objext=$OBJEXT
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3641 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3642 if ${ac_cv_c_compiler_gnu+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main ()
3650 {
3651 #ifndef __GNUC__
3652 choke me
3653 #endif
3654
3655 ;
3656 return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_compiler_gnu=yes
3661 else
3662 ac_compiler_gnu=no
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3666
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3669 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3670 if test $ac_compiler_gnu = yes; then
3671 GCC=yes
3672 else
3673 GCC=
3674 fi
3675 ac_test_CFLAGS=${CFLAGS+set}
3676 ac_save_CFLAGS=$CFLAGS
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3678 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3679 if ${ac_cv_prog_cc_g+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_save_c_werror_flag=$ac_c_werror_flag
3683 ac_c_werror_flag=yes
3684 ac_cv_prog_cc_g=no
3685 CFLAGS="-g"
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_g=yes
3699 else
3700 CFLAGS=""
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703
3704 int
3705 main ()
3706 {
3707
3708 ;
3709 return 0;
3710 }
3711 _ACEOF
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713
3714 else
3715 ac_c_werror_flag=$ac_save_c_werror_flag
3716 CFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_g=yes
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_c_werror_flag=$ac_save_c_werror_flag
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3739 $as_echo "$ac_cv_prog_cc_g" >&6; }
3740 if test "$ac_test_CFLAGS" = set; then
3741 CFLAGS=$ac_save_CFLAGS
3742 elif test $ac_cv_prog_cc_g = yes; then
3743 if test "$GCC" = yes; then
3744 CFLAGS="-g -O2"
3745 else
3746 CFLAGS="-g"
3747 fi
3748 else
3749 if test "$GCC" = yes; then
3750 CFLAGS="-O2"
3751 else
3752 CFLAGS=
3753 fi
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3756 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3757 if ${ac_cv_prog_cc_c89+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 ac_cv_prog_cc_c89=no
3761 ac_save_CC=$CC
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <stdarg.h>
3765 #include <stdio.h>
3766 struct stat;
3767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3768 struct buf { int x; };
3769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3770 static char *e (p, i)
3771 char **p;
3772 int i;
3773 {
3774 return p[i];
3775 }
3776 static char *f (char * (*g) (char **, int), char **p, ...)
3777 {
3778 char *s;
3779 va_list v;
3780 va_start (v,p);
3781 s = g (p, va_arg (v,int));
3782 va_end (v);
3783 return s;
3784 }
3785
3786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3787 function prototypes and stuff, but not '\xHH' hex character constants.
3788 These don't provoke an error unfortunately, instead are silently treated
3789 as 'x'. The following induces an error, until -std is added to get
3790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3791 array size at least. It's necessary to write '\x00'==0 to get something
3792 that's true only with -std. */
3793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3794
3795 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3796 inside strings and character constants. */
3797 #define FOO(x) 'x'
3798 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3799
3800 int test (int i, double x);
3801 struct s1 {int (*f) (int a);};
3802 struct s2 {int (*f) (double a);};
3803 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3804 int argc;
3805 char **argv;
3806 int
3807 main ()
3808 {
3809 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3815 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3816 do
3817 CC="$ac_save_CC $ac_arg"
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_cv_prog_cc_c89=$ac_arg
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext
3822 test "x$ac_cv_prog_cc_c89" != "xno" && break
3823 done
3824 rm -f conftest.$ac_ext
3825 CC=$ac_save_CC
3826
3827 fi
3828 # AC_CACHE_VAL
3829 case "x$ac_cv_prog_cc_c89" in
3830 x)
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3832 $as_echo "none needed" >&6; } ;;
3833 xno)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3835 $as_echo "unsupported" >&6; } ;;
3836 *)
3837 CC="$CC $ac_cv_prog_cc_c89"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3839 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3840 esac
3841 if test "x$ac_cv_prog_cc_c89" != xno; then :
3842
3843 fi
3844
3845 ac_ext=c
3846 ac_cpp='$CPP $CPPFLAGS'
3847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3857 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3858 if ${am_cv_prog_cc_c_o+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863
3864 int
3865 main ()
3866 {
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 # Make sure it works both with $CC and with simple cc.
3873 # Following AC_PROG_CC_C_O, we do the test twice because some
3874 # compilers refuse to overwrite an existing .o file with -o,
3875 # though they will create one.
3876 am_cv_prog_cc_c_o=yes
3877 for am_i in 1 2; do
3878 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3879 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } \
3883 && test -f conftest2.$ac_objext; then
3884 : OK
3885 else
3886 am_cv_prog_cc_c_o=no
3887 break
3888 fi
3889 done
3890 rm -f core conftest*
3891 unset am_i
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3894 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3895 if test "$am_cv_prog_cc_c_o" != yes; then
3896 # Losing compiler, so override with the script.
3897 # FIXME: It is wrong to rewrite CC.
3898 # But if we don't then we get into trouble of one sort or another.
3899 # A longer-term fix would be to have automake use am__CC in this case,
3900 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3901 CC="$am_aux_dir/compile $CC"
3902 fi
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909
3910 depcc="$CC" am_compiler_list=
3911
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3913 $as_echo_n "checking dependency style of $depcc... " >&6; }
3914 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3918 # We make a subdir and do the tests there. Otherwise we can end up
3919 # making bogus files that we don't know about and never remove. For
3920 # instance it was reported that on HP-UX the gcc test will end up
3921 # making a dummy file named 'D' -- because '-MD' means "put the output
3922 # in D".
3923 rm -rf conftest.dir
3924 mkdir conftest.dir
3925 # Copy depcomp to subdir because otherwise we won't find it if we're
3926 # using a relative directory.
3927 cp "$am_depcomp" conftest.dir
3928 cd conftest.dir
3929 # We will build objects and dependencies in a subdirectory because
3930 # it helps to detect inapplicable dependency modes. For instance
3931 # both Tru64's cc and ICC support -MD to output dependencies as a
3932 # side effect of compilation, but ICC will put the dependencies in
3933 # the current directory while Tru64 will put them in the object
3934 # directory.
3935 mkdir sub
3936
3937 am_cv_CC_dependencies_compiler_type=none
3938 if test "$am_compiler_list" = ""; then
3939 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3940 fi
3941 am__universal=false
3942 case " $depcc " in #(
3943 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3944 esac
3945
3946 for depmode in $am_compiler_list; do
3947 # Setup a source with many dependencies, because some compilers
3948 # like to wrap large dependency lists on column 80 (with \), and
3949 # we should not choose a depcomp mode which is confused by this.
3950 #
3951 # We need to recreate these files for each test, as the compiler may
3952 # overwrite some of them when testing with obscure command lines.
3953 # This happens at least with the AIX C compiler.
3954 : > sub/conftest.c
3955 for i in 1 2 3 4 5 6; do
3956 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3957 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3958 # Solaris 10 /bin/sh.
3959 echo '/* dummy */' > sub/conftst$i.h
3960 done
3961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3962
3963 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3964 # mode. It turns out that the SunPro C++ compiler does not properly
3965 # handle '-M -o', and we need to detect this. Also, some Intel
3966 # versions had trouble with output in subdirs.
3967 am__obj=sub/conftest.${OBJEXT-o}
3968 am__minus_obj="-o $am__obj"
3969 case $depmode in
3970 gcc)
3971 # This depmode causes a compiler race in universal mode.
3972 test "$am__universal" = false || continue
3973 ;;
3974 nosideeffect)
3975 # After this tag, mechanisms are not by side-effect, so they'll
3976 # only be used when explicitly requested.
3977 if test "x$enable_dependency_tracking" = xyes; then
3978 continue
3979 else
3980 break
3981 fi
3982 ;;
3983 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3984 # This compiler won't grok '-c -o', but also, the minuso test has
3985 # not run yet. These depmodes are late enough in the game, and
3986 # so weak that their functioning should not be impacted.
3987 am__obj=conftest.${OBJEXT-o}
3988 am__minus_obj=
3989 ;;
3990 none) break ;;
3991 esac
3992 if depmode=$depmode \
3993 source=sub/conftest.c object=$am__obj \
3994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3996 >/dev/null 2>conftest.err &&
3997 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3998 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3999 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4000 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4001 # icc doesn't choke on unknown options, it will just issue warnings
4002 # or remarks (even with -Werror). So we grep stderr for any message
4003 # that says an option was ignored or not supported.
4004 # When given -MP, icc 7.0 and 7.1 complain thusly:
4005 # icc: Command line warning: ignoring option '-M'; no argument required
4006 # The diagnosis changed in icc 8.0:
4007 # icc: Command line remark: option '-MP' not supported
4008 if (grep 'ignoring option' conftest.err ||
4009 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4010 am_cv_CC_dependencies_compiler_type=$depmode
4011 break
4012 fi
4013 fi
4014 done
4015
4016 cd ..
4017 rm -rf conftest.dir
4018 else
4019 am_cv_CC_dependencies_compiler_type=none
4020 fi
4021
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4024 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4025 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4026
4027 if
4028 test "x$enable_dependency_tracking" != xno \
4029 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4030 am__fastdepCC_TRUE=
4031 am__fastdepCC_FALSE='#'
4032 else
4033 am__fastdepCC_TRUE='#'
4034 am__fastdepCC_FALSE=
4035 fi
4036
4037
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4039 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4040 if ${ac_cv_path_SED+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4044 for ac_i in 1 2 3 4 5 6 7; do
4045 ac_script="$ac_script$as_nl$ac_script"
4046 done
4047 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4048 { ac_script=; unset ac_script;}
4049 if test -z "$SED"; then
4050 ac_path_SED_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in sed gsed; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4060 as_fn_executable_p "$ac_path_SED" || continue
4061 # Check for GNU ac_path_SED and select it if it is found.
4062 # Check for GNU $ac_path_SED
4063 case `"$ac_path_SED" --version 2>&1` in
4064 *GNU*)
4065 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4066 *)
4067 ac_count=0
4068 $as_echo_n 0123456789 >"conftest.in"
4069 while :
4070 do
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 $as_echo '' >> "conftest.nl"
4075 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 as_fn_arith $ac_count + 1 && ac_count=$as_val
4078 if test $ac_count -gt ${ac_path_SED_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_SED="$ac_path_SED"
4081 ac_path_SED_max=$ac_count
4082 fi
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4085 done
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4088
4089 $ac_path_SED_found && break 3
4090 done
4091 done
4092 done
4093 IFS=$as_save_IFS
4094 if test -z "$ac_cv_path_SED"; then
4095 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4096 fi
4097 else
4098 ac_cv_path_SED=$SED
4099 fi
4100
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4103 $as_echo "$ac_cv_path_SED" >&6; }
4104 SED="$ac_cv_path_SED"
4105 rm -f conftest.sed
4106
4107 test -z "$SED" && SED=sed
4108 Xsed="$SED -e 1s/^X//"
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4122 if ${ac_cv_path_GREP+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -z "$GREP"; then
4126 ac_path_GREP_found=false
4127 # Loop through the user's path and test for each of PROGNAME-LIST
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_prog in grep ggrep; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4136 as_fn_executable_p "$ac_path_GREP" || continue
4137 # Check for GNU ac_path_GREP and select it if it is found.
4138 # Check for GNU $ac_path_GREP
4139 case `"$ac_path_GREP" --version 2>&1` in
4140 *GNU*)
4141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4142 *)
4143 ac_count=0
4144 $as_echo_n 0123456789 >"conftest.in"
4145 while :
4146 do
4147 cat "conftest.in" "conftest.in" >"conftest.tmp"
4148 mv "conftest.tmp" "conftest.in"
4149 cp "conftest.in" "conftest.nl"
4150 $as_echo 'GREP' >> "conftest.nl"
4151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4153 as_fn_arith $ac_count + 1 && ac_count=$as_val
4154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4155 # Best one so far, save it but keep looking for a better one
4156 ac_cv_path_GREP="$ac_path_GREP"
4157 ac_path_GREP_max=$ac_count
4158 fi
4159 # 10*(2^10) chars as input seems more than enough
4160 test $ac_count -gt 10 && break
4161 done
4162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4163 esac
4164
4165 $ac_path_GREP_found && break 3
4166 done
4167 done
4168 done
4169 IFS=$as_save_IFS
4170 if test -z "$ac_cv_path_GREP"; then
4171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4172 fi
4173 else
4174 ac_cv_path_GREP=$GREP
4175 fi
4176
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4179 $as_echo "$ac_cv_path_GREP" >&6; }
4180 GREP="$ac_cv_path_GREP"
4181
4182
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4184 $as_echo_n "checking for egrep... " >&6; }
4185 if ${ac_cv_path_EGREP+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4189 then ac_cv_path_EGREP="$GREP -E"
4190 else
4191 if test -z "$EGREP"; then
4192 ac_path_EGREP_found=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4196 do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_prog in egrep; do
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4202 as_fn_executable_p "$ac_path_EGREP" || continue
4203 # Check for GNU ac_path_EGREP and select it if it is found.
4204 # Check for GNU $ac_path_EGREP
4205 case `"$ac_path_EGREP" --version 2>&1` in
4206 *GNU*)
4207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4208 *)
4209 ac_count=0
4210 $as_echo_n 0123456789 >"conftest.in"
4211 while :
4212 do
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
4216 $as_echo 'EGREP' >> "conftest.nl"
4217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219 as_fn_arith $ac_count + 1 && ac_count=$as_val
4220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_EGREP="$ac_path_EGREP"
4223 ac_path_EGREP_max=$ac_count
4224 fi
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
4227 done
4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229 esac
4230
4231 $ac_path_EGREP_found && break 3
4232 done
4233 done
4234 done
4235 IFS=$as_save_IFS
4236 if test -z "$ac_cv_path_EGREP"; then
4237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4238 fi
4239 else
4240 ac_cv_path_EGREP=$EGREP
4241 fi
4242
4243 fi
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4246 $as_echo "$ac_cv_path_EGREP" >&6; }
4247 EGREP="$ac_cv_path_EGREP"
4248
4249
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4251 $as_echo_n "checking for fgrep... " >&6; }
4252 if ${ac_cv_path_FGREP+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4256 then ac_cv_path_FGREP="$GREP -F"
4257 else
4258 if test -z "$FGREP"; then
4259 ac_path_FGREP_found=false
4260 # Loop through the user's path and test for each of PROGNAME-LIST
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263 do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_prog in fgrep; do
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4269 as_fn_executable_p "$ac_path_FGREP" || continue
4270 # Check for GNU ac_path_FGREP and select it if it is found.
4271 # Check for GNU $ac_path_FGREP
4272 case `"$ac_path_FGREP" --version 2>&1` in
4273 *GNU*)
4274 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4275 *)
4276 ac_count=0
4277 $as_echo_n 0123456789 >"conftest.in"
4278 while :
4279 do
4280 cat "conftest.in" "conftest.in" >"conftest.tmp"
4281 mv "conftest.tmp" "conftest.in"
4282 cp "conftest.in" "conftest.nl"
4283 $as_echo 'FGREP' >> "conftest.nl"
4284 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286 as_fn_arith $ac_count + 1 && ac_count=$as_val
4287 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4288 # Best one so far, save it but keep looking for a better one
4289 ac_cv_path_FGREP="$ac_path_FGREP"
4290 ac_path_FGREP_max=$ac_count
4291 fi
4292 # 10*(2^10) chars as input seems more than enough
4293 test $ac_count -gt 10 && break
4294 done
4295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296 esac
4297
4298 $ac_path_FGREP_found && break 3
4299 done
4300 done
4301 done
4302 IFS=$as_save_IFS
4303 if test -z "$ac_cv_path_FGREP"; then
4304 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305 fi
4306 else
4307 ac_cv_path_FGREP=$FGREP
4308 fi
4309
4310 fi
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4313 $as_echo "$ac_cv_path_FGREP" >&6; }
4314 FGREP="$ac_cv_path_FGREP"
4315
4316
4317 test -z "$GREP" && GREP=grep
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337 # Check whether --with-gnu-ld was given.
4338 if test "${with_gnu_ld+set}" = set; then :
4339 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4340 else
4341 with_gnu_ld=no
4342 fi
4343
4344 ac_prog=ld
4345 if test yes = "$GCC"; then
4346 # Check if gcc -print-prog-name=ld gives a path.
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4348 $as_echo_n "checking for ld used by $CC... " >&6; }
4349 case $host in
4350 *-*-mingw*)
4351 # gcc leaves a trailing carriage return, which upsets mingw
4352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4353 *)
4354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4355 esac
4356 case $ac_prog in
4357 # Accept absolute paths.
4358 [\\/]* | ?:[\\/]*)
4359 re_direlt='/[^/][^/]*/\.\./'
4360 # Canonicalize the pathname of ld
4361 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4362 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4363 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4364 done
4365 test -z "$LD" && LD=$ac_prog
4366 ;;
4367 "")
4368 # If it fails, then pretend we aren't using GCC.
4369 ac_prog=ld
4370 ;;
4371 *)
4372 # If it is relative, then search for the first ld in PATH.
4373 with_gnu_ld=unknown
4374 ;;
4375 esac
4376 elif test yes = "$with_gnu_ld"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4378 $as_echo_n "checking for GNU ld... " >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4381 $as_echo_n "checking for non-GNU ld... " >&6; }
4382 fi
4383 if ${lt_cv_path_LD+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -z "$LD"; then
4387 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4388 for ac_dir in $PATH; do
4389 IFS=$lt_save_ifs
4390 test -z "$ac_dir" && ac_dir=.
4391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4392 lt_cv_path_LD=$ac_dir/$ac_prog
4393 # Check to see if the program is GNU ld. I'd rather use --version,
4394 # but apparently some variants of GNU ld only accept -v.
4395 # Break only if it was the GNU/non-GNU ld that we prefer.
4396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4397 *GNU* | *'with BFD'*)
4398 test no != "$with_gnu_ld" && break
4399 ;;
4400 *)
4401 test yes != "$with_gnu_ld" && break
4402 ;;
4403 esac
4404 fi
4405 done
4406 IFS=$lt_save_ifs
4407 else
4408 lt_cv_path_LD=$LD # Let the user override the test with a path.
4409 fi
4410 fi
4411
4412 LD=$lt_cv_path_LD
4413 if test -n "$LD"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4415 $as_echo "$LD" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4422 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4423 if ${lt_cv_prog_gnu_ld+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4427 case `$LD -v 2>&1 </dev/null` in
4428 *GNU* | *'with BFD'*)
4429 lt_cv_prog_gnu_ld=yes
4430 ;;
4431 *)
4432 lt_cv_prog_gnu_ld=no
4433 ;;
4434 esac
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4437 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4438 with_gnu_ld=$lt_cv_prog_gnu_ld
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4449 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4450 if ${lt_cv_path_NM+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -n "$NM"; then
4454 # Let the user override the test.
4455 lt_cv_path_NM=$NM
4456 else
4457 lt_nm_to_check=${ac_tool_prefix}nm
4458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4459 lt_nm_to_check="$lt_nm_to_check nm"
4460 fi
4461 for lt_tmp_nm in $lt_nm_to_check; do
4462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4464 IFS=$lt_save_ifs
4465 test -z "$ac_dir" && ac_dir=.
4466 tmp_nm=$ac_dir/$lt_tmp_nm
4467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4468 # Check to see if the nm accepts a BSD-compat flag.
4469 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4470 # nm: unknown option "B" ignored
4471 # Tru64's nm complains that /dev/null is an invalid object file
4472 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4473 case $build_os in
4474 mingw*) lt_bad_file=conftest.nm/nofile ;;
4475 *) lt_bad_file=/dev/null ;;
4476 esac
4477 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4478 *$lt_bad_file* | *'Invalid file or object type'*)
4479 lt_cv_path_NM="$tmp_nm -B"
4480 break 2
4481 ;;
4482 *)
4483 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4484 */dev/null*)
4485 lt_cv_path_NM="$tmp_nm -p"
4486 break 2
4487 ;;
4488 *)
4489 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4490 continue # so that we can try to find one that supports BSD flags
4491 ;;
4492 esac
4493 ;;
4494 esac
4495 fi
4496 done
4497 IFS=$lt_save_ifs
4498 done
4499 : ${lt_cv_path_NM=no}
4500 fi
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4503 $as_echo "$lt_cv_path_NM" >&6; }
4504 if test no != "$lt_cv_path_NM"; then
4505 NM=$lt_cv_path_NM
4506 else
4507 # Didn't find any BSD compatible name lister, look for dumpbin.
4508 if test -n "$DUMPBIN"; then :
4509 # Let the user override the test.
4510 else
4511 if test -n "$ac_tool_prefix"; then
4512 for ac_prog in dumpbin "link -dump"
4513 do
4514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if ${ac_cv_prog_DUMPBIN+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$DUMPBIN"; then
4522 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4534 fi
4535 done
4536 done
4537 IFS=$as_save_IFS
4538
4539 fi
4540 fi
4541 DUMPBIN=$ac_cv_prog_DUMPBIN
4542 if test -n "$DUMPBIN"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4544 $as_echo "$DUMPBIN" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 fi
4549
4550
4551 test -n "$DUMPBIN" && break
4552 done
4553 fi
4554 if test -z "$DUMPBIN"; then
4555 ac_ct_DUMPBIN=$DUMPBIN
4556 for ac_prog in dumpbin "link -dump"
4557 do
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -n "$ac_ct_DUMPBIN"; then
4566 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4586 if test -n "$ac_ct_DUMPBIN"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4588 $as_echo "$ac_ct_DUMPBIN" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594
4595 test -n "$ac_ct_DUMPBIN" && break
4596 done
4597
4598 if test "x$ac_ct_DUMPBIN" = x; then
4599 DUMPBIN=":"
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607 DUMPBIN=$ac_ct_DUMPBIN
4608 fi
4609 fi
4610
4611 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4612 *COFF*)
4613 DUMPBIN="$DUMPBIN -symbols -headers"
4614 ;;
4615 *)
4616 DUMPBIN=:
4617 ;;
4618 esac
4619 fi
4620
4621 if test : != "$DUMPBIN"; then
4622 NM=$DUMPBIN
4623 fi
4624 fi
4625 test -z "$NM" && NM=nm
4626
4627
4628
4629
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4634 if ${lt_cv_nm_interface+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 lt_cv_nm_interface="BSD nm"
4638 echo "int some_variable = 0;" > conftest.$ac_ext
4639 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4640 (eval "$ac_compile" 2>conftest.err)
4641 cat conftest.err >&5
4642 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4644 cat conftest.err >&5
4645 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4646 cat conftest.out >&5
4647 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4648 lt_cv_nm_interface="MS dumpbin"
4649 fi
4650 rm -f conftest*
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4653 $as_echo "$lt_cv_nm_interface" >&6; }
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4656 $as_echo_n "checking whether ln -s works... " >&6; }
4657 LN_S=$as_ln_s
4658 if test "$LN_S" = "ln -s"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4660 $as_echo "yes" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4663 $as_echo "no, using $LN_S" >&6; }
4664 fi
4665
4666 # find the maximum length of command line arguments
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4669 if ${lt_cv_sys_max_cmd_len+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 i=0
4673 teststring=ABCD
4674
4675 case $build_os in
4676 msdosdjgpp*)
4677 # On DJGPP, this test can blow up pretty badly due to problems in libc
4678 # (any single argument exceeding 2000 bytes causes a buffer overrun
4679 # during glob expansion). Even if it were fixed, the result of this
4680 # check would be larger than it should be.
4681 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4682 ;;
4683
4684 gnu*)
4685 # Under GNU Hurd, this test is not required because there is
4686 # no limit to the length of command line arguments.
4687 # Libtool will interpret -1 as no limit whatsoever
4688 lt_cv_sys_max_cmd_len=-1;
4689 ;;
4690
4691 cygwin* | mingw* | cegcc*)
4692 # On Win9x/ME, this test blows up -- it succeeds, but takes
4693 # about 5 minutes as the teststring grows exponentially.
4694 # Worse, since 9x/ME are not pre-emptively multitasking,
4695 # you end up with a "frozen" computer, even though with patience
4696 # the test eventually succeeds (with a max line length of 256k).
4697 # Instead, let's just punt: use the minimum linelength reported by
4698 # all of the supported platforms: 8192 (on NT/2K/XP).
4699 lt_cv_sys_max_cmd_len=8192;
4700 ;;
4701
4702 mint*)
4703 # On MiNT this can take a long time and run out of memory.
4704 lt_cv_sys_max_cmd_len=8192;
4705 ;;
4706
4707 amigaos*)
4708 # On AmigaOS with pdksh, this test takes hours, literally.
4709 # So we just punt and use a minimum line length of 8192.
4710 lt_cv_sys_max_cmd_len=8192;
4711 ;;
4712
4713 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4714 # This has been around since 386BSD, at least. Likely further.
4715 if test -x /sbin/sysctl; then
4716 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4717 elif test -x /usr/sbin/sysctl; then
4718 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4719 else
4720 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4721 fi
4722 # And add a safety zone
4723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4725 ;;
4726
4727 interix*)
4728 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4729 lt_cv_sys_max_cmd_len=196608
4730 ;;
4731
4732 os2*)
4733 # The test takes a long time on OS/2.
4734 lt_cv_sys_max_cmd_len=8192
4735 ;;
4736
4737 osf*)
4738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4740 # nice to cause kernel panics so lets avoid the loop below.
4741 # First set a reasonable default.
4742 lt_cv_sys_max_cmd_len=16384
4743 #
4744 if test -x /sbin/sysconfig; then
4745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4746 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4747 esac
4748 fi
4749 ;;
4750 sco3.2v5*)
4751 lt_cv_sys_max_cmd_len=102400
4752 ;;
4753 sysv5* | sco5v6* | sysv4.2uw2*)
4754 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4755 if test -n "$kargmax"; then
4756 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4757 else
4758 lt_cv_sys_max_cmd_len=32768
4759 fi
4760 ;;
4761 *)
4762 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4763 if test -n "$lt_cv_sys_max_cmd_len" && \
4764 test undefined != "$lt_cv_sys_max_cmd_len"; then
4765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4767 else
4768 # Make teststring a little bigger before we do anything with it.
4769 # a 1K string should be a reasonable start.
4770 for i in 1 2 3 4 5 6 7 8; do
4771 teststring=$teststring$teststring
4772 done
4773 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4774 # If test is not a shell built-in, we'll probably end up computing a
4775 # maximum length that is only half of the actual maximum length, but
4776 # we can't tell.
4777 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4778 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4779 test 17 != "$i" # 1/2 MB should be enough
4780 do
4781 i=`expr $i + 1`
4782 teststring=$teststring$teststring
4783 done
4784 # Only check the string length outside the loop.
4785 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4786 teststring=
4787 # Add a significant safety factor because C++ compilers can tack on
4788 # massive amounts of additional arguments before passing them to the
4789 # linker. It appears as though 1/2 is a usable value.
4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4791 fi
4792 ;;
4793 esac
4794
4795 fi
4796
4797 if test -n "$lt_cv_sys_max_cmd_len"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4799 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4802 $as_echo "none" >&6; }
4803 fi
4804 max_cmd_len=$lt_cv_sys_max_cmd_len
4805
4806
4807
4808
4809
4810
4811 : ${CP="cp -f"}
4812 : ${MV="mv -f"}
4813 : ${RM="rm -f"}
4814
4815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4816 lt_unset=unset
4817 else
4818 lt_unset=false
4819 fi
4820
4821
4822
4823
4824
4825 # test EBCDIC or ASCII
4826 case `echo X|tr X '\101'` in
4827 A) # ASCII based system
4828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4829 lt_SP2NL='tr \040 \012'
4830 lt_NL2SP='tr \015\012 \040\040'
4831 ;;
4832 *) # EBCDIC based system
4833 lt_SP2NL='tr \100 \n'
4834 lt_NL2SP='tr \r\n \100\100'
4835 ;;
4836 esac
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4847 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4848 if ${lt_cv_to_host_file_cmd+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 case $host in
4852 *-*-mingw* )
4853 case $build in
4854 *-*-mingw* ) # actually msys
4855 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4856 ;;
4857 *-*-cygwin* )
4858 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4859 ;;
4860 * ) # otherwise, assume *nix
4861 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4862 ;;
4863 esac
4864 ;;
4865 *-*-cygwin* )
4866 case $build in
4867 *-*-mingw* ) # actually msys
4868 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4869 ;;
4870 *-*-cygwin* )
4871 lt_cv_to_host_file_cmd=func_convert_file_noop
4872 ;;
4873 * ) # otherwise, assume *nix
4874 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4875 ;;
4876 esac
4877 ;;
4878 * ) # unhandled hosts (and "normal" native builds)
4879 lt_cv_to_host_file_cmd=func_convert_file_noop
4880 ;;
4881 esac
4882
4883 fi
4884
4885 to_host_file_cmd=$lt_cv_to_host_file_cmd
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4887 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4888
4889
4890
4891
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4894 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4895 if ${lt_cv_to_tool_file_cmd+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 #assume ordinary cross tools, or native build.
4899 lt_cv_to_tool_file_cmd=func_convert_file_noop
4900 case $host in
4901 *-*-mingw* )
4902 case $build in
4903 *-*-mingw* ) # actually msys
4904 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4905 ;;
4906 esac
4907 ;;
4908 esac
4909
4910 fi
4911
4912 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4914 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4915
4916
4917
4918
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4921 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4922 if ${lt_cv_ld_reload_flag+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 lt_cv_ld_reload_flag='-r'
4926 fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4928 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4929 reload_flag=$lt_cv_ld_reload_flag
4930 case $reload_flag in
4931 "" | " "*) ;;
4932 *) reload_flag=" $reload_flag" ;;
4933 esac
4934 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4935 case $host_os in
4936 cygwin* | mingw* | pw32* | cegcc*)
4937 if test yes != "$GCC"; then
4938 reload_cmds=false
4939 fi
4940 ;;
4941 darwin*)
4942 if test yes = "$GCC"; then
4943 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4944 else
4945 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4946 fi
4947 ;;
4948 esac
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_OBJDUMP+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$OBJDUMP"; then
4967 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4979 fi
4980 done
4981 done
4982 IFS=$as_save_IFS
4983
4984 fi
4985 fi
4986 OBJDUMP=$ac_cv_prog_OBJDUMP
4987 if test -n "$OBJDUMP"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4989 $as_echo "$OBJDUMP" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995
4996 fi
4997 if test -z "$ac_cv_prog_OBJDUMP"; then
4998 ac_ct_OBJDUMP=$OBJDUMP
4999 # Extract the first word of "objdump", so it can be a program name with args.
5000 set dummy objdump; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$ac_ct_OBJDUMP"; then
5007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5027 if test -n "$ac_ct_OBJDUMP"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5029 $as_echo "$ac_ct_OBJDUMP" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035 if test "x$ac_ct_OBJDUMP" = x; then
5036 OBJDUMP="false"
5037 else
5038 case $cross_compiling:$ac_tool_warned in
5039 yes:)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5042 ac_tool_warned=yes ;;
5043 esac
5044 OBJDUMP=$ac_ct_OBJDUMP
5045 fi
5046 else
5047 OBJDUMP="$ac_cv_prog_OBJDUMP"
5048 fi
5049
5050 test -z "$OBJDUMP" && OBJDUMP=objdump
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5061 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5062 if ${lt_cv_deplibs_check_method+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 lt_cv_file_magic_cmd='$MAGIC_CMD'
5066 lt_cv_file_magic_test_file=
5067 lt_cv_deplibs_check_method='unknown'
5068 # Need to set the preceding variable on all platforms that support
5069 # interlibrary dependencies.
5070 # 'none' -- dependencies not supported.
5071 # 'unknown' -- same as none, but documents that we really don't know.
5072 # 'pass_all' -- all dependencies passed with no checks.
5073 # 'test_compile' -- check by making test program.
5074 # 'file_magic [[regex]]' -- check by looking for files in library path
5075 # that responds to the $file_magic_cmd with a given extended regex.
5076 # If you have 'file' or equivalent on your system and you're not sure
5077 # whether 'pass_all' will *always* work, you probably want this one.
5078
5079 case $host_os in
5080 aix[4-9]*)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083
5084 beos*)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087
5088 bsdi[45]*)
5089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5090 lt_cv_file_magic_cmd='/usr/bin/file -L'
5091 lt_cv_file_magic_test_file=/shlib/libc.so
5092 ;;
5093
5094 cygwin*)
5095 # func_win32_libid is a shell function defined in ltmain.sh
5096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5097 lt_cv_file_magic_cmd='func_win32_libid'
5098 ;;
5099
5100 mingw* | pw32*)
5101 # Base MSYS/MinGW do not provide the 'file' command needed by
5102 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5103 # unless we find 'file', for example because we are cross-compiling.
5104 if ( file / ) >/dev/null 2>&1; then
5105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5106 lt_cv_file_magic_cmd='func_win32_libid'
5107 else
5108 # Keep this pattern in sync with the one in func_win32_libid.
5109 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5110 lt_cv_file_magic_cmd='$OBJDUMP -f'
5111 fi
5112 ;;
5113
5114 cegcc*)
5115 # use the weaker test based on 'objdump'. See mingw*.
5116 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5117 lt_cv_file_magic_cmd='$OBJDUMP -f'
5118 ;;
5119
5120 darwin* | rhapsody*)
5121 lt_cv_deplibs_check_method=pass_all
5122 ;;
5123
5124 freebsd* | dragonfly*)
5125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5126 case $host_cpu in
5127 i*86 )
5128 # Not sure whether the presence of OpenBSD here was a mistake.
5129 # Let's accept both of them until this is cleared up.
5130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5131 lt_cv_file_magic_cmd=/usr/bin/file
5132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5133 ;;
5134 esac
5135 else
5136 lt_cv_deplibs_check_method=pass_all
5137 fi
5138 ;;
5139
5140 haiku*)
5141 lt_cv_deplibs_check_method=pass_all
5142 ;;
5143
5144 hpux10.20* | hpux11*)
5145 lt_cv_file_magic_cmd=/usr/bin/file
5146 case $host_cpu in
5147 ia64*)
5148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5150 ;;
5151 hppa*64*)
5152 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]'
5153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5154 ;;
5155 *)
5156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5157 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5158 ;;
5159 esac
5160 ;;
5161
5162 interix[3-9]*)
5163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5165 ;;
5166
5167 irix5* | irix6* | nonstopux*)
5168 case $LD in
5169 *-32|*"-32 ") libmagic=32-bit;;
5170 *-n32|*"-n32 ") libmagic=N32;;
5171 *-64|*"-64 ") libmagic=64-bit;;
5172 *) libmagic=never-match;;
5173 esac
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
5176
5177 # This must be glibc/ELF.
5178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5179 lt_cv_deplibs_check_method=pass_all
5180 ;;
5181
5182 netbsd*)
5183 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5185 else
5186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5187 fi
5188 ;;
5189
5190 newos6*)
5191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5192 lt_cv_file_magic_cmd=/usr/bin/file
5193 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5194 ;;
5195
5196 *nto* | *qnx*)
5197 lt_cv_deplibs_check_method=pass_all
5198 ;;
5199
5200 openbsd* | bitrig*)
5201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5203 else
5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5205 fi
5206 ;;
5207
5208 osf3* | osf4* | osf5*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 rdos*)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216 solaris*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219
5220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 sysv4 | sysv4.3*)
5225 case $host_vendor in
5226 motorola)
5227 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]'
5228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5229 ;;
5230 ncr)
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
5233 sequent)
5234 lt_cv_file_magic_cmd='/bin/file'
5235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5236 ;;
5237 sni)
5238 lt_cv_file_magic_cmd='/bin/file'
5239 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5240 lt_cv_file_magic_test_file=/lib/libc.so
5241 ;;
5242 siemens)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245 pc)
5246 lt_cv_deplibs_check_method=pass_all
5247 ;;
5248 esac
5249 ;;
5250
5251 tpf*)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254 os2*)
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 one 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 0 -eq "$ac_status"; 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 0 -ne "$ac_status"; 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 no = "$lt_cv_ar_at_file"; 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 bitrig* | 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 ia64 = "$host_cpu"; 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 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5944 # Gets list of data symbols to import.
5945 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5946 # Adjust the below global symbol transforms to fixup imported variables.
5947 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5948 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5949 lt_c_name_lib_hook="\
5950 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5951 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5952 else
5953 # Disable hooks by default.
5954 lt_cv_sys_global_symbol_to_import=
5955 lt_cdecl_hook=
5956 lt_c_name_hook=
5957 lt_c_name_lib_hook=
5958 fi
5959
5960 # Transform an extracted symbol line into a proper C declaration.
5961 # Some systems (esp. on ia64) link data and code symbols differently,
5962 # so use this general approach.
5963 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5964 $lt_cdecl_hook\
5965 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5966 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5967
5968 # Transform an extracted symbol line into symbol name and symbol address
5969 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5970 $lt_c_name_hook\
5971 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5972 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5973
5974 # Transform an extracted symbol line into symbol name with lib prefix and
5975 # symbol address.
5976 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5977 $lt_c_name_lib_hook\
5978 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5979 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5980 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5981
5982 # Handle CRLF in mingw tool chain
5983 opt_cr=
5984 case $build_os in
5985 mingw*)
5986 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5987 ;;
5988 esac
5989
5990 # Try without a prefix underscore, then with it.
5991 for ac_symprfx in "" "_"; do
5992
5993 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5994 symxfrm="\\1 $ac_symprfx\\2 \\2"
5995
5996 # Write the raw and C identifiers.
5997 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5998 # Fake it for dumpbin and say T for any non-static function,
5999 # D for any global variable and I for any imported variable.
6000 # Also find C++ and __fastcall symbols from MSVC++,
6001 # which start with @ or ?.
6002 lt_cv_sys_global_symbol_pipe="$AWK '"\
6003 " {last_section=section; section=\$ 3};"\
6004 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6005 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6006 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6007 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6008 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6009 " \$ 0!~/External *\|/{next};"\
6010 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6011 " {if(hide[section]) next};"\
6012 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6013 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6014 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6015 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6016 " ' prfx=^$ac_symprfx"
6017 else
6018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6019 fi
6020 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6021
6022 # Check to see that the pipe works correctly.
6023 pipe_works=no
6024
6025 rm -f conftest*
6026 cat > conftest.$ac_ext <<_LT_EOF
6027 #ifdef __cplusplus
6028 extern "C" {
6029 #endif
6030 char nm_test_var;
6031 void nm_test_func(void);
6032 void nm_test_func(void){}
6033 #ifdef __cplusplus
6034 }
6035 #endif
6036 int main(){nm_test_var='a';nm_test_func();return(0);}
6037 _LT_EOF
6038
6039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6040 (eval $ac_compile) 2>&5
6041 ac_status=$?
6042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6043 test $ac_status = 0; }; then
6044 # Now try to grab the symbols.
6045 nlist=conftest.nm
6046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6047 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6048 ac_status=$?
6049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050 test $ac_status = 0; } && test -s "$nlist"; then
6051 # Try sorting and uniquifying the output.
6052 if sort "$nlist" | uniq > "$nlist"T; then
6053 mv -f "$nlist"T "$nlist"
6054 else
6055 rm -f "$nlist"T
6056 fi
6057
6058 # Make sure that we snagged all the symbols we need.
6059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6060 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6061 cat <<_LT_EOF > conftest.$ac_ext
6062 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6063 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6064 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6065 relocations are performed -- see ld's documentation on pseudo-relocs. */
6066 # define LT_DLSYM_CONST
6067 #elif defined __osf__
6068 /* This system does not cope well with relocations in const data. */
6069 # define LT_DLSYM_CONST
6070 #else
6071 # define LT_DLSYM_CONST const
6072 #endif
6073
6074 #ifdef __cplusplus
6075 extern "C" {
6076 #endif
6077
6078 _LT_EOF
6079 # Now generate the symbol file.
6080 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6081
6082 cat <<_LT_EOF >> conftest.$ac_ext
6083
6084 /* The mapping between symbol names and symbols. */
6085 LT_DLSYM_CONST struct {
6086 const char *name;
6087 void *address;
6088 }
6089 lt__PROGRAM__LTX_preloaded_symbols[] =
6090 {
6091 { "@PROGRAM@", (void *) 0 },
6092 _LT_EOF
6093 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6094 cat <<\_LT_EOF >> conftest.$ac_ext
6095 {0, (void *) 0}
6096 };
6097
6098 /* This works around a problem in FreeBSD linker */
6099 #ifdef FREEBSD_WORKAROUND
6100 static const void *lt_preloaded_setup() {
6101 return lt__PROGRAM__LTX_preloaded_symbols;
6102 }
6103 #endif
6104
6105 #ifdef __cplusplus
6106 }
6107 #endif
6108 _LT_EOF
6109 # Now try linking the two files.
6110 mv conftest.$ac_objext conftstm.$ac_objext
6111 lt_globsym_save_LIBS=$LIBS
6112 lt_globsym_save_CFLAGS=$CFLAGS
6113 LIBS=conftstm.$ac_objext
6114 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6116 (eval $ac_link) 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6120 pipe_works=yes
6121 fi
6122 LIBS=$lt_globsym_save_LIBS
6123 CFLAGS=$lt_globsym_save_CFLAGS
6124 else
6125 echo "cannot find nm_test_func in $nlist" >&5
6126 fi
6127 else
6128 echo "cannot find nm_test_var in $nlist" >&5
6129 fi
6130 else
6131 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6132 fi
6133 else
6134 echo "$progname: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6136 fi
6137 rm -rf conftest* conftst*
6138
6139 # Do not use the global_symbol_pipe unless it works.
6140 if test yes = "$pipe_works"; then
6141 break
6142 else
6143 lt_cv_sys_global_symbol_pipe=
6144 fi
6145 done
6146
6147 fi
6148
6149 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6150 lt_cv_sys_global_symbol_to_cdecl=
6151 fi
6152 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6154 $as_echo "failed" >&6; }
6155 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6157 $as_echo "ok" >&6; }
6158 fi
6159
6160 # Response file support.
6161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6162 nm_file_list_spec='@'
6163 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6164 nm_file_list_spec='@'
6165 fi
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6204 $as_echo_n "checking for sysroot... " >&6; }
6205
6206 # Check whether --with-sysroot was given.
6207 if test "${with_sysroot+set}" = set; then :
6208 withval=$with_sysroot;
6209 else
6210 with_sysroot=no
6211 fi
6212
6213
6214 lt_sysroot=
6215 case $with_sysroot in #(
6216 yes)
6217 if test yes = "$GCC"; then
6218 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6219 fi
6220 ;; #(
6221 /*)
6222 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6223 ;; #(
6224 no|'')
6225 ;; #(
6226 *)
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6228 $as_echo "$with_sysroot" >&6; }
6229 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6230 ;;
6231 esac
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6234 $as_echo "${lt_sysroot:-no}" >&6; }
6235
6236
6237
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6241 $as_echo_n "checking for a working dd... " >&6; }
6242 if ${ac_cv_path_lt_DD+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 printf 0123456789abcdef0123456789abcdef >conftest.i
6246 cat conftest.i conftest.i >conftest2.i
6247 : ${lt_DD:=$DD}
6248 if test -z "$lt_DD"; then
6249 ac_path_lt_DD_found=false
6250 # Loop through the user's path and test for each of PROGNAME-LIST
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_prog in dd; do
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6259 as_fn_executable_p "$ac_path_lt_DD" || continue
6260 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6261 cmp -s conftest.i conftest.out \
6262 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6263 fi
6264 $ac_path_lt_DD_found && break 3
6265 done
6266 done
6267 done
6268 IFS=$as_save_IFS
6269 if test -z "$ac_cv_path_lt_DD"; then
6270 :
6271 fi
6272 else
6273 ac_cv_path_lt_DD=$lt_DD
6274 fi
6275
6276 rm -f conftest.i conftest2.i conftest.out
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6279 $as_echo "$ac_cv_path_lt_DD" >&6; }
6280
6281
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6283 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6284 if ${lt_cv_truncate_bin+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 printf 0123456789abcdef0123456789abcdef >conftest.i
6288 cat conftest.i conftest.i >conftest2.i
6289 lt_cv_truncate_bin=
6290 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6291 cmp -s conftest.i conftest.out \
6292 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6293 fi
6294 rm -f conftest.i conftest2.i conftest.out
6295 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6298 $as_echo "$lt_cv_truncate_bin" >&6; }
6299
6300
6301
6302
6303
6304
6305
6306 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6307 func_cc_basename ()
6308 {
6309 for cc_temp in $*""; do
6310 case $cc_temp in
6311 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6312 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6313 \-*) ;;
6314 *) break;;
6315 esac
6316 done
6317 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6318 }
6319
6320 # Check whether --enable-libtool-lock was given.
6321 if test "${enable_libtool_lock+set}" = set; then :
6322 enableval=$enable_libtool_lock;
6323 fi
6324
6325 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6326
6327 # Some flags need to be propagated to the compiler or linker for good
6328 # libtool support.
6329 case $host in
6330 ia64-*-hpux*)
6331 # Find out what ABI is being produced by ac_compile, and set mode
6332 # options accordingly.
6333 echo 'int i;' > conftest.$ac_ext
6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335 (eval $ac_compile) 2>&5
6336 ac_status=$?
6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338 test $ac_status = 0; }; then
6339 case `/usr/bin/file conftest.$ac_objext` in
6340 *ELF-32*)
6341 HPUX_IA64_MODE=32
6342 ;;
6343 *ELF-64*)
6344 HPUX_IA64_MODE=64
6345 ;;
6346 esac
6347 fi
6348 rm -rf conftest*
6349 ;;
6350 *-*-irix6*)
6351 # Find out what ABI is being produced by ac_compile, and set linker
6352 # options accordingly.
6353 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }; then
6359 if test yes = "$lt_cv_prog_gnu_ld"; then
6360 case `/usr/bin/file conftest.$ac_objext` in
6361 *32-bit*)
6362 LD="${LD-ld} -melf32bsmip"
6363 ;;
6364 *N32*)
6365 LD="${LD-ld} -melf32bmipn32"
6366 ;;
6367 *64-bit*)
6368 LD="${LD-ld} -melf64bmip"
6369 ;;
6370 esac
6371 else
6372 case `/usr/bin/file conftest.$ac_objext` in
6373 *32-bit*)
6374 LD="${LD-ld} -32"
6375 ;;
6376 *N32*)
6377 LD="${LD-ld} -n32"
6378 ;;
6379 *64-bit*)
6380 LD="${LD-ld} -64"
6381 ;;
6382 esac
6383 fi
6384 fi
6385 rm -rf conftest*
6386 ;;
6387
6388 mips64*-*linux*)
6389 # Find out what ABI is being produced by ac_compile, and set linker
6390 # options accordingly.
6391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }; then
6397 emul=elf
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *32-bit*)
6400 emul="${emul}32"
6401 ;;
6402 *64-bit*)
6403 emul="${emul}64"
6404 ;;
6405 esac
6406 case `/usr/bin/file conftest.$ac_objext` in
6407 *MSB*)
6408 emul="${emul}btsmip"
6409 ;;
6410 *LSB*)
6411 emul="${emul}ltsmip"
6412 ;;
6413 esac
6414 case `/usr/bin/file conftest.$ac_objext` in
6415 *N32*)
6416 emul="${emul}n32"
6417 ;;
6418 esac
6419 LD="${LD-ld} -m $emul"
6420 fi
6421 rm -rf conftest*
6422 ;;
6423
6424 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6425 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6426 # Find out what ABI is being produced by ac_compile, and set linker
6427 # options accordingly. Note that the listed cases only cover the
6428 # situations where additional linker options are needed (such as when
6429 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6430 # vice versa); the common cases where no linker options are needed do
6431 # not appear in the list.
6432 echo 'int i;' > conftest.$ac_ext
6433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6434 (eval $ac_compile) 2>&5
6435 ac_status=$?
6436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6437 test $ac_status = 0; }; then
6438 case `/usr/bin/file conftest.o` in
6439 *32-bit*)
6440 case $host in
6441 x86_64-*kfreebsd*-gnu)
6442 LD="${LD-ld} -m elf_i386_fbsd"
6443 ;;
6444 x86_64-*linux*)
6445 case `/usr/bin/file conftest.o` in
6446 *x86-64*)
6447 LD="${LD-ld} -m elf32_x86_64"
6448 ;;
6449 *)
6450 LD="${LD-ld} -m elf_i386"
6451 ;;
6452 esac
6453 ;;
6454 powerpc64le-*linux*)
6455 LD="${LD-ld} -m elf32lppclinux"
6456 ;;
6457 powerpc64-*linux*)
6458 LD="${LD-ld} -m elf32ppclinux"
6459 ;;
6460 s390x-*linux*)
6461 LD="${LD-ld} -m elf_s390"
6462 ;;
6463 sparc64-*linux*)
6464 LD="${LD-ld} -m elf32_sparc"
6465 ;;
6466 esac
6467 ;;
6468 *64-bit*)
6469 case $host in
6470 x86_64-*kfreebsd*-gnu)
6471 LD="${LD-ld} -m elf_x86_64_fbsd"
6472 ;;
6473 x86_64-*linux*)
6474 LD="${LD-ld} -m elf_x86_64"
6475 ;;
6476 powerpcle-*linux*)
6477 LD="${LD-ld} -m elf64lppc"
6478 ;;
6479 powerpc-*linux*)
6480 LD="${LD-ld} -m elf64ppc"
6481 ;;
6482 s390*-*linux*|s390*-*tpf*)
6483 LD="${LD-ld} -m elf64_s390"
6484 ;;
6485 sparc*-*linux*)
6486 LD="${LD-ld} -m elf64_sparc"
6487 ;;
6488 esac
6489 ;;
6490 esac
6491 fi
6492 rm -rf conftest*
6493 ;;
6494
6495 *-*-sco3.2v5*)
6496 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6497 SAVE_CFLAGS=$CFLAGS
6498 CFLAGS="$CFLAGS -belf"
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6500 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6501 if ${lt_cv_cc_needs_belf+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 ac_ext=c
6505 ac_cpp='$CPP $CPPFLAGS'
6506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512
6513 int
6514 main ()
6515 {
6516
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 if ac_fn_c_try_link "$LINENO"; then :
6522 lt_cv_cc_needs_belf=yes
6523 else
6524 lt_cv_cc_needs_belf=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext conftest.$ac_ext
6528 ac_ext=c
6529 ac_cpp='$CPP $CPPFLAGS'
6530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6536 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6537 if test yes != "$lt_cv_cc_needs_belf"; then
6538 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6539 CFLAGS=$SAVE_CFLAGS
6540 fi
6541 ;;
6542 *-*solaris*)
6543 # Find out what ABI is being produced by ac_compile, and set linker
6544 # options accordingly.
6545 echo 'int i;' > conftest.$ac_ext
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then
6551 case `/usr/bin/file conftest.o` in
6552 *64-bit*)
6553 case $lt_cv_prog_gnu_ld in
6554 yes*)
6555 case $host in
6556 i?86-*-solaris*|x86_64-*-solaris*)
6557 LD="${LD-ld} -m elf_x86_64"
6558 ;;
6559 sparc*-*-solaris*)
6560 LD="${LD-ld} -m elf64_sparc"
6561 ;;
6562 esac
6563 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6564 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6565 LD=${LD-ld}_sol2
6566 fi
6567 ;;
6568 *)
6569 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6570 LD="${LD-ld} -64"
6571 fi
6572 ;;
6573 esac
6574 ;;
6575 esac
6576 fi
6577 rm -rf conftest*
6578 ;;
6579 esac
6580
6581 need_locks=$enable_libtool_lock
6582
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}mt; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 if test -n "$MANIFEST_TOOL"; then
6592 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6612 if test -n "$MANIFEST_TOOL"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6614 $as_echo "$MANIFEST_TOOL" >&6; }
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620
6621 fi
6622 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6623 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6624 # Extract the first word of "mt", so it can be a program name with args.
6625 set dummy mt; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 if test -n "$ac_ct_MANIFEST_TOOL"; then
6632 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6652 if test -n "$ac_ct_MANIFEST_TOOL"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6654 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6661 MANIFEST_TOOL=":"
6662 else
6663 case $cross_compiling:$ac_tool_warned in
6664 yes:)
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6668 esac
6669 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6670 fi
6671 else
6672 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6673 fi
6674
6675 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6677 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6678 if ${lt_cv_path_mainfest_tool+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 lt_cv_path_mainfest_tool=no
6682 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6683 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6684 cat conftest.err >&5
6685 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6686 lt_cv_path_mainfest_tool=yes
6687 fi
6688 rm -f conftest*
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6691 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6692 if test yes != "$lt_cv_path_mainfest_tool"; then
6693 MANIFEST_TOOL=:
6694 fi
6695
6696
6697
6698
6699
6700
6701 case $host_os in
6702 rhapsody* | darwin*)
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6705 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$DSYMUTIL"; then
6712 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6732 if test -n "$DSYMUTIL"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6734 $as_echo "$DSYMUTIL" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740
6741 fi
6742 if test -z "$ac_cv_prog_DSYMUTIL"; then
6743 ac_ct_DSYMUTIL=$DSYMUTIL
6744 # Extract the first word of "dsymutil", so it can be a program name with args.
6745 set dummy dsymutil; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$ac_ct_DSYMUTIL"; then
6752 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6772 if test -n "$ac_ct_DSYMUTIL"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6774 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780 if test "x$ac_ct_DSYMUTIL" = x; then
6781 DSYMUTIL=":"
6782 else
6783 case $cross_compiling:$ac_tool_warned in
6784 yes:)
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 DSYMUTIL=$ac_ct_DSYMUTIL
6790 fi
6791 else
6792 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6793 fi
6794
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_NMEDIT+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$NMEDIT"; then
6804 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 NMEDIT=$ac_cv_prog_NMEDIT
6824 if test -n "$NMEDIT"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6826 $as_echo "$NMEDIT" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_NMEDIT"; then
6835 ac_ct_NMEDIT=$NMEDIT
6836 # Extract the first word of "nmedit", so it can be a program name with args.
6837 set dummy nmedit; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$ac_ct_NMEDIT"; then
6844 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6864 if test -n "$ac_ct_NMEDIT"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6866 $as_echo "$ac_ct_NMEDIT" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872 if test "x$ac_ct_NMEDIT" = x; then
6873 NMEDIT=":"
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881 NMEDIT=$ac_ct_NMEDIT
6882 fi
6883 else
6884 NMEDIT="$ac_cv_prog_NMEDIT"
6885 fi
6886
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_prog_LIPO+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 if test -n "$LIPO"; then
6896 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 LIPO=$ac_cv_prog_LIPO
6916 if test -n "$LIPO"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6918 $as_echo "$LIPO" >&6; }
6919 else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923
6924
6925 fi
6926 if test -z "$ac_cv_prog_LIPO"; then
6927 ac_ct_LIPO=$LIPO
6928 # Extract the first word of "lipo", so it can be a program name with args.
6929 set dummy lipo; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$ac_ct_LIPO"; then
6936 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_ac_ct_LIPO="lipo"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6956 if test -n "$ac_ct_LIPO"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6958 $as_echo "$ac_ct_LIPO" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964 if test "x$ac_ct_LIPO" = x; then
6965 LIPO=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968 yes:)
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971 ac_tool_warned=yes ;;
6972 esac
6973 LIPO=$ac_ct_LIPO
6974 fi
6975 else
6976 LIPO="$ac_cv_prog_LIPO"
6977 fi
6978
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}otool; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_OTOOL+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 if test -n "$OTOOL"; then
6988 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 OTOOL=$ac_cv_prog_OTOOL
7008 if test -n "$OTOOL"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7010 $as_echo "$OTOOL" >&6; }
7011 else
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 fi
7015
7016
7017 fi
7018 if test -z "$ac_cv_prog_OTOOL"; then
7019 ac_ct_OTOOL=$OTOOL
7020 # Extract the first word of "otool", so it can be a program name with args.
7021 set dummy otool; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$ac_ct_OTOOL"; then
7028 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_ac_ct_OTOOL="otool"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7048 if test -n "$ac_ct_OTOOL"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7050 $as_echo "$ac_ct_OTOOL" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056 if test "x$ac_ct_OTOOL" = x; then
7057 OTOOL=":"
7058 else
7059 case $cross_compiling:$ac_tool_warned in
7060 yes:)
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063 ac_tool_warned=yes ;;
7064 esac
7065 OTOOL=$ac_ct_OTOOL
7066 fi
7067 else
7068 OTOOL="$ac_cv_prog_OTOOL"
7069 fi
7070
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_prog_OTOOL64+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 if test -n "$OTOOL64"; then
7080 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 OTOOL64=$ac_cv_prog_OTOOL64
7100 if test -n "$OTOOL64"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7102 $as_echo "$OTOOL64" >&6; }
7103 else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108
7109 fi
7110 if test -z "$ac_cv_prog_OTOOL64"; then
7111 ac_ct_OTOOL64=$OTOOL64
7112 # Extract the first word of "otool64", so it can be a program name with args.
7113 set dummy otool64; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 if test -n "$ac_ct_OTOOL64"; then
7120 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_OTOOL64="otool64"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7140 if test -n "$ac_ct_OTOOL64"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7142 $as_echo "$ac_ct_OTOOL64" >&6; }
7143 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148 if test "x$ac_ct_OTOOL64" = x; then
7149 OTOOL64=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155 ac_tool_warned=yes ;;
7156 esac
7157 OTOOL64=$ac_ct_OTOOL64
7158 fi
7159 else
7160 OTOOL64="$ac_cv_prog_OTOOL64"
7161 fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7190 $as_echo_n "checking for -single_module linker flag... " >&6; }
7191 if ${lt_cv_apple_cc_single_mod+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 lt_cv_apple_cc_single_mod=no
7195 if test -z "$LT_MULTI_MODULE"; then
7196 # By default we will add the -single_module flag. You can override
7197 # by either setting the environment variable LT_MULTI_MODULE
7198 # non-empty at configure time, or by adding -multi_module to the
7199 # link flags.
7200 rm -rf libconftest.dylib*
7201 echo "int foo(void){return 1;}" > conftest.c
7202 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7203 -dynamiclib -Wl,-single_module conftest.c" >&5
7204 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7205 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7206 _lt_result=$?
7207 # If there is a non-empty error log, and "single_module"
7208 # appears in it, assume the flag caused a linker warning
7209 if test -s conftest.err && $GREP single_module conftest.err; then
7210 cat conftest.err >&5
7211 # Otherwise, if the output was created with a 0 exit code from
7212 # the compiler, it worked.
7213 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7214 lt_cv_apple_cc_single_mod=yes
7215 else
7216 cat conftest.err >&5
7217 fi
7218 rm -rf libconftest.dylib*
7219 rm -f conftest.*
7220 fi
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7223 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7226 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7227 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 lt_cv_ld_exported_symbols_list=no
7231 save_LDFLAGS=$LDFLAGS
7232 echo "_main" > conftest.sym
7233 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236
7237 int
7238 main ()
7239 {
7240
7241 ;
7242 return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_link "$LINENO"; then :
7246 lt_cv_ld_exported_symbols_list=yes
7247 else
7248 lt_cv_ld_exported_symbols_list=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 LDFLAGS=$save_LDFLAGS
7253
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7256 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7259 $as_echo_n "checking for -force_load linker flag... " >&6; }
7260 if ${lt_cv_ld_force_load+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 lt_cv_ld_force_load=no
7264 cat > conftest.c << _LT_EOF
7265 int forced_loaded() { return 2;}
7266 _LT_EOF
7267 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7268 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7269 echo "$AR cru libconftest.a conftest.o" >&5
7270 $AR cru libconftest.a conftest.o 2>&5
7271 echo "$RANLIB libconftest.a" >&5
7272 $RANLIB libconftest.a 2>&5
7273 cat > conftest.c << _LT_EOF
7274 int main() { return 0;}
7275 _LT_EOF
7276 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7277 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7278 _lt_result=$?
7279 if test -s conftest.err && $GREP force_load conftest.err; then
7280 cat conftest.err >&5
7281 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7282 lt_cv_ld_force_load=yes
7283 else
7284 cat conftest.err >&5
7285 fi
7286 rm -f conftest.err libconftest.a conftest conftest.c
7287 rm -rf conftest.dSYM
7288
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7291 $as_echo "$lt_cv_ld_force_load" >&6; }
7292 case $host_os in
7293 rhapsody* | darwin1.[012])
7294 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7295 darwin1.*)
7296 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7297 darwin*) # darwin 5.x on
7298 # if running on 10.5 or later, the deployment target defaults
7299 # to the OS version, if on x86, and 10.4, the deployment
7300 # target defaults to 10.4. Don't you love it?
7301 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7302 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7303 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7304 10.[012][,.]*)
7305 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7306 10.*)
7307 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7308 esac
7309 ;;
7310 esac
7311 if test yes = "$lt_cv_apple_cc_single_mod"; then
7312 _lt_dar_single_mod='$single_module'
7313 fi
7314 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7315 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7316 else
7317 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7318 fi
7319 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7320 _lt_dsymutil='~$DSYMUTIL $lib || :'
7321 else
7322 _lt_dsymutil=
7323 fi
7324 ;;
7325 esac
7326
7327 # func_munge_path_list VARIABLE PATH
7328 # -----------------------------------
7329 # VARIABLE is name of variable containing _space_ separated list of
7330 # directories to be munged by the contents of PATH, which is string
7331 # having a format:
7332 # "DIR[:DIR]:"
7333 # string "DIR[ DIR]" will be prepended to VARIABLE
7334 # ":DIR[:DIR]"
7335 # string "DIR[ DIR]" will be appended to VARIABLE
7336 # "DIRP[:DIRP]::[DIRA:]DIRA"
7337 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7338 # "DIRA[ DIRA]" will be appended to VARIABLE
7339 # "DIR[:DIR]"
7340 # VARIABLE will be replaced by "DIR[ DIR]"
7341 func_munge_path_list ()
7342 {
7343 case x$2 in
7344 x)
7345 ;;
7346 *:)
7347 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7348 ;;
7349 x:*)
7350 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7351 ;;
7352 *::*)
7353 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7354 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7355 ;;
7356 *)
7357 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7358 ;;
7359 esac
7360 }
7361
7362 ac_ext=c
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7368 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7369 # On Suns, sometimes $CPP names a directory.
7370 if test -n "$CPP" && test -d "$CPP"; then
7371 CPP=
7372 fi
7373 if test -z "$CPP"; then
7374 if ${ac_cv_prog_CPP+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 # Double quotes because CPP needs to be expanded
7378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7379 do
7380 ac_preproc_ok=false
7381 for ac_c_preproc_warn_flag in '' yes
7382 do
7383 # Use a header file that comes with gcc, so configuring glibc
7384 # with a fresh cross-compiler works.
7385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7386 # <limits.h> exists even on freestanding compilers.
7387 # On the NeXT, cc -E runs the code through the compiler's parser,
7388 # not just through cpp. "Syntax error" is here to catch this case.
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 #ifdef __STDC__
7392 # include <limits.h>
7393 #else
7394 # include <assert.h>
7395 #endif
7396 Syntax error
7397 _ACEOF
7398 if ac_fn_c_try_cpp "$LINENO"; then :
7399
7400 else
7401 # Broken: fails on valid input.
7402 continue
7403 fi
7404 rm -f conftest.err conftest.i conftest.$ac_ext
7405
7406 # OK, works on sane cases. Now check whether nonexistent headers
7407 # can be detected and how.
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 #include <ac_nonexistent.h>
7411 _ACEOF
7412 if ac_fn_c_try_cpp "$LINENO"; then :
7413 # Broken: success on invalid input.
7414 continue
7415 else
7416 # Passes both tests.
7417 ac_preproc_ok=:
7418 break
7419 fi
7420 rm -f conftest.err conftest.i conftest.$ac_ext
7421
7422 done
7423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7424 rm -f conftest.i conftest.err conftest.$ac_ext
7425 if $ac_preproc_ok; then :
7426 break
7427 fi
7428
7429 done
7430 ac_cv_prog_CPP=$CPP
7431
7432 fi
7433 CPP=$ac_cv_prog_CPP
7434 else
7435 ac_cv_prog_CPP=$CPP
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7438 $as_echo "$CPP" >&6; }
7439 ac_preproc_ok=false
7440 for ac_c_preproc_warn_flag in '' yes
7441 do
7442 # Use a header file that comes with gcc, so configuring glibc
7443 # with a fresh cross-compiler works.
7444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7445 # <limits.h> exists even on freestanding compilers.
7446 # On the NeXT, cc -E runs the code through the compiler's parser,
7447 # not just through cpp. "Syntax error" is here to catch this case.
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 #ifdef __STDC__
7451 # include <limits.h>
7452 #else
7453 # include <assert.h>
7454 #endif
7455 Syntax error
7456 _ACEOF
7457 if ac_fn_c_try_cpp "$LINENO"; then :
7458
7459 else
7460 # Broken: fails on valid input.
7461 continue
7462 fi
7463 rm -f conftest.err conftest.i conftest.$ac_ext
7464
7465 # OK, works on sane cases. Now check whether nonexistent headers
7466 # can be detected and how.
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 #include <ac_nonexistent.h>
7470 _ACEOF
7471 if ac_fn_c_try_cpp "$LINENO"; then :
7472 # Broken: success on invalid input.
7473 continue
7474 else
7475 # Passes both tests.
7476 ac_preproc_ok=:
7477 break
7478 fi
7479 rm -f conftest.err conftest.i conftest.$ac_ext
7480
7481 done
7482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7483 rm -f conftest.i conftest.err conftest.$ac_ext
7484 if $ac_preproc_ok; then :
7485
7486 else
7487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7489 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7490 See \`config.log' for more details" "$LINENO" 5; }
7491 fi
7492
7493 ac_ext=c
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498
7499
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7501 $as_echo_n "checking for ANSI C header files... " >&6; }
7502 if ${ac_cv_header_stdc+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <stdlib.h>
7508 #include <stdarg.h>
7509 #include <string.h>
7510 #include <float.h>
7511
7512 int
7513 main ()
7514 {
7515
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521 ac_cv_header_stdc=yes
7522 else
7523 ac_cv_header_stdc=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526
7527 if test $ac_cv_header_stdc = yes; then
7528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <string.h>
7532
7533 _ACEOF
7534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535 $EGREP "memchr" >/dev/null 2>&1; then :
7536
7537 else
7538 ac_cv_header_stdc=no
7539 fi
7540 rm -f conftest*
7541
7542 fi
7543
7544 if test $ac_cv_header_stdc = yes; then
7545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 #include <stdlib.h>
7549
7550 _ACEOF
7551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7552 $EGREP "free" >/dev/null 2>&1; then :
7553
7554 else
7555 ac_cv_header_stdc=no
7556 fi
7557 rm -f conftest*
7558
7559 fi
7560
7561 if test $ac_cv_header_stdc = yes; then
7562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7563 if test "$cross_compiling" = yes; then :
7564 :
7565 else
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 #include <ctype.h>
7569 #include <stdlib.h>
7570 #if ((' ' & 0x0FF) == 0x020)
7571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7573 #else
7574 # define ISLOWER(c) \
7575 (('a' <= (c) && (c) <= 'i') \
7576 || ('j' <= (c) && (c) <= 'r') \
7577 || ('s' <= (c) && (c) <= 'z'))
7578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7579 #endif
7580
7581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7582 int
7583 main ()
7584 {
7585 int i;
7586 for (i = 0; i < 256; i++)
7587 if (XOR (islower (i), ISLOWER (i))
7588 || toupper (i) != TOUPPER (i))
7589 return 2;
7590 return 0;
7591 }
7592 _ACEOF
7593 if ac_fn_c_try_run "$LINENO"; then :
7594
7595 else
7596 ac_cv_header_stdc=no
7597 fi
7598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7599 conftest.$ac_objext conftest.beam conftest.$ac_ext
7600 fi
7601
7602 fi
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7605 $as_echo "$ac_cv_header_stdc" >&6; }
7606 if test $ac_cv_header_stdc = yes; then
7607
7608 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7609
7610 fi
7611
7612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7614 inttypes.h stdint.h unistd.h
7615 do :
7616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7617 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7618 "
7619 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7620 cat >>confdefs.h <<_ACEOF
7621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7622 _ACEOF
7623
7624 fi
7625
7626 done
7627
7628
7629 for ac_header in dlfcn.h
7630 do :
7631 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7632 "
7633 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7634 cat >>confdefs.h <<_ACEOF
7635 #define HAVE_DLFCN_H 1
7636 _ACEOF
7637
7638 fi
7639
7640 done
7641
7642
7643
7644
7645
7646 # Set options
7647
7648
7649
7650 enable_dlopen=no
7651
7652
7653 enable_win32_dll=no
7654
7655
7656 # Check whether --enable-shared was given.
7657 if test "${enable_shared+set}" = set; then :
7658 enableval=$enable_shared; p=${PACKAGE-default}
7659 case $enableval in
7660 yes) enable_shared=yes ;;
7661 no) enable_shared=no ;;
7662 *)
7663 enable_shared=no
7664 # Look at the argument we got. We use all the common list separators.
7665 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7666 for pkg in $enableval; do
7667 IFS=$lt_save_ifs
7668 if test "X$pkg" = "X$p"; then
7669 enable_shared=yes
7670 fi
7671 done
7672 IFS=$lt_save_ifs
7673 ;;
7674 esac
7675 else
7676 enable_shared=yes
7677 fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 # Check whether --enable-static was given.
7688 if test "${enable_static+set}" = set; then :
7689 enableval=$enable_static; p=${PACKAGE-default}
7690 case $enableval in
7691 yes) enable_static=yes ;;
7692 no) enable_static=no ;;
7693 *)
7694 enable_static=no
7695 # Look at the argument we got. We use all the common list separators.
7696 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7697 for pkg in $enableval; do
7698 IFS=$lt_save_ifs
7699 if test "X$pkg" = "X$p"; then
7700 enable_static=yes
7701 fi
7702 done
7703 IFS=$lt_save_ifs
7704 ;;
7705 esac
7706 else
7707 enable_static=yes
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719 # Check whether --with-pic was given.
7720 if test "${with_pic+set}" = set; then :
7721 withval=$with_pic; lt_p=${PACKAGE-default}
7722 case $withval in
7723 yes|no) pic_mode=$withval ;;
7724 *)
7725 pic_mode=default
7726 # Look at the argument we got. We use all the common list separators.
7727 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7728 for lt_pkg in $withval; do
7729 IFS=$lt_save_ifs
7730 if test "X$lt_pkg" = "X$lt_p"; then
7731 pic_mode=yes
7732 fi
7733 done
7734 IFS=$lt_save_ifs
7735 ;;
7736 esac
7737 else
7738 pic_mode=default
7739 fi
7740
7741
7742
7743
7744
7745
7746
7747
7748 # Check whether --enable-fast-install was given.
7749 if test "${enable_fast_install+set}" = set; then :
7750 enableval=$enable_fast_install; p=${PACKAGE-default}
7751 case $enableval in
7752 yes) enable_fast_install=yes ;;
7753 no) enable_fast_install=no ;;
7754 *)
7755 enable_fast_install=no
7756 # Look at the argument we got. We use all the common list separators.
7757 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7758 for pkg in $enableval; do
7759 IFS=$lt_save_ifs
7760 if test "X$pkg" = "X$p"; then
7761 enable_fast_install=yes
7762 fi
7763 done
7764 IFS=$lt_save_ifs
7765 ;;
7766 esac
7767 else
7768 enable_fast_install=yes
7769 fi
7770
7771
7772
7773
7774
7775
7776
7777
7778 shared_archive_member_spec=
7779 case $host,$enable_shared in
7780 power*-*-aix[5-9]*,yes)
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7782 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7783
7784 # Check whether --with-aix-soname was given.
7785 if test "${with_aix_soname+set}" = set; then :
7786 withval=$with_aix_soname; case $withval in
7787 aix|svr4|both)
7788 ;;
7789 *)
7790 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7791 ;;
7792 esac
7793 lt_cv_with_aix_soname=$with_aix_soname
7794 else
7795 if ${lt_cv_with_aix_soname+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 lt_cv_with_aix_soname=aix
7799 fi
7800
7801 with_aix_soname=$lt_cv_with_aix_soname
7802 fi
7803
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7805 $as_echo "$with_aix_soname" >&6; }
7806 if test aix != "$with_aix_soname"; then
7807 # For the AIX way of multilib, we name the shared archive member
7808 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7809 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7810 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7811 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7812 if test 64 = "${OBJECT_MODE-32}"; then
7813 shared_archive_member_spec=shr_64
7814 else
7815 shared_archive_member_spec=shr
7816 fi
7817 fi
7818 ;;
7819 *)
7820 with_aix_soname=aix
7821 ;;
7822 esac
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 # This can be used to rebuild libtool when needed
7834 LIBTOOL_DEPS=$ltmain
7835
7836 # Always use our own libtool.
7837 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868 test -z "$LN_S" && LN_S="ln -s"
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883 if test -n "${ZSH_VERSION+set}"; then
7884 setopt NO_GLOB_SUBST
7885 fi
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7888 $as_echo_n "checking for objdir... " >&6; }
7889 if ${lt_cv_objdir+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 rm -f .libs 2>/dev/null
7893 mkdir .libs 2>/dev/null
7894 if test -d .libs; then
7895 lt_cv_objdir=.libs
7896 else
7897 # MS-DOS does not allow filenames that begin with a dot.
7898 lt_cv_objdir=_libs
7899 fi
7900 rmdir .libs 2>/dev/null
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7903 $as_echo "$lt_cv_objdir" >&6; }
7904 objdir=$lt_cv_objdir
7905
7906
7907
7908
7909
7910 cat >>confdefs.h <<_ACEOF
7911 #define LT_OBJDIR "$lt_cv_objdir/"
7912 _ACEOF
7913
7914
7915
7916
7917 case $host_os in
7918 aix3*)
7919 # AIX sometimes has problems with the GCC collect2 program. For some
7920 # reason, if we set the COLLECT_NAMES environment variable, the problems
7921 # vanish in a puff of smoke.
7922 if test set != "${COLLECT_NAMES+set}"; then
7923 COLLECT_NAMES=
7924 export COLLECT_NAMES
7925 fi
7926 ;;
7927 esac
7928
7929 # Global variables:
7930 ofile=libtool
7931 can_build_shared=yes
7932
7933 # All known linkers require a '.a' archive for static linking (except MSVC,
7934 # which needs '.lib').
7935 libext=a
7936
7937 with_gnu_ld=$lt_cv_prog_gnu_ld
7938
7939 old_CC=$CC
7940 old_CFLAGS=$CFLAGS
7941
7942 # Set sane defaults for various variables
7943 test -z "$CC" && CC=cc
7944 test -z "$LTCC" && LTCC=$CC
7945 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7946 test -z "$LD" && LD=ld
7947 test -z "$ac_objext" && ac_objext=o
7948
7949 func_cc_basename $compiler
7950 cc_basename=$func_cc_basename_result
7951
7952
7953 # Only perform the check for file, if the check method requires it
7954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7955 case $deplibs_check_method in
7956 file_magic*)
7957 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7959 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7960 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 case $MAGIC_CMD in
7964 [\\/*] | ?:[\\/]*)
7965 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7966 ;;
7967 *)
7968 lt_save_MAGIC_CMD=$MAGIC_CMD
7969 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7971 for ac_dir in $ac_dummy; do
7972 IFS=$lt_save_ifs
7973 test -z "$ac_dir" && ac_dir=.
7974 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7975 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7976 if test -n "$file_magic_test_file"; then
7977 case $deplibs_check_method in
7978 "file_magic "*)
7979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7980 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7982 $EGREP "$file_magic_regex" > /dev/null; then
7983 :
7984 else
7985 cat <<_LT_EOF 1>&2
7986
7987 *** Warning: the command libtool uses to detect shared libraries,
7988 *** $file_magic_cmd, produces output that libtool cannot recognize.
7989 *** The result is that libtool may fail to recognize shared libraries
7990 *** as such. This will affect the creation of libtool libraries that
7991 *** depend on shared libraries, but programs linked with such libtool
7992 *** libraries will work regardless of this problem. Nevertheless, you
7993 *** may want to report the problem to your system manager and/or to
7994 *** bug-libtool (at] gnu.org
7995
7996 _LT_EOF
7997 fi ;;
7998 esac
7999 fi
8000 break
8001 fi
8002 done
8003 IFS=$lt_save_ifs
8004 MAGIC_CMD=$lt_save_MAGIC_CMD
8005 ;;
8006 esac
8007 fi
8008
8009 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8010 if test -n "$MAGIC_CMD"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8012 $as_echo "$MAGIC_CMD" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018
8019
8020
8021
8022 if test -z "$lt_cv_path_MAGIC_CMD"; then
8023 if test -n "$ac_tool_prefix"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8025 $as_echo_n "checking for file... " >&6; }
8026 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 case $MAGIC_CMD in
8030 [\\/*] | ?:[\\/]*)
8031 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8032 ;;
8033 *)
8034 lt_save_MAGIC_CMD=$MAGIC_CMD
8035 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8037 for ac_dir in $ac_dummy; do
8038 IFS=$lt_save_ifs
8039 test -z "$ac_dir" && ac_dir=.
8040 if test -f "$ac_dir/file"; then
8041 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8042 if test -n "$file_magic_test_file"; then
8043 case $deplibs_check_method in
8044 "file_magic "*)
8045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8046 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8048 $EGREP "$file_magic_regex" > /dev/null; then
8049 :
8050 else
8051 cat <<_LT_EOF 1>&2
8052
8053 *** Warning: the command libtool uses to detect shared libraries,
8054 *** $file_magic_cmd, produces output that libtool cannot recognize.
8055 *** The result is that libtool may fail to recognize shared libraries
8056 *** as such. This will affect the creation of libtool libraries that
8057 *** depend on shared libraries, but programs linked with such libtool
8058 *** libraries will work regardless of this problem. Nevertheless, you
8059 *** may want to report the problem to your system manager and/or to
8060 *** bug-libtool (at] gnu.org
8061
8062 _LT_EOF
8063 fi ;;
8064 esac
8065 fi
8066 break
8067 fi
8068 done
8069 IFS=$lt_save_ifs
8070 MAGIC_CMD=$lt_save_MAGIC_CMD
8071 ;;
8072 esac
8073 fi
8074
8075 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8076 if test -n "$MAGIC_CMD"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8078 $as_echo "$MAGIC_CMD" >&6; }
8079 else
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084
8085 else
8086 MAGIC_CMD=:
8087 fi
8088 fi
8089
8090 fi
8091 ;;
8092 esac
8093
8094 # Use C for the default configuration in the libtool script
8095
8096 lt_save_CC=$CC
8097 ac_ext=c
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103
8104 # Source file extension for C test sources.
8105 ac_ext=c
8106
8107 # Object file extension for compiled C test sources.
8108 objext=o
8109 objext=$objext
8110
8111 # Code to be used in simple compile tests
8112 lt_simple_compile_test_code="int some_variable = 0;"
8113
8114 # Code to be used in simple link tests
8115 lt_simple_link_test_code='int main(){return(0);}'
8116
8117
8118
8119
8120
8121
8122
8123 # If no C compiler was specified, use CC.
8124 LTCC=${LTCC-"$CC"}
8125
8126 # If no C compiler flags were specified, use CFLAGS.
8127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8128
8129 # Allow CC to be a program name with arguments.
8130 compiler=$CC
8131
8132 # Save the default compiler, since it gets overwritten when the other
8133 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8134 compiler_DEFAULT=$CC
8135
8136 # save warnings/boilerplate of simple test code
8137 ac_outfile=conftest.$ac_objext
8138 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8140 _lt_compiler_boilerplate=`cat conftest.err`
8141 $RM conftest*
8142
8143 ac_outfile=conftest.$ac_objext
8144 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8146 _lt_linker_boilerplate=`cat conftest.err`
8147 $RM -r conftest*
8148
8149
8150 if test -n "$compiler"; then
8151
8152 lt_prog_compiler_no_builtin_flag=
8153
8154 if test yes = "$GCC"; then
8155 case $cc_basename in
8156 nvcc*)
8157 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8158 *)
8159 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8160 esac
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8163 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8164 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 lt_cv_prog_compiler_rtti_exceptions=no
8168 ac_outfile=conftest.$ac_objext
8169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8170 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8171 # Insert the option either (1) after the last *FLAGS variable, or
8172 # (2) before a word containing "conftest.", or (3) at the end.
8173 # Note that $ac_compile itself does not contain backslashes and begins
8174 # with a dollar sign (not a hyphen), so the echo should work correctly.
8175 # The option is referenced via a variable to avoid confusing sed.
8176 lt_compile=`echo "$ac_compile" | $SED \
8177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8179 -e 's:$: $lt_compiler_flag:'`
8180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8181 (eval "$lt_compile" 2>conftest.err)
8182 ac_status=$?
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 if (exit $ac_status) && test -s "$ac_outfile"; then
8186 # The compiler can only warn and ignore the option if not recognized
8187 # So say no if there are warnings other than the usual output.
8188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8191 lt_cv_prog_compiler_rtti_exceptions=yes
8192 fi
8193 fi
8194 $RM conftest*
8195
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8198 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8199
8200 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8201 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8202 else
8203 :
8204 fi
8205
8206 fi
8207
8208
8209
8210
8211
8212
8213 lt_prog_compiler_wl=
8214 lt_prog_compiler_pic=
8215 lt_prog_compiler_static=
8216
8217
8218 if test yes = "$GCC"; then
8219 lt_prog_compiler_wl='-Wl,'
8220 lt_prog_compiler_static='-static'
8221
8222 case $host_os in
8223 aix*)
8224 # All AIX code is PIC.
8225 if test ia64 = "$host_cpu"; then
8226 # AIX 5 now supports IA64 processor
8227 lt_prog_compiler_static='-Bstatic'
8228 fi
8229 lt_prog_compiler_pic='-fPIC'
8230 ;;
8231
8232 amigaos*)
8233 case $host_cpu in
8234 powerpc)
8235 # see comment about AmigaOS4 .so support
8236 lt_prog_compiler_pic='-fPIC'
8237 ;;
8238 m68k)
8239 # FIXME: we need at least 68020 code to build shared libraries, but
8240 # adding the '-m68020' flag to GCC prevents building anything better,
8241 # like '-m68040'.
8242 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8243 ;;
8244 esac
8245 ;;
8246
8247 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8248 # PIC is the default for these OSes.
8249 ;;
8250
8251 mingw* | cygwin* | pw32* | os2* | cegcc*)
8252 # This hack is so that the source file can tell whether it is being
8253 # built for inclusion in a dll (and should export symbols for example).
8254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8255 # (--disable-auto-import) libraries
8256 lt_prog_compiler_pic='-DDLL_EXPORT'
8257 case $host_os in
8258 os2*)
8259 lt_prog_compiler_static='$wl-static'
8260 ;;
8261 esac
8262 ;;
8263
8264 darwin* | rhapsody*)
8265 # PIC is the default on this platform
8266 # Common symbols not allowed in MH_DYLIB files
8267 lt_prog_compiler_pic='-fno-common'
8268 ;;
8269
8270 haiku*)
8271 # PIC is the default for Haiku.
8272 # The "-static" flag exists, but is broken.
8273 lt_prog_compiler_static=
8274 ;;
8275
8276 hpux*)
8277 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8278 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8279 # sets the default TLS model and affects inlining.
8280 case $host_cpu in
8281 hppa*64*)
8282 # +Z the default
8283 ;;
8284 *)
8285 lt_prog_compiler_pic='-fPIC'
8286 ;;
8287 esac
8288 ;;
8289
8290 interix[3-9]*)
8291 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8292 # Instead, we relocate shared libraries at runtime.
8293 ;;
8294
8295 msdosdjgpp*)
8296 # Just because we use GCC doesn't mean we suddenly get shared libraries
8297 # on systems that don't support them.
8298 lt_prog_compiler_can_build_shared=no
8299 enable_shared=no
8300 ;;
8301
8302 *nto* | *qnx*)
8303 # QNX uses GNU C++, but need to define -shared option too, otherwise
8304 # it will coredump.
8305 lt_prog_compiler_pic='-fPIC -shared'
8306 ;;
8307
8308 sysv4*MP*)
8309 if test -d /usr/nec; then
8310 lt_prog_compiler_pic=-Kconform_pic
8311 fi
8312 ;;
8313
8314 *)
8315 lt_prog_compiler_pic='-fPIC'
8316 ;;
8317 esac
8318
8319 case $cc_basename in
8320 nvcc*) # Cuda Compiler Driver 2.2
8321 lt_prog_compiler_wl='-Xlinker '
8322 if test -n "$lt_prog_compiler_pic"; then
8323 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8324 fi
8325 ;;
8326 esac
8327 else
8328 # PORTME Check for flag to pass linker flags through the system compiler.
8329 case $host_os in
8330 aix*)
8331 lt_prog_compiler_wl='-Wl,'
8332 if test ia64 = "$host_cpu"; then
8333 # AIX 5 now supports IA64 processor
8334 lt_prog_compiler_static='-Bstatic'
8335 else
8336 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8337 fi
8338 ;;
8339
8340 darwin* | rhapsody*)
8341 # PIC is the default on this platform
8342 # Common symbols not allowed in MH_DYLIB files
8343 lt_prog_compiler_pic='-fno-common'
8344 case $cc_basename in
8345 nagfor*)
8346 # NAG Fortran compiler
8347 lt_prog_compiler_wl='-Wl,-Wl,,'
8348 lt_prog_compiler_pic='-PIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 ;;
8351 esac
8352 ;;
8353
8354 mingw* | cygwin* | pw32* | os2* | cegcc*)
8355 # This hack is so that the source file can tell whether it is being
8356 # built for inclusion in a dll (and should export symbols for example).
8357 lt_prog_compiler_pic='-DDLL_EXPORT'
8358 case $host_os in
8359 os2*)
8360 lt_prog_compiler_static='$wl-static'
8361 ;;
8362 esac
8363 ;;
8364
8365 hpux9* | hpux10* | hpux11*)
8366 lt_prog_compiler_wl='-Wl,'
8367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8368 # not for PA HP-UX.
8369 case $host_cpu in
8370 hppa*64*|ia64*)
8371 # +Z the default
8372 ;;
8373 *)
8374 lt_prog_compiler_pic='+Z'
8375 ;;
8376 esac
8377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8378 lt_prog_compiler_static='$wl-a ${wl}archive'
8379 ;;
8380
8381 irix5* | irix6* | nonstopux*)
8382 lt_prog_compiler_wl='-Wl,'
8383 # PIC (with -KPIC) is the default.
8384 lt_prog_compiler_static='-non_shared'
8385 ;;
8386
8387 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8388 case $cc_basename in
8389 # old Intel for x86_64, which still supported -KPIC.
8390 ecc*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-static'
8394 ;;
8395 # icc used to be incompatible with GCC.
8396 # ICC 10 doesn't accept -KPIC any more.
8397 icc* | ifort*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-fPIC'
8400 lt_prog_compiler_static='-static'
8401 ;;
8402 # Lahey Fortran 8.1.
8403 lf95*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='--shared'
8406 lt_prog_compiler_static='--static'
8407 ;;
8408 nagfor*)
8409 # NAG Fortran compiler
8410 lt_prog_compiler_wl='-Wl,-Wl,,'
8411 lt_prog_compiler_pic='-PIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 ;;
8414 tcc*)
8415 # Fabrice Bellard et al's Tiny C Compiler
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-fPIC'
8418 lt_prog_compiler_static='-static'
8419 ;;
8420 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8421 # Portland Group compilers (*not* the Pentium gcc compiler,
8422 # which looks to be a dead project)
8423 lt_prog_compiler_wl='-Wl,'
8424 lt_prog_compiler_pic='-fpic'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427 ccc*)
8428 lt_prog_compiler_wl='-Wl,'
8429 # All Alpha code is PIC.
8430 lt_prog_compiler_static='-non_shared'
8431 ;;
8432 xl* | bgxl* | bgf* | mpixl*)
8433 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='-qpic'
8436 lt_prog_compiler_static='-qstaticlink'
8437 ;;
8438 *)
8439 case `$CC -V 2>&1 | sed 5q` in
8440 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8441 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 lt_prog_compiler_wl=''
8445 ;;
8446 *Sun\ F* | *Sun*Fortran*)
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 lt_prog_compiler_wl='-Qoption ld '
8450 ;;
8451 *Sun\ C*)
8452 # Sun C 5.9
8453 lt_prog_compiler_pic='-KPIC'
8454 lt_prog_compiler_static='-Bstatic'
8455 lt_prog_compiler_wl='-Wl,'
8456 ;;
8457 *Intel*\ [CF]*Compiler*)
8458 lt_prog_compiler_wl='-Wl,'
8459 lt_prog_compiler_pic='-fPIC'
8460 lt_prog_compiler_static='-static'
8461 ;;
8462 *Portland\ Group*)
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_pic='-fpic'
8465 lt_prog_compiler_static='-Bstatic'
8466 ;;
8467 esac
8468 ;;
8469 esac
8470 ;;
8471
8472 newsos6)
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-Bstatic'
8475 ;;
8476
8477 *nto* | *qnx*)
8478 # QNX uses GNU C++, but need to define -shared option too, otherwise
8479 # it will coredump.
8480 lt_prog_compiler_pic='-fPIC -shared'
8481 ;;
8482
8483 osf3* | osf4* | osf5*)
8484 lt_prog_compiler_wl='-Wl,'
8485 # All OSF/1 code is PIC.
8486 lt_prog_compiler_static='-non_shared'
8487 ;;
8488
8489 rdos*)
8490 lt_prog_compiler_static='-non_shared'
8491 ;;
8492
8493 solaris*)
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-Bstatic'
8496 case $cc_basename in
8497 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8498 lt_prog_compiler_wl='-Qoption ld ';;
8499 *)
8500 lt_prog_compiler_wl='-Wl,';;
8501 esac
8502 ;;
8503
8504 sunos4*)
8505 lt_prog_compiler_wl='-Qoption ld '
8506 lt_prog_compiler_pic='-PIC'
8507 lt_prog_compiler_static='-Bstatic'
8508 ;;
8509
8510 sysv4 | sysv4.2uw2* | sysv4.3*)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-KPIC'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
8515
8516 sysv4*MP*)
8517 if test -d /usr/nec; then
8518 lt_prog_compiler_pic='-Kconform_pic'
8519 lt_prog_compiler_static='-Bstatic'
8520 fi
8521 ;;
8522
8523 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 ;;
8528
8529 unicos*)
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_can_build_shared=no
8532 ;;
8533
8534 uts4*)
8535 lt_prog_compiler_pic='-pic'
8536 lt_prog_compiler_static='-Bstatic'
8537 ;;
8538
8539 *)
8540 lt_prog_compiler_can_build_shared=no
8541 ;;
8542 esac
8543 fi
8544
8545 case $host_os in
8546 # For platforms that do not support PIC, -DPIC is meaningless:
8547 *djgpp*)
8548 lt_prog_compiler_pic=
8549 ;;
8550 *)
8551 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8552 ;;
8553 esac
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8556 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8557 if ${lt_cv_prog_compiler_pic+:} false; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8561 fi
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8563 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8564 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8565
8566 #
8567 # Check to make sure the PIC flag actually works.
8568 #
8569 if test -n "$lt_prog_compiler_pic"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8571 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8572 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 lt_cv_prog_compiler_pic_works=no
8576 ac_outfile=conftest.$ac_objext
8577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8578 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8579 # Insert the option either (1) after the last *FLAGS variable, or
8580 # (2) before a word containing "conftest.", or (3) at the end.
8581 # Note that $ac_compile itself does not contain backslashes and begins
8582 # with a dollar sign (not a hyphen), so the echo should work correctly.
8583 # The option is referenced via a variable to avoid confusing sed.
8584 lt_compile=`echo "$ac_compile" | $SED \
8585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8587 -e 's:$: $lt_compiler_flag:'`
8588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8589 (eval "$lt_compile" 2>conftest.err)
8590 ac_status=$?
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 if (exit $ac_status) && test -s "$ac_outfile"; then
8594 # The compiler can only warn and ignore the option if not recognized
8595 # So say no if there are warnings other than the usual output.
8596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8598 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8599 lt_cv_prog_compiler_pic_works=yes
8600 fi
8601 fi
8602 $RM conftest*
8603
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8606 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8607
8608 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8609 case $lt_prog_compiler_pic in
8610 "" | " "*) ;;
8611 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8612 esac
8613 else
8614 lt_prog_compiler_pic=
8615 lt_prog_compiler_can_build_shared=no
8616 fi
8617
8618 fi
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630 #
8631 # Check to make sure the static flag actually works.
8632 #
8633 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8635 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8636 if ${lt_cv_prog_compiler_static_works+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 lt_cv_prog_compiler_static_works=no
8640 save_LDFLAGS=$LDFLAGS
8641 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8644 # The linker can only warn and ignore the option if not recognized
8645 # So say no if there are warnings
8646 if test -s conftest.err; then
8647 # Append any errors to the config.log.
8648 cat conftest.err 1>&5
8649 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8651 if diff conftest.exp conftest.er2 >/dev/null; then
8652 lt_cv_prog_compiler_static_works=yes
8653 fi
8654 else
8655 lt_cv_prog_compiler_static_works=yes
8656 fi
8657 fi
8658 $RM -r conftest*
8659 LDFLAGS=$save_LDFLAGS
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8663 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8664
8665 if test yes = "$lt_cv_prog_compiler_static_works"; then
8666 :
8667 else
8668 lt_prog_compiler_static=
8669 fi
8670
8671
8672
8673
8674
8675
8676
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8679 if ${lt_cv_prog_compiler_c_o+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 lt_cv_prog_compiler_c_o=no
8683 $RM -r conftest 2>/dev/null
8684 mkdir conftest
8685 cd conftest
8686 mkdir out
8687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688
8689 lt_compiler_flag="-o out/conftest2.$ac_objext"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 lt_compile=`echo "$ac_compile" | $SED \
8695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697 -e 's:$: $lt_compiler_flag:'`
8698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8699 (eval "$lt_compile" 2>out/conftest.err)
8700 ac_status=$?
8701 cat out/conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8704 then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings
8707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_c_o=yes
8711 fi
8712 fi
8713 chmod u+w . 2>&5
8714 $RM conftest*
8715 # SGI C++ compiler will create directory out/ii_files/ for
8716 # template instantiation
8717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8718 $RM out/* && rmdir out
8719 cd ..
8720 $RM -r conftest
8721 $RM conftest*
8722
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8725 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8726
8727
8728
8729
8730
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8734 if ${lt_cv_prog_compiler_c_o+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 lt_cv_prog_compiler_c_o=no
8738 $RM -r conftest 2>/dev/null
8739 mkdir conftest
8740 cd conftest
8741 mkdir out
8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743
8744 lt_compiler_flag="-o out/conftest2.$ac_objext"
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 lt_compile=`echo "$ac_compile" | $SED \
8750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752 -e 's:$: $lt_compiler_flag:'`
8753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8754 (eval "$lt_compile" 2>out/conftest.err)
8755 ac_status=$?
8756 cat out/conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8759 then
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings
8762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_c_o=yes
8766 fi
8767 fi
8768 chmod u+w . 2>&5
8769 $RM conftest*
8770 # SGI C++ compiler will create directory out/ii_files/ for
8771 # template instantiation
8772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8773 $RM out/* && rmdir out
8774 cd ..
8775 $RM -r conftest
8776 $RM conftest*
8777
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8780 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8781
8782
8783
8784
8785 hard_links=nottested
8786 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8787 # do not overwrite the value of need_locks provided by the user
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8789 $as_echo_n "checking if we can lock with hard links... " >&6; }
8790 hard_links=yes
8791 $RM conftest*
8792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8793 touch conftest.a
8794 ln conftest.a conftest.b 2>&5 || hard_links=no
8795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8797 $as_echo "$hard_links" >&6; }
8798 if test no = "$hard_links"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8800 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8801 need_locks=warn
8802 fi
8803 else
8804 need_locks=no
8805 fi
8806
8807
8808
8809
8810
8811
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8813 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8814
8815 runpath_var=
8816 allow_undefined_flag=
8817 always_export_symbols=no
8818 archive_cmds=
8819 archive_expsym_cmds=
8820 compiler_needs_object=no
8821 enable_shared_with_static_runtimes=no
8822 export_dynamic_flag_spec=
8823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8824 hardcode_automatic=no
8825 hardcode_direct=no
8826 hardcode_direct_absolute=no
8827 hardcode_libdir_flag_spec=
8828 hardcode_libdir_separator=
8829 hardcode_minus_L=no
8830 hardcode_shlibpath_var=unsupported
8831 inherit_rpath=no
8832 link_all_deplibs=unknown
8833 module_cmds=
8834 module_expsym_cmds=
8835 old_archive_from_new_cmds=
8836 old_archive_from_expsyms_cmds=
8837 thread_safe_flag_spec=
8838 whole_archive_flag_spec=
8839 # include_expsyms should be a list of space-separated symbols to be *always*
8840 # included in the symbol list
8841 include_expsyms=
8842 # exclude_expsyms can be an extended regexp of symbols to exclude
8843 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8844 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8845 # as well as any symbol that contains 'd'.
8846 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8848 # platforms (ab)use it in PIC code, but their linkers get confused if
8849 # the symbol is explicitly referenced. Since portable code cannot
8850 # rely on this symbol name, it's probably fine to never include it in
8851 # preloaded symbol tables.
8852 # Exclude shared library initialization/finalization symbols.
8853 extract_expsyms_cmds=
8854
8855 case $host_os in
8856 cygwin* | mingw* | pw32* | cegcc*)
8857 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8858 # When not using gcc, we currently assume that we are using
8859 # Microsoft Visual C++.
8860 if test yes != "$GCC"; then
8861 with_gnu_ld=no
8862 fi
8863 ;;
8864 interix*)
8865 # we just hope/assume this is gcc and not c89 (= MSVC++)
8866 with_gnu_ld=yes
8867 ;;
8868 openbsd* | bitrig*)
8869 with_gnu_ld=no
8870 ;;
8871 esac
8872
8873 ld_shlibs=yes
8874
8875 # On some targets, GNU ld is compatible enough with the native linker
8876 # that we're better off using the native interface for both.
8877 lt_use_gnu_ld_interface=no
8878 if test yes = "$with_gnu_ld"; then
8879 case $host_os in
8880 aix*)
8881 # The AIX port of GNU ld has always aspired to compatibility
8882 # with the native linker. However, as the warning in the GNU ld
8883 # block says, versions before 2.19.5* couldn't really create working
8884 # shared libraries, regardless of the interface used.
8885 case `$LD -v 2>&1` in
8886 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8887 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8888 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8889 *)
8890 lt_use_gnu_ld_interface=yes
8891 ;;
8892 esac
8893 ;;
8894 *)
8895 lt_use_gnu_ld_interface=yes
8896 ;;
8897 esac
8898 fi
8899
8900 if test yes = "$lt_use_gnu_ld_interface"; then
8901 # If archive_cmds runs LD, not CC, wlarc should be empty
8902 wlarc='$wl'
8903
8904 # Set some defaults for GNU ld with shared library support. These
8905 # are reset later if shared libraries are not supported. Putting them
8906 # here allows them to be overridden if necessary.
8907 runpath_var=LD_RUN_PATH
8908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8909 export_dynamic_flag_spec='$wl--export-dynamic'
8910 # ancient GNU ld didn't support --whole-archive et. al.
8911 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8912 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8913 else
8914 whole_archive_flag_spec=
8915 fi
8916 supports_anon_versioning=no
8917 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8918 *GNU\ gold*) supports_anon_versioning=yes ;;
8919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8922 *\ 2.11.*) ;; # other 2.11 versions
8923 *) supports_anon_versioning=yes ;;
8924 esac
8925
8926 # See if GNU ld supports shared libraries.
8927 case $host_os in
8928 aix[3-9]*)
8929 # On AIX/PPC, the GNU linker is very broken
8930 if test ia64 != "$host_cpu"; then
8931 ld_shlibs=no
8932 cat <<_LT_EOF 1>&2
8933
8934 *** Warning: the GNU linker, at least up to release 2.19, is reported
8935 *** to be unable to reliably create shared libraries on AIX.
8936 *** Therefore, libtool is disabling shared libraries support. If you
8937 *** really care for shared libraries, you may want to install binutils
8938 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8939 *** You will then need to restart the configuration process.
8940
8941 _LT_EOF
8942 fi
8943 ;;
8944
8945 amigaos*)
8946 case $host_cpu in
8947 powerpc)
8948 # see comment about AmigaOS4 .so support
8949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8950 archive_expsym_cmds=''
8951 ;;
8952 m68k)
8953 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)'
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8956 ;;
8957 esac
8958 ;;
8959
8960 beos*)
8961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962 allow_undefined_flag=unsupported
8963 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8964 # support --undefined. This deserves some investigation. FIXME
8965 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8966 else
8967 ld_shlibs=no
8968 fi
8969 ;;
8970
8971 cygwin* | mingw* | pw32* | cegcc*)
8972 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8973 # as there is no search path for DLLs.
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 export_dynamic_flag_spec='$wl--export-all-symbols'
8976 allow_undefined_flag=unsupported
8977 always_export_symbols=no
8978 enable_shared_with_static_runtimes=yes
8979 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'
8980 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8981
8982 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8984 # If the export-symbols file already is a .def file, use it as
8985 # is; otherwise, prepend EXPORTS...
8986 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8987 cp $export_symbols $output_objdir/$soname.def;
8988 else
8989 echo EXPORTS > $output_objdir/$soname.def;
8990 cat $export_symbols >> $output_objdir/$soname.def;
8991 fi~
8992 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8993 else
8994 ld_shlibs=no
8995 fi
8996 ;;
8997
8998 haiku*)
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9000 link_all_deplibs=yes
9001 ;;
9002
9003 os2*)
9004 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_minus_L=yes
9006 allow_undefined_flag=unsupported
9007 shrext_cmds=.dll
9008 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9009 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9010 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9011 $ECHO EXPORTS >> $output_objdir/$libname.def~
9012 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9013 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9014 emximp -o $lib $output_objdir/$libname.def'
9015 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9016 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9017 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9018 $ECHO EXPORTS >> $output_objdir/$libname.def~
9019 prefix_cmds="$SED"~
9020 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9021 prefix_cmds="$prefix_cmds -e 1d";
9022 fi~
9023 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9024 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9025 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9026 emximp -o $lib $output_objdir/$libname.def'
9027 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9028 enable_shared_with_static_runtimes=yes
9029 ;;
9030
9031 interix[3-9]*)
9032 hardcode_direct=no
9033 hardcode_shlibpath_var=no
9034 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9035 export_dynamic_flag_spec='$wl-E'
9036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9037 # Instead, shared libraries are loaded at an image base (0x10000000 by
9038 # default) and relocated if they conflict, which is a slow very memory
9039 # consuming and fragmenting process. To avoid this, we pick a random,
9040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9043 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'
9044 ;;
9045
9046 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9047 tmp_diet=no
9048 if test linux-dietlibc = "$host_os"; then
9049 case $cc_basename in
9050 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9051 esac
9052 fi
9053 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9054 && test no = "$tmp_diet"
9055 then
9056 tmp_addflag=' $pic_flag'
9057 tmp_sharedflag='-shared'
9058 case $cc_basename,$host_cpu in
9059 pgcc*) # Portland Group C compiler
9060 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'
9061 tmp_addflag=' $pic_flag'
9062 ;;
9063 pgf77* | pgf90* | pgf95* | pgfortran*)
9064 # Portland Group f77 and f90 compilers
9065 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'
9066 tmp_addflag=' $pic_flag -Mnomain' ;;
9067 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9068 tmp_addflag=' -i_dynamic' ;;
9069 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9070 tmp_addflag=' -i_dynamic -nofor_main' ;;
9071 ifc* | ifort*) # Intel Fortran compiler
9072 tmp_addflag=' -nofor_main' ;;
9073 lf95*) # Lahey Fortran 8.1
9074 whole_archive_flag_spec=
9075 tmp_sharedflag='--shared' ;;
9076 nagfor*) # NAGFOR 5.3
9077 tmp_sharedflag='-Wl,-shared' ;;
9078 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9079 tmp_sharedflag='-qmkshrobj'
9080 tmp_addflag= ;;
9081 nvcc*) # Cuda Compiler Driver 2.2
9082 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'
9083 compiler_needs_object=yes
9084 ;;
9085 esac
9086 case `$CC -V 2>&1 | sed 5q` in
9087 *Sun\ C*) # Sun C 5.9
9088 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'
9089 compiler_needs_object=yes
9090 tmp_sharedflag='-G' ;;
9091 *Sun\ F*) # Sun Fortran 8.3
9092 tmp_sharedflag='-G' ;;
9093 esac
9094 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9095
9096 if test yes = "$supports_anon_versioning"; then
9097 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9099 echo "local: *; };" >> $output_objdir/$libname.ver~
9100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9101 fi
9102
9103 case $cc_basename in
9104 tcc*)
9105 export_dynamic_flag_spec='-rdynamic'
9106 ;;
9107 xlf* | bgf* | bgxlf* | mpixlf*)
9108 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9109 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9110 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9111 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9112 if test yes = "$supports_anon_versioning"; then
9113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9115 echo "local: *; };" >> $output_objdir/$libname.ver~
9116 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9117 fi
9118 ;;
9119 esac
9120 else
9121 ld_shlibs=no
9122 fi
9123 ;;
9124
9125 netbsd*)
9126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9128 wlarc=
9129 else
9130 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9131 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9132 fi
9133 ;;
9134
9135 solaris*)
9136 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9137 ld_shlibs=no
9138 cat <<_LT_EOF 1>&2
9139
9140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9141 *** create shared libraries on Solaris systems. Therefore, libtool
9142 *** is disabling shared libraries support. We urge you to upgrade GNU
9143 *** binutils to release 2.9.1 or newer. Another option is to modify
9144 *** your PATH or compiler configuration so that the native linker is
9145 *** used, and then restart.
9146
9147 _LT_EOF
9148 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9150 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9151 else
9152 ld_shlibs=no
9153 fi
9154 ;;
9155
9156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9157 case `$LD -v 2>&1` in
9158 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9159 ld_shlibs=no
9160 cat <<_LT_EOF 1>&2
9161
9162 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9163 *** reliably create shared libraries on SCO systems. Therefore, libtool
9164 *** is disabling shared libraries support. We urge you to upgrade GNU
9165 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9166 *** your PATH or compiler configuration so that the native linker is
9167 *** used, and then restart.
9168
9169 _LT_EOF
9170 ;;
9171 *)
9172 # For security reasons, it is highly recommended that you always
9173 # use absolute paths for naming shared libraries, and exclude the
9174 # DT_RUNPATH tag from executables and libraries. But doing so
9175 # requires that you compile everything twice, which is a pain.
9176 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9177 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9180 else
9181 ld_shlibs=no
9182 fi
9183 ;;
9184 esac
9185 ;;
9186
9187 sunos4*)
9188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9189 wlarc=
9190 hardcode_direct=yes
9191 hardcode_shlibpath_var=no
9192 ;;
9193
9194 *)
9195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9196 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9197 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9198 else
9199 ld_shlibs=no
9200 fi
9201 ;;
9202 esac
9203
9204 if test no = "$ld_shlibs"; then
9205 runpath_var=
9206 hardcode_libdir_flag_spec=
9207 export_dynamic_flag_spec=
9208 whole_archive_flag_spec=
9209 fi
9210 else
9211 # PORTME fill in a description of your system's linker (not GNU ld)
9212 case $host_os in
9213 aix3*)
9214 allow_undefined_flag=unsupported
9215 always_export_symbols=yes
9216 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'
9217 # Note: this linker hardcodes the directories in LIBPATH if there
9218 # are no directories specified by -L.
9219 hardcode_minus_L=yes
9220 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9221 # Neither direct hardcoding nor static linking is supported with a
9222 # broken collect2.
9223 hardcode_direct=unsupported
9224 fi
9225 ;;
9226
9227 aix[4-9]*)
9228 if test ia64 = "$host_cpu"; then
9229 # On IA64, the linker does run time linking by default, so we don't
9230 # have to do anything special.
9231 aix_use_runtimelinking=no
9232 exp_sym_flag='-Bexport'
9233 no_entry_flag=
9234 else
9235 # If we're using GNU nm, then we don't want the "-C" option.
9236 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9237 # Without the "-l" option, or with the "-B" option, AIX nm treats
9238 # weak defined symbols like other global defined symbols, whereas
9239 # GNU nm marks them as "W".
9240 # While the 'weak' keyword is ignored in the Export File, we need
9241 # it in the Import File for the 'aix-soname' feature, so we have
9242 # to replace the "-B" option with "-P" for AIX nm.
9243 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9244 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9245 else
9246 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9247 fi
9248 aix_use_runtimelinking=no
9249
9250 # Test if we are trying to use run time linking or normal
9251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9252 # have runtime linking enabled, and use it for executables.
9253 # For shared libraries, we enable/disable runtime linking
9254 # depending on the kind of the shared library created -
9255 # when "with_aix_soname,aix_use_runtimelinking" is:
9256 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9257 # "aix,yes" lib.so shared, rtl:yes, for executables
9258 # lib.a static archive
9259 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9260 # lib.a(lib.so.V) shared, rtl:no, for executables
9261 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9262 # lib.a(lib.so.V) shared, rtl:no
9263 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9264 # lib.a static archive
9265 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9266 for ld_flag in $LDFLAGS; do
9267 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9268 aix_use_runtimelinking=yes
9269 break
9270 fi
9271 done
9272 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9273 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9274 # so we don't have lib.a shared libs to link our executables.
9275 # We have to force runtime linking in this case.
9276 aix_use_runtimelinking=yes
9277 LDFLAGS="$LDFLAGS -Wl,-brtl"
9278 fi
9279 ;;
9280 esac
9281
9282 exp_sym_flag='-bexport'
9283 no_entry_flag='-bnoentry'
9284 fi
9285
9286 # When large executables or shared objects are built, AIX ld can
9287 # have problems creating the table of contents. If linking a library
9288 # or program results in "error TOC overflow" add -mminimal-toc to
9289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9291
9292 archive_cmds=''
9293 hardcode_direct=yes
9294 hardcode_direct_absolute=yes
9295 hardcode_libdir_separator=':'
9296 link_all_deplibs=yes
9297 file_list_spec='$wl-f,'
9298 case $with_aix_soname,$aix_use_runtimelinking in
9299 aix,*) ;; # traditional, no import file
9300 svr4,* | *,yes) # use import file
9301 # The Import File defines what to hardcode.
9302 hardcode_direct=no
9303 hardcode_direct_absolute=no
9304 ;;
9305 esac
9306
9307 if test yes = "$GCC"; then
9308 case $host_os in aix4.[012]|aix4.[012].*)
9309 # We only want to do this on AIX 4.2 and lower, the check
9310 # below for broken collect2 doesn't work under 4.3+
9311 collect2name=`$CC -print-prog-name=collect2`
9312 if test -f "$collect2name" &&
9313 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9314 then
9315 # We have reworked collect2
9316 :
9317 else
9318 # We have old collect2
9319 hardcode_direct=unsupported
9320 # It fails to find uninstalled libraries when the uninstalled
9321 # path is not listed in the libpath. Setting hardcode_minus_L
9322 # to unsupported forces relinking
9323 hardcode_minus_L=yes
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_libdir_separator=
9326 fi
9327 ;;
9328 esac
9329 shared_flag='-shared'
9330 if test yes = "$aix_use_runtimelinking"; then
9331 shared_flag="$shared_flag "'$wl-G'
9332 fi
9333 # Need to ensure runtime linking is disabled for the traditional
9334 # shared library, or the linker may eventually find shared libraries
9335 # /with/ Import File - we do not want to mix them.
9336 shared_flag_aix='-shared'
9337 shared_flag_svr4='-shared $wl-G'
9338 else
9339 # not using gcc
9340 if test ia64 = "$host_cpu"; then
9341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9342 # chokes on -Wl,-G. The following line is correct:
9343 shared_flag='-G'
9344 else
9345 if test yes = "$aix_use_runtimelinking"; then
9346 shared_flag='$wl-G'
9347 else
9348 shared_flag='$wl-bM:SRE'
9349 fi
9350 shared_flag_aix='$wl-bM:SRE'
9351 shared_flag_svr4='$wl-G'
9352 fi
9353 fi
9354
9355 export_dynamic_flag_spec='$wl-bexpall'
9356 # It seems that -bexpall does not export symbols beginning with
9357 # underscore (_), so it is better to generate a list of symbols to export.
9358 always_export_symbols=yes
9359 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9360 # Warning - without using the other runtime loading flags (-brtl),
9361 # -berok will link without error, but may produce a broken library.
9362 allow_undefined_flag='-berok'
9363 # Determine the default libpath from the value encoded in an
9364 # empty executable.
9365 if test set = "${lt_cv_aix_libpath+set}"; then
9366 aix_libpath=$lt_cv_aix_libpath
9367 else
9368 if ${lt_cv_aix_libpath_+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373
9374 int
9375 main ()
9376 {
9377
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383
9384 lt_aix_libpath_sed='
9385 /Import File Strings/,/^$/ {
9386 /^0/ {
9387 s/^0 *\([^ ]*\) *$/\1/
9388 p
9389 }
9390 }'
9391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9392 # Check for a 64-bit object if we didn't find anything.
9393 if test -z "$lt_cv_aix_libpath_"; then
9394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9395 fi
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 if test -z "$lt_cv_aix_libpath_"; then
9400 lt_cv_aix_libpath_=/usr/lib:/lib
9401 fi
9402
9403 fi
9404
9405 aix_libpath=$lt_cv_aix_libpath_
9406 fi
9407
9408 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9409 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9410 else
9411 if test ia64 = "$host_cpu"; then
9412 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9413 allow_undefined_flag="-z nodefs"
9414 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"
9415 else
9416 # Determine the default libpath from the value encoded in an
9417 # empty executable.
9418 if test set = "${lt_cv_aix_libpath+set}"; then
9419 aix_libpath=$lt_cv_aix_libpath
9420 else
9421 if ${lt_cv_aix_libpath_+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426
9427 int
9428 main ()
9429 {
9430
9431 ;
9432 return 0;
9433 }
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436
9437 lt_aix_libpath_sed='
9438 /Import File Strings/,/^$/ {
9439 /^0/ {
9440 s/^0 *\([^ ]*\) *$/\1/
9441 p
9442 }
9443 }'
9444 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445 # Check for a 64-bit object if we didn't find anything.
9446 if test -z "$lt_cv_aix_libpath_"; then
9447 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448 fi
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 if test -z "$lt_cv_aix_libpath_"; then
9453 lt_cv_aix_libpath_=/usr/lib:/lib
9454 fi
9455
9456 fi
9457
9458 aix_libpath=$lt_cv_aix_libpath_
9459 fi
9460
9461 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9462 # Warning - without using the other run time loading flags,
9463 # -berok will link without error, but may produce a broken library.
9464 no_undefined_flag=' $wl-bernotok'
9465 allow_undefined_flag=' $wl-berok'
9466 if test yes = "$with_gnu_ld"; then
9467 # We only use this code for GNU lds that support --whole-archive.
9468 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9469 else
9470 # Exported symbols can be pulled into shared objects from archives
9471 whole_archive_flag_spec='$convenience'
9472 fi
9473 archive_cmds_need_lc=yes
9474 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9475 # -brtl affects multiple linker settings, -berok does not and is overridden later
9476 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9477 if test svr4 != "$with_aix_soname"; then
9478 # This is similar to how AIX traditionally builds its shared libraries.
9479 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9480 fi
9481 if test aix != "$with_aix_soname"; then
9482 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9483 else
9484 # used by -dlpreopen to get the symbols
9485 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9486 fi
9487 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9488 fi
9489 fi
9490 ;;
9491
9492 amigaos*)
9493 case $host_cpu in
9494 powerpc)
9495 # see comment about AmigaOS4 .so support
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9497 archive_expsym_cmds=''
9498 ;;
9499 m68k)
9500 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)'
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_minus_L=yes
9503 ;;
9504 esac
9505 ;;
9506
9507 bsdi[45]*)
9508 export_dynamic_flag_spec=-rdynamic
9509 ;;
9510
9511 cygwin* | mingw* | pw32* | cegcc*)
9512 # When not using gcc, we currently assume that we are using
9513 # Microsoft Visual C++.
9514 # hardcode_libdir_flag_spec is actually meaningless, as there is
9515 # no search path for DLLs.
9516 case $cc_basename in
9517 cl*)
9518 # Native MSVC
9519 hardcode_libdir_flag_spec=' '
9520 allow_undefined_flag=unsupported
9521 always_export_symbols=yes
9522 file_list_spec='@'
9523 # Tell ltmain to make .lib files, not .a files.
9524 libext=lib
9525 # Tell ltmain to make .dll files, not .so files.
9526 shrext_cmds=.dll
9527 # FIXME: Setting linknames here is a bad hack.
9528 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9529 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9530 cp "$export_symbols" "$output_objdir/$soname.def";
9531 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9532 else
9533 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9534 fi~
9535 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9536 linknames='
9537 # The linker will not automatically build a static lib if we build a DLL.
9538 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9539 enable_shared_with_static_runtimes=yes
9540 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9541 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9542 # Don't use ranlib
9543 old_postinstall_cmds='chmod 644 $oldlib'
9544 postlink_cmds='lt_outputfile="@OUTPUT@"~
9545 lt_tool_outputfile="@TOOL_OUTPUT@"~
9546 case $lt_outputfile in
9547 *.exe|*.EXE) ;;
9548 *)
9549 lt_outputfile=$lt_outputfile.exe
9550 lt_tool_outputfile=$lt_tool_outputfile.exe
9551 ;;
9552 esac~
9553 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9554 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9555 $RM "$lt_outputfile.manifest";
9556 fi'
9557 ;;
9558 *)
9559 # Assume MSVC wrapper
9560 hardcode_libdir_flag_spec=' '
9561 allow_undefined_flag=unsupported
9562 # Tell ltmain to make .lib files, not .a files.
9563 libext=lib
9564 # Tell ltmain to make .dll files, not .so files.
9565 shrext_cmds=.dll
9566 # FIXME: Setting linknames here is a bad hack.
9567 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9568 # The linker will automatically build a .lib file if we build a DLL.
9569 old_archive_from_new_cmds='true'
9570 # FIXME: Should let the user specify the lib program.
9571 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9572 enable_shared_with_static_runtimes=yes
9573 ;;
9574 esac
9575 ;;
9576
9577 darwin* | rhapsody*)
9578
9579
9580 archive_cmds_need_lc=no
9581 hardcode_direct=no
9582 hardcode_automatic=yes
9583 hardcode_shlibpath_var=unsupported
9584 if test yes = "$lt_cv_ld_force_load"; then
9585 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\"`'
9586
9587 else
9588 whole_archive_flag_spec=''
9589 fi
9590 link_all_deplibs=yes
9591 allow_undefined_flag=$_lt_dar_allow_undefined
9592 case $cc_basename in
9593 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9594 *) _lt_dar_can_shared=$GCC ;;
9595 esac
9596 if test yes = "$_lt_dar_can_shared"; then
9597 output_verbose_link_cmd=func_echo_all
9598 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9599 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9600 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"
9601 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"
9602
9603 else
9604 ld_shlibs=no
9605 fi
9606
9607 ;;
9608
9609 dgux*)
9610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_libdir_flag_spec='-L$libdir'
9612 hardcode_shlibpath_var=no
9613 ;;
9614
9615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9616 # support. Future versions do this automatically, but an explicit c++rt0.o
9617 # does not break anything, and helps significantly (at the cost of a little
9618 # extra space).
9619 freebsd2.2*)
9620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9621 hardcode_libdir_flag_spec='-R$libdir'
9622 hardcode_direct=yes
9623 hardcode_shlibpath_var=no
9624 ;;
9625
9626 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9627 freebsd2.*)
9628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9629 hardcode_direct=yes
9630 hardcode_minus_L=yes
9631 hardcode_shlibpath_var=no
9632 ;;
9633
9634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9635 freebsd* | dragonfly*)
9636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_direct=yes
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 hpux9*)
9643 if test yes = "$GCC"; then
9644 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9645 else
9646 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9647 fi
9648 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9649 hardcode_libdir_separator=:
9650 hardcode_direct=yes
9651
9652 # hardcode_minus_L: Not really in the search PATH,
9653 # but as the default location of the library.
9654 hardcode_minus_L=yes
9655 export_dynamic_flag_spec='$wl-E'
9656 ;;
9657
9658 hpux10*)
9659 if test yes,no = "$GCC,$with_gnu_ld"; then
9660 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9661 else
9662 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9663 fi
9664 if test no = "$with_gnu_ld"; then
9665 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9666 hardcode_libdir_separator=:
9667 hardcode_direct=yes
9668 hardcode_direct_absolute=yes
9669 export_dynamic_flag_spec='$wl-E'
9670 # hardcode_minus_L: Not really in the search PATH,
9671 # but as the default location of the library.
9672 hardcode_minus_L=yes
9673 fi
9674 ;;
9675
9676 hpux11*)
9677 if test yes,no = "$GCC,$with_gnu_ld"; then
9678 case $host_cpu in
9679 hppa*64*)
9680 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 ;;
9682 ia64*)
9683 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9684 ;;
9685 *)
9686 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9687 ;;
9688 esac
9689 else
9690 case $host_cpu in
9691 hppa*64*)
9692 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 ;;
9694 ia64*)
9695 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696 ;;
9697 *)
9698
9699 # Older versions of the 11.00 compiler do not understand -b yet
9700 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9702 $as_echo_n "checking if $CC understands -b... " >&6; }
9703 if ${lt_cv_prog_compiler__b+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 lt_cv_prog_compiler__b=no
9707 save_LDFLAGS=$LDFLAGS
9708 LDFLAGS="$LDFLAGS -b"
9709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9711 # The linker can only warn and ignore the option if not recognized
9712 # So say no if there are warnings
9713 if test -s conftest.err; then
9714 # Append any errors to the config.log.
9715 cat conftest.err 1>&5
9716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9718 if diff conftest.exp conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler__b=yes
9720 fi
9721 else
9722 lt_cv_prog_compiler__b=yes
9723 fi
9724 fi
9725 $RM -r conftest*
9726 LDFLAGS=$save_LDFLAGS
9727
9728 fi
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9730 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9731
9732 if test yes = "$lt_cv_prog_compiler__b"; then
9733 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734 else
9735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9736 fi
9737
9738 ;;
9739 esac
9740 fi
9741 if test no = "$with_gnu_ld"; then
9742 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9743 hardcode_libdir_separator=:
9744
9745 case $host_cpu in
9746 hppa*64*|ia64*)
9747 hardcode_direct=no
9748 hardcode_shlibpath_var=no
9749 ;;
9750 *)
9751 hardcode_direct=yes
9752 hardcode_direct_absolute=yes
9753 export_dynamic_flag_spec='$wl-E'
9754
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9758 ;;
9759 esac
9760 fi
9761 ;;
9762
9763 irix5* | irix6* | nonstopux*)
9764 if test yes = "$GCC"; then
9765 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'
9766 # Try to use the -exported_symbol ld option, if it does not
9767 # work, assume that -exports_file does not work either and
9768 # implicitly export all symbols.
9769 # This should be the same for all languages, so no per-tag cache variable.
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9771 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9772 if ${lt_cv_irix_exported_symbol+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 save_LDFLAGS=$LDFLAGS
9776 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int foo (void) { return 0; }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782 lt_cv_irix_exported_symbol=yes
9783 else
9784 lt_cv_irix_exported_symbol=no
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 LDFLAGS=$save_LDFLAGS
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9791 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9792 if test yes = "$lt_cv_irix_exported_symbol"; then
9793 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'
9794 fi
9795 else
9796 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'
9797 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'
9798 fi
9799 archive_cmds_need_lc='no'
9800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9801 hardcode_libdir_separator=:
9802 inherit_rpath=yes
9803 link_all_deplibs=yes
9804 ;;
9805
9806 linux*)
9807 case $cc_basename in
9808 tcc*)
9809 # Fabrice Bellard et al's Tiny C Compiler
9810 ld_shlibs=yes
9811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9812 ;;
9813 esac
9814 ;;
9815
9816 netbsd*)
9817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9819 else
9820 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9821 fi
9822 hardcode_libdir_flag_spec='-R$libdir'
9823 hardcode_direct=yes
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 newsos6)
9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_direct=yes
9830 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9831 hardcode_libdir_separator=:
9832 hardcode_shlibpath_var=no
9833 ;;
9834
9835 *nto* | *qnx*)
9836 ;;
9837
9838 openbsd* | bitrig*)
9839 if test -f /usr/libexec/ld.so; then
9840 hardcode_direct=yes
9841 hardcode_shlibpath_var=no
9842 hardcode_direct_absolute=yes
9843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9846 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9847 export_dynamic_flag_spec='$wl-E'
9848 else
9849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9850 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9851 fi
9852 else
9853 ld_shlibs=no
9854 fi
9855 ;;
9856
9857 os2*)
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_minus_L=yes
9860 allow_undefined_flag=unsupported
9861 shrext_cmds=.dll
9862 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9865 $ECHO EXPORTS >> $output_objdir/$libname.def~
9866 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9867 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9868 emximp -o $lib $output_objdir/$libname.def'
9869 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9870 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9871 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9872 $ECHO EXPORTS >> $output_objdir/$libname.def~
9873 prefix_cmds="$SED"~
9874 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9875 prefix_cmds="$prefix_cmds -e 1d";
9876 fi~
9877 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9878 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9880 emximp -o $lib $output_objdir/$libname.def'
9881 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9882 enable_shared_with_static_runtimes=yes
9883 ;;
9884
9885 osf3*)
9886 if test yes = "$GCC"; then
9887 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9888 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'
9889 else
9890 allow_undefined_flag=' -expect_unresolved \*'
9891 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'
9892 fi
9893 archive_cmds_need_lc='no'
9894 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9895 hardcode_libdir_separator=:
9896 ;;
9897
9898 osf4* | osf5*) # as osf3* with the addition of -msym flag
9899 if test yes = "$GCC"; then
9900 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9901 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'
9902 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9903 else
9904 allow_undefined_flag=' -expect_unresolved \*'
9905 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'
9906 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~
9907 $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'
9908
9909 # Both c and cxx compiler support -rpath directly
9910 hardcode_libdir_flag_spec='-rpath $libdir'
9911 fi
9912 archive_cmds_need_lc='no'
9913 hardcode_libdir_separator=:
9914 ;;
9915
9916 solaris*)
9917 no_undefined_flag=' -z defs'
9918 if test yes = "$GCC"; then
9919 wlarc='$wl'
9920 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9922 $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'
9923 else
9924 case `$CC -V 2>&1` in
9925 *"Compilers 5.0"*)
9926 wlarc=''
9927 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9930 ;;
9931 *)
9932 wlarc='$wl'
9933 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9936 ;;
9937 esac
9938 fi
9939 hardcode_libdir_flag_spec='-R$libdir'
9940 hardcode_shlibpath_var=no
9941 case $host_os in
9942 solaris2.[0-5] | solaris2.[0-5].*) ;;
9943 *)
9944 # The compiler driver will combine and reorder linker options,
9945 # but understands '-z linker_flag'. GCC discards it without '$wl',
9946 # but is careful enough not to reorder.
9947 # Supported since Solaris 2.6 (maybe 2.5.1?)
9948 if test yes = "$GCC"; then
9949 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9950 else
9951 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9952 fi
9953 ;;
9954 esac
9955 link_all_deplibs=yes
9956 ;;
9957
9958 sunos4*)
9959 if test sequent = "$host_vendor"; then
9960 # Use $CC to link under sequent, because it throws in some extra .o
9961 # files that make .init and .fini sections work.
9962 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9963 else
9964 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9965 fi
9966 hardcode_libdir_flag_spec='-L$libdir'
9967 hardcode_direct=yes
9968 hardcode_minus_L=yes
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 sysv4)
9973 case $host_vendor in
9974 sni)
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_direct=yes # is this really true???
9977 ;;
9978 siemens)
9979 ## LD is ld it makes a PLAMLIB
9980 ## CC just makes a GrossModule.
9981 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9982 reload_cmds='$CC -r -o $output$reload_objs'
9983 hardcode_direct=no
9984 ;;
9985 motorola)
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9988 ;;
9989 esac
9990 runpath_var='LD_RUN_PATH'
9991 hardcode_shlibpath_var=no
9992 ;;
9993
9994 sysv4.3*)
9995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996 hardcode_shlibpath_var=no
9997 export_dynamic_flag_spec='-Bexport'
9998 ;;
9999
10000 sysv4*MP*)
10001 if test -d /usr/nec; then
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_shlibpath_var=no
10004 runpath_var=LD_RUN_PATH
10005 hardcode_runpath_var=yes
10006 ld_shlibs=yes
10007 fi
10008 ;;
10009
10010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10011 no_undefined_flag='$wl-z,text'
10012 archive_cmds_need_lc=no
10013 hardcode_shlibpath_var=no
10014 runpath_var='LD_RUN_PATH'
10015
10016 if test yes = "$GCC"; then
10017 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 else
10020 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 fi
10023 ;;
10024
10025 sysv5* | sco3.2v5* | sco5v6*)
10026 # Note: We CANNOT use -z defs as we might desire, because we do not
10027 # link with -lc, and that would cause any symbols used from libc to
10028 # always be unresolved, which means just about no library would
10029 # ever link correctly. If we're not using GNU ld we use -z text
10030 # though, which does catch some bad symbols but isn't as heavy-handed
10031 # as -z defs.
10032 no_undefined_flag='$wl-z,text'
10033 allow_undefined_flag='$wl-z,nodefs'
10034 archive_cmds_need_lc=no
10035 hardcode_shlibpath_var=no
10036 hardcode_libdir_flag_spec='$wl-R,$libdir'
10037 hardcode_libdir_separator=':'
10038 link_all_deplibs=yes
10039 export_dynamic_flag_spec='$wl-Bexport'
10040 runpath_var='LD_RUN_PATH'
10041
10042 if test yes = "$GCC"; then
10043 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 else
10046 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 fi
10049 ;;
10050
10051 uts4*)
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_libdir_flag_spec='-L$libdir'
10054 hardcode_shlibpath_var=no
10055 ;;
10056
10057 *)
10058 ld_shlibs=no
10059 ;;
10060 esac
10061
10062 if test sni = "$host_vendor"; then
10063 case $host in
10064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10065 export_dynamic_flag_spec='$wl-Blargedynsym'
10066 ;;
10067 esac
10068 fi
10069 fi
10070
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10072 $as_echo "$ld_shlibs" >&6; }
10073 test no = "$ld_shlibs" && can_build_shared=no
10074
10075 with_gnu_ld=$with_gnu_ld
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091 #
10092 # Do we need to explicitly link libc?
10093 #
10094 case "x$archive_cmds_need_lc" in
10095 x|xyes)
10096 # Assume -lc should be added
10097 archive_cmds_need_lc=yes
10098
10099 if test yes,yes = "$GCC,$enable_shared"; then
10100 case $archive_cmds in
10101 *'~'*)
10102 # FIXME: we may have to deal with multi-command sequences.
10103 ;;
10104 '$CC '*)
10105 # Test whether the compiler implicitly links with -lc since on some
10106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10107 # to ld, don't add -lc before -lgcc.
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10109 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10110 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 $RM conftest*
10114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10115
10116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10117 (eval $ac_compile) 2>&5
10118 ac_status=$?
10119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120 test $ac_status = 0; } 2>conftest.err; then
10121 soname=conftest
10122 lib=conftest
10123 libobjs=conftest.$ac_objext
10124 deplibs=
10125 wl=$lt_prog_compiler_wl
10126 pic_flag=$lt_prog_compiler_pic
10127 compiler_flags=-v
10128 linker_flags=-v
10129 verstring=
10130 output_objdir=.
10131 libname=conftest
10132 lt_save_allow_undefined_flag=$allow_undefined_flag
10133 allow_undefined_flag=
10134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10135 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10136 ac_status=$?
10137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10138 test $ac_status = 0; }
10139 then
10140 lt_cv_archive_cmds_need_lc=no
10141 else
10142 lt_cv_archive_cmds_need_lc=yes
10143 fi
10144 allow_undefined_flag=$lt_save_allow_undefined_flag
10145 else
10146 cat conftest.err 1>&5
10147 fi
10148 $RM conftest*
10149
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10152 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10153 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10154 ;;
10155 esac
10156 fi
10157 ;;
10158 esac
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10312 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10313
10314 if test yes = "$GCC"; then
10315 case $host_os in
10316 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10317 *) lt_awk_arg='/^libraries:/' ;;
10318 esac
10319 case $host_os in
10320 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10321 *) lt_sed_strip_eq='s|=/|/|g' ;;
10322 esac
10323 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10324 case $lt_search_path_spec in
10325 *\;*)
10326 # if the path contains ";" then we assume it to be the separator
10327 # otherwise default to the standard path separator (i.e. ":") - it is
10328 # assumed that no part of a normal pathname contains ";" but that should
10329 # okay in the real world where ";" in dirpaths is itself problematic.
10330 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10331 ;;
10332 *)
10333 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10334 ;;
10335 esac
10336 # Ok, now we have the path, separated by spaces, we can step through it
10337 # and add multilib dir if necessary...
10338 lt_tmp_lt_search_path_spec=
10339 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10340 # ...but if some path component already ends with the multilib dir we assume
10341 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10342 case "$lt_multi_os_dir; $lt_search_path_spec " in
10343 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10344 lt_multi_os_dir=
10345 ;;
10346 esac
10347 for lt_sys_path in $lt_search_path_spec; do
10348 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10349 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10350 elif test -n "$lt_multi_os_dir"; then
10351 test -d "$lt_sys_path" && \
10352 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10353 fi
10354 done
10355 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10356 BEGIN {RS = " "; FS = "/|\n";} {
10357 lt_foo = "";
10358 lt_count = 0;
10359 for (lt_i = NF; lt_i > 0; lt_i--) {
10360 if ($lt_i != "" && $lt_i != ".") {
10361 if ($lt_i == "..") {
10362 lt_count++;
10363 } else {
10364 if (lt_count == 0) {
10365 lt_foo = "/" $lt_i lt_foo;
10366 } else {
10367 lt_count--;
10368 }
10369 }
10370 }
10371 }
10372 if (lt_foo != "") { lt_freq[lt_foo]++; }
10373 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10374 }'`
10375 # AWK program above erroneously prepends '/' to C:/dos/paths
10376 # for these hosts.
10377 case $host_os in
10378 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10379 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10380 esac
10381 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10382 else
10383 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10384 fi
10385 library_names_spec=
10386 libname_spec='lib$name'
10387 soname_spec=
10388 shrext_cmds=.so
10389 postinstall_cmds=
10390 postuninstall_cmds=
10391 finish_cmds=
10392 finish_eval=
10393 shlibpath_var=
10394 shlibpath_overrides_runpath=unknown
10395 version_type=none
10396 dynamic_linker="$host_os ld.so"
10397 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10398 need_lib_prefix=unknown
10399 hardcode_into_libs=no
10400
10401 # when you set need_version to no, make sure it does not cause -set_version
10402 # flags to be left without arguments
10403 need_version=unknown
10404
10405
10406
10407 case $host_os in
10408 aix3*)
10409 version_type=linux # correct to gnu/linux during the next big refactor
10410 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10411 shlibpath_var=LIBPATH
10412
10413 # AIX 3 has no versioning support, so we append a major version to the name.
10414 soname_spec='$libname$release$shared_ext$major'
10415 ;;
10416
10417 aix[4-9]*)
10418 version_type=linux # correct to gnu/linux during the next big refactor
10419 need_lib_prefix=no
10420 need_version=no
10421 hardcode_into_libs=yes
10422 if test ia64 = "$host_cpu"; then
10423 # AIX 5 supports IA64
10424 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 else
10427 # With GCC up to 2.95.x, collect2 would create an import file
10428 # for dependence libraries. The import file would start with
10429 # the line '#! .'. This would cause the generated library to
10430 # depend on '.', always an invalid library. This was fixed in
10431 # development snapshots of GCC prior to 3.0.
10432 case $host_os in
10433 aix4 | aix4.[01] | aix4.[01].*)
10434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10435 echo ' yes '
10436 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10437 :
10438 else
10439 can_build_shared=no
10440 fi
10441 ;;
10442 esac
10443 # Using Import Files as archive members, it is possible to support
10444 # filename-based versioning of shared library archives on AIX. While
10445 # this would work for both with and without runtime linking, it will
10446 # prevent static linking of such archives. So we do filename-based
10447 # shared library versioning with .so extension only, which is used
10448 # when both runtime linking and shared linking is enabled.
10449 # Unfortunately, runtime linking may impact performance, so we do
10450 # not want this to be the default eventually. Also, we use the
10451 # versioned .so libs for executables only if there is the -brtl
10452 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10453 # To allow for filename-based versioning support, we need to create
10454 # libNAME.so.V as an archive file, containing:
10455 # *) an Import File, referring to the versioned filename of the
10456 # archive as well as the shared archive member, telling the
10457 # bitwidth (32 or 64) of that shared object, and providing the
10458 # list of exported symbols of that shared object, eventually
10459 # decorated with the 'weak' keyword
10460 # *) the shared object with the F_LOADONLY flag set, to really avoid
10461 # it being seen by the linker.
10462 # At run time we better use the real file rather than another symlink,
10463 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10464
10465 case $with_aix_soname,$aix_use_runtimelinking in
10466 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10467 # soname into executable. Probably we can add versioning support to
10468 # collect2, so additional links can be useful in future.
10469 aix,yes) # traditional libtool
10470 dynamic_linker='AIX unversionable lib.so'
10471 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10472 # instead of lib<name>.a to let people know that these are not
10473 # typical AIX shared libraries.
10474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10475 ;;
10476 aix,no) # traditional AIX only
10477 dynamic_linker='AIX lib.a(lib.so.V)'
10478 # We preserve .a as extension for shared libraries through AIX4.2
10479 # and later when we are not doing run time linking.
10480 library_names_spec='$libname$release.a $libname.a'
10481 soname_spec='$libname$release$shared_ext$major'
10482 ;;
10483 svr4,*) # full svr4 only
10484 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10485 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10486 # We do not specify a path in Import Files, so LIBPATH fires.
10487 shlibpath_overrides_runpath=yes
10488 ;;
10489 *,yes) # both, prefer svr4
10490 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10491 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10492 # unpreferred sharedlib libNAME.a needs extra handling
10493 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10494 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10495 # We do not specify a path in Import Files, so LIBPATH fires.
10496 shlibpath_overrides_runpath=yes
10497 ;;
10498 *,no) # both, prefer aix
10499 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10500 library_names_spec='$libname$release.a $libname.a'
10501 soname_spec='$libname$release$shared_ext$major'
10502 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10503 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10504 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10505 ;;
10506 esac
10507 shlibpath_var=LIBPATH
10508 fi
10509 ;;
10510
10511 amigaos*)
10512 case $host_cpu in
10513 powerpc)
10514 # Since July 2007 AmigaOS4 officially supports .so libraries.
10515 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10517 ;;
10518 m68k)
10519 library_names_spec='$libname.ixlibrary $libname.a'
10520 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10521 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10522 ;;
10523 esac
10524 ;;
10525
10526 beos*)
10527 library_names_spec='$libname$shared_ext'
10528 dynamic_linker="$host_os ld.so"
10529 shlibpath_var=LIBRARY_PATH
10530 ;;
10531
10532 bsdi[45]*)
10533 version_type=linux # correct to gnu/linux during the next big refactor
10534 need_version=no
10535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10536 soname_spec='$libname$release$shared_ext$major'
10537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10541 # the default ld.so.conf also contains /usr/contrib/lib and
10542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10543 # libtool to hard-code these into programs
10544 ;;
10545
10546 cygwin* | mingw* | pw32* | cegcc*)
10547 version_type=windows
10548 shrext_cmds=.dll
10549 need_version=no
10550 need_lib_prefix=no
10551
10552 case $GCC,$cc_basename in
10553 yes,*)
10554 # gcc
10555 library_names_spec='$libname.dll.a'
10556 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10557 postinstall_cmds='base_file=`basename \$file`~
10558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10559 dldir=$destdir/`dirname \$dlpath`~
10560 test -d \$dldir || mkdir -p \$dldir~
10561 $install_prog $dir/$dlname \$dldir/$dlname~
10562 chmod a+x \$dldir/$dlname~
10563 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10564 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10565 fi'
10566 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10567 dlpath=$dir/\$dldll~
10568 $RM \$dlpath'
10569 shlibpath_overrides_runpath=yes
10570
10571 case $host_os in
10572 cygwin*)
10573 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10574 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10575
10576 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10577 ;;
10578 mingw* | cegcc*)
10579 # MinGW DLLs use traditional 'lib' prefix
10580 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10581 ;;
10582 pw32*)
10583 # pw32 DLLs use 'pw' prefix rather than 'lib'
10584 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10585 ;;
10586 esac
10587 dynamic_linker='Win32 ld.exe'
10588 ;;
10589
10590 *,cl*)
10591 # Native MSVC
10592 libname_spec='$name'
10593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10594 library_names_spec='$libname.dll.lib'
10595
10596 case $build_os in
10597 mingw*)
10598 sys_lib_search_path_spec=
10599 lt_save_ifs=$IFS
10600 IFS=';'
10601 for lt_path in $LIB
10602 do
10603 IFS=$lt_save_ifs
10604 # Let DOS variable expansion print the short 8.3 style file name.
10605 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10606 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10607 done
10608 IFS=$lt_save_ifs
10609 # Convert to MSYS style.
10610 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10611 ;;
10612 cygwin*)
10613 # Convert to unix form, then to dos form, then back to unix form
10614 # but this time dos style (no spaces!) so that the unix form looks
10615 # like /cygdrive/c/PROGRA~1:/cygdr...
10616 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10617 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10618 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10619 ;;
10620 *)
10621 sys_lib_search_path_spec=$LIB
10622 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10623 # It is most probably a Windows format PATH.
10624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10625 else
10626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10627 fi
10628 # FIXME: find the short name or the path components, as spaces are
10629 # common. (e.g. "Program Files" -> "PROGRA~1")
10630 ;;
10631 esac
10632
10633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10634 postinstall_cmds='base_file=`basename \$file`~
10635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10636 dldir=$destdir/`dirname \$dlpath`~
10637 test -d \$dldir || mkdir -p \$dldir~
10638 $install_prog $dir/$dlname \$dldir/$dlname'
10639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10640 dlpath=$dir/\$dldll~
10641 $RM \$dlpath'
10642 shlibpath_overrides_runpath=yes
10643 dynamic_linker='Win32 link.exe'
10644 ;;
10645
10646 *)
10647 # Assume MSVC wrapper
10648 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10649 dynamic_linker='Win32 ld.exe'
10650 ;;
10651 esac
10652 # FIXME: first we should search . and the directory the executable is in
10653 shlibpath_var=PATH
10654 ;;
10655
10656 darwin* | rhapsody*)
10657 dynamic_linker="$host_os dyld"
10658 version_type=darwin
10659 need_lib_prefix=no
10660 need_version=no
10661 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10662 soname_spec='$libname$release$major$shared_ext'
10663 shlibpath_overrides_runpath=yes
10664 shlibpath_var=DYLD_LIBRARY_PATH
10665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10666
10667 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10669 ;;
10670
10671 dgux*)
10672 version_type=linux # correct to gnu/linux during the next big refactor
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10676 soname_spec='$libname$release$shared_ext$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 ;;
10679
10680 freebsd* | dragonfly*)
10681 # DragonFly does not have aout. When/if they implement a new
10682 # versioning mechanism, adjust this.
10683 if test -x /usr/bin/objformat; then
10684 objformat=`/usr/bin/objformat`
10685 else
10686 case $host_os in
10687 freebsd[23].*) objformat=aout ;;
10688 *) objformat=elf ;;
10689 esac
10690 fi
10691 version_type=freebsd-$objformat
10692 case $version_type in
10693 freebsd-elf*)
10694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10695 soname_spec='$libname$release$shared_ext$major'
10696 need_version=no
10697 need_lib_prefix=no
10698 ;;
10699 freebsd-*)
10700 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10701 need_version=yes
10702 ;;
10703 esac
10704 shlibpath_var=LD_LIBRARY_PATH
10705 case $host_os in
10706 freebsd2.*)
10707 shlibpath_overrides_runpath=yes
10708 ;;
10709 freebsd3.[01]* | freebsdelf3.[01]*)
10710 shlibpath_overrides_runpath=yes
10711 hardcode_into_libs=yes
10712 ;;
10713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10715 shlibpath_overrides_runpath=no
10716 hardcode_into_libs=yes
10717 ;;
10718 *) # from 4.6 on, and DragonFly
10719 shlibpath_overrides_runpath=yes
10720 hardcode_into_libs=yes
10721 ;;
10722 esac
10723 ;;
10724
10725 haiku*)
10726 version_type=linux # correct to gnu/linux during the next big refactor
10727 need_lib_prefix=no
10728 need_version=no
10729 dynamic_linker="$host_os runtime_loader"
10730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10731 soname_spec='$libname$release$shared_ext$major'
10732 shlibpath_var=LIBRARY_PATH
10733 shlibpath_overrides_runpath=no
10734 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10735 hardcode_into_libs=yes
10736 ;;
10737
10738 hpux9* | hpux10* | hpux11*)
10739 # Give a soname corresponding to the major version so that dld.sl refuses to
10740 # link against other versions.
10741 version_type=sunos
10742 need_lib_prefix=no
10743 need_version=no
10744 case $host_cpu in
10745 ia64*)
10746 shrext_cmds='.so'
10747 hardcode_into_libs=yes
10748 dynamic_linker="$host_os dld.so"
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10752 soname_spec='$libname$release$shared_ext$major'
10753 if test 32 = "$HPUX_IA64_MODE"; then
10754 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10755 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10756 else
10757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10758 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10759 fi
10760 ;;
10761 hppa*64*)
10762 shrext_cmds='.sl'
10763 hardcode_into_libs=yes
10764 dynamic_linker="$host_os dld.sl"
10765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10768 soname_spec='$libname$release$shared_ext$major'
10769 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10771 ;;
10772 *)
10773 shrext_cmds='.sl'
10774 dynamic_linker="$host_os dld.sl"
10775 shlibpath_var=SHLIB_PATH
10776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10778 soname_spec='$libname$release$shared_ext$major'
10779 ;;
10780 esac
10781 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10782 postinstall_cmds='chmod 555 $lib'
10783 # or fails outright, so override atomically:
10784 install_override_mode=555
10785 ;;
10786
10787 interix[3-9]*)
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 need_lib_prefix=no
10790 need_version=no
10791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10792 soname_spec='$libname$release$shared_ext$major'
10793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=no
10796 hardcode_into_libs=yes
10797 ;;
10798
10799 irix5* | irix6* | nonstopux*)
10800 case $host_os in
10801 nonstopux*) version_type=nonstopux ;;
10802 *)
10803 if test yes = "$lt_cv_prog_gnu_ld"; then
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 else
10806 version_type=irix
10807 fi ;;
10808 esac
10809 need_lib_prefix=no
10810 need_version=no
10811 soname_spec='$libname$release$shared_ext$major'
10812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10813 case $host_os in
10814 irix5* | nonstopux*)
10815 libsuff= shlibsuff=
10816 ;;
10817 *)
10818 case $LD in # libtool.m4 will add one of these switches to LD
10819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10820 libsuff= shlibsuff= libmagic=32-bit;;
10821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10822 libsuff=32 shlibsuff=N32 libmagic=N32;;
10823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10825 *) libsuff= shlibsuff= libmagic=never-match;;
10826 esac
10827 ;;
10828 esac
10829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10830 shlibpath_overrides_runpath=no
10831 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10832 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10833 hardcode_into_libs=yes
10834 ;;
10835
10836 # No shared lib support for Linux oldld, aout, or coff.
10837 linux*oldld* | linux*aout* | linux*coff*)
10838 dynamic_linker=no
10839 ;;
10840
10841 linux*android*)
10842 version_type=none # Android doesn't support versioned libraries.
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='$libname$release$shared_ext'
10846 soname_spec='$libname$release$shared_ext'
10847 finish_cmds=
10848 shlibpath_var=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath=yes
10850
10851 # This implies no fast_install, which is unacceptable.
10852 # Some rework will be needed to allow for fast_install
10853 # before this can be enabled.
10854 hardcode_into_libs=yes
10855
10856 dynamic_linker='Android linker'
10857 # Don't embed -rpath directories since the linker doesn't support them.
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 ;;
10860
10861 # This must be glibc/ELF.
10862 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10863 version_type=linux # correct to gnu/linux during the next big refactor
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867 soname_spec='$libname$release$shared_ext$major'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=no
10871
10872 # Some binutils ld are patched to set DT_RUNPATH
10873 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 lt_cv_shlibpath_overrides_runpath=no
10877 save_LDFLAGS=$LDFLAGS
10878 save_libdir=$libdir
10879 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10880 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883
10884 int
10885 main ()
10886 {
10887
10888 ;
10889 return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10894 lt_cv_shlibpath_overrides_runpath=yes
10895 fi
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 LDFLAGS=$save_LDFLAGS
10900 libdir=$save_libdir
10901
10902 fi
10903
10904 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10905
10906 # This implies no fast_install, which is unacceptable.
10907 # Some rework will be needed to allow for fast_install
10908 # before this can be enabled.
10909 hardcode_into_libs=yes
10910
10911 # Add ABI-specific directories to the system library path.
10912 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10913
10914 # Ideally, we could use ldconfig to report *all* directores which are
10915 # searched for libraries, however this is still not possible. Aside from not
10916 # being certain /sbin/ldconfig is available, command
10917 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10918 # even though it is searched at run-time. Try to do the best guess by
10919 # appending ld.so.conf contents (and includes) to the search path.
10920 if test -f /etc/ld.so.conf; then
10921 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' ' '`
10922 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10923 fi
10924
10925 # We used to test for /lib/ld.so.1 and disable shared libraries on
10926 # powerpc, because MkLinux only supported shared libraries with the
10927 # GNU dynamic linker. Since this was broken with cross compilers,
10928 # most powerpc-linux boxes support dynamic linking these days and
10929 # people can always --disable-shared, the test was removed, and we
10930 # assume the GNU/Linux dynamic linker is in use.
10931 dynamic_linker='GNU/Linux ld.so'
10932 ;;
10933
10934 netbsd*)
10935 version_type=sunos
10936 need_lib_prefix=no
10937 need_version=no
10938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10941 dynamic_linker='NetBSD (a.out) ld.so'
10942 else
10943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10944 soname_spec='$libname$release$shared_ext$major'
10945 dynamic_linker='NetBSD ld.elf_so'
10946 fi
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=yes
10949 hardcode_into_libs=yes
10950 ;;
10951
10952 newsos6)
10953 version_type=linux # correct to gnu/linux during the next big refactor
10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=yes
10957 ;;
10958
10959 *nto* | *qnx*)
10960 version_type=qnx
10961 need_lib_prefix=no
10962 need_version=no
10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964 soname_spec='$libname$release$shared_ext$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967 hardcode_into_libs=yes
10968 dynamic_linker='ldqnx.so'
10969 ;;
10970
10971 openbsd* | bitrig*)
10972 version_type=sunos
10973 sys_lib_dlsearch_path_spec=/usr/lib
10974 need_lib_prefix=no
10975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10976 need_version=no
10977 else
10978 need_version=yes
10979 fi
10980 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=yes
10984 ;;
10985
10986 os2*)
10987 libname_spec='$name'
10988 version_type=windows
10989 shrext_cmds=.dll
10990 need_version=no
10991 need_lib_prefix=no
10992 # OS/2 can only load a DLL with a base name of 8 characters or less.
10993 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10994 v=$($ECHO $release$versuffix | tr -d .-);
10995 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10996 $ECHO $n$v`$shared_ext'
10997 library_names_spec='${libname}_dll.$libext'
10998 dynamic_linker='OS/2 ld.exe'
10999 shlibpath_var=BEGINLIBPATH
11000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11002 postinstall_cmds='base_file=`basename \$file`~
11003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11004 dldir=$destdir/`dirname \$dlpath`~
11005 test -d \$dldir || mkdir -p \$dldir~
11006 $install_prog $dir/$dlname \$dldir/$dlname~
11007 chmod a+x \$dldir/$dlname~
11008 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11009 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11010 fi'
11011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11012 dlpath=$dir/\$dldll~
11013 $RM \$dlpath'
11014 ;;
11015
11016 osf3* | osf4* | osf5*)
11017 version_type=osf
11018 need_lib_prefix=no
11019 need_version=no
11020 soname_spec='$libname$release$shared_ext$major'
11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11025 ;;
11026
11027 rdos*)
11028 dynamic_linker=no
11029 ;;
11030
11031 solaris*)
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11036 soname_spec='$libname$release$shared_ext$major'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=yes
11039 hardcode_into_libs=yes
11040 # ldd complains unless libraries are executable
11041 postinstall_cmds='chmod +x $lib'
11042 ;;
11043
11044 sunos4*)
11045 version_type=sunos
11046 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 if test yes = "$with_gnu_ld"; then
11051 need_lib_prefix=no
11052 fi
11053 need_version=yes
11054 ;;
11055
11056 sysv4 | sysv4.3*)
11057 version_type=linux # correct to gnu/linux during the next big refactor
11058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11059 soname_spec='$libname$release$shared_ext$major'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 case $host_vendor in
11062 sni)
11063 shlibpath_overrides_runpath=no
11064 need_lib_prefix=no
11065 runpath_var=LD_RUN_PATH
11066 ;;
11067 siemens)
11068 need_lib_prefix=no
11069 ;;
11070 motorola)
11071 need_lib_prefix=no
11072 need_version=no
11073 shlibpath_overrides_runpath=no
11074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11075 ;;
11076 esac
11077 ;;
11078
11079 sysv4*MP*)
11080 if test -d /usr/nec; then
11081 version_type=linux # correct to gnu/linux during the next big refactor
11082 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11083 soname_spec='$libname$shared_ext.$major'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 fi
11086 ;;
11087
11088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11089 version_type=sco
11090 need_lib_prefix=no
11091 need_version=no
11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11093 soname_spec='$libname$release$shared_ext$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11097 if test yes = "$with_gnu_ld"; then
11098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11099 else
11100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11101 case $host_os in
11102 sco3.2v5*)
11103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11104 ;;
11105 esac
11106 fi
11107 sys_lib_dlsearch_path_spec='/usr/lib'
11108 ;;
11109
11110 tpf*)
11111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11112 version_type=linux # correct to gnu/linux during the next big refactor
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=no
11118 hardcode_into_libs=yes
11119 ;;
11120
11121 uts4*)
11122 version_type=linux # correct to gnu/linux during the next big refactor
11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124 soname_spec='$libname$release$shared_ext$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 ;;
11127
11128 *)
11129 dynamic_linker=no
11130 ;;
11131 esac
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11133 $as_echo "$dynamic_linker" >&6; }
11134 test no = "$dynamic_linker" && can_build_shared=no
11135
11136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11137 if test yes = "$GCC"; then
11138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11139 fi
11140
11141 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11142 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11143 fi
11144
11145 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11146 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11147 fi
11148
11149 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11150 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11151
11152 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11153 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11154
11155 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11156 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11255 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11256 hardcode_action=
11257 if test -n "$hardcode_libdir_flag_spec" ||
11258 test -n "$runpath_var" ||
11259 test yes = "$hardcode_automatic"; then
11260
11261 # We can hardcode non-existent directories.
11262 if test no != "$hardcode_direct" &&
11263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11264 # have to relink, otherwise we might link with an installed library
11265 # when we should be linking with a yet-to-be-installed one
11266 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11267 test no != "$hardcode_minus_L"; then
11268 # Linking always hardcodes the temporary library directory.
11269 hardcode_action=relink
11270 else
11271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11272 hardcode_action=immediate
11273 fi
11274 else
11275 # We cannot hardcode anything, or else we can only hardcode existing
11276 # directories.
11277 hardcode_action=unsupported
11278 fi
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11280 $as_echo "$hardcode_action" >&6; }
11281
11282 if test relink = "$hardcode_action" ||
11283 test yes = "$inherit_rpath"; then
11284 # Fast installation is not supported
11285 enable_fast_install=no
11286 elif test yes = "$shlibpath_overrides_runpath" ||
11287 test no = "$enable_shared"; then
11288 # Fast installation is not necessary
11289 enable_fast_install=needless
11290 fi
11291
11292
11293
11294
11295
11296
11297 if test yes != "$enable_dlopen"; then
11298 enable_dlopen=unknown
11299 enable_dlopen_self=unknown
11300 enable_dlopen_self_static=unknown
11301 else
11302 lt_cv_dlopen=no
11303 lt_cv_dlopen_libs=
11304
11305 case $host_os in
11306 beos*)
11307 lt_cv_dlopen=load_add_on
11308 lt_cv_dlopen_libs=
11309 lt_cv_dlopen_self=yes
11310 ;;
11311
11312 mingw* | pw32* | cegcc*)
11313 lt_cv_dlopen=LoadLibrary
11314 lt_cv_dlopen_libs=
11315 ;;
11316
11317 cygwin*)
11318 lt_cv_dlopen=dlopen
11319 lt_cv_dlopen_libs=
11320 ;;
11321
11322 darwin*)
11323 # if libdl is installed we need to link against it
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11325 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11326 if ${ac_cv_lib_dl_dlopen+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 ac_check_lib_save_LIBS=$LIBS
11330 LIBS="-ldl $LIBS"
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 char dlopen ();
11341 int
11342 main ()
11343 {
11344 return dlopen ();
11345 ;
11346 return 0;
11347 }
11348 _ACEOF
11349 if ac_fn_c_try_link "$LINENO"; then :
11350 ac_cv_lib_dl_dlopen=yes
11351 else
11352 ac_cv_lib_dl_dlopen=no
11353 fi
11354 rm -f core conftest.err conftest.$ac_objext \
11355 conftest$ac_exeext conftest.$ac_ext
11356 LIBS=$ac_check_lib_save_LIBS
11357 fi
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11359 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11360 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11361 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11362 else
11363
11364 lt_cv_dlopen=dyld
11365 lt_cv_dlopen_libs=
11366 lt_cv_dlopen_self=yes
11367
11368 fi
11369
11370 ;;
11371
11372 tpf*)
11373 # Don't try to run any link tests for TPF. We know it's impossible
11374 # because TPF is a cross-compiler, and we know how we open DSOs.
11375 lt_cv_dlopen=dlopen
11376 lt_cv_dlopen_libs=
11377 lt_cv_dlopen_self=no
11378 ;;
11379
11380 *)
11381 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11382 if test "x$ac_cv_func_shl_load" = xyes; then :
11383 lt_cv_dlopen=shl_load
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11386 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11387 if ${ac_cv_lib_dld_shl_load+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_lib_save_LIBS=$LIBS
11391 LIBS="-ldld $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char shl_load ();
11402 int
11403 main ()
11404 {
11405 return shl_load ();
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_dld_shl_load=yes
11412 else
11413 ac_cv_lib_dld_shl_load=no
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS=$ac_check_lib_save_LIBS
11418 fi
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11420 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11421 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11422 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11423 else
11424 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11425 if test "x$ac_cv_func_dlopen" = xyes; then :
11426 lt_cv_dlopen=dlopen
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11429 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11430 if ${ac_cv_lib_dl_dlopen+:} false; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 ac_check_lib_save_LIBS=$LIBS
11434 LIBS="-ldl $LIBS"
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char dlopen ();
11445 int
11446 main ()
11447 {
11448 return dlopen ();
11449 ;
11450 return 0;
11451 }
11452 _ACEOF
11453 if ac_fn_c_try_link "$LINENO"; then :
11454 ac_cv_lib_dl_dlopen=yes
11455 else
11456 ac_cv_lib_dl_dlopen=no
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460 LIBS=$ac_check_lib_save_LIBS
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11464 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11465 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11468 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11469 if ${ac_cv_lib_svld_dlopen+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-lsvld $LIBS"
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 char dlopen ();
11484 int
11485 main ()
11486 {
11487 return dlopen ();
11488 ;
11489 return 0;
11490 }
11491 _ACEOF
11492 if ac_fn_c_try_link "$LINENO"; then :
11493 ac_cv_lib_svld_dlopen=yes
11494 else
11495 ac_cv_lib_svld_dlopen=no
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_lib_save_LIBS
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11502 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11503 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11504 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11507 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11508 if ${ac_cv_lib_dld_dld_link+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 ac_check_lib_save_LIBS=$LIBS
11512 LIBS="-ldld $LIBS"
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515
11516 /* Override any GCC internal prototype to avoid an error.
11517 Use char because int might match the return type of a GCC
11518 builtin and then its argument prototype would still apply. */
11519 #ifdef __cplusplus
11520 extern "C"
11521 #endif
11522 char dld_link ();
11523 int
11524 main ()
11525 {
11526 return dld_link ();
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 if ac_fn_c_try_link "$LINENO"; then :
11532 ac_cv_lib_dld_dld_link=yes
11533 else
11534 ac_cv_lib_dld_dld_link=no
11535 fi
11536 rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538 LIBS=$ac_check_lib_save_LIBS
11539 fi
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11541 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11542 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11543 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11544 fi
11545
11546
11547 fi
11548
11549
11550 fi
11551
11552
11553 fi
11554
11555
11556 fi
11557
11558
11559 fi
11560
11561 ;;
11562 esac
11563
11564 if test no = "$lt_cv_dlopen"; then
11565 enable_dlopen=no
11566 else
11567 enable_dlopen=yes
11568 fi
11569
11570 case $lt_cv_dlopen in
11571 dlopen)
11572 save_CPPFLAGS=$CPPFLAGS
11573 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11574
11575 save_LDFLAGS=$LDFLAGS
11576 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11577
11578 save_LIBS=$LIBS
11579 LIBS="$lt_cv_dlopen_libs $LIBS"
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11582 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11583 if ${lt_cv_dlopen_self+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test yes = "$cross_compiling"; then :
11587 lt_cv_dlopen_self=cross
11588 else
11589 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11590 lt_status=$lt_dlunknown
11591 cat > conftest.$ac_ext <<_LT_EOF
11592 #line $LINENO "configure"
11593 #include "confdefs.h"
11594
11595 #if HAVE_DLFCN_H
11596 #include <dlfcn.h>
11597 #endif
11598
11599 #include <stdio.h>
11600
11601 #ifdef RTLD_GLOBAL
11602 # define LT_DLGLOBAL RTLD_GLOBAL
11603 #else
11604 # ifdef DL_GLOBAL
11605 # define LT_DLGLOBAL DL_GLOBAL
11606 # else
11607 # define LT_DLGLOBAL 0
11608 # endif
11609 #endif
11610
11611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11612 find out it does not work in some platform. */
11613 #ifndef LT_DLLAZY_OR_NOW
11614 # ifdef RTLD_LAZY
11615 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11616 # else
11617 # ifdef DL_LAZY
11618 # define LT_DLLAZY_OR_NOW DL_LAZY
11619 # else
11620 # ifdef RTLD_NOW
11621 # define LT_DLLAZY_OR_NOW RTLD_NOW
11622 # else
11623 # ifdef DL_NOW
11624 # define LT_DLLAZY_OR_NOW DL_NOW
11625 # else
11626 # define LT_DLLAZY_OR_NOW 0
11627 # endif
11628 # endif
11629 # endif
11630 # endif
11631 #endif
11632
11633 /* When -fvisibility=hidden is used, assume the code has been annotated
11634 correspondingly for the symbols needed. */
11635 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11636 int fnord () __attribute__((visibility("default")));
11637 #endif
11638
11639 int fnord () { return 42; }
11640 int main ()
11641 {
11642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11643 int status = $lt_dlunknown;
11644
11645 if (self)
11646 {
11647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11648 else
11649 {
11650 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11651 else puts (dlerror ());
11652 }
11653 /* dlclose (self); */
11654 }
11655 else
11656 puts (dlerror ());
11657
11658 return status;
11659 }
11660 _LT_EOF
11661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11662 (eval $ac_link) 2>&5
11663 ac_status=$?
11664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11666 (./conftest; exit; ) >&5 2>/dev/null
11667 lt_status=$?
11668 case x$lt_status in
11669 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11670 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11671 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11672 esac
11673 else :
11674 # compilation failed
11675 lt_cv_dlopen_self=no
11676 fi
11677 fi
11678 rm -fr conftest*
11679
11680
11681 fi
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11683 $as_echo "$lt_cv_dlopen_self" >&6; }
11684
11685 if test yes = "$lt_cv_dlopen_self"; then
11686 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11688 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11689 if ${lt_cv_dlopen_self_static+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 if test yes = "$cross_compiling"; then :
11693 lt_cv_dlopen_self_static=cross
11694 else
11695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11696 lt_status=$lt_dlunknown
11697 cat > conftest.$ac_ext <<_LT_EOF
11698 #line $LINENO "configure"
11699 #include "confdefs.h"
11700
11701 #if HAVE_DLFCN_H
11702 #include <dlfcn.h>
11703 #endif
11704
11705 #include <stdio.h>
11706
11707 #ifdef RTLD_GLOBAL
11708 # define LT_DLGLOBAL RTLD_GLOBAL
11709 #else
11710 # ifdef DL_GLOBAL
11711 # define LT_DLGLOBAL DL_GLOBAL
11712 # else
11713 # define LT_DLGLOBAL 0
11714 # endif
11715 #endif
11716
11717 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11718 find out it does not work in some platform. */
11719 #ifndef LT_DLLAZY_OR_NOW
11720 # ifdef RTLD_LAZY
11721 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11722 # else
11723 # ifdef DL_LAZY
11724 # define LT_DLLAZY_OR_NOW DL_LAZY
11725 # else
11726 # ifdef RTLD_NOW
11727 # define LT_DLLAZY_OR_NOW RTLD_NOW
11728 # else
11729 # ifdef DL_NOW
11730 # define LT_DLLAZY_OR_NOW DL_NOW
11731 # else
11732 # define LT_DLLAZY_OR_NOW 0
11733 # endif
11734 # endif
11735 # endif
11736 # endif
11737 #endif
11738
11739 /* When -fvisibility=hidden is used, assume the code has been annotated
11740 correspondingly for the symbols needed. */
11741 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11742 int fnord () __attribute__((visibility("default")));
11743 #endif
11744
11745 int fnord () { return 42; }
11746 int main ()
11747 {
11748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11749 int status = $lt_dlunknown;
11750
11751 if (self)
11752 {
11753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11754 else
11755 {
11756 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11757 else puts (dlerror ());
11758 }
11759 /* dlclose (self); */
11760 }
11761 else
11762 puts (dlerror ());
11763
11764 return status;
11765 }
11766 _LT_EOF
11767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11768 (eval $ac_link) 2>&5
11769 ac_status=$?
11770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11771 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11772 (./conftest; exit; ) >&5 2>/dev/null
11773 lt_status=$?
11774 case x$lt_status in
11775 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11776 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11777 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11778 esac
11779 else :
11780 # compilation failed
11781 lt_cv_dlopen_self_static=no
11782 fi
11783 fi
11784 rm -fr conftest*
11785
11786
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11789 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11790 fi
11791
11792 CPPFLAGS=$save_CPPFLAGS
11793 LDFLAGS=$save_LDFLAGS
11794 LIBS=$save_LIBS
11795 ;;
11796 esac
11797
11798 case $lt_cv_dlopen_self in
11799 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11800 *) enable_dlopen_self=unknown ;;
11801 esac
11802
11803 case $lt_cv_dlopen_self_static in
11804 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11805 *) enable_dlopen_self_static=unknown ;;
11806 esac
11807 fi
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825 striplib=
11826 old_striplib=
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11828 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11829 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11830 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11831 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833 $as_echo "yes" >&6; }
11834 else
11835 # FIXME - insert some real tests, host_os isn't really good enough
11836 case $host_os in
11837 darwin*)
11838 if test -n "$STRIP"; then
11839 striplib="$STRIP -x"
11840 old_striplib="$STRIP -S"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847 ;;
11848 *)
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11851 ;;
11852 esac
11853 fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866 # Report what library types will actually be built
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11868 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11870 $as_echo "$can_build_shared" >&6; }
11871
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11873 $as_echo_n "checking whether to build shared libraries... " >&6; }
11874 test no = "$can_build_shared" && enable_shared=no
11875
11876 # On AIX, shared libraries and static libraries use the same namespace, and
11877 # are all built from PIC.
11878 case $host_os in
11879 aix3*)
11880 test yes = "$enable_shared" && enable_static=no
11881 if test -n "$RANLIB"; then
11882 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11883 postinstall_cmds='$RANLIB $lib'
11884 fi
11885 ;;
11886
11887 aix[4-9]*)
11888 if test ia64 != "$host_cpu"; then
11889 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11890 yes,aix,yes) ;; # shared object as lib.so file only
11891 yes,svr4,*) ;; # shared object as lib.so archive member only
11892 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11893 esac
11894 fi
11895 ;;
11896 esac
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11898 $as_echo "$enable_shared" >&6; }
11899
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11901 $as_echo_n "checking whether to build static libraries... " >&6; }
11902 # Make sure either enable_shared or enable_static is yes.
11903 test yes = "$enable_shared" || enable_static=yes
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11905 $as_echo "$enable_static" >&6; }
11906
11907
11908
11909
11910 fi
11911 ac_ext=c
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916
11917 CC=$lt_save_CC
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 ac_config_commands="$ac_config_commands libtool"
11934
11935
11936
11937
11938 # Only expand once:
11939
11940
11941
11942 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11955 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11956 if ${ac_cv_prog_cc_c99+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_cv_prog_cc_c99=no
11960 ac_save_CC=$CC
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963 #include <stdarg.h>
11964 #include <stdbool.h>
11965 #include <stdlib.h>
11966 #include <wchar.h>
11967 #include <stdio.h>
11968
11969 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11970 #define debug(...) fprintf (stderr, __VA_ARGS__)
11971 #define showlist(...) puts (#__VA_ARGS__)
11972 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11973 static void
11974 test_varargs_macros (void)
11975 {
11976 int x = 1234;
11977 int y = 5678;
11978 debug ("Flag");
11979 debug ("X = %d\n", x);
11980 showlist (The first, second, and third items.);
11981 report (x>y, "x is %d but y is %d", x, y);
11982 }
11983
11984 // Check long long types.
11985 #define BIG64 18446744073709551615ull
11986 #define BIG32 4294967295ul
11987 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11988 #if !BIG_OK
11989 your preprocessor is broken;
11990 #endif
11991 #if BIG_OK
11992 #else
11993 your preprocessor is broken;
11994 #endif
11995 static long long int bignum = -9223372036854775807LL;
11996 static unsigned long long int ubignum = BIG64;
11997
11998 struct incomplete_array
11999 {
12000 int datasize;
12001 double data[];
12002 };
12003
12004 struct named_init {
12005 int number;
12006 const wchar_t *name;
12007 double average;
12008 };
12009
12010 typedef const char *ccp;
12011
12012 static inline int
12013 test_restrict (ccp restrict text)
12014 {
12015 // See if C++-style comments work.
12016 // Iterate through items via the restricted pointer.
12017 // Also check for declarations in for loops.
12018 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12019 continue;
12020 return 0;
12021 }
12022
12023 // Check varargs and va_copy.
12024 static void
12025 test_varargs (const char *format, ...)
12026 {
12027 va_list args;
12028 va_start (args, format);
12029 va_list args_copy;
12030 va_copy (args_copy, args);
12031
12032 const char *str;
12033 int number;
12034 float fnumber;
12035
12036 while (*format)
12037 {
12038 switch (*format++)
12039 {
12040 case 's': // string
12041 str = va_arg (args_copy, const char *);
12042 break;
12043 case 'd': // int
12044 number = va_arg (args_copy, int);
12045 break;
12046 case 'f': // float
12047 fnumber = va_arg (args_copy, double);
12048 break;
12049 default:
12050 break;
12051 }
12052 }
12053 va_end (args_copy);
12054 va_end (args);
12055 }
12056
12057 int
12058 main ()
12059 {
12060
12061 // Check bool.
12062 _Bool success = false;
12063
12064 // Check restrict.
12065 if (test_restrict ("String literal") == 0)
12066 success = true;
12067 char *restrict newvar = "Another string";
12068
12069 // Check varargs.
12070 test_varargs ("s, d' f .", "string", 65, 34.234);
12071 test_varargs_macros ();
12072
12073 // Check flexible array members.
12074 struct incomplete_array *ia =
12075 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12076 ia->datasize = 10;
12077 for (int i = 0; i < ia->datasize; ++i)
12078 ia->data[i] = i * 1.234;
12079
12080 // Check named initializers.
12081 struct named_init ni = {
12082 .number = 34,
12083 .name = L"Test wide string",
12084 .average = 543.34343,
12085 };
12086
12087 ni.number = 58;
12088
12089 int dynamic_array[ni.number];
12090 dynamic_array[ni.number - 1] = 543;
12091
12092 // work around unused variable warnings
12093 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12094 || dynamic_array[ni.number - 1] != 543);
12095
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12101 do
12102 CC="$ac_save_CC $ac_arg"
12103 if ac_fn_c_try_compile "$LINENO"; then :
12104 ac_cv_prog_cc_c99=$ac_arg
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext
12107 test "x$ac_cv_prog_cc_c99" != "xno" && break
12108 done
12109 rm -f conftest.$ac_ext
12110 CC=$ac_save_CC
12111
12112 fi
12113 # AC_CACHE_VAL
12114 case "x$ac_cv_prog_cc_c99" in
12115 x)
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12117 $as_echo "none needed" >&6; } ;;
12118 xno)
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12120 $as_echo "unsupported" >&6; } ;;
12121 *)
12122 CC="$CC $ac_cv_prog_cc_c99"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12124 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12125 esac
12126 if test "x$ac_cv_prog_cc_c99" != xno; then :
12127
12128 fi
12129
12130
12131
12132
12133
12134
12135 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12136 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12137 CLANGCC="yes"
12138 else
12139 CLANGCC="no"
12140 fi
12141
12142 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12143 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12144 INTELCC="yes"
12145 else
12146 INTELCC="no"
12147 fi
12148
12149 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12150 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12151 SUNCC="yes"
12152 else
12153 SUNCC="no"
12154 fi
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12165 if test -n "$ac_tool_prefix"; then
12166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12167 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 case $PKG_CONFIG in
12174 [\\/]* | ?:[\\/]*)
12175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12176 ;;
12177 *)
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12188 fi
12189 done
12190 done
12191 IFS=$as_save_IFS
12192
12193 ;;
12194 esac
12195 fi
12196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12197 if test -n "$PKG_CONFIG"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12199 $as_echo "$PKG_CONFIG" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204
12205
12206 fi
12207 if test -z "$ac_cv_path_PKG_CONFIG"; then
12208 ac_pt_PKG_CONFIG=$PKG_CONFIG
12209 # Extract the first word of "pkg-config", so it can be a program name with args.
12210 set dummy pkg-config; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 case $ac_pt_PKG_CONFIG in
12217 [\\/]* | ?:[\\/]*)
12218 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12219 ;;
12220 *)
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12223 do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232 done
12233 done
12234 IFS=$as_save_IFS
12235
12236 ;;
12237 esac
12238 fi
12239 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12240 if test -n "$ac_pt_PKG_CONFIG"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12242 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247
12248 if test "x$ac_pt_PKG_CONFIG" = x; then
12249 PKG_CONFIG=""
12250 else
12251 case $cross_compiling:$ac_tool_warned in
12252 yes:)
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12255 ac_tool_warned=yes ;;
12256 esac
12257 PKG_CONFIG=$ac_pt_PKG_CONFIG
12258 fi
12259 else
12260 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12261 fi
12262
12263 fi
12264 if test -n "$PKG_CONFIG"; then
12265 _pkg_min_version=0.9.0
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12267 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12268 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270 $as_echo "yes" >&6; }
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12274 PKG_CONFIG=""
12275 fi
12276 fi
12277
12278
12279
12280
12281
12282 # Check whether --enable-selective-werror was given.
12283 if test "${enable_selective_werror+set}" = set; then :
12284 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12285 else
12286 SELECTIVE_WERROR=yes
12287 fi
12288
12289
12290
12291
12292
12293 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12294 if test "x$SUNCC" = "xyes"; then
12295 BASE_CFLAGS="-v"
12296 else
12297 BASE_CFLAGS=""
12298 fi
12299
12300 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314 xorg_testset_save_CFLAGS="$CFLAGS"
12315
12316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 int i;
12326 _ACEOF
12327 if ac_fn_c_try_compile "$LINENO"; then :
12328 xorg_cv_cc_flag_unknown_warning_option=yes
12329 else
12330 xorg_cv_cc_flag_unknown_warning_option=no
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12337 CFLAGS="$xorg_testset_save_CFLAGS"
12338 fi
12339
12340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12343 fi
12344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352 int i;
12353 _ACEOF
12354 if ac_fn_c_try_compile "$LINENO"; then :
12355 xorg_cv_cc_flag_unused_command_line_argument=yes
12356 else
12357 xorg_cv_cc_flag_unused_command_line_argument=no
12358 fi
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12364 CFLAGS="$xorg_testset_save_CFLAGS"
12365 fi
12366
12367 found="no"
12368
12369 if test $found = "no" ; then
12370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12372 fi
12373
12374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12376 fi
12377
12378 CFLAGS="$CFLAGS -Wall"
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12381 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12382 cacheid=xorg_cv_cc_flag__Wall
12383 if eval \${$cacheid+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 int i;
12389 int
12390 main ()
12391 {
12392
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 eval $cacheid=yes
12399 else
12400 eval $cacheid=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 fi
12405
12406
12407 CFLAGS="$xorg_testset_save_CFLAGS"
12408
12409 eval supported=\$$cacheid
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12411 $as_echo "$supported" >&6; }
12412 if test "$supported" = "yes" ; then
12413 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12414 found="yes"
12415 fi
12416 fi
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432 xorg_testset_save_CFLAGS="$CFLAGS"
12433
12434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443 int i;
12444 _ACEOF
12445 if ac_fn_c_try_compile "$LINENO"; then :
12446 xorg_cv_cc_flag_unknown_warning_option=yes
12447 else
12448 xorg_cv_cc_flag_unknown_warning_option=no
12449 fi
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12455 CFLAGS="$xorg_testset_save_CFLAGS"
12456 fi
12457
12458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12461 fi
12462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 int i;
12471 _ACEOF
12472 if ac_fn_c_try_compile "$LINENO"; then :
12473 xorg_cv_cc_flag_unused_command_line_argument=yes
12474 else
12475 xorg_cv_cc_flag_unused_command_line_argument=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12482 CFLAGS="$xorg_testset_save_CFLAGS"
12483 fi
12484
12485 found="no"
12486
12487 if test $found = "no" ; then
12488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12490 fi
12491
12492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12494 fi
12495
12496 CFLAGS="$CFLAGS -Wpointer-arith"
12497
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12499 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12500 cacheid=xorg_cv_cc_flag__Wpointer_arith
12501 if eval \${$cacheid+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506 int i;
12507 int
12508 main ()
12509 {
12510
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_c_try_link "$LINENO"; then :
12516 eval $cacheid=yes
12517 else
12518 eval $cacheid=no
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 fi
12523
12524
12525 CFLAGS="$xorg_testset_save_CFLAGS"
12526
12527 eval supported=\$$cacheid
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12529 $as_echo "$supported" >&6; }
12530 if test "$supported" = "yes" ; then
12531 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12532 found="yes"
12533 fi
12534 fi
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550 xorg_testset_save_CFLAGS="$CFLAGS"
12551
12552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 int i;
12562 _ACEOF
12563 if ac_fn_c_try_compile "$LINENO"; then :
12564 xorg_cv_cc_flag_unknown_warning_option=yes
12565 else
12566 xorg_cv_cc_flag_unknown_warning_option=no
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12573 CFLAGS="$xorg_testset_save_CFLAGS"
12574 fi
12575
12576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12579 fi
12580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588 int i;
12589 _ACEOF
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 xorg_cv_cc_flag_unused_command_line_argument=yes
12592 else
12593 xorg_cv_cc_flag_unused_command_line_argument=no
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 fi
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12600 CFLAGS="$xorg_testset_save_CFLAGS"
12601 fi
12602
12603 found="no"
12604
12605 if test $found = "no" ; then
12606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12608 fi
12609
12610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12612 fi
12613
12614 CFLAGS="$CFLAGS -Wmissing-declarations"
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12617 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12618 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12619 if eval \${$cacheid+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624 int i;
12625 int
12626 main ()
12627 {
12628
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634 eval $cacheid=yes
12635 else
12636 eval $cacheid=no
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 fi
12641
12642
12643 CFLAGS="$xorg_testset_save_CFLAGS"
12644
12645 eval supported=\$$cacheid
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12647 $as_echo "$supported" >&6; }
12648 if test "$supported" = "yes" ; then
12649 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12650 found="yes"
12651 fi
12652 fi
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668 xorg_testset_save_CFLAGS="$CFLAGS"
12669
12670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679 int i;
12680 _ACEOF
12681 if ac_fn_c_try_compile "$LINENO"; then :
12682 xorg_cv_cc_flag_unknown_warning_option=yes
12683 else
12684 xorg_cv_cc_flag_unknown_warning_option=no
12685 fi
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 fi
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12691 CFLAGS="$xorg_testset_save_CFLAGS"
12692 fi
12693
12694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12697 fi
12698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 int i;
12707 _ACEOF
12708 if ac_fn_c_try_compile "$LINENO"; then :
12709 xorg_cv_cc_flag_unused_command_line_argument=yes
12710 else
12711 xorg_cv_cc_flag_unused_command_line_argument=no
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12718 CFLAGS="$xorg_testset_save_CFLAGS"
12719 fi
12720
12721 found="no"
12722
12723 if test $found = "no" ; then
12724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12726 fi
12727
12728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12730 fi
12731
12732 CFLAGS="$CFLAGS -Wformat=2"
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12735 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12736 cacheid=xorg_cv_cc_flag__Wformat_2
12737 if eval \${$cacheid+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742 int i;
12743 int
12744 main ()
12745 {
12746
12747 ;
12748 return 0;
12749 }
12750 _ACEOF
12751 if ac_fn_c_try_link "$LINENO"; then :
12752 eval $cacheid=yes
12753 else
12754 eval $cacheid=no
12755 fi
12756 rm -f core conftest.err conftest.$ac_objext \
12757 conftest$ac_exeext conftest.$ac_ext
12758 fi
12759
12760
12761 CFLAGS="$xorg_testset_save_CFLAGS"
12762
12763 eval supported=\$$cacheid
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12765 $as_echo "$supported" >&6; }
12766 if test "$supported" = "yes" ; then
12767 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12768 found="yes"
12769 fi
12770 fi
12771
12772 if test $found = "no" ; then
12773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12775 fi
12776
12777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12779 fi
12780
12781 CFLAGS="$CFLAGS -Wformat"
12782
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12784 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12785 cacheid=xorg_cv_cc_flag__Wformat
12786 if eval \${$cacheid+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12791 int i;
12792 int
12793 main ()
12794 {
12795
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_link "$LINENO"; then :
12801 eval $cacheid=yes
12802 else
12803 eval $cacheid=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 fi
12808
12809
12810 CFLAGS="$xorg_testset_save_CFLAGS"
12811
12812 eval supported=\$$cacheid
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12814 $as_echo "$supported" >&6; }
12815 if test "$supported" = "yes" ; then
12816 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12817 found="yes"
12818 fi
12819 fi
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837 xorg_testset_save_CFLAGS="$CFLAGS"
12838
12839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 int i;
12849 _ACEOF
12850 if ac_fn_c_try_compile "$LINENO"; then :
12851 xorg_cv_cc_flag_unknown_warning_option=yes
12852 else
12853 xorg_cv_cc_flag_unknown_warning_option=no
12854 fi
12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12860 CFLAGS="$xorg_testset_save_CFLAGS"
12861 fi
12862
12863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12866 fi
12867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 int i;
12876 _ACEOF
12877 if ac_fn_c_try_compile "$LINENO"; then :
12878 xorg_cv_cc_flag_unused_command_line_argument=yes
12879 else
12880 xorg_cv_cc_flag_unused_command_line_argument=no
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883 fi
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12887 CFLAGS="$xorg_testset_save_CFLAGS"
12888 fi
12889
12890 found="no"
12891
12892 if test $found = "no" ; then
12893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12895 fi
12896
12897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12899 fi
12900
12901 CFLAGS="$CFLAGS -Wstrict-prototypes"
12902
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12904 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12905 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12906 if eval \${$cacheid+:} false; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 int i;
12912 int
12913 main ()
12914 {
12915
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 eval $cacheid=yes
12922 else
12923 eval $cacheid=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 fi
12928
12929
12930 CFLAGS="$xorg_testset_save_CFLAGS"
12931
12932 eval supported=\$$cacheid
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12934 $as_echo "$supported" >&6; }
12935 if test "$supported" = "yes" ; then
12936 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12937 found="yes"
12938 fi
12939 fi
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955 xorg_testset_save_CFLAGS="$CFLAGS"
12956
12957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966 int i;
12967 _ACEOF
12968 if ac_fn_c_try_compile "$LINENO"; then :
12969 xorg_cv_cc_flag_unknown_warning_option=yes
12970 else
12971 xorg_cv_cc_flag_unknown_warning_option=no
12972 fi
12973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12978 CFLAGS="$xorg_testset_save_CFLAGS"
12979 fi
12980
12981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12984 fi
12985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12993 int i;
12994 _ACEOF
12995 if ac_fn_c_try_compile "$LINENO"; then :
12996 xorg_cv_cc_flag_unused_command_line_argument=yes
12997 else
12998 xorg_cv_cc_flag_unused_command_line_argument=no
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13005 CFLAGS="$xorg_testset_save_CFLAGS"
13006 fi
13007
13008 found="no"
13009
13010 if test $found = "no" ; then
13011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13013 fi
13014
13015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13017 fi
13018
13019 CFLAGS="$CFLAGS -Wmissing-prototypes"
13020
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13022 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13023 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13024 if eval \${$cacheid+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 int i;
13030 int
13031 main ()
13032 {
13033
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_link "$LINENO"; then :
13039 eval $cacheid=yes
13040 else
13041 eval $cacheid=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 fi
13046
13047
13048 CFLAGS="$xorg_testset_save_CFLAGS"
13049
13050 eval supported=\$$cacheid
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13052 $as_echo "$supported" >&6; }
13053 if test "$supported" = "yes" ; then
13054 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13055 found="yes"
13056 fi
13057 fi
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073 xorg_testset_save_CFLAGS="$CFLAGS"
13074
13075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084 int i;
13085 _ACEOF
13086 if ac_fn_c_try_compile "$LINENO"; then :
13087 xorg_cv_cc_flag_unknown_warning_option=yes
13088 else
13089 xorg_cv_cc_flag_unknown_warning_option=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092 fi
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13096 CFLAGS="$xorg_testset_save_CFLAGS"
13097 fi
13098
13099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13102 fi
13103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 int i;
13112 _ACEOF
13113 if ac_fn_c_try_compile "$LINENO"; then :
13114 xorg_cv_cc_flag_unused_command_line_argument=yes
13115 else
13116 xorg_cv_cc_flag_unused_command_line_argument=no
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13123 CFLAGS="$xorg_testset_save_CFLAGS"
13124 fi
13125
13126 found="no"
13127
13128 if test $found = "no" ; then
13129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13131 fi
13132
13133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13135 fi
13136
13137 CFLAGS="$CFLAGS -Wnested-externs"
13138
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13140 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13141 cacheid=xorg_cv_cc_flag__Wnested_externs
13142 if eval \${$cacheid+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 int i;
13148 int
13149 main ()
13150 {
13151
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13157 eval $cacheid=yes
13158 else
13159 eval $cacheid=no
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163 fi
13164
13165
13166 CFLAGS="$xorg_testset_save_CFLAGS"
13167
13168 eval supported=\$$cacheid
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13170 $as_echo "$supported" >&6; }
13171 if test "$supported" = "yes" ; then
13172 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13173 found="yes"
13174 fi
13175 fi
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191 xorg_testset_save_CFLAGS="$CFLAGS"
13192
13193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202 int i;
13203 _ACEOF
13204 if ac_fn_c_try_compile "$LINENO"; then :
13205 xorg_cv_cc_flag_unknown_warning_option=yes
13206 else
13207 xorg_cv_cc_flag_unknown_warning_option=no
13208 fi
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13214 CFLAGS="$xorg_testset_save_CFLAGS"
13215 fi
13216
13217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13220 fi
13221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 int i;
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 xorg_cv_cc_flag_unused_command_line_argument=yes
13233 else
13234 xorg_cv_cc_flag_unused_command_line_argument=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13241 CFLAGS="$xorg_testset_save_CFLAGS"
13242 fi
13243
13244 found="no"
13245
13246 if test $found = "no" ; then
13247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13249 fi
13250
13251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13253 fi
13254
13255 CFLAGS="$CFLAGS -Wbad-function-cast"
13256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13258 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13259 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13260 if eval \${$cacheid+:} false; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265 int i;
13266 int
13267 main ()
13268 {
13269
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_link "$LINENO"; then :
13275 eval $cacheid=yes
13276 else
13277 eval $cacheid=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 fi
13282
13283
13284 CFLAGS="$xorg_testset_save_CFLAGS"
13285
13286 eval supported=\$$cacheid
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13288 $as_echo "$supported" >&6; }
13289 if test "$supported" = "yes" ; then
13290 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13291 found="yes"
13292 fi
13293 fi
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309 xorg_testset_save_CFLAGS="$CFLAGS"
13310
13311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 int i;
13321 _ACEOF
13322 if ac_fn_c_try_compile "$LINENO"; then :
13323 xorg_cv_cc_flag_unknown_warning_option=yes
13324 else
13325 xorg_cv_cc_flag_unknown_warning_option=no
13326 fi
13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13332 CFLAGS="$xorg_testset_save_CFLAGS"
13333 fi
13334
13335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13338 fi
13339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 int i;
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 xorg_cv_cc_flag_unused_command_line_argument=yes
13351 else
13352 xorg_cv_cc_flag_unused_command_line_argument=no
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13359 CFLAGS="$xorg_testset_save_CFLAGS"
13360 fi
13361
13362 found="no"
13363
13364 if test $found = "no" ; then
13365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13367 fi
13368
13369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13371 fi
13372
13373 CFLAGS="$CFLAGS -Wold-style-definition"
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13376 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13377 cacheid=xorg_cv_cc_flag__Wold_style_definition
13378 if eval \${$cacheid+:} false; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 int i;
13384 int
13385 main ()
13386 {
13387
13388 ;
13389 return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 eval $cacheid=yes
13394 else
13395 eval $cacheid=no
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 fi
13400
13401
13402 CFLAGS="$xorg_testset_save_CFLAGS"
13403
13404 eval supported=\$$cacheid
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13406 $as_echo "$supported" >&6; }
13407 if test "$supported" = "yes" ; then
13408 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13409 found="yes"
13410 fi
13411 fi
13412
13413 if test $found = "no" ; then
13414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416 fi
13417
13418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13420 fi
13421
13422 CFLAGS="$CFLAGS -fd"
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13425 $as_echo_n "checking if $CC supports -fd... " >&6; }
13426 cacheid=xorg_cv_cc_flag__fd
13427 if eval \${$cacheid+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 int i;
13433 int
13434 main ()
13435 {
13436
13437 ;
13438 return 0;
13439 }
13440 _ACEOF
13441 if ac_fn_c_try_link "$LINENO"; then :
13442 eval $cacheid=yes
13443 else
13444 eval $cacheid=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext \
13447 conftest$ac_exeext conftest.$ac_ext
13448 fi
13449
13450
13451 CFLAGS="$xorg_testset_save_CFLAGS"
13452
13453 eval supported=\$$cacheid
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13455 $as_echo "$supported" >&6; }
13456 if test "$supported" = "yes" ; then
13457 BASE_CFLAGS="$BASE_CFLAGS -fd"
13458 found="yes"
13459 fi
13460 fi
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476 xorg_testset_save_CFLAGS="$CFLAGS"
13477
13478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13481 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13482 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13487 int i;
13488 _ACEOF
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490 xorg_cv_cc_flag_unknown_warning_option=yes
13491 else
13492 xorg_cv_cc_flag_unknown_warning_option=no
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 fi
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13497 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13499 CFLAGS="$xorg_testset_save_CFLAGS"
13500 fi
13501
13502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13505 fi
13506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13508 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13509 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 int i;
13515 _ACEOF
13516 if ac_fn_c_try_compile "$LINENO"; then :
13517 xorg_cv_cc_flag_unused_command_line_argument=yes
13518 else
13519 xorg_cv_cc_flag_unused_command_line_argument=no
13520 fi
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13524 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13526 CFLAGS="$xorg_testset_save_CFLAGS"
13527 fi
13528
13529 found="no"
13530
13531 if test $found = "no" ; then
13532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13534 fi
13535
13536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13538 fi
13539
13540 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13541
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13543 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13544 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13545 if eval \${$cacheid+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550 int i;
13551 int
13552 main ()
13553 {
13554
13555 ;
13556 return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 eval $cacheid=yes
13561 else
13562 eval $cacheid=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 fi
13567
13568
13569 CFLAGS="$xorg_testset_save_CFLAGS"
13570
13571 eval supported=\$$cacheid
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13573 $as_echo "$supported" >&6; }
13574 if test "$supported" = "yes" ; then
13575 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13576 found="yes"
13577 fi
13578 fi
13579
13580
13581
13582
13583
13584 # This chunk adds additional warnings that could catch undesired effects.
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598 xorg_testset_save_CFLAGS="$CFLAGS"
13599
13600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13603 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13604 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 int i;
13610 _ACEOF
13611 if ac_fn_c_try_compile "$LINENO"; then :
13612 xorg_cv_cc_flag_unknown_warning_option=yes
13613 else
13614 xorg_cv_cc_flag_unknown_warning_option=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13619 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13621 CFLAGS="$xorg_testset_save_CFLAGS"
13622 fi
13623
13624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13627 fi
13628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13630 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13631 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 int i;
13637 _ACEOF
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639 xorg_cv_cc_flag_unused_command_line_argument=yes
13640 else
13641 xorg_cv_cc_flag_unused_command_line_argument=no
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 fi
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13646 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13648 CFLAGS="$xorg_testset_save_CFLAGS"
13649 fi
13650
13651 found="no"
13652
13653 if test $found = "no" ; then
13654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656 fi
13657
13658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13660 fi
13661
13662 CFLAGS="$CFLAGS -Wunused"
13663
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13665 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13666 cacheid=xorg_cv_cc_flag__Wunused
13667 if eval \${$cacheid+:} false; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 int i;
13673 int
13674 main ()
13675 {
13676
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 eval $cacheid=yes
13683 else
13684 eval $cacheid=no
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 fi
13689
13690
13691 CFLAGS="$xorg_testset_save_CFLAGS"
13692
13693 eval supported=\$$cacheid
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13695 $as_echo "$supported" >&6; }
13696 if test "$supported" = "yes" ; then
13697 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13698 found="yes"
13699 fi
13700 fi
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716 xorg_testset_save_CFLAGS="$CFLAGS"
13717
13718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 int i;
13728 _ACEOF
13729 if ac_fn_c_try_compile "$LINENO"; then :
13730 xorg_cv_cc_flag_unknown_warning_option=yes
13731 else
13732 xorg_cv_cc_flag_unknown_warning_option=no
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13739 CFLAGS="$xorg_testset_save_CFLAGS"
13740 fi
13741
13742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13745 fi
13746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 int i;
13755 _ACEOF
13756 if ac_fn_c_try_compile "$LINENO"; then :
13757 xorg_cv_cc_flag_unused_command_line_argument=yes
13758 else
13759 xorg_cv_cc_flag_unused_command_line_argument=no
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13766 CFLAGS="$xorg_testset_save_CFLAGS"
13767 fi
13768
13769 found="no"
13770
13771 if test $found = "no" ; then
13772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13774 fi
13775
13776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13778 fi
13779
13780 CFLAGS="$CFLAGS -Wuninitialized"
13781
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13783 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13784 cacheid=xorg_cv_cc_flag__Wuninitialized
13785 if eval \${$cacheid+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 int i;
13791 int
13792 main ()
13793 {
13794
13795 ;
13796 return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"; then :
13800 eval $cacheid=yes
13801 else
13802 eval $cacheid=no
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 fi
13807
13808
13809 CFLAGS="$xorg_testset_save_CFLAGS"
13810
13811 eval supported=\$$cacheid
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13813 $as_echo "$supported" >&6; }
13814 if test "$supported" = "yes" ; then
13815 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13816 found="yes"
13817 fi
13818 fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834 xorg_testset_save_CFLAGS="$CFLAGS"
13835
13836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845 int i;
13846 _ACEOF
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848 xorg_cv_cc_flag_unknown_warning_option=yes
13849 else
13850 xorg_cv_cc_flag_unknown_warning_option=no
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13857 CFLAGS="$xorg_testset_save_CFLAGS"
13858 fi
13859
13860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13863 fi
13864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 int i;
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 xorg_cv_cc_flag_unused_command_line_argument=yes
13876 else
13877 xorg_cv_cc_flag_unused_command_line_argument=no
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13884 CFLAGS="$xorg_testset_save_CFLAGS"
13885 fi
13886
13887 found="no"
13888
13889 if test $found = "no" ; then
13890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13892 fi
13893
13894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13896 fi
13897
13898 CFLAGS="$CFLAGS -Wshadow"
13899
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13901 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13902 cacheid=xorg_cv_cc_flag__Wshadow
13903 if eval \${$cacheid+:} false; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13908 int i;
13909 int
13910 main ()
13911 {
13912
13913 ;
13914 return 0;
13915 }
13916 _ACEOF
13917 if ac_fn_c_try_link "$LINENO"; then :
13918 eval $cacheid=yes
13919 else
13920 eval $cacheid=no
13921 fi
13922 rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 fi
13925
13926
13927 CFLAGS="$xorg_testset_save_CFLAGS"
13928
13929 eval supported=\$$cacheid
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13931 $as_echo "$supported" >&6; }
13932 if test "$supported" = "yes" ; then
13933 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13934 found="yes"
13935 fi
13936 fi
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952 xorg_testset_save_CFLAGS="$CFLAGS"
13953
13954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 int i;
13964 _ACEOF
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966 xorg_cv_cc_flag_unknown_warning_option=yes
13967 else
13968 xorg_cv_cc_flag_unknown_warning_option=no
13969 fi
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 fi
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13975 CFLAGS="$xorg_testset_save_CFLAGS"
13976 fi
13977
13978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13981 fi
13982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 int i;
13991 _ACEOF
13992 if ac_fn_c_try_compile "$LINENO"; then :
13993 xorg_cv_cc_flag_unused_command_line_argument=yes
13994 else
13995 xorg_cv_cc_flag_unused_command_line_argument=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14002 CFLAGS="$xorg_testset_save_CFLAGS"
14003 fi
14004
14005 found="no"
14006
14007 if test $found = "no" ; then
14008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010 fi
14011
14012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14014 fi
14015
14016 CFLAGS="$CFLAGS -Wmissing-noreturn"
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14019 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14020 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14021 if eval \${$cacheid+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14026 int i;
14027 int
14028 main ()
14029 {
14030
14031 ;
14032 return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_link "$LINENO"; then :
14036 eval $cacheid=yes
14037 else
14038 eval $cacheid=no
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042 fi
14043
14044
14045 CFLAGS="$xorg_testset_save_CFLAGS"
14046
14047 eval supported=\$$cacheid
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14049 $as_echo "$supported" >&6; }
14050 if test "$supported" = "yes" ; then
14051 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14052 found="yes"
14053 fi
14054 fi
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070 xorg_testset_save_CFLAGS="$CFLAGS"
14071
14072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14075 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14076 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 int i;
14082 _ACEOF
14083 if ac_fn_c_try_compile "$LINENO"; then :
14084 xorg_cv_cc_flag_unknown_warning_option=yes
14085 else
14086 xorg_cv_cc_flag_unknown_warning_option=no
14087 fi
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 fi
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14091 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14093 CFLAGS="$xorg_testset_save_CFLAGS"
14094 fi
14095
14096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14099 fi
14100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14102 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14103 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 int i;
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 xorg_cv_cc_flag_unused_command_line_argument=yes
14112 else
14113 xorg_cv_cc_flag_unused_command_line_argument=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14118 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14120 CFLAGS="$xorg_testset_save_CFLAGS"
14121 fi
14122
14123 found="no"
14124
14125 if test $found = "no" ; then
14126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14128 fi
14129
14130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14132 fi
14133
14134 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14137 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14138 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14139 if eval \${$cacheid+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 int i;
14145 int
14146 main ()
14147 {
14148
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_link "$LINENO"; then :
14154 eval $cacheid=yes
14155 else
14156 eval $cacheid=no
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
14160 fi
14161
14162
14163 CFLAGS="$xorg_testset_save_CFLAGS"
14164
14165 eval supported=\$$cacheid
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14167 $as_echo "$supported" >&6; }
14168 if test "$supported" = "yes" ; then
14169 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14170 found="yes"
14171 fi
14172 fi
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188 xorg_testset_save_CFLAGS="$CFLAGS"
14189
14190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14194 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 int i;
14200 _ACEOF
14201 if ac_fn_c_try_compile "$LINENO"; then :
14202 xorg_cv_cc_flag_unknown_warning_option=yes
14203 else
14204 xorg_cv_cc_flag_unknown_warning_option=no
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 fi
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14209 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14211 CFLAGS="$xorg_testset_save_CFLAGS"
14212 fi
14213
14214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14217 fi
14218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14220 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14221 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 int i;
14227 _ACEOF
14228 if ac_fn_c_try_compile "$LINENO"; then :
14229 xorg_cv_cc_flag_unused_command_line_argument=yes
14230 else
14231 xorg_cv_cc_flag_unused_command_line_argument=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14236 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14238 CFLAGS="$xorg_testset_save_CFLAGS"
14239 fi
14240
14241 found="no"
14242
14243 if test $found = "no" ; then
14244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14246 fi
14247
14248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14250 fi
14251
14252 CFLAGS="$CFLAGS -Wredundant-decls"
14253
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14255 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14256 cacheid=xorg_cv_cc_flag__Wredundant_decls
14257 if eval \${$cacheid+:} false; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14262 int i;
14263 int
14264 main ()
14265 {
14266
14267 ;
14268 return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 eval $cacheid=yes
14273 else
14274 eval $cacheid=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 fi
14279
14280
14281 CFLAGS="$xorg_testset_save_CFLAGS"
14282
14283 eval supported=\$$cacheid
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14285 $as_echo "$supported" >&6; }
14286 if test "$supported" = "yes" ; then
14287 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14288 found="yes"
14289 fi
14290 fi
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306 xorg_testset_save_CFLAGS="$CFLAGS"
14307
14308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14311 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14312 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 int i;
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 xorg_cv_cc_flag_unknown_warning_option=yes
14321 else
14322 xorg_cv_cc_flag_unknown_warning_option=no
14323 fi
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14327 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14329 CFLAGS="$xorg_testset_save_CFLAGS"
14330 fi
14331
14332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14335 fi
14336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14338 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14339 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 int i;
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 xorg_cv_cc_flag_unused_command_line_argument=yes
14348 else
14349 xorg_cv_cc_flag_unused_command_line_argument=no
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 fi
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14354 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14356 CFLAGS="$xorg_testset_save_CFLAGS"
14357 fi
14358
14359 found="no"
14360
14361 if test $found = "no" ; then
14362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14364 fi
14365
14366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14368 fi
14369
14370 CFLAGS="$CFLAGS -Wlogical-op"
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14373 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14374 cacheid=xorg_cv_cc_flag__Wlogical_op
14375 if eval \${$cacheid+:} false; then :
14376 $as_echo_n "(cached) " >&6
14377 else
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 int i;
14381 int
14382 main ()
14383 {
14384
14385 ;
14386 return 0;
14387 }
14388 _ACEOF
14389 if ac_fn_c_try_link "$LINENO"; then :
14390 eval $cacheid=yes
14391 else
14392 eval $cacheid=no
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 fi
14397
14398
14399 CFLAGS="$xorg_testset_save_CFLAGS"
14400
14401 eval supported=\$$cacheid
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14403 $as_echo "$supported" >&6; }
14404 if test "$supported" = "yes" ; then
14405 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14406 found="yes"
14407 fi
14408 fi
14409
14410
14411
14412 # These are currently disabled because they are noisy. They will be enabled
14413 # in the future once the codebase is sufficiently modernized to silence
14414 # them. For now, I don't want them to drown out the other warnings.
14415 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14416 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14417 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14418
14419 # Turn some warnings into errors, so we don't accidently get successful builds
14420 # when there are problems that should be fixed.
14421
14422 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436 xorg_testset_save_CFLAGS="$CFLAGS"
14437
14438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447 int i;
14448 _ACEOF
14449 if ac_fn_c_try_compile "$LINENO"; then :
14450 xorg_cv_cc_flag_unknown_warning_option=yes
14451 else
14452 xorg_cv_cc_flag_unknown_warning_option=no
14453 fi
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14459 CFLAGS="$xorg_testset_save_CFLAGS"
14460 fi
14461
14462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14465 fi
14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14470 $as_echo_n "(cached) " >&6
14471 else
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474 int i;
14475 _ACEOF
14476 if ac_fn_c_try_compile "$LINENO"; then :
14477 xorg_cv_cc_flag_unused_command_line_argument=yes
14478 else
14479 xorg_cv_cc_flag_unused_command_line_argument=no
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482 fi
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14486 CFLAGS="$xorg_testset_save_CFLAGS"
14487 fi
14488
14489 found="no"
14490
14491 if test $found = "no" ; then
14492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14494 fi
14495
14496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14498 fi
14499
14500 CFLAGS="$CFLAGS -Werror=implicit"
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14503 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14504 cacheid=xorg_cv_cc_flag__Werror_implicit
14505 if eval \${$cacheid+:} false; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 int i;
14511 int
14512 main ()
14513 {
14514
14515 ;
14516 return 0;
14517 }
14518 _ACEOF
14519 if ac_fn_c_try_link "$LINENO"; then :
14520 eval $cacheid=yes
14521 else
14522 eval $cacheid=no
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext \
14525 conftest$ac_exeext conftest.$ac_ext
14526 fi
14527
14528
14529 CFLAGS="$xorg_testset_save_CFLAGS"
14530
14531 eval supported=\$$cacheid
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14533 $as_echo "$supported" >&6; }
14534 if test "$supported" = "yes" ; then
14535 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14536 found="yes"
14537 fi
14538 fi
14539
14540 if test $found = "no" ; then
14541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543 fi
14544
14545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14547 fi
14548
14549 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14552 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14553 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14554 if eval \${$cacheid+:} false; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 int i;
14560 int
14561 main ()
14562 {
14563
14564 ;
14565 return 0;
14566 }
14567 _ACEOF
14568 if ac_fn_c_try_link "$LINENO"; then :
14569 eval $cacheid=yes
14570 else
14571 eval $cacheid=no
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 fi
14576
14577
14578 CFLAGS="$xorg_testset_save_CFLAGS"
14579
14580 eval supported=\$$cacheid
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14582 $as_echo "$supported" >&6; }
14583 if test "$supported" = "yes" ; then
14584 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14585 found="yes"
14586 fi
14587 fi
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603 xorg_testset_save_CFLAGS="$CFLAGS"
14604
14605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614 int i;
14615 _ACEOF
14616 if ac_fn_c_try_compile "$LINENO"; then :
14617 xorg_cv_cc_flag_unknown_warning_option=yes
14618 else
14619 xorg_cv_cc_flag_unknown_warning_option=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14626 CFLAGS="$xorg_testset_save_CFLAGS"
14627 fi
14628
14629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632 fi
14633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14641 int i;
14642 _ACEOF
14643 if ac_fn_c_try_compile "$LINENO"; then :
14644 xorg_cv_cc_flag_unused_command_line_argument=yes
14645 else
14646 xorg_cv_cc_flag_unused_command_line_argument=no
14647 fi
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 fi
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14653 CFLAGS="$xorg_testset_save_CFLAGS"
14654 fi
14655
14656 found="no"
14657
14658 if test $found = "no" ; then
14659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661 fi
14662
14663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14665 fi
14666
14667 CFLAGS="$CFLAGS -Werror=nonnull"
14668
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14670 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14671 cacheid=xorg_cv_cc_flag__Werror_nonnull
14672 if eval \${$cacheid+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14677 int i;
14678 int
14679 main ()
14680 {
14681
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_link "$LINENO"; then :
14687 eval $cacheid=yes
14688 else
14689 eval $cacheid=no
14690 fi
14691 rm -f core conftest.err conftest.$ac_objext \
14692 conftest$ac_exeext conftest.$ac_ext
14693 fi
14694
14695
14696 CFLAGS="$xorg_testset_save_CFLAGS"
14697
14698 eval supported=\$$cacheid
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14700 $as_echo "$supported" >&6; }
14701 if test "$supported" = "yes" ; then
14702 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14703 found="yes"
14704 fi
14705 fi
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721 xorg_testset_save_CFLAGS="$CFLAGS"
14722
14723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732 int i;
14733 _ACEOF
14734 if ac_fn_c_try_compile "$LINENO"; then :
14735 xorg_cv_cc_flag_unknown_warning_option=yes
14736 else
14737 xorg_cv_cc_flag_unknown_warning_option=no
14738 fi
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14744 CFLAGS="$xorg_testset_save_CFLAGS"
14745 fi
14746
14747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14750 fi
14751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"; then :
14762 xorg_cv_cc_flag_unused_command_line_argument=yes
14763 else
14764 xorg_cv_cc_flag_unused_command_line_argument=no
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 fi
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14771 CFLAGS="$xorg_testset_save_CFLAGS"
14772 fi
14773
14774 found="no"
14775
14776 if test $found = "no" ; then
14777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14779 fi
14780
14781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14783 fi
14784
14785 CFLAGS="$CFLAGS -Werror=init-self"
14786
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14788 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14789 cacheid=xorg_cv_cc_flag__Werror_init_self
14790 if eval \${$cacheid+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14795 int i;
14796 int
14797 main ()
14798 {
14799
14800 ;
14801 return 0;
14802 }
14803 _ACEOF
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 eval $cacheid=yes
14806 else
14807 eval $cacheid=no
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 fi
14812
14813
14814 CFLAGS="$xorg_testset_save_CFLAGS"
14815
14816 eval supported=\$$cacheid
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14818 $as_echo "$supported" >&6; }
14819 if test "$supported" = "yes" ; then
14820 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14821 found="yes"
14822 fi
14823 fi
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839 xorg_testset_save_CFLAGS="$CFLAGS"
14840
14841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850 int i;
14851 _ACEOF
14852 if ac_fn_c_try_compile "$LINENO"; then :
14853 xorg_cv_cc_flag_unknown_warning_option=yes
14854 else
14855 xorg_cv_cc_flag_unknown_warning_option=no
14856 fi
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14862 CFLAGS="$xorg_testset_save_CFLAGS"
14863 fi
14864
14865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14868 fi
14869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 int i;
14878 _ACEOF
14879 if ac_fn_c_try_compile "$LINENO"; then :
14880 xorg_cv_cc_flag_unused_command_line_argument=yes
14881 else
14882 xorg_cv_cc_flag_unused_command_line_argument=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14889 CFLAGS="$xorg_testset_save_CFLAGS"
14890 fi
14891
14892 found="no"
14893
14894 if test $found = "no" ; then
14895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14897 fi
14898
14899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14901 fi
14902
14903 CFLAGS="$CFLAGS -Werror=main"
14904
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14906 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14907 cacheid=xorg_cv_cc_flag__Werror_main
14908 if eval \${$cacheid+:} false; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 int i;
14914 int
14915 main ()
14916 {
14917
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 if ac_fn_c_try_link "$LINENO"; then :
14923 eval $cacheid=yes
14924 else
14925 eval $cacheid=no
14926 fi
14927 rm -f core conftest.err conftest.$ac_objext \
14928 conftest$ac_exeext conftest.$ac_ext
14929 fi
14930
14931
14932 CFLAGS="$xorg_testset_save_CFLAGS"
14933
14934 eval supported=\$$cacheid
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14936 $as_echo "$supported" >&6; }
14937 if test "$supported" = "yes" ; then
14938 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14939 found="yes"
14940 fi
14941 fi
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957 xorg_testset_save_CFLAGS="$CFLAGS"
14958
14959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 int i;
14969 _ACEOF
14970 if ac_fn_c_try_compile "$LINENO"; then :
14971 xorg_cv_cc_flag_unknown_warning_option=yes
14972 else
14973 xorg_cv_cc_flag_unknown_warning_option=no
14974 fi
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 fi
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14980 CFLAGS="$xorg_testset_save_CFLAGS"
14981 fi
14982
14983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14986 fi
14987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 int i;
14996 _ACEOF
14997 if ac_fn_c_try_compile "$LINENO"; then :
14998 xorg_cv_cc_flag_unused_command_line_argument=yes
14999 else
15000 xorg_cv_cc_flag_unused_command_line_argument=no
15001 fi
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15007 CFLAGS="$xorg_testset_save_CFLAGS"
15008 fi
15009
15010 found="no"
15011
15012 if test $found = "no" ; then
15013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15015 fi
15016
15017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15019 fi
15020
15021 CFLAGS="$CFLAGS -Werror=missing-braces"
15022
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15024 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15025 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15026 if eval \${$cacheid+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 int i;
15032 int
15033 main ()
15034 {
15035
15036 ;
15037 return 0;
15038 }
15039 _ACEOF
15040 if ac_fn_c_try_link "$LINENO"; then :
15041 eval $cacheid=yes
15042 else
15043 eval $cacheid=no
15044 fi
15045 rm -f core conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15047 fi
15048
15049
15050 CFLAGS="$xorg_testset_save_CFLAGS"
15051
15052 eval supported=\$$cacheid
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15054 $as_echo "$supported" >&6; }
15055 if test "$supported" = "yes" ; then
15056 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15057 found="yes"
15058 fi
15059 fi
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075 xorg_testset_save_CFLAGS="$CFLAGS"
15076
15077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15080 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15081 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 int i;
15087 _ACEOF
15088 if ac_fn_c_try_compile "$LINENO"; then :
15089 xorg_cv_cc_flag_unknown_warning_option=yes
15090 else
15091 xorg_cv_cc_flag_unknown_warning_option=no
15092 fi
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15096 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15098 CFLAGS="$xorg_testset_save_CFLAGS"
15099 fi
15100
15101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15104 fi
15105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15107 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15108 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 int i;
15114 _ACEOF
15115 if ac_fn_c_try_compile "$LINENO"; then :
15116 xorg_cv_cc_flag_unused_command_line_argument=yes
15117 else
15118 xorg_cv_cc_flag_unused_command_line_argument=no
15119 fi
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15123 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15125 CFLAGS="$xorg_testset_save_CFLAGS"
15126 fi
15127
15128 found="no"
15129
15130 if test $found = "no" ; then
15131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15133 fi
15134
15135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15137 fi
15138
15139 CFLAGS="$CFLAGS -Werror=sequence-point"
15140
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15142 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15143 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15144 if eval \${$cacheid+:} false; then :
15145 $as_echo_n "(cached) " >&6
15146 else
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15149 int i;
15150 int
15151 main ()
15152 {
15153
15154 ;
15155 return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_link "$LINENO"; then :
15159 eval $cacheid=yes
15160 else
15161 eval $cacheid=no
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15165 fi
15166
15167
15168 CFLAGS="$xorg_testset_save_CFLAGS"
15169
15170 eval supported=\$$cacheid
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15172 $as_echo "$supported" >&6; }
15173 if test "$supported" = "yes" ; then
15174 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15175 found="yes"
15176 fi
15177 fi
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193 xorg_testset_save_CFLAGS="$CFLAGS"
15194
15195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15198 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15199 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 int i;
15205 _ACEOF
15206 if ac_fn_c_try_compile "$LINENO"; then :
15207 xorg_cv_cc_flag_unknown_warning_option=yes
15208 else
15209 xorg_cv_cc_flag_unknown_warning_option=no
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15214 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15216 CFLAGS="$xorg_testset_save_CFLAGS"
15217 fi
15218
15219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15222 fi
15223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15225 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15226 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231 int i;
15232 _ACEOF
15233 if ac_fn_c_try_compile "$LINENO"; then :
15234 xorg_cv_cc_flag_unused_command_line_argument=yes
15235 else
15236 xorg_cv_cc_flag_unused_command_line_argument=no
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15241 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15243 CFLAGS="$xorg_testset_save_CFLAGS"
15244 fi
15245
15246 found="no"
15247
15248 if test $found = "no" ; then
15249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15251 fi
15252
15253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15255 fi
15256
15257 CFLAGS="$CFLAGS -Werror=return-type"
15258
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15260 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15261 cacheid=xorg_cv_cc_flag__Werror_return_type
15262 if eval \${$cacheid+:} false; then :
15263 $as_echo_n "(cached) " >&6
15264 else
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 int i;
15268 int
15269 main ()
15270 {
15271
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 if ac_fn_c_try_link "$LINENO"; then :
15277 eval $cacheid=yes
15278 else
15279 eval $cacheid=no
15280 fi
15281 rm -f core conftest.err conftest.$ac_objext \
15282 conftest$ac_exeext conftest.$ac_ext
15283 fi
15284
15285
15286 CFLAGS="$xorg_testset_save_CFLAGS"
15287
15288 eval supported=\$$cacheid
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15290 $as_echo "$supported" >&6; }
15291 if test "$supported" = "yes" ; then
15292 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15293 found="yes"
15294 fi
15295 fi
15296
15297 if test $found = "no" ; then
15298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300 fi
15301
15302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15304 fi
15305
15306 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15307
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15309 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15310 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15311 if eval \${$cacheid+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 int i;
15317 int
15318 main ()
15319 {
15320
15321 ;
15322 return 0;
15323 }
15324 _ACEOF
15325 if ac_fn_c_try_link "$LINENO"; then :
15326 eval $cacheid=yes
15327 else
15328 eval $cacheid=no
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15332 fi
15333
15334
15335 CFLAGS="$xorg_testset_save_CFLAGS"
15336
15337 eval supported=\$$cacheid
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15339 $as_echo "$supported" >&6; }
15340 if test "$supported" = "yes" ; then
15341 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15342 found="yes"
15343 fi
15344 fi
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360 xorg_testset_save_CFLAGS="$CFLAGS"
15361
15362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15365 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15366 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15367 $as_echo_n "(cached) " >&6
15368 else
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15371 int i;
15372 _ACEOF
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374 xorg_cv_cc_flag_unknown_warning_option=yes
15375 else
15376 xorg_cv_cc_flag_unknown_warning_option=no
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 fi
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15381 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15383 CFLAGS="$xorg_testset_save_CFLAGS"
15384 fi
15385
15386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15389 fi
15390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15392 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15393 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 int i;
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"; then :
15401 xorg_cv_cc_flag_unused_command_line_argument=yes
15402 else
15403 xorg_cv_cc_flag_unused_command_line_argument=no
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 fi
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15408 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15410 CFLAGS="$xorg_testset_save_CFLAGS"
15411 fi
15412
15413 found="no"
15414
15415 if test $found = "no" ; then
15416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418 fi
15419
15420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15422 fi
15423
15424 CFLAGS="$CFLAGS -Werror=trigraphs"
15425
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15427 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15428 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15429 if eval \${$cacheid+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15434 int i;
15435 int
15436 main ()
15437 {
15438
15439 ;
15440 return 0;
15441 }
15442 _ACEOF
15443 if ac_fn_c_try_link "$LINENO"; then :
15444 eval $cacheid=yes
15445 else
15446 eval $cacheid=no
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext \
15449 conftest$ac_exeext conftest.$ac_ext
15450 fi
15451
15452
15453 CFLAGS="$xorg_testset_save_CFLAGS"
15454
15455 eval supported=\$$cacheid
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15457 $as_echo "$supported" >&6; }
15458 if test "$supported" = "yes" ; then
15459 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15460 found="yes"
15461 fi
15462 fi
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478 xorg_testset_save_CFLAGS="$CFLAGS"
15479
15480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15483 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15484 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15489 int i;
15490 _ACEOF
15491 if ac_fn_c_try_compile "$LINENO"; then :
15492 xorg_cv_cc_flag_unknown_warning_option=yes
15493 else
15494 xorg_cv_cc_flag_unknown_warning_option=no
15495 fi
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 fi
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15499 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15501 CFLAGS="$xorg_testset_save_CFLAGS"
15502 fi
15503
15504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507 fi
15508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15510 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15511 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15512 $as_echo_n "(cached) " >&6
15513 else
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 int i;
15517 _ACEOF
15518 if ac_fn_c_try_compile "$LINENO"; then :
15519 xorg_cv_cc_flag_unused_command_line_argument=yes
15520 else
15521 xorg_cv_cc_flag_unused_command_line_argument=no
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15526 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15528 CFLAGS="$xorg_testset_save_CFLAGS"
15529 fi
15530
15531 found="no"
15532
15533 if test $found = "no" ; then
15534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15536 fi
15537
15538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15540 fi
15541
15542 CFLAGS="$CFLAGS -Werror=array-bounds"
15543
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15545 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15546 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15547 if eval \${$cacheid+:} false; then :
15548 $as_echo_n "(cached) " >&6
15549 else
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 int i;
15553 int
15554 main ()
15555 {
15556
15557 ;
15558 return 0;
15559 }
15560 _ACEOF
15561 if ac_fn_c_try_link "$LINENO"; then :
15562 eval $cacheid=yes
15563 else
15564 eval $cacheid=no
15565 fi
15566 rm -f core conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15568 fi
15569
15570
15571 CFLAGS="$xorg_testset_save_CFLAGS"
15572
15573 eval supported=\$$cacheid
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15575 $as_echo "$supported" >&6; }
15576 if test "$supported" = "yes" ; then
15577 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15578 found="yes"
15579 fi
15580 fi
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596 xorg_testset_save_CFLAGS="$CFLAGS"
15597
15598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15601 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15602 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15603 $as_echo_n "(cached) " >&6
15604 else
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15607 int i;
15608 _ACEOF
15609 if ac_fn_c_try_compile "$LINENO"; then :
15610 xorg_cv_cc_flag_unknown_warning_option=yes
15611 else
15612 xorg_cv_cc_flag_unknown_warning_option=no
15613 fi
15614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15617 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15619 CFLAGS="$xorg_testset_save_CFLAGS"
15620 fi
15621
15622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625 fi
15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15628 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15629 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 int i;
15635 _ACEOF
15636 if ac_fn_c_try_compile "$LINENO"; then :
15637 xorg_cv_cc_flag_unused_command_line_argument=yes
15638 else
15639 xorg_cv_cc_flag_unused_command_line_argument=no
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15642 fi
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15644 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15646 CFLAGS="$xorg_testset_save_CFLAGS"
15647 fi
15648
15649 found="no"
15650
15651 if test $found = "no" ; then
15652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15654 fi
15655
15656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15658 fi
15659
15660 CFLAGS="$CFLAGS -Werror=write-strings"
15661
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15663 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15664 cacheid=xorg_cv_cc_flag__Werror_write_strings
15665 if eval \${$cacheid+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 int i;
15671 int
15672 main ()
15673 {
15674
15675 ;
15676 return 0;
15677 }
15678 _ACEOF
15679 if ac_fn_c_try_link "$LINENO"; then :
15680 eval $cacheid=yes
15681 else
15682 eval $cacheid=no
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 fi
15687
15688
15689 CFLAGS="$xorg_testset_save_CFLAGS"
15690
15691 eval supported=\$$cacheid
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15693 $as_echo "$supported" >&6; }
15694 if test "$supported" = "yes" ; then
15695 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15696 found="yes"
15697 fi
15698 fi
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714 xorg_testset_save_CFLAGS="$CFLAGS"
15715
15716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15719 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15720 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 int i;
15726 _ACEOF
15727 if ac_fn_c_try_compile "$LINENO"; then :
15728 xorg_cv_cc_flag_unknown_warning_option=yes
15729 else
15730 xorg_cv_cc_flag_unknown_warning_option=no
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 fi
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15735 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15737 CFLAGS="$xorg_testset_save_CFLAGS"
15738 fi
15739
15740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15743 fi
15744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15746 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15747 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 int i;
15753 _ACEOF
15754 if ac_fn_c_try_compile "$LINENO"; then :
15755 xorg_cv_cc_flag_unused_command_line_argument=yes
15756 else
15757 xorg_cv_cc_flag_unused_command_line_argument=no
15758 fi
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15762 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15764 CFLAGS="$xorg_testset_save_CFLAGS"
15765 fi
15766
15767 found="no"
15768
15769 if test $found = "no" ; then
15770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15772 fi
15773
15774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15776 fi
15777
15778 CFLAGS="$CFLAGS -Werror=address"
15779
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15781 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15782 cacheid=xorg_cv_cc_flag__Werror_address
15783 if eval \${$cacheid+:} false; then :
15784 $as_echo_n "(cached) " >&6
15785 else
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15788 int i;
15789 int
15790 main ()
15791 {
15792
15793 ;
15794 return 0;
15795 }
15796 _ACEOF
15797 if ac_fn_c_try_link "$LINENO"; then :
15798 eval $cacheid=yes
15799 else
15800 eval $cacheid=no
15801 fi
15802 rm -f core conftest.err conftest.$ac_objext \
15803 conftest$ac_exeext conftest.$ac_ext
15804 fi
15805
15806
15807 CFLAGS="$xorg_testset_save_CFLAGS"
15808
15809 eval supported=\$$cacheid
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15811 $as_echo "$supported" >&6; }
15812 if test "$supported" = "yes" ; then
15813 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15814 found="yes"
15815 fi
15816 fi
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832 xorg_testset_save_CFLAGS="$CFLAGS"
15833
15834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15839 $as_echo_n "(cached) " >&6
15840 else
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 int i;
15844 _ACEOF
15845 if ac_fn_c_try_compile "$LINENO"; then :
15846 xorg_cv_cc_flag_unknown_warning_option=yes
15847 else
15848 xorg_cv_cc_flag_unknown_warning_option=no
15849 fi
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 fi
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15855 CFLAGS="$xorg_testset_save_CFLAGS"
15856 fi
15857
15858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15861 fi
15862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 int i;
15871 _ACEOF
15872 if ac_fn_c_try_compile "$LINENO"; then :
15873 xorg_cv_cc_flag_unused_command_line_argument=yes
15874 else
15875 xorg_cv_cc_flag_unused_command_line_argument=no
15876 fi
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15882 CFLAGS="$xorg_testset_save_CFLAGS"
15883 fi
15884
15885 found="no"
15886
15887 if test $found = "no" ; then
15888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15890 fi
15891
15892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15894 fi
15895
15896 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15897
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15899 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15900 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15901 if eval \${$cacheid+:} false; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 int i;
15907 int
15908 main ()
15909 {
15910
15911 ;
15912 return 0;
15913 }
15914 _ACEOF
15915 if ac_fn_c_try_link "$LINENO"; then :
15916 eval $cacheid=yes
15917 else
15918 eval $cacheid=no
15919 fi
15920 rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922 fi
15923
15924
15925 CFLAGS="$xorg_testset_save_CFLAGS"
15926
15927 eval supported=\$$cacheid
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15929 $as_echo "$supported" >&6; }
15930 if test "$supported" = "yes" ; then
15931 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15932 found="yes"
15933 fi
15934 fi
15935
15936 if test $found = "no" ; then
15937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939 fi
15940
15941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15943 fi
15944
15945 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15946
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15948 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15949 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15950 if eval \${$cacheid+:} false; then :
15951 $as_echo_n "(cached) " >&6
15952 else
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 int i;
15956 int
15957 main ()
15958 {
15959
15960 ;
15961 return 0;
15962 }
15963 _ACEOF
15964 if ac_fn_c_try_link "$LINENO"; then :
15965 eval $cacheid=yes
15966 else
15967 eval $cacheid=no
15968 fi
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 fi
15972
15973
15974 CFLAGS="$xorg_testset_save_CFLAGS"
15975
15976 eval supported=\$$cacheid
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15978 $as_echo "$supported" >&6; }
15979 if test "$supported" = "yes" ; then
15980 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15981 found="yes"
15982 fi
15983 fi
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999 xorg_testset_save_CFLAGS="$CFLAGS"
16000
16001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16004 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16005 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 int i;
16011 _ACEOF
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 xorg_cv_cc_flag_unknown_warning_option=yes
16014 else
16015 xorg_cv_cc_flag_unknown_warning_option=no
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16020 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16022 CFLAGS="$xorg_testset_save_CFLAGS"
16023 fi
16024
16025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028 fi
16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16031 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16032 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16033 $as_echo_n "(cached) " >&6
16034 else
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16037 int i;
16038 _ACEOF
16039 if ac_fn_c_try_compile "$LINENO"; then :
16040 xorg_cv_cc_flag_unused_command_line_argument=yes
16041 else
16042 xorg_cv_cc_flag_unused_command_line_argument=no
16043 fi
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16047 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16049 CFLAGS="$xorg_testset_save_CFLAGS"
16050 fi
16051
16052 found="no"
16053
16054 if test $found = "no" ; then
16055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057 fi
16058
16059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16061 fi
16062
16063 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16064
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16066 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16067 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16068 if eval \${$cacheid+:} false; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 int i;
16074 int
16075 main ()
16076 {
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16083 eval $cacheid=yes
16084 else
16085 eval $cacheid=no
16086 fi
16087 rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16089 fi
16090
16091
16092 CFLAGS="$xorg_testset_save_CFLAGS"
16093
16094 eval supported=\$$cacheid
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16096 $as_echo "$supported" >&6; }
16097 if test "$supported" = "yes" ; then
16098 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16099 found="yes"
16100 fi
16101 fi
16102
16103 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16104 else
16105 { $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
16106 $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;}
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120 xorg_testset_save_CFLAGS="$CFLAGS"
16121
16122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16125 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16126 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16127 $as_echo_n "(cached) " >&6
16128 else
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 int i;
16132 _ACEOF
16133 if ac_fn_c_try_compile "$LINENO"; then :
16134 xorg_cv_cc_flag_unknown_warning_option=yes
16135 else
16136 xorg_cv_cc_flag_unknown_warning_option=no
16137 fi
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 fi
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16141 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16143 CFLAGS="$xorg_testset_save_CFLAGS"
16144 fi
16145
16146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149 fi
16150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16152 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16153 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16154 $as_echo_n "(cached) " >&6
16155 else
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 int i;
16159 _ACEOF
16160 if ac_fn_c_try_compile "$LINENO"; then :
16161 xorg_cv_cc_flag_unused_command_line_argument=yes
16162 else
16163 xorg_cv_cc_flag_unused_command_line_argument=no
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 fi
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16168 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16171 fi
16172
16173 found="no"
16174
16175 if test $found = "no" ; then
16176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178 fi
16179
16180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16182 fi
16183
16184 CFLAGS="$CFLAGS -Wimplicit"
16185
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16187 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16188 cacheid=xorg_cv_cc_flag__Wimplicit
16189 if eval \${$cacheid+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16194 int i;
16195 int
16196 main ()
16197 {
16198
16199 ;
16200 return 0;
16201 }
16202 _ACEOF
16203 if ac_fn_c_try_link "$LINENO"; then :
16204 eval $cacheid=yes
16205 else
16206 eval $cacheid=no
16207 fi
16208 rm -f core conftest.err conftest.$ac_objext \
16209 conftest$ac_exeext conftest.$ac_ext
16210 fi
16211
16212
16213 CFLAGS="$xorg_testset_save_CFLAGS"
16214
16215 eval supported=\$$cacheid
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16217 $as_echo "$supported" >&6; }
16218 if test "$supported" = "yes" ; then
16219 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16220 found="yes"
16221 fi
16222 fi
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238 xorg_testset_save_CFLAGS="$CFLAGS"
16239
16240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16243 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16244 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 int i;
16250 _ACEOF
16251 if ac_fn_c_try_compile "$LINENO"; then :
16252 xorg_cv_cc_flag_unknown_warning_option=yes
16253 else
16254 xorg_cv_cc_flag_unknown_warning_option=no
16255 fi
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 fi
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16259 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16261 CFLAGS="$xorg_testset_save_CFLAGS"
16262 fi
16263
16264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16267 fi
16268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16271 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16272 $as_echo_n "(cached) " >&6
16273 else
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 int i;
16277 _ACEOF
16278 if ac_fn_c_try_compile "$LINENO"; then :
16279 xorg_cv_cc_flag_unused_command_line_argument=yes
16280 else
16281 xorg_cv_cc_flag_unused_command_line_argument=no
16282 fi
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16286 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16288 CFLAGS="$xorg_testset_save_CFLAGS"
16289 fi
16290
16291 found="no"
16292
16293 if test $found = "no" ; then
16294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16296 fi
16297
16298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16300 fi
16301
16302 CFLAGS="$CFLAGS -Wnonnull"
16303
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16305 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16306 cacheid=xorg_cv_cc_flag__Wnonnull
16307 if eval \${$cacheid+:} false; then :
16308 $as_echo_n "(cached) " >&6
16309 else
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 int i;
16313 int
16314 main ()
16315 {
16316
16317 ;
16318 return 0;
16319 }
16320 _ACEOF
16321 if ac_fn_c_try_link "$LINENO"; then :
16322 eval $cacheid=yes
16323 else
16324 eval $cacheid=no
16325 fi
16326 rm -f core conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16328 fi
16329
16330
16331 CFLAGS="$xorg_testset_save_CFLAGS"
16332
16333 eval supported=\$$cacheid
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16335 $as_echo "$supported" >&6; }
16336 if test "$supported" = "yes" ; then
16337 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16338 found="yes"
16339 fi
16340 fi
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356 xorg_testset_save_CFLAGS="$CFLAGS"
16357
16358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16367 int i;
16368 _ACEOF
16369 if ac_fn_c_try_compile "$LINENO"; then :
16370 xorg_cv_cc_flag_unknown_warning_option=yes
16371 else
16372 xorg_cv_cc_flag_unknown_warning_option=no
16373 fi
16374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 fi
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16379 CFLAGS="$xorg_testset_save_CFLAGS"
16380 fi
16381
16382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16385 fi
16386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16390 $as_echo_n "(cached) " >&6
16391 else
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16394 int i;
16395 _ACEOF
16396 if ac_fn_c_try_compile "$LINENO"; then :
16397 xorg_cv_cc_flag_unused_command_line_argument=yes
16398 else
16399 xorg_cv_cc_flag_unused_command_line_argument=no
16400 fi
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16406 CFLAGS="$xorg_testset_save_CFLAGS"
16407 fi
16408
16409 found="no"
16410
16411 if test $found = "no" ; then
16412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16414 fi
16415
16416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16418 fi
16419
16420 CFLAGS="$CFLAGS -Winit-self"
16421
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16423 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16424 cacheid=xorg_cv_cc_flag__Winit_self
16425 if eval \${$cacheid+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 int i;
16431 int
16432 main ()
16433 {
16434
16435 ;
16436 return 0;
16437 }
16438 _ACEOF
16439 if ac_fn_c_try_link "$LINENO"; then :
16440 eval $cacheid=yes
16441 else
16442 eval $cacheid=no
16443 fi
16444 rm -f core conftest.err conftest.$ac_objext \
16445 conftest$ac_exeext conftest.$ac_ext
16446 fi
16447
16448
16449 CFLAGS="$xorg_testset_save_CFLAGS"
16450
16451 eval supported=\$$cacheid
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16453 $as_echo "$supported" >&6; }
16454 if test "$supported" = "yes" ; then
16455 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16456 found="yes"
16457 fi
16458 fi
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474 xorg_testset_save_CFLAGS="$CFLAGS"
16475
16476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16479 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16480 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16485 int i;
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"; then :
16488 xorg_cv_cc_flag_unknown_warning_option=yes
16489 else
16490 xorg_cv_cc_flag_unknown_warning_option=no
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16495 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16497 CFLAGS="$xorg_testset_save_CFLAGS"
16498 fi
16499
16500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16503 fi
16504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16506 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16507 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 int i;
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"; then :
16515 xorg_cv_cc_flag_unused_command_line_argument=yes
16516 else
16517 xorg_cv_cc_flag_unused_command_line_argument=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16522 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16524 CFLAGS="$xorg_testset_save_CFLAGS"
16525 fi
16526
16527 found="no"
16528
16529 if test $found = "no" ; then
16530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16532 fi
16533
16534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16536 fi
16537
16538 CFLAGS="$CFLAGS -Wmain"
16539
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16541 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16542 cacheid=xorg_cv_cc_flag__Wmain
16543 if eval \${$cacheid+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16548 int i;
16549 int
16550 main ()
16551 {
16552
16553 ;
16554 return 0;
16555 }
16556 _ACEOF
16557 if ac_fn_c_try_link "$LINENO"; then :
16558 eval $cacheid=yes
16559 else
16560 eval $cacheid=no
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 fi
16565
16566
16567 CFLAGS="$xorg_testset_save_CFLAGS"
16568
16569 eval supported=\$$cacheid
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16571 $as_echo "$supported" >&6; }
16572 if test "$supported" = "yes" ; then
16573 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16574 found="yes"
16575 fi
16576 fi
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592 xorg_testset_save_CFLAGS="$CFLAGS"
16593
16594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16597 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16598 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603 int i;
16604 _ACEOF
16605 if ac_fn_c_try_compile "$LINENO"; then :
16606 xorg_cv_cc_flag_unknown_warning_option=yes
16607 else
16608 xorg_cv_cc_flag_unknown_warning_option=no
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 fi
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16613 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16615 CFLAGS="$xorg_testset_save_CFLAGS"
16616 fi
16617
16618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16621 fi
16622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16624 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16625 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630 int i;
16631 _ACEOF
16632 if ac_fn_c_try_compile "$LINENO"; then :
16633 xorg_cv_cc_flag_unused_command_line_argument=yes
16634 else
16635 xorg_cv_cc_flag_unused_command_line_argument=no
16636 fi
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16640 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16642 CFLAGS="$xorg_testset_save_CFLAGS"
16643 fi
16644
16645 found="no"
16646
16647 if test $found = "no" ; then
16648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16650 fi
16651
16652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16654 fi
16655
16656 CFLAGS="$CFLAGS -Wmissing-braces"
16657
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16659 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16660 cacheid=xorg_cv_cc_flag__Wmissing_braces
16661 if eval \${$cacheid+:} false; then :
16662 $as_echo_n "(cached) " >&6
16663 else
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16666 int i;
16667 int
16668 main ()
16669 {
16670
16671 ;
16672 return 0;
16673 }
16674 _ACEOF
16675 if ac_fn_c_try_link "$LINENO"; then :
16676 eval $cacheid=yes
16677 else
16678 eval $cacheid=no
16679 fi
16680 rm -f core conftest.err conftest.$ac_objext \
16681 conftest$ac_exeext conftest.$ac_ext
16682 fi
16683
16684
16685 CFLAGS="$xorg_testset_save_CFLAGS"
16686
16687 eval supported=\$$cacheid
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16689 $as_echo "$supported" >&6; }
16690 if test "$supported" = "yes" ; then
16691 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16692 found="yes"
16693 fi
16694 fi
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710 xorg_testset_save_CFLAGS="$CFLAGS"
16711
16712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16715 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16716 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721 int i;
16722 _ACEOF
16723 if ac_fn_c_try_compile "$LINENO"; then :
16724 xorg_cv_cc_flag_unknown_warning_option=yes
16725 else
16726 xorg_cv_cc_flag_unknown_warning_option=no
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16731 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16733 CFLAGS="$xorg_testset_save_CFLAGS"
16734 fi
16735
16736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16739 fi
16740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16742 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16743 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16748 int i;
16749 _ACEOF
16750 if ac_fn_c_try_compile "$LINENO"; then :
16751 xorg_cv_cc_flag_unused_command_line_argument=yes
16752 else
16753 xorg_cv_cc_flag_unused_command_line_argument=no
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16758 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16760 CFLAGS="$xorg_testset_save_CFLAGS"
16761 fi
16762
16763 found="no"
16764
16765 if test $found = "no" ; then
16766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16768 fi
16769
16770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16772 fi
16773
16774 CFLAGS="$CFLAGS -Wsequence-point"
16775
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16777 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16778 cacheid=xorg_cv_cc_flag__Wsequence_point
16779 if eval \${$cacheid+:} false; then :
16780 $as_echo_n "(cached) " >&6
16781 else
16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16784 int i;
16785 int
16786 main ()
16787 {
16788
16789 ;
16790 return 0;
16791 }
16792 _ACEOF
16793 if ac_fn_c_try_link "$LINENO"; then :
16794 eval $cacheid=yes
16795 else
16796 eval $cacheid=no
16797 fi
16798 rm -f core conftest.err conftest.$ac_objext \
16799 conftest$ac_exeext conftest.$ac_ext
16800 fi
16801
16802
16803 CFLAGS="$xorg_testset_save_CFLAGS"
16804
16805 eval supported=\$$cacheid
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16807 $as_echo "$supported" >&6; }
16808 if test "$supported" = "yes" ; then
16809 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16810 found="yes"
16811 fi
16812 fi
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828 xorg_testset_save_CFLAGS="$CFLAGS"
16829
16830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16833 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16834 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16839 int i;
16840 _ACEOF
16841 if ac_fn_c_try_compile "$LINENO"; then :
16842 xorg_cv_cc_flag_unknown_warning_option=yes
16843 else
16844 xorg_cv_cc_flag_unknown_warning_option=no
16845 fi
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 fi
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16849 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16851 CFLAGS="$xorg_testset_save_CFLAGS"
16852 fi
16853
16854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857 fi
16858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16860 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16861 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866 int i;
16867 _ACEOF
16868 if ac_fn_c_try_compile "$LINENO"; then :
16869 xorg_cv_cc_flag_unused_command_line_argument=yes
16870 else
16871 xorg_cv_cc_flag_unused_command_line_argument=no
16872 fi
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16876 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16878 CFLAGS="$xorg_testset_save_CFLAGS"
16879 fi
16880
16881 found="no"
16882
16883 if test $found = "no" ; then
16884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16886 fi
16887
16888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16890 fi
16891
16892 CFLAGS="$CFLAGS -Wreturn-type"
16893
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16895 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16896 cacheid=xorg_cv_cc_flag__Wreturn_type
16897 if eval \${$cacheid+:} false; then :
16898 $as_echo_n "(cached) " >&6
16899 else
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16902 int i;
16903 int
16904 main ()
16905 {
16906
16907 ;
16908 return 0;
16909 }
16910 _ACEOF
16911 if ac_fn_c_try_link "$LINENO"; then :
16912 eval $cacheid=yes
16913 else
16914 eval $cacheid=no
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16918 fi
16919
16920
16921 CFLAGS="$xorg_testset_save_CFLAGS"
16922
16923 eval supported=\$$cacheid
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16925 $as_echo "$supported" >&6; }
16926 if test "$supported" = "yes" ; then
16927 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16928 found="yes"
16929 fi
16930 fi
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946 xorg_testset_save_CFLAGS="$CFLAGS"
16947
16948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16951 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16952 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16953 $as_echo_n "(cached) " >&6
16954 else
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 int i;
16958 _ACEOF
16959 if ac_fn_c_try_compile "$LINENO"; then :
16960 xorg_cv_cc_flag_unknown_warning_option=yes
16961 else
16962 xorg_cv_cc_flag_unknown_warning_option=no
16963 fi
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 fi
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16967 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16969 CFLAGS="$xorg_testset_save_CFLAGS"
16970 fi
16971
16972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16975 fi
16976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16978 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16979 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 int i;
16985 _ACEOF
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987 xorg_cv_cc_flag_unused_command_line_argument=yes
16988 else
16989 xorg_cv_cc_flag_unused_command_line_argument=no
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16994 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16996 CFLAGS="$xorg_testset_save_CFLAGS"
16997 fi
16998
16999 found="no"
17000
17001 if test $found = "no" ; then
17002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17004 fi
17005
17006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008 fi
17009
17010 CFLAGS="$CFLAGS -Wtrigraphs"
17011
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17013 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17014 cacheid=xorg_cv_cc_flag__Wtrigraphs
17015 if eval \${$cacheid+:} false; then :
17016 $as_echo_n "(cached) " >&6
17017 else
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020 int i;
17021 int
17022 main ()
17023 {
17024
17025 ;
17026 return 0;
17027 }
17028 _ACEOF
17029 if ac_fn_c_try_link "$LINENO"; then :
17030 eval $cacheid=yes
17031 else
17032 eval $cacheid=no
17033 fi
17034 rm -f core conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17036 fi
17037
17038
17039 CFLAGS="$xorg_testset_save_CFLAGS"
17040
17041 eval supported=\$$cacheid
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17043 $as_echo "$supported" >&6; }
17044 if test "$supported" = "yes" ; then
17045 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17046 found="yes"
17047 fi
17048 fi
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064 xorg_testset_save_CFLAGS="$CFLAGS"
17065
17066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075 int i;
17076 _ACEOF
17077 if ac_fn_c_try_compile "$LINENO"; then :
17078 xorg_cv_cc_flag_unknown_warning_option=yes
17079 else
17080 xorg_cv_cc_flag_unknown_warning_option=no
17081 fi
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 fi
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17087 CFLAGS="$xorg_testset_save_CFLAGS"
17088 fi
17089
17090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17093 fi
17094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"; then :
17105 xorg_cv_cc_flag_unused_command_line_argument=yes
17106 else
17107 xorg_cv_cc_flag_unused_command_line_argument=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110 fi
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17115 fi
17116
17117 found="no"
17118
17119 if test $found = "no" ; then
17120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122 fi
17123
17124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17126 fi
17127
17128 CFLAGS="$CFLAGS -Warray-bounds"
17129
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17131 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17132 cacheid=xorg_cv_cc_flag__Warray_bounds
17133 if eval \${$cacheid+:} false; then :
17134 $as_echo_n "(cached) " >&6
17135 else
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138 int i;
17139 int
17140 main ()
17141 {
17142
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 if ac_fn_c_try_link "$LINENO"; then :
17148 eval $cacheid=yes
17149 else
17150 eval $cacheid=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 fi
17155
17156
17157 CFLAGS="$xorg_testset_save_CFLAGS"
17158
17159 eval supported=\$$cacheid
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17161 $as_echo "$supported" >&6; }
17162 if test "$supported" = "yes" ; then
17163 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17164 found="yes"
17165 fi
17166 fi
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182 xorg_testset_save_CFLAGS="$CFLAGS"
17183
17184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17189 $as_echo_n "(cached) " >&6
17190 else
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17193 int i;
17194 _ACEOF
17195 if ac_fn_c_try_compile "$LINENO"; then :
17196 xorg_cv_cc_flag_unknown_warning_option=yes
17197 else
17198 xorg_cv_cc_flag_unknown_warning_option=no
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201 fi
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17205 CFLAGS="$xorg_testset_save_CFLAGS"
17206 fi
17207
17208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17211 fi
17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17216 $as_echo_n "(cached) " >&6
17217 else
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"; then :
17223 xorg_cv_cc_flag_unused_command_line_argument=yes
17224 else
17225 xorg_cv_cc_flag_unused_command_line_argument=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 fi
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17232 CFLAGS="$xorg_testset_save_CFLAGS"
17233 fi
17234
17235 found="no"
17236
17237 if test $found = "no" ; then
17238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17240 fi
17241
17242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17244 fi
17245
17246 CFLAGS="$CFLAGS -Wwrite-strings"
17247
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17249 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17250 cacheid=xorg_cv_cc_flag__Wwrite_strings
17251 if eval \${$cacheid+:} false; then :
17252 $as_echo_n "(cached) " >&6
17253 else
17254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17256 int i;
17257 int
17258 main ()
17259 {
17260
17261 ;
17262 return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 eval $cacheid=yes
17267 else
17268 eval $cacheid=no
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 fi
17273
17274
17275 CFLAGS="$xorg_testset_save_CFLAGS"
17276
17277 eval supported=\$$cacheid
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17279 $as_echo "$supported" >&6; }
17280 if test "$supported" = "yes" ; then
17281 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17282 found="yes"
17283 fi
17284 fi
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300 xorg_testset_save_CFLAGS="$CFLAGS"
17301
17302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311 int i;
17312 _ACEOF
17313 if ac_fn_c_try_compile "$LINENO"; then :
17314 xorg_cv_cc_flag_unknown_warning_option=yes
17315 else
17316 xorg_cv_cc_flag_unknown_warning_option=no
17317 fi
17318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 fi
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17323 CFLAGS="$xorg_testset_save_CFLAGS"
17324 fi
17325
17326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17329 fi
17330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 int i;
17339 _ACEOF
17340 if ac_fn_c_try_compile "$LINENO"; then :
17341 xorg_cv_cc_flag_unused_command_line_argument=yes
17342 else
17343 xorg_cv_cc_flag_unused_command_line_argument=no
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17350 CFLAGS="$xorg_testset_save_CFLAGS"
17351 fi
17352
17353 found="no"
17354
17355 if test $found = "no" ; then
17356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17358 fi
17359
17360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17362 fi
17363
17364 CFLAGS="$CFLAGS -Waddress"
17365
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17367 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17368 cacheid=xorg_cv_cc_flag__Waddress
17369 if eval \${$cacheid+:} false; then :
17370 $as_echo_n "(cached) " >&6
17371 else
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374 int i;
17375 int
17376 main ()
17377 {
17378
17379 ;
17380 return 0;
17381 }
17382 _ACEOF
17383 if ac_fn_c_try_link "$LINENO"; then :
17384 eval $cacheid=yes
17385 else
17386 eval $cacheid=no
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17390 fi
17391
17392
17393 CFLAGS="$xorg_testset_save_CFLAGS"
17394
17395 eval supported=\$$cacheid
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17397 $as_echo "$supported" >&6; }
17398 if test "$supported" = "yes" ; then
17399 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17400 found="yes"
17401 fi
17402 fi
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418 xorg_testset_save_CFLAGS="$CFLAGS"
17419
17420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17425 $as_echo_n "(cached) " >&6
17426 else
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429 int i;
17430 _ACEOF
17431 if ac_fn_c_try_compile "$LINENO"; then :
17432 xorg_cv_cc_flag_unknown_warning_option=yes
17433 else
17434 xorg_cv_cc_flag_unknown_warning_option=no
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17441 CFLAGS="$xorg_testset_save_CFLAGS"
17442 fi
17443
17444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17447 fi
17448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17456 int i;
17457 _ACEOF
17458 if ac_fn_c_try_compile "$LINENO"; then :
17459 xorg_cv_cc_flag_unused_command_line_argument=yes
17460 else
17461 xorg_cv_cc_flag_unused_command_line_argument=no
17462 fi
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17468 CFLAGS="$xorg_testset_save_CFLAGS"
17469 fi
17470
17471 found="no"
17472
17473 if test $found = "no" ; then
17474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17476 fi
17477
17478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17480 fi
17481
17482 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17483
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17485 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17486 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17487 if eval \${$cacheid+:} false; then :
17488 $as_echo_n "(cached) " >&6
17489 else
17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h. */
17492 int i;
17493 int
17494 main ()
17495 {
17496
17497 ;
17498 return 0;
17499 }
17500 _ACEOF
17501 if ac_fn_c_try_link "$LINENO"; then :
17502 eval $cacheid=yes
17503 else
17504 eval $cacheid=no
17505 fi
17506 rm -f core conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17508 fi
17509
17510
17511 CFLAGS="$xorg_testset_save_CFLAGS"
17512
17513 eval supported=\$$cacheid
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17515 $as_echo "$supported" >&6; }
17516 if test "$supported" = "yes" ; then
17517 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17518 found="yes"
17519 fi
17520 fi
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536 xorg_testset_save_CFLAGS="$CFLAGS"
17537
17538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17543 $as_echo_n "(cached) " >&6
17544 else
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 int i;
17548 _ACEOF
17549 if ac_fn_c_try_compile "$LINENO"; then :
17550 xorg_cv_cc_flag_unknown_warning_option=yes
17551 else
17552 xorg_cv_cc_flag_unknown_warning_option=no
17553 fi
17554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555 fi
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17559 CFLAGS="$xorg_testset_save_CFLAGS"
17560 fi
17561
17562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17565 fi
17566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 int i;
17575 _ACEOF
17576 if ac_fn_c_try_compile "$LINENO"; then :
17577 xorg_cv_cc_flag_unused_command_line_argument=yes
17578 else
17579 xorg_cv_cc_flag_unused_command_line_argument=no
17580 fi
17581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 fi
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17586 CFLAGS="$xorg_testset_save_CFLAGS"
17587 fi
17588
17589 found="no"
17590
17591 if test $found = "no" ; then
17592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17594 fi
17595
17596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17598 fi
17599
17600 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17601
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17603 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17604 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17605 if eval \${$cacheid+:} false; then :
17606 $as_echo_n "(cached) " >&6
17607 else
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 int i;
17611 int
17612 main ()
17613 {
17614
17615 ;
17616 return 0;
17617 }
17618 _ACEOF
17619 if ac_fn_c_try_link "$LINENO"; then :
17620 eval $cacheid=yes
17621 else
17622 eval $cacheid=no
17623 fi
17624 rm -f core conftest.err conftest.$ac_objext \
17625 conftest$ac_exeext conftest.$ac_ext
17626 fi
17627
17628
17629 CFLAGS="$xorg_testset_save_CFLAGS"
17630
17631 eval supported=\$$cacheid
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17633 $as_echo "$supported" >&6; }
17634 if test "$supported" = "yes" ; then
17635 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17636 found="yes"
17637 fi
17638 fi
17639
17640
17641 fi
17642
17643
17644
17645
17646
17647
17648
17649 CWARNFLAGS="$BASE_CFLAGS"
17650 if test "x$GCC" = xyes ; then
17651 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17652 fi
17653
17654
17655
17656
17657
17658
17659
17660
17661 # Check whether --enable-strict-compilation was given.
17662 if test "${enable_strict_compilation+set}" = set; then :
17663 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17664 else
17665 STRICT_COMPILE=no
17666 fi
17667
17668
17669
17670
17671
17672
17673 STRICT_CFLAGS=""
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687 xorg_testset_save_CFLAGS="$CFLAGS"
17688
17689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17694 $as_echo_n "(cached) " >&6
17695 else
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17698 int i;
17699 _ACEOF
17700 if ac_fn_c_try_compile "$LINENO"; then :
17701 xorg_cv_cc_flag_unknown_warning_option=yes
17702 else
17703 xorg_cv_cc_flag_unknown_warning_option=no
17704 fi
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17710 CFLAGS="$xorg_testset_save_CFLAGS"
17711 fi
17712
17713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17716 fi
17717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17721 $as_echo_n "(cached) " >&6
17722 else
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17725 int i;
17726 _ACEOF
17727 if ac_fn_c_try_compile "$LINENO"; then :
17728 xorg_cv_cc_flag_unused_command_line_argument=yes
17729 else
17730 xorg_cv_cc_flag_unused_command_line_argument=no
17731 fi
17732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17733 fi
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17737 CFLAGS="$xorg_testset_save_CFLAGS"
17738 fi
17739
17740 found="no"
17741
17742 if test $found = "no" ; then
17743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17745 fi
17746
17747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17749 fi
17750
17751 CFLAGS="$CFLAGS -pedantic"
17752
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17754 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17755 cacheid=xorg_cv_cc_flag__pedantic
17756 if eval \${$cacheid+:} false; then :
17757 $as_echo_n "(cached) " >&6
17758 else
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17761 int i;
17762 int
17763 main ()
17764 {
17765
17766 ;
17767 return 0;
17768 }
17769 _ACEOF
17770 if ac_fn_c_try_link "$LINENO"; then :
17771 eval $cacheid=yes
17772 else
17773 eval $cacheid=no
17774 fi
17775 rm -f core conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
17777 fi
17778
17779
17780 CFLAGS="$xorg_testset_save_CFLAGS"
17781
17782 eval supported=\$$cacheid
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17784 $as_echo "$supported" >&6; }
17785 if test "$supported" = "yes" ; then
17786 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17787 found="yes"
17788 fi
17789 fi
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805 xorg_testset_save_CFLAGS="$CFLAGS"
17806
17807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17812 $as_echo_n "(cached) " >&6
17813 else
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17816 int i;
17817 _ACEOF
17818 if ac_fn_c_try_compile "$LINENO"; then :
17819 xorg_cv_cc_flag_unknown_warning_option=yes
17820 else
17821 xorg_cv_cc_flag_unknown_warning_option=no
17822 fi
17823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824 fi
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17828 CFLAGS="$xorg_testset_save_CFLAGS"
17829 fi
17830
17831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17834 fi
17835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17839 $as_echo_n "(cached) " >&6
17840 else
17841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h. */
17843 int i;
17844 _ACEOF
17845 if ac_fn_c_try_compile "$LINENO"; then :
17846 xorg_cv_cc_flag_unused_command_line_argument=yes
17847 else
17848 xorg_cv_cc_flag_unused_command_line_argument=no
17849 fi
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 fi
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17855 CFLAGS="$xorg_testset_save_CFLAGS"
17856 fi
17857
17858 found="no"
17859
17860 if test $found = "no" ; then
17861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17863 fi
17864
17865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17867 fi
17868
17869 CFLAGS="$CFLAGS -Werror"
17870
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17872 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17873 cacheid=xorg_cv_cc_flag__Werror
17874 if eval \${$cacheid+:} false; then :
17875 $as_echo_n "(cached) " >&6
17876 else
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17879 int i;
17880 int
17881 main ()
17882 {
17883
17884 ;
17885 return 0;
17886 }
17887 _ACEOF
17888 if ac_fn_c_try_link "$LINENO"; then :
17889 eval $cacheid=yes
17890 else
17891 eval $cacheid=no
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17895 fi
17896
17897
17898 CFLAGS="$xorg_testset_save_CFLAGS"
17899
17900 eval supported=\$$cacheid
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17902 $as_echo "$supported" >&6; }
17903 if test "$supported" = "yes" ; then
17904 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17905 found="yes"
17906 fi
17907 fi
17908
17909 if test $found = "no" ; then
17910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17912 fi
17913
17914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17916 fi
17917
17918 CFLAGS="$CFLAGS -errwarn"
17919
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17921 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17922 cacheid=xorg_cv_cc_flag__errwarn
17923 if eval \${$cacheid+:} false; then :
17924 $as_echo_n "(cached) " >&6
17925 else
17926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927 /* end confdefs.h. */
17928 int i;
17929 int
17930 main ()
17931 {
17932
17933 ;
17934 return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_link "$LINENO"; then :
17938 eval $cacheid=yes
17939 else
17940 eval $cacheid=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17944 fi
17945
17946
17947 CFLAGS="$xorg_testset_save_CFLAGS"
17948
17949 eval supported=\$$cacheid
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17951 $as_echo "$supported" >&6; }
17952 if test "$supported" = "yes" ; then
17953 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17954 found="yes"
17955 fi
17956 fi
17957
17958
17959
17960 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17961 # activate it with -Werror, so we add it here explicitly.
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975 xorg_testset_save_CFLAGS="$CFLAGS"
17976
17977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17982 $as_echo_n "(cached) " >&6
17983 else
17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h. */
17986 int i;
17987 _ACEOF
17988 if ac_fn_c_try_compile "$LINENO"; then :
17989 xorg_cv_cc_flag_unknown_warning_option=yes
17990 else
17991 xorg_cv_cc_flag_unknown_warning_option=no
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 fi
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17998 CFLAGS="$xorg_testset_save_CFLAGS"
17999 fi
18000
18001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18004 fi
18005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18009 $as_echo_n "(cached) " >&6
18010 else
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013 int i;
18014 _ACEOF
18015 if ac_fn_c_try_compile "$LINENO"; then :
18016 xorg_cv_cc_flag_unused_command_line_argument=yes
18017 else
18018 xorg_cv_cc_flag_unused_command_line_argument=no
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 fi
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18025 CFLAGS="$xorg_testset_save_CFLAGS"
18026 fi
18027
18028 found="no"
18029
18030 if test $found = "no" ; then
18031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18033 fi
18034
18035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18037 fi
18038
18039 CFLAGS="$CFLAGS -Werror=attributes"
18040
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18042 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18043 cacheid=xorg_cv_cc_flag__Werror_attributes
18044 if eval \${$cacheid+:} false; then :
18045 $as_echo_n "(cached) " >&6
18046 else
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049 int i;
18050 int
18051 main ()
18052 {
18053
18054 ;
18055 return 0;
18056 }
18057 _ACEOF
18058 if ac_fn_c_try_link "$LINENO"; then :
18059 eval $cacheid=yes
18060 else
18061 eval $cacheid=no
18062 fi
18063 rm -f core conftest.err conftest.$ac_objext \
18064 conftest$ac_exeext conftest.$ac_ext
18065 fi
18066
18067
18068 CFLAGS="$xorg_testset_save_CFLAGS"
18069
18070 eval supported=\$$cacheid
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18072 $as_echo "$supported" >&6; }
18073 if test "$supported" = "yes" ; then
18074 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18075 found="yes"
18076 fi
18077 fi
18078
18079
18080
18081 if test "x$STRICT_COMPILE" = "xyes"; then
18082 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18083 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18084 fi
18085
18086
18087
18088
18089
18090
18091 cat >>confdefs.h <<_ACEOF
18092 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18093 _ACEOF
18094
18095 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18096 if test "x$PVM" = "x"; then
18097 PVM="0"
18098 fi
18099
18100 cat >>confdefs.h <<_ACEOF
18101 #define PACKAGE_VERSION_MINOR $PVM
18102 _ACEOF
18103
18104 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18105 if test "x$PVP" = "x"; then
18106 PVP="0"
18107 fi
18108
18109 cat >>confdefs.h <<_ACEOF
18110 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18111 _ACEOF
18112
18113
18114
18115 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18116 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18117 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18118 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18119
18120
18121
18122
18123 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18124 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18125 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18126 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18127 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18128
18129
18130
18131
18132
18133
18134 if test x$APP_MAN_SUFFIX = x ; then
18135 APP_MAN_SUFFIX=1
18136 fi
18137 if test x$APP_MAN_DIR = x ; then
18138 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18139 fi
18140
18141 if test x$LIB_MAN_SUFFIX = x ; then
18142 LIB_MAN_SUFFIX=3
18143 fi
18144 if test x$LIB_MAN_DIR = x ; then
18145 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18146 fi
18147
18148 if test x$FILE_MAN_SUFFIX = x ; then
18149 case $host_os in
18150 solaris*) FILE_MAN_SUFFIX=4 ;;
18151 *) FILE_MAN_SUFFIX=5 ;;
18152 esac
18153 fi
18154 if test x$FILE_MAN_DIR = x ; then
18155 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18156 fi
18157
18158 if test x$MISC_MAN_SUFFIX = x ; then
18159 case $host_os in
18160 solaris*) MISC_MAN_SUFFIX=5 ;;
18161 *) MISC_MAN_SUFFIX=7 ;;
18162 esac
18163 fi
18164 if test x$MISC_MAN_DIR = x ; then
18165 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18166 fi
18167
18168 if test x$DRIVER_MAN_SUFFIX = x ; then
18169 case $host_os in
18170 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18171 *) DRIVER_MAN_SUFFIX=4 ;;
18172 esac
18173 fi
18174 if test x$DRIVER_MAN_DIR = x ; then
18175 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18176 fi
18177
18178 if test x$ADMIN_MAN_SUFFIX = x ; then
18179 case $host_os in
18180 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18181 *) ADMIN_MAN_SUFFIX=8 ;;
18182 esac
18183 fi
18184 if test x$ADMIN_MAN_DIR = x ; then
18185 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18186 fi
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202 XORG_MAN_PAGE="X Version 11"
18203
18204 MAN_SUBSTS="\
18205 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18206 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18207 -e 's|__xservername__|Xorg|g' \
18208 -e 's|__xconfigfile__|xorg.conf|g' \
18209 -e 's|__projectroot__|\$(prefix)|g' \
18210 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18211 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18212 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18213 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18214 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18215 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18216 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18217
18218
18219
18220 # Check whether --enable-silent-rules was given.
18221 if test "${enable_silent_rules+set}" = set; then :
18222 enableval=$enable_silent_rules;
18223 fi
18224
18225 case $enable_silent_rules in # (((
18226 yes) AM_DEFAULT_VERBOSITY=0;;
18227 no) AM_DEFAULT_VERBOSITY=1;;
18228 *) AM_DEFAULT_VERBOSITY=0;;
18229 esac
18230 am_make=${MAKE-make}
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18232 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18233 if ${am_cv_make_support_nested_variables+:} false; then :
18234 $as_echo_n "(cached) " >&6
18235 else
18236 if $as_echo 'TRUE=$(BAR$(V))
18237 BAR0=false
18238 BAR1=true
18239 V=1
18240 am__doit:
18241 @$(TRUE)
18242 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18243 am_cv_make_support_nested_variables=yes
18244 else
18245 am_cv_make_support_nested_variables=no
18246 fi
18247 fi
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18249 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18250 if test $am_cv_make_support_nested_variables = yes; then
18251 AM_V='$(V)'
18252 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18253 else
18254 AM_V=$AM_DEFAULT_VERBOSITY
18255 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18256 fi
18257 AM_BACKSLASH='\'
18258
18259
18260
18261 # Check whether --enable-malloc0returnsnull was given.
18262 if test "${enable_malloc0returnsnull+set}" = set; then :
18263 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18264 else
18265 MALLOC_ZERO_RETURNS_NULL=auto
18266 fi
18267
18268
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18270 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18271 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18272 if ${xorg_cv_malloc0_returns_null+:} false; then :
18273 $as_echo_n "(cached) " >&6
18274 else
18275 if test "$cross_compiling" = yes; then :
18276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18278 as_fn_error $? "cannot run test program while cross compiling
18279 See \`config.log' for more details" "$LINENO" 5; }
18280 else
18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282 /* end confdefs.h. */
18283
18284 #include <stdlib.h>
18285
18286 int
18287 main ()
18288 {
18289
18290 char *m0, *r0, *c0, *p;
18291 m0 = malloc(0);
18292 p = malloc(10);
18293 r0 = realloc(p,0);
18294 c0 = calloc(0,10);
18295 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18296
18297 ;
18298 return 0;
18299 }
18300 _ACEOF
18301 if ac_fn_c_try_run "$LINENO"; then :
18302 xorg_cv_malloc0_returns_null=yes
18303 else
18304 xorg_cv_malloc0_returns_null=no
18305 fi
18306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18307 conftest.$ac_objext conftest.beam conftest.$ac_ext
18308 fi
18309
18310 fi
18311
18312 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18313 fi
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18315 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18316
18317 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18318 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18319 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18320 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18321 else
18322 MALLOC_ZERO_CFLAGS=""
18323 XMALLOC_ZERO_CFLAGS=""
18324 XTMALLOC_ZERO_CFLAGS=""
18325 fi
18326
18327
18328
18329
18330
18331
18332 # Obtain compiler/linker options for depedencies
18333
18334 pkg_failed=no
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
18336 $as_echo_n "checking for XRES... " >&6; }
18337
18338 if test -n "$XRES_CFLAGS"; then
18339 pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
18340 elif test -n "$PKG_CONFIG"; then
18341 if test -n "$PKG_CONFIG" && \
18342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
18343 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
18344 ac_status=$?
18345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18346 test $ac_status = 0; }; then
18347 pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
18348 test "x$?" != "x0" && pkg_failed=yes
18349 else
18350 pkg_failed=yes
18351 fi
18352 else
18353 pkg_failed=untried
18354 fi
18355 if test -n "$XRES_LIBS"; then
18356 pkg_cv_XRES_LIBS="$XRES_LIBS"
18357 elif test -n "$PKG_CONFIG"; then
18358 if test -n "$PKG_CONFIG" && \
18359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
18360 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
18361 ac_status=$?
18362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18363 test $ac_status = 0; }; then
18364 pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
18365 test "x$?" != "x0" && pkg_failed=yes
18366 else
18367 pkg_failed=yes
18368 fi
18369 else
18370 pkg_failed=untried
18371 fi
18372
18373
18374
18375 if test $pkg_failed = yes; then
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18378
18379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18380 _pkg_short_errors_supported=yes
18381 else
18382 _pkg_short_errors_supported=no
18383 fi
18384 if test $_pkg_short_errors_supported = yes; then
18385 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
18386 else
18387 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
18388 fi
18389 # Put the nasty error message in config.log where it belongs
18390 echo "$XRES_PKG_ERRORS" >&5
18391
18392 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto resourceproto >= 1.2.0) were not met:
18393
18394 $XRES_PKG_ERRORS
18395
18396 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18397 installed software in a non-standard prefix.
18398
18399 Alternatively, you may set the environment variables XRES_CFLAGS
18400 and XRES_LIBS to avoid the need to call pkg-config.
18401 See the pkg-config man page for more details." "$LINENO" 5
18402 elif test $pkg_failed = untried; then
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 $as_echo "no" >&6; }
18405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18407 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18408 is in your PATH or set the PKG_CONFIG environment variable to the full
18409 path to pkg-config.
18410
18411 Alternatively, you may set the environment variables XRES_CFLAGS
18412 and XRES_LIBS to avoid the need to call pkg-config.
18413 See the pkg-config man page for more details.
18414
18415 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18416 See \`config.log' for more details" "$LINENO" 5; }
18417 else
18418 XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
18419 XRES_LIBS=$pkg_cv_XRES_LIBS
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18421 $as_echo "yes" >&6; }
18422
18423 fi
18424
18425 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
18426
18427 cat >confcache <<\_ACEOF
18428 # This file is a shell script that caches the results of configure
18429 # tests run on this system so they can be shared between configure
18430 # scripts and configure runs, see configure's option --config-cache.
18431 # It is not useful on other systems. If it contains results you don't
18432 # want to keep, you may remove or edit it.
18433 #
18434 # config.status only pays attention to the cache file if you give it
18435 # the --recheck option to rerun configure.
18436 #
18437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18439 # following values.
18440
18441 _ACEOF
18442
18443 # The following way of writing the cache mishandles newlines in values,
18444 # but we know of no workaround that is simple, portable, and efficient.
18445 # So, we kill variables containing newlines.
18446 # Ultrix sh set writes to stderr and can't be redirected directly,
18447 # and sets the high bit in the cache file unless we assign to the vars.
18448 (
18449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18450 eval ac_val=\$$ac_var
18451 case $ac_val in #(
18452 *${as_nl}*)
18453 case $ac_var in #(
18454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18455 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18456 esac
18457 case $ac_var in #(
18458 _ | IFS | as_nl) ;; #(
18459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18460 *) { eval $ac_var=; unset $ac_var;} ;;
18461 esac ;;
18462 esac
18463 done
18464
18465 (set) 2>&1 |
18466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18467 *${as_nl}ac_space=\ *)
18468 # `set' does not quote correctly, so add quotes: double-quote
18469 # substitution turns \\\\ into \\, and sed turns \\ into \.
18470 sed -n \
18471 "s/'/'\\\\''/g;
18472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18473 ;; #(
18474 *)
18475 # `set' quotes correctly as required by POSIX, so do not add quotes.
18476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18477 ;;
18478 esac |
18479 sort
18480 ) |
18481 sed '
18482 /^ac_cv_env_/b end
18483 t clear
18484 :clear
18485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18486 t end
18487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18488 :end' >>confcache
18489 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18490 if test -w "$cache_file"; then
18491 if test "x$cache_file" != "x/dev/null"; then
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18493 $as_echo "$as_me: updating cache $cache_file" >&6;}
18494 if test ! -f "$cache_file" || test -h "$cache_file"; then
18495 cat confcache >"$cache_file"
18496 else
18497 case $cache_file in #(
18498 */* | ?:*)
18499 mv -f confcache "$cache_file"$$ &&
18500 mv -f "$cache_file"$$ "$cache_file" ;; #(
18501 *)
18502 mv -f confcache "$cache_file" ;;
18503 esac
18504 fi
18505 fi
18506 else
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18508 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18509 fi
18510 fi
18511 rm -f confcache
18512
18513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18514 # Let make expand exec_prefix.
18515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18516
18517 DEFS=-DHAVE_CONFIG_H
18518
18519 ac_libobjs=
18520 ac_ltlibobjs=
18521 U=
18522 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18523 # 1. Remove the extension, and $U if already installed.
18524 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18525 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18526 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18527 # will be set to the directory where LIBOBJS objects are built.
18528 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18529 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18530 done
18531 LIBOBJS=$ac_libobjs
18532
18533 LTLIBOBJS=$ac_ltlibobjs
18534
18535
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18537 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18538 if test -n "$am_sleep_pid"; then
18539 # Hide warnings about reused PIDs.
18540 wait $am_sleep_pid 2>/dev/null
18541 fi
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18543 $as_echo "done" >&6; }
18544 if test -n "$EXEEXT"; then
18545 am__EXEEXT_TRUE=
18546 am__EXEEXT_FALSE='#'
18547 else
18548 am__EXEEXT_TRUE='#'
18549 am__EXEEXT_FALSE=
18550 fi
18551
18552 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18553 as_fn_error $? "conditional \"AMDEP\" was never defined.
18554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18555 fi
18556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18557 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18559 fi
18560
18561 : "${CONFIG_STATUS=./config.status}"
18562 ac_write_fail=0
18563 ac_clean_files_save=$ac_clean_files
18564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18566 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18567 as_write_fail=0
18568 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18569 #! $SHELL
18570 # Generated by $as_me.
18571 # Run this file to recreate the current configuration.
18572 # Compiler output produced by configure, useful for debugging
18573 # configure, is in config.log if it exists.
18574
18575 debug=false
18576 ac_cs_recheck=false
18577 ac_cs_silent=false
18578
18579 SHELL=\${CONFIG_SHELL-$SHELL}
18580 export SHELL
18581 _ASEOF
18582 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18583 ## -------------------- ##
18584 ## M4sh Initialization. ##
18585 ## -------------------- ##
18586
18587 # Be more Bourne compatible
18588 DUALCASE=1; export DUALCASE # for MKS sh
18589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18590 emulate sh
18591 NULLCMD=:
18592 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18593 # is contrary to our usage. Disable this feature.
18594 alias -g '${1+"$@"}'='"$@"'
18595 setopt NO_GLOB_SUBST
18596 else
18597 case `(set -o) 2>/dev/null` in #(
18598 *posix*) :
18599 set -o posix ;; #(
18600 *) :
18601 ;;
18602 esac
18603 fi
18604
18605
18606 as_nl='
18607 '
18608 export as_nl
18609 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18610 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18613 # Prefer a ksh shell builtin over an external printf program on Solaris,
18614 # but without wasting forks for bash or zsh.
18615 if test -z "$BASH_VERSION$ZSH_VERSION" \
18616 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18617 as_echo='print -r --'
18618 as_echo_n='print -rn --'
18619 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18620 as_echo='printf %s\n'
18621 as_echo_n='printf %s'
18622 else
18623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18624 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18625 as_echo_n='/usr/ucb/echo -n'
18626 else
18627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18628 as_echo_n_body='eval
18629 arg=$1;
18630 case $arg in #(
18631 *"$as_nl"*)
18632 expr "X$arg" : "X\\(.*\\)$as_nl";
18633 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18634 esac;
18635 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18636 '
18637 export as_echo_n_body
18638 as_echo_n='sh -c $as_echo_n_body as_echo'
18639 fi
18640 export as_echo_body
18641 as_echo='sh -c $as_echo_body as_echo'
18642 fi
18643
18644 # The user is always right.
18645 if test "${PATH_SEPARATOR+set}" != set; then
18646 PATH_SEPARATOR=:
18647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18649 PATH_SEPARATOR=';'
18650 }
18651 fi
18652
18653
18654 # IFS
18655 # We need space, tab and new line, in precisely that order. Quoting is
18656 # there to prevent editors from complaining about space-tab.
18657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18658 # splitting by setting IFS to empty value.)
18659 IFS=" "" $as_nl"
18660
18661 # Find who we are. Look in the path if we contain no directory separator.
18662 as_myself=
18663 case $0 in #((
18664 *[\\/]* ) as_myself=$0 ;;
18665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18667 do
18668 IFS=$as_save_IFS
18669 test -z "$as_dir" && as_dir=.
18670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18671 done
18672 IFS=$as_save_IFS
18673
18674 ;;
18675 esac
18676 # We did not find ourselves, most probably we were run as `sh COMMAND'
18677 # in which case we are not to be found in the path.
18678 if test "x$as_myself" = x; then
18679 as_myself=$0
18680 fi
18681 if test ! -f "$as_myself"; then
18682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18683 exit 1
18684 fi
18685
18686 # Unset variables that we do not need and which cause bugs (e.g. in
18687 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18688 # suppresses any "Segmentation fault" message there. '((' could
18689 # trigger a bug in pdksh 5.2.14.
18690 for as_var in BASH_ENV ENV MAIL MAILPATH
18691 do eval test x\${$as_var+set} = xset \
18692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18693 done
18694 PS1='$ '
18695 PS2='> '
18696 PS4='+ '
18697
18698 # NLS nuisances.
18699 LC_ALL=C
18700 export LC_ALL
18701 LANGUAGE=C
18702 export LANGUAGE
18703
18704 # CDPATH.
18705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18706
18707
18708 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18709 # ----------------------------------------
18710 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18711 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18712 # script with STATUS, using 1 if that was 0.
18713 as_fn_error ()
18714 {
18715 as_status=$1; test $as_status -eq 0 && as_status=1
18716 if test "$4"; then
18717 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18718 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18719 fi
18720 $as_echo "$as_me: error: $2" >&2
18721 as_fn_exit $as_status
18722 } # as_fn_error
18723
18724
18725 # as_fn_set_status STATUS
18726 # -----------------------
18727 # Set $? to STATUS, without forking.
18728 as_fn_set_status ()
18729 {
18730 return $1
18731 } # as_fn_set_status
18732
18733 # as_fn_exit STATUS
18734 # -----------------
18735 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18736 as_fn_exit ()
18737 {
18738 set +e
18739 as_fn_set_status $1
18740 exit $1
18741 } # as_fn_exit
18742
18743 # as_fn_unset VAR
18744 # ---------------
18745 # Portably unset VAR.
18746 as_fn_unset ()
18747 {
18748 { eval $1=; unset $1;}
18749 }
18750 as_unset=as_fn_unset
18751 # as_fn_append VAR VALUE
18752 # ----------------------
18753 # Append the text in VALUE to the end of the definition contained in VAR. Take
18754 # advantage of any shell optimizations that allow amortized linear growth over
18755 # repeated appends, instead of the typical quadratic growth present in naive
18756 # implementations.
18757 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18758 eval 'as_fn_append ()
18759 {
18760 eval $1+=\$2
18761 }'
18762 else
18763 as_fn_append ()
18764 {
18765 eval $1=\$$1\$2
18766 }
18767 fi # as_fn_append
18768
18769 # as_fn_arith ARG...
18770 # ------------------
18771 # Perform arithmetic evaluation on the ARGs, and store the result in the
18772 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18773 # must be portable across $(()) and expr.
18774 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18775 eval 'as_fn_arith ()
18776 {
18777 as_val=$(( $* ))
18778 }'
18779 else
18780 as_fn_arith ()
18781 {
18782 as_val=`expr "$@" || test $? -eq 1`
18783 }
18784 fi # as_fn_arith
18785
18786
18787 if expr a : '\(a\)' >/dev/null 2>&1 &&
18788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18789 as_expr=expr
18790 else
18791 as_expr=false
18792 fi
18793
18794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18795 as_basename=basename
18796 else
18797 as_basename=false
18798 fi
18799
18800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18801 as_dirname=dirname
18802 else
18803 as_dirname=false
18804 fi
18805
18806 as_me=`$as_basename -- "$0" ||
18807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18808 X"$0" : 'X\(//\)$' \| \
18809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18810 $as_echo X/"$0" |
18811 sed '/^.*\/\([^/][^/]*\)\/*$/{
18812 s//\1/
18813 q
18814 }
18815 /^X\/\(\/\/\)$/{
18816 s//\1/
18817 q
18818 }
18819 /^X\/\(\/\).*/{
18820 s//\1/
18821 q
18822 }
18823 s/.*/./; q'`
18824
18825 # Avoid depending upon Character Ranges.
18826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18829 as_cr_digits='0123456789'
18830 as_cr_alnum=$as_cr_Letters$as_cr_digits
18831
18832 ECHO_C= ECHO_N= ECHO_T=
18833 case `echo -n x` in #(((((
18834 -n*)
18835 case `echo 'xy\c'` in
18836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18837 xy) ECHO_C='\c';;
18838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18839 ECHO_T=' ';;
18840 esac;;
18841 *)
18842 ECHO_N='-n';;
18843 esac
18844
18845 rm -f conf$$ conf$$.exe conf$$.file
18846 if test -d conf$$.dir; then
18847 rm -f conf$$.dir/conf$$.file
18848 else
18849 rm -f conf$$.dir
18850 mkdir conf$$.dir 2>/dev/null
18851 fi
18852 if (echo >conf$$.file) 2>/dev/null; then
18853 if ln -s conf$$.file conf$$ 2>/dev/null; then
18854 as_ln_s='ln -s'
18855 # ... but there are two gotchas:
18856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18858 # In both cases, we have to default to `cp -pR'.
18859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18860 as_ln_s='cp -pR'
18861 elif ln conf$$.file conf$$ 2>/dev/null; then
18862 as_ln_s=ln
18863 else
18864 as_ln_s='cp -pR'
18865 fi
18866 else
18867 as_ln_s='cp -pR'
18868 fi
18869 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18870 rmdir conf$$.dir 2>/dev/null
18871
18872
18873 # as_fn_mkdir_p
18874 # -------------
18875 # Create "$as_dir" as a directory, including parents if necessary.
18876 as_fn_mkdir_p ()
18877 {
18878
18879 case $as_dir in #(
18880 -*) as_dir=./$as_dir;;
18881 esac
18882 test -d "$as_dir" || eval $as_mkdir_p || {
18883 as_dirs=
18884 while :; do
18885 case $as_dir in #(
18886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18887 *) as_qdir=$as_dir;;
18888 esac
18889 as_dirs="'$as_qdir' $as_dirs"
18890 as_dir=`$as_dirname -- "$as_dir" ||
18891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18892 X"$as_dir" : 'X\(//\)[^/]' \| \
18893 X"$as_dir" : 'X\(//\)$' \| \
18894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18895 $as_echo X"$as_dir" |
18896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18897 s//\1/
18898 q
18899 }
18900 /^X\(\/\/\)[^/].*/{
18901 s//\1/
18902 q
18903 }
18904 /^X\(\/\/\)$/{
18905 s//\1/
18906 q
18907 }
18908 /^X\(\/\).*/{
18909 s//\1/
18910 q
18911 }
18912 s/.*/./; q'`
18913 test -d "$as_dir" && break
18914 done
18915 test -z "$as_dirs" || eval "mkdir $as_dirs"
18916 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18917
18918
18919 } # as_fn_mkdir_p
18920 if mkdir -p . 2>/dev/null; then
18921 as_mkdir_p='mkdir -p "$as_dir"'
18922 else
18923 test -d ./-p && rmdir ./-p
18924 as_mkdir_p=false
18925 fi
18926
18927
18928 # as_fn_executable_p FILE
18929 # -----------------------
18930 # Test if FILE is an executable regular file.
18931 as_fn_executable_p ()
18932 {
18933 test -f "$1" && test -x "$1"
18934 } # as_fn_executable_p
18935 as_test_x='test -x'
18936 as_executable_p=as_fn_executable_p
18937
18938 # Sed expression to map a string onto a valid CPP name.
18939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18940
18941 # Sed expression to map a string onto a valid variable name.
18942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18943
18944
18945 exec 6>&1
18946 ## ----------------------------------- ##
18947 ## Main body of $CONFIG_STATUS script. ##
18948 ## ----------------------------------- ##
18949 _ASEOF
18950 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18951
18952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18953 # Save the log message, to keep $0 and so on meaningful, and to
18954 # report actual input values of CONFIG_FILES etc. instead of their
18955 # values after options handling.
18956 ac_log="
18957 This file was extended by libXres $as_me 1.2.0, which was
18958 generated by GNU Autoconf 2.69. Invocation command line was
18959
18960 CONFIG_FILES = $CONFIG_FILES
18961 CONFIG_HEADERS = $CONFIG_HEADERS
18962 CONFIG_LINKS = $CONFIG_LINKS
18963 CONFIG_COMMANDS = $CONFIG_COMMANDS
18964 $ $0 $@
18965
18966 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18967 "
18968
18969 _ACEOF
18970
18971 case $ac_config_files in *"
18972 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18973 esac
18974
18975 case $ac_config_headers in *"
18976 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18977 esac
18978
18979
18980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18981 # Files that config.status was made for.
18982 config_files="$ac_config_files"
18983 config_headers="$ac_config_headers"
18984 config_commands="$ac_config_commands"
18985
18986 _ACEOF
18987
18988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18989 ac_cs_usage="\
18990 \`$as_me' instantiates files and other configuration actions
18991 from templates according to the current configuration. Unless the files
18992 and actions are specified as TAGs, all are instantiated by default.
18993
18994 Usage: $0 [OPTION]... [TAG]...
18995
18996 -h, --help print this help, then exit
18997 -V, --version print version number and configuration settings, then exit
18998 --config print configuration, then exit
18999 -q, --quiet, --silent
19000 do not print progress messages
19001 -d, --debug don't remove temporary files
19002 --recheck update $as_me by reconfiguring in the same conditions
19003 --file=FILE[:TEMPLATE]
19004 instantiate the configuration file FILE
19005 --header=FILE[:TEMPLATE]
19006 instantiate the configuration header FILE
19007
19008 Configuration files:
19009 $config_files
19010
19011 Configuration headers:
19012 $config_headers
19013
19014 Configuration commands:
19015 $config_commands
19016
19017 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19018
19019 _ACEOF
19020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19021 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19022 ac_cs_version="\\
19023 libXres config.status 1.2.0
19024 configured by $0, generated by GNU Autoconf 2.69,
19025 with options \\"\$ac_cs_config\\"
19026
19027 Copyright (C) 2012 Free Software Foundation, Inc.
19028 This config.status script is free software; the Free Software Foundation
19029 gives unlimited permission to copy, distribute and modify it."
19030
19031 ac_pwd='$ac_pwd'
19032 srcdir='$srcdir'
19033 INSTALL='$INSTALL'
19034 MKDIR_P='$MKDIR_P'
19035 AWK='$AWK'
19036 test -n "\$AWK" || AWK=awk
19037 _ACEOF
19038
19039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19040 # The default lists apply if the user does not specify any file.
19041 ac_need_defaults=:
19042 while test $# != 0
19043 do
19044 case $1 in
19045 --*=?*)
19046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19048 ac_shift=:
19049 ;;
19050 --*=)
19051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19052 ac_optarg=
19053 ac_shift=:
19054 ;;
19055 *)
19056 ac_option=$1
19057 ac_optarg=$2
19058 ac_shift=shift
19059 ;;
19060 esac
19061
19062 case $ac_option in
19063 # Handling of the options.
19064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19065 ac_cs_recheck=: ;;
19066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19067 $as_echo "$ac_cs_version"; exit ;;
19068 --config | --confi | --conf | --con | --co | --c )
19069 $as_echo "$ac_cs_config"; exit ;;
19070 --debug | --debu | --deb | --de | --d | -d )
19071 debug=: ;;
19072 --file | --fil | --fi | --f )
19073 $ac_shift
19074 case $ac_optarg in
19075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19076 '') as_fn_error $? "missing file argument" ;;
19077 esac
19078 as_fn_append CONFIG_FILES " '$ac_optarg'"
19079 ac_need_defaults=false;;
19080 --header | --heade | --head | --hea )
19081 $ac_shift
19082 case $ac_optarg in
19083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19084 esac
19085 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19086 ac_need_defaults=false;;
19087 --he | --h)
19088 # Conflict between --help and --header
19089 as_fn_error $? "ambiguous option: \`$1'
19090 Try \`$0 --help' for more information.";;
19091 --help | --hel | -h )
19092 $as_echo "$ac_cs_usage"; exit ;;
19093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19095 ac_cs_silent=: ;;
19096
19097 # This is an error.
19098 -*) as_fn_error $? "unrecognized option: \`$1'
19099 Try \`$0 --help' for more information." ;;
19100
19101 *) as_fn_append ac_config_targets " $1"
19102 ac_need_defaults=false ;;
19103
19104 esac
19105 shift
19106 done
19107
19108 ac_configure_extra_args=
19109
19110 if $ac_cs_silent; then
19111 exec 6>/dev/null
19112 ac_configure_extra_args="$ac_configure_extra_args --silent"
19113 fi
19114
19115 _ACEOF
19116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19117 if \$ac_cs_recheck; then
19118 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19119 shift
19120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19121 CONFIG_SHELL='$SHELL'
19122 export CONFIG_SHELL
19123 exec "\$@"
19124 fi
19125
19126 _ACEOF
19127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19128 exec 5>>config.log
19129 {
19130 echo
19131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19132 ## Running $as_me. ##
19133 _ASBOX
19134 $as_echo "$ac_log"
19135 } >&5
19136
19137 _ACEOF
19138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19139 #
19140 # INIT-COMMANDS
19141 #
19142 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19143
19144
19145 # The HP-UX ksh and POSIX shell print the target directory to stdout
19146 # if CDPATH is set.
19147 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19148
19149 sed_quote_subst='$sed_quote_subst'
19150 double_quote_subst='$double_quote_subst'
19151 delay_variable_subst='$delay_variable_subst'
19152 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19153 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19154 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19155 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19156 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19157 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19158 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19159 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19160 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19161 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19162 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19163 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19164 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19165 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19166 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19167 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19168 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19169 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19170 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19171 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19172 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19173 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19174 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19175 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19176 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19177 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19178 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19179 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19180 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19181 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19182 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19183 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19184 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19185 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19186 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19187 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19188 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19189 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19190 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19191 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19192 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19193 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19194 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19195 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19196 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19197 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19198 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19199 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19200 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19201 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19202 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19203 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19204 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19205 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19206 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19207 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19208 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19209 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19210 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"`'
19211 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19212 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19213 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19214 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19215 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19216 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19217 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19218 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19219 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19220 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19221 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19222 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19223 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19224 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19225 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19226 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19227 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19228 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19229 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19230 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19231 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19232 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19233 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19234 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19235 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19236 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19237 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19238 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19239 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19240 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19241 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19242 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19243 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19244 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19245 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19246 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19247 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19248 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19249 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19250 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19251 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19252 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19253 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19254 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19255 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19256 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19257 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19258 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19259 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19260 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19261 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19262 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19263 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19264 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19265 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19266 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19267 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19268 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19269 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19270 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19271 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19272 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19273 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19274 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19275 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19276 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19277 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19278 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19279 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19280 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19281 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19282 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19283 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19284 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19285 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19286 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19287
19288 LTCC='$LTCC'
19289 LTCFLAGS='$LTCFLAGS'
19290 compiler='$compiler_DEFAULT'
19291
19292 # A function that is used when there is no print builtin or printf.
19293 func_fallback_echo ()
19294 {
19295 eval 'cat <<_LTECHO_EOF
19296 \$1
19297 _LTECHO_EOF'
19298 }
19299
19300 # Quote evaled strings.
19301 for var in SHELL \
19302 ECHO \
19303 PATH_SEPARATOR \
19304 SED \
19305 GREP \
19306 EGREP \
19307 FGREP \
19308 LD \
19309 NM \
19310 LN_S \
19311 lt_SP2NL \
19312 lt_NL2SP \
19313 reload_flag \
19314 OBJDUMP \
19315 deplibs_check_method \
19316 file_magic_cmd \
19317 file_magic_glob \
19318 want_nocaseglob \
19319 DLLTOOL \
19320 sharedlib_from_linklib_cmd \
19321 AR \
19322 AR_FLAGS \
19323 archiver_list_spec \
19324 STRIP \
19325 RANLIB \
19326 CC \
19327 CFLAGS \
19328 compiler \
19329 lt_cv_sys_global_symbol_pipe \
19330 lt_cv_sys_global_symbol_to_cdecl \
19331 lt_cv_sys_global_symbol_to_import \
19332 lt_cv_sys_global_symbol_to_c_name_address \
19333 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19334 lt_cv_nm_interface \
19335 nm_file_list_spec \
19336 lt_cv_truncate_bin \
19337 lt_prog_compiler_no_builtin_flag \
19338 lt_prog_compiler_pic \
19339 lt_prog_compiler_wl \
19340 lt_prog_compiler_static \
19341 lt_cv_prog_compiler_c_o \
19342 need_locks \
19343 MANIFEST_TOOL \
19344 DSYMUTIL \
19345 NMEDIT \
19346 LIPO \
19347 OTOOL \
19348 OTOOL64 \
19349 shrext_cmds \
19350 export_dynamic_flag_spec \
19351 whole_archive_flag_spec \
19352 compiler_needs_object \
19353 with_gnu_ld \
19354 allow_undefined_flag \
19355 no_undefined_flag \
19356 hardcode_libdir_flag_spec \
19357 hardcode_libdir_separator \
19358 exclude_expsyms \
19359 include_expsyms \
19360 file_list_spec \
19361 variables_saved_for_relink \
19362 libname_spec \
19363 library_names_spec \
19364 soname_spec \
19365 install_override_mode \
19366 finish_eval \
19367 old_striplib \
19368 striplib; do
19369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19370 *[\\\\\\\`\\"\\\$]*)
19371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19372 ;;
19373 *)
19374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19375 ;;
19376 esac
19377 done
19378
19379 # Double-quote double-evaled strings.
19380 for var in reload_cmds \
19381 old_postinstall_cmds \
19382 old_postuninstall_cmds \
19383 old_archive_cmds \
19384 extract_expsyms_cmds \
19385 old_archive_from_new_cmds \
19386 old_archive_from_expsyms_cmds \
19387 archive_cmds \
19388 archive_expsym_cmds \
19389 module_cmds \
19390 module_expsym_cmds \
19391 export_symbols_cmds \
19392 prelink_cmds \
19393 postlink_cmds \
19394 postinstall_cmds \
19395 postuninstall_cmds \
19396 finish_cmds \
19397 sys_lib_search_path_spec \
19398 configure_time_dlsearch_path \
19399 configure_time_lt_sys_library_path; do
19400 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19401 *[\\\\\\\`\\"\\\$]*)
19402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19403 ;;
19404 *)
19405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19406 ;;
19407 esac
19408 done
19409
19410 ac_aux_dir='$ac_aux_dir'
19411
19412 # See if we are running on zsh, and set the options that allow our
19413 # commands through without removal of \ escapes INIT.
19414 if test -n "\${ZSH_VERSION+set}"; then
19415 setopt NO_GLOB_SUBST
19416 fi
19417
19418
19419 PACKAGE='$PACKAGE'
19420 VERSION='$VERSION'
19421 RM='$RM'
19422 ofile='$ofile'
19423
19424
19425
19426
19427 _ACEOF
19428
19429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19430
19431 # Handling of arguments.
19432 for ac_config_target in $ac_config_targets
19433 do
19434 case $ac_config_target in
19435 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19436 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19437 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19438 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19439 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19440 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19441 "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
19442
19443 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19444 esac
19445 done
19446
19447
19448 # If the user did not use the arguments to specify the items to instantiate,
19449 # then the envvar interface is used. Set only those that are not.
19450 # We use the long form for the default assignment because of an extremely
19451 # bizarre bug on SunOS 4.1.3.
19452 if $ac_need_defaults; then
19453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19455 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19456 fi
19457
19458 # Have a temporary directory for convenience. Make it in the build tree
19459 # simply because there is no reason against having it here, and in addition,
19460 # creating and moving files from /tmp can sometimes cause problems.
19461 # Hook for its removal unless debugging.
19462 # Note that there is a small window in which the directory will not be cleaned:
19463 # after its creation but before its name has been assigned to `$tmp'.
19464 $debug ||
19465 {
19466 tmp= ac_tmp=
19467 trap 'exit_status=$?
19468 : "${ac_tmp:=$tmp}"
19469 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19470 ' 0
19471 trap 'as_fn_exit 1' 1 2 13 15
19472 }
19473 # Create a (secure) tmp directory for tmp files.
19474
19475 {
19476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19477 test -d "$tmp"
19478 } ||
19479 {
19480 tmp=./conf$$-$RANDOM
19481 (umask 077 && mkdir "$tmp")
19482 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19483 ac_tmp=$tmp
19484
19485 # Set up the scripts for CONFIG_FILES section.
19486 # No need to generate them if there are no CONFIG_FILES.
19487 # This happens for instance with `./config.status config.h'.
19488 if test -n "$CONFIG_FILES"; then
19489
19490
19491 ac_cr=`echo X | tr X '\015'`
19492 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19493 # But we know of no other shell where ac_cr would be empty at this
19494 # point, so we can use a bashism as a fallback.
19495 if test "x$ac_cr" = x; then
19496 eval ac_cr=\$\'\\r\'
19497 fi
19498 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19499 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19500 ac_cs_awk_cr='\\r'
19501 else
19502 ac_cs_awk_cr=$ac_cr
19503 fi
19504
19505 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19506 _ACEOF
19507
19508
19509 {
19510 echo "cat >conf$$subs.awk <<_ACEOF" &&
19511 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19512 echo "_ACEOF"
19513 } >conf$$subs.sh ||
19514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19515 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19516 ac_delim='%!_!# '
19517 for ac_last_try in false false false false false :; do
19518 . ./conf$$subs.sh ||
19519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19520
19521 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19522 if test $ac_delim_n = $ac_delim_num; then
19523 break
19524 elif $ac_last_try; then
19525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19526 else
19527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19528 fi
19529 done
19530 rm -f conf$$subs.sh
19531
19532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19533 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19534 _ACEOF
19535 sed -n '
19536 h
19537 s/^/S["/; s/!.*/"]=/
19538 p
19539 g
19540 s/^[^!]*!//
19541 :repl
19542 t repl
19543 s/'"$ac_delim"'$//
19544 t delim
19545 :nl
19546 h
19547 s/\(.\{148\}\)..*/\1/
19548 t more1
19549 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19550 p
19551 n
19552 b repl
19553 :more1
19554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19555 p
19556 g
19557 s/.\{148\}//
19558 t nl
19559 :delim
19560 h
19561 s/\(.\{148\}\)..*/\1/
19562 t more2
19563 s/["\\]/\\&/g; s/^/"/; s/$/"/
19564 p
19565 b
19566 :more2
19567 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19568 p
19569 g
19570 s/.\{148\}//
19571 t delim
19572 ' <conf$$subs.awk | sed '
19573 /^[^""]/{
19574 N
19575 s/\n//
19576 }
19577 ' >>$CONFIG_STATUS || ac_write_fail=1
19578 rm -f conf$$subs.awk
19579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19580 _ACAWK
19581 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19582 for (key in S) S_is_set[key] = 1
19583 FS = ""
19584
19585 }
19586 {
19587 line = $ 0
19588 nfields = split(line, field, "@")
19589 substed = 0
19590 len = length(field[1])
19591 for (i = 2; i < nfields; i++) {
19592 key = field[i]
19593 keylen = length(key)
19594 if (S_is_set[key]) {
19595 value = S[key]
19596 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19597 len += length(value) + length(field[++i])
19598 substed = 1
19599 } else
19600 len += 1 + keylen
19601 }
19602
19603 print line
19604 }
19605
19606 _ACAWK
19607 _ACEOF
19608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19609 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19610 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19611 else
19612 cat
19613 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19614 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19615 _ACEOF
19616
19617 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19618 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19619 # trailing colons and then remove the whole line if VPATH becomes empty
19620 # (actually we leave an empty line to preserve line numbers).
19621 if test "x$srcdir" = x.; then
19622 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19623 h
19624 s///
19625 s/^/:/
19626 s/[ ]*$/:/
19627 s/:\$(srcdir):/:/g
19628 s/:\${srcdir}:/:/g
19629 s/:@srcdir@:/:/g
19630 s/^:*//
19631 s/:*$//
19632 x
19633 s/\(=[ ]*\).*/\1/
19634 G
19635 s/\n//
19636 s/^[^=]*=[ ]*$//
19637 }'
19638 fi
19639
19640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19641 fi # test -n "$CONFIG_FILES"
19642
19643 # Set up the scripts for CONFIG_HEADERS section.
19644 # No need to generate them if there are no CONFIG_HEADERS.
19645 # This happens for instance with `./config.status Makefile'.
19646 if test -n "$CONFIG_HEADERS"; then
19647 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19648 BEGIN {
19649 _ACEOF
19650
19651 # Transform confdefs.h into an awk script `defines.awk', embedded as
19652 # here-document in config.status, that substitutes the proper values into
19653 # config.h.in to produce config.h.
19654
19655 # Create a delimiter string that does not exist in confdefs.h, to ease
19656 # handling of long lines.
19657 ac_delim='%!_!# '
19658 for ac_last_try in false false :; do
19659 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19660 if test -z "$ac_tt"; then
19661 break
19662 elif $ac_last_try; then
19663 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19664 else
19665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19666 fi
19667 done
19668
19669 # For the awk script, D is an array of macro values keyed by name,
19670 # likewise P contains macro parameters if any. Preserve backslash
19671 # newline sequences.
19672
19673 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19674 sed -n '
19675 s/.\{148\}/&'"$ac_delim"'/g
19676 t rset
19677 :rset
19678 s/^[ ]*#[ ]*define[ ][ ]*/ /
19679 t def
19680 d
19681 :def
19682 s/\\$//
19683 t bsnl
19684 s/["\\]/\\&/g
19685 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19686 D["\1"]=" \3"/p
19687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19688 d
19689 :bsnl
19690 s/["\\]/\\&/g
19691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19692 D["\1"]=" \3\\\\\\n"\\/p
19693 t cont
19694 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19695 t cont
19696 d
19697 :cont
19698 n
19699 s/.\{148\}/&'"$ac_delim"'/g
19700 t clear
19701 :clear
19702 s/\\$//
19703 t bsnlc
19704 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19705 d
19706 :bsnlc
19707 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19708 b cont
19709 ' <confdefs.h | sed '
19710 s/'"$ac_delim"'/"\\\
19711 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19712
19713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19714 for (key in D) D_is_set[key] = 1
19715 FS = ""
19716 }
19717 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19718 line = \$ 0
19719 split(line, arg, " ")
19720 if (arg[1] == "#") {
19721 defundef = arg[2]
19722 mac1 = arg[3]
19723 } else {
19724 defundef = substr(arg[1], 2)
19725 mac1 = arg[2]
19726 }
19727 split(mac1, mac2, "(") #)
19728 macro = mac2[1]
19729 prefix = substr(line, 1, index(line, defundef) - 1)
19730 if (D_is_set[macro]) {
19731 # Preserve the white space surrounding the "#".
19732 print prefix "define", macro P[macro] D[macro]
19733 next
19734 } else {
19735 # Replace #undef with comments. This is necessary, for example,
19736 # in the case of _POSIX_SOURCE, which is predefined and required
19737 # on some systems where configure will not decide to define it.
19738 if (defundef == "undef") {
19739 print "/*", prefix defundef, macro, "*/"
19740 next
19741 }
19742 }
19743 }
19744 { print }
19745 _ACAWK
19746 _ACEOF
19747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19748 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19749 fi # test -n "$CONFIG_HEADERS"
19750
19751
19752 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19753 shift
19754 for ac_tag
19755 do
19756 case $ac_tag in
19757 :[FHLC]) ac_mode=$ac_tag; continue;;
19758 esac
19759 case $ac_mode$ac_tag in
19760 :[FHL]*:*);;
19761 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19762 :[FH]-) ac_tag=-:-;;
19763 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19764 esac
19765 ac_save_IFS=$IFS
19766 IFS=:
19767 set x $ac_tag
19768 IFS=$ac_save_IFS
19769 shift
19770 ac_file=$1
19771 shift
19772
19773 case $ac_mode in
19774 :L) ac_source=$1;;
19775 :[FH])
19776 ac_file_inputs=
19777 for ac_f
19778 do
19779 case $ac_f in
19780 -) ac_f="$ac_tmp/stdin";;
19781 *) # Look for the file first in the build tree, then in the source tree
19782 # (if the path is not absolute). The absolute path cannot be DOS-style,
19783 # because $ac_f cannot contain `:'.
19784 test -f "$ac_f" ||
19785 case $ac_f in
19786 [\\/$]*) false;;
19787 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19788 esac ||
19789 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19790 esac
19791 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19792 as_fn_append ac_file_inputs " '$ac_f'"
19793 done
19794
19795 # Let's still pretend it is `configure' which instantiates (i.e., don't
19796 # use $as_me), people would be surprised to read:
19797 # /* config.h. Generated by config.status. */
19798 configure_input='Generated from '`
19799 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19800 `' by configure.'
19801 if test x"$ac_file" != x-; then
19802 configure_input="$ac_file. $configure_input"
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19804 $as_echo "$as_me: creating $ac_file" >&6;}
19805 fi
19806 # Neutralize special characters interpreted by sed in replacement strings.
19807 case $configure_input in #(
19808 *\&* | *\|* | *\\* )
19809 ac_sed_conf_input=`$as_echo "$configure_input" |
19810 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19811 *) ac_sed_conf_input=$configure_input;;
19812 esac
19813
19814 case $ac_tag in
19815 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19817 esac
19818 ;;
19819 esac
19820
19821 ac_dir=`$as_dirname -- "$ac_file" ||
19822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19823 X"$ac_file" : 'X\(//\)[^/]' \| \
19824 X"$ac_file" : 'X\(//\)$' \| \
19825 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19826 $as_echo X"$ac_file" |
19827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19828 s//\1/
19829 q
19830 }
19831 /^X\(\/\/\)[^/].*/{
19832 s//\1/
19833 q
19834 }
19835 /^X\(\/\/\)$/{
19836 s//\1/
19837 q
19838 }
19839 /^X\(\/\).*/{
19840 s//\1/
19841 q
19842 }
19843 s/.*/./; q'`
19844 as_dir="$ac_dir"; as_fn_mkdir_p
19845 ac_builddir=.
19846
19847 case "$ac_dir" in
19848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19849 *)
19850 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19851 # A ".." for each directory in $ac_dir_suffix.
19852 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19853 case $ac_top_builddir_sub in
19854 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19855 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19856 esac ;;
19857 esac
19858 ac_abs_top_builddir=$ac_pwd
19859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19860 # for backward compatibility:
19861 ac_top_builddir=$ac_top_build_prefix
19862
19863 case $srcdir in
19864 .) # We are building in place.
19865 ac_srcdir=.
19866 ac_top_srcdir=$ac_top_builddir_sub
19867 ac_abs_top_srcdir=$ac_pwd ;;
19868 [\\/]* | ?:[\\/]* ) # Absolute name.
19869 ac_srcdir=$srcdir$ac_dir_suffix;
19870 ac_top_srcdir=$srcdir
19871 ac_abs_top_srcdir=$srcdir ;;
19872 *) # Relative name.
19873 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19874 ac_top_srcdir=$ac_top_build_prefix$srcdir
19875 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19876 esac
19877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19878
19879
19880 case $ac_mode in
19881 :F)
19882 #
19883 # CONFIG_FILE
19884 #
19885
19886 case $INSTALL in
19887 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19888 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19889 esac
19890 ac_MKDIR_P=$MKDIR_P
19891 case $MKDIR_P in
19892 [\\/$]* | ?:[\\/]* ) ;;
19893 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19894 esac
19895 _ACEOF
19896
19897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19898 # If the template does not know about datarootdir, expand it.
19899 # FIXME: This hack should be removed a few years after 2.60.
19900 ac_datarootdir_hack=; ac_datarootdir_seen=
19901 ac_sed_dataroot='
19902 /datarootdir/ {
19903 p
19904 q
19905 }
19906 /@datadir@/p
19907 /@docdir@/p
19908 /@infodir@/p
19909 /@localedir@/p
19910 /@mandir@/p'
19911 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19912 *datarootdir*) ac_datarootdir_seen=yes;;
19913 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19915 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19916 _ACEOF
19917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19918 ac_datarootdir_hack='
19919 s&@datadir@&$datadir&g
19920 s&@docdir@&$docdir&g
19921 s&@infodir@&$infodir&g
19922 s&@localedir@&$localedir&g
19923 s&@mandir@&$mandir&g
19924 s&\\\${datarootdir}&$datarootdir&g' ;;
19925 esac
19926 _ACEOF
19927
19928 # Neutralize VPATH when `$srcdir' = `.'.
19929 # Shell code in configure.ac might set extrasub.
19930 # FIXME: do we really want to maintain this feature?
19931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19932 ac_sed_extra="$ac_vpsub
19933 $extrasub
19934 _ACEOF
19935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19936 :t
19937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19938 s|@configure_input@|$ac_sed_conf_input|;t t
19939 s&@top_builddir@&$ac_top_builddir_sub&;t t
19940 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19941 s&@srcdir@&$ac_srcdir&;t t
19942 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19943 s&@top_srcdir@&$ac_top_srcdir&;t t
19944 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19945 s&@builddir@&$ac_builddir&;t t
19946 s&@abs_builddir@&$ac_abs_builddir&;t t
19947 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19948 s&@INSTALL@&$ac_INSTALL&;t t
19949 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19950 $ac_datarootdir_hack
19951 "
19952 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19953 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19954
19955 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19956 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19957 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19958 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19960 which seems to be undefined. Please make sure it is defined" >&5
19961 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19962 which seems to be undefined. Please make sure it is defined" >&2;}
19963
19964 rm -f "$ac_tmp/stdin"
19965 case $ac_file in
19966 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19967 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19968 esac \
19969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19970 ;;
19971 :H)
19972 #
19973 # CONFIG_HEADER
19974 #
19975 if test x"$ac_file" != x-; then
19976 {
19977 $as_echo "/* $configure_input */" \
19978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19979 } >"$ac_tmp/config.h" \
19980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19981 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19983 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19984 else
19985 rm -f "$ac_file"
19986 mv "$ac_tmp/config.h" "$ac_file" \
19987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19988 fi
19989 else
19990 $as_echo "/* $configure_input */" \
19991 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19992 || as_fn_error $? "could not create -" "$LINENO" 5
19993 fi
19994 # Compute "$ac_file"'s index in $config_headers.
19995 _am_arg="$ac_file"
19996 _am_stamp_count=1
19997 for _am_header in $config_headers :; do
19998 case $_am_header in
19999 $_am_arg | $_am_arg:* )
20000 break ;;
20001 * )
20002 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20003 esac
20004 done
20005 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20006 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20007 X"$_am_arg" : 'X\(//\)[^/]' \| \
20008 X"$_am_arg" : 'X\(//\)$' \| \
20009 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20010 $as_echo X"$_am_arg" |
20011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20012 s//\1/
20013 q
20014 }
20015 /^X\(\/\/\)[^/].*/{
20016 s//\1/
20017 q
20018 }
20019 /^X\(\/\/\)$/{
20020 s//\1/
20021 q
20022 }
20023 /^X\(\/\).*/{
20024 s//\1/
20025 q
20026 }
20027 s/.*/./; q'`/stamp-h$_am_stamp_count
20028 ;;
20029
20030 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20031 $as_echo "$as_me: executing $ac_file commands" >&6;}
20032 ;;
20033 esac
20034
20035
20036 case $ac_file$ac_mode in
20037 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20038 # Older Autoconf quotes --file arguments for eval, but not when files
20039 # are listed without --file. Let's play safe and only enable the eval
20040 # if we detect the quoting.
20041 case $CONFIG_FILES in
20042 *\'*) eval set x "$CONFIG_FILES" ;;
20043 *) set x $CONFIG_FILES ;;
20044 esac
20045 shift
20046 for mf
20047 do
20048 # Strip MF so we end up with the name of the file.
20049 mf=`echo "$mf" | sed -e 's/:.*$//'`
20050 # Check whether this is an Automake generated Makefile or not.
20051 # We used to match only the files named 'Makefile.in', but
20052 # some people rename them; so instead we look at the file content.
20053 # Grep'ing the first line is not enough: some people post-process
20054 # each Makefile.in and add a new line on top of each file to say so.
20055 # Grep'ing the whole file is not good either: AIX grep has a line
20056 # limit of 2048, but all sed's we know have understand at least 4000.
20057 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20058 dirpart=`$as_dirname -- "$mf" ||
20059 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20060 X"$mf" : 'X\(//\)[^/]' \| \
20061 X"$mf" : 'X\(//\)$' \| \
20062 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20063 $as_echo X"$mf" |
20064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20065 s//\1/
20066 q
20067 }
20068 /^X\(\/\/\)[^/].*/{
20069 s//\1/
20070 q
20071 }
20072 /^X\(\/\/\)$/{
20073 s//\1/
20074 q
20075 }
20076 /^X\(\/\).*/{
20077 s//\1/
20078 q
20079 }
20080 s/.*/./; q'`
20081 else
20082 continue
20083 fi
20084 # Extract the definition of DEPDIR, am__include, and am__quote
20085 # from the Makefile without running 'make'.
20086 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20087 test -z "$DEPDIR" && continue
20088 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20089 test -z "$am__include" && continue
20090 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20091 # Find all dependency output files, they are included files with
20092 # $(DEPDIR) in their names. We invoke sed twice because it is the
20093 # simplest approach to changing $(DEPDIR) to its actual value in the
20094 # expansion.
20095 for file in `sed -n "
20096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20098 # Make sure the directory exists.
20099 test -f "$dirpart/$file" && continue
20100 fdir=`$as_dirname -- "$file" ||
20101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20102 X"$file" : 'X\(//\)[^/]' \| \
20103 X"$file" : 'X\(//\)$' \| \
20104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20105 $as_echo X"$file" |
20106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20107 s//\1/
20108 q
20109 }
20110 /^X\(\/\/\)[^/].*/{
20111 s//\1/
20112 q
20113 }
20114 /^X\(\/\/\)$/{
20115 s//\1/
20116 q
20117 }
20118 /^X\(\/\).*/{
20119 s//\1/
20120 q
20121 }
20122 s/.*/./; q'`
20123 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20124 # echo "creating $dirpart/$file"
20125 echo '# dummy' > "$dirpart/$file"
20126 done
20127 done
20128 }
20129 ;;
20130 "libtool":C)
20131
20132 # See if we are running on zsh, and set the options that allow our
20133 # commands through without removal of \ escapes.
20134 if test -n "${ZSH_VERSION+set}"; then
20135 setopt NO_GLOB_SUBST
20136 fi
20137
20138 cfgfile=${ofile}T
20139 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20140 $RM "$cfgfile"
20141
20142 cat <<_LT_EOF >> "$cfgfile"
20143 #! $SHELL
20144 # Generated automatically by $as_me ($PACKAGE) $VERSION
20145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20147
20148 # Provide generalized library-building support services.
20149 # Written by Gordon Matzigkeit, 1996
20150
20151 # Copyright (C) 2014 Free Software Foundation, Inc.
20152 # This is free software; see the source for copying conditions. There is NO
20153 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20154
20155 # GNU Libtool is free software; you can redistribute it and/or modify
20156 # it under the terms of the GNU General Public License as published by
20157 # the Free Software Foundation; either version 2 of of the License, or
20158 # (at your option) any later version.
20159 #
20160 # As a special exception to the GNU General Public License, if you
20161 # distribute this file as part of a program or library that is built
20162 # using GNU Libtool, you may include this file under the same
20163 # distribution terms that you use for the rest of that program.
20164 #
20165 # GNU Libtool is distributed in the hope that it will be useful, but
20166 # WITHOUT ANY WARRANTY; without even the implied warranty of
20167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20168 # GNU General Public License for more details.
20169 #
20170 # You should have received a copy of the GNU General Public License
20171 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20172
20173
20174 # The names of the tagged configurations supported by this script.
20175 available_tags=''
20176
20177 # Configured defaults for sys_lib_dlsearch_path munging.
20178 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20179
20180 # ### BEGIN LIBTOOL CONFIG
20181
20182 # Which release of libtool.m4 was used?
20183 macro_version=$macro_version
20184 macro_revision=$macro_revision
20185
20186 # Whether or not to build shared libraries.
20187 build_libtool_libs=$enable_shared
20188
20189 # Whether or not to build static libraries.
20190 build_old_libs=$enable_static
20191
20192 # What type of objects to build.
20193 pic_mode=$pic_mode
20194
20195 # Whether or not to optimize for fast installation.
20196 fast_install=$enable_fast_install
20197
20198 # Shared archive member basename,for filename based shared library versioning on AIX.
20199 shared_archive_member_spec=$shared_archive_member_spec
20200
20201 # Shell to use when invoking shell scripts.
20202 SHELL=$lt_SHELL
20203
20204 # An echo program that protects backslashes.
20205 ECHO=$lt_ECHO
20206
20207 # The PATH separator for the build system.
20208 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20209
20210 # The host system.
20211 host_alias=$host_alias
20212 host=$host
20213 host_os=$host_os
20214
20215 # The build system.
20216 build_alias=$build_alias
20217 build=$build
20218 build_os=$build_os
20219
20220 # A sed program that does not truncate output.
20221 SED=$lt_SED
20222
20223 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20224 Xsed="\$SED -e 1s/^X//"
20225
20226 # A grep program that handles long lines.
20227 GREP=$lt_GREP
20228
20229 # An ERE matcher.
20230 EGREP=$lt_EGREP
20231
20232 # A literal string matcher.
20233 FGREP=$lt_FGREP
20234
20235 # A BSD- or MS-compatible name lister.
20236 NM=$lt_NM
20237
20238 # Whether we need soft or hard links.
20239 LN_S=$lt_LN_S
20240
20241 # What is the maximum length of a command?
20242 max_cmd_len=$max_cmd_len
20243
20244 # Object file suffix (normally "o").
20245 objext=$ac_objext
20246
20247 # Executable file suffix (normally "").
20248 exeext=$exeext
20249
20250 # whether the shell understands "unset".
20251 lt_unset=$lt_unset
20252
20253 # turn spaces into newlines.
20254 SP2NL=$lt_lt_SP2NL
20255
20256 # turn newlines into spaces.
20257 NL2SP=$lt_lt_NL2SP
20258
20259 # convert \$build file names to \$host format.
20260 to_host_file_cmd=$lt_cv_to_host_file_cmd
20261
20262 # convert \$build files to toolchain format.
20263 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20264
20265 # An object symbol dumper.
20266 OBJDUMP=$lt_OBJDUMP
20267
20268 # Method to check whether dependent libraries are shared objects.
20269 deplibs_check_method=$lt_deplibs_check_method
20270
20271 # Command to use when deplibs_check_method = "file_magic".
20272 file_magic_cmd=$lt_file_magic_cmd
20273
20274 # How to find potential files when deplibs_check_method = "file_magic".
20275 file_magic_glob=$lt_file_magic_glob
20276
20277 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20278 want_nocaseglob=$lt_want_nocaseglob
20279
20280 # DLL creation program.
20281 DLLTOOL=$lt_DLLTOOL
20282
20283 # Command to associate shared and link libraries.
20284 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20285
20286 # The archiver.
20287 AR=$lt_AR
20288
20289 # Flags to create an archive.
20290 AR_FLAGS=$lt_AR_FLAGS
20291
20292 # How to feed a file listing to the archiver.
20293 archiver_list_spec=$lt_archiver_list_spec
20294
20295 # A symbol stripping program.
20296 STRIP=$lt_STRIP
20297
20298 # Commands used to install an old-style archive.
20299 RANLIB=$lt_RANLIB
20300 old_postinstall_cmds=$lt_old_postinstall_cmds
20301 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20302
20303 # Whether to use a lock for old archive extraction.
20304 lock_old_archive_extraction=$lock_old_archive_extraction
20305
20306 # A C compiler.
20307 LTCC=$lt_CC
20308
20309 # LTCC compiler flags.
20310 LTCFLAGS=$lt_CFLAGS
20311
20312 # Take the output of nm and produce a listing of raw symbols and C names.
20313 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20314
20315 # Transform the output of nm in a proper C declaration.
20316 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20317
20318 # Transform the output of nm into a list of symbols to manually relocate.
20319 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20320
20321 # Transform the output of nm in a C name address pair.
20322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20323
20324 # Transform the output of nm in a C name address pair when lib prefix is needed.
20325 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20326
20327 # The name lister interface.
20328 nm_interface=$lt_lt_cv_nm_interface
20329
20330 # Specify filename containing input files for \$NM.
20331 nm_file_list_spec=$lt_nm_file_list_spec
20332
20333 # The root where to search for dependent libraries,and where our libraries should be installed.
20334 lt_sysroot=$lt_sysroot
20335
20336 # Command to truncate a binary pipe.
20337 lt_truncate_bin=$lt_lt_cv_truncate_bin
20338
20339 # The name of the directory that contains temporary libtool files.
20340 objdir=$objdir
20341
20342 # Used to examine libraries when file_magic_cmd begins with "file".
20343 MAGIC_CMD=$MAGIC_CMD
20344
20345 # Must we lock files when doing compilation?
20346 need_locks=$lt_need_locks
20347
20348 # Manifest tool.
20349 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20350
20351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20352 DSYMUTIL=$lt_DSYMUTIL
20353
20354 # Tool to change global to local symbols on Mac OS X.
20355 NMEDIT=$lt_NMEDIT
20356
20357 # Tool to manipulate fat objects and archives on Mac OS X.
20358 LIPO=$lt_LIPO
20359
20360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20361 OTOOL=$lt_OTOOL
20362
20363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20364 OTOOL64=$lt_OTOOL64
20365
20366 # Old archive suffix (normally "a").
20367 libext=$libext
20368
20369 # Shared library suffix (normally ".so").
20370 shrext_cmds=$lt_shrext_cmds
20371
20372 # The commands to extract the exported symbol list from a shared archive.
20373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20374
20375 # Variables whose values should be saved in libtool wrapper scripts and
20376 # restored at link time.
20377 variables_saved_for_relink=$lt_variables_saved_for_relink
20378
20379 # Do we need the "lib" prefix for modules?
20380 need_lib_prefix=$need_lib_prefix
20381
20382 # Do we need a version for libraries?
20383 need_version=$need_version
20384
20385 # Library versioning type.
20386 version_type=$version_type
20387
20388 # Shared library runtime path variable.
20389 runpath_var=$runpath_var
20390
20391 # Shared library path variable.
20392 shlibpath_var=$shlibpath_var
20393
20394 # Is shlibpath searched before the hard-coded library search path?
20395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20396
20397 # Format of library name prefix.
20398 libname_spec=$lt_libname_spec
20399
20400 # List of archive names. First name is the real one, the rest are links.
20401 # The last name is the one that the linker finds with -lNAME
20402 library_names_spec=$lt_library_names_spec
20403
20404 # The coded name of the library, if different from the real name.
20405 soname_spec=$lt_soname_spec
20406
20407 # Permission mode override for installation of shared libraries.
20408 install_override_mode=$lt_install_override_mode
20409
20410 # Command to use after installation of a shared archive.
20411 postinstall_cmds=$lt_postinstall_cmds
20412
20413 # Command to use after uninstallation of a shared archive.
20414 postuninstall_cmds=$lt_postuninstall_cmds
20415
20416 # Commands used to finish a libtool library installation in a directory.
20417 finish_cmds=$lt_finish_cmds
20418
20419 # As "finish_cmds", except a single script fragment to be evaled but
20420 # not shown.
20421 finish_eval=$lt_finish_eval
20422
20423 # Whether we should hardcode library paths into libraries.
20424 hardcode_into_libs=$hardcode_into_libs
20425
20426 # Compile-time system search path for libraries.
20427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20428
20429 # Detected run-time system search path for libraries.
20430 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20431
20432 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20433 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20434
20435 # Whether dlopen is supported.
20436 dlopen_support=$enable_dlopen
20437
20438 # Whether dlopen of programs is supported.
20439 dlopen_self=$enable_dlopen_self
20440
20441 # Whether dlopen of statically linked programs is supported.
20442 dlopen_self_static=$enable_dlopen_self_static
20443
20444 # Commands to strip libraries.
20445 old_striplib=$lt_old_striplib
20446 striplib=$lt_striplib
20447
20448
20449 # The linker used to build libraries.
20450 LD=$lt_LD
20451
20452 # How to create reloadable object files.
20453 reload_flag=$lt_reload_flag
20454 reload_cmds=$lt_reload_cmds
20455
20456 # Commands used to build an old-style archive.
20457 old_archive_cmds=$lt_old_archive_cmds
20458
20459 # A language specific compiler.
20460 CC=$lt_compiler
20461
20462 # Is the compiler the GNU compiler?
20463 with_gcc=$GCC
20464
20465 # Compiler flag to turn off builtin functions.
20466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20467
20468 # Additional compiler flags for building library objects.
20469 pic_flag=$lt_lt_prog_compiler_pic
20470
20471 # How to pass a linker flag through the compiler.
20472 wl=$lt_lt_prog_compiler_wl
20473
20474 # Compiler flag to prevent dynamic linking.
20475 link_static_flag=$lt_lt_prog_compiler_static
20476
20477 # Does compiler simultaneously support -c and -o options?
20478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20479
20480 # Whether or not to add -lc for building shared libraries.
20481 build_libtool_need_lc=$archive_cmds_need_lc
20482
20483 # Whether or not to disallow shared libs when runtime libs are static.
20484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20485
20486 # Compiler flag to allow reflexive dlopens.
20487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20488
20489 # Compiler flag to generate shared objects directly from archives.
20490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20491
20492 # Whether the compiler copes with passing no objects directly.
20493 compiler_needs_object=$lt_compiler_needs_object
20494
20495 # Create an old-style archive from a shared archive.
20496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20497
20498 # Create a temporary old-style archive to link instead of a shared archive.
20499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20500
20501 # Commands used to build a shared archive.
20502 archive_cmds=$lt_archive_cmds
20503 archive_expsym_cmds=$lt_archive_expsym_cmds
20504
20505 # Commands used to build a loadable module if different from building
20506 # a shared archive.
20507 module_cmds=$lt_module_cmds
20508 module_expsym_cmds=$lt_module_expsym_cmds
20509
20510 # Whether we are building with GNU ld or not.
20511 with_gnu_ld=$lt_with_gnu_ld
20512
20513 # Flag that allows shared libraries with undefined symbols to be built.
20514 allow_undefined_flag=$lt_allow_undefined_flag
20515
20516 # Flag that enforces no undefined symbols.
20517 no_undefined_flag=$lt_no_undefined_flag
20518
20519 # Flag to hardcode \$libdir into a binary during linking.
20520 # This must work even if \$libdir does not exist
20521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20522
20523 # Whether we need a single "-rpath" flag with a separated argument.
20524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20525
20526 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20527 # DIR into the resulting binary.
20528 hardcode_direct=$hardcode_direct
20529
20530 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20531 # DIR into the resulting binary and the resulting library dependency is
20532 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20533 # library is relocated.
20534 hardcode_direct_absolute=$hardcode_direct_absolute
20535
20536 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20537 # into the resulting binary.
20538 hardcode_minus_L=$hardcode_minus_L
20539
20540 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20541 # into the resulting binary.
20542 hardcode_shlibpath_var=$hardcode_shlibpath_var
20543
20544 # Set to "yes" if building a shared library automatically hardcodes DIR
20545 # into the library and all subsequent libraries and executables linked
20546 # against it.
20547 hardcode_automatic=$hardcode_automatic
20548
20549 # Set to yes if linker adds runtime paths of dependent libraries
20550 # to runtime path list.
20551 inherit_rpath=$inherit_rpath
20552
20553 # Whether libtool must link a program against all its dependency libraries.
20554 link_all_deplibs=$link_all_deplibs
20555
20556 # Set to "yes" if exported symbols are required.
20557 always_export_symbols=$always_export_symbols
20558
20559 # The commands to list exported symbols.
20560 export_symbols_cmds=$lt_export_symbols_cmds
20561
20562 # Symbols that should not be listed in the preloaded symbols.
20563 exclude_expsyms=$lt_exclude_expsyms
20564
20565 # Symbols that must always be exported.
20566 include_expsyms=$lt_include_expsyms
20567
20568 # Commands necessary for linking programs (against libraries) with templates.
20569 prelink_cmds=$lt_prelink_cmds
20570
20571 # Commands necessary for finishing linking programs.
20572 postlink_cmds=$lt_postlink_cmds
20573
20574 # Specify filename containing input files.
20575 file_list_spec=$lt_file_list_spec
20576
20577 # How to hardcode a shared library path into an executable.
20578 hardcode_action=$hardcode_action
20579
20580 # ### END LIBTOOL CONFIG
20581
20582 _LT_EOF
20583
20584 cat <<'_LT_EOF' >> "$cfgfile"
20585
20586 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20587
20588 # func_munge_path_list VARIABLE PATH
20589 # -----------------------------------
20590 # VARIABLE is name of variable containing _space_ separated list of
20591 # directories to be munged by the contents of PATH, which is string
20592 # having a format:
20593 # "DIR[:DIR]:"
20594 # string "DIR[ DIR]" will be prepended to VARIABLE
20595 # ":DIR[:DIR]"
20596 # string "DIR[ DIR]" will be appended to VARIABLE
20597 # "DIRP[:DIRP]::[DIRA:]DIRA"
20598 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20599 # "DIRA[ DIRA]" will be appended to VARIABLE
20600 # "DIR[:DIR]"
20601 # VARIABLE will be replaced by "DIR[ DIR]"
20602 func_munge_path_list ()
20603 {
20604 case x$2 in
20605 x)
20606 ;;
20607 *:)
20608 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20609 ;;
20610 x:*)
20611 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20612 ;;
20613 *::*)
20614 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20615 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20616 ;;
20617 *)
20618 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20619 ;;
20620 esac
20621 }
20622
20623
20624 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20625 func_cc_basename ()
20626 {
20627 for cc_temp in $*""; do
20628 case $cc_temp in
20629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20631 \-*) ;;
20632 *) break;;
20633 esac
20634 done
20635 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20636 }
20637
20638
20639 # ### END FUNCTIONS SHARED WITH CONFIGURE
20640
20641 _LT_EOF
20642
20643 case $host_os in
20644 aix3*)
20645 cat <<\_LT_EOF >> "$cfgfile"
20646 # AIX sometimes has problems with the GCC collect2 program. For some
20647 # reason, if we set the COLLECT_NAMES environment variable, the problems
20648 # vanish in a puff of smoke.
20649 if test set != "${COLLECT_NAMES+set}"; then
20650 COLLECT_NAMES=
20651 export COLLECT_NAMES
20652 fi
20653 _LT_EOF
20654 ;;
20655 esac
20656
20657
20658 ltmain=$ac_aux_dir/ltmain.sh
20659
20660
20661 # We use sed instead of cat because bash on DJGPP gets confused if
20662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20663 # text mode, it properly converts lines to CR/LF. This bash problem
20664 # is reportedly fixed, but why not run on old versions too?
20665 sed '$q' "$ltmain" >> "$cfgfile" \
20666 || (rm -f "$cfgfile"; exit 1)
20667
20668 mv -f "$cfgfile" "$ofile" ||
20669 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20670 chmod +x "$ofile"
20671
20672 ;;
20673
20674 esac
20675 done # for ac_tag
20676
20677
20678 as_fn_exit 0
20679 _ACEOF
20680 ac_clean_files=$ac_clean_files_save
20681
20682 test $ac_write_fail = 0 ||
20683 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20684
20685
20686 # configure is writing to config.log, and then calls config.status.
20687 # config.status does its own redirection, appending to config.log.
20688 # Unfortunately, on DOS this fails, as config.log is still kept open
20689 # by configure, so config.status won't be able to write to it; its
20690 # output is simply discarded. So we exec the FD to /dev/null,
20691 # effectively closing config.log, so it can be properly (re)opened and
20692 # appended to by config.status. When coming back to configure, we
20693 # need to make the FD available again.
20694 if test "$no_create" != yes; then
20695 ac_cs_success=:
20696 ac_config_status_args=
20697 test "$silent" = yes &&
20698 ac_config_status_args="$ac_config_status_args --quiet"
20699 exec 5>/dev/null
20700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20701 exec 5>>config.log
20702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20703 # would make configure fail if this is the last instruction.
20704 $ac_cs_success || as_fn_exit 1
20705 fi
20706 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20708 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20709 fi
20710
20711