configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXres 1.2.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='libXres'
624 PACKAGE_TARNAME='libXres'
625 PACKAGE_VERSION='1.2.2'
626 PACKAGE_STRING='libXres 1.2.2'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 XRES_LIBS
668 XRES_CFLAGS
669 XTMALLOC_ZERO_CFLAGS
670 XMALLOC_ZERO_CFLAGS
671 MALLOC_ZERO_CFLAGS
672 MAN_SUBSTS
673 XORG_MAN_PAGE
674 ADMIN_MAN_DIR
675 DRIVER_MAN_DIR
676 MISC_MAN_DIR
677 FILE_MAN_DIR
678 LIB_MAN_DIR
679 APP_MAN_DIR
680 ADMIN_MAN_SUFFIX
681 DRIVER_MAN_SUFFIX
682 MISC_MAN_SUFFIX
683 FILE_MAN_SUFFIX
684 LIB_MAN_SUFFIX
685 APP_MAN_SUFFIX
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 LT_SYS_LIBRARY_PATH
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 DLLTOOL
705 OBJDUMP
706 FILECMD
707 LN_S
708 NM
709 ac_ct_DUMPBIN
710 DUMPBIN
711 LD
712 FGREP
713 EGREP
714 GREP
715 SED
716 am__fastdepCC_FALSE
717 am__fastdepCC_TRUE
718 CCDEPMODE
719 am__nodep
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 LIBTOOL
741 AM_BACKSLASH
742 AM_DEFAULT_VERBOSITY
743 AM_DEFAULT_V
744 AM_V
745 CSCOPE
746 ETAGS
747 CTAGS
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 runstatedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL
810 am__quote'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 with_aix_soname
820 enable_dependency_tracking
821 with_gnu_ld
822 with_sysroot
823 enable_libtool_lock
824 enable_selective_werror
825 enable_strict_compilation
826 enable_malloc0returnsnull
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 LT_SYS_LIBRARY_PATH
837 PKG_CONFIG
838 PKG_CONFIG_PATH
839 PKG_CONFIG_LIBDIR
840 XRES_CFLAGS
841 XRES_LIBS'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: \`$ac_useropt'"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: \`$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -runstatedir | --runstatedir | --runstatedi | --runstated \
1132 | --runstate | --runstat | --runsta | --runst | --runs \
1133 | --run | --ru | --r)
1134 ac_prev=runstatedir ;;
1135 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137 | --run=* | --ru=* | --r=*)
1138 runstatedir=$ac_optarg ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: \`$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: \`$ac_useropt'"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir runstatedir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 printf "%s\n" X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures libXres 1.2.2 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libXres]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1445
1446 cat <<\_ACEOF
1447
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of libXres 1.2.2:";;
1462 esac
1463 cat <<\_ACEOF
1464
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-silent-rules less verbose build output (undo: "make V=1")
1470 --disable-silent-rules verbose build output (undo: "make V=0")
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --enable-dependency-tracking
1476 do not reject slow dependency extractors
1477 --disable-dependency-tracking
1478 speeds up one-time build
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --disable-selective-werror
1481 Turn off selective compiler errors. (default:
1482 enabled)
1483 --enable-strict-compilation
1484 Enable all warnings from compiler and make them
1485 errors (default: disabled)
1486 --enable-malloc0returnsnull
1487 malloc(0) returns NULL (default: auto)
1488
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1493 both]
1494 --with-aix-soname=aix|svr4|both
1495 shared library versioning (aka "SONAME") variant to
1496 provide on AIX, [default=aix].
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1499 compiler's sysroot if not specified).
1500
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 LT_SYS_LIBRARY_PATH
1510 User-defined run-time library search path.
1511 PKG_CONFIG path to pkg-config utility
1512 PKG_CONFIG_PATH
1513 directories to add to pkg-config's search path
1514 PKG_CONFIG_LIBDIR
1515 path overriding pkg-config's built-in search path
1516 XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1517 XRES_LIBS linker flags for XRES, overriding pkg-config
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" ||
1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 continue
1533 ac_builddir=.
1534
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1550
1551 case $srcdir in
1552 .) # We are building in place.
1553 ac_srcdir=.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1560 *) # Relative name.
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for configure.gnu first; this name is used for a wrapper for
1569 # Metaconfig's "Configure" on case-insensitive file systems.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1576 else
1577 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 fi || ac_status=$?
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1580 done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585 cat <<\_ACEOF
1586 libXres configure 1.2.2
1587 generated by GNU Autoconf 2.71
1588
1589 Copyright (C) 2021 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593 exit
1594 fi
1595
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1599
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext conftest.beam
1607 if { { ac_try="$ac_compile"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 printf "%s\n" "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext
1626 then :
1627 ac_retval=0
1628 else $as_nop
1629 printf "%s\n" "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633 fi
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_compile
1638
1639 # ac_fn_c_try_link LINENO
1640 # -----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_link ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1646 if { { ac_try="$ac_link"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 printf "%s\n" "$ac_try_echo"; } >&5
1653 (eval "$ac_link") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest$ac_exeext && {
1665 test "$cross_compiling" = yes ||
1666 test -x conftest$ac_exeext
1667 }
1668 then :
1669 ac_retval=0
1670 else $as_nop
1671 printf "%s\n" "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1677 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1678 # interfere with the next link command; also delete a directory that is
1679 # left behind by Apple's compiler. We do this before executing the actions.
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_link
1685
1686 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists and can be compiled using the include files in
1689 # INCLUDES, setting the cache variable VAR accordingly.
1690 ac_fn_c_check_header_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 printf %s "checking for $2... " >&6; }
1695 if eval test \${$3+y}
1696 then :
1697 printf %s "(cached) " >&6
1698 else $as_nop
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"
1705 then :
1706 eval "$3=yes"
1707 else $as_nop
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 printf "%s\n" "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 printf %s "checking for $2... " >&6; }
1727 if eval test \${$3+y}
1728 then :
1729 printf %s "(cached) " >&6
1730 else $as_nop
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1736
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below. */
1739
1740 #include <limits.h>
1741 #undef $2
1742
1743 /* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1746 #ifdef __cplusplus
1747 extern "C"
1748 #endif
1749 char $2 ();
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined __stub_$2 || defined __stub___$2
1754 choke me
1755 #endif
1756
1757 int
1758 main (void)
1759 {
1760 return $2 ();
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 if ac_fn_c_try_link "$LINENO"
1766 then :
1767 eval "$3=yes"
1768 else $as_nop
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1772 conftest$ac_exeext conftest.$ac_ext
1773 fi
1774 eval ac_res=\$$3
1775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 printf "%s\n" "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779 } # ac_fn_c_check_func
1780
1781 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1782 # ------------------------------------------------------------------
1783 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1784 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1785 ac_fn_check_decl ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 as_decl_name=`echo $2|sed 's/ *(.*//'`
1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1790 printf %s "checking whether $as_decl_name is declared... " >&6; }
1791 if eval test \${$3+y}
1792 then :
1793 printf %s "(cached) " >&6
1794 else $as_nop
1795 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1796 eval ac_save_FLAGS=\$$6
1797 as_fn_append $6 " $5"
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 int
1802 main (void)
1803 {
1804 #ifndef $as_decl_name
1805 #ifdef __cplusplus
1806 (void) $as_decl_use;
1807 #else
1808 (void) $as_decl_name;
1809 #endif
1810 #endif
1811
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"
1817 then :
1818 eval "$3=yes"
1819 else $as_nop
1820 eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1823 eval $6=\$ac_save_FLAGS
1824
1825 fi
1826 eval ac_res=\$$3
1827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 printf "%s\n" "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831 } # ac_fn_check_decl
1832
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1836 # executables *can* be run.
1837 ac_fn_c_try_run ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 printf "%s\n" "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1848 ac_status=$?
1849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 printf "%s\n" "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1858 ac_status=$?
1859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }
1861 then :
1862 ac_retval=0
1863 else $as_nop
1864 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1865 printf "%s\n" "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=$ac_status
1869 fi
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_run
1875 ac_configure_args_raw=
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 *\'*)
1880 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 esac
1882 as_fn_append ac_configure_args_raw " '$ac_arg'"
1883 done
1884
1885 case $ac_configure_args_raw in
1886 *$as_nl*)
1887 ac_safe_unquote= ;;
1888 *)
1889 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1890 ac_unsafe_a="$ac_unsafe_z#~"
1891 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1892 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1893 esac
1894
1895 cat >config.log <<_ACEOF
1896 This file contains any messages produced by compilers while
1897 running configure, to aid debugging if configure makes a mistake.
1898
1899 It was created by libXres $as_me 1.2.2, which was
1900 generated by GNU Autoconf 2.71. Invocation command line was
1901
1902 $ $0$ac_configure_args_raw
1903
1904 _ACEOF
1905 exec 5>>config.log
1906 {
1907 cat <<_ASUNAME
1908 ## --------- ##
1909 ## Platform. ##
1910 ## --------- ##
1911
1912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1920
1921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928
1929 _ASUNAME
1930
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934 IFS=$as_save_IFS
1935 case $as_dir in #(((
1936 '') as_dir=./ ;;
1937 */) ;;
1938 *) as_dir=$as_dir/ ;;
1939 esac
1940 printf "%s\n" "PATH: $as_dir"
1941 done
1942 IFS=$as_save_IFS
1943
1944 } >&5
1945
1946 cat >&5 <<_ACEOF
1947
1948
1949 ## ----------- ##
1950 ## Core tests. ##
1951 ## ----------- ##
1952
1953 _ACEOF
1954
1955
1956 # Keep a trace of the command line.
1957 # Strip out --no-create and --no-recursion so they do not pile up.
1958 # Strip out --silent because we don't want to record it for future runs.
1959 # Also quote any args containing shell meta-characters.
1960 # Make two passes to allow for proper duplicate-argument suppression.
1961 ac_configure_args=
1962 ac_configure_args0=
1963 ac_configure_args1=
1964 ac_must_keep_next=false
1965 for ac_pass in 1 2
1966 do
1967 for ac_arg
1968 do
1969 case $ac_arg in
1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972 | -silent | --silent | --silen | --sile | --sil)
1973 continue ;;
1974 *\'*)
1975 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 esac
1977 case $ac_pass in
1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979 2)
1980 as_fn_append ac_configure_args1 " '$ac_arg'"
1981 if test $ac_must_keep_next = true; then
1982 ac_must_keep_next=false # Got value, back to normal.
1983 else
1984 case $ac_arg in
1985 *=* | --config-cache | -C | -disable-* | --disable-* \
1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988 | -with-* | --with-* | -without-* | --without-* | --x)
1989 case "$ac_configure_args0 " in
1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991 esac
1992 ;;
1993 -* ) ac_must_keep_next=true ;;
1994 esac
1995 fi
1996 as_fn_append ac_configure_args " '$ac_arg'"
1997 ;;
1998 esac
1999 done
2000 done
2001 { ac_configure_args0=; unset ac_configure_args0;}
2002 { ac_configure_args1=; unset ac_configure_args1;}
2003
2004 # When interrupted or exit'd, cleanup temporary files, and complete
2005 # config.log. We remove comments because anyway the quotes in there
2006 # would cause problems or look ugly.
2007 # WARNING: Use '\'' to represent an apostrophe within the trap.
2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009 trap 'exit_status=$?
2010 # Sanitize IFS.
2011 IFS=" "" $as_nl"
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 printf "%s\n" "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021 (
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049 )
2050 echo
2051
2052 printf "%s\n" "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 printf "%s\n" "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 printf "%s\n" "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 printf "%s\n" "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
2083 printf "%s\n" "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 printf "%s\n" "$as_me: caught signal $ac_signal"
2092 printf "%s\n" "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097 ' 0
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2102
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2105
2106 printf "%s\n" "/* confdefs.h */" > confdefs.h
2107
2108 # Predefined preprocessor variables.
2109
2110 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2111
2112 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2113
2114 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2115
2116 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2117
2118 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2119
2120 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_files="$CONFIG_SITE"
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2129 else
2130 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2131 fi
2132
2133 for ac_site_file in $ac_site_files
2134 do
2135 case $ac_site_file in #(
2136 */*) :
2137 ;; #(
2138 *) :
2139 ac_site_file=./$ac_site_file ;;
2140 esac
2141 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2145 . "$ac_site_file" \
2146 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2148 as_fn_error $? "failed to load site script $ac_site_file
2149 See \`config.log' for more details" "$LINENO" 5; }
2150 fi
2151 done
2152
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special files
2155 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2159 case $cache_file in
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2162 esac
2163 fi
2164 else
2165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2167 >$cache_file
2168 fi
2169
2170 # Test code for whether the C compiler supports C89 (global declarations)
2171 ac_c_conftest_c89_globals='
2172 /* Does the compiler advertise C89 conformance?
2173 Do not test the value of __STDC__, because some compilers set it to 0
2174 while being otherwise adequately conformant. */
2175 #if !defined __STDC__
2176 # error "Compiler does not advertise C89 conformance"
2177 #endif
2178
2179 #include <stddef.h>
2180 #include <stdarg.h>
2181 struct stat;
2182 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2183 struct buf { int x; };
2184 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2185 static char *e (p, i)
2186 char **p;
2187 int i;
2188 {
2189 return p[i];
2190 }
2191 static char *f (char * (*g) (char **, int), char **p, ...)
2192 {
2193 char *s;
2194 va_list v;
2195 va_start (v,p);
2196 s = g (p, va_arg (v,int));
2197 va_end (v);
2198 return s;
2199 }
2200
2201 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2202 function prototypes and stuff, but not \xHH hex character constants.
2203 These do not provoke an error unfortunately, instead are silently treated
2204 as an "x". The following induces an error, until -std is added to get
2205 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2206 array size at least. It is necessary to write \x00 == 0 to get something
2207 that is true only with -std. */
2208 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2209
2210 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2211 inside strings and character constants. */
2212 #define FOO(x) '\''x'\''
2213 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2214
2215 int test (int i, double x);
2216 struct s1 {int (*f) (int a);};
2217 struct s2 {int (*f) (double a);};
2218 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2219 int, int);'
2220
2221 # Test code for whether the C compiler supports C89 (body of main).
2222 ac_c_conftest_c89_main='
2223 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2224 '
2225
2226 # Test code for whether the C compiler supports C99 (global declarations)
2227 ac_c_conftest_c99_globals='
2228 // Does the compiler advertise C99 conformance?
2229 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2230 # error "Compiler does not advertise C99 conformance"
2231 #endif
2232
2233 #include <stdbool.h>
2234 extern int puts (const char *);
2235 extern int printf (const char *, ...);
2236 extern int dprintf (int, const char *, ...);
2237 extern void *malloc (size_t);
2238
2239 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2240 // dprintf is used instead of fprintf to avoid needing to declare
2241 // FILE and stderr.
2242 #define debug(...) dprintf (2, __VA_ARGS__)
2243 #define showlist(...) puts (#__VA_ARGS__)
2244 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2245 static void
2246 test_varargs_macros (void)
2247 {
2248 int x = 1234;
2249 int y = 5678;
2250 debug ("Flag");
2251 debug ("X = %d\n", x);
2252 showlist (The first, second, and third items.);
2253 report (x>y, "x is %d but y is %d", x, y);
2254 }
2255
2256 // Check long long types.
2257 #define BIG64 18446744073709551615ull
2258 #define BIG32 4294967295ul
2259 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2260 #if !BIG_OK
2261 #error "your preprocessor is broken"
2262 #endif
2263 #if BIG_OK
2264 #else
2265 #error "your preprocessor is broken"
2266 #endif
2267 static long long int bignum = -9223372036854775807LL;
2268 static unsigned long long int ubignum = BIG64;
2269
2270 struct incomplete_array
2271 {
2272 int datasize;
2273 double data[];
2274 };
2275
2276 struct named_init {
2277 int number;
2278 const wchar_t *name;
2279 double average;
2280 };
2281
2282 typedef const char *ccp;
2283
2284 static inline int
2285 test_restrict (ccp restrict text)
2286 {
2287 // See if C++-style comments work.
2288 // Iterate through items via the restricted pointer.
2289 // Also check for declarations in for loops.
2290 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2291 continue;
2292 return 0;
2293 }
2294
2295 // Check varargs and va_copy.
2296 static bool
2297 test_varargs (const char *format, ...)
2298 {
2299 va_list args;
2300 va_start (args, format);
2301 va_list args_copy;
2302 va_copy (args_copy, args);
2303
2304 const char *str = "";
2305 int number = 0;
2306 float fnumber = 0;
2307
2308 while (*format)
2309 {
2310 switch (*format++)
2311 {
2312 case '\''s'\'': // string
2313 str = va_arg (args_copy, const char *);
2314 break;
2315 case '\''d'\'': // int
2316 number = va_arg (args_copy, int);
2317 break;
2318 case '\''f'\'': // float
2319 fnumber = va_arg (args_copy, double);
2320 break;
2321 default:
2322 break;
2323 }
2324 }
2325 va_end (args_copy);
2326 va_end (args);
2327
2328 return *str && number && fnumber;
2329 }
2330 '
2331
2332 # Test code for whether the C compiler supports C99 (body of main).
2333 ac_c_conftest_c99_main='
2334 // Check bool.
2335 _Bool success = false;
2336 success |= (argc != 0);
2337
2338 // Check restrict.
2339 if (test_restrict ("String literal") == 0)
2340 success = true;
2341 char *restrict newvar = "Another string";
2342
2343 // Check varargs.
2344 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2345 test_varargs_macros ();
2346
2347 // Check flexible array members.
2348 struct incomplete_array *ia =
2349 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2350 ia->datasize = 10;
2351 for (int i = 0; i < ia->datasize; ++i)
2352 ia->data[i] = i * 1.234;
2353
2354 // Check named initializers.
2355 struct named_init ni = {
2356 .number = 34,
2357 .name = L"Test wide string",
2358 .average = 543.34343,
2359 };
2360
2361 ni.number = 58;
2362
2363 int dynamic_array[ni.number];
2364 dynamic_array[0] = argv[0][0];
2365 dynamic_array[ni.number - 1] = 543;
2366
2367 // work around unused variable warnings
2368 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2369 || dynamic_array[ni.number - 1] != 543);
2370 '
2371
2372 # Test code for whether the C compiler supports C11 (global declarations)
2373 ac_c_conftest_c11_globals='
2374 // Does the compiler advertise C11 conformance?
2375 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2376 # error "Compiler does not advertise C11 conformance"
2377 #endif
2378
2379 // Check _Alignas.
2380 char _Alignas (double) aligned_as_double;
2381 char _Alignas (0) no_special_alignment;
2382 extern char aligned_as_int;
2383 char _Alignas (0) _Alignas (int) aligned_as_int;
2384
2385 // Check _Alignof.
2386 enum
2387 {
2388 int_alignment = _Alignof (int),
2389 int_array_alignment = _Alignof (int[100]),
2390 char_alignment = _Alignof (char)
2391 };
2392 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2393
2394 // Check _Noreturn.
2395 int _Noreturn does_not_return (void) { for (;;) continue; }
2396
2397 // Check _Static_assert.
2398 struct test_static_assert
2399 {
2400 int x;
2401 _Static_assert (sizeof (int) <= sizeof (long int),
2402 "_Static_assert does not work in struct");
2403 long int y;
2404 };
2405
2406 // Check UTF-8 literals.
2407 #define u8 syntax error!
2408 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2409
2410 // Check duplicate typedefs.
2411 typedef long *long_ptr;
2412 typedef long int *long_ptr;
2413 typedef long_ptr long_ptr;
2414
2415 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2416 struct anonymous
2417 {
2418 union {
2419 struct { int i; int j; };
2420 struct { int k; long int l; } w;
2421 };
2422 int m;
2423 } v1;
2424 '
2425
2426 # Test code for whether the C compiler supports C11 (body of main).
2427 ac_c_conftest_c11_main='
2428 _Static_assert ((offsetof (struct anonymous, i)
2429 == offsetof (struct anonymous, w.k)),
2430 "Anonymous union alignment botch");
2431 v1.i = 2;
2432 v1.w.k = 5;
2433 ok |= v1.i != 5;
2434 '
2435
2436 # Test code for whether the C compiler supports C11 (complete).
2437 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2438 ${ac_c_conftest_c99_globals}
2439 ${ac_c_conftest_c11_globals}
2440
2441 int
2442 main (int argc, char **argv)
2443 {
2444 int ok = 0;
2445 ${ac_c_conftest_c89_main}
2446 ${ac_c_conftest_c99_main}
2447 ${ac_c_conftest_c11_main}
2448 return ok;
2449 }
2450 "
2451
2452 # Test code for whether the C compiler supports C99 (complete).
2453 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2454 ${ac_c_conftest_c99_globals}
2455
2456 int
2457 main (int argc, char **argv)
2458 {
2459 int ok = 0;
2460 ${ac_c_conftest_c89_main}
2461 ${ac_c_conftest_c99_main}
2462 return ok;
2463 }
2464 "
2465
2466 # Test code for whether the C compiler supports C89 (complete).
2467 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2468
2469 int
2470 main (int argc, char **argv)
2471 {
2472 int ok = 0;
2473 ${ac_c_conftest_c89_main}
2474 return ok;
2475 }
2476 "
2477
2478 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2479 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2480 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2481 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2482 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2483 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2484 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2485 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2486 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2487
2488 # Auxiliary files required by this configure script.
2489 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2490
2491 # Locations in which to look for auxiliary files.
2492 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2493
2494 # Search for a directory containing all of the required auxiliary files,
2495 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2496 # If we don't find one directory that contains all the files we need,
2497 # we report the set of missing files from the *first* directory in
2498 # $ac_aux_dir_candidates and give up.
2499 ac_missing_aux_files=""
2500 ac_first_candidate=:
2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 as_found=false
2504 for as_dir in $ac_aux_dir_candidates
2505 do
2506 IFS=$as_save_IFS
2507 case $as_dir in #(((
2508 '') as_dir=./ ;;
2509 */) ;;
2510 *) as_dir=$as_dir/ ;;
2511 esac
2512 as_found=:
2513
2514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2515 ac_aux_dir_found=yes
2516 ac_install_sh=
2517 for ac_aux in $ac_aux_files
2518 do
2519 # As a special case, if "install-sh" is required, that requirement
2520 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2521 # and $ac_install_sh is set appropriately for whichever one is found.
2522 if test x"$ac_aux" = x"install-sh"
2523 then
2524 if test -f "${as_dir}install-sh"; then
2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2526 ac_install_sh="${as_dir}install-sh -c"
2527 elif test -f "${as_dir}install.sh"; then
2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2529 ac_install_sh="${as_dir}install.sh -c"
2530 elif test -f "${as_dir}shtool"; then
2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2532 ac_install_sh="${as_dir}shtool install -c"
2533 else
2534 ac_aux_dir_found=no
2535 if $ac_first_candidate; then
2536 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2537 else
2538 break
2539 fi
2540 fi
2541 else
2542 if test -f "${as_dir}${ac_aux}"; then
2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2544 else
2545 ac_aux_dir_found=no
2546 if $ac_first_candidate; then
2547 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2548 else
2549 break
2550 fi
2551 fi
2552 fi
2553 done
2554 if test "$ac_aux_dir_found" = yes; then
2555 ac_aux_dir="$as_dir"
2556 break
2557 fi
2558 ac_first_candidate=false
2559
2560 as_found=false
2561 done
2562 IFS=$as_save_IFS
2563 if $as_found
2564 then :
2565
2566 else $as_nop
2567 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2568 fi
2569
2570
2571 # These three variables are undocumented and unsupported,
2572 # and are intended to be withdrawn in a future Autoconf release.
2573 # They can cause serious problems if a builder's source tree is in a directory
2574 # whose full name contains unusual characters.
2575 if test -f "${ac_aux_dir}config.guess"; then
2576 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2577 fi
2578 if test -f "${ac_aux_dir}config.sub"; then
2579 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2580 fi
2581 if test -f "$ac_aux_dir/configure"; then
2582 ac_configure="$SHELL ${ac_aux_dir}configure"
2583 fi
2584
2585 # Check that the precious variables saved in the cache have kept the same
2586 # value.
2587 ac_cache_corrupted=false
2588 for ac_var in $ac_precious_vars; do
2589 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590 eval ac_new_set=\$ac_env_${ac_var}_set
2591 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592 eval ac_new_val=\$ac_env_${ac_var}_value
2593 case $ac_old_set,$ac_new_set in
2594 set,)
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2596 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,set)
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2600 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,);;
2603 *)
2604 if test "x$ac_old_val" != "x$ac_new_val"; then
2605 # differences in whitespace do not lead to failure.
2606 ac_old_val_w=`echo x $ac_old_val`
2607 ac_new_val_w=`echo x $ac_new_val`
2608 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2610 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2611 ac_cache_corrupted=:
2612 else
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2614 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2615 eval $ac_var=\$ac_old_val
2616 fi
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2618 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2620 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2621 fi;;
2622 esac
2623 # Pass precious variables to config.status.
2624 if test "$ac_new_set" = set; then
2625 case $ac_new_val in
2626 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2627 *) ac_arg=$ac_var=$ac_new_val ;;
2628 esac
2629 case " $ac_configure_args " in
2630 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2631 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2632 esac
2633 fi
2634 done
2635 if $ac_cache_corrupted; then
2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2639 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2640 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2641 and start over" "$LINENO" 5
2642 fi
2643 ## -------------------- ##
2644 ## Main body of script. ##
2645 ## -------------------- ##
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652
2653
2654
2655 ac_config_headers="$ac_config_headers config.h"
2656
2657
2658 # Initialize Automake
2659 am__api_version='1.16'
2660
2661
2662
2663 # Find a good install program. We prefer a C program (faster),
2664 # so one script is as good as another. But avoid the broken or
2665 # incompatible versions:
2666 # SysV /etc/install, /usr/sbin/install
2667 # SunOS /usr/etc/install
2668 # IRIX /sbin/install
2669 # AIX /bin/install
2670 # AmigaOS /C/install, which installs bootblocks on floppy discs
2671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2674 # OS/2's system install, which has a completely different semantic
2675 # ./install, which can be erroneously created by make from ./install.sh.
2676 # Reject install programs that cannot install multiple files.
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2678 printf %s "checking for a BSD-compatible install... " >&6; }
2679 if test -z "$INSTALL"; then
2680 if test ${ac_cv_path_install+y}
2681 then :
2682 printf %s "(cached) " >&6
2683 else $as_nop
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 case $as_dir in #(((
2689 '') as_dir=./ ;;
2690 */) ;;
2691 *) as_dir=$as_dir/ ;;
2692 esac
2693 # Account for fact that we put trailing slashes in our PATH walk.
2694 case $as_dir in #((
2695 ./ | /[cC]/* | \
2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2698 /usr/ucb/* ) ;;
2699 *)
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2702 # by default.
2703 for ac_prog in ginstall scoinst install; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2706 if test $ac_prog = install &&
2707 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2709 :
2710 elif test $ac_prog = install &&
2711 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2713 :
2714 else
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one > conftest.one
2717 echo two > conftest.two
2718 mkdir conftest.dir
2719 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2720 test -s conftest.one && test -s conftest.two &&
2721 test -s conftest.dir/conftest.one &&
2722 test -s conftest.dir/conftest.two
2723 then
2724 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2725 break 3
2726 fi
2727 fi
2728 fi
2729 done
2730 done
2731 ;;
2732 esac
2733
2734 done
2735 IFS=$as_save_IFS
2736
2737 rm -rf conftest.one conftest.two conftest.dir
2738
2739 fi
2740 if test ${ac_cv_path_install+y}; then
2741 INSTALL=$ac_cv_path_install
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2748 fi
2749 fi
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751 printf "%s\n" "$INSTALL" >&6; }
2752
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2758
2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2762 printf %s "checking whether build environment is sane... " >&6; }
2763 # Reject unsafe characters in $srcdir or the absolute working directory
2764 # name. Accept space and tab only in the latter.
2765 am_lf='
2766 '
2767 case `pwd` in
2768 *[\\\"\#\$\&\'\`$am_lf]*)
2769 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2770 esac
2771 case $srcdir in
2772 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2773 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2774 esac
2775
2776 # Do 'set' in a subshell so we don't clobber the current shell's
2777 # arguments. Must try -L first in case configure is actually a
2778 # symlink; some systems play weird games with the mod time of symlinks
2779 # (eg FreeBSD returns the mod time of the symlink's containing
2780 # directory).
2781 if (
2782 am_has_slept=no
2783 for am_try in 1 2; do
2784 echo "timestamp, slept: $am_has_slept" > conftest.file
2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2786 if test "$*" = "X"; then
2787 # -L didn't work.
2788 set X `ls -t "$srcdir/configure" conftest.file`
2789 fi
2790 if test "$*" != "X $srcdir/configure conftest.file" \
2791 && test "$*" != "X conftest.file $srcdir/configure"; then
2792
2793 # If neither matched, then we have a broken ls. This can happen
2794 # if, for instance, CONFIG_SHELL is bash and it inherits a
2795 # broken ls alias from the environment. This has actually
2796 # happened. Such a system could not be considered "sane".
2797 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2798 alias in your environment" "$LINENO" 5
2799 fi
2800 if test "$2" = conftest.file || test $am_try -eq 2; then
2801 break
2802 fi
2803 # Just in case.
2804 sleep 1
2805 am_has_slept=yes
2806 done
2807 test "$2" = conftest.file
2808 )
2809 then
2810 # Ok.
2811 :
2812 else
2813 as_fn_error $? "newly created file is older than distributed files!
2814 Check your system clock" "$LINENO" 5
2815 fi
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817 printf "%s\n" "yes" >&6; }
2818 # If we didn't sleep, we still need to ensure time stamps of config.status and
2819 # generated files are strictly newer.
2820 am_sleep_pid=
2821 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2822 ( sleep 1 ) &
2823 am_sleep_pid=$!
2824 fi
2825
2826 rm -f conftest.file
2827
2828 test "$program_prefix" != NONE &&
2829 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2830 # Use a double $ so make ignores it.
2831 test "$program_suffix" != NONE &&
2832 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2833 # Double any \ or $.
2834 # By default was `s,x,x', remove it if useless.
2835 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2836 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2837
2838
2839 # Expand $ac_aux_dir to an absolute path.
2840 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2841
2842
2843 if test x"${MISSING+set}" != xset; then
2844 MISSING="\${SHELL} '$am_aux_dir/missing'"
2845 fi
2846 # Use eval to expand $SHELL
2847 if eval "$MISSING --is-lightweight"; then
2848 am_missing_run="$MISSING "
2849 else
2850 am_missing_run=
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2852 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2853 fi
2854
2855 if test x"${install_sh+set}" != xset; then
2856 case $am_aux_dir in
2857 *\ * | *\ *)
2858 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2859 *)
2860 install_sh="\${SHELL} $am_aux_dir/install-sh"
2861 esac
2862 fi
2863
2864 # Installed binaries are usually stripped using 'strip' when the user
2865 # run "make install-strip". However 'strip' might not be the right
2866 # tool to use in cross-compilation environments, therefore Automake
2867 # will honor the 'STRIP' environment variable to overrule this program.
2868 if test "$cross_compiling" != no; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}strip; ac_word=$2
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 printf %s "checking for $ac_word... " >&6; }
2874 if test ${ac_cv_prog_STRIP+y}
2875 then :
2876 printf %s "(cached) " >&6
2877 else $as_nop
2878 if test -n "$STRIP"; then
2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 case $as_dir in #(((
2886 '') as_dir=./ ;;
2887 */) ;;
2888 *) as_dir=$as_dir/ ;;
2889 esac
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 STRIP=$ac_cv_prog_STRIP
2903 if test -n "$STRIP"; then
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905 printf "%s\n" "$STRIP" >&6; }
2906 else
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 printf "%s\n" "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 printf %s "checking for $ac_word... " >&6; }
2919 if test ${ac_cv_prog_ac_ct_STRIP+y}
2920 then :
2921 printf %s "(cached) " >&6
2922 else $as_nop
2923 if test -n "$ac_ct_STRIP"; then
2924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 case $as_dir in #(((
2931 '') as_dir=./ ;;
2932 */) ;;
2933 *) as_dir=$as_dir/ ;;
2934 esac
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_STRIP="strip"
2938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2948 if test -n "$ac_ct_STRIP"; then
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2950 printf "%s\n" "$ac_ct_STRIP" >&6; }
2951 else
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 printf "%s\n" "no" >&6; }
2954 fi
2955
2956 if test "x$ac_ct_STRIP" = x; then
2957 STRIP=":"
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 STRIP=$ac_ct_STRIP
2966 fi
2967 else
2968 STRIP="$ac_cv_prog_STRIP"
2969 fi
2970
2971 fi
2972 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2973
2974
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2976 printf %s "checking for a race-free mkdir -p... " >&6; }
2977 if test -z "$MKDIR_P"; then
2978 if test ${ac_cv_path_mkdir+y}
2979 then :
2980 printf %s "(cached) " >&6
2981 else $as_nop
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2984 do
2985 IFS=$as_save_IFS
2986 case $as_dir in #(((
2987 '') as_dir=./ ;;
2988 */) ;;
2989 *) as_dir=$as_dir/ ;;
2990 esac
2991 for ac_prog in mkdir gmkdir; do
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2994 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2995 'mkdir ('*'coreutils) '* | \
2996 'BusyBox '* | \
2997 'mkdir (fileutils) '4.1*)
2998 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2999 break 3;;
3000 esac
3001 done
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007
3008 test -d ./--version && rmdir ./--version
3009 if test ${ac_cv_path_mkdir+y}; then
3010 MKDIR_P="$ac_cv_path_mkdir -p"
3011 else
3012 # As a last resort, use the slow shell script. Don't cache a
3013 # value for MKDIR_P within a source directory, because that will
3014 # break other packages using the cache if that directory is
3015 # removed, or if the value is a relative name.
3016 MKDIR_P="$ac_install_sh -d"
3017 fi
3018 fi
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3020 printf "%s\n" "$MKDIR_P" >&6; }
3021
3022 for ac_prog in gawk mawk nawk awk
3023 do
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 printf %s "checking for $ac_word... " >&6; }
3028 if test ${ac_cv_prog_AWK+y}
3029 then :
3030 printf %s "(cached) " >&6
3031 else $as_nop
3032 if test -n "$AWK"; then
3033 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 case $as_dir in #(((
3040 '') as_dir=./ ;;
3041 */) ;;
3042 *) as_dir=$as_dir/ ;;
3043 esac
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_AWK="$ac_prog"
3047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 AWK=$ac_cv_prog_AWK
3057 if test -n "$AWK"; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3059 printf "%s\n" "$AWK" >&6; }
3060 else
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 printf "%s\n" "no" >&6; }
3063 fi
3064
3065
3066 test -n "$AWK" && break
3067 done
3068
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3070 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3071 set x ${MAKE-make}
3072 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3073 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3074 then :
3075 printf %s "(cached) " >&6
3076 else $as_nop
3077 cat >conftest.make <<\_ACEOF
3078 SHELL = /bin/sh
3079 all:
3080 @echo '@@@%%%=$(MAKE)=@@@%%%'
3081 _ACEOF
3082 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3083 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3084 *@@@%%%=?*=@@@%%%*)
3085 eval ac_cv_prog_make_${ac_make}_set=yes;;
3086 *)
3087 eval ac_cv_prog_make_${ac_make}_set=no;;
3088 esac
3089 rm -f conftest.make
3090 fi
3091 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 printf "%s\n" "yes" >&6; }
3094 SET_MAKE=
3095 else
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 printf "%s\n" "no" >&6; }
3098 SET_MAKE="MAKE=${MAKE-make}"
3099 fi
3100
3101 rm -rf .tst 2>/dev/null
3102 mkdir .tst 2>/dev/null
3103 if test -d .tst; then
3104 am__leading_dot=.
3105 else
3106 am__leading_dot=_
3107 fi
3108 rmdir .tst 2>/dev/null
3109
3110 # Check whether --enable-silent-rules was given.
3111 if test ${enable_silent_rules+y}
3112 then :
3113 enableval=$enable_silent_rules;
3114 fi
3115
3116 case $enable_silent_rules in # (((
3117 yes) AM_DEFAULT_VERBOSITY=0;;
3118 no) AM_DEFAULT_VERBOSITY=1;;
3119 *) AM_DEFAULT_VERBOSITY=1;;
3120 esac
3121 am_make=${MAKE-make}
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3123 printf %s "checking whether $am_make supports nested variables... " >&6; }
3124 if test ${am_cv_make_support_nested_variables+y}
3125 then :
3126 printf %s "(cached) " >&6
3127 else $as_nop
3128 if printf "%s\n" 'TRUE=$(BAR$(V))
3129 BAR0=false
3130 BAR1=true
3131 V=1
3132 am__doit:
3133 @$(TRUE)
3134 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135 am_cv_make_support_nested_variables=yes
3136 else
3137 am_cv_make_support_nested_variables=no
3138 fi
3139 fi
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3142 if test $am_cv_make_support_nested_variables = yes; then
3143 AM_V='$(V)'
3144 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3145 else
3146 AM_V=$AM_DEFAULT_VERBOSITY
3147 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3148 fi
3149 AM_BACKSLASH='\'
3150
3151 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3152 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3153 # is not polluted with repeated "-I."
3154 am__isrc=' -I$(srcdir)'
3155 # test to see if srcdir already configured
3156 if test -f $srcdir/config.status; then
3157 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3158 fi
3159 fi
3160
3161 # test whether we have cygpath
3162 if test -z "$CYGPATH_W"; then
3163 if (cygpath --version) >/dev/null 2>/dev/null; then
3164 CYGPATH_W='cygpath -w'
3165 else
3166 CYGPATH_W=echo
3167 fi
3168 fi
3169
3170
3171 # Define the identity of the package.
3172 PACKAGE='libXres'
3173 VERSION='1.2.2'
3174
3175
3176 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3177
3178
3179 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3180
3181 # Some tools Automake needs.
3182
3183 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3184
3185
3186 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3187
3188
3189 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3190
3191
3192 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3193
3194
3195 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3196
3197 # For better backward compatibility. To be removed once Automake 1.9.x
3198 # dies out for good. For more background, see:
3199 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3200 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3201 mkdir_p='$(MKDIR_P)'
3202
3203 # We need awk for the "check" target (and possibly the TAP driver). The
3204 # system "awk" is bad on some platforms.
3205 # Always define AMTAR for backward compatibility. Yes, it's still used
3206 # in the wild :-( We should find a proper way to deprecate it ...
3207 AMTAR='$${TAR-tar}'
3208
3209
3210 # We'll loop over all known methods to create a tar archive until one works.
3211 _am_tools='gnutar pax cpio none'
3212
3213 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3214
3215
3216
3217
3218
3219 # Variables for tags utilities; see am/tags.am
3220 if test -z "$CTAGS"; then
3221 CTAGS=ctags
3222 fi
3223
3224 if test -z "$ETAGS"; then
3225 ETAGS=etags
3226 fi
3227
3228 if test -z "$CSCOPE"; then
3229 CSCOPE=cscope
3230 fi
3231
3232
3233
3234 # POSIX will say in a future version that running "rm -f" with no argument
3235 # is OK; and we want to be able to make that assumption in our Makefile
3236 # recipes. So use an aggressive probe to check that the usage we want is
3237 # actually supported "in the wild" to an acceptable degree.
3238 # See automake bug#10828.
3239 # To make any issue more visible, cause the running configure to be aborted
3240 # by default if the 'rm' program in use doesn't match our expectations; the
3241 # user can still override this though.
3242 if rm -f && rm -fr && rm -rf; then : OK; else
3243 cat >&2 <<'END'
3244 Oops!
3245
3246 Your 'rm' program seems unable to run without file operands specified
3247 on the command line, even when the '-f' option is present. This is contrary
3248 to the behaviour of most rm programs out there, and not conforming with
3249 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3250
3251 Please tell bug-automake@gnu.org about your system, including the value
3252 of your $PATH and any error possibly output before this message. This
3253 can help us improve future automake versions.
3254
3255 END
3256 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3257 echo 'Configuration will proceed anyway, since you have set the' >&2
3258 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3259 echo >&2
3260 else
3261 cat >&2 <<'END'
3262 Aborting the configuration process, to ensure you take notice of the issue.
3263
3264 You can download and install GNU coreutils to get an 'rm' implementation
3265 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3266
3267 If you want to complete the configuration process using your problematic
3268 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3269 to "yes", and re-run configure.
3270
3271 END
3272 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3273 fi
3274 fi
3275
3276
3277 # Initialize libtool
3278 case `pwd` in
3279 *\ * | *\ *)
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3281 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3282 esac
3283
3284
3285
3286 macro_version='2.4.7'
3287 macro_revision='2.4.7'
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302 ltmain=$ac_aux_dir/ltmain.sh
3303
3304
3305
3306 # Make sure we can run config.sub.
3307 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3308 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3309
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3311 printf %s "checking build system type... " >&6; }
3312 if test ${ac_cv_build+y}
3313 then :
3314 printf %s "(cached) " >&6
3315 else $as_nop
3316 ac_build_alias=$build_alias
3317 test "x$ac_build_alias" = x &&
3318 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3319 test "x$ac_build_alias" = x &&
3320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3321 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3322 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3323
3324 fi
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3326 printf "%s\n" "$ac_cv_build" >&6; }
3327 case $ac_cv_build in
3328 *-*-*) ;;
3329 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3330 esac
3331 build=$ac_cv_build
3332 ac_save_IFS=$IFS; IFS='-'
3333 set x $ac_cv_build
3334 shift
3335 build_cpu=$1
3336 build_vendor=$2
3337 shift; shift
3338 # Remember, the first character of IFS is used to create $*,
3339 # except with old shells:
3340 build_os=$*
3341 IFS=$ac_save_IFS
3342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3343
3344
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3346 printf %s "checking host system type... " >&6; }
3347 if test ${ac_cv_host+y}
3348 then :
3349 printf %s "(cached) " >&6
3350 else $as_nop
3351 if test "x$host_alias" = x; then
3352 ac_cv_host=$ac_cv_build
3353 else
3354 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3355 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3356 fi
3357
3358 fi
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3360 printf "%s\n" "$ac_cv_host" >&6; }
3361 case $ac_cv_host in
3362 *-*-*) ;;
3363 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3364 esac
3365 host=$ac_cv_host
3366 ac_save_IFS=$IFS; IFS='-'
3367 set x $ac_cv_host
3368 shift
3369 host_cpu=$1
3370 host_vendor=$2
3371 shift; shift
3372 # Remember, the first character of IFS is used to create $*,
3373 # except with old shells:
3374 host_os=$*
3375 IFS=$ac_save_IFS
3376 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3377
3378
3379 # Backslashify metacharacters that are still active within
3380 # double-quoted strings.
3381 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3382
3383 # Same as above, but do not quote variable references.
3384 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3385
3386 # Sed substitution to delay expansion of an escaped shell variable in a
3387 # double_quote_subst'ed string.
3388 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3389
3390 # Sed substitution to delay expansion of an escaped single quote.
3391 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3392
3393 # Sed substitution to avoid accidental globbing in evaled expressions
3394 no_glob_subst='s/\*/\\\*/g'
3395
3396 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3397 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3398 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3399
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3401 printf %s "checking how to print strings... " >&6; }
3402 # Test print first, because it will be a builtin if present.
3403 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3404 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3405 ECHO='print -r --'
3406 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3407 ECHO='printf %s\n'
3408 else
3409 # Use this function as a fallback that always works.
3410 func_fallback_echo ()
3411 {
3412 eval 'cat <<_LTECHO_EOF
3413 $1
3414 _LTECHO_EOF'
3415 }
3416 ECHO='func_fallback_echo'
3417 fi
3418
3419 # func_echo_all arg...
3420 # Invoke $ECHO with all args, space-separated.
3421 func_echo_all ()
3422 {
3423 $ECHO ""
3424 }
3425
3426 case $ECHO in
3427 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3428 printf "%s\n" "printf" >&6; } ;;
3429 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3430 printf "%s\n" "print -r" >&6; } ;;
3431 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3432 printf "%s\n" "cat" >&6; } ;;
3433 esac
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457 DEPDIR="${am__leading_dot}deps"
3458
3459 ac_config_commands="$ac_config_commands depfiles"
3460
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3462 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3463 cat > confinc.mk << 'END'
3464 am__doit:
3465 @echo this is the am__doit target >confinc.out
3466 .PHONY: am__doit
3467 END
3468 am__include="#"
3469 am__quote=
3470 # BSD make does it like this.
3471 echo '.include "confinc.mk" # ignored' > confmf.BSD
3472 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3473 echo 'include confinc.mk # ignored' > confmf.GNU
3474 _am_result=no
3475 for s in GNU BSD; do
3476 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3477 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }
3481 case $?:`cat confinc.out 2>/dev/null` in #(
3482 '0:this is the am__doit target') :
3483 case $s in #(
3484 BSD) :
3485 am__include='.include' am__quote='"' ;; #(
3486 *) :
3487 am__include='include' am__quote='' ;;
3488 esac ;; #(
3489 *) :
3490 ;;
3491 esac
3492 if test "$am__include" != "#"; then
3493 _am_result="yes ($s style)"
3494 break
3495 fi
3496 done
3497 rm -f confinc.* confmf.*
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3499 printf "%s\n" "${_am_result}" >&6; }
3500
3501 # Check whether --enable-dependency-tracking was given.
3502 if test ${enable_dependency_tracking+y}
3503 then :
3504 enableval=$enable_dependency_tracking;
3505 fi
3506
3507 if test "x$enable_dependency_tracking" != xno; then
3508 am_depcomp="$ac_aux_dir/depcomp"
3509 AMDEPBACKSLASH='\'
3510 am__nodep='_no'
3511 fi
3512 if test "x$enable_dependency_tracking" != xno; then
3513 AMDEP_TRUE=
3514 AMDEP_FALSE='#'
3515 else
3516 AMDEP_TRUE='#'
3517 AMDEP_FALSE=
3518 fi
3519
3520
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 if test -n "$ac_tool_prefix"; then
3527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 printf %s "checking for $ac_word... " >&6; }
3531 if test ${ac_cv_prog_CC+y}
3532 then :
3533 printf %s "(cached) " >&6
3534 else $as_nop
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541 IFS=$as_save_IFS
3542 case $as_dir in #(((
3543 '') as_dir=./ ;;
3544 */) ;;
3545 *) as_dir=$as_dir/ ;;
3546 esac
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 CC=$ac_cv_prog_CC
3560 if test -n "$CC"; then
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3562 printf "%s\n" "$CC" >&6; }
3563 else
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 printf "%s\n" "no" >&6; }
3566 fi
3567
3568
3569 fi
3570 if test -z "$ac_cv_prog_CC"; then
3571 ac_ct_CC=$CC
3572 # Extract the first word of "gcc", so it can be a program name with args.
3573 set dummy gcc; ac_word=$2
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 printf %s "checking for $ac_word... " >&6; }
3576 if test ${ac_cv_prog_ac_ct_CC+y}
3577 then :
3578 printf %s "(cached) " >&6
3579 else $as_nop
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586 IFS=$as_save_IFS
3587 case $as_dir in #(((
3588 '') as_dir=./ ;;
3589 */) ;;
3590 *) as_dir=$as_dir/ ;;
3591 esac
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_CC="gcc"
3595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3607 printf "%s\n" "$ac_ct_CC" >&6; }
3608 else
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 printf "%s\n" "no" >&6; }
3611 fi
3612
3613 if test "x$ac_ct_CC" = x; then
3614 CC=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned=yes ;;
3621 esac
3622 CC=$ac_ct_CC
3623 fi
3624 else
3625 CC="$ac_cv_prog_CC"
3626 fi
3627
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}cc; ac_word=$2
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 printf %s "checking for $ac_word... " >&6; }
3634 if test ${ac_cv_prog_CC+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else $as_nop
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="${ac_tool_prefix}cc"
3653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 CC=$ac_cv_prog_CC
3663 if test -n "$CC"; then
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 printf "%s\n" "$CC" >&6; }
3666 else
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 printf "%s\n" "no" >&6; }
3669 fi
3670
3671
3672 fi
3673 fi
3674 if test -z "$CC"; then
3675 # Extract the first word of "cc", so it can be a program name with args.
3676 set dummy cc; ac_word=$2
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 printf %s "checking for $ac_word... " >&6; }
3679 if test ${ac_cv_prog_CC+y}
3680 then :
3681 printf %s "(cached) " >&6
3682 else $as_nop
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 else
3686 ac_prog_rejected=no
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 case $as_dir in #(((
3692 '') as_dir=./ ;;
3693 */) ;;
3694 *) as_dir=$as_dir/ ;;
3695 esac
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3699 ac_prog_rejected=yes
3700 continue
3701 fi
3702 ac_cv_prog_CC="cc"
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 if test $ac_prog_rejected = yes; then
3711 # We found a bogon in the path, so make sure we never use it.
3712 set dummy $ac_cv_prog_CC
3713 shift
3714 if test $# != 0; then
3715 # We chose a different compiler from the bogus one.
3716 # However, it has the same basename, so the bogon will be chosen
3717 # first if we set CC to just the basename; use the full file name.
3718 shift
3719 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3720 fi
3721 fi
3722 fi
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 printf "%s\n" "$CC" >&6; }
3728 else
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 for ac_prog in cl.exe
3738 do
3739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 printf %s "checking for $ac_word... " >&6; }
3743 if test ${ac_cv_prog_CC+y}
3744 then :
3745 printf %s "(cached) " >&6
3746 else $as_nop
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 case $as_dir in #(((
3755 '') as_dir=./ ;;
3756 */) ;;
3757 *) as_dir=$as_dir/ ;;
3758 esac
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765 done
3766 done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 CC=$ac_cv_prog_CC
3772 if test -n "$CC"; then
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774 printf "%s\n" "$CC" >&6; }
3775 else
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 printf "%s\n" "no" >&6; }
3778 fi
3779
3780
3781 test -n "$CC" && break
3782 done
3783 fi
3784 if test -z "$CC"; then
3785 ac_ct_CC=$CC
3786 for ac_prog in cl.exe
3787 do
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 printf %s "checking for $ac_word... " >&6; }
3792 if test ${ac_cv_prog_ac_ct_CC+y}
3793 then :
3794 printf %s "(cached) " >&6
3795 else $as_nop
3796 if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802 IFS=$as_save_IFS
3803 case $as_dir in #(((
3804 '') as_dir=./ ;;
3805 */) ;;
3806 *) as_dir=$as_dir/ ;;
3807 esac
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_CC="$ac_prog"
3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3821 if test -n "$ac_ct_CC"; then
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823 printf "%s\n" "$ac_ct_CC" >&6; }
3824 else
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 printf "%s\n" "no" >&6; }
3827 fi
3828
3829
3830 test -n "$ac_ct_CC" && break
3831 done
3832
3833 if test "x$ac_ct_CC" = x; then
3834 CC=""
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837 yes:)
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned=yes ;;
3841 esac
3842 CC=$ac_ct_CC
3843 fi
3844 fi
3845
3846 fi
3847 if test -z "$CC"; then
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3850 set dummy ${ac_tool_prefix}clang; ac_word=$2
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 printf %s "checking for $ac_word... " >&6; }
3853 if test ${ac_cv_prog_CC+y}
3854 then :
3855 printf %s "(cached) " >&6
3856 else $as_nop
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 case $as_dir in #(((
3865 '') as_dir=./ ;;
3866 */) ;;
3867 *) as_dir=$as_dir/ ;;
3868 esac
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_CC="${ac_tool_prefix}clang"
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi
3880 fi
3881 CC=$ac_cv_prog_CC
3882 if test -n "$CC"; then
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884 printf "%s\n" "$CC" >&6; }
3885 else
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 printf "%s\n" "no" >&6; }
3888 fi
3889
3890
3891 fi
3892 if test -z "$ac_cv_prog_CC"; then
3893 ac_ct_CC=$CC
3894 # Extract the first word of "clang", so it can be a program name with args.
3895 set dummy clang; ac_word=$2
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 printf %s "checking for $ac_word... " >&6; }
3898 if test ${ac_cv_prog_ac_ct_CC+y}
3899 then :
3900 printf %s "(cached) " >&6
3901 else $as_nop
3902 if test -n "$ac_ct_CC"; then
3903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908 IFS=$as_save_IFS
3909 case $as_dir in #(((
3910 '') as_dir=./ ;;
3911 */) ;;
3912 *) as_dir=$as_dir/ ;;
3913 esac
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_ac_ct_CC="clang"
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3927 if test -n "$ac_ct_CC"; then
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3929 printf "%s\n" "$ac_ct_CC" >&6; }
3930 else
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 printf "%s\n" "no" >&6; }
3933 fi
3934
3935 if test "x$ac_ct_CC" = x; then
3936 CC=""
3937 else
3938 case $cross_compiling:$ac_tool_warned in
3939 yes:)
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3942 ac_tool_warned=yes ;;
3943 esac
3944 CC=$ac_ct_CC
3945 fi
3946 else
3947 CC="$ac_cv_prog_CC"
3948 fi
3949
3950 fi
3951
3952
3953 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $? "no acceptable C compiler found in \$PATH
3956 See \`config.log' for more details" "$LINENO" 5; }
3957
3958 # Provide some information about the compiler.
3959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3960 set X $ac_compile
3961 ac_compiler=$2
3962 for ac_option in --version -v -V -qversion -version; do
3963 { { ac_try="$ac_compiler $ac_option >&5"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 printf "%s\n" "$ac_try_echo"; } >&5
3970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3971 ac_status=$?
3972 if test -s conftest.err; then
3973 sed '10a\
3974 ... rest of stderr output deleted ...
3975 10q' conftest.err >conftest.er1
3976 cat conftest.er1 >&5
3977 fi
3978 rm -f conftest.er1 conftest.err
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3981 done
3982
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985
3986 int
3987 main (void)
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 ac_clean_files_save=$ac_clean_files
3995 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3996 # Try to create an executable without -o first, disregard a.out.
3997 # It will help us diagnose broken compilers, and finding out an intuition
3998 # of exeext.
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4000 printf %s "checking whether the C compiler works... " >&6; }
4001 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4002
4003 # The possible output files:
4004 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4005
4006 ac_rmfiles=
4007 for ac_file in $ac_files
4008 do
4009 case $ac_file in
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4012 esac
4013 done
4014 rm -f $ac_rmfiles
4015
4016 if { { ac_try="$ac_link_default"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 printf "%s\n" "$ac_try_echo"; } >&5
4023 (eval "$ac_link_default") 2>&5
4024 ac_status=$?
4025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }
4027 then :
4028 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4029 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4030 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4031 # so that the user can short-circuit this test for compilers unknown to
4032 # Autoconf.
4033 for ac_file in $ac_files ''
4034 do
4035 test -f "$ac_file" || continue
4036 case $ac_file in
4037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4038 ;;
4039 [ab].out )
4040 # We found the default executable, but exeext='' is most
4041 # certainly right.
4042 break;;
4043 *.* )
4044 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4045 then :; else
4046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4047 fi
4048 # We set ac_cv_exeext here because the later test for it is not
4049 # safe: cross compilers may not add the suffix if given an `-o'
4050 # argument, so we may need to know it at that point already.
4051 # Even if this section looks crufty: it has the advantage of
4052 # actually working.
4053 break;;
4054 * )
4055 break;;
4056 esac
4057 done
4058 test "$ac_cv_exeext" = no && ac_cv_exeext=
4059
4060 else $as_nop
4061 ac_file=''
4062 fi
4063 if test -z "$ac_file"
4064 then :
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 printf "%s\n" "no" >&6; }
4067 printf "%s\n" "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error 77 "C compiler cannot create executables
4073 See \`config.log' for more details" "$LINENO" 5; }
4074 else $as_nop
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076 printf "%s\n" "yes" >&6; }
4077 fi
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 printf %s "checking for C compiler default output file name... " >&6; }
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4081 printf "%s\n" "$ac_file" >&6; }
4082 ac_exeext=$ac_cv_exeext
4083
4084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4085 ac_clean_files=$ac_clean_files_save
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4087 printf %s "checking for suffix of executables... " >&6; }
4088 if { { ac_try="$ac_link"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 printf "%s\n" "$ac_try_echo"; } >&5
4095 (eval "$ac_link") 2>&5
4096 ac_status=$?
4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }
4099 then :
4100 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4101 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4102 # work properly (i.e., refer to `conftest.exe'), while it won't with
4103 # `rm'.
4104 for ac_file in conftest.exe conftest conftest.*; do
4105 test -f "$ac_file" || continue
4106 case $ac_file in
4107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4108 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4109 break;;
4110 * ) break;;
4111 esac
4112 done
4113 else $as_nop
4114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4117 See \`config.log' for more details" "$LINENO" 5; }
4118 fi
4119 rm -f conftest conftest$ac_cv_exeext
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4121 printf "%s\n" "$ac_cv_exeext" >&6; }
4122
4123 rm -f conftest.$ac_ext
4124 EXEEXT=$ac_cv_exeext
4125 ac_exeext=$EXEEXT
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128 #include <stdio.h>
4129 int
4130 main (void)
4131 {
4132 FILE *f = fopen ("conftest.out", "w");
4133 return ferror (f) || fclose (f) != 0;
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 ac_clean_files="$ac_clean_files conftest.out"
4140 # Check that the compiler produces executables we can run. If not, either
4141 # the compiler is broken, or we cross compile.
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4143 printf %s "checking whether we are cross compiling... " >&6; }
4144 if test "$cross_compiling" != yes; then
4145 { { ac_try="$ac_link"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 printf "%s\n" "$ac_try_echo"; } >&5
4152 (eval "$ac_link") 2>&5
4153 ac_status=$?
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155 test $ac_status = 0; }
4156 if { ac_try='./conftest$ac_cv_exeext'
4157 { { case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162 printf "%s\n" "$ac_try_echo"; } >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166 test $ac_status = 0; }; }; then
4167 cross_compiling=no
4168 else
4169 if test "$cross_compiling" = maybe; then
4170 cross_compiling=yes
4171 else
4172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error 77 "cannot run C compiled programs.
4175 If you meant to cross compile, use \`--host'.
4176 See \`config.log' for more details" "$LINENO" 5; }
4177 fi
4178 fi
4179 fi
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4181 printf "%s\n" "$cross_compiling" >&6; }
4182
4183 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4184 ac_clean_files=$ac_clean_files_save
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4186 printf %s "checking for suffix of object files... " >&6; }
4187 if test ${ac_cv_objext+y}
4188 then :
4189 printf %s "(cached) " >&6
4190 else $as_nop
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main (void)
4196 {
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.o conftest.obj
4203 if { { ac_try="$ac_compile"
4204 case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 printf "%s\n" "$ac_try_echo"; } >&5
4210 (eval "$ac_compile") 2>&5
4211 ac_status=$?
4212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }
4214 then :
4215 for ac_file in conftest.o conftest.obj conftest.*; do
4216 test -f "$ac_file" || continue;
4217 case $ac_file in
4218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4219 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4220 break;;
4221 esac
4222 done
4223 else $as_nop
4224 printf "%s\n" "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "cannot compute suffix of object files: cannot compile
4230 See \`config.log' for more details" "$LINENO" 5; }
4231 fi
4232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4233 fi
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4235 printf "%s\n" "$ac_cv_objext" >&6; }
4236 OBJEXT=$ac_cv_objext
4237 ac_objext=$OBJEXT
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4239 printf %s "checking whether the compiler supports GNU C... " >&6; }
4240 if test ${ac_cv_c_compiler_gnu+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else $as_nop
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246
4247 int
4248 main (void)
4249 {
4250 #ifndef __GNUC__
4251 choke me
4252 #endif
4253
4254 ;
4255 return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"
4259 then :
4260 ac_compiler_gnu=yes
4261 else $as_nop
4262 ac_compiler_gnu=no
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4266
4267 fi
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4269 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272 if test $ac_compiler_gnu = yes; then
4273 GCC=yes
4274 else
4275 GCC=
4276 fi
4277 ac_test_CFLAGS=${CFLAGS+y}
4278 ac_save_CFLAGS=$CFLAGS
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4280 printf %s "checking whether $CC accepts -g... " >&6; }
4281 if test ${ac_cv_prog_cc_g+y}
4282 then :
4283 printf %s "(cached) " >&6
4284 else $as_nop
4285 ac_save_c_werror_flag=$ac_c_werror_flag
4286 ac_c_werror_flag=yes
4287 ac_cv_prog_cc_g=no
4288 CFLAGS="-g"
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291
4292 int
4293 main (void)
4294 {
4295
4296 ;
4297 return 0;
4298 }
4299 _ACEOF
4300 if ac_fn_c_try_compile "$LINENO"
4301 then :
4302 ac_cv_prog_cc_g=yes
4303 else $as_nop
4304 CFLAGS=""
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307
4308 int
4309 main (void)
4310 {
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_c_try_compile "$LINENO"
4317 then :
4318
4319 else $as_nop
4320 ac_c_werror_flag=$ac_save_c_werror_flag
4321 CFLAGS="-g"
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 int
4326 main (void)
4327 {
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"
4334 then :
4335 ac_cv_prog_cc_g=yes
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4342 ac_c_werror_flag=$ac_save_c_werror_flag
4343 fi
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4345 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4346 if test $ac_test_CFLAGS; then
4347 CFLAGS=$ac_save_CFLAGS
4348 elif test $ac_cv_prog_cc_g = yes; then
4349 if test "$GCC" = yes; then
4350 CFLAGS="-g -O2"
4351 else
4352 CFLAGS="-g"
4353 fi
4354 else
4355 if test "$GCC" = yes; then
4356 CFLAGS="-O2"
4357 else
4358 CFLAGS=
4359 fi
4360 fi
4361 ac_prog_cc_stdc=no
4362 if test x$ac_prog_cc_stdc = xno
4363 then :
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4365 printf %s "checking for $CC option to enable C11 features... " >&6; }
4366 if test ${ac_cv_prog_cc_c11+y}
4367 then :
4368 printf %s "(cached) " >&6
4369 else $as_nop
4370 ac_cv_prog_cc_c11=no
4371 ac_save_CC=$CC
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 $ac_c_conftest_c11_program
4375 _ACEOF
4376 for ac_arg in '' -std=gnu11
4377 do
4378 CC="$ac_save_CC $ac_arg"
4379 if ac_fn_c_try_compile "$LINENO"
4380 then :
4381 ac_cv_prog_cc_c11=$ac_arg
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.beam
4384 test "x$ac_cv_prog_cc_c11" != "xno" && break
4385 done
4386 rm -f conftest.$ac_ext
4387 CC=$ac_save_CC
4388 fi
4389
4390 if test "x$ac_cv_prog_cc_c11" = xno
4391 then :
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4393 printf "%s\n" "unsupported" >&6; }
4394 else $as_nop
4395 if test "x$ac_cv_prog_cc_c11" = x
4396 then :
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4398 printf "%s\n" "none needed" >&6; }
4399 else $as_nop
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4401 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4402 CC="$CC $ac_cv_prog_cc_c11"
4403 fi
4404 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4405 ac_prog_cc_stdc=c11
4406 fi
4407 fi
4408 if test x$ac_prog_cc_stdc = xno
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4411 printf %s "checking for $CC option to enable C99 features... " >&6; }
4412 if test ${ac_cv_prog_cc_c99+y}
4413 then :
4414 printf %s "(cached) " >&6
4415 else $as_nop
4416 ac_cv_prog_cc_c99=no
4417 ac_save_CC=$CC
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 $ac_c_conftest_c99_program
4421 _ACEOF
4422 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4423 do
4424 CC="$ac_save_CC $ac_arg"
4425 if ac_fn_c_try_compile "$LINENO"
4426 then :
4427 ac_cv_prog_cc_c99=$ac_arg
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.beam
4430 test "x$ac_cv_prog_cc_c99" != "xno" && break
4431 done
4432 rm -f conftest.$ac_ext
4433 CC=$ac_save_CC
4434 fi
4435
4436 if test "x$ac_cv_prog_cc_c99" = xno
4437 then :
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4439 printf "%s\n" "unsupported" >&6; }
4440 else $as_nop
4441 if test "x$ac_cv_prog_cc_c99" = x
4442 then :
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4444 printf "%s\n" "none needed" >&6; }
4445 else $as_nop
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4447 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4448 CC="$CC $ac_cv_prog_cc_c99"
4449 fi
4450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4451 ac_prog_cc_stdc=c99
4452 fi
4453 fi
4454 if test x$ac_prog_cc_stdc = xno
4455 then :
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4457 printf %s "checking for $CC option to enable C89 features... " >&6; }
4458 if test ${ac_cv_prog_cc_c89+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else $as_nop
4462 ac_cv_prog_cc_c89=no
4463 ac_save_CC=$CC
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 $ac_c_conftest_c89_program
4467 _ACEOF
4468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4469 do
4470 CC="$ac_save_CC $ac_arg"
4471 if ac_fn_c_try_compile "$LINENO"
4472 then :
4473 ac_cv_prog_cc_c89=$ac_arg
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.beam
4476 test "x$ac_cv_prog_cc_c89" != "xno" && break
4477 done
4478 rm -f conftest.$ac_ext
4479 CC=$ac_save_CC
4480 fi
4481
4482 if test "x$ac_cv_prog_cc_c89" = xno
4483 then :
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4485 printf "%s\n" "unsupported" >&6; }
4486 else $as_nop
4487 if test "x$ac_cv_prog_cc_c89" = x
4488 then :
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4490 printf "%s\n" "none needed" >&6; }
4491 else $as_nop
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4493 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4494 CC="$CC $ac_cv_prog_cc_c89"
4495 fi
4496 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4497 ac_prog_cc_stdc=c89
4498 fi
4499 fi
4500
4501 ac_ext=c
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506
4507
4508 ac_ext=c
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4514 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4515 if test ${am_cv_prog_cc_c_o+y}
4516 then :
4517 printf %s "(cached) " >&6
4518 else $as_nop
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521
4522 int
4523 main (void)
4524 {
4525
4526 ;
4527 return 0;
4528 }
4529 _ACEOF
4530 # Make sure it works both with $CC and with simple cc.
4531 # Following AC_PROG_CC_C_O, we do the test twice because some
4532 # compilers refuse to overwrite an existing .o file with -o,
4533 # though they will create one.
4534 am_cv_prog_cc_c_o=yes
4535 for am_i in 1 2; do
4536 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4537 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } \
4541 && test -f conftest2.$ac_objext; then
4542 : OK
4543 else
4544 am_cv_prog_cc_c_o=no
4545 break
4546 fi
4547 done
4548 rm -f core conftest*
4549 unset am_i
4550 fi
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4552 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4553 if test "$am_cv_prog_cc_c_o" != yes; then
4554 # Losing compiler, so override with the script.
4555 # FIXME: It is wrong to rewrite CC.
4556 # But if we don't then we get into trouble of one sort or another.
4557 # A longer-term fix would be to have automake use am__CC in this case,
4558 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4559 CC="$am_aux_dir/compile $CC"
4560 fi
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568 depcc="$CC" am_compiler_list=
4569
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571 printf %s "checking dependency style of $depcc... " >&6; }
4572 if test ${am_cv_CC_dependencies_compiler_type+y}
4573 then :
4574 printf %s "(cached) " >&6
4575 else $as_nop
4576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4577 # We make a subdir and do the tests there. Otherwise we can end up
4578 # making bogus files that we don't know about and never remove. For
4579 # instance it was reported that on HP-UX the gcc test will end up
4580 # making a dummy file named 'D' -- because '-MD' means "put the output
4581 # in D".
4582 rm -rf conftest.dir
4583 mkdir conftest.dir
4584 # Copy depcomp to subdir because otherwise we won't find it if we're
4585 # using a relative directory.
4586 cp "$am_depcomp" conftest.dir
4587 cd conftest.dir
4588 # We will build objects and dependencies in a subdirectory because
4589 # it helps to detect inapplicable dependency modes. For instance
4590 # both Tru64's cc and ICC support -MD to output dependencies as a
4591 # side effect of compilation, but ICC will put the dependencies in
4592 # the current directory while Tru64 will put them in the object
4593 # directory.
4594 mkdir sub
4595
4596 am_cv_CC_dependencies_compiler_type=none
4597 if test "$am_compiler_list" = ""; then
4598 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4599 fi
4600 am__universal=false
4601 case " $depcc " in #(
4602 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4603 esac
4604
4605 for depmode in $am_compiler_list; do
4606 # Setup a source with many dependencies, because some compilers
4607 # like to wrap large dependency lists on column 80 (with \), and
4608 # we should not choose a depcomp mode which is confused by this.
4609 #
4610 # We need to recreate these files for each test, as the compiler may
4611 # overwrite some of them when testing with obscure command lines.
4612 # This happens at least with the AIX C compiler.
4613 : > sub/conftest.c
4614 for i in 1 2 3 4 5 6; do
4615 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4616 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4617 # Solaris 10 /bin/sh.
4618 echo '/* dummy */' > sub/conftst$i.h
4619 done
4620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4621
4622 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4623 # mode. It turns out that the SunPro C++ compiler does not properly
4624 # handle '-M -o', and we need to detect this. Also, some Intel
4625 # versions had trouble with output in subdirs.
4626 am__obj=sub/conftest.${OBJEXT-o}
4627 am__minus_obj="-o $am__obj"
4628 case $depmode in
4629 gcc)
4630 # This depmode causes a compiler race in universal mode.
4631 test "$am__universal" = false || continue
4632 ;;
4633 nosideeffect)
4634 # After this tag, mechanisms are not by side-effect, so they'll
4635 # only be used when explicitly requested.
4636 if test "x$enable_dependency_tracking" = xyes; then
4637 continue
4638 else
4639 break
4640 fi
4641 ;;
4642 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4643 # This compiler won't grok '-c -o', but also, the minuso test has
4644 # not run yet. These depmodes are late enough in the game, and
4645 # so weak that their functioning should not be impacted.
4646 am__obj=conftest.${OBJEXT-o}
4647 am__minus_obj=
4648 ;;
4649 none) break ;;
4650 esac
4651 if depmode=$depmode \
4652 source=sub/conftest.c object=$am__obj \
4653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4654 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4655 >/dev/null 2>conftest.err &&
4656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4658 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4660 # icc doesn't choke on unknown options, it will just issue warnings
4661 # or remarks (even with -Werror). So we grep stderr for any message
4662 # that says an option was ignored or not supported.
4663 # When given -MP, icc 7.0 and 7.1 complain thusly:
4664 # icc: Command line warning: ignoring option '-M'; no argument required
4665 # The diagnosis changed in icc 8.0:
4666 # icc: Command line remark: option '-MP' not supported
4667 if (grep 'ignoring option' conftest.err ||
4668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4669 am_cv_CC_dependencies_compiler_type=$depmode
4670 break
4671 fi
4672 fi
4673 done
4674
4675 cd ..
4676 rm -rf conftest.dir
4677 else
4678 am_cv_CC_dependencies_compiler_type=none
4679 fi
4680
4681 fi
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4683 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4685
4686 if
4687 test "x$enable_dependency_tracking" != xno \
4688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4689 am__fastdepCC_TRUE=
4690 am__fastdepCC_FALSE='#'
4691 else
4692 am__fastdepCC_TRUE='#'
4693 am__fastdepCC_FALSE=
4694 fi
4695
4696
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4698 printf %s "checking for a sed that does not truncate output... " >&6; }
4699 if test ${ac_cv_path_SED+y}
4700 then :
4701 printf %s "(cached) " >&6
4702 else $as_nop
4703 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4704 for ac_i in 1 2 3 4 5 6 7; do
4705 ac_script="$ac_script$as_nl$ac_script"
4706 done
4707 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4708 { ac_script=; unset ac_script;}
4709 if test -z "$SED"; then
4710 ac_path_SED_found=false
4711 # Loop through the user's path and test for each of PROGNAME-LIST
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715 IFS=$as_save_IFS
4716 case $as_dir in #(((
4717 '') as_dir=./ ;;
4718 */) ;;
4719 *) as_dir=$as_dir/ ;;
4720 esac
4721 for ac_prog in sed gsed
4722 do
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4725 as_fn_executable_p "$ac_path_SED" || continue
4726 # Check for GNU ac_path_SED and select it if it is found.
4727 # Check for GNU $ac_path_SED
4728 case `"$ac_path_SED" --version 2>&1` in
4729 *GNU*)
4730 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4731 *)
4732 ac_count=0
4733 printf %s 0123456789 >"conftest.in"
4734 while :
4735 do
4736 cat "conftest.in" "conftest.in" >"conftest.tmp"
4737 mv "conftest.tmp" "conftest.in"
4738 cp "conftest.in" "conftest.nl"
4739 printf "%s\n" '' >> "conftest.nl"
4740 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742 as_fn_arith $ac_count + 1 && ac_count=$as_val
4743 if test $ac_count -gt ${ac_path_SED_max-0}; then
4744 # Best one so far, save it but keep looking for a better one
4745 ac_cv_path_SED="$ac_path_SED"
4746 ac_path_SED_max=$ac_count
4747 fi
4748 # 10*(2^10) chars as input seems more than enough
4749 test $ac_count -gt 10 && break
4750 done
4751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752 esac
4753
4754 $ac_path_SED_found && break 3
4755 done
4756 done
4757 done
4758 IFS=$as_save_IFS
4759 if test -z "$ac_cv_path_SED"; then
4760 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4761 fi
4762 else
4763 ac_cv_path_SED=$SED
4764 fi
4765
4766 fi
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4768 printf "%s\n" "$ac_cv_path_SED" >&6; }
4769 SED="$ac_cv_path_SED"
4770 rm -f conftest.sed
4771
4772 test -z "$SED" && SED=sed
4773 Xsed="$SED -e 1s/^X//"
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4786 printf %s "checking for grep that handles long lines and -e... " >&6; }
4787 if test ${ac_cv_path_GREP+y}
4788 then :
4789 printf %s "(cached) " >&6
4790 else $as_nop
4791 if test -z "$GREP"; then
4792 ac_path_GREP_found=false
4793 # Loop through the user's path and test for each of PROGNAME-LIST
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4796 do
4797 IFS=$as_save_IFS
4798 case $as_dir in #(((
4799 '') as_dir=./ ;;
4800 */) ;;
4801 *) as_dir=$as_dir/ ;;
4802 esac
4803 for ac_prog in grep ggrep
4804 do
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4807 as_fn_executable_p "$ac_path_GREP" || continue
4808 # Check for GNU ac_path_GREP and select it if it is found.
4809 # Check for GNU $ac_path_GREP
4810 case `"$ac_path_GREP" --version 2>&1` in
4811 *GNU*)
4812 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4813 *)
4814 ac_count=0
4815 printf %s 0123456789 >"conftest.in"
4816 while :
4817 do
4818 cat "conftest.in" "conftest.in" >"conftest.tmp"
4819 mv "conftest.tmp" "conftest.in"
4820 cp "conftest.in" "conftest.nl"
4821 printf "%s\n" 'GREP' >> "conftest.nl"
4822 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824 as_fn_arith $ac_count + 1 && ac_count=$as_val
4825 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4826 # Best one so far, save it but keep looking for a better one
4827 ac_cv_path_GREP="$ac_path_GREP"
4828 ac_path_GREP_max=$ac_count
4829 fi
4830 # 10*(2^10) chars as input seems more than enough
4831 test $ac_count -gt 10 && break
4832 done
4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834 esac
4835
4836 $ac_path_GREP_found && break 3
4837 done
4838 done
4839 done
4840 IFS=$as_save_IFS
4841 if test -z "$ac_cv_path_GREP"; then
4842 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4843 fi
4844 else
4845 ac_cv_path_GREP=$GREP
4846 fi
4847
4848 fi
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4850 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4851 GREP="$ac_cv_path_GREP"
4852
4853
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4855 printf %s "checking for egrep... " >&6; }
4856 if test ${ac_cv_path_EGREP+y}
4857 then :
4858 printf %s "(cached) " >&6
4859 else $as_nop
4860 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4861 then ac_cv_path_EGREP="$GREP -E"
4862 else
4863 if test -z "$EGREP"; then
4864 ac_path_EGREP_found=false
4865 # Loop through the user's path and test for each of PROGNAME-LIST
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4868 do
4869 IFS=$as_save_IFS
4870 case $as_dir in #(((
4871 '') as_dir=./ ;;
4872 */) ;;
4873 *) as_dir=$as_dir/ ;;
4874 esac
4875 for ac_prog in egrep
4876 do
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4879 as_fn_executable_p "$ac_path_EGREP" || continue
4880 # Check for GNU ac_path_EGREP and select it if it is found.
4881 # Check for GNU $ac_path_EGREP
4882 case `"$ac_path_EGREP" --version 2>&1` in
4883 *GNU*)
4884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4885 *)
4886 ac_count=0
4887 printf %s 0123456789 >"conftest.in"
4888 while :
4889 do
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 printf "%s\n" 'EGREP' >> "conftest.nl"
4894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_EGREP="$ac_path_EGREP"
4900 ac_path_EGREP_max=$ac_count
4901 fi
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
4904 done
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906 esac
4907
4908 $ac_path_EGREP_found && break 3
4909 done
4910 done
4911 done
4912 IFS=$as_save_IFS
4913 if test -z "$ac_cv_path_EGREP"; then
4914 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4915 fi
4916 else
4917 ac_cv_path_EGREP=$EGREP
4918 fi
4919
4920 fi
4921 fi
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4923 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4924 EGREP="$ac_cv_path_EGREP"
4925
4926
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4928 printf %s "checking for fgrep... " >&6; }
4929 if test ${ac_cv_path_FGREP+y}
4930 then :
4931 printf %s "(cached) " >&6
4932 else $as_nop
4933 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4934 then ac_cv_path_FGREP="$GREP -F"
4935 else
4936 if test -z "$FGREP"; then
4937 ac_path_FGREP_found=false
4938 # Loop through the user's path and test for each of PROGNAME-LIST
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941 do
4942 IFS=$as_save_IFS
4943 case $as_dir in #(((
4944 '') as_dir=./ ;;
4945 */) ;;
4946 *) as_dir=$as_dir/ ;;
4947 esac
4948 for ac_prog in fgrep
4949 do
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4952 as_fn_executable_p "$ac_path_FGREP" || continue
4953 # Check for GNU ac_path_FGREP and select it if it is found.
4954 # Check for GNU $ac_path_FGREP
4955 case `"$ac_path_FGREP" --version 2>&1` in
4956 *GNU*)
4957 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4958 *)
4959 ac_count=0
4960 printf %s 0123456789 >"conftest.in"
4961 while :
4962 do
4963 cat "conftest.in" "conftest.in" >"conftest.tmp"
4964 mv "conftest.tmp" "conftest.in"
4965 cp "conftest.in" "conftest.nl"
4966 printf "%s\n" 'FGREP' >> "conftest.nl"
4967 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4969 as_fn_arith $ac_count + 1 && ac_count=$as_val
4970 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4971 # Best one so far, save it but keep looking for a better one
4972 ac_cv_path_FGREP="$ac_path_FGREP"
4973 ac_path_FGREP_max=$ac_count
4974 fi
4975 # 10*(2^10) chars as input seems more than enough
4976 test $ac_count -gt 10 && break
4977 done
4978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979 esac
4980
4981 $ac_path_FGREP_found && break 3
4982 done
4983 done
4984 done
4985 IFS=$as_save_IFS
4986 if test -z "$ac_cv_path_FGREP"; then
4987 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4988 fi
4989 else
4990 ac_cv_path_FGREP=$FGREP
4991 fi
4992
4993 fi
4994 fi
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4996 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4997 FGREP="$ac_cv_path_FGREP"
4998
4999
5000 test -z "$GREP" && GREP=grep
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 # Check whether --with-gnu-ld was given.
5021 if test ${with_gnu_ld+y}
5022 then :
5023 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5024 else $as_nop
5025 with_gnu_ld=no
5026 fi
5027
5028 ac_prog=ld
5029 if test yes = "$GCC"; then
5030 # Check if gcc -print-prog-name=ld gives a path.
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5032 printf %s "checking for ld used by $CC... " >&6; }
5033 case $host in
5034 *-*-mingw*)
5035 # gcc leaves a trailing carriage return, which upsets mingw
5036 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5037 *)
5038 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5039 esac
5040 case $ac_prog in
5041 # Accept absolute paths.
5042 [\\/]* | ?:[\\/]*)
5043 re_direlt='/[^/][^/]*/\.\./'
5044 # Canonicalize the pathname of ld
5045 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5046 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5047 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5048 done
5049 test -z "$LD" && LD=$ac_prog
5050 ;;
5051 "")
5052 # If it fails, then pretend we aren't using GCC.
5053 ac_prog=ld
5054 ;;
5055 *)
5056 # If it is relative, then search for the first ld in PATH.
5057 with_gnu_ld=unknown
5058 ;;
5059 esac
5060 elif test yes = "$with_gnu_ld"; then
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5062 printf %s "checking for GNU ld... " >&6; }
5063 else
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5065 printf %s "checking for non-GNU ld... " >&6; }
5066 fi
5067 if test ${lt_cv_path_LD+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else $as_nop
5071 if test -z "$LD"; then
5072 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5073 for ac_dir in $PATH; do
5074 IFS=$lt_save_ifs
5075 test -z "$ac_dir" && ac_dir=.
5076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5077 lt_cv_path_LD=$ac_dir/$ac_prog
5078 # Check to see if the program is GNU ld. I'd rather use --version,
5079 # but apparently some variants of GNU ld only accept -v.
5080 # Break only if it was the GNU/non-GNU ld that we prefer.
5081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5082 *GNU* | *'with BFD'*)
5083 test no != "$with_gnu_ld" && break
5084 ;;
5085 *)
5086 test yes != "$with_gnu_ld" && break
5087 ;;
5088 esac
5089 fi
5090 done
5091 IFS=$lt_save_ifs
5092 else
5093 lt_cv_path_LD=$LD # Let the user override the test with a path.
5094 fi
5095 fi
5096
5097 LD=$lt_cv_path_LD
5098 if test -n "$LD"; then
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5100 printf "%s\n" "$LD" >&6; }
5101 else
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 printf "%s\n" "no" >&6; }
5104 fi
5105 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5107 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5108 if test ${lt_cv_prog_gnu_ld+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else $as_nop
5112 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5113 case `$LD -v 2>&1 </dev/null` in
5114 *GNU* | *'with BFD'*)
5115 lt_cv_prog_gnu_ld=yes
5116 ;;
5117 *)
5118 lt_cv_prog_gnu_ld=no
5119 ;;
5120 esac
5121 fi
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5123 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5124 with_gnu_ld=$lt_cv_prog_gnu_ld
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5135 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5136 if test ${lt_cv_path_NM+y}
5137 then :
5138 printf %s "(cached) " >&6
5139 else $as_nop
5140 if test -n "$NM"; then
5141 # Let the user override the test.
5142 lt_cv_path_NM=$NM
5143 else
5144 lt_nm_to_check=${ac_tool_prefix}nm
5145 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5146 lt_nm_to_check="$lt_nm_to_check nm"
5147 fi
5148 for lt_tmp_nm in $lt_nm_to_check; do
5149 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5150 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5151 IFS=$lt_save_ifs
5152 test -z "$ac_dir" && ac_dir=.
5153 tmp_nm=$ac_dir/$lt_tmp_nm
5154 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5155 # Check to see if the nm accepts a BSD-compat flag.
5156 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5157 # nm: unknown option "B" ignored
5158 # Tru64's nm complains that /dev/null is an invalid object file
5159 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5160 case $build_os in
5161 mingw*) lt_bad_file=conftest.nm/nofile ;;
5162 *) lt_bad_file=/dev/null ;;
5163 esac
5164 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5165 *$lt_bad_file* | *'Invalid file or object type'*)
5166 lt_cv_path_NM="$tmp_nm -B"
5167 break 2
5168 ;;
5169 *)
5170 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5171 */dev/null*)
5172 lt_cv_path_NM="$tmp_nm -p"
5173 break 2
5174 ;;
5175 *)
5176 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5177 continue # so that we can try to find one that supports BSD flags
5178 ;;
5179 esac
5180 ;;
5181 esac
5182 fi
5183 done
5184 IFS=$lt_save_ifs
5185 done
5186 : ${lt_cv_path_NM=no}
5187 fi
5188 fi
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5190 printf "%s\n" "$lt_cv_path_NM" >&6; }
5191 if test no != "$lt_cv_path_NM"; then
5192 NM=$lt_cv_path_NM
5193 else
5194 # Didn't find any BSD compatible name lister, look for dumpbin.
5195 if test -n "$DUMPBIN"; then :
5196 # Let the user override the test.
5197 else
5198 if test -n "$ac_tool_prefix"; then
5199 for ac_prog in dumpbin "link -dump"
5200 do
5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 printf %s "checking for $ac_word... " >&6; }
5205 if test ${ac_cv_prog_DUMPBIN+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else $as_nop
5209 if test -n "$DUMPBIN"; then
5210 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215 IFS=$as_save_IFS
5216 case $as_dir in #(((
5217 '') as_dir=./ ;;
5218 */) ;;
5219 *) as_dir=$as_dir/ ;;
5220 esac
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 DUMPBIN=$ac_cv_prog_DUMPBIN
5234 if test -n "$DUMPBIN"; then
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5236 printf "%s\n" "$DUMPBIN" >&6; }
5237 else
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 printf "%s\n" "no" >&6; }
5240 fi
5241
5242
5243 test -n "$DUMPBIN" && break
5244 done
5245 fi
5246 if test -z "$DUMPBIN"; then
5247 ac_ct_DUMPBIN=$DUMPBIN
5248 for ac_prog in dumpbin "link -dump"
5249 do
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 printf %s "checking for $ac_word... " >&6; }
5254 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else $as_nop
5258 if test -n "$ac_ct_DUMPBIN"; then
5259 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 case $as_dir in #(((
5266 '') as_dir=./ ;;
5267 */) ;;
5268 *) as_dir=$as_dir/ ;;
5269 esac
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5283 if test -n "$ac_ct_DUMPBIN"; then
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5285 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5286 else
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 printf "%s\n" "no" >&6; }
5289 fi
5290
5291
5292 test -n "$ac_ct_DUMPBIN" && break
5293 done
5294
5295 if test "x$ac_ct_DUMPBIN" = x; then
5296 DUMPBIN=":"
5297 else
5298 case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5303 esac
5304 DUMPBIN=$ac_ct_DUMPBIN
5305 fi
5306 fi
5307
5308 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5309 *COFF*)
5310 DUMPBIN="$DUMPBIN -symbols -headers"
5311 ;;
5312 *)
5313 DUMPBIN=:
5314 ;;
5315 esac
5316 fi
5317
5318 if test : != "$DUMPBIN"; then
5319 NM=$DUMPBIN
5320 fi
5321 fi
5322 test -z "$NM" && NM=nm
5323
5324
5325
5326
5327
5328
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5330 printf %s "checking the name lister ($NM) interface... " >&6; }
5331 if test ${lt_cv_nm_interface+y}
5332 then :
5333 printf %s "(cached) " >&6
5334 else $as_nop
5335 lt_cv_nm_interface="BSD nm"
5336 echo "int some_variable = 0;" > conftest.$ac_ext
5337 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5338 (eval "$ac_compile" 2>conftest.err)
5339 cat conftest.err >&5
5340 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5341 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5342 cat conftest.err >&5
5343 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5344 cat conftest.out >&5
5345 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5346 lt_cv_nm_interface="MS dumpbin"
5347 fi
5348 rm -f conftest*
5349 fi
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5351 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5352
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5354 printf %s "checking whether ln -s works... " >&6; }
5355 LN_S=$as_ln_s
5356 if test "$LN_S" = "ln -s"; then
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358 printf "%s\n" "yes" >&6; }
5359 else
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5361 printf "%s\n" "no, using $LN_S" >&6; }
5362 fi
5363
5364 # find the maximum length of command line arguments
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5366 printf %s "checking the maximum length of command line arguments... " >&6; }
5367 if test ${lt_cv_sys_max_cmd_len+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else $as_nop
5371 i=0
5372 teststring=ABCD
5373
5374 case $build_os in
5375 msdosdjgpp*)
5376 # On DJGPP, this test can blow up pretty badly due to problems in libc
5377 # (any single argument exceeding 2000 bytes causes a buffer overrun
5378 # during glob expansion). Even if it were fixed, the result of this
5379 # check would be larger than it should be.
5380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5381 ;;
5382
5383 gnu*)
5384 # Under GNU Hurd, this test is not required because there is
5385 # no limit to the length of command line arguments.
5386 # Libtool will interpret -1 as no limit whatsoever
5387 lt_cv_sys_max_cmd_len=-1;
5388 ;;
5389
5390 cygwin* | mingw* | cegcc*)
5391 # On Win9x/ME, this test blows up -- it succeeds, but takes
5392 # about 5 minutes as the teststring grows exponentially.
5393 # Worse, since 9x/ME are not pre-emptively multitasking,
5394 # you end up with a "frozen" computer, even though with patience
5395 # the test eventually succeeds (with a max line length of 256k).
5396 # Instead, let's just punt: use the minimum linelength reported by
5397 # all of the supported platforms: 8192 (on NT/2K/XP).
5398 lt_cv_sys_max_cmd_len=8192;
5399 ;;
5400
5401 mint*)
5402 # On MiNT this can take a long time and run out of memory.
5403 lt_cv_sys_max_cmd_len=8192;
5404 ;;
5405
5406 amigaos*)
5407 # On AmigaOS with pdksh, this test takes hours, literally.
5408 # So we just punt and use a minimum line length of 8192.
5409 lt_cv_sys_max_cmd_len=8192;
5410 ;;
5411
5412 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5413 # This has been around since 386BSD, at least. Likely further.
5414 if test -x /sbin/sysctl; then
5415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5416 elif test -x /usr/sbin/sysctl; then
5417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5418 else
5419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5420 fi
5421 # And add a safety zone
5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5424 ;;
5425
5426 interix*)
5427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5428 lt_cv_sys_max_cmd_len=196608
5429 ;;
5430
5431 os2*)
5432 # The test takes a long time on OS/2.
5433 lt_cv_sys_max_cmd_len=8192
5434 ;;
5435
5436 osf*)
5437 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5438 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5439 # nice to cause kernel panics so lets avoid the loop below.
5440 # First set a reasonable default.
5441 lt_cv_sys_max_cmd_len=16384
5442 #
5443 if test -x /sbin/sysconfig; then
5444 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5445 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5446 esac
5447 fi
5448 ;;
5449 sco3.2v5*)
5450 lt_cv_sys_max_cmd_len=102400
5451 ;;
5452 sysv5* | sco5v6* | sysv4.2uw2*)
5453 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5454 if test -n "$kargmax"; then
5455 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5456 else
5457 lt_cv_sys_max_cmd_len=32768
5458 fi
5459 ;;
5460 *)
5461 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5462 if test -n "$lt_cv_sys_max_cmd_len" && \
5463 test undefined != "$lt_cv_sys_max_cmd_len"; then
5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5466 else
5467 # Make teststring a little bigger before we do anything with it.
5468 # a 1K string should be a reasonable start.
5469 for i in 1 2 3 4 5 6 7 8; do
5470 teststring=$teststring$teststring
5471 done
5472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5473 # If test is not a shell built-in, we'll probably end up computing a
5474 # maximum length that is only half of the actual maximum length, but
5475 # we can't tell.
5476 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5477 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5478 test 17 != "$i" # 1/2 MB should be enough
5479 do
5480 i=`expr $i + 1`
5481 teststring=$teststring$teststring
5482 done
5483 # Only check the string length outside the loop.
5484 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5485 teststring=
5486 # Add a significant safety factor because C++ compilers can tack on
5487 # massive amounts of additional arguments before passing them to the
5488 # linker. It appears as though 1/2 is a usable value.
5489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5490 fi
5491 ;;
5492 esac
5493
5494 fi
5495
5496 if test -n "$lt_cv_sys_max_cmd_len"; then
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5498 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5499 else
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5501 printf "%s\n" "none" >&6; }
5502 fi
5503 max_cmd_len=$lt_cv_sys_max_cmd_len
5504
5505
5506
5507
5508
5509
5510 : ${CP="cp -f"}
5511 : ${MV="mv -f"}
5512 : ${RM="rm -f"}
5513
5514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5515 lt_unset=unset
5516 else
5517 lt_unset=false
5518 fi
5519
5520
5521
5522
5523
5524 # test EBCDIC or ASCII
5525 case `echo X|tr X '\101'` in
5526 A) # ASCII based system
5527 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5528 lt_SP2NL='tr \040 \012'
5529 lt_NL2SP='tr \015\012 \040\040'
5530 ;;
5531 *) # EBCDIC based system
5532 lt_SP2NL='tr \100 \n'
5533 lt_NL2SP='tr \r\n \100\100'
5534 ;;
5535 esac
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5546 printf %s "checking how to convert $build file names to $host format... " >&6; }
5547 if test ${lt_cv_to_host_file_cmd+y}
5548 then :
5549 printf %s "(cached) " >&6
5550 else $as_nop
5551 case $host in
5552 *-*-mingw* )
5553 case $build in
5554 *-*-mingw* ) # actually msys
5555 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5556 ;;
5557 *-*-cygwin* )
5558 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5559 ;;
5560 * ) # otherwise, assume *nix
5561 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5562 ;;
5563 esac
5564 ;;
5565 *-*-cygwin* )
5566 case $build in
5567 *-*-mingw* ) # actually msys
5568 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5569 ;;
5570 *-*-cygwin* )
5571 lt_cv_to_host_file_cmd=func_convert_file_noop
5572 ;;
5573 * ) # otherwise, assume *nix
5574 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5575 ;;
5576 esac
5577 ;;
5578 * ) # unhandled hosts (and "normal" native builds)
5579 lt_cv_to_host_file_cmd=func_convert_file_noop
5580 ;;
5581 esac
5582
5583 fi
5584
5585 to_host_file_cmd=$lt_cv_to_host_file_cmd
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5587 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5588
5589
5590
5591
5592
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5594 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5595 if test ${lt_cv_to_tool_file_cmd+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else $as_nop
5599 #assume ordinary cross tools, or native build.
5600 lt_cv_to_tool_file_cmd=func_convert_file_noop
5601 case $host in
5602 *-*-mingw* )
5603 case $build in
5604 *-*-mingw* ) # actually msys
5605 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5606 ;;
5607 esac
5608 ;;
5609 esac
5610
5611 fi
5612
5613 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5615 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5616
5617
5618
5619
5620
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5622 printf %s "checking for $LD option to reload object files... " >&6; }
5623 if test ${lt_cv_ld_reload_flag+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else $as_nop
5627 lt_cv_ld_reload_flag='-r'
5628 fi
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5630 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5631 reload_flag=$lt_cv_ld_reload_flag
5632 case $reload_flag in
5633 "" | " "*) ;;
5634 *) reload_flag=" $reload_flag" ;;
5635 esac
5636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5637 case $host_os in
5638 cygwin* | mingw* | pw32* | cegcc*)
5639 if test yes != "$GCC"; then
5640 reload_cmds=false
5641 fi
5642 ;;
5643 darwin*)
5644 if test yes = "$GCC"; then
5645 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5646 else
5647 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5648 fi
5649 ;;
5650 esac
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660 if test -n "$ac_tool_prefix"; then
5661 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5662 set dummy ${ac_tool_prefix}file; ac_word=$2
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 printf %s "checking for $ac_word... " >&6; }
5665 if test ${ac_cv_prog_FILECMD+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else $as_nop
5669 if test -n "$FILECMD"; then
5670 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 case $as_dir in #(((
5677 '') as_dir=./ ;;
5678 */) ;;
5679 *) as_dir=$as_dir/ ;;
5680 esac
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 FILECMD=$ac_cv_prog_FILECMD
5694 if test -n "$FILECMD"; then
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5696 printf "%s\n" "$FILECMD" >&6; }
5697 else
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 printf "%s\n" "no" >&6; }
5700 fi
5701
5702
5703 fi
5704 if test -z "$ac_cv_prog_FILECMD"; then
5705 ac_ct_FILECMD=$FILECMD
5706 # Extract the first word of "file", so it can be a program name with args.
5707 set dummy file; ac_word=$2
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 printf %s "checking for $ac_word... " >&6; }
5710 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5711 then :
5712 printf %s "(cached) " >&6
5713 else $as_nop
5714 if test -n "$ac_ct_FILECMD"; then
5715 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720 IFS=$as_save_IFS
5721 case $as_dir in #(((
5722 '') as_dir=./ ;;
5723 */) ;;
5724 *) as_dir=$as_dir/ ;;
5725 esac
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_ac_ct_FILECMD="file"
5729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732 done
5733 done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5739 if test -n "$ac_ct_FILECMD"; then
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5741 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5742 else
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 printf "%s\n" "no" >&6; }
5745 fi
5746
5747 if test "x$ac_ct_FILECMD" = x; then
5748 FILECMD=":"
5749 else
5750 case $cross_compiling:$ac_tool_warned in
5751 yes:)
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754 ac_tool_warned=yes ;;
5755 esac
5756 FILECMD=$ac_ct_FILECMD
5757 fi
5758 else
5759 FILECMD="$ac_cv_prog_FILECMD"
5760 fi
5761
5762
5763
5764
5765
5766
5767
5768 if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 printf %s "checking for $ac_word... " >&6; }
5773 if test ${ac_cv_prog_OBJDUMP+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else $as_nop
5777 if test -n "$OBJDUMP"; then
5778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783 IFS=$as_save_IFS
5784 case $as_dir in #(((
5785 '') as_dir=./ ;;
5786 */) ;;
5787 *) as_dir=$as_dir/ ;;
5788 esac
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 OBJDUMP=$ac_cv_prog_OBJDUMP
5802 if test -n "$OBJDUMP"; then
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5804 printf "%s\n" "$OBJDUMP" >&6; }
5805 else
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 printf "%s\n" "no" >&6; }
5808 fi
5809
5810
5811 fi
5812 if test -z "$ac_cv_prog_OBJDUMP"; then
5813 ac_ct_OBJDUMP=$OBJDUMP
5814 # Extract the first word of "objdump", so it can be a program name with args.
5815 set dummy objdump; ac_word=$2
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 printf %s "checking for $ac_word... " >&6; }
5818 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5819 then :
5820 printf %s "(cached) " >&6
5821 else $as_nop
5822 if test -n "$ac_ct_OBJDUMP"; then
5823 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828 IFS=$as_save_IFS
5829 case $as_dir in #(((
5830 '') as_dir=./ ;;
5831 */) ;;
5832 *) as_dir=$as_dir/ ;;
5833 esac
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5847 if test -n "$ac_ct_OBJDUMP"; then
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5849 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5850 else
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 printf "%s\n" "no" >&6; }
5853 fi
5854
5855 if test "x$ac_ct_OBJDUMP" = x; then
5856 OBJDUMP="false"
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859 yes:)
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862 ac_tool_warned=yes ;;
5863 esac
5864 OBJDUMP=$ac_ct_OBJDUMP
5865 fi
5866 else
5867 OBJDUMP="$ac_cv_prog_OBJDUMP"
5868 fi
5869
5870 test -z "$OBJDUMP" && OBJDUMP=objdump
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5881 printf %s "checking how to recognize dependent libraries... " >&6; }
5882 if test ${lt_cv_deplibs_check_method+y}
5883 then :
5884 printf %s "(cached) " >&6
5885 else $as_nop
5886 lt_cv_file_magic_cmd='$MAGIC_CMD'
5887 lt_cv_file_magic_test_file=
5888 lt_cv_deplibs_check_method='unknown'
5889 # Need to set the preceding variable on all platforms that support
5890 # interlibrary dependencies.
5891 # 'none' -- dependencies not supported.
5892 # 'unknown' -- same as none, but documents that we really don't know.
5893 # 'pass_all' -- all dependencies passed with no checks.
5894 # 'test_compile' -- check by making test program.
5895 # 'file_magic [[regex]]' -- check by looking for files in library path
5896 # that responds to the $file_magic_cmd with a given extended regex.
5897 # If you have 'file' or equivalent on your system and you're not sure
5898 # whether 'pass_all' will *always* work, you probably want this one.
5899
5900 case $host_os in
5901 aix[4-9]*)
5902 lt_cv_deplibs_check_method=pass_all
5903 ;;
5904
5905 beos*)
5906 lt_cv_deplibs_check_method=pass_all
5907 ;;
5908
5909 bsdi[45]*)
5910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5911 lt_cv_file_magic_cmd='$FILECMD -L'
5912 lt_cv_file_magic_test_file=/shlib/libc.so
5913 ;;
5914
5915 cygwin*)
5916 # func_win32_libid is a shell function defined in ltmain.sh
5917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5918 lt_cv_file_magic_cmd='func_win32_libid'
5919 ;;
5920
5921 mingw* | pw32*)
5922 # Base MSYS/MinGW do not provide the 'file' command needed by
5923 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5924 # unless we find 'file', for example because we are cross-compiling.
5925 if ( file / ) >/dev/null 2>&1; then
5926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5927 lt_cv_file_magic_cmd='func_win32_libid'
5928 else
5929 # Keep this pattern in sync with the one in func_win32_libid.
5930 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5931 lt_cv_file_magic_cmd='$OBJDUMP -f'
5932 fi
5933 ;;
5934
5935 cegcc*)
5936 # use the weaker test based on 'objdump'. See mingw*.
5937 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5938 lt_cv_file_magic_cmd='$OBJDUMP -f'
5939 ;;
5940
5941 darwin* | rhapsody*)
5942 lt_cv_deplibs_check_method=pass_all
5943 ;;
5944
5945 freebsd* | dragonfly* | midnightbsd*)
5946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5947 case $host_cpu in
5948 i*86 )
5949 # Not sure whether the presence of OpenBSD here was a mistake.
5950 # Let's accept both of them until this is cleared up.
5951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5952 lt_cv_file_magic_cmd=$FILECMD
5953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5954 ;;
5955 esac
5956 else
5957 lt_cv_deplibs_check_method=pass_all
5958 fi
5959 ;;
5960
5961 haiku*)
5962 lt_cv_deplibs_check_method=pass_all
5963 ;;
5964
5965 hpux10.20* | hpux11*)
5966 lt_cv_file_magic_cmd=$FILECMD
5967 case $host_cpu in
5968 ia64*)
5969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5970 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5971 ;;
5972 hppa*64*)
5973 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]'
5974 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5975 ;;
5976 *)
5977 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5978 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5979 ;;
5980 esac
5981 ;;
5982
5983 interix[3-9]*)
5984 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5986 ;;
5987
5988 irix5* | irix6* | nonstopux*)
5989 case $LD in
5990 *-32|*"-32 ") libmagic=32-bit;;
5991 *-n32|*"-n32 ") libmagic=N32;;
5992 *-64|*"-64 ") libmagic=64-bit;;
5993 *) libmagic=never-match;;
5994 esac
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997
5998 # This must be glibc/ELF.
5999 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
6002
6003 netbsd*)
6004 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6006 else
6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6008 fi
6009 ;;
6010
6011 newos6*)
6012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6013 lt_cv_file_magic_cmd=$FILECMD
6014 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6015 ;;
6016
6017 *nto* | *qnx*)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020
6021 openbsd* | bitrig*)
6022 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6024 else
6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6026 fi
6027 ;;
6028
6029 osf3* | osf4* | osf5*)
6030 lt_cv_deplibs_check_method=pass_all
6031 ;;
6032
6033 rdos*)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036
6037 solaris*)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040
6041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 sysv4 | sysv4.3*)
6046 case $host_vendor in
6047 motorola)
6048 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]'
6049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6050 ;;
6051 ncr)
6052 lt_cv_deplibs_check_method=pass_all
6053 ;;
6054 sequent)
6055 lt_cv_file_magic_cmd='/bin/file'
6056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6057 ;;
6058 sni)
6059 lt_cv_file_magic_cmd='/bin/file'
6060 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6061 lt_cv_file_magic_test_file=/lib/libc.so
6062 ;;
6063 siemens)
6064 lt_cv_deplibs_check_method=pass_all
6065 ;;
6066 pc)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
6069 esac
6070 ;;
6071
6072 tpf*)
6073 lt_cv_deplibs_check_method=pass_all
6074 ;;
6075 os2*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078 esac
6079
6080 fi
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6082 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6083
6084 file_magic_glob=
6085 want_nocaseglob=no
6086 if test "$build" = "$host"; then
6087 case $host_os in
6088 mingw* | pw32*)
6089 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6090 want_nocaseglob=yes
6091 else
6092 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6093 fi
6094 ;;
6095 esac
6096 fi
6097
6098 file_magic_cmd=$lt_cv_file_magic_cmd
6099 deplibs_check_method=$lt_cv_deplibs_check_method
6100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 printf %s "checking for $ac_word... " >&6; }
6128 if test ${ac_cv_prog_DLLTOOL+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else $as_nop
6132 if test -n "$DLLTOOL"; then
6133 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 case $as_dir in #(((
6140 '') as_dir=./ ;;
6141 */) ;;
6142 *) as_dir=$as_dir/ ;;
6143 esac
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 DLLTOOL=$ac_cv_prog_DLLTOOL
6157 if test -n "$DLLTOOL"; then
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6159 printf "%s\n" "$DLLTOOL" >&6; }
6160 else
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 printf "%s\n" "no" >&6; }
6163 fi
6164
6165
6166 fi
6167 if test -z "$ac_cv_prog_DLLTOOL"; then
6168 ac_ct_DLLTOOL=$DLLTOOL
6169 # Extract the first word of "dlltool", so it can be a program name with args.
6170 set dummy dlltool; ac_word=$2
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 printf %s "checking for $ac_word... " >&6; }
6173 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6174 then :
6175 printf %s "(cached) " >&6
6176 else $as_nop
6177 if test -n "$ac_ct_DLLTOOL"; then
6178 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 case $as_dir in #(((
6185 '') as_dir=./ ;;
6186 */) ;;
6187 *) as_dir=$as_dir/ ;;
6188 esac
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6202 if test -n "$ac_ct_DLLTOOL"; then
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6204 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6205 else
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 printf "%s\n" "no" >&6; }
6208 fi
6209
6210 if test "x$ac_ct_DLLTOOL" = x; then
6211 DLLTOOL="false"
6212 else
6213 case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217 ac_tool_warned=yes ;;
6218 esac
6219 DLLTOOL=$ac_ct_DLLTOOL
6220 fi
6221 else
6222 DLLTOOL="$ac_cv_prog_DLLTOOL"
6223 fi
6224
6225 test -z "$DLLTOOL" && DLLTOOL=dlltool
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6237 printf %s "checking how to associate runtime and link libraries... " >&6; }
6238 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else $as_nop
6242 lt_cv_sharedlib_from_linklib_cmd='unknown'
6243
6244 case $host_os in
6245 cygwin* | mingw* | pw32* | cegcc*)
6246 # two different shell functions defined in ltmain.sh;
6247 # decide which one to use based on capabilities of $DLLTOOL
6248 case `$DLLTOOL --help 2>&1` in
6249 *--identify-strict*)
6250 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6251 ;;
6252 *)
6253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6254 ;;
6255 esac
6256 ;;
6257 *)
6258 # fallback: assume linklib IS sharedlib
6259 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6260 ;;
6261 esac
6262
6263 fi
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6265 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6266 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6267 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6268
6269
6270
6271
6272
6273
6274
6275
6276 if test -n "$ac_tool_prefix"; then
6277 for ac_prog in ar
6278 do
6279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 printf %s "checking for $ac_word... " >&6; }
6283 if test ${ac_cv_prog_AR+y}
6284 then :
6285 printf %s "(cached) " >&6
6286 else $as_nop
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 case $as_dir in #(((
6295 '') as_dir=./ ;;
6296 */) ;;
6297 *) as_dir=$as_dir/ ;;
6298 esac
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305 done
6306 done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 AR=$ac_cv_prog_AR
6312 if test -n "$AR"; then
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6314 printf "%s\n" "$AR" >&6; }
6315 else
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 printf "%s\n" "no" >&6; }
6318 fi
6319
6320
6321 test -n "$AR" && break
6322 done
6323 fi
6324 if test -z "$AR"; then
6325 ac_ct_AR=$AR
6326 for ac_prog in ar
6327 do
6328 # Extract the first word of "$ac_prog", so it can be a program name with args.
6329 set dummy $ac_prog; ac_word=$2
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 printf %s "checking for $ac_word... " >&6; }
6332 if test ${ac_cv_prog_ac_ct_AR+y}
6333 then :
6334 printf %s "(cached) " >&6
6335 else $as_nop
6336 if test -n "$ac_ct_AR"; then
6337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 case $as_dir in #(((
6344 '') as_dir=./ ;;
6345 */) ;;
6346 *) as_dir=$as_dir/ ;;
6347 esac
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_ac_ct_AR="$ac_prog"
6351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6361 if test -n "$ac_ct_AR"; then
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6363 printf "%s\n" "$ac_ct_AR" >&6; }
6364 else
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 printf "%s\n" "no" >&6; }
6367 fi
6368
6369
6370 test -n "$ac_ct_AR" && break
6371 done
6372
6373 if test "x$ac_ct_AR" = x; then
6374 AR="false"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 AR=$ac_ct_AR
6383 fi
6384 fi
6385
6386 : ${AR=ar}
6387
6388
6389
6390
6391
6392
6393 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6394 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6395 # higher priority because thats what people were doing historically (setting
6396 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6397 # variable obsoleted/removed.
6398
6399 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6400 lt_ar_flags=$AR_FLAGS
6401
6402
6403
6404
6405
6406
6407 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6408 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6409
6410
6411
6412
6413
6414
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6416 printf %s "checking for archiver @FILE support... " >&6; }
6417 if test ${lt_cv_ar_at_file+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else $as_nop
6421 lt_cv_ar_at_file=no
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424
6425 int
6426 main (void)
6427 {
6428
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"
6434 then :
6435 echo conftest.$ac_objext > conftest.lst
6436 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6438 (eval $lt_ar_try) 2>&5
6439 ac_status=$?
6440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441 test $ac_status = 0; }
6442 if test 0 -eq "$ac_status"; then
6443 # Ensure the archiver fails upon bogus file names.
6444 rm -f conftest.$ac_objext libconftest.a
6445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6446 (eval $lt_ar_try) 2>&5
6447 ac_status=$?
6448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }
6450 if test 0 -ne "$ac_status"; then
6451 lt_cv_ar_at_file=@
6452 fi
6453 fi
6454 rm -f conftest.* libconftest.a
6455
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6458
6459 fi
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6461 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6462
6463 if test no = "$lt_cv_ar_at_file"; then
6464 archiver_list_spec=
6465 else
6466 archiver_list_spec=$lt_cv_ar_at_file
6467 fi
6468
6469
6470
6471
6472
6473
6474
6475 if test -n "$ac_tool_prefix"; then
6476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}strip; ac_word=$2
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 printf %s "checking for $ac_word... " >&6; }
6480 if test ${ac_cv_prog_STRIP+y}
6481 then :
6482 printf %s "(cached) " >&6
6483 else $as_nop
6484 if test -n "$STRIP"; then
6485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490 IFS=$as_save_IFS
6491 case $as_dir in #(((
6492 '') as_dir=./ ;;
6493 */) ;;
6494 *) as_dir=$as_dir/ ;;
6495 esac
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 STRIP=$ac_cv_prog_STRIP
6509 if test -n "$STRIP"; then
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6511 printf "%s\n" "$STRIP" >&6; }
6512 else
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 printf "%s\n" "no" >&6; }
6515 fi
6516
6517
6518 fi
6519 if test -z "$ac_cv_prog_STRIP"; then
6520 ac_ct_STRIP=$STRIP
6521 # Extract the first word of "strip", so it can be a program name with args.
6522 set dummy strip; ac_word=$2
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 printf %s "checking for $ac_word... " >&6; }
6525 if test ${ac_cv_prog_ac_ct_STRIP+y}
6526 then :
6527 printf %s "(cached) " >&6
6528 else $as_nop
6529 if test -n "$ac_ct_STRIP"; then
6530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 case $as_dir in #(((
6537 '') as_dir=./ ;;
6538 */) ;;
6539 *) as_dir=$as_dir/ ;;
6540 esac
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_STRIP="strip"
6544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6554 if test -n "$ac_ct_STRIP"; then
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6556 printf "%s\n" "$ac_ct_STRIP" >&6; }
6557 else
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 printf "%s\n" "no" >&6; }
6560 fi
6561
6562 if test "x$ac_ct_STRIP" = x; then
6563 STRIP=":"
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571 STRIP=$ac_ct_STRIP
6572 fi
6573 else
6574 STRIP="$ac_cv_prog_STRIP"
6575 fi
6576
6577 test -z "$STRIP" && STRIP=:
6578
6579
6580
6581
6582
6583
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 printf %s "checking for $ac_word... " >&6; }
6589 if test ${ac_cv_prog_RANLIB+y}
6590 then :
6591 printf %s "(cached) " >&6
6592 else $as_nop
6593 if test -n "$RANLIB"; then
6594 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 case $as_dir in #(((
6601 '') as_dir=./ ;;
6602 */) ;;
6603 *) as_dir=$as_dir/ ;;
6604 esac
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 RANLIB=$ac_cv_prog_RANLIB
6618 if test -n "$RANLIB"; then
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6620 printf "%s\n" "$RANLIB" >&6; }
6621 else
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 printf "%s\n" "no" >&6; }
6624 fi
6625
6626
6627 fi
6628 if test -z "$ac_cv_prog_RANLIB"; then
6629 ac_ct_RANLIB=$RANLIB
6630 # Extract the first word of "ranlib", so it can be a program name with args.
6631 set dummy ranlib; ac_word=$2
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 printf %s "checking for $ac_word... " >&6; }
6634 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6635 then :
6636 printf %s "(cached) " >&6
6637 else $as_nop
6638 if test -n "$ac_ct_RANLIB"; then
6639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644 IFS=$as_save_IFS
6645 case $as_dir in #(((
6646 '') as_dir=./ ;;
6647 */) ;;
6648 *) as_dir=$as_dir/ ;;
6649 esac
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_ac_ct_RANLIB="ranlib"
6653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656 done
6657 done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6663 if test -n "$ac_ct_RANLIB"; then
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6665 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6666 else
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 printf "%s\n" "no" >&6; }
6669 fi
6670
6671 if test "x$ac_ct_RANLIB" = x; then
6672 RANLIB=":"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680 RANLIB=$ac_ct_RANLIB
6681 fi
6682 else
6683 RANLIB="$ac_cv_prog_RANLIB"
6684 fi
6685
6686 test -z "$RANLIB" && RANLIB=:
6687
6688
6689
6690
6691
6692
6693 # Determine commands to create old-style static archives.
6694 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6695 old_postinstall_cmds='chmod 644 $oldlib'
6696 old_postuninstall_cmds=
6697
6698 if test -n "$RANLIB"; then
6699 case $host_os in
6700 bitrig* | openbsd*)
6701 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6702 ;;
6703 *)
6704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6705 ;;
6706 esac
6707 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6708 fi
6709
6710 case $host_os in
6711 darwin*)
6712 lock_old_archive_extraction=yes ;;
6713 *)
6714 lock_old_archive_extraction=no ;;
6715 esac
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755 # If no C compiler was specified, use CC.
6756 LTCC=${LTCC-"$CC"}
6757
6758 # If no C compiler flags were specified, use CFLAGS.
6759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6760
6761 # Allow CC to be a program name with arguments.
6762 compiler=$CC
6763
6764
6765 # Check for command to grab the raw symbol name followed by C symbol from nm.
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6767 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6768 if test ${lt_cv_sys_global_symbol_pipe+y}
6769 then :
6770 printf %s "(cached) " >&6
6771 else $as_nop
6772
6773 # These are sane defaults that work on at least a few old systems.
6774 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6775
6776 # Character class describing NM global symbol codes.
6777 symcode='[BCDEGRST]'
6778
6779 # Regexp to match symbols that can be accessed directly from C.
6780 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6781
6782 # Define system-specific variables.
6783 case $host_os in
6784 aix*)
6785 symcode='[BCDT]'
6786 ;;
6787 cygwin* | mingw* | pw32* | cegcc*)
6788 symcode='[ABCDGISTW]'
6789 ;;
6790 hpux*)
6791 if test ia64 = "$host_cpu"; then
6792 symcode='[ABCDEGRST]'
6793 fi
6794 ;;
6795 irix* | nonstopux*)
6796 symcode='[BCDEGRST]'
6797 ;;
6798 osf*)
6799 symcode='[BCDEGQRST]'
6800 ;;
6801 solaris*)
6802 symcode='[BDRT]'
6803 ;;
6804 sco3.2v5*)
6805 symcode='[DT]'
6806 ;;
6807 sysv4.2uw2*)
6808 symcode='[DT]'
6809 ;;
6810 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6811 symcode='[ABDT]'
6812 ;;
6813 sysv4)
6814 symcode='[DFNSTU]'
6815 ;;
6816 esac
6817
6818 # If we're using GNU nm, then use its standard symbol codes.
6819 case `$NM -V 2>&1` in
6820 *GNU* | *'with BFD'*)
6821 symcode='[ABCDGIRSTW]' ;;
6822 esac
6823
6824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6825 # Gets list of data symbols to import.
6826 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6827 # Adjust the below global symbol transforms to fixup imported variables.
6828 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6829 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6830 lt_c_name_lib_hook="\
6831 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6832 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6833 else
6834 # Disable hooks by default.
6835 lt_cv_sys_global_symbol_to_import=
6836 lt_cdecl_hook=
6837 lt_c_name_hook=
6838 lt_c_name_lib_hook=
6839 fi
6840
6841 # Transform an extracted symbol line into a proper C declaration.
6842 # Some systems (esp. on ia64) link data and code symbols differently,
6843 # so use this general approach.
6844 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6845 $lt_cdecl_hook\
6846 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6847 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6848
6849 # Transform an extracted symbol line into symbol name and symbol address
6850 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6851 $lt_c_name_hook\
6852 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6853 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6854
6855 # Transform an extracted symbol line into symbol name with lib prefix and
6856 # symbol address.
6857 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6858 $lt_c_name_lib_hook\
6859 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6860 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6861 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6862
6863 # Handle CRLF in mingw tool chain
6864 opt_cr=
6865 case $build_os in
6866 mingw*)
6867 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6868 ;;
6869 esac
6870
6871 # Try without a prefix underscore, then with it.
6872 for ac_symprfx in "" "_"; do
6873
6874 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6875 symxfrm="\\1 $ac_symprfx\\2 \\2"
6876
6877 # Write the raw and C identifiers.
6878 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6879 # Fake it for dumpbin and say T for any non-static function,
6880 # D for any global variable and I for any imported variable.
6881 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6882 # which start with @ or ?.
6883 lt_cv_sys_global_symbol_pipe="$AWK '"\
6884 " {last_section=section; section=\$ 3};"\
6885 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6886 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6887 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6888 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6889 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6890 " \$ 0!~/External *\|/{next};"\
6891 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6892 " {if(hide[section]) next};"\
6893 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6894 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6895 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6896 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6897 " ' prfx=^$ac_symprfx"
6898 else
6899 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6900 fi
6901 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6902
6903 # Check to see that the pipe works correctly.
6904 pipe_works=no
6905
6906 rm -f conftest*
6907 cat > conftest.$ac_ext <<_LT_EOF
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911 char nm_test_var;
6912 void nm_test_func(void);
6913 void nm_test_func(void){}
6914 #ifdef __cplusplus
6915 }
6916 #endif
6917 int main(){nm_test_var='a';nm_test_func();return(0);}
6918 _LT_EOF
6919
6920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6921 (eval $ac_compile) 2>&5
6922 ac_status=$?
6923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924 test $ac_status = 0; }; then
6925 # Now try to grab the symbols.
6926 nlist=conftest.nm
6927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6928 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6929 ac_status=$?
6930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; } && test -s "$nlist"; then
6932 # Try sorting and uniquifying the output.
6933 if sort "$nlist" | uniq > "$nlist"T; then
6934 mv -f "$nlist"T "$nlist"
6935 else
6936 rm -f "$nlist"T
6937 fi
6938
6939 # Make sure that we snagged all the symbols we need.
6940 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6941 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6942 cat <<_LT_EOF > conftest.$ac_ext
6943 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6944 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6945 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6946 relocations are performed -- see ld's documentation on pseudo-relocs. */
6947 # define LT_DLSYM_CONST
6948 #elif defined __osf__
6949 /* This system does not cope well with relocations in const data. */
6950 # define LT_DLSYM_CONST
6951 #else
6952 # define LT_DLSYM_CONST const
6953 #endif
6954
6955 #ifdef __cplusplus
6956 extern "C" {
6957 #endif
6958
6959 _LT_EOF
6960 # Now generate the symbol file.
6961 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6962
6963 cat <<_LT_EOF >> conftest.$ac_ext
6964
6965 /* The mapping between symbol names and symbols. */
6966 LT_DLSYM_CONST struct {
6967 const char *name;
6968 void *address;
6969 }
6970 lt__PROGRAM__LTX_preloaded_symbols[] =
6971 {
6972 { "@PROGRAM@", (void *) 0 },
6973 _LT_EOF
6974 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6975 cat <<\_LT_EOF >> conftest.$ac_ext
6976 {0, (void *) 0}
6977 };
6978
6979 /* This works around a problem in FreeBSD linker */
6980 #ifdef FREEBSD_WORKAROUND
6981 static const void *lt_preloaded_setup() {
6982 return lt__PROGRAM__LTX_preloaded_symbols;
6983 }
6984 #endif
6985
6986 #ifdef __cplusplus
6987 }
6988 #endif
6989 _LT_EOF
6990 # Now try linking the two files.
6991 mv conftest.$ac_objext conftstm.$ac_objext
6992 lt_globsym_save_LIBS=$LIBS
6993 lt_globsym_save_CFLAGS=$CFLAGS
6994 LIBS=conftstm.$ac_objext
6995 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6997 (eval $ac_link) 2>&5
6998 ac_status=$?
6999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7001 pipe_works=yes
7002 fi
7003 LIBS=$lt_globsym_save_LIBS
7004 CFLAGS=$lt_globsym_save_CFLAGS
7005 else
7006 echo "cannot find nm_test_func in $nlist" >&5
7007 fi
7008 else
7009 echo "cannot find nm_test_var in $nlist" >&5
7010 fi
7011 else
7012 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7013 fi
7014 else
7015 echo "$progname: failed program was:" >&5
7016 cat conftest.$ac_ext >&5
7017 fi
7018 rm -rf conftest* conftst*
7019
7020 # Do not use the global_symbol_pipe unless it works.
7021 if test yes = "$pipe_works"; then
7022 break
7023 else
7024 lt_cv_sys_global_symbol_pipe=
7025 fi
7026 done
7027
7028 fi
7029
7030 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7031 lt_cv_sys_global_symbol_to_cdecl=
7032 fi
7033 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7035 printf "%s\n" "failed" >&6; }
7036 else
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7038 printf "%s\n" "ok" >&6; }
7039 fi
7040
7041 # Response file support.
7042 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7043 nm_file_list_spec='@'
7044 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7045 nm_file_list_spec='@'
7046 fi
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7085 printf %s "checking for sysroot... " >&6; }
7086
7087 # Check whether --with-sysroot was given.
7088 if test ${with_sysroot+y}
7089 then :
7090 withval=$with_sysroot;
7091 else $as_nop
7092 with_sysroot=no
7093 fi
7094
7095
7096 lt_sysroot=
7097 case $with_sysroot in #(
7098 yes)
7099 if test yes = "$GCC"; then
7100 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7101 fi
7102 ;; #(
7103 /*)
7104 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7105 ;; #(
7106 no|'')
7107 ;; #(
7108 *)
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7110 printf "%s\n" "$with_sysroot" >&6; }
7111 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7112 ;;
7113 esac
7114
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7116 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7117
7118
7119
7120
7121
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7123 printf %s "checking for a working dd... " >&6; }
7124 if test ${ac_cv_path_lt_DD+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else $as_nop
7128 printf 0123456789abcdef0123456789abcdef >conftest.i
7129 cat conftest.i conftest.i >conftest2.i
7130 : ${lt_DD:=$DD}
7131 if test -z "$lt_DD"; then
7132 ac_path_lt_DD_found=false
7133 # Loop through the user's path and test for each of PROGNAME-LIST
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137 IFS=$as_save_IFS
7138 case $as_dir in #(((
7139 '') as_dir=./ ;;
7140 */) ;;
7141 *) as_dir=$as_dir/ ;;
7142 esac
7143 for ac_prog in dd
7144 do
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7147 as_fn_executable_p "$ac_path_lt_DD" || continue
7148 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7149 cmp -s conftest.i conftest.out \
7150 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7151 fi
7152 $ac_path_lt_DD_found && break 3
7153 done
7154 done
7155 done
7156 IFS=$as_save_IFS
7157 if test -z "$ac_cv_path_lt_DD"; then
7158 :
7159 fi
7160 else
7161 ac_cv_path_lt_DD=$lt_DD
7162 fi
7163
7164 rm -f conftest.i conftest2.i conftest.out
7165 fi
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7167 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7168
7169
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7171 printf %s "checking how to truncate binary pipes... " >&6; }
7172 if test ${lt_cv_truncate_bin+y}
7173 then :
7174 printf %s "(cached) " >&6
7175 else $as_nop
7176 printf 0123456789abcdef0123456789abcdef >conftest.i
7177 cat conftest.i conftest.i >conftest2.i
7178 lt_cv_truncate_bin=
7179 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7180 cmp -s conftest.i conftest.out \
7181 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7182 fi
7183 rm -f conftest.i conftest2.i conftest.out
7184 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7185 fi
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7187 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7188
7189
7190
7191
7192
7193
7194
7195 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7196 func_cc_basename ()
7197 {
7198 for cc_temp in $*""; do
7199 case $cc_temp in
7200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7202 \-*) ;;
7203 *) break;;
7204 esac
7205 done
7206 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7207 }
7208
7209 # Check whether --enable-libtool-lock was given.
7210 if test ${enable_libtool_lock+y}
7211 then :
7212 enableval=$enable_libtool_lock;
7213 fi
7214
7215 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7216
7217 # Some flags need to be propagated to the compiler or linker for good
7218 # libtool support.
7219 case $host in
7220 ia64-*-hpux*)
7221 # Find out what ABI is being produced by ac_compile, and set mode
7222 # options accordingly.
7223 echo 'int i;' > conftest.$ac_ext
7224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7225 (eval $ac_compile) 2>&5
7226 ac_status=$?
7227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228 test $ac_status = 0; }; then
7229 case `$FILECMD conftest.$ac_objext` in
7230 *ELF-32*)
7231 HPUX_IA64_MODE=32
7232 ;;
7233 *ELF-64*)
7234 HPUX_IA64_MODE=64
7235 ;;
7236 esac
7237 fi
7238 rm -rf conftest*
7239 ;;
7240 *-*-irix6*)
7241 # Find out what ABI is being produced by ac_compile, and set linker
7242 # options accordingly.
7243 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7246 ac_status=$?
7247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 if test yes = "$lt_cv_prog_gnu_ld"; then
7250 case `$FILECMD conftest.$ac_objext` in
7251 *32-bit*)
7252 LD="${LD-ld} -melf32bsmip"
7253 ;;
7254 *N32*)
7255 LD="${LD-ld} -melf32bmipn32"
7256 ;;
7257 *64-bit*)
7258 LD="${LD-ld} -melf64bmip"
7259 ;;
7260 esac
7261 else
7262 case `$FILECMD conftest.$ac_objext` in
7263 *32-bit*)
7264 LD="${LD-ld} -32"
7265 ;;
7266 *N32*)
7267 LD="${LD-ld} -n32"
7268 ;;
7269 *64-bit*)
7270 LD="${LD-ld} -64"
7271 ;;
7272 esac
7273 fi
7274 fi
7275 rm -rf conftest*
7276 ;;
7277
7278 mips64*-*linux*)
7279 # Find out what ABI is being produced by ac_compile, and set linker
7280 # options accordingly.
7281 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7283 (eval $ac_compile) 2>&5
7284 ac_status=$?
7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; }; then
7287 emul=elf
7288 case `$FILECMD conftest.$ac_objext` in
7289 *32-bit*)
7290 emul="${emul}32"
7291 ;;
7292 *64-bit*)
7293 emul="${emul}64"
7294 ;;
7295 esac
7296 case `$FILECMD conftest.$ac_objext` in
7297 *MSB*)
7298 emul="${emul}btsmip"
7299 ;;
7300 *LSB*)
7301 emul="${emul}ltsmip"
7302 ;;
7303 esac
7304 case `$FILECMD conftest.$ac_objext` in
7305 *N32*)
7306 emul="${emul}n32"
7307 ;;
7308 esac
7309 LD="${LD-ld} -m $emul"
7310 fi
7311 rm -rf conftest*
7312 ;;
7313
7314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7316 # Find out what ABI is being produced by ac_compile, and set linker
7317 # options accordingly. Note that the listed cases only cover the
7318 # situations where additional linker options are needed (such as when
7319 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7320 # vice versa); the common cases where no linker options are needed do
7321 # not appear in the list.
7322 echo 'int i;' > conftest.$ac_ext
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; }; then
7328 case `$FILECMD conftest.o` in
7329 *32-bit*)
7330 case $host in
7331 x86_64-*kfreebsd*-gnu)
7332 LD="${LD-ld} -m elf_i386_fbsd"
7333 ;;
7334 x86_64-*linux*)
7335 case `$FILECMD conftest.o` in
7336 *x86-64*)
7337 LD="${LD-ld} -m elf32_x86_64"
7338 ;;
7339 *)
7340 LD="${LD-ld} -m elf_i386"
7341 ;;
7342 esac
7343 ;;
7344 powerpc64le-*linux*)
7345 LD="${LD-ld} -m elf32lppclinux"
7346 ;;
7347 powerpc64-*linux*)
7348 LD="${LD-ld} -m elf32ppclinux"
7349 ;;
7350 s390x-*linux*)
7351 LD="${LD-ld} -m elf_s390"
7352 ;;
7353 sparc64-*linux*)
7354 LD="${LD-ld} -m elf32_sparc"
7355 ;;
7356 esac
7357 ;;
7358 *64-bit*)
7359 case $host in
7360 x86_64-*kfreebsd*-gnu)
7361 LD="${LD-ld} -m elf_x86_64_fbsd"
7362 ;;
7363 x86_64-*linux*)
7364 LD="${LD-ld} -m elf_x86_64"
7365 ;;
7366 powerpcle-*linux*)
7367 LD="${LD-ld} -m elf64lppc"
7368 ;;
7369 powerpc-*linux*)
7370 LD="${LD-ld} -m elf64ppc"
7371 ;;
7372 s390*-*linux*|s390*-*tpf*)
7373 LD="${LD-ld} -m elf64_s390"
7374 ;;
7375 sparc*-*linux*)
7376 LD="${LD-ld} -m elf64_sparc"
7377 ;;
7378 esac
7379 ;;
7380 esac
7381 fi
7382 rm -rf conftest*
7383 ;;
7384
7385 *-*-sco3.2v5*)
7386 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7387 SAVE_CFLAGS=$CFLAGS
7388 CFLAGS="$CFLAGS -belf"
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7390 printf %s "checking whether the C compiler needs -belf... " >&6; }
7391 if test ${lt_cv_cc_needs_belf+y}
7392 then :
7393 printf %s "(cached) " >&6
7394 else $as_nop
7395 ac_ext=c
7396 ac_cpp='$CPP $CPPFLAGS'
7397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403
7404 int
7405 main (void)
7406 {
7407
7408 ;
7409 return 0;
7410 }
7411 _ACEOF
7412 if ac_fn_c_try_link "$LINENO"
7413 then :
7414 lt_cv_cc_needs_belf=yes
7415 else $as_nop
7416 lt_cv_cc_needs_belf=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7419 conftest$ac_exeext conftest.$ac_ext
7420 ac_ext=c
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425
7426 fi
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7428 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7429 if test yes != "$lt_cv_cc_needs_belf"; then
7430 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7431 CFLAGS=$SAVE_CFLAGS
7432 fi
7433 ;;
7434 *-*solaris*)
7435 # Find out what ABI is being produced by ac_compile, and set linker
7436 # options accordingly.
7437 echo 'int i;' > conftest.$ac_ext
7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439 (eval $ac_compile) 2>&5
7440 ac_status=$?
7441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; }; then
7443 case `$FILECMD conftest.o` in
7444 *64-bit*)
7445 case $lt_cv_prog_gnu_ld in
7446 yes*)
7447 case $host in
7448 i?86-*-solaris*|x86_64-*-solaris*)
7449 LD="${LD-ld} -m elf_x86_64"
7450 ;;
7451 sparc*-*-solaris*)
7452 LD="${LD-ld} -m elf64_sparc"
7453 ;;
7454 esac
7455 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7456 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7457 LD=${LD-ld}_sol2
7458 fi
7459 ;;
7460 *)
7461 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7462 LD="${LD-ld} -64"
7463 fi
7464 ;;
7465 esac
7466 ;;
7467 esac
7468 fi
7469 rm -rf conftest*
7470 ;;
7471 esac
7472
7473 need_locks=$enable_libtool_lock
7474
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}mt; ac_word=$2
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 printf %s "checking for $ac_word... " >&6; }
7480 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7481 then :
7482 printf %s "(cached) " >&6
7483 else $as_nop
7484 if test -n "$MANIFEST_TOOL"; then
7485 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490 IFS=$as_save_IFS
7491 case $as_dir in #(((
7492 '') as_dir=./ ;;
7493 */) ;;
7494 *) as_dir=$as_dir/ ;;
7495 esac
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7509 if test -n "$MANIFEST_TOOL"; then
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7511 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7512 else
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 printf "%s\n" "no" >&6; }
7515 fi
7516
7517
7518 fi
7519 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7520 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7521 # Extract the first word of "mt", so it can be a program name with args.
7522 set dummy mt; ac_word=$2
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 printf %s "checking for $ac_word... " >&6; }
7525 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7526 then :
7527 printf %s "(cached) " >&6
7528 else $as_nop
7529 if test -n "$ac_ct_MANIFEST_TOOL"; then
7530 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535 IFS=$as_save_IFS
7536 case $as_dir in #(((
7537 '') as_dir=./ ;;
7538 */) ;;
7539 *) as_dir=$as_dir/ ;;
7540 esac
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7554 if test -n "$ac_ct_MANIFEST_TOOL"; then
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7556 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7557 else
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 printf "%s\n" "no" >&6; }
7560 fi
7561
7562 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7563 MANIFEST_TOOL=":"
7564 else
7565 case $cross_compiling:$ac_tool_warned in
7566 yes:)
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569 ac_tool_warned=yes ;;
7570 esac
7571 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7572 fi
7573 else
7574 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7575 fi
7576
7577 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7579 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7580 if test ${lt_cv_path_mainfest_tool+y}
7581 then :
7582 printf %s "(cached) " >&6
7583 else $as_nop
7584 lt_cv_path_mainfest_tool=no
7585 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7586 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7587 cat conftest.err >&5
7588 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7589 lt_cv_path_mainfest_tool=yes
7590 fi
7591 rm -f conftest*
7592 fi
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7594 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7595 if test yes != "$lt_cv_path_mainfest_tool"; then
7596 MANIFEST_TOOL=:
7597 fi
7598
7599
7600
7601
7602
7603
7604 case $host_os in
7605 rhapsody* | darwin*)
7606 if test -n "$ac_tool_prefix"; then
7607 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7608 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 printf %s "checking for $ac_word... " >&6; }
7611 if test ${ac_cv_prog_DSYMUTIL+y}
7612 then :
7613 printf %s "(cached) " >&6
7614 else $as_nop
7615 if test -n "$DSYMUTIL"; then
7616 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 case $as_dir in #(((
7623 '') as_dir=./ ;;
7624 */) ;;
7625 *) as_dir=$as_dir/ ;;
7626 esac
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7640 if test -n "$DSYMUTIL"; then
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7642 printf "%s\n" "$DSYMUTIL" >&6; }
7643 else
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 printf "%s\n" "no" >&6; }
7646 fi
7647
7648
7649 fi
7650 if test -z "$ac_cv_prog_DSYMUTIL"; then
7651 ac_ct_DSYMUTIL=$DSYMUTIL
7652 # Extract the first word of "dsymutil", so it can be a program name with args.
7653 set dummy dsymutil; ac_word=$2
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 printf %s "checking for $ac_word... " >&6; }
7656 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7657 then :
7658 printf %s "(cached) " >&6
7659 else $as_nop
7660 if test -n "$ac_ct_DSYMUTIL"; then
7661 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 case $as_dir in #(((
7668 '') as_dir=./ ;;
7669 */) ;;
7670 *) as_dir=$as_dir/ ;;
7671 esac
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7685 if test -n "$ac_ct_DSYMUTIL"; then
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7687 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7688 else
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 printf "%s\n" "no" >&6; }
7691 fi
7692
7693 if test "x$ac_ct_DSYMUTIL" = x; then
7694 DSYMUTIL=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702 DSYMUTIL=$ac_ct_DSYMUTIL
7703 fi
7704 else
7705 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7706 fi
7707
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7710 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 printf %s "checking for $ac_word... " >&6; }
7713 if test ${ac_cv_prog_NMEDIT+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else $as_nop
7717 if test -n "$NMEDIT"; then
7718 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 case $as_dir in #(((
7725 '') as_dir=./ ;;
7726 */) ;;
7727 *) as_dir=$as_dir/ ;;
7728 esac
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7731 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 NMEDIT=$ac_cv_prog_NMEDIT
7742 if test -n "$NMEDIT"; then
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7744 printf "%s\n" "$NMEDIT" >&6; }
7745 else
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 printf "%s\n" "no" >&6; }
7748 fi
7749
7750
7751 fi
7752 if test -z "$ac_cv_prog_NMEDIT"; then
7753 ac_ct_NMEDIT=$NMEDIT
7754 # Extract the first word of "nmedit", so it can be a program name with args.
7755 set dummy nmedit; ac_word=$2
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 printf %s "checking for $ac_word... " >&6; }
7758 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7759 then :
7760 printf %s "(cached) " >&6
7761 else $as_nop
7762 if test -n "$ac_ct_NMEDIT"; then
7763 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 case $as_dir in #(((
7770 '') as_dir=./ ;;
7771 */) ;;
7772 *) as_dir=$as_dir/ ;;
7773 esac
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7787 if test -n "$ac_ct_NMEDIT"; then
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7789 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7790 else
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 printf "%s\n" "no" >&6; }
7793 fi
7794
7795 if test "x$ac_ct_NMEDIT" = x; then
7796 NMEDIT=":"
7797 else
7798 case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804 NMEDIT=$ac_ct_NMEDIT
7805 fi
7806 else
7807 NMEDIT="$ac_cv_prog_NMEDIT"
7808 fi
7809
7810 if test -n "$ac_tool_prefix"; then
7811 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7812 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 printf %s "checking for $ac_word... " >&6; }
7815 if test ${ac_cv_prog_LIPO+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else $as_nop
7819 if test -n "$LIPO"; then
7820 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825 IFS=$as_save_IFS
7826 case $as_dir in #(((
7827 '') as_dir=./ ;;
7828 */) ;;
7829 *) as_dir=$as_dir/ ;;
7830 esac
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 LIPO=$ac_cv_prog_LIPO
7844 if test -n "$LIPO"; then
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7846 printf "%s\n" "$LIPO" >&6; }
7847 else
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 printf "%s\n" "no" >&6; }
7850 fi
7851
7852
7853 fi
7854 if test -z "$ac_cv_prog_LIPO"; then
7855 ac_ct_LIPO=$LIPO
7856 # Extract the first word of "lipo", so it can be a program name with args.
7857 set dummy lipo; ac_word=$2
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 printf %s "checking for $ac_word... " >&6; }
7860 if test ${ac_cv_prog_ac_ct_LIPO+y}
7861 then :
7862 printf %s "(cached) " >&6
7863 else $as_nop
7864 if test -n "$ac_ct_LIPO"; then
7865 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_ac_ct_LIPO="lipo"
7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7889 if test -n "$ac_ct_LIPO"; then
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7891 printf "%s\n" "$ac_ct_LIPO" >&6; }
7892 else
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 printf "%s\n" "no" >&6; }
7895 fi
7896
7897 if test "x$ac_ct_LIPO" = x; then
7898 LIPO=":"
7899 else
7900 case $cross_compiling:$ac_tool_warned in
7901 yes:)
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904 ac_tool_warned=yes ;;
7905 esac
7906 LIPO=$ac_ct_LIPO
7907 fi
7908 else
7909 LIPO="$ac_cv_prog_LIPO"
7910 fi
7911
7912 if test -n "$ac_tool_prefix"; then
7913 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7914 set dummy ${ac_tool_prefix}otool; ac_word=$2
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 printf %s "checking for $ac_word... " >&6; }
7917 if test ${ac_cv_prog_OTOOL+y}
7918 then :
7919 printf %s "(cached) " >&6
7920 else $as_nop
7921 if test -n "$OTOOL"; then
7922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 case $as_dir in #(((
7929 '') as_dir=./ ;;
7930 */) ;;
7931 *) as_dir=$as_dir/ ;;
7932 esac
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939 done
7940 done
7941 IFS=$as_save_IFS
7942
7943 fi
7944 fi
7945 OTOOL=$ac_cv_prog_OTOOL
7946 if test -n "$OTOOL"; then
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7948 printf "%s\n" "$OTOOL" >&6; }
7949 else
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 printf "%s\n" "no" >&6; }
7952 fi
7953
7954
7955 fi
7956 if test -z "$ac_cv_prog_OTOOL"; then
7957 ac_ct_OTOOL=$OTOOL
7958 # Extract the first word of "otool", so it can be a program name with args.
7959 set dummy otool; ac_word=$2
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 printf %s "checking for $ac_word... " >&6; }
7962 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7963 then :
7964 printf %s "(cached) " >&6
7965 else $as_nop
7966 if test -n "$ac_ct_OTOOL"; then
7967 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972 IFS=$as_save_IFS
7973 case $as_dir in #(((
7974 '') as_dir=./ ;;
7975 */) ;;
7976 *) as_dir=$as_dir/ ;;
7977 esac
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7980 ac_cv_prog_ac_ct_OTOOL="otool"
7981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7982 break 2
7983 fi
7984 done
7985 done
7986 IFS=$as_save_IFS
7987
7988 fi
7989 fi
7990 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7991 if test -n "$ac_ct_OTOOL"; then
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7993 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7994 else
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 printf "%s\n" "no" >&6; }
7997 fi
7998
7999 if test "x$ac_ct_OTOOL" = x; then
8000 OTOOL=":"
8001 else
8002 case $cross_compiling:$ac_tool_warned in
8003 yes:)
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008 OTOOL=$ac_ct_OTOOL
8009 fi
8010 else
8011 OTOOL="$ac_cv_prog_OTOOL"
8012 fi
8013
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 printf %s "checking for $ac_word... " >&6; }
8019 if test ${ac_cv_prog_OTOOL64+y}
8020 then :
8021 printf %s "(cached) " >&6
8022 else $as_nop
8023 if test -n "$OTOOL64"; then
8024 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 case $as_dir in #(((
8031 '') as_dir=./ ;;
8032 */) ;;
8033 *) as_dir=$as_dir/ ;;
8034 esac
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 OTOOL64=$ac_cv_prog_OTOOL64
8048 if test -n "$OTOOL64"; then
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8050 printf "%s\n" "$OTOOL64" >&6; }
8051 else
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 printf "%s\n" "no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_OTOOL64"; then
8059 ac_ct_OTOOL64=$OTOOL64
8060 # Extract the first word of "otool64", so it can be a program name with args.
8061 set dummy otool64; ac_word=$2
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 printf %s "checking for $ac_word... " >&6; }
8064 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8065 then :
8066 printf %s "(cached) " >&6
8067 else $as_nop
8068 if test -n "$ac_ct_OTOOL64"; then
8069 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074 IFS=$as_save_IFS
8075 case $as_dir in #(((
8076 '') as_dir=./ ;;
8077 */) ;;
8078 *) as_dir=$as_dir/ ;;
8079 esac
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_OTOOL64="otool64"
8083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8093 if test -n "$ac_ct_OTOOL64"; then
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8095 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8096 else
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 printf "%s\n" "no" >&6; }
8099 fi
8100
8101 if test "x$ac_ct_OTOOL64" = x; then
8102 OTOOL64=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 OTOOL64=$ac_ct_OTOOL64
8111 fi
8112 else
8113 OTOOL64="$ac_cv_prog_OTOOL64"
8114 fi
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8143 printf %s "checking for -single_module linker flag... " >&6; }
8144 if test ${lt_cv_apple_cc_single_mod+y}
8145 then :
8146 printf %s "(cached) " >&6
8147 else $as_nop
8148 lt_cv_apple_cc_single_mod=no
8149 if test -z "$LT_MULTI_MODULE"; then
8150 # By default we will add the -single_module flag. You can override
8151 # by either setting the environment variable LT_MULTI_MODULE
8152 # non-empty at configure time, or by adding -multi_module to the
8153 # link flags.
8154 rm -rf libconftest.dylib*
8155 echo "int foo(void){return 1;}" > conftest.c
8156 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8157 -dynamiclib -Wl,-single_module conftest.c" >&5
8158 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8159 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8160 _lt_result=$?
8161 # If there is a non-empty error log, and "single_module"
8162 # appears in it, assume the flag caused a linker warning
8163 if test -s conftest.err && $GREP single_module conftest.err; then
8164 cat conftest.err >&5
8165 # Otherwise, if the output was created with a 0 exit code from
8166 # the compiler, it worked.
8167 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8168 lt_cv_apple_cc_single_mod=yes
8169 else
8170 cat conftest.err >&5
8171 fi
8172 rm -rf libconftest.dylib*
8173 rm -f conftest.*
8174 fi
8175 fi
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8177 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8178
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8180 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8181 if test ${lt_cv_ld_exported_symbols_list+y}
8182 then :
8183 printf %s "(cached) " >&6
8184 else $as_nop
8185 lt_cv_ld_exported_symbols_list=no
8186 save_LDFLAGS=$LDFLAGS
8187 echo "_main" > conftest.sym
8188 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191
8192 int
8193 main (void)
8194 {
8195
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 if ac_fn_c_try_link "$LINENO"
8201 then :
8202 lt_cv_ld_exported_symbols_list=yes
8203 else $as_nop
8204 lt_cv_ld_exported_symbols_list=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LDFLAGS=$save_LDFLAGS
8209
8210 fi
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8213
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8215 printf %s "checking for -force_load linker flag... " >&6; }
8216 if test ${lt_cv_ld_force_load+y}
8217 then :
8218 printf %s "(cached) " >&6
8219 else $as_nop
8220 lt_cv_ld_force_load=no
8221 cat > conftest.c << _LT_EOF
8222 int forced_loaded() { return 2;}
8223 _LT_EOF
8224 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8225 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8226 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8227 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8228 echo "$RANLIB libconftest.a" >&5
8229 $RANLIB libconftest.a 2>&5
8230 cat > conftest.c << _LT_EOF
8231 int main() { return 0;}
8232 _LT_EOF
8233 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8234 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8235 _lt_result=$?
8236 if test -s conftest.err && $GREP force_load conftest.err; then
8237 cat conftest.err >&5
8238 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8239 lt_cv_ld_force_load=yes
8240 else
8241 cat conftest.err >&5
8242 fi
8243 rm -f conftest.err libconftest.a conftest conftest.c
8244 rm -rf conftest.dSYM
8245
8246 fi
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8248 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8249 case $host_os in
8250 rhapsody* | darwin1.[012])
8251 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8252 darwin1.*)
8253 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8254 darwin*)
8255 case $MACOSX_DEPLOYMENT_TARGET,$host in
8256 10.[012],*|,*powerpc*-darwin[5-8]*)
8257 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8258 *)
8259 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8260 esac
8261 ;;
8262 esac
8263 if test yes = "$lt_cv_apple_cc_single_mod"; then
8264 _lt_dar_single_mod='$single_module'
8265 fi
8266 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8267 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8268 else
8269 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8270 fi
8271 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8272 _lt_dsymutil='~$DSYMUTIL $lib || :'
8273 else
8274 _lt_dsymutil=
8275 fi
8276 ;;
8277 esac
8278
8279 # func_munge_path_list VARIABLE PATH
8280 # -----------------------------------
8281 # VARIABLE is name of variable containing _space_ separated list of
8282 # directories to be munged by the contents of PATH, which is string
8283 # having a format:
8284 # "DIR[:DIR]:"
8285 # string "DIR[ DIR]" will be prepended to VARIABLE
8286 # ":DIR[:DIR]"
8287 # string "DIR[ DIR]" will be appended to VARIABLE
8288 # "DIRP[:DIRP]::[DIRA:]DIRA"
8289 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8290 # "DIRA[ DIRA]" will be appended to VARIABLE
8291 # "DIR[:DIR]"
8292 # VARIABLE will be replaced by "DIR[ DIR]"
8293 func_munge_path_list ()
8294 {
8295 case x$2 in
8296 x)
8297 ;;
8298 *:)
8299 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8300 ;;
8301 x:*)
8302 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8303 ;;
8304 *::*)
8305 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8306 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8307 ;;
8308 *)
8309 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8310 ;;
8311 esac
8312 }
8313
8314 ac_header= ac_cache=
8315 for ac_item in $ac_header_c_list
8316 do
8317 if test $ac_cache; then
8318 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8319 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8320 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8321 fi
8322 ac_header= ac_cache=
8323 elif test $ac_header; then
8324 ac_cache=$ac_item
8325 else
8326 ac_header=$ac_item
8327 fi
8328 done
8329
8330
8331
8332
8333
8334
8335
8336
8337 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8338 then :
8339
8340 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8341
8342 fi
8343 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8344 "
8345 if test "x$ac_cv_header_dlfcn_h" = xyes
8346 then :
8347 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8348
8349 fi
8350
8351
8352
8353
8354
8355 # Set options
8356
8357
8358
8359 enable_dlopen=no
8360
8361
8362 enable_win32_dll=no
8363
8364
8365 # Check whether --enable-shared was given.
8366 if test ${enable_shared+y}
8367 then :
8368 enableval=$enable_shared; p=${PACKAGE-default}
8369 case $enableval in
8370 yes) enable_shared=yes ;;
8371 no) enable_shared=no ;;
8372 *)
8373 enable_shared=no
8374 # Look at the argument we got. We use all the common list separators.
8375 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8376 for pkg in $enableval; do
8377 IFS=$lt_save_ifs
8378 if test "X$pkg" = "X$p"; then
8379 enable_shared=yes
8380 fi
8381 done
8382 IFS=$lt_save_ifs
8383 ;;
8384 esac
8385 else $as_nop
8386 enable_shared=yes
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 # Check whether --enable-static was given.
8398 if test ${enable_static+y}
8399 then :
8400 enableval=$enable_static; p=${PACKAGE-default}
8401 case $enableval in
8402 yes) enable_static=yes ;;
8403 no) enable_static=no ;;
8404 *)
8405 enable_static=no
8406 # Look at the argument we got. We use all the common list separators.
8407 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8408 for pkg in $enableval; do
8409 IFS=$lt_save_ifs
8410 if test "X$pkg" = "X$p"; then
8411 enable_static=yes
8412 fi
8413 done
8414 IFS=$lt_save_ifs
8415 ;;
8416 esac
8417 else $as_nop
8418 enable_static=yes
8419 fi
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430 # Check whether --with-pic was given.
8431 if test ${with_pic+y}
8432 then :
8433 withval=$with_pic; lt_p=${PACKAGE-default}
8434 case $withval in
8435 yes|no) pic_mode=$withval ;;
8436 *)
8437 pic_mode=default
8438 # Look at the argument we got. We use all the common list separators.
8439 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8440 for lt_pkg in $withval; do
8441 IFS=$lt_save_ifs
8442 if test "X$lt_pkg" = "X$lt_p"; then
8443 pic_mode=yes
8444 fi
8445 done
8446 IFS=$lt_save_ifs
8447 ;;
8448 esac
8449 else $as_nop
8450 pic_mode=default
8451 fi
8452
8453
8454
8455
8456
8457
8458
8459
8460 # Check whether --enable-fast-install was given.
8461 if test ${enable_fast_install+y}
8462 then :
8463 enableval=$enable_fast_install; p=${PACKAGE-default}
8464 case $enableval in
8465 yes) enable_fast_install=yes ;;
8466 no) enable_fast_install=no ;;
8467 *)
8468 enable_fast_install=no
8469 # Look at the argument we got. We use all the common list separators.
8470 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8471 for pkg in $enableval; do
8472 IFS=$lt_save_ifs
8473 if test "X$pkg" = "X$p"; then
8474 enable_fast_install=yes
8475 fi
8476 done
8477 IFS=$lt_save_ifs
8478 ;;
8479 esac
8480 else $as_nop
8481 enable_fast_install=yes
8482 fi
8483
8484
8485
8486
8487
8488
8489
8490
8491 shared_archive_member_spec=
8492 case $host,$enable_shared in
8493 power*-*-aix[5-9]*,yes)
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8495 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8496
8497 # Check whether --with-aix-soname was given.
8498 if test ${with_aix_soname+y}
8499 then :
8500 withval=$with_aix_soname; case $withval in
8501 aix|svr4|both)
8502 ;;
8503 *)
8504 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8505 ;;
8506 esac
8507 lt_cv_with_aix_soname=$with_aix_soname
8508 else $as_nop
8509 if test ${lt_cv_with_aix_soname+y}
8510 then :
8511 printf %s "(cached) " >&6
8512 else $as_nop
8513 lt_cv_with_aix_soname=aix
8514 fi
8515
8516 with_aix_soname=$lt_cv_with_aix_soname
8517 fi
8518
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8520 printf "%s\n" "$with_aix_soname" >&6; }
8521 if test aix != "$with_aix_soname"; then
8522 # For the AIX way of multilib, we name the shared archive member
8523 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8524 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8525 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8526 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8527 if test 64 = "${OBJECT_MODE-32}"; then
8528 shared_archive_member_spec=shr_64
8529 else
8530 shared_archive_member_spec=shr
8531 fi
8532 fi
8533 ;;
8534 *)
8535 with_aix_soname=aix
8536 ;;
8537 esac
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 # This can be used to rebuild libtool when needed
8549 LIBTOOL_DEPS=$ltmain
8550
8551 # Always use our own libtool.
8552 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583 test -z "$LN_S" && LN_S="ln -s"
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598 if test -n "${ZSH_VERSION+set}"; then
8599 setopt NO_GLOB_SUBST
8600 fi
8601
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8603 printf %s "checking for objdir... " >&6; }
8604 if test ${lt_cv_objdir+y}
8605 then :
8606 printf %s "(cached) " >&6
8607 else $as_nop
8608 rm -f .libs 2>/dev/null
8609 mkdir .libs 2>/dev/null
8610 if test -d .libs; then
8611 lt_cv_objdir=.libs
8612 else
8613 # MS-DOS does not allow filenames that begin with a dot.
8614 lt_cv_objdir=_libs
8615 fi
8616 rmdir .libs 2>/dev/null
8617 fi
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8619 printf "%s\n" "$lt_cv_objdir" >&6; }
8620 objdir=$lt_cv_objdir
8621
8622
8623
8624
8625
8626 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8627
8628
8629
8630
8631 case $host_os in
8632 aix3*)
8633 # AIX sometimes has problems with the GCC collect2 program. For some
8634 # reason, if we set the COLLECT_NAMES environment variable, the problems
8635 # vanish in a puff of smoke.
8636 if test set != "${COLLECT_NAMES+set}"; then
8637 COLLECT_NAMES=
8638 export COLLECT_NAMES
8639 fi
8640 ;;
8641 esac
8642
8643 # Global variables:
8644 ofile=libtool
8645 can_build_shared=yes
8646
8647 # All known linkers require a '.a' archive for static linking (except MSVC and
8648 # ICC, which need '.lib').
8649 libext=a
8650
8651 with_gnu_ld=$lt_cv_prog_gnu_ld
8652
8653 old_CC=$CC
8654 old_CFLAGS=$CFLAGS
8655
8656 # Set sane defaults for various variables
8657 test -z "$CC" && CC=cc
8658 test -z "$LTCC" && LTCC=$CC
8659 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8660 test -z "$LD" && LD=ld
8661 test -z "$ac_objext" && ac_objext=o
8662
8663 func_cc_basename $compiler
8664 cc_basename=$func_cc_basename_result
8665
8666
8667 # Only perform the check for file, if the check method requires it
8668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8669 case $deplibs_check_method in
8670 file_magic*)
8671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8673 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8674 if test ${lt_cv_path_MAGIC_CMD+y}
8675 then :
8676 printf %s "(cached) " >&6
8677 else $as_nop
8678 case $MAGIC_CMD in
8679 [\\/*] | ?:[\\/]*)
8680 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8681 ;;
8682 *)
8683 lt_save_MAGIC_CMD=$MAGIC_CMD
8684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8686 for ac_dir in $ac_dummy; do
8687 IFS=$lt_save_ifs
8688 test -z "$ac_dir" && ac_dir=.
8689 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8690 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8691 if test -n "$file_magic_test_file"; then
8692 case $deplibs_check_method in
8693 "file_magic "*)
8694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8695 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8697 $EGREP "$file_magic_regex" > /dev/null; then
8698 :
8699 else
8700 cat <<_LT_EOF 1>&2
8701
8702 *** Warning: the command libtool uses to detect shared libraries,
8703 *** $file_magic_cmd, produces output that libtool cannot recognize.
8704 *** The result is that libtool may fail to recognize shared libraries
8705 *** as such. This will affect the creation of libtool libraries that
8706 *** depend on shared libraries, but programs linked with such libtool
8707 *** libraries will work regardless of this problem. Nevertheless, you
8708 *** may want to report the problem to your system manager and/or to
8709 *** bug-libtool@gnu.org
8710
8711 _LT_EOF
8712 fi ;;
8713 esac
8714 fi
8715 break
8716 fi
8717 done
8718 IFS=$lt_save_ifs
8719 MAGIC_CMD=$lt_save_MAGIC_CMD
8720 ;;
8721 esac
8722 fi
8723
8724 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8725 if test -n "$MAGIC_CMD"; then
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8727 printf "%s\n" "$MAGIC_CMD" >&6; }
8728 else
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 printf "%s\n" "no" >&6; }
8731 fi
8732
8733
8734
8735
8736
8737 if test -z "$lt_cv_path_MAGIC_CMD"; then
8738 if test -n "$ac_tool_prefix"; then
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8740 printf %s "checking for file... " >&6; }
8741 if test ${lt_cv_path_MAGIC_CMD+y}
8742 then :
8743 printf %s "(cached) " >&6
8744 else $as_nop
8745 case $MAGIC_CMD in
8746 [\\/*] | ?:[\\/]*)
8747 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8748 ;;
8749 *)
8750 lt_save_MAGIC_CMD=$MAGIC_CMD
8751 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8752 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8753 for ac_dir in $ac_dummy; do
8754 IFS=$lt_save_ifs
8755 test -z "$ac_dir" && ac_dir=.
8756 if test -f "$ac_dir/file"; then
8757 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8758 if test -n "$file_magic_test_file"; then
8759 case $deplibs_check_method in
8760 "file_magic "*)
8761 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8762 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8763 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8764 $EGREP "$file_magic_regex" > /dev/null; then
8765 :
8766 else
8767 cat <<_LT_EOF 1>&2
8768
8769 *** Warning: the command libtool uses to detect shared libraries,
8770 *** $file_magic_cmd, produces output that libtool cannot recognize.
8771 *** The result is that libtool may fail to recognize shared libraries
8772 *** as such. This will affect the creation of libtool libraries that
8773 *** depend on shared libraries, but programs linked with such libtool
8774 *** libraries will work regardless of this problem. Nevertheless, you
8775 *** may want to report the problem to your system manager and/or to
8776 *** bug-libtool@gnu.org
8777
8778 _LT_EOF
8779 fi ;;
8780 esac
8781 fi
8782 break
8783 fi
8784 done
8785 IFS=$lt_save_ifs
8786 MAGIC_CMD=$lt_save_MAGIC_CMD
8787 ;;
8788 esac
8789 fi
8790
8791 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8792 if test -n "$MAGIC_CMD"; then
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8794 printf "%s\n" "$MAGIC_CMD" >&6; }
8795 else
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 printf "%s\n" "no" >&6; }
8798 fi
8799
8800
8801 else
8802 MAGIC_CMD=:
8803 fi
8804 fi
8805
8806 fi
8807 ;;
8808 esac
8809
8810 # Use C for the default configuration in the libtool script
8811
8812 lt_save_CC=$CC
8813 ac_ext=c
8814 ac_cpp='$CPP $CPPFLAGS'
8815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
8819
8820 # Source file extension for C test sources.
8821 ac_ext=c
8822
8823 # Object file extension for compiled C test sources.
8824 objext=o
8825 objext=$objext
8826
8827 # Code to be used in simple compile tests
8828 lt_simple_compile_test_code="int some_variable = 0;"
8829
8830 # Code to be used in simple link tests
8831 lt_simple_link_test_code='int main(){return(0);}'
8832
8833
8834
8835
8836
8837
8838
8839 # If no C compiler was specified, use CC.
8840 LTCC=${LTCC-"$CC"}
8841
8842 # If no C compiler flags were specified, use CFLAGS.
8843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8844
8845 # Allow CC to be a program name with arguments.
8846 compiler=$CC
8847
8848 # Save the default compiler, since it gets overwritten when the other
8849 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8850 compiler_DEFAULT=$CC
8851
8852 # save warnings/boilerplate of simple test code
8853 ac_outfile=conftest.$ac_objext
8854 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8855 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8856 _lt_compiler_boilerplate=`cat conftest.err`
8857 $RM conftest*
8858
8859 ac_outfile=conftest.$ac_objext
8860 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8861 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862 _lt_linker_boilerplate=`cat conftest.err`
8863 $RM -r conftest*
8864
8865
8866 if test -n "$compiler"; then
8867
8868 lt_prog_compiler_no_builtin_flag=
8869
8870 if test yes = "$GCC"; then
8871 case $cc_basename in
8872 nvcc*)
8873 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8874 *)
8875 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8876 esac
8877
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8879 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8880 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8881 then :
8882 printf %s "(cached) " >&6
8883 else $as_nop
8884 lt_cv_prog_compiler_rtti_exceptions=no
8885 ac_outfile=conftest.$ac_objext
8886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8887 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8888 # Insert the option either (1) after the last *FLAGS variable, or
8889 # (2) before a word containing "conftest.", or (3) at the end.
8890 # Note that $ac_compile itself does not contain backslashes and begins
8891 # with a dollar sign (not a hyphen), so the echo should work correctly.
8892 # The option is referenced via a variable to avoid confusing sed.
8893 lt_compile=`echo "$ac_compile" | $SED \
8894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8896 -e 's:$: $lt_compiler_flag:'`
8897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8898 (eval "$lt_compile" 2>conftest.err)
8899 ac_status=$?
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 if (exit $ac_status) && test -s "$ac_outfile"; then
8903 # The compiler can only warn and ignore the option if not recognized
8904 # So say no if there are warnings other than the usual output.
8905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8908 lt_cv_prog_compiler_rtti_exceptions=yes
8909 fi
8910 fi
8911 $RM conftest*
8912
8913 fi
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8915 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8916
8917 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8918 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8919 else
8920 :
8921 fi
8922
8923 fi
8924
8925
8926
8927
8928
8929
8930 lt_prog_compiler_wl=
8931 lt_prog_compiler_pic=
8932 lt_prog_compiler_static=
8933
8934
8935 if test yes = "$GCC"; then
8936 lt_prog_compiler_wl='-Wl,'
8937 lt_prog_compiler_static='-static'
8938
8939 case $host_os in
8940 aix*)
8941 # All AIX code is PIC.
8942 if test ia64 = "$host_cpu"; then
8943 # AIX 5 now supports IA64 processor
8944 lt_prog_compiler_static='-Bstatic'
8945 fi
8946 lt_prog_compiler_pic='-fPIC'
8947 ;;
8948
8949 amigaos*)
8950 case $host_cpu in
8951 powerpc)
8952 # see comment about AmigaOS4 .so support
8953 lt_prog_compiler_pic='-fPIC'
8954 ;;
8955 m68k)
8956 # FIXME: we need at least 68020 code to build shared libraries, but
8957 # adding the '-m68020' flag to GCC prevents building anything better,
8958 # like '-m68040'.
8959 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8960 ;;
8961 esac
8962 ;;
8963
8964 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8965 # PIC is the default for these OSes.
8966 ;;
8967
8968 mingw* | cygwin* | pw32* | os2* | cegcc*)
8969 # This hack is so that the source file can tell whether it is being
8970 # built for inclusion in a dll (and should export symbols for example).
8971 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8972 # (--disable-auto-import) libraries
8973 lt_prog_compiler_pic='-DDLL_EXPORT'
8974 case $host_os in
8975 os2*)
8976 lt_prog_compiler_static='$wl-static'
8977 ;;
8978 esac
8979 ;;
8980
8981 darwin* | rhapsody*)
8982 # PIC is the default on this platform
8983 # Common symbols not allowed in MH_DYLIB files
8984 lt_prog_compiler_pic='-fno-common'
8985 ;;
8986
8987 haiku*)
8988 # PIC is the default for Haiku.
8989 # The "-static" flag exists, but is broken.
8990 lt_prog_compiler_static=
8991 ;;
8992
8993 hpux*)
8994 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8995 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8996 # sets the default TLS model and affects inlining.
8997 case $host_cpu in
8998 hppa*64*)
8999 # +Z the default
9000 ;;
9001 *)
9002 lt_prog_compiler_pic='-fPIC'
9003 ;;
9004 esac
9005 ;;
9006
9007 interix[3-9]*)
9008 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9009 # Instead, we relocate shared libraries at runtime.
9010 ;;
9011
9012 msdosdjgpp*)
9013 # Just because we use GCC doesn't mean we suddenly get shared libraries
9014 # on systems that don't support them.
9015 lt_prog_compiler_can_build_shared=no
9016 enable_shared=no
9017 ;;
9018
9019 *nto* | *qnx*)
9020 # QNX uses GNU C++, but need to define -shared option too, otherwise
9021 # it will coredump.
9022 lt_prog_compiler_pic='-fPIC -shared'
9023 ;;
9024
9025 sysv4*MP*)
9026 if test -d /usr/nec; then
9027 lt_prog_compiler_pic=-Kconform_pic
9028 fi
9029 ;;
9030
9031 *)
9032 lt_prog_compiler_pic='-fPIC'
9033 ;;
9034 esac
9035
9036 case $cc_basename in
9037 nvcc*) # Cuda Compiler Driver 2.2
9038 lt_prog_compiler_wl='-Xlinker '
9039 if test -n "$lt_prog_compiler_pic"; then
9040 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9041 fi
9042 ;;
9043 esac
9044 else
9045 # PORTME Check for flag to pass linker flags through the system compiler.
9046 case $host_os in
9047 aix*)
9048 lt_prog_compiler_wl='-Wl,'
9049 if test ia64 = "$host_cpu"; then
9050 # AIX 5 now supports IA64 processor
9051 lt_prog_compiler_static='-Bstatic'
9052 else
9053 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9054 fi
9055 ;;
9056
9057 darwin* | rhapsody*)
9058 # PIC is the default on this platform
9059 # Common symbols not allowed in MH_DYLIB files
9060 lt_prog_compiler_pic='-fno-common'
9061 case $cc_basename in
9062 nagfor*)
9063 # NAG Fortran compiler
9064 lt_prog_compiler_wl='-Wl,-Wl,,'
9065 lt_prog_compiler_pic='-PIC'
9066 lt_prog_compiler_static='-Bstatic'
9067 ;;
9068 esac
9069 ;;
9070
9071 mingw* | cygwin* | pw32* | os2* | cegcc*)
9072 # This hack is so that the source file can tell whether it is being
9073 # built for inclusion in a dll (and should export symbols for example).
9074 lt_prog_compiler_pic='-DDLL_EXPORT'
9075 case $host_os in
9076 os2*)
9077 lt_prog_compiler_static='$wl-static'
9078 ;;
9079 esac
9080 ;;
9081
9082 hpux9* | hpux10* | hpux11*)
9083 lt_prog_compiler_wl='-Wl,'
9084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9085 # not for PA HP-UX.
9086 case $host_cpu in
9087 hppa*64*|ia64*)
9088 # +Z the default
9089 ;;
9090 *)
9091 lt_prog_compiler_pic='+Z'
9092 ;;
9093 esac
9094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9095 lt_prog_compiler_static='$wl-a ${wl}archive'
9096 ;;
9097
9098 irix5* | irix6* | nonstopux*)
9099 lt_prog_compiler_wl='-Wl,'
9100 # PIC (with -KPIC) is the default.
9101 lt_prog_compiler_static='-non_shared'
9102 ;;
9103
9104 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9105 case $cc_basename in
9106 # old Intel for x86_64, which still supported -KPIC.
9107 ecc*)
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_pic='-KPIC'
9110 lt_prog_compiler_static='-static'
9111 ;;
9112 # icc used to be incompatible with GCC.
9113 # ICC 10 doesn't accept -KPIC any more.
9114 icc* | ifort*)
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_pic='-fPIC'
9117 lt_prog_compiler_static='-static'
9118 ;;
9119 # Lahey Fortran 8.1.
9120 lf95*)
9121 lt_prog_compiler_wl='-Wl,'
9122 lt_prog_compiler_pic='--shared'
9123 lt_prog_compiler_static='--static'
9124 ;;
9125 nagfor*)
9126 # NAG Fortran compiler
9127 lt_prog_compiler_wl='-Wl,-Wl,,'
9128 lt_prog_compiler_pic='-PIC'
9129 lt_prog_compiler_static='-Bstatic'
9130 ;;
9131 tcc*)
9132 # Fabrice Bellard et al's Tiny C Compiler
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-fPIC'
9135 lt_prog_compiler_static='-static'
9136 ;;
9137 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9138 # Portland Group compilers (*not* the Pentium gcc compiler,
9139 # which looks to be a dead project)
9140 lt_prog_compiler_wl='-Wl,'
9141 lt_prog_compiler_pic='-fpic'
9142 lt_prog_compiler_static='-Bstatic'
9143 ;;
9144 ccc*)
9145 lt_prog_compiler_wl='-Wl,'
9146 # All Alpha code is PIC.
9147 lt_prog_compiler_static='-non_shared'
9148 ;;
9149 xl* | bgxl* | bgf* | mpixl*)
9150 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9151 lt_prog_compiler_wl='-Wl,'
9152 lt_prog_compiler_pic='-qpic'
9153 lt_prog_compiler_static='-qstaticlink'
9154 ;;
9155 *)
9156 case `$CC -V 2>&1 | $SED 5q` in
9157 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9158 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9159 lt_prog_compiler_pic='-KPIC'
9160 lt_prog_compiler_static='-Bstatic'
9161 lt_prog_compiler_wl=''
9162 ;;
9163 *Sun\ F* | *Sun*Fortran*)
9164 lt_prog_compiler_pic='-KPIC'
9165 lt_prog_compiler_static='-Bstatic'
9166 lt_prog_compiler_wl='-Qoption ld '
9167 ;;
9168 *Sun\ C*)
9169 # Sun C 5.9
9170 lt_prog_compiler_pic='-KPIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 lt_prog_compiler_wl='-Wl,'
9173 ;;
9174 *Intel*\ [CF]*Compiler*)
9175 lt_prog_compiler_wl='-Wl,'
9176 lt_prog_compiler_pic='-fPIC'
9177 lt_prog_compiler_static='-static'
9178 ;;
9179 *Portland\ Group*)
9180 lt_prog_compiler_wl='-Wl,'
9181 lt_prog_compiler_pic='-fpic'
9182 lt_prog_compiler_static='-Bstatic'
9183 ;;
9184 esac
9185 ;;
9186 esac
9187 ;;
9188
9189 newsos6)
9190 lt_prog_compiler_pic='-KPIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 ;;
9193
9194 *nto* | *qnx*)
9195 # QNX uses GNU C++, but need to define -shared option too, otherwise
9196 # it will coredump.
9197 lt_prog_compiler_pic='-fPIC -shared'
9198 ;;
9199
9200 osf3* | osf4* | osf5*)
9201 lt_prog_compiler_wl='-Wl,'
9202 # All OSF/1 code is PIC.
9203 lt_prog_compiler_static='-non_shared'
9204 ;;
9205
9206 rdos*)
9207 lt_prog_compiler_static='-non_shared'
9208 ;;
9209
9210 solaris*)
9211 lt_prog_compiler_pic='-KPIC'
9212 lt_prog_compiler_static='-Bstatic'
9213 case $cc_basename in
9214 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9215 lt_prog_compiler_wl='-Qoption ld ';;
9216 *)
9217 lt_prog_compiler_wl='-Wl,';;
9218 esac
9219 ;;
9220
9221 sunos4*)
9222 lt_prog_compiler_wl='-Qoption ld '
9223 lt_prog_compiler_pic='-PIC'
9224 lt_prog_compiler_static='-Bstatic'
9225 ;;
9226
9227 sysv4 | sysv4.2uw2* | sysv4.3*)
9228 lt_prog_compiler_wl='-Wl,'
9229 lt_prog_compiler_pic='-KPIC'
9230 lt_prog_compiler_static='-Bstatic'
9231 ;;
9232
9233 sysv4*MP*)
9234 if test -d /usr/nec; then
9235 lt_prog_compiler_pic='-Kconform_pic'
9236 lt_prog_compiler_static='-Bstatic'
9237 fi
9238 ;;
9239
9240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-Bstatic'
9244 ;;
9245
9246 unicos*)
9247 lt_prog_compiler_wl='-Wl,'
9248 lt_prog_compiler_can_build_shared=no
9249 ;;
9250
9251 uts4*)
9252 lt_prog_compiler_pic='-pic'
9253 lt_prog_compiler_static='-Bstatic'
9254 ;;
9255
9256 *)
9257 lt_prog_compiler_can_build_shared=no
9258 ;;
9259 esac
9260 fi
9261
9262 case $host_os in
9263 # For platforms that do not support PIC, -DPIC is meaningless:
9264 *djgpp*)
9265 lt_prog_compiler_pic=
9266 ;;
9267 *)
9268 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9269 ;;
9270 esac
9271
9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9273 printf %s "checking for $compiler option to produce PIC... " >&6; }
9274 if test ${lt_cv_prog_compiler_pic+y}
9275 then :
9276 printf %s "(cached) " >&6
9277 else $as_nop
9278 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9279 fi
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9281 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9282 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9283
9284 #
9285 # Check to make sure the PIC flag actually works.
9286 #
9287 if test -n "$lt_prog_compiler_pic"; then
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9289 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9290 if test ${lt_cv_prog_compiler_pic_works+y}
9291 then :
9292 printf %s "(cached) " >&6
9293 else $as_nop
9294 lt_cv_prog_compiler_pic_works=no
9295 ac_outfile=conftest.$ac_objext
9296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9298 # Insert the option either (1) after the last *FLAGS variable, or
9299 # (2) before a word containing "conftest.", or (3) at the end.
9300 # Note that $ac_compile itself does not contain backslashes and begins
9301 # with a dollar sign (not a hyphen), so the echo should work correctly.
9302 # The option is referenced via a variable to avoid confusing sed.
9303 lt_compile=`echo "$ac_compile" | $SED \
9304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9306 -e 's:$: $lt_compiler_flag:'`
9307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9308 (eval "$lt_compile" 2>conftest.err)
9309 ac_status=$?
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 if (exit $ac_status) && test -s "$ac_outfile"; then
9313 # The compiler can only warn and ignore the option if not recognized
9314 # So say no if there are warnings other than the usual output.
9315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9318 lt_cv_prog_compiler_pic_works=yes
9319 fi
9320 fi
9321 $RM conftest*
9322
9323 fi
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9325 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9326
9327 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9328 case $lt_prog_compiler_pic in
9329 "" | " "*) ;;
9330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9331 esac
9332 else
9333 lt_prog_compiler_pic=
9334 lt_prog_compiler_can_build_shared=no
9335 fi
9336
9337 fi
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349 #
9350 # Check to make sure the static flag actually works.
9351 #
9352 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9354 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9355 if test ${lt_cv_prog_compiler_static_works+y}
9356 then :
9357 printf %s "(cached) " >&6
9358 else $as_nop
9359 lt_cv_prog_compiler_static_works=no
9360 save_LDFLAGS=$LDFLAGS
9361 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9362 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9363 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9364 # The linker can only warn and ignore the option if not recognized
9365 # So say no if there are warnings
9366 if test -s conftest.err; then
9367 # Append any errors to the config.log.
9368 cat conftest.err 1>&5
9369 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371 if diff conftest.exp conftest.er2 >/dev/null; then
9372 lt_cv_prog_compiler_static_works=yes
9373 fi
9374 else
9375 lt_cv_prog_compiler_static_works=yes
9376 fi
9377 fi
9378 $RM -r conftest*
9379 LDFLAGS=$save_LDFLAGS
9380
9381 fi
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9383 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9384
9385 if test yes = "$lt_cv_prog_compiler_static_works"; then
9386 :
9387 else
9388 lt_prog_compiler_static=
9389 fi
9390
9391
9392
9393
9394
9395
9396
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9398 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9399 if test ${lt_cv_prog_compiler_c_o+y}
9400 then :
9401 printf %s "(cached) " >&6
9402 else $as_nop
9403 lt_cv_prog_compiler_c_o=no
9404 $RM -r conftest 2>/dev/null
9405 mkdir conftest
9406 cd conftest
9407 mkdir out
9408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9409
9410 lt_compiler_flag="-o out/conftest2.$ac_objext"
9411 # Insert the option either (1) after the last *FLAGS variable, or
9412 # (2) before a word containing "conftest.", or (3) at the end.
9413 # Note that $ac_compile itself does not contain backslashes and begins
9414 # with a dollar sign (not a hyphen), so the echo should work correctly.
9415 lt_compile=`echo "$ac_compile" | $SED \
9416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418 -e 's:$: $lt_compiler_flag:'`
9419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420 (eval "$lt_compile" 2>out/conftest.err)
9421 ac_status=$?
9422 cat out/conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9425 then
9426 # The compiler can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9431 lt_cv_prog_compiler_c_o=yes
9432 fi
9433 fi
9434 chmod u+w . 2>&5
9435 $RM conftest*
9436 # SGI C++ compiler will create directory out/ii_files/ for
9437 # template instantiation
9438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9439 $RM out/* && rmdir out
9440 cd ..
9441 $RM -r conftest
9442 $RM conftest*
9443
9444 fi
9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9446 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9447
9448
9449
9450
9451
9452
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9454 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9455 if test ${lt_cv_prog_compiler_c_o+y}
9456 then :
9457 printf %s "(cached) " >&6
9458 else $as_nop
9459 lt_cv_prog_compiler_c_o=no
9460 $RM -r conftest 2>/dev/null
9461 mkdir conftest
9462 cd conftest
9463 mkdir out
9464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9465
9466 lt_compiler_flag="-o out/conftest2.$ac_objext"
9467 # Insert the option either (1) after the last *FLAGS variable, or
9468 # (2) before a word containing "conftest.", or (3) at the end.
9469 # Note that $ac_compile itself does not contain backslashes and begins
9470 # with a dollar sign (not a hyphen), so the echo should work correctly.
9471 lt_compile=`echo "$ac_compile" | $SED \
9472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9474 -e 's:$: $lt_compiler_flag:'`
9475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9476 (eval "$lt_compile" 2>out/conftest.err)
9477 ac_status=$?
9478 cat out/conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9481 then
9482 # The compiler can only warn and ignore the option if not recognized
9483 # So say no if there are warnings
9484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9487 lt_cv_prog_compiler_c_o=yes
9488 fi
9489 fi
9490 chmod u+w . 2>&5
9491 $RM conftest*
9492 # SGI C++ compiler will create directory out/ii_files/ for
9493 # template instantiation
9494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9495 $RM out/* && rmdir out
9496 cd ..
9497 $RM -r conftest
9498 $RM conftest*
9499
9500 fi
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9502 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9503
9504
9505
9506
9507 hard_links=nottested
9508 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9509 # do not overwrite the value of need_locks provided by the user
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9511 printf %s "checking if we can lock with hard links... " >&6; }
9512 hard_links=yes
9513 $RM conftest*
9514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515 touch conftest.a
9516 ln conftest.a conftest.b 2>&5 || hard_links=no
9517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9519 printf "%s\n" "$hard_links" >&6; }
9520 if test no = "$hard_links"; then
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9522 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9523 need_locks=warn
9524 fi
9525 else
9526 need_locks=no
9527 fi
9528
9529
9530
9531
9532
9533
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9535 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9536
9537 runpath_var=
9538 allow_undefined_flag=
9539 always_export_symbols=no
9540 archive_cmds=
9541 archive_expsym_cmds=
9542 compiler_needs_object=no
9543 enable_shared_with_static_runtimes=no
9544 export_dynamic_flag_spec=
9545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9546 hardcode_automatic=no
9547 hardcode_direct=no
9548 hardcode_direct_absolute=no
9549 hardcode_libdir_flag_spec=
9550 hardcode_libdir_separator=
9551 hardcode_minus_L=no
9552 hardcode_shlibpath_var=unsupported
9553 inherit_rpath=no
9554 link_all_deplibs=unknown
9555 module_cmds=
9556 module_expsym_cmds=
9557 old_archive_from_new_cmds=
9558 old_archive_from_expsyms_cmds=
9559 thread_safe_flag_spec=
9560 whole_archive_flag_spec=
9561 # include_expsyms should be a list of space-separated symbols to be *always*
9562 # included in the symbol list
9563 include_expsyms=
9564 # exclude_expsyms can be an extended regexp of symbols to exclude
9565 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9566 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9567 # as well as any symbol that contains 'd'.
9568 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9569 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9570 # platforms (ab)use it in PIC code, but their linkers get confused if
9571 # the symbol is explicitly referenced. Since portable code cannot
9572 # rely on this symbol name, it's probably fine to never include it in
9573 # preloaded symbol tables.
9574 # Exclude shared library initialization/finalization symbols.
9575 extract_expsyms_cmds=
9576
9577 case $host_os in
9578 cygwin* | mingw* | pw32* | cegcc*)
9579 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9580 # When not using gcc, we currently assume that we are using
9581 # Microsoft Visual C++ or Intel C++ Compiler.
9582 if test yes != "$GCC"; then
9583 with_gnu_ld=no
9584 fi
9585 ;;
9586 interix*)
9587 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9588 with_gnu_ld=yes
9589 ;;
9590 openbsd* | bitrig*)
9591 with_gnu_ld=no
9592 ;;
9593 esac
9594
9595 ld_shlibs=yes
9596
9597 # On some targets, GNU ld is compatible enough with the native linker
9598 # that we're better off using the native interface for both.
9599 lt_use_gnu_ld_interface=no
9600 if test yes = "$with_gnu_ld"; then
9601 case $host_os in
9602 aix*)
9603 # The AIX port of GNU ld has always aspired to compatibility
9604 # with the native linker. However, as the warning in the GNU ld
9605 # block says, versions before 2.19.5* couldn't really create working
9606 # shared libraries, regardless of the interface used.
9607 case `$LD -v 2>&1` in
9608 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9609 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9610 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9611 *)
9612 lt_use_gnu_ld_interface=yes
9613 ;;
9614 esac
9615 ;;
9616 *)
9617 lt_use_gnu_ld_interface=yes
9618 ;;
9619 esac
9620 fi
9621
9622 if test yes = "$lt_use_gnu_ld_interface"; then
9623 # If archive_cmds runs LD, not CC, wlarc should be empty
9624 wlarc='$wl'
9625
9626 # Set some defaults for GNU ld with shared library support. These
9627 # are reset later if shared libraries are not supported. Putting them
9628 # here allows them to be overridden if necessary.
9629 runpath_var=LD_RUN_PATH
9630 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9631 export_dynamic_flag_spec='$wl--export-dynamic'
9632 # ancient GNU ld didn't support --whole-archive et. al.
9633 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9634 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9635 else
9636 whole_archive_flag_spec=
9637 fi
9638 supports_anon_versioning=no
9639 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9640 *GNU\ gold*) supports_anon_versioning=yes ;;
9641 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9644 *\ 2.11.*) ;; # other 2.11 versions
9645 *) supports_anon_versioning=yes ;;
9646 esac
9647
9648 # See if GNU ld supports shared libraries.
9649 case $host_os in
9650 aix[3-9]*)
9651 # On AIX/PPC, the GNU linker is very broken
9652 if test ia64 != "$host_cpu"; then
9653 ld_shlibs=no
9654 cat <<_LT_EOF 1>&2
9655
9656 *** Warning: the GNU linker, at least up to release 2.19, is reported
9657 *** to be unable to reliably create shared libraries on AIX.
9658 *** Therefore, libtool is disabling shared libraries support. If you
9659 *** really care for shared libraries, you may want to install binutils
9660 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9661 *** You will then need to restart the configuration process.
9662
9663 _LT_EOF
9664 fi
9665 ;;
9666
9667 amigaos*)
9668 case $host_cpu in
9669 powerpc)
9670 # see comment about AmigaOS4 .so support
9671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9672 archive_expsym_cmds=''
9673 ;;
9674 m68k)
9675 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)'
9676 hardcode_libdir_flag_spec='-L$libdir'
9677 hardcode_minus_L=yes
9678 ;;
9679 esac
9680 ;;
9681
9682 beos*)
9683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684 allow_undefined_flag=unsupported
9685 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9686 # support --undefined. This deserves some investigation. FIXME
9687 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9688 else
9689 ld_shlibs=no
9690 fi
9691 ;;
9692
9693 cygwin* | mingw* | pw32* | cegcc*)
9694 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9695 # as there is no search path for DLLs.
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 export_dynamic_flag_spec='$wl--export-all-symbols'
9698 allow_undefined_flag=unsupported
9699 always_export_symbols=no
9700 enable_shared_with_static_runtimes=yes
9701 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'
9702 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9703
9704 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706 # If the export-symbols file already is a .def file, use it as
9707 # is; otherwise, prepend EXPORTS...
9708 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9709 cp $export_symbols $output_objdir/$soname.def;
9710 else
9711 echo EXPORTS > $output_objdir/$soname.def;
9712 cat $export_symbols >> $output_objdir/$soname.def;
9713 fi~
9714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9715 else
9716 ld_shlibs=no
9717 fi
9718 ;;
9719
9720 haiku*)
9721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9722 link_all_deplibs=yes
9723 ;;
9724
9725 os2*)
9726 hardcode_libdir_flag_spec='-L$libdir'
9727 hardcode_minus_L=yes
9728 allow_undefined_flag=unsupported
9729 shrext_cmds=.dll
9730 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9731 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9732 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9733 $ECHO EXPORTS >> $output_objdir/$libname.def~
9734 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9735 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9736 emximp -o $lib $output_objdir/$libname.def'
9737 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9738 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9739 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9740 $ECHO EXPORTS >> $output_objdir/$libname.def~
9741 prefix_cmds="$SED"~
9742 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9743 prefix_cmds="$prefix_cmds -e 1d";
9744 fi~
9745 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9746 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9747 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9748 emximp -o $lib $output_objdir/$libname.def'
9749 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9750 enable_shared_with_static_runtimes=yes
9751 file_list_spec='@'
9752 ;;
9753
9754 interix[3-9]*)
9755 hardcode_direct=no
9756 hardcode_shlibpath_var=no
9757 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9758 export_dynamic_flag_spec='$wl-E'
9759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9760 # Instead, shared libraries are loaded at an image base (0x10000000 by
9761 # default) and relocated if they conflict, which is a slow very memory
9762 # consuming and fragmenting process. To avoid this, we pick a random,
9763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9764 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9766 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'
9767 ;;
9768
9769 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9770 tmp_diet=no
9771 if test linux-dietlibc = "$host_os"; then
9772 case $cc_basename in
9773 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9774 esac
9775 fi
9776 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9777 && test no = "$tmp_diet"
9778 then
9779 tmp_addflag=' $pic_flag'
9780 tmp_sharedflag='-shared'
9781 case $cc_basename,$host_cpu in
9782 pgcc*) # Portland Group C compiler
9783 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'
9784 tmp_addflag=' $pic_flag'
9785 ;;
9786 pgf77* | pgf90* | pgf95* | pgfortran*)
9787 # Portland Group f77 and f90 compilers
9788 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'
9789 tmp_addflag=' $pic_flag -Mnomain' ;;
9790 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9791 tmp_addflag=' -i_dynamic' ;;
9792 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9793 tmp_addflag=' -i_dynamic -nofor_main' ;;
9794 ifc* | ifort*) # Intel Fortran compiler
9795 tmp_addflag=' -nofor_main' ;;
9796 lf95*) # Lahey Fortran 8.1
9797 whole_archive_flag_spec=
9798 tmp_sharedflag='--shared' ;;
9799 nagfor*) # NAGFOR 5.3
9800 tmp_sharedflag='-Wl,-shared' ;;
9801 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9802 tmp_sharedflag='-qmkshrobj'
9803 tmp_addflag= ;;
9804 nvcc*) # Cuda Compiler Driver 2.2
9805 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'
9806 compiler_needs_object=yes
9807 ;;
9808 esac
9809 case `$CC -V 2>&1 | $SED 5q` in
9810 *Sun\ C*) # Sun C 5.9
9811 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'
9812 compiler_needs_object=yes
9813 tmp_sharedflag='-G' ;;
9814 *Sun\ F*) # Sun Fortran 8.3
9815 tmp_sharedflag='-G' ;;
9816 esac
9817 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9818
9819 if test yes = "$supports_anon_versioning"; then
9820 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9821 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9822 echo "local: *; };" >> $output_objdir/$libname.ver~
9823 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9824 fi
9825
9826 case $cc_basename in
9827 tcc*)
9828 export_dynamic_flag_spec='-rdynamic'
9829 ;;
9830 xlf* | bgf* | bgxlf* | mpixlf*)
9831 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9832 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9834 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9835 if test yes = "$supports_anon_versioning"; then
9836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9837 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9838 echo "local: *; };" >> $output_objdir/$libname.ver~
9839 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9840 fi
9841 ;;
9842 esac
9843 else
9844 ld_shlibs=no
9845 fi
9846 ;;
9847
9848 netbsd*)
9849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9850 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9851 wlarc=
9852 else
9853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9855 fi
9856 ;;
9857
9858 solaris*)
9859 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9860 ld_shlibs=no
9861 cat <<_LT_EOF 1>&2
9862
9863 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9864 *** create shared libraries on Solaris systems. Therefore, libtool
9865 *** is disabling shared libraries support. We urge you to upgrade GNU
9866 *** binutils to release 2.9.1 or newer. Another option is to modify
9867 *** your PATH or compiler configuration so that the native linker is
9868 *** used, and then restart.
9869
9870 _LT_EOF
9871 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9874 else
9875 ld_shlibs=no
9876 fi
9877 ;;
9878
9879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9880 case `$LD -v 2>&1` in
9881 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9882 ld_shlibs=no
9883 cat <<_LT_EOF 1>&2
9884
9885 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9886 *** reliably create shared libraries on SCO systems. Therefore, libtool
9887 *** is disabling shared libraries support. We urge you to upgrade GNU
9888 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9889 *** your PATH or compiler configuration so that the native linker is
9890 *** used, and then restart.
9891
9892 _LT_EOF
9893 ;;
9894 *)
9895 # For security reasons, it is highly recommended that you always
9896 # use absolute paths for naming shared libraries, and exclude the
9897 # DT_RUNPATH tag from executables and libraries. But doing so
9898 # requires that you compile everything twice, which is a pain.
9899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9903 else
9904 ld_shlibs=no
9905 fi
9906 ;;
9907 esac
9908 ;;
9909
9910 sunos4*)
9911 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912 wlarc=
9913 hardcode_direct=yes
9914 hardcode_shlibpath_var=no
9915 ;;
9916
9917 *)
9918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9921 else
9922 ld_shlibs=no
9923 fi
9924 ;;
9925 esac
9926
9927 if test no = "$ld_shlibs"; then
9928 runpath_var=
9929 hardcode_libdir_flag_spec=
9930 export_dynamic_flag_spec=
9931 whole_archive_flag_spec=
9932 fi
9933 else
9934 # PORTME fill in a description of your system's linker (not GNU ld)
9935 case $host_os in
9936 aix3*)
9937 allow_undefined_flag=unsupported
9938 always_export_symbols=yes
9939 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'
9940 # Note: this linker hardcodes the directories in LIBPATH if there
9941 # are no directories specified by -L.
9942 hardcode_minus_L=yes
9943 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9944 # Neither direct hardcoding nor static linking is supported with a
9945 # broken collect2.
9946 hardcode_direct=unsupported
9947 fi
9948 ;;
9949
9950 aix[4-9]*)
9951 if test ia64 = "$host_cpu"; then
9952 # On IA64, the linker does run time linking by default, so we don't
9953 # have to do anything special.
9954 aix_use_runtimelinking=no
9955 exp_sym_flag='-Bexport'
9956 no_entry_flag=
9957 else
9958 # If we're using GNU nm, then we don't want the "-C" option.
9959 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9960 # Without the "-l" option, or with the "-B" option, AIX nm treats
9961 # weak defined symbols like other global defined symbols, whereas
9962 # GNU nm marks them as "W".
9963 # While the 'weak' keyword is ignored in the Export File, we need
9964 # it in the Import File for the 'aix-soname' feature, so we have
9965 # to replace the "-B" option with "-P" for AIX nm.
9966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9967 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'
9968 else
9969 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 == "L") || (\$ 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'
9970 fi
9971 aix_use_runtimelinking=no
9972
9973 # Test if we are trying to use run time linking or normal
9974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975 # have runtime linking enabled, and use it for executables.
9976 # For shared libraries, we enable/disable runtime linking
9977 # depending on the kind of the shared library created -
9978 # when "with_aix_soname,aix_use_runtimelinking" is:
9979 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9980 # "aix,yes" lib.so shared, rtl:yes, for executables
9981 # lib.a static archive
9982 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9983 # lib.a(lib.so.V) shared, rtl:no, for executables
9984 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9985 # lib.a(lib.so.V) shared, rtl:no
9986 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9987 # lib.a static archive
9988 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9989 for ld_flag in $LDFLAGS; do
9990 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9991 aix_use_runtimelinking=yes
9992 break
9993 fi
9994 done
9995 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9996 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9997 # so we don't have lib.a shared libs to link our executables.
9998 # We have to force runtime linking in this case.
9999 aix_use_runtimelinking=yes
10000 LDFLAGS="$LDFLAGS -Wl,-brtl"
10001 fi
10002 ;;
10003 esac
10004
10005 exp_sym_flag='-bexport'
10006 no_entry_flag='-bnoentry'
10007 fi
10008
10009 # When large executables or shared objects are built, AIX ld can
10010 # have problems creating the table of contents. If linking a library
10011 # or program results in "error TOC overflow" add -mminimal-toc to
10012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10014
10015 archive_cmds=''
10016 hardcode_direct=yes
10017 hardcode_direct_absolute=yes
10018 hardcode_libdir_separator=':'
10019 link_all_deplibs=yes
10020 file_list_spec='$wl-f,'
10021 case $with_aix_soname,$aix_use_runtimelinking in
10022 aix,*) ;; # traditional, no import file
10023 svr4,* | *,yes) # use import file
10024 # The Import File defines what to hardcode.
10025 hardcode_direct=no
10026 hardcode_direct_absolute=no
10027 ;;
10028 esac
10029
10030 if test yes = "$GCC"; then
10031 case $host_os in aix4.[012]|aix4.[012].*)
10032 # We only want to do this on AIX 4.2 and lower, the check
10033 # below for broken collect2 doesn't work under 4.3+
10034 collect2name=`$CC -print-prog-name=collect2`
10035 if test -f "$collect2name" &&
10036 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10037 then
10038 # We have reworked collect2
10039 :
10040 else
10041 # We have old collect2
10042 hardcode_direct=unsupported
10043 # It fails to find uninstalled libraries when the uninstalled
10044 # path is not listed in the libpath. Setting hardcode_minus_L
10045 # to unsupported forces relinking
10046 hardcode_minus_L=yes
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_libdir_separator=
10049 fi
10050 ;;
10051 esac
10052 shared_flag='-shared'
10053 if test yes = "$aix_use_runtimelinking"; then
10054 shared_flag="$shared_flag "'$wl-G'
10055 fi
10056 # Need to ensure runtime linking is disabled for the traditional
10057 # shared library, or the linker may eventually find shared libraries
10058 # /with/ Import File - we do not want to mix them.
10059 shared_flag_aix='-shared'
10060 shared_flag_svr4='-shared $wl-G'
10061 else
10062 # not using gcc
10063 if test ia64 = "$host_cpu"; then
10064 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10065 # chokes on -Wl,-G. The following line is correct:
10066 shared_flag='-G'
10067 else
10068 if test yes = "$aix_use_runtimelinking"; then
10069 shared_flag='$wl-G'
10070 else
10071 shared_flag='$wl-bM:SRE'
10072 fi
10073 shared_flag_aix='$wl-bM:SRE'
10074 shared_flag_svr4='$wl-G'
10075 fi
10076 fi
10077
10078 export_dynamic_flag_spec='$wl-bexpall'
10079 # It seems that -bexpall does not export symbols beginning with
10080 # underscore (_), so it is better to generate a list of symbols to export.
10081 always_export_symbols=yes
10082 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10083 # Warning - without using the other runtime loading flags (-brtl),
10084 # -berok will link without error, but may produce a broken library.
10085 allow_undefined_flag='-berok'
10086 # Determine the default libpath from the value encoded in an
10087 # empty executable.
10088 if test set = "${lt_cv_aix_libpath+set}"; then
10089 aix_libpath=$lt_cv_aix_libpath
10090 else
10091 if test ${lt_cv_aix_libpath_+y}
10092 then :
10093 printf %s "(cached) " >&6
10094 else $as_nop
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097
10098 int
10099 main (void)
10100 {
10101
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"
10107 then :
10108
10109 lt_aix_libpath_sed='
10110 /Import File Strings/,/^$/ {
10111 /^0/ {
10112 s/^0 *\([^ ]*\) *$/\1/
10113 p
10114 }
10115 }'
10116 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10117 # Check for a 64-bit object if we didn't find anything.
10118 if test -z "$lt_cv_aix_libpath_"; then
10119 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120 fi
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10123 conftest$ac_exeext conftest.$ac_ext
10124 if test -z "$lt_cv_aix_libpath_"; then
10125 lt_cv_aix_libpath_=/usr/lib:/lib
10126 fi
10127
10128 fi
10129
10130 aix_libpath=$lt_cv_aix_libpath_
10131 fi
10132
10133 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10134 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
10135 else
10136 if test ia64 = "$host_cpu"; then
10137 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10138 allow_undefined_flag="-z nodefs"
10139 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"
10140 else
10141 # Determine the default libpath from the value encoded in an
10142 # empty executable.
10143 if test set = "${lt_cv_aix_libpath+set}"; then
10144 aix_libpath=$lt_cv_aix_libpath
10145 else
10146 if test ${lt_cv_aix_libpath_+y}
10147 then :
10148 printf %s "(cached) " >&6
10149 else $as_nop
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152
10153 int
10154 main (void)
10155 {
10156
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"
10162 then :
10163
10164 lt_aix_libpath_sed='
10165 /Import File Strings/,/^$/ {
10166 /^0/ {
10167 s/^0 *\([^ ]*\) *$/\1/
10168 p
10169 }
10170 }'
10171 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10172 # Check for a 64-bit object if we didn't find anything.
10173 if test -z "$lt_cv_aix_libpath_"; then
10174 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175 fi
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10178 conftest$ac_exeext conftest.$ac_ext
10179 if test -z "$lt_cv_aix_libpath_"; then
10180 lt_cv_aix_libpath_=/usr/lib:/lib
10181 fi
10182
10183 fi
10184
10185 aix_libpath=$lt_cv_aix_libpath_
10186 fi
10187
10188 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10189 # Warning - without using the other run time loading flags,
10190 # -berok will link without error, but may produce a broken library.
10191 no_undefined_flag=' $wl-bernotok'
10192 allow_undefined_flag=' $wl-berok'
10193 if test yes = "$with_gnu_ld"; then
10194 # We only use this code for GNU lds that support --whole-archive.
10195 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10196 else
10197 # Exported symbols can be pulled into shared objects from archives
10198 whole_archive_flag_spec='$convenience'
10199 fi
10200 archive_cmds_need_lc=yes
10201 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10202 # -brtl affects multiple linker settings, -berok does not and is overridden later
10203 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10204 if test svr4 != "$with_aix_soname"; then
10205 # This is similar to how AIX traditionally builds its shared libraries.
10206 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'
10207 fi
10208 if test aix != "$with_aix_soname"; then
10209 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'
10210 else
10211 # used by -dlpreopen to get the symbols
10212 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10213 fi
10214 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10215 fi
10216 fi
10217 ;;
10218
10219 amigaos*)
10220 case $host_cpu in
10221 powerpc)
10222 # see comment about AmigaOS4 .so support
10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10224 archive_expsym_cmds=''
10225 ;;
10226 m68k)
10227 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)'
10228 hardcode_libdir_flag_spec='-L$libdir'
10229 hardcode_minus_L=yes
10230 ;;
10231 esac
10232 ;;
10233
10234 bsdi[45]*)
10235 export_dynamic_flag_spec=-rdynamic
10236 ;;
10237
10238 cygwin* | mingw* | pw32* | cegcc*)
10239 # When not using gcc, we currently assume that we are using
10240 # Microsoft Visual C++ or Intel C++ Compiler.
10241 # hardcode_libdir_flag_spec is actually meaningless, as there is
10242 # no search path for DLLs.
10243 case $cc_basename in
10244 cl* | icl*)
10245 # Native MSVC or ICC
10246 hardcode_libdir_flag_spec=' '
10247 allow_undefined_flag=unsupported
10248 always_export_symbols=yes
10249 file_list_spec='@'
10250 # Tell ltmain to make .lib files, not .a files.
10251 libext=lib
10252 # Tell ltmain to make .dll files, not .so files.
10253 shrext_cmds=.dll
10254 # FIXME: Setting linknames here is a bad hack.
10255 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10256 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10257 cp "$export_symbols" "$output_objdir/$soname.def";
10258 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10259 else
10260 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10261 fi~
10262 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10263 linknames='
10264 # The linker will not automatically build a static lib if we build a DLL.
10265 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10266 enable_shared_with_static_runtimes=yes
10267 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10268 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10269 # Don't use ranlib
10270 old_postinstall_cmds='chmod 644 $oldlib'
10271 postlink_cmds='lt_outputfile="@OUTPUT@"~
10272 lt_tool_outputfile="@TOOL_OUTPUT@"~
10273 case $lt_outputfile in
10274 *.exe|*.EXE) ;;
10275 *)
10276 lt_outputfile=$lt_outputfile.exe
10277 lt_tool_outputfile=$lt_tool_outputfile.exe
10278 ;;
10279 esac~
10280 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10281 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10282 $RM "$lt_outputfile.manifest";
10283 fi'
10284 ;;
10285 *)
10286 # Assume MSVC and ICC wrapper
10287 hardcode_libdir_flag_spec=' '
10288 allow_undefined_flag=unsupported
10289 # Tell ltmain to make .lib files, not .a files.
10290 libext=lib
10291 # Tell ltmain to make .dll files, not .so files.
10292 shrext_cmds=.dll
10293 # FIXME: Setting linknames here is a bad hack.
10294 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10295 # The linker will automatically build a .lib file if we build a DLL.
10296 old_archive_from_new_cmds='true'
10297 # FIXME: Should let the user specify the lib program.
10298 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10299 enable_shared_with_static_runtimes=yes
10300 ;;
10301 esac
10302 ;;
10303
10304 darwin* | rhapsody*)
10305
10306
10307 archive_cmds_need_lc=no
10308 hardcode_direct=no
10309 hardcode_automatic=yes
10310 hardcode_shlibpath_var=unsupported
10311 if test yes = "$lt_cv_ld_force_load"; then
10312 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\"`'
10313
10314 else
10315 whole_archive_flag_spec=''
10316 fi
10317 link_all_deplibs=yes
10318 allow_undefined_flag=$_lt_dar_allow_undefined
10319 case $cc_basename in
10320 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10321 *) _lt_dar_can_shared=$GCC ;;
10322 esac
10323 if test yes = "$_lt_dar_can_shared"; then
10324 output_verbose_link_cmd=func_echo_all
10325 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10326 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10327 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"
10328 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"
10329
10330 else
10331 ld_shlibs=no
10332 fi
10333
10334 ;;
10335
10336 dgux*)
10337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338 hardcode_libdir_flag_spec='-L$libdir'
10339 hardcode_shlibpath_var=no
10340 ;;
10341
10342 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10343 # support. Future versions do this automatically, but an explicit c++rt0.o
10344 # does not break anything, and helps significantly (at the cost of a little
10345 # extra space).
10346 freebsd2.2*)
10347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10348 hardcode_libdir_flag_spec='-R$libdir'
10349 hardcode_direct=yes
10350 hardcode_shlibpath_var=no
10351 ;;
10352
10353 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10354 freebsd2.*)
10355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10356 hardcode_direct=yes
10357 hardcode_minus_L=yes
10358 hardcode_shlibpath_var=no
10359 ;;
10360
10361 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10362 freebsd* | dragonfly* | midnightbsd*)
10363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10364 hardcode_libdir_flag_spec='-R$libdir'
10365 hardcode_direct=yes
10366 hardcode_shlibpath_var=no
10367 ;;
10368
10369 hpux9*)
10370 if test yes = "$GCC"; then
10371 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'
10372 else
10373 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'
10374 fi
10375 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10376 hardcode_libdir_separator=:
10377 hardcode_direct=yes
10378
10379 # hardcode_minus_L: Not really in the search PATH,
10380 # but as the default location of the library.
10381 hardcode_minus_L=yes
10382 export_dynamic_flag_spec='$wl-E'
10383 ;;
10384
10385 hpux10*)
10386 if test yes,no = "$GCC,$with_gnu_ld"; then
10387 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10388 else
10389 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10390 fi
10391 if test no = "$with_gnu_ld"; then
10392 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10393 hardcode_libdir_separator=:
10394 hardcode_direct=yes
10395 hardcode_direct_absolute=yes
10396 export_dynamic_flag_spec='$wl-E'
10397 # hardcode_minus_L: Not really in the search PATH,
10398 # but as the default location of the library.
10399 hardcode_minus_L=yes
10400 fi
10401 ;;
10402
10403 hpux11*)
10404 if test yes,no = "$GCC,$with_gnu_ld"; then
10405 case $host_cpu in
10406 hppa*64*)
10407 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10408 ;;
10409 ia64*)
10410 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10411 ;;
10412 *)
10413 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10414 ;;
10415 esac
10416 else
10417 case $host_cpu in
10418 hppa*64*)
10419 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 ;;
10421 ia64*)
10422 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10423 ;;
10424 *)
10425
10426 # Older versions of the 11.00 compiler do not understand -b yet
10427 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10429 printf %s "checking if $CC understands -b... " >&6; }
10430 if test ${lt_cv_prog_compiler__b+y}
10431 then :
10432 printf %s "(cached) " >&6
10433 else $as_nop
10434 lt_cv_prog_compiler__b=no
10435 save_LDFLAGS=$LDFLAGS
10436 LDFLAGS="$LDFLAGS -b"
10437 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10438 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10439 # The linker can only warn and ignore the option if not recognized
10440 # So say no if there are warnings
10441 if test -s conftest.err; then
10442 # Append any errors to the config.log.
10443 cat conftest.err 1>&5
10444 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10446 if diff conftest.exp conftest.er2 >/dev/null; then
10447 lt_cv_prog_compiler__b=yes
10448 fi
10449 else
10450 lt_cv_prog_compiler__b=yes
10451 fi
10452 fi
10453 $RM -r conftest*
10454 LDFLAGS=$save_LDFLAGS
10455
10456 fi
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10458 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10459
10460 if test yes = "$lt_cv_prog_compiler__b"; then
10461 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10462 else
10463 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10464 fi
10465
10466 ;;
10467 esac
10468 fi
10469 if test no = "$with_gnu_ld"; then
10470 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10471 hardcode_libdir_separator=:
10472
10473 case $host_cpu in
10474 hppa*64*|ia64*)
10475 hardcode_direct=no
10476 hardcode_shlibpath_var=no
10477 ;;
10478 *)
10479 hardcode_direct=yes
10480 hardcode_direct_absolute=yes
10481 export_dynamic_flag_spec='$wl-E'
10482
10483 # hardcode_minus_L: Not really in the search PATH,
10484 # but as the default location of the library.
10485 hardcode_minus_L=yes
10486 ;;
10487 esac
10488 fi
10489 ;;
10490
10491 irix5* | irix6* | nonstopux*)
10492 if test yes = "$GCC"; then
10493 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'
10494 # Try to use the -exported_symbol ld option, if it does not
10495 # work, assume that -exports_file does not work either and
10496 # implicitly export all symbols.
10497 # This should be the same for all languages, so no per-tag cache variable.
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10499 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10500 if test ${lt_cv_irix_exported_symbol+y}
10501 then :
10502 printf %s "(cached) " >&6
10503 else $as_nop
10504 save_LDFLAGS=$LDFLAGS
10505 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 int foo (void) { return 0; }
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"
10511 then :
10512 lt_cv_irix_exported_symbol=yes
10513 else $as_nop
10514 lt_cv_irix_exported_symbol=no
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LDFLAGS=$save_LDFLAGS
10519 fi
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10521 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10522 if test yes = "$lt_cv_irix_exported_symbol"; then
10523 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'
10524 fi
10525 else
10526 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'
10527 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'
10528 fi
10529 archive_cmds_need_lc='no'
10530 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10531 hardcode_libdir_separator=:
10532 inherit_rpath=yes
10533 link_all_deplibs=yes
10534 ;;
10535
10536 linux*)
10537 case $cc_basename in
10538 tcc*)
10539 # Fabrice Bellard et al's Tiny C Compiler
10540 ld_shlibs=yes
10541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10542 ;;
10543 esac
10544 ;;
10545
10546 netbsd*)
10547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10549 else
10550 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10551 fi
10552 hardcode_libdir_flag_spec='-R$libdir'
10553 hardcode_direct=yes
10554 hardcode_shlibpath_var=no
10555 ;;
10556
10557 newsos6)
10558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10559 hardcode_direct=yes
10560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10561 hardcode_libdir_separator=:
10562 hardcode_shlibpath_var=no
10563 ;;
10564
10565 *nto* | *qnx*)
10566 ;;
10567
10568 openbsd* | bitrig*)
10569 if test -f /usr/libexec/ld.so; then
10570 hardcode_direct=yes
10571 hardcode_shlibpath_var=no
10572 hardcode_direct_absolute=yes
10573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10575 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10576 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10577 export_dynamic_flag_spec='$wl-E'
10578 else
10579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10580 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10581 fi
10582 else
10583 ld_shlibs=no
10584 fi
10585 ;;
10586
10587 os2*)
10588 hardcode_libdir_flag_spec='-L$libdir'
10589 hardcode_minus_L=yes
10590 allow_undefined_flag=unsupported
10591 shrext_cmds=.dll
10592 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10593 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10594 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10595 $ECHO EXPORTS >> $output_objdir/$libname.def~
10596 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10597 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10598 emximp -o $lib $output_objdir/$libname.def'
10599 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10600 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10601 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10602 $ECHO EXPORTS >> $output_objdir/$libname.def~
10603 prefix_cmds="$SED"~
10604 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10605 prefix_cmds="$prefix_cmds -e 1d";
10606 fi~
10607 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10608 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10609 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10610 emximp -o $lib $output_objdir/$libname.def'
10611 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10612 enable_shared_with_static_runtimes=yes
10613 file_list_spec='@'
10614 ;;
10615
10616 osf3*)
10617 if test yes = "$GCC"; then
10618 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10619 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'
10620 else
10621 allow_undefined_flag=' -expect_unresolved \*'
10622 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'
10623 fi
10624 archive_cmds_need_lc='no'
10625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10626 hardcode_libdir_separator=:
10627 ;;
10628
10629 osf4* | osf5*) # as osf3* with the addition of -msym flag
10630 if test yes = "$GCC"; then
10631 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10632 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'
10633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10634 else
10635 allow_undefined_flag=' -expect_unresolved \*'
10636 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'
10637 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~
10638 $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'
10639
10640 # Both c and cxx compiler support -rpath directly
10641 hardcode_libdir_flag_spec='-rpath $libdir'
10642 fi
10643 archive_cmds_need_lc='no'
10644 hardcode_libdir_separator=:
10645 ;;
10646
10647 solaris*)
10648 no_undefined_flag=' -z defs'
10649 if test yes = "$GCC"; then
10650 wlarc='$wl'
10651 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10653 $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'
10654 else
10655 case `$CC -V 2>&1` in
10656 *"Compilers 5.0"*)
10657 wlarc=''
10658 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10660 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10661 ;;
10662 *)
10663 wlarc='$wl'
10664 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10667 ;;
10668 esac
10669 fi
10670 hardcode_libdir_flag_spec='-R$libdir'
10671 hardcode_shlibpath_var=no
10672 case $host_os in
10673 solaris2.[0-5] | solaris2.[0-5].*) ;;
10674 *)
10675 # The compiler driver will combine and reorder linker options,
10676 # but understands '-z linker_flag'. GCC discards it without '$wl',
10677 # but is careful enough not to reorder.
10678 # Supported since Solaris 2.6 (maybe 2.5.1?)
10679 if test yes = "$GCC"; then
10680 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10681 else
10682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10683 fi
10684 ;;
10685 esac
10686 link_all_deplibs=yes
10687 ;;
10688
10689 sunos4*)
10690 if test sequent = "$host_vendor"; then
10691 # Use $CC to link under sequent, because it throws in some extra .o
10692 # files that make .init and .fini sections work.
10693 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10694 else
10695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10696 fi
10697 hardcode_libdir_flag_spec='-L$libdir'
10698 hardcode_direct=yes
10699 hardcode_minus_L=yes
10700 hardcode_shlibpath_var=no
10701 ;;
10702
10703 sysv4)
10704 case $host_vendor in
10705 sni)
10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_direct=yes # is this really true???
10708 ;;
10709 siemens)
10710 ## LD is ld it makes a PLAMLIB
10711 ## CC just makes a GrossModule.
10712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10713 reload_cmds='$CC -r -o $output$reload_objs'
10714 hardcode_direct=no
10715 ;;
10716 motorola)
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10719 ;;
10720 esac
10721 runpath_var='LD_RUN_PATH'
10722 hardcode_shlibpath_var=no
10723 ;;
10724
10725 sysv4.3*)
10726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727 hardcode_shlibpath_var=no
10728 export_dynamic_flag_spec='-Bexport'
10729 ;;
10730
10731 sysv4*MP*)
10732 if test -d /usr/nec; then
10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_shlibpath_var=no
10735 runpath_var=LD_RUN_PATH
10736 hardcode_runpath_var=yes
10737 ld_shlibs=yes
10738 fi
10739 ;;
10740
10741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10742 no_undefined_flag='$wl-z,text'
10743 archive_cmds_need_lc=no
10744 hardcode_shlibpath_var=no
10745 runpath_var='LD_RUN_PATH'
10746
10747 if test yes = "$GCC"; then
10748 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 else
10751 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753 fi
10754 ;;
10755
10756 sysv5* | sco3.2v5* | sco5v6*)
10757 # Note: We CANNOT use -z defs as we might desire, because we do not
10758 # link with -lc, and that would cause any symbols used from libc to
10759 # always be unresolved, which means just about no library would
10760 # ever link correctly. If we're not using GNU ld we use -z text
10761 # though, which does catch some bad symbols but isn't as heavy-handed
10762 # as -z defs.
10763 no_undefined_flag='$wl-z,text'
10764 allow_undefined_flag='$wl-z,nodefs'
10765 archive_cmds_need_lc=no
10766 hardcode_shlibpath_var=no
10767 hardcode_libdir_flag_spec='$wl-R,$libdir'
10768 hardcode_libdir_separator=':'
10769 link_all_deplibs=yes
10770 export_dynamic_flag_spec='$wl-Bexport'
10771 runpath_var='LD_RUN_PATH'
10772
10773 if test yes = "$GCC"; then
10774 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776 else
10777 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779 fi
10780 ;;
10781
10782 uts4*)
10783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784 hardcode_libdir_flag_spec='-L$libdir'
10785 hardcode_shlibpath_var=no
10786 ;;
10787
10788 *)
10789 ld_shlibs=no
10790 ;;
10791 esac
10792
10793 if test sni = "$host_vendor"; then
10794 case $host in
10795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10796 export_dynamic_flag_spec='$wl-Blargedynsym'
10797 ;;
10798 esac
10799 fi
10800 fi
10801
10802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10803 printf "%s\n" "$ld_shlibs" >&6; }
10804 test no = "$ld_shlibs" && can_build_shared=no
10805
10806 with_gnu_ld=$with_gnu_ld
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 #
10823 # Do we need to explicitly link libc?
10824 #
10825 case "x$archive_cmds_need_lc" in
10826 x|xyes)
10827 # Assume -lc should be added
10828 archive_cmds_need_lc=yes
10829
10830 if test yes,yes = "$GCC,$enable_shared"; then
10831 case $archive_cmds in
10832 *'~'*)
10833 # FIXME: we may have to deal with multi-command sequences.
10834 ;;
10835 '$CC '*)
10836 # Test whether the compiler implicitly links with -lc since on some
10837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10838 # to ld, don't add -lc before -lgcc.
10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10840 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10841 if test ${lt_cv_archive_cmds_need_lc+y}
10842 then :
10843 printf %s "(cached) " >&6
10844 else $as_nop
10845 $RM conftest*
10846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10847
10848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10849 (eval $ac_compile) 2>&5
10850 ac_status=$?
10851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10852 test $ac_status = 0; } 2>conftest.err; then
10853 soname=conftest
10854 lib=conftest
10855 libobjs=conftest.$ac_objext
10856 deplibs=
10857 wl=$lt_prog_compiler_wl
10858 pic_flag=$lt_prog_compiler_pic
10859 compiler_flags=-v
10860 linker_flags=-v
10861 verstring=
10862 output_objdir=.
10863 libname=conftest
10864 lt_save_allow_undefined_flag=$allow_undefined_flag
10865 allow_undefined_flag=
10866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10867 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10868 ac_status=$?
10869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10870 test $ac_status = 0; }
10871 then
10872 lt_cv_archive_cmds_need_lc=no
10873 else
10874 lt_cv_archive_cmds_need_lc=yes
10875 fi
10876 allow_undefined_flag=$lt_save_allow_undefined_flag
10877 else
10878 cat conftest.err 1>&5
10879 fi
10880 $RM conftest*
10881
10882 fi
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10884 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10885 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10886 ;;
10887 esac
10888 fi
10889 ;;
10890 esac
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11044 printf %s "checking dynamic linker characteristics... " >&6; }
11045
11046 if test yes = "$GCC"; then
11047 case $host_os in
11048 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11049 *) lt_awk_arg='/^libraries:/' ;;
11050 esac
11051 case $host_os in
11052 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11053 *) lt_sed_strip_eq='s|=/|/|g' ;;
11054 esac
11055 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11056 case $lt_search_path_spec in
11057 *\;*)
11058 # if the path contains ";" then we assume it to be the separator
11059 # otherwise default to the standard path separator (i.e. ":") - it is
11060 # assumed that no part of a normal pathname contains ";" but that should
11061 # okay in the real world where ";" in dirpaths is itself problematic.
11062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11063 ;;
11064 *)
11065 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11066 ;;
11067 esac
11068 # Ok, now we have the path, separated by spaces, we can step through it
11069 # and add multilib dir if necessary...
11070 lt_tmp_lt_search_path_spec=
11071 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11072 # ...but if some path component already ends with the multilib dir we assume
11073 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11074 case "$lt_multi_os_dir; $lt_search_path_spec " in
11075 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11076 lt_multi_os_dir=
11077 ;;
11078 esac
11079 for lt_sys_path in $lt_search_path_spec; do
11080 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11082 elif test -n "$lt_multi_os_dir"; then
11083 test -d "$lt_sys_path" && \
11084 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11085 fi
11086 done
11087 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11088 BEGIN {RS = " "; FS = "/|\n";} {
11089 lt_foo = "";
11090 lt_count = 0;
11091 for (lt_i = NF; lt_i > 0; lt_i--) {
11092 if ($lt_i != "" && $lt_i != ".") {
11093 if ($lt_i == "..") {
11094 lt_count++;
11095 } else {
11096 if (lt_count == 0) {
11097 lt_foo = "/" $lt_i lt_foo;
11098 } else {
11099 lt_count--;
11100 }
11101 }
11102 }
11103 }
11104 if (lt_foo != "") { lt_freq[lt_foo]++; }
11105 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11106 }'`
11107 # AWK program above erroneously prepends '/' to C:/dos/paths
11108 # for these hosts.
11109 case $host_os in
11110 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11111 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11112 esac
11113 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11114 else
11115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11116 fi
11117 library_names_spec=
11118 libname_spec='lib$name'
11119 soname_spec=
11120 shrext_cmds=.so
11121 postinstall_cmds=
11122 postuninstall_cmds=
11123 finish_cmds=
11124 finish_eval=
11125 shlibpath_var=
11126 shlibpath_overrides_runpath=unknown
11127 version_type=none
11128 dynamic_linker="$host_os ld.so"
11129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11130 need_lib_prefix=unknown
11131 hardcode_into_libs=no
11132
11133 # when you set need_version to no, make sure it does not cause -set_version
11134 # flags to be left without arguments
11135 need_version=unknown
11136
11137
11138
11139 case $host_os in
11140 aix3*)
11141 version_type=linux # correct to gnu/linux during the next big refactor
11142 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11143 shlibpath_var=LIBPATH
11144
11145 # AIX 3 has no versioning support, so we append a major version to the name.
11146 soname_spec='$libname$release$shared_ext$major'
11147 ;;
11148
11149 aix[4-9]*)
11150 version_type=linux # correct to gnu/linux during the next big refactor
11151 need_lib_prefix=no
11152 need_version=no
11153 hardcode_into_libs=yes
11154 if test ia64 = "$host_cpu"; then
11155 # AIX 5 supports IA64
11156 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 else
11159 # With GCC up to 2.95.x, collect2 would create an import file
11160 # for dependence libraries. The import file would start with
11161 # the line '#! .'. This would cause the generated library to
11162 # depend on '.', always an invalid library. This was fixed in
11163 # development snapshots of GCC prior to 3.0.
11164 case $host_os in
11165 aix4 | aix4.[01] | aix4.[01].*)
11166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11167 echo ' yes '
11168 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11169 :
11170 else
11171 can_build_shared=no
11172 fi
11173 ;;
11174 esac
11175 # Using Import Files as archive members, it is possible to support
11176 # filename-based versioning of shared library archives on AIX. While
11177 # this would work for both with and without runtime linking, it will
11178 # prevent static linking of such archives. So we do filename-based
11179 # shared library versioning with .so extension only, which is used
11180 # when both runtime linking and shared linking is enabled.
11181 # Unfortunately, runtime linking may impact performance, so we do
11182 # not want this to be the default eventually. Also, we use the
11183 # versioned .so libs for executables only if there is the -brtl
11184 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11185 # To allow for filename-based versioning support, we need to create
11186 # libNAME.so.V as an archive file, containing:
11187 # *) an Import File, referring to the versioned filename of the
11188 # archive as well as the shared archive member, telling the
11189 # bitwidth (32 or 64) of that shared object, and providing the
11190 # list of exported symbols of that shared object, eventually
11191 # decorated with the 'weak' keyword
11192 # *) the shared object with the F_LOADONLY flag set, to really avoid
11193 # it being seen by the linker.
11194 # At run time we better use the real file rather than another symlink,
11195 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11196
11197 case $with_aix_soname,$aix_use_runtimelinking in
11198 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11199 # soname into executable. Probably we can add versioning support to
11200 # collect2, so additional links can be useful in future.
11201 aix,yes) # traditional libtool
11202 dynamic_linker='AIX unversionable lib.so'
11203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11204 # instead of lib<name>.a to let people know that these are not
11205 # typical AIX shared libraries.
11206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11207 ;;
11208 aix,no) # traditional AIX only
11209 dynamic_linker='AIX lib.a(lib.so.V)'
11210 # We preserve .a as extension for shared libraries through AIX4.2
11211 # and later when we are not doing run time linking.
11212 library_names_spec='$libname$release.a $libname.a'
11213 soname_spec='$libname$release$shared_ext$major'
11214 ;;
11215 svr4,*) # full svr4 only
11216 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11217 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11218 # We do not specify a path in Import Files, so LIBPATH fires.
11219 shlibpath_overrides_runpath=yes
11220 ;;
11221 *,yes) # both, prefer svr4
11222 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11223 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11224 # unpreferred sharedlib libNAME.a needs extra handling
11225 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"'
11226 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"'
11227 # We do not specify a path in Import Files, so LIBPATH fires.
11228 shlibpath_overrides_runpath=yes
11229 ;;
11230 *,no) # both, prefer aix
11231 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11232 library_names_spec='$libname$release.a $libname.a'
11233 soname_spec='$libname$release$shared_ext$major'
11234 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11235 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)'
11236 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"'
11237 ;;
11238 esac
11239 shlibpath_var=LIBPATH
11240 fi
11241 ;;
11242
11243 amigaos*)
11244 case $host_cpu in
11245 powerpc)
11246 # Since July 2007 AmigaOS4 officially supports .so libraries.
11247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11249 ;;
11250 m68k)
11251 library_names_spec='$libname.ixlibrary $libname.a'
11252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11253 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'
11254 ;;
11255 esac
11256 ;;
11257
11258 beos*)
11259 library_names_spec='$libname$shared_ext'
11260 dynamic_linker="$host_os ld.so"
11261 shlibpath_var=LIBRARY_PATH
11262 ;;
11263
11264 bsdi[45]*)
11265 version_type=linux # correct to gnu/linux during the next big refactor
11266 need_version=no
11267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11268 soname_spec='$libname$release$shared_ext$major'
11269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11273 # the default ld.so.conf also contains /usr/contrib/lib and
11274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11275 # libtool to hard-code these into programs
11276 ;;
11277
11278 cygwin* | mingw* | pw32* | cegcc*)
11279 version_type=windows
11280 shrext_cmds=.dll
11281 need_version=no
11282 need_lib_prefix=no
11283
11284 case $GCC,$cc_basename in
11285 yes,*)
11286 # gcc
11287 library_names_spec='$libname.dll.a'
11288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11289 postinstall_cmds='base_file=`basename \$file`~
11290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11291 dldir=$destdir/`dirname \$dlpath`~
11292 test -d \$dldir || mkdir -p \$dldir~
11293 $install_prog $dir/$dlname \$dldir/$dlname~
11294 chmod a+x \$dldir/$dlname~
11295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11297 fi'
11298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11299 dlpath=$dir/\$dldll~
11300 $RM \$dlpath'
11301 shlibpath_overrides_runpath=yes
11302
11303 case $host_os in
11304 cygwin*)
11305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11306 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11307
11308 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11309 ;;
11310 mingw* | cegcc*)
11311 # MinGW DLLs use traditional 'lib' prefix
11312 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11313 ;;
11314 pw32*)
11315 # pw32 DLLs use 'pw' prefix rather than 'lib'
11316 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11317 ;;
11318 esac
11319 dynamic_linker='Win32 ld.exe'
11320 ;;
11321
11322 *,cl* | *,icl*)
11323 # Native MSVC or ICC
11324 libname_spec='$name'
11325 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11326 library_names_spec='$libname.dll.lib'
11327
11328 case $build_os in
11329 mingw*)
11330 sys_lib_search_path_spec=
11331 lt_save_ifs=$IFS
11332 IFS=';'
11333 for lt_path in $LIB
11334 do
11335 IFS=$lt_save_ifs
11336 # Let DOS variable expansion print the short 8.3 style file name.
11337 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11338 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11339 done
11340 IFS=$lt_save_ifs
11341 # Convert to MSYS style.
11342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11343 ;;
11344 cygwin*)
11345 # Convert to unix form, then to dos form, then back to unix form
11346 # but this time dos style (no spaces!) so that the unix form looks
11347 # like /cygdrive/c/PROGRA~1:/cygdr...
11348 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11349 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11350 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11351 ;;
11352 *)
11353 sys_lib_search_path_spec=$LIB
11354 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11355 # It is most probably a Windows format PATH.
11356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11357 else
11358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11359 fi
11360 # FIXME: find the short name or the path components, as spaces are
11361 # common. (e.g. "Program Files" -> "PROGRA~1")
11362 ;;
11363 esac
11364
11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366 postinstall_cmds='base_file=`basename \$file`~
11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11368 dldir=$destdir/`dirname \$dlpath`~
11369 test -d \$dldir || mkdir -p \$dldir~
11370 $install_prog $dir/$dlname \$dldir/$dlname'
11371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372 dlpath=$dir/\$dldll~
11373 $RM \$dlpath'
11374 shlibpath_overrides_runpath=yes
11375 dynamic_linker='Win32 link.exe'
11376 ;;
11377
11378 *)
11379 # Assume MSVC and ICC wrapper
11380 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11381 dynamic_linker='Win32 ld.exe'
11382 ;;
11383 esac
11384 # FIXME: first we should search . and the directory the executable is in
11385 shlibpath_var=PATH
11386 ;;
11387
11388 darwin* | rhapsody*)
11389 dynamic_linker="$host_os dyld"
11390 version_type=darwin
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11394 soname_spec='$libname$release$major$shared_ext'
11395 shlibpath_overrides_runpath=yes
11396 shlibpath_var=DYLD_LIBRARY_PATH
11397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11398
11399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11401 ;;
11402
11403 dgux*)
11404 version_type=linux # correct to gnu/linux during the next big refactor
11405 need_lib_prefix=no
11406 need_version=no
11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11408 soname_spec='$libname$release$shared_ext$major'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 ;;
11411
11412 freebsd* | dragonfly* | midnightbsd*)
11413 # DragonFly does not have aout. When/if they implement a new
11414 # versioning mechanism, adjust this.
11415 if test -x /usr/bin/objformat; then
11416 objformat=`/usr/bin/objformat`
11417 else
11418 case $host_os in
11419 freebsd[23].*) objformat=aout ;;
11420 *) objformat=elf ;;
11421 esac
11422 fi
11423 version_type=freebsd-$objformat
11424 case $version_type in
11425 freebsd-elf*)
11426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427 soname_spec='$libname$release$shared_ext$major'
11428 need_version=no
11429 need_lib_prefix=no
11430 ;;
11431 freebsd-*)
11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11433 need_version=yes
11434 ;;
11435 esac
11436 shlibpath_var=LD_LIBRARY_PATH
11437 case $host_os in
11438 freebsd2.*)
11439 shlibpath_overrides_runpath=yes
11440 ;;
11441 freebsd3.[01]* | freebsdelf3.[01]*)
11442 shlibpath_overrides_runpath=yes
11443 hardcode_into_libs=yes
11444 ;;
11445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11447 shlibpath_overrides_runpath=no
11448 hardcode_into_libs=yes
11449 ;;
11450 *) # from 4.6 on, and DragonFly
11451 shlibpath_overrides_runpath=yes
11452 hardcode_into_libs=yes
11453 ;;
11454 esac
11455 ;;
11456
11457 haiku*)
11458 version_type=linux # correct to gnu/linux during the next big refactor
11459 need_lib_prefix=no
11460 need_version=no
11461 dynamic_linker="$host_os runtime_loader"
11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463 soname_spec='$libname$release$shared_ext$major'
11464 shlibpath_var=LIBRARY_PATH
11465 shlibpath_overrides_runpath=no
11466 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11467 hardcode_into_libs=yes
11468 ;;
11469
11470 hpux9* | hpux10* | hpux11*)
11471 # Give a soname corresponding to the major version so that dld.sl refuses to
11472 # link against other versions.
11473 version_type=sunos
11474 need_lib_prefix=no
11475 need_version=no
11476 case $host_cpu in
11477 ia64*)
11478 shrext_cmds='.so'
11479 hardcode_into_libs=yes
11480 dynamic_linker="$host_os dld.so"
11481 shlibpath_var=LD_LIBRARY_PATH
11482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484 soname_spec='$libname$release$shared_ext$major'
11485 if test 32 = "$HPUX_IA64_MODE"; then
11486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11487 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11488 else
11489 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11490 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11491 fi
11492 ;;
11493 hppa*64*)
11494 shrext_cmds='.sl'
11495 hardcode_into_libs=yes
11496 dynamic_linker="$host_os dld.sl"
11497 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11500 soname_spec='$libname$release$shared_ext$major'
11501 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11503 ;;
11504 *)
11505 shrext_cmds='.sl'
11506 dynamic_linker="$host_os dld.sl"
11507 shlibpath_var=SHLIB_PATH
11508 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11510 soname_spec='$libname$release$shared_ext$major'
11511 ;;
11512 esac
11513 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11514 postinstall_cmds='chmod 555 $lib'
11515 # or fails outright, so override atomically:
11516 install_override_mode=555
11517 ;;
11518
11519 interix[3-9]*)
11520 version_type=linux # correct to gnu/linux during the next big refactor
11521 need_lib_prefix=no
11522 need_version=no
11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11524 soname_spec='$libname$release$shared_ext$major'
11525 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=no
11528 hardcode_into_libs=yes
11529 ;;
11530
11531 irix5* | irix6* | nonstopux*)
11532 case $host_os in
11533 nonstopux*) version_type=nonstopux ;;
11534 *)
11535 if test yes = "$lt_cv_prog_gnu_ld"; then
11536 version_type=linux # correct to gnu/linux during the next big refactor
11537 else
11538 version_type=irix
11539 fi ;;
11540 esac
11541 need_lib_prefix=no
11542 need_version=no
11543 soname_spec='$libname$release$shared_ext$major'
11544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11545 case $host_os in
11546 irix5* | nonstopux*)
11547 libsuff= shlibsuff=
11548 ;;
11549 *)
11550 case $LD in # libtool.m4 will add one of these switches to LD
11551 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11552 libsuff= shlibsuff= libmagic=32-bit;;
11553 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11554 libsuff=32 shlibsuff=N32 libmagic=N32;;
11555 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11556 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11557 *) libsuff= shlibsuff= libmagic=never-match;;
11558 esac
11559 ;;
11560 esac
11561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11562 shlibpath_overrides_runpath=no
11563 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11564 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11565 hardcode_into_libs=yes
11566 ;;
11567
11568 # No shared lib support for Linux oldld, aout, or coff.
11569 linux*oldld* | linux*aout* | linux*coff*)
11570 dynamic_linker=no
11571 ;;
11572
11573 linux*android*)
11574 version_type=none # Android doesn't support versioned libraries.
11575 need_lib_prefix=no
11576 need_version=no
11577 library_names_spec='$libname$release$shared_ext'
11578 soname_spec='$libname$release$shared_ext'
11579 finish_cmds=
11580 shlibpath_var=LD_LIBRARY_PATH
11581 shlibpath_overrides_runpath=yes
11582
11583 # This implies no fast_install, which is unacceptable.
11584 # Some rework will be needed to allow for fast_install
11585 # before this can be enabled.
11586 hardcode_into_libs=yes
11587
11588 dynamic_linker='Android linker'
11589 # Don't embed -rpath directories since the linker doesn't support them.
11590 hardcode_libdir_flag_spec='-L$libdir'
11591 ;;
11592
11593 # This must be glibc/ELF.
11594 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11595 version_type=linux # correct to gnu/linux during the next big refactor
11596 need_lib_prefix=no
11597 need_version=no
11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599 soname_spec='$libname$release$shared_ext$major'
11600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 shlibpath_overrides_runpath=no
11603
11604 # Some binutils ld are patched to set DT_RUNPATH
11605 if test ${lt_cv_shlibpath_overrides_runpath+y}
11606 then :
11607 printf %s "(cached) " >&6
11608 else $as_nop
11609 lt_cv_shlibpath_overrides_runpath=no
11610 save_LDFLAGS=$LDFLAGS
11611 save_libdir=$libdir
11612 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11613 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616
11617 int
11618 main (void)
11619 {
11620
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"
11626 then :
11627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11628 then :
11629 lt_cv_shlibpath_overrides_runpath=yes
11630 fi
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LDFLAGS=$save_LDFLAGS
11635 libdir=$save_libdir
11636
11637 fi
11638
11639 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11640
11641 # This implies no fast_install, which is unacceptable.
11642 # Some rework will be needed to allow for fast_install
11643 # before this can be enabled.
11644 hardcode_into_libs=yes
11645
11646 # Ideally, we could use ldconfig to report *all* directores which are
11647 # searched for libraries, however this is still not possible. Aside from not
11648 # being certain /sbin/ldconfig is available, command
11649 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11650 # even though it is searched at run-time. Try to do the best guess by
11651 # appending ld.so.conf contents (and includes) to the search path.
11652 if test -f /etc/ld.so.conf; then
11653 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' ' '`
11654 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11655 fi
11656
11657 # We used to test for /lib/ld.so.1 and disable shared libraries on
11658 # powerpc, because MkLinux only supported shared libraries with the
11659 # GNU dynamic linker. Since this was broken with cross compilers,
11660 # most powerpc-linux boxes support dynamic linking these days and
11661 # people can always --disable-shared, the test was removed, and we
11662 # assume the GNU/Linux dynamic linker is in use.
11663 dynamic_linker='GNU/Linux ld.so'
11664 ;;
11665
11666 netbsd*)
11667 version_type=sunos
11668 need_lib_prefix=no
11669 need_version=no
11670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11673 dynamic_linker='NetBSD (a.out) ld.so'
11674 else
11675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11676 soname_spec='$libname$release$shared_ext$major'
11677 dynamic_linker='NetBSD ld.elf_so'
11678 fi
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=yes
11681 hardcode_into_libs=yes
11682 ;;
11683
11684 newsos6)
11685 version_type=linux # correct to gnu/linux during the next big refactor
11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 shlibpath_overrides_runpath=yes
11689 ;;
11690
11691 *nto* | *qnx*)
11692 version_type=qnx
11693 need_lib_prefix=no
11694 need_version=no
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696 soname_spec='$libname$release$shared_ext$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=no
11699 hardcode_into_libs=yes
11700 dynamic_linker='ldqnx.so'
11701 ;;
11702
11703 openbsd* | bitrig*)
11704 version_type=sunos
11705 sys_lib_dlsearch_path_spec=/usr/lib
11706 need_lib_prefix=no
11707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11708 need_version=no
11709 else
11710 need_version=yes
11711 fi
11712 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes
11716 ;;
11717
11718 os2*)
11719 libname_spec='$name'
11720 version_type=windows
11721 shrext_cmds=.dll
11722 need_version=no
11723 need_lib_prefix=no
11724 # OS/2 can only load a DLL with a base name of 8 characters or less.
11725 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11726 v=$($ECHO $release$versuffix | tr -d .-);
11727 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11728 $ECHO $n$v`$shared_ext'
11729 library_names_spec='${libname}_dll.$libext'
11730 dynamic_linker='OS/2 ld.exe'
11731 shlibpath_var=BEGINLIBPATH
11732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11734 postinstall_cmds='base_file=`basename \$file`~
11735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11736 dldir=$destdir/`dirname \$dlpath`~
11737 test -d \$dldir || mkdir -p \$dldir~
11738 $install_prog $dir/$dlname \$dldir/$dlname~
11739 chmod a+x \$dldir/$dlname~
11740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11742 fi'
11743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11744 dlpath=$dir/\$dldll~
11745 $RM \$dlpath'
11746 ;;
11747
11748 osf3* | osf4* | osf5*)
11749 version_type=osf
11750 need_lib_prefix=no
11751 need_version=no
11752 soname_spec='$libname$release$shared_ext$major'
11753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11757 ;;
11758
11759 rdos*)
11760 dynamic_linker=no
11761 ;;
11762
11763 solaris*)
11764 version_type=linux # correct to gnu/linux during the next big refactor
11765 need_lib_prefix=no
11766 need_version=no
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768 soname_spec='$libname$release$shared_ext$major'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 shlibpath_overrides_runpath=yes
11771 hardcode_into_libs=yes
11772 # ldd complains unless libraries are executable
11773 postinstall_cmds='chmod +x $lib'
11774 ;;
11775
11776 sunos4*)
11777 version_type=sunos
11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
11782 if test yes = "$with_gnu_ld"; then
11783 need_lib_prefix=no
11784 fi
11785 need_version=yes
11786 ;;
11787
11788 sysv4 | sysv4.3*)
11789 version_type=linux # correct to gnu/linux during the next big refactor
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791 soname_spec='$libname$release$shared_ext$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 case $host_vendor in
11794 sni)
11795 shlibpath_overrides_runpath=no
11796 need_lib_prefix=no
11797 runpath_var=LD_RUN_PATH
11798 ;;
11799 siemens)
11800 need_lib_prefix=no
11801 ;;
11802 motorola)
11803 need_lib_prefix=no
11804 need_version=no
11805 shlibpath_overrides_runpath=no
11806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11807 ;;
11808 esac
11809 ;;
11810
11811 sysv4*MP*)
11812 if test -d /usr/nec; then
11813 version_type=linux # correct to gnu/linux during the next big refactor
11814 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11815 soname_spec='$libname$shared_ext.$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 fi
11818 ;;
11819
11820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11821 version_type=sco
11822 need_lib_prefix=no
11823 need_version=no
11824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11825 soname_spec='$libname$release$shared_ext$major'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 shlibpath_overrides_runpath=yes
11828 hardcode_into_libs=yes
11829 if test yes = "$with_gnu_ld"; then
11830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11831 else
11832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11833 case $host_os in
11834 sco3.2v5*)
11835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11836 ;;
11837 esac
11838 fi
11839 sys_lib_dlsearch_path_spec='/usr/lib'
11840 ;;
11841
11842 tpf*)
11843 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11844 version_type=linux # correct to gnu/linux during the next big refactor
11845 need_lib_prefix=no
11846 need_version=no
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 shlibpath_overrides_runpath=no
11850 hardcode_into_libs=yes
11851 ;;
11852
11853 uts4*)
11854 version_type=linux # correct to gnu/linux during the next big refactor
11855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11856 soname_spec='$libname$release$shared_ext$major'
11857 shlibpath_var=LD_LIBRARY_PATH
11858 ;;
11859
11860 *)
11861 dynamic_linker=no
11862 ;;
11863 esac
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11865 printf "%s\n" "$dynamic_linker" >&6; }
11866 test no = "$dynamic_linker" && can_build_shared=no
11867
11868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11869 if test yes = "$GCC"; then
11870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11871 fi
11872
11873 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11874 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11875 fi
11876
11877 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11878 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11879 fi
11880
11881 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11882 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11883
11884 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11885 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11886
11887 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11888 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11987 printf %s "checking how to hardcode library paths into programs... " >&6; }
11988 hardcode_action=
11989 if test -n "$hardcode_libdir_flag_spec" ||
11990 test -n "$runpath_var" ||
11991 test yes = "$hardcode_automatic"; then
11992
11993 # We can hardcode non-existent directories.
11994 if test no != "$hardcode_direct" &&
11995 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11996 # have to relink, otherwise we might link with an installed library
11997 # when we should be linking with a yet-to-be-installed one
11998 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11999 test no != "$hardcode_minus_L"; then
12000 # Linking always hardcodes the temporary library directory.
12001 hardcode_action=relink
12002 else
12003 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12004 hardcode_action=immediate
12005 fi
12006 else
12007 # We cannot hardcode anything, or else we can only hardcode existing
12008 # directories.
12009 hardcode_action=unsupported
12010 fi
12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12012 printf "%s\n" "$hardcode_action" >&6; }
12013
12014 if test relink = "$hardcode_action" ||
12015 test yes = "$inherit_rpath"; then
12016 # Fast installation is not supported
12017 enable_fast_install=no
12018 elif test yes = "$shlibpath_overrides_runpath" ||
12019 test no = "$enable_shared"; then
12020 # Fast installation is not necessary
12021 enable_fast_install=needless
12022 fi
12023
12024
12025
12026
12027
12028
12029 if test yes != "$enable_dlopen"; then
12030 enable_dlopen=unknown
12031 enable_dlopen_self=unknown
12032 enable_dlopen_self_static=unknown
12033 else
12034 lt_cv_dlopen=no
12035 lt_cv_dlopen_libs=
12036
12037 case $host_os in
12038 beos*)
12039 lt_cv_dlopen=load_add_on
12040 lt_cv_dlopen_libs=
12041 lt_cv_dlopen_self=yes
12042 ;;
12043
12044 mingw* | pw32* | cegcc*)
12045 lt_cv_dlopen=LoadLibrary
12046 lt_cv_dlopen_libs=
12047 ;;
12048
12049 cygwin*)
12050 lt_cv_dlopen=dlopen
12051 lt_cv_dlopen_libs=
12052 ;;
12053
12054 darwin*)
12055 # if libdl is installed we need to link against it
12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12057 printf %s "checking for dlopen in -ldl... " >&6; }
12058 if test ${ac_cv_lib_dl_dlopen+y}
12059 then :
12060 printf %s "(cached) " >&6
12061 else $as_nop
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-ldl $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070 char dlopen ();
12071 int
12072 main (void)
12073 {
12074 return dlopen ();
12075 ;
12076 return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"
12080 then :
12081 ac_cv_lib_dl_dlopen=yes
12082 else $as_nop
12083 ac_cv_lib_dl_dlopen=no
12084 fi
12085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12088 fi
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12090 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12091 if test "x$ac_cv_lib_dl_dlopen" = xyes
12092 then :
12093 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12094 else $as_nop
12095
12096 lt_cv_dlopen=dyld
12097 lt_cv_dlopen_libs=
12098 lt_cv_dlopen_self=yes
12099
12100 fi
12101
12102 ;;
12103
12104 tpf*)
12105 # Don't try to run any link tests for TPF. We know it's impossible
12106 # because TPF is a cross-compiler, and we know how we open DSOs.
12107 lt_cv_dlopen=dlopen
12108 lt_cv_dlopen_libs=
12109 lt_cv_dlopen_self=no
12110 ;;
12111
12112 *)
12113 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12114 if test "x$ac_cv_func_shl_load" = xyes
12115 then :
12116 lt_cv_dlopen=shl_load
12117 else $as_nop
12118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12119 printf %s "checking for shl_load in -ldld... " >&6; }
12120 if test ${ac_cv_lib_dld_shl_load+y}
12121 then :
12122 printf %s "(cached) " >&6
12123 else $as_nop
12124 ac_check_lib_save_LIBS=$LIBS
12125 LIBS="-ldld $LIBS"
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128
12129 /* Override any GCC internal prototype to avoid an error.
12130 Use char because int might match the return type of a GCC
12131 builtin and then its argument prototype would still apply. */
12132 char shl_load ();
12133 int
12134 main (void)
12135 {
12136 return shl_load ();
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 if ac_fn_c_try_link "$LINENO"
12142 then :
12143 ac_cv_lib_dld_shl_load=yes
12144 else $as_nop
12145 ac_cv_lib_dld_shl_load=no
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12150 fi
12151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12152 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12153 if test "x$ac_cv_lib_dld_shl_load" = xyes
12154 then :
12155 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12156 else $as_nop
12157 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12158 if test "x$ac_cv_func_dlopen" = xyes
12159 then :
12160 lt_cv_dlopen=dlopen
12161 else $as_nop
12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12163 printf %s "checking for dlopen in -ldl... " >&6; }
12164 if test ${ac_cv_lib_dl_dlopen+y}
12165 then :
12166 printf %s "(cached) " >&6
12167 else $as_nop
12168 ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-ldl $LIBS"
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172
12173 /* Override any GCC internal prototype to avoid an error.
12174 Use char because int might match the return type of a GCC
12175 builtin and then its argument prototype would still apply. */
12176 char dlopen ();
12177 int
12178 main (void)
12179 {
12180 return dlopen ();
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"
12186 then :
12187 ac_cv_lib_dl_dlopen=yes
12188 else $as_nop
12189 ac_cv_lib_dl_dlopen=no
12190 fi
12191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12192 conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12196 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12197 if test "x$ac_cv_lib_dl_dlopen" = xyes
12198 then :
12199 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12200 else $as_nop
12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12202 printf %s "checking for dlopen in -lsvld... " >&6; }
12203 if test ${ac_cv_lib_svld_dlopen+y}
12204 then :
12205 printf %s "(cached) " >&6
12206 else $as_nop
12207 ac_check_lib_save_LIBS=$LIBS
12208 LIBS="-lsvld $LIBS"
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211
12212 /* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
12215 char dlopen ();
12216 int
12217 main (void)
12218 {
12219 return dlopen ();
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 if ac_fn_c_try_link "$LINENO"
12225 then :
12226 ac_cv_lib_svld_dlopen=yes
12227 else $as_nop
12228 ac_cv_lib_svld_dlopen=no
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12233 fi
12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12235 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12236 if test "x$ac_cv_lib_svld_dlopen" = xyes
12237 then :
12238 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12239 else $as_nop
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12241 printf %s "checking for dld_link in -ldld... " >&6; }
12242 if test ${ac_cv_lib_dld_dld_link+y}
12243 then :
12244 printf %s "(cached) " >&6
12245 else $as_nop
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-ldld $LIBS"
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 char dld_link ();
12255 int
12256 main (void)
12257 {
12258 return dld_link ();
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"
12264 then :
12265 ac_cv_lib_dld_dld_link=yes
12266 else $as_nop
12267 ac_cv_lib_dld_dld_link=no
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12274 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12275 if test "x$ac_cv_lib_dld_dld_link" = xyes
12276 then :
12277 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12278 fi
12279
12280
12281 fi
12282
12283
12284 fi
12285
12286
12287 fi
12288
12289
12290 fi
12291
12292
12293 fi
12294
12295 ;;
12296 esac
12297
12298 if test no = "$lt_cv_dlopen"; then
12299 enable_dlopen=no
12300 else
12301 enable_dlopen=yes
12302 fi
12303
12304 case $lt_cv_dlopen in
12305 dlopen)
12306 save_CPPFLAGS=$CPPFLAGS
12307 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12308
12309 save_LDFLAGS=$LDFLAGS
12310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12311
12312 save_LIBS=$LIBS
12313 LIBS="$lt_cv_dlopen_libs $LIBS"
12314
12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12316 printf %s "checking whether a program can dlopen itself... " >&6; }
12317 if test ${lt_cv_dlopen_self+y}
12318 then :
12319 printf %s "(cached) " >&6
12320 else $as_nop
12321 if test yes = "$cross_compiling"; then :
12322 lt_cv_dlopen_self=cross
12323 else
12324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12325 lt_status=$lt_dlunknown
12326 cat > conftest.$ac_ext <<_LT_EOF
12327 #line $LINENO "configure"
12328 #include "confdefs.h"
12329
12330 #if HAVE_DLFCN_H
12331 #include <dlfcn.h>
12332 #endif
12333
12334 #include <stdio.h>
12335
12336 #ifdef RTLD_GLOBAL
12337 # define LT_DLGLOBAL RTLD_GLOBAL
12338 #else
12339 # ifdef DL_GLOBAL
12340 # define LT_DLGLOBAL DL_GLOBAL
12341 # else
12342 # define LT_DLGLOBAL 0
12343 # endif
12344 #endif
12345
12346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12347 find out it does not work in some platform. */
12348 #ifndef LT_DLLAZY_OR_NOW
12349 # ifdef RTLD_LAZY
12350 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12351 # else
12352 # ifdef DL_LAZY
12353 # define LT_DLLAZY_OR_NOW DL_LAZY
12354 # else
12355 # ifdef RTLD_NOW
12356 # define LT_DLLAZY_OR_NOW RTLD_NOW
12357 # else
12358 # ifdef DL_NOW
12359 # define LT_DLLAZY_OR_NOW DL_NOW
12360 # else
12361 # define LT_DLLAZY_OR_NOW 0
12362 # endif
12363 # endif
12364 # endif
12365 # endif
12366 #endif
12367
12368 /* When -fvisibility=hidden is used, assume the code has been annotated
12369 correspondingly for the symbols needed. */
12370 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12371 int fnord () __attribute__((visibility("default")));
12372 #endif
12373
12374 int fnord () { return 42; }
12375 int main ()
12376 {
12377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12378 int status = $lt_dlunknown;
12379
12380 if (self)
12381 {
12382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12383 else
12384 {
12385 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12386 else puts (dlerror ());
12387 }
12388 /* dlclose (self); */
12389 }
12390 else
12391 puts (dlerror ());
12392
12393 return status;
12394 }
12395 _LT_EOF
12396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12397 (eval $ac_link) 2>&5
12398 ac_status=$?
12399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12400 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12401 (./conftest; exit; ) >&5 2>/dev/null
12402 lt_status=$?
12403 case x$lt_status in
12404 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12405 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12406 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12407 esac
12408 else :
12409 # compilation failed
12410 lt_cv_dlopen_self=no
12411 fi
12412 fi
12413 rm -fr conftest*
12414
12415
12416 fi
12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12418 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12419
12420 if test yes = "$lt_cv_dlopen_self"; then
12421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12423 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12424 if test ${lt_cv_dlopen_self_static+y}
12425 then :
12426 printf %s "(cached) " >&6
12427 else $as_nop
12428 if test yes = "$cross_compiling"; then :
12429 lt_cv_dlopen_self_static=cross
12430 else
12431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12432 lt_status=$lt_dlunknown
12433 cat > conftest.$ac_ext <<_LT_EOF
12434 #line $LINENO "configure"
12435 #include "confdefs.h"
12436
12437 #if HAVE_DLFCN_H
12438 #include <dlfcn.h>
12439 #endif
12440
12441 #include <stdio.h>
12442
12443 #ifdef RTLD_GLOBAL
12444 # define LT_DLGLOBAL RTLD_GLOBAL
12445 #else
12446 # ifdef DL_GLOBAL
12447 # define LT_DLGLOBAL DL_GLOBAL
12448 # else
12449 # define LT_DLGLOBAL 0
12450 # endif
12451 #endif
12452
12453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12454 find out it does not work in some platform. */
12455 #ifndef LT_DLLAZY_OR_NOW
12456 # ifdef RTLD_LAZY
12457 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12458 # else
12459 # ifdef DL_LAZY
12460 # define LT_DLLAZY_OR_NOW DL_LAZY
12461 # else
12462 # ifdef RTLD_NOW
12463 # define LT_DLLAZY_OR_NOW RTLD_NOW
12464 # else
12465 # ifdef DL_NOW
12466 # define LT_DLLAZY_OR_NOW DL_NOW
12467 # else
12468 # define LT_DLLAZY_OR_NOW 0
12469 # endif
12470 # endif
12471 # endif
12472 # endif
12473 #endif
12474
12475 /* When -fvisibility=hidden is used, assume the code has been annotated
12476 correspondingly for the symbols needed. */
12477 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12478 int fnord () __attribute__((visibility("default")));
12479 #endif
12480
12481 int fnord () { return 42; }
12482 int main ()
12483 {
12484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12485 int status = $lt_dlunknown;
12486
12487 if (self)
12488 {
12489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12490 else
12491 {
12492 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12493 else puts (dlerror ());
12494 }
12495 /* dlclose (self); */
12496 }
12497 else
12498 puts (dlerror ());
12499
12500 return status;
12501 }
12502 _LT_EOF
12503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12504 (eval $ac_link) 2>&5
12505 ac_status=$?
12506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12507 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12508 (./conftest; exit; ) >&5 2>/dev/null
12509 lt_status=$?
12510 case x$lt_status in
12511 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12512 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12513 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12514 esac
12515 else :
12516 # compilation failed
12517 lt_cv_dlopen_self_static=no
12518 fi
12519 fi
12520 rm -fr conftest*
12521
12522
12523 fi
12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12525 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12526 fi
12527
12528 CPPFLAGS=$save_CPPFLAGS
12529 LDFLAGS=$save_LDFLAGS
12530 LIBS=$save_LIBS
12531 ;;
12532 esac
12533
12534 case $lt_cv_dlopen_self in
12535 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12536 *) enable_dlopen_self=unknown ;;
12537 esac
12538
12539 case $lt_cv_dlopen_self_static in
12540 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12541 *) enable_dlopen_self_static=unknown ;;
12542 esac
12543 fi
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561 striplib=
12562 old_striplib=
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12564 printf %s "checking whether stripping libraries is possible... " >&6; }
12565 if test -z "$STRIP"; then
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 printf "%s\n" "no" >&6; }
12568 else
12569 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12570 old_striplib="$STRIP --strip-debug"
12571 striplib="$STRIP --strip-unneeded"
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573 printf "%s\n" "yes" >&6; }
12574 else
12575 case $host_os in
12576 darwin*)
12577 # FIXME - insert some real tests, host_os isn't really good enough
12578 striplib="$STRIP -x"
12579 old_striplib="$STRIP -S"
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581 printf "%s\n" "yes" >&6; }
12582 ;;
12583 freebsd*)
12584 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12585 old_striplib="$STRIP --strip-debug"
12586 striplib="$STRIP --strip-unneeded"
12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588 printf "%s\n" "yes" >&6; }
12589 else
12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 printf "%s\n" "no" >&6; }
12592 fi
12593 ;;
12594 *)
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 printf "%s\n" "no" >&6; }
12597 ;;
12598 esac
12599 fi
12600 fi
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613 # Report what library types will actually be built
12614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12615 printf %s "checking if libtool supports shared libraries... " >&6; }
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12617 printf "%s\n" "$can_build_shared" >&6; }
12618
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12620 printf %s "checking whether to build shared libraries... " >&6; }
12621 test no = "$can_build_shared" && enable_shared=no
12622
12623 # On AIX, shared libraries and static libraries use the same namespace, and
12624 # are all built from PIC.
12625 case $host_os in
12626 aix3*)
12627 test yes = "$enable_shared" && enable_static=no
12628 if test -n "$RANLIB"; then
12629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12630 postinstall_cmds='$RANLIB $lib'
12631 fi
12632 ;;
12633
12634 aix[4-9]*)
12635 if test ia64 != "$host_cpu"; then
12636 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12637 yes,aix,yes) ;; # shared object as lib.so file only
12638 yes,svr4,*) ;; # shared object as lib.so archive member only
12639 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12640 esac
12641 fi
12642 ;;
12643 esac
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12645 printf "%s\n" "$enable_shared" >&6; }
12646
12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12648 printf %s "checking whether to build static libraries... " >&6; }
12649 # Make sure either enable_shared or enable_static is yes.
12650 test yes = "$enable_shared" || enable_static=yes
12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12652 printf "%s\n" "$enable_static" >&6; }
12653
12654
12655
12656
12657 fi
12658 ac_ext=c
12659 ac_cpp='$CPP $CPPFLAGS'
12660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663
12664 CC=$lt_save_CC
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680 ac_config_commands="$ac_config_commands libtool"
12681
12682
12683
12684
12685 # Only expand once:
12686
12687
12688
12689 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12703 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12704 if test ${ac_cv_c_undeclared_builtin_options+y}
12705 then :
12706 printf %s "(cached) " >&6
12707 else $as_nop
12708 ac_save_CFLAGS=$CFLAGS
12709 ac_cv_c_undeclared_builtin_options='cannot detect'
12710 for ac_arg in '' -fno-builtin; do
12711 CFLAGS="$ac_save_CFLAGS $ac_arg"
12712 # This test program should *not* compile successfully.
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715
12716 int
12717 main (void)
12718 {
12719 (void) strchr;
12720 ;
12721 return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"
12725 then :
12726
12727 else $as_nop
12728 # This test program should compile successfully.
12729 # No library function is consistently available on
12730 # freestanding implementations, so test against a dummy
12731 # declaration. Include always-available headers on the
12732 # off chance that they somehow elicit warnings.
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 #include <float.h>
12736 #include <limits.h>
12737 #include <stdarg.h>
12738 #include <stddef.h>
12739 extern void ac_decl (int, char *);
12740
12741 int
12742 main (void)
12743 {
12744 (void) ac_decl (0, (char *) 0);
12745 (void) ac_decl;
12746
12747 ;
12748 return 0;
12749 }
12750 _ACEOF
12751 if ac_fn_c_try_compile "$LINENO"
12752 then :
12753 if test x"$ac_arg" = x
12754 then :
12755 ac_cv_c_undeclared_builtin_options='none needed'
12756 else $as_nop
12757 ac_cv_c_undeclared_builtin_options=$ac_arg
12758 fi
12759 break
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12762 fi
12763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12764 done
12765 CFLAGS=$ac_save_CFLAGS
12766
12767 fi
12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12769 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12770 case $ac_cv_c_undeclared_builtin_options in #(
12771 'cannot detect') :
12772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12774 as_fn_error $? "cannot make $CC report undeclared builtins
12775 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12776 'none needed') :
12777 ac_c_undeclared_builtin_options='' ;; #(
12778 *) :
12779 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12780 esac
12781
12782
12783
12784
12785
12786 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12787 if test "x$ac_cv_have_decl___clang__" = xyes
12788 then :
12789 CLANGCC="yes"
12790 else $as_nop
12791 CLANGCC="no"
12792 fi
12793 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12794 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12795 then :
12796 INTELCC="yes"
12797 else $as_nop
12798 INTELCC="no"
12799 fi
12800 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12801 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12802 then :
12803 SUNCC="yes"
12804 else $as_nop
12805 SUNCC="no"
12806 fi
12807
12808
12809
12810
12811
12812
12813
12814
12815 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12816 if test -n "$ac_tool_prefix"; then
12817 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 printf %s "checking for $ac_word... " >&6; }
12821 if test ${ac_cv_path_PKG_CONFIG+y}
12822 then :
12823 printf %s "(cached) " >&6
12824 else $as_nop
12825 case $PKG_CONFIG in
12826 [\\/]* | ?:[\\/]*)
12827 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12828 ;;
12829 *)
12830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831 for as_dir in $PATH
12832 do
12833 IFS=$as_save_IFS
12834 case $as_dir in #(((
12835 '') as_dir=./ ;;
12836 */) ;;
12837 *) as_dir=$as_dir/ ;;
12838 esac
12839 for ac_exec_ext in '' $ac_executable_extensions; do
12840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12841 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12843 break 2
12844 fi
12845 done
12846 done
12847 IFS=$as_save_IFS
12848
12849 ;;
12850 esac
12851 fi
12852 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12853 if test -n "$PKG_CONFIG"; then
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12855 printf "%s\n" "$PKG_CONFIG" >&6; }
12856 else
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 printf "%s\n" "no" >&6; }
12859 fi
12860
12861
12862 fi
12863 if test -z "$ac_cv_path_PKG_CONFIG"; then
12864 ac_pt_PKG_CONFIG=$PKG_CONFIG
12865 # Extract the first word of "pkg-config", so it can be a program name with args.
12866 set dummy pkg-config; ac_word=$2
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 printf %s "checking for $ac_word... " >&6; }
12869 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12870 then :
12871 printf %s "(cached) " >&6
12872 else $as_nop
12873 case $ac_pt_PKG_CONFIG in
12874 [\\/]* | ?:[\\/]*)
12875 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12876 ;;
12877 *)
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881 IFS=$as_save_IFS
12882 case $as_dir in #(((
12883 '') as_dir=./ ;;
12884 */) ;;
12885 *) as_dir=$as_dir/ ;;
12886 esac
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12889 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893 done
12894 done
12895 IFS=$as_save_IFS
12896
12897 ;;
12898 esac
12899 fi
12900 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12901 if test -n "$ac_pt_PKG_CONFIG"; then
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12903 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12904 else
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 printf "%s\n" "no" >&6; }
12907 fi
12908
12909 if test "x$ac_pt_PKG_CONFIG" = x; then
12910 PKG_CONFIG=""
12911 else
12912 case $cross_compiling:$ac_tool_warned in
12913 yes:)
12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12916 ac_tool_warned=yes ;;
12917 esac
12918 PKG_CONFIG=$ac_pt_PKG_CONFIG
12919 fi
12920 else
12921 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12922 fi
12923
12924 fi
12925 if test -n "$PKG_CONFIG"; then
12926 _pkg_min_version=0.9.0
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12928 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12929 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12931 printf "%s\n" "yes" >&6; }
12932 else
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 printf "%s\n" "no" >&6; }
12935 PKG_CONFIG=""
12936 fi
12937 fi
12938
12939
12940
12941
12942
12943 # Check whether --enable-selective-werror was given.
12944 if test ${enable_selective_werror+y}
12945 then :
12946 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12947 else $as_nop
12948 SELECTIVE_WERROR=yes
12949 fi
12950
12951
12952
12953
12954
12955 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12956 if test "x$SUNCC" = "xyes"; then
12957 BASE_CFLAGS="-v"
12958 else
12959 BASE_CFLAGS=""
12960 fi
12961
12962 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976 xorg_testset_save_CFLAGS="$CFLAGS"
12977
12978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12981 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12982 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12983 then :
12984 printf %s "(cached) " >&6
12985 else $as_nop
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988 int i;
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"
12991 then :
12992 xorg_cv_cc_flag_unknown_warning_option=yes
12993 else $as_nop
12994 xorg_cv_cc_flag_unknown_warning_option=no
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12997 fi
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12999 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13001 CFLAGS="$xorg_testset_save_CFLAGS"
13002 fi
13003
13004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13007 fi
13008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13012 then :
13013 printf %s "(cached) " >&6
13014 else $as_nop
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017 int i;
13018 _ACEOF
13019 if ac_fn_c_try_compile "$LINENO"
13020 then :
13021 xorg_cv_cc_flag_unused_command_line_argument=yes
13022 else $as_nop
13023 xorg_cv_cc_flag_unused_command_line_argument=no
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13026 fi
13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13028 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13030 CFLAGS="$xorg_testset_save_CFLAGS"
13031 fi
13032
13033 found="no"
13034
13035 if test $found = "no" ; then
13036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13038 fi
13039
13040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13042 fi
13043
13044 CFLAGS="$CFLAGS -Wall"
13045
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13047 printf %s "checking if $CC supports -Wall... " >&6; }
13048 cacheid=xorg_cv_cc_flag__Wall
13049 if eval test \${$cacheid+y}
13050 then :
13051 printf %s "(cached) " >&6
13052 else $as_nop
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13055 int i;
13056 int
13057 main (void)
13058 {
13059
13060 ;
13061 return 0;
13062 }
13063 _ACEOF
13064 if ac_fn_c_try_link "$LINENO"
13065 then :
13066 eval $cacheid=yes
13067 else $as_nop
13068 eval $cacheid=no
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13071 conftest$ac_exeext conftest.$ac_ext
13072 fi
13073
13074
13075 CFLAGS="$xorg_testset_save_CFLAGS"
13076
13077 eval supported=\$$cacheid
13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13079 printf "%s\n" "$supported" >&6; }
13080 if test "$supported" = "yes" ; then
13081 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13082 found="yes"
13083 fi
13084 fi
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 xorg_testset_save_CFLAGS="$CFLAGS"
13101
13102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13105 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13106 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13107 then :
13108 printf %s "(cached) " >&6
13109 else $as_nop
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 int i;
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"
13115 then :
13116 xorg_cv_cc_flag_unknown_warning_option=yes
13117 else $as_nop
13118 xorg_cv_cc_flag_unknown_warning_option=no
13119 fi
13120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13121 fi
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13123 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13125 CFLAGS="$xorg_testset_save_CFLAGS"
13126 fi
13127
13128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13131 fi
13132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13136 then :
13137 printf %s "(cached) " >&6
13138 else $as_nop
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 int i;
13142 _ACEOF
13143 if ac_fn_c_try_compile "$LINENO"
13144 then :
13145 xorg_cv_cc_flag_unused_command_line_argument=yes
13146 else $as_nop
13147 xorg_cv_cc_flag_unused_command_line_argument=no
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13150 fi
13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13152 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13154 CFLAGS="$xorg_testset_save_CFLAGS"
13155 fi
13156
13157 found="no"
13158
13159 if test $found = "no" ; then
13160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162 fi
13163
13164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13166 fi
13167
13168 CFLAGS="$CFLAGS -Wpointer-arith"
13169
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13171 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13172 cacheid=xorg_cv_cc_flag__Wpointer_arith
13173 if eval test \${$cacheid+y}
13174 then :
13175 printf %s "(cached) " >&6
13176 else $as_nop
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179 int i;
13180 int
13181 main (void)
13182 {
13183
13184 ;
13185 return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"
13189 then :
13190 eval $cacheid=yes
13191 else $as_nop
13192 eval $cacheid=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13195 conftest$ac_exeext conftest.$ac_ext
13196 fi
13197
13198
13199 CFLAGS="$xorg_testset_save_CFLAGS"
13200
13201 eval supported=\$$cacheid
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13203 printf "%s\n" "$supported" >&6; }
13204 if test "$supported" = "yes" ; then
13205 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13206 found="yes"
13207 fi
13208 fi
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224 xorg_testset_save_CFLAGS="$CFLAGS"
13225
13226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13229 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13230 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13231 then :
13232 printf %s "(cached) " >&6
13233 else $as_nop
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13236 int i;
13237 _ACEOF
13238 if ac_fn_c_try_compile "$LINENO"
13239 then :
13240 xorg_cv_cc_flag_unknown_warning_option=yes
13241 else $as_nop
13242 xorg_cv_cc_flag_unknown_warning_option=no
13243 fi
13244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13245 fi
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13247 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13249 CFLAGS="$xorg_testset_save_CFLAGS"
13250 fi
13251
13252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13255 fi
13256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13258 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13259 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13260 then :
13261 printf %s "(cached) " >&6
13262 else $as_nop
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265 int i;
13266 _ACEOF
13267 if ac_fn_c_try_compile "$LINENO"
13268 then :
13269 xorg_cv_cc_flag_unused_command_line_argument=yes
13270 else $as_nop
13271 xorg_cv_cc_flag_unused_command_line_argument=no
13272 fi
13273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13274 fi
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13276 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13278 CFLAGS="$xorg_testset_save_CFLAGS"
13279 fi
13280
13281 found="no"
13282
13283 if test $found = "no" ; then
13284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13286 fi
13287
13288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13290 fi
13291
13292 CFLAGS="$CFLAGS -Wmissing-declarations"
13293
13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13295 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13296 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13297 if eval test \${$cacheid+y}
13298 then :
13299 printf %s "(cached) " >&6
13300 else $as_nop
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 int i;
13304 int
13305 main (void)
13306 {
13307
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_link "$LINENO"
13313 then :
13314 eval $cacheid=yes
13315 else $as_nop
13316 eval $cacheid=no
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13319 conftest$ac_exeext conftest.$ac_ext
13320 fi
13321
13322
13323 CFLAGS="$xorg_testset_save_CFLAGS"
13324
13325 eval supported=\$$cacheid
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13327 printf "%s\n" "$supported" >&6; }
13328 if test "$supported" = "yes" ; then
13329 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13330 found="yes"
13331 fi
13332 fi
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348 xorg_testset_save_CFLAGS="$CFLAGS"
13349
13350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13353 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13354 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else $as_nop
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360 int i;
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"
13363 then :
13364 xorg_cv_cc_flag_unknown_warning_option=yes
13365 else $as_nop
13366 xorg_cv_cc_flag_unknown_warning_option=no
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13369 fi
13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13371 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13373 CFLAGS="$xorg_testset_save_CFLAGS"
13374 fi
13375
13376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379 fi
13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13382 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13383 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13384 then :
13385 printf %s "(cached) " >&6
13386 else $as_nop
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13389 int i;
13390 _ACEOF
13391 if ac_fn_c_try_compile "$LINENO"
13392 then :
13393 xorg_cv_cc_flag_unused_command_line_argument=yes
13394 else $as_nop
13395 xorg_cv_cc_flag_unused_command_line_argument=no
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13398 fi
13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13402 CFLAGS="$xorg_testset_save_CFLAGS"
13403 fi
13404
13405 found="no"
13406
13407 if test $found = "no" ; then
13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410 fi
13411
13412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13414 fi
13415
13416 CFLAGS="$CFLAGS -Wformat=2"
13417
13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13419 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13420 cacheid=xorg_cv_cc_flag__Wformat_2
13421 if eval test \${$cacheid+y}
13422 then :
13423 printf %s "(cached) " >&6
13424 else $as_nop
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 int i;
13428 int
13429 main (void)
13430 {
13431
13432 ;
13433 return 0;
13434 }
13435 _ACEOF
13436 if ac_fn_c_try_link "$LINENO"
13437 then :
13438 eval $cacheid=yes
13439 else $as_nop
13440 eval $cacheid=no
13441 fi
13442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13443 conftest$ac_exeext conftest.$ac_ext
13444 fi
13445
13446
13447 CFLAGS="$xorg_testset_save_CFLAGS"
13448
13449 eval supported=\$$cacheid
13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13451 printf "%s\n" "$supported" >&6; }
13452 if test "$supported" = "yes" ; then
13453 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13454 found="yes"
13455 fi
13456 fi
13457
13458 if test $found = "no" ; then
13459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13461 fi
13462
13463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13465 fi
13466
13467 CFLAGS="$CFLAGS -Wformat"
13468
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13470 printf %s "checking if $CC supports -Wformat... " >&6; }
13471 cacheid=xorg_cv_cc_flag__Wformat
13472 if eval test \${$cacheid+y}
13473 then :
13474 printf %s "(cached) " >&6
13475 else $as_nop
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 int i;
13479 int
13480 main (void)
13481 {
13482
13483 ;
13484 return 0;
13485 }
13486 _ACEOF
13487 if ac_fn_c_try_link "$LINENO"
13488 then :
13489 eval $cacheid=yes
13490 else $as_nop
13491 eval $cacheid=no
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13494 conftest$ac_exeext conftest.$ac_ext
13495 fi
13496
13497
13498 CFLAGS="$xorg_testset_save_CFLAGS"
13499
13500 eval supported=\$$cacheid
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13502 printf "%s\n" "$supported" >&6; }
13503 if test "$supported" = "yes" ; then
13504 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13505 found="yes"
13506 fi
13507 fi
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525 xorg_testset_save_CFLAGS="$CFLAGS"
13526
13527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13530 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13531 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13532 then :
13533 printf %s "(cached) " >&6
13534 else $as_nop
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 int i;
13538 _ACEOF
13539 if ac_fn_c_try_compile "$LINENO"
13540 then :
13541 xorg_cv_cc_flag_unknown_warning_option=yes
13542 else $as_nop
13543 xorg_cv_cc_flag_unknown_warning_option=no
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13546 fi
13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13548 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13550 CFLAGS="$xorg_testset_save_CFLAGS"
13551 fi
13552
13553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556 fi
13557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13559 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13560 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13561 then :
13562 printf %s "(cached) " >&6
13563 else $as_nop
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 int i;
13567 _ACEOF
13568 if ac_fn_c_try_compile "$LINENO"
13569 then :
13570 xorg_cv_cc_flag_unused_command_line_argument=yes
13571 else $as_nop
13572 xorg_cv_cc_flag_unused_command_line_argument=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13575 fi
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13577 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13579 CFLAGS="$xorg_testset_save_CFLAGS"
13580 fi
13581
13582 found="no"
13583
13584 if test $found = "no" ; then
13585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13587 fi
13588
13589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13591 fi
13592
13593 CFLAGS="$CFLAGS -Wstrict-prototypes"
13594
13595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13596 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13597 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13598 if eval test \${$cacheid+y}
13599 then :
13600 printf %s "(cached) " >&6
13601 else $as_nop
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 int i;
13605 int
13606 main (void)
13607 {
13608
13609 ;
13610 return 0;
13611 }
13612 _ACEOF
13613 if ac_fn_c_try_link "$LINENO"
13614 then :
13615 eval $cacheid=yes
13616 else $as_nop
13617 eval $cacheid=no
13618 fi
13619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13620 conftest$ac_exeext conftest.$ac_ext
13621 fi
13622
13623
13624 CFLAGS="$xorg_testset_save_CFLAGS"
13625
13626 eval supported=\$$cacheid
13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13628 printf "%s\n" "$supported" >&6; }
13629 if test "$supported" = "yes" ; then
13630 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13631 found="yes"
13632 fi
13633 fi
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649 xorg_testset_save_CFLAGS="$CFLAGS"
13650
13651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13654 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13655 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13656 then :
13657 printf %s "(cached) " >&6
13658 else $as_nop
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661 int i;
13662 _ACEOF
13663 if ac_fn_c_try_compile "$LINENO"
13664 then :
13665 xorg_cv_cc_flag_unknown_warning_option=yes
13666 else $as_nop
13667 xorg_cv_cc_flag_unknown_warning_option=no
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13670 fi
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13672 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13674 CFLAGS="$xorg_testset_save_CFLAGS"
13675 fi
13676
13677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680 fi
13681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13683 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13684 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13685 then :
13686 printf %s "(cached) " >&6
13687 else $as_nop
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 int i;
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"
13693 then :
13694 xorg_cv_cc_flag_unused_command_line_argument=yes
13695 else $as_nop
13696 xorg_cv_cc_flag_unused_command_line_argument=no
13697 fi
13698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13699 fi
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13703 CFLAGS="$xorg_testset_save_CFLAGS"
13704 fi
13705
13706 found="no"
13707
13708 if test $found = "no" ; then
13709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13711 fi
13712
13713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13715 fi
13716
13717 CFLAGS="$CFLAGS -Wmissing-prototypes"
13718
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13720 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13721 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13722 if eval test \${$cacheid+y}
13723 then :
13724 printf %s "(cached) " >&6
13725 else $as_nop
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 int i;
13729 int
13730 main (void)
13731 {
13732
13733 ;
13734 return 0;
13735 }
13736 _ACEOF
13737 if ac_fn_c_try_link "$LINENO"
13738 then :
13739 eval $cacheid=yes
13740 else $as_nop
13741 eval $cacheid=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13744 conftest$ac_exeext conftest.$ac_ext
13745 fi
13746
13747
13748 CFLAGS="$xorg_testset_save_CFLAGS"
13749
13750 eval supported=\$$cacheid
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13752 printf "%s\n" "$supported" >&6; }
13753 if test "$supported" = "yes" ; then
13754 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13755 found="yes"
13756 fi
13757 fi
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773 xorg_testset_save_CFLAGS="$CFLAGS"
13774
13775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13779 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13780 then :
13781 printf %s "(cached) " >&6
13782 else $as_nop
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 int i;
13786 _ACEOF
13787 if ac_fn_c_try_compile "$LINENO"
13788 then :
13789 xorg_cv_cc_flag_unknown_warning_option=yes
13790 else $as_nop
13791 xorg_cv_cc_flag_unknown_warning_option=no
13792 fi
13793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13794 fi
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13798 CFLAGS="$xorg_testset_save_CFLAGS"
13799 fi
13800
13801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804 fi
13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13809 then :
13810 printf %s "(cached) " >&6
13811 else $as_nop
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 int i;
13815 _ACEOF
13816 if ac_fn_c_try_compile "$LINENO"
13817 then :
13818 xorg_cv_cc_flag_unused_command_line_argument=yes
13819 else $as_nop
13820 xorg_cv_cc_flag_unused_command_line_argument=no
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13823 fi
13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13825 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13827 CFLAGS="$xorg_testset_save_CFLAGS"
13828 fi
13829
13830 found="no"
13831
13832 if test $found = "no" ; then
13833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13835 fi
13836
13837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13839 fi
13840
13841 CFLAGS="$CFLAGS -Wnested-externs"
13842
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13844 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13845 cacheid=xorg_cv_cc_flag__Wnested_externs
13846 if eval test \${$cacheid+y}
13847 then :
13848 printf %s "(cached) " >&6
13849 else $as_nop
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852 int i;
13853 int
13854 main (void)
13855 {
13856
13857 ;
13858 return 0;
13859 }
13860 _ACEOF
13861 if ac_fn_c_try_link "$LINENO"
13862 then :
13863 eval $cacheid=yes
13864 else $as_nop
13865 eval $cacheid=no
13866 fi
13867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13868 conftest$ac_exeext conftest.$ac_ext
13869 fi
13870
13871
13872 CFLAGS="$xorg_testset_save_CFLAGS"
13873
13874 eval supported=\$$cacheid
13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13876 printf "%s\n" "$supported" >&6; }
13877 if test "$supported" = "yes" ; then
13878 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13879 found="yes"
13880 fi
13881 fi
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897 xorg_testset_save_CFLAGS="$CFLAGS"
13898
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13903 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13904 then :
13905 printf %s "(cached) " >&6
13906 else $as_nop
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 int i;
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"
13912 then :
13913 xorg_cv_cc_flag_unknown_warning_option=yes
13914 else $as_nop
13915 xorg_cv_cc_flag_unknown_warning_option=no
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13918 fi
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13922 CFLAGS="$xorg_testset_save_CFLAGS"
13923 fi
13924
13925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13928 fi
13929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13933 then :
13934 printf %s "(cached) " >&6
13935 else $as_nop
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 int i;
13939 _ACEOF
13940 if ac_fn_c_try_compile "$LINENO"
13941 then :
13942 xorg_cv_cc_flag_unused_command_line_argument=yes
13943 else $as_nop
13944 xorg_cv_cc_flag_unused_command_line_argument=no
13945 fi
13946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13947 fi
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13951 CFLAGS="$xorg_testset_save_CFLAGS"
13952 fi
13953
13954 found="no"
13955
13956 if test $found = "no" ; then
13957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959 fi
13960
13961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963 fi
13964
13965 CFLAGS="$CFLAGS -Wbad-function-cast"
13966
13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13968 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13969 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13970 if eval test \${$cacheid+y}
13971 then :
13972 printf %s "(cached) " >&6
13973 else $as_nop
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976 int i;
13977 int
13978 main (void)
13979 {
13980
13981 ;
13982 return 0;
13983 }
13984 _ACEOF
13985 if ac_fn_c_try_link "$LINENO"
13986 then :
13987 eval $cacheid=yes
13988 else $as_nop
13989 eval $cacheid=no
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13992 conftest$ac_exeext conftest.$ac_ext
13993 fi
13994
13995
13996 CFLAGS="$xorg_testset_save_CFLAGS"
13997
13998 eval supported=\$$cacheid
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14000 printf "%s\n" "$supported" >&6; }
14001 if test "$supported" = "yes" ; then
14002 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14003 found="yes"
14004 fi
14005 fi
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021 xorg_testset_save_CFLAGS="$CFLAGS"
14022
14023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14027 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14028 then :
14029 printf %s "(cached) " >&6
14030 else $as_nop
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033 int i;
14034 _ACEOF
14035 if ac_fn_c_try_compile "$LINENO"
14036 then :
14037 xorg_cv_cc_flag_unknown_warning_option=yes
14038 else $as_nop
14039 xorg_cv_cc_flag_unknown_warning_option=no
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14042 fi
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14046 CFLAGS="$xorg_testset_save_CFLAGS"
14047 fi
14048
14049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14052 fi
14053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14057 then :
14058 printf %s "(cached) " >&6
14059 else $as_nop
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 int i;
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"
14065 then :
14066 xorg_cv_cc_flag_unused_command_line_argument=yes
14067 else $as_nop
14068 xorg_cv_cc_flag_unused_command_line_argument=no
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14071 fi
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14075 CFLAGS="$xorg_testset_save_CFLAGS"
14076 fi
14077
14078 found="no"
14079
14080 if test $found = "no" ; then
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 fi
14084
14085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14087 fi
14088
14089 CFLAGS="$CFLAGS -Wold-style-definition"
14090
14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14092 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14093 cacheid=xorg_cv_cc_flag__Wold_style_definition
14094 if eval test \${$cacheid+y}
14095 then :
14096 printf %s "(cached) " >&6
14097 else $as_nop
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 int i;
14101 int
14102 main (void)
14103 {
14104
14105 ;
14106 return 0;
14107 }
14108 _ACEOF
14109 if ac_fn_c_try_link "$LINENO"
14110 then :
14111 eval $cacheid=yes
14112 else $as_nop
14113 eval $cacheid=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14116 conftest$ac_exeext conftest.$ac_ext
14117 fi
14118
14119
14120 CFLAGS="$xorg_testset_save_CFLAGS"
14121
14122 eval supported=\$$cacheid
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14124 printf "%s\n" "$supported" >&6; }
14125 if test "$supported" = "yes" ; then
14126 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14127 found="yes"
14128 fi
14129 fi
14130
14131 if test $found = "no" ; then
14132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14134 fi
14135
14136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14138 fi
14139
14140 CFLAGS="$CFLAGS -fd"
14141
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14143 printf %s "checking if $CC supports -fd... " >&6; }
14144 cacheid=xorg_cv_cc_flag__fd
14145 if eval test \${$cacheid+y}
14146 then :
14147 printf %s "(cached) " >&6
14148 else $as_nop
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 int i;
14152 int
14153 main (void)
14154 {
14155
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"
14161 then :
14162 eval $cacheid=yes
14163 else $as_nop
14164 eval $cacheid=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14167 conftest$ac_exeext conftest.$ac_ext
14168 fi
14169
14170
14171 CFLAGS="$xorg_testset_save_CFLAGS"
14172
14173 eval supported=\$$cacheid
14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14175 printf "%s\n" "$supported" >&6; }
14176 if test "$supported" = "yes" ; then
14177 BASE_CFLAGS="$BASE_CFLAGS -fd"
14178 found="yes"
14179 fi
14180 fi
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196 xorg_testset_save_CFLAGS="$CFLAGS"
14197
14198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14201 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14202 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14203 then :
14204 printf %s "(cached) " >&6
14205 else $as_nop
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"
14211 then :
14212 xorg_cv_cc_flag_unknown_warning_option=yes
14213 else $as_nop
14214 xorg_cv_cc_flag_unknown_warning_option=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14217 fi
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14219 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14221 CFLAGS="$xorg_testset_save_CFLAGS"
14222 fi
14223
14224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14227 fi
14228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14232 then :
14233 printf %s "(cached) " >&6
14234 else $as_nop
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237 int i;
14238 _ACEOF
14239 if ac_fn_c_try_compile "$LINENO"
14240 then :
14241 xorg_cv_cc_flag_unused_command_line_argument=yes
14242 else $as_nop
14243 xorg_cv_cc_flag_unused_command_line_argument=no
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14246 fi
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14248 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14250 CFLAGS="$xorg_testset_save_CFLAGS"
14251 fi
14252
14253 found="no"
14254
14255 if test $found = "no" ; then
14256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258 fi
14259
14260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14262 fi
14263
14264 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14265
14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14267 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14268 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14269 if eval test \${$cacheid+y}
14270 then :
14271 printf %s "(cached) " >&6
14272 else $as_nop
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 int i;
14276 int
14277 main (void)
14278 {
14279
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"
14285 then :
14286 eval $cacheid=yes
14287 else $as_nop
14288 eval $cacheid=no
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14291 conftest$ac_exeext conftest.$ac_ext
14292 fi
14293
14294
14295 CFLAGS="$xorg_testset_save_CFLAGS"
14296
14297 eval supported=\$$cacheid
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14299 printf "%s\n" "$supported" >&6; }
14300 if test "$supported" = "yes" ; then
14301 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14302 found="yes"
14303 fi
14304 fi
14305
14306
14307
14308
14309
14310 # This chunk adds additional warnings that could catch undesired effects.
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324 xorg_testset_save_CFLAGS="$CFLAGS"
14325
14326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14330 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14331 then :
14332 printf %s "(cached) " >&6
14333 else $as_nop
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 int i;
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"
14339 then :
14340 xorg_cv_cc_flag_unknown_warning_option=yes
14341 else $as_nop
14342 xorg_cv_cc_flag_unknown_warning_option=no
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14345 fi
14346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14347 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14349 CFLAGS="$xorg_testset_save_CFLAGS"
14350 fi
14351
14352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14355 fi
14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14358 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14359 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14360 then :
14361 printf %s "(cached) " >&6
14362 else $as_nop
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 int i;
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"
14368 then :
14369 xorg_cv_cc_flag_unused_command_line_argument=yes
14370 else $as_nop
14371 xorg_cv_cc_flag_unused_command_line_argument=no
14372 fi
14373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14374 fi
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14376 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14378 CFLAGS="$xorg_testset_save_CFLAGS"
14379 fi
14380
14381 found="no"
14382
14383 if test $found = "no" ; then
14384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14386 fi
14387
14388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14390 fi
14391
14392 CFLAGS="$CFLAGS -Wunused"
14393
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14395 printf %s "checking if $CC supports -Wunused... " >&6; }
14396 cacheid=xorg_cv_cc_flag__Wunused
14397 if eval test \${$cacheid+y}
14398 then :
14399 printf %s "(cached) " >&6
14400 else $as_nop
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14403 int i;
14404 int
14405 main (void)
14406 {
14407
14408 ;
14409 return 0;
14410 }
14411 _ACEOF
14412 if ac_fn_c_try_link "$LINENO"
14413 then :
14414 eval $cacheid=yes
14415 else $as_nop
14416 eval $cacheid=no
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14419 conftest$ac_exeext conftest.$ac_ext
14420 fi
14421
14422
14423 CFLAGS="$xorg_testset_save_CFLAGS"
14424
14425 eval supported=\$$cacheid
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14427 printf "%s\n" "$supported" >&6; }
14428 if test "$supported" = "yes" ; then
14429 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14430 found="yes"
14431 fi
14432 fi
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448 xorg_testset_save_CFLAGS="$CFLAGS"
14449
14450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14454 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14455 then :
14456 printf %s "(cached) " >&6
14457 else $as_nop
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 int i;
14461 _ACEOF
14462 if ac_fn_c_try_compile "$LINENO"
14463 then :
14464 xorg_cv_cc_flag_unknown_warning_option=yes
14465 else $as_nop
14466 xorg_cv_cc_flag_unknown_warning_option=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14469 fi
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14471 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14473 CFLAGS="$xorg_testset_save_CFLAGS"
14474 fi
14475
14476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14479 fi
14480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14482 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14483 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14484 then :
14485 printf %s "(cached) " >&6
14486 else $as_nop
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 int i;
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"
14492 then :
14493 xorg_cv_cc_flag_unused_command_line_argument=yes
14494 else $as_nop
14495 xorg_cv_cc_flag_unused_command_line_argument=no
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14498 fi
14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14500 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14502 CFLAGS="$xorg_testset_save_CFLAGS"
14503 fi
14504
14505 found="no"
14506
14507 if test $found = "no" ; then
14508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510 fi
14511
14512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14514 fi
14515
14516 CFLAGS="$CFLAGS -Wuninitialized"
14517
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14519 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14520 cacheid=xorg_cv_cc_flag__Wuninitialized
14521 if eval test \${$cacheid+y}
14522 then :
14523 printf %s "(cached) " >&6
14524 else $as_nop
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 int i;
14528 int
14529 main (void)
14530 {
14531
14532 ;
14533 return 0;
14534 }
14535 _ACEOF
14536 if ac_fn_c_try_link "$LINENO"
14537 then :
14538 eval $cacheid=yes
14539 else $as_nop
14540 eval $cacheid=no
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14543 conftest$ac_exeext conftest.$ac_ext
14544 fi
14545
14546
14547 CFLAGS="$xorg_testset_save_CFLAGS"
14548
14549 eval supported=\$$cacheid
14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14551 printf "%s\n" "$supported" >&6; }
14552 if test "$supported" = "yes" ; then
14553 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14554 found="yes"
14555 fi
14556 fi
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572 xorg_testset_save_CFLAGS="$CFLAGS"
14573
14574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14577 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14578 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14579 then :
14580 printf %s "(cached) " >&6
14581 else $as_nop
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 int i;
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"
14587 then :
14588 xorg_cv_cc_flag_unknown_warning_option=yes
14589 else $as_nop
14590 xorg_cv_cc_flag_unknown_warning_option=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14593 fi
14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14597 CFLAGS="$xorg_testset_save_CFLAGS"
14598 fi
14599
14600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14603 fi
14604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14608 then :
14609 printf %s "(cached) " >&6
14610 else $as_nop
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 int i;
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"
14616 then :
14617 xorg_cv_cc_flag_unused_command_line_argument=yes
14618 else $as_nop
14619 xorg_cv_cc_flag_unused_command_line_argument=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14622 fi
14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14624 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14626 CFLAGS="$xorg_testset_save_CFLAGS"
14627 fi
14628
14629 found="no"
14630
14631 if test $found = "no" ; then
14632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634 fi
14635
14636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14638 fi
14639
14640 CFLAGS="$CFLAGS -Wshadow"
14641
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14643 printf %s "checking if $CC supports -Wshadow... " >&6; }
14644 cacheid=xorg_cv_cc_flag__Wshadow
14645 if eval test \${$cacheid+y}
14646 then :
14647 printf %s "(cached) " >&6
14648 else $as_nop
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651 int i;
14652 int
14653 main (void)
14654 {
14655
14656 ;
14657 return 0;
14658 }
14659 _ACEOF
14660 if ac_fn_c_try_link "$LINENO"
14661 then :
14662 eval $cacheid=yes
14663 else $as_nop
14664 eval $cacheid=no
14665 fi
14666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14667 conftest$ac_exeext conftest.$ac_ext
14668 fi
14669
14670
14671 CFLAGS="$xorg_testset_save_CFLAGS"
14672
14673 eval supported=\$$cacheid
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14675 printf "%s\n" "$supported" >&6; }
14676 if test "$supported" = "yes" ; then
14677 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14678 found="yes"
14679 fi
14680 fi
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 xorg_testset_save_CFLAGS="$CFLAGS"
14697
14698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14703 then :
14704 printf %s "(cached) " >&6
14705 else $as_nop
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14708 int i;
14709 _ACEOF
14710 if ac_fn_c_try_compile "$LINENO"
14711 then :
14712 xorg_cv_cc_flag_unknown_warning_option=yes
14713 else $as_nop
14714 xorg_cv_cc_flag_unknown_warning_option=no
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14717 fi
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14721 CFLAGS="$xorg_testset_save_CFLAGS"
14722 fi
14723
14724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14727 fi
14728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14732 then :
14733 printf %s "(cached) " >&6
14734 else $as_nop
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 int i;
14738 _ACEOF
14739 if ac_fn_c_try_compile "$LINENO"
14740 then :
14741 xorg_cv_cc_flag_unused_command_line_argument=yes
14742 else $as_nop
14743 xorg_cv_cc_flag_unused_command_line_argument=no
14744 fi
14745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14746 fi
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14750 CFLAGS="$xorg_testset_save_CFLAGS"
14751 fi
14752
14753 found="no"
14754
14755 if test $found = "no" ; then
14756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14758 fi
14759
14760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14762 fi
14763
14764 CFLAGS="$CFLAGS -Wmissing-noreturn"
14765
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14767 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14768 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14769 if eval test \${$cacheid+y}
14770 then :
14771 printf %s "(cached) " >&6
14772 else $as_nop
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 int i;
14776 int
14777 main (void)
14778 {
14779
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_c_try_link "$LINENO"
14785 then :
14786 eval $cacheid=yes
14787 else $as_nop
14788 eval $cacheid=no
14789 fi
14790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14791 conftest$ac_exeext conftest.$ac_ext
14792 fi
14793
14794
14795 CFLAGS="$xorg_testset_save_CFLAGS"
14796
14797 eval supported=\$$cacheid
14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14799 printf "%s\n" "$supported" >&6; }
14800 if test "$supported" = "yes" ; then
14801 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14802 found="yes"
14803 fi
14804 fi
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820 xorg_testset_save_CFLAGS="$CFLAGS"
14821
14822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14825 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14826 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14827 then :
14828 printf %s "(cached) " >&6
14829 else $as_nop
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 int i;
14833 _ACEOF
14834 if ac_fn_c_try_compile "$LINENO"
14835 then :
14836 xorg_cv_cc_flag_unknown_warning_option=yes
14837 else $as_nop
14838 xorg_cv_cc_flag_unknown_warning_option=no
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14841 fi
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14843 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14845 CFLAGS="$xorg_testset_save_CFLAGS"
14846 fi
14847
14848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851 fi
14852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14854 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14855 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14856 then :
14857 printf %s "(cached) " >&6
14858 else $as_nop
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 int i;
14862 _ACEOF
14863 if ac_fn_c_try_compile "$LINENO"
14864 then :
14865 xorg_cv_cc_flag_unused_command_line_argument=yes
14866 else $as_nop
14867 xorg_cv_cc_flag_unused_command_line_argument=no
14868 fi
14869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14870 fi
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14874 CFLAGS="$xorg_testset_save_CFLAGS"
14875 fi
14876
14877 found="no"
14878
14879 if test $found = "no" ; then
14880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14882 fi
14883
14884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14886 fi
14887
14888 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14889
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14891 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14892 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14893 if eval test \${$cacheid+y}
14894 then :
14895 printf %s "(cached) " >&6
14896 else $as_nop
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 int i;
14900 int
14901 main (void)
14902 {
14903
14904 ;
14905 return 0;
14906 }
14907 _ACEOF
14908 if ac_fn_c_try_link "$LINENO"
14909 then :
14910 eval $cacheid=yes
14911 else $as_nop
14912 eval $cacheid=no
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14915 conftest$ac_exeext conftest.$ac_ext
14916 fi
14917
14918
14919 CFLAGS="$xorg_testset_save_CFLAGS"
14920
14921 eval supported=\$$cacheid
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14923 printf "%s\n" "$supported" >&6; }
14924 if test "$supported" = "yes" ; then
14925 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14926 found="yes"
14927 fi
14928 fi
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944 xorg_testset_save_CFLAGS="$CFLAGS"
14945
14946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14950 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14951 then :
14952 printf %s "(cached) " >&6
14953 else $as_nop
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956 int i;
14957 _ACEOF
14958 if ac_fn_c_try_compile "$LINENO"
14959 then :
14960 xorg_cv_cc_flag_unknown_warning_option=yes
14961 else $as_nop
14962 xorg_cv_cc_flag_unknown_warning_option=no
14963 fi
14964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14965 fi
14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14969 CFLAGS="$xorg_testset_save_CFLAGS"
14970 fi
14971
14972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14975 fi
14976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14980 then :
14981 printf %s "(cached) " >&6
14982 else $as_nop
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 int i;
14986 _ACEOF
14987 if ac_fn_c_try_compile "$LINENO"
14988 then :
14989 xorg_cv_cc_flag_unused_command_line_argument=yes
14990 else $as_nop
14991 xorg_cv_cc_flag_unused_command_line_argument=no
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14994 fi
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14996 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14998 CFLAGS="$xorg_testset_save_CFLAGS"
14999 fi
15000
15001 found="no"
15002
15003 if test $found = "no" ; then
15004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15006 fi
15007
15008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15010 fi
15011
15012 CFLAGS="$CFLAGS -Wredundant-decls"
15013
15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15015 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15016 cacheid=xorg_cv_cc_flag__Wredundant_decls
15017 if eval test \${$cacheid+y}
15018 then :
15019 printf %s "(cached) " >&6
15020 else $as_nop
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 int i;
15024 int
15025 main (void)
15026 {
15027
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_link "$LINENO"
15033 then :
15034 eval $cacheid=yes
15035 else $as_nop
15036 eval $cacheid=no
15037 fi
15038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15039 conftest$ac_exeext conftest.$ac_ext
15040 fi
15041
15042
15043 CFLAGS="$xorg_testset_save_CFLAGS"
15044
15045 eval supported=\$$cacheid
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15047 printf "%s\n" "$supported" >&6; }
15048 if test "$supported" = "yes" ; then
15049 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15050 found="yes"
15051 fi
15052 fi
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068 xorg_testset_save_CFLAGS="$CFLAGS"
15069
15070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15074 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15075 then :
15076 printf %s "(cached) " >&6
15077 else $as_nop
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 int i;
15081 _ACEOF
15082 if ac_fn_c_try_compile "$LINENO"
15083 then :
15084 xorg_cv_cc_flag_unknown_warning_option=yes
15085 else $as_nop
15086 xorg_cv_cc_flag_unknown_warning_option=no
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15089 fi
15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15093 CFLAGS="$xorg_testset_save_CFLAGS"
15094 fi
15095
15096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15099 fi
15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15104 then :
15105 printf %s "(cached) " >&6
15106 else $as_nop
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 int i;
15110 _ACEOF
15111 if ac_fn_c_try_compile "$LINENO"
15112 then :
15113 xorg_cv_cc_flag_unused_command_line_argument=yes
15114 else $as_nop
15115 xorg_cv_cc_flag_unused_command_line_argument=no
15116 fi
15117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15118 fi
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15120 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15122 CFLAGS="$xorg_testset_save_CFLAGS"
15123 fi
15124
15125 found="no"
15126
15127 if test $found = "no" ; then
15128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15130 fi
15131
15132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15134 fi
15135
15136 CFLAGS="$CFLAGS -Wlogical-op"
15137
15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15139 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15140 cacheid=xorg_cv_cc_flag__Wlogical_op
15141 if eval test \${$cacheid+y}
15142 then :
15143 printf %s "(cached) " >&6
15144 else $as_nop
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 int i;
15148 int
15149 main (void)
15150 {
15151
15152 ;
15153 return 0;
15154 }
15155 _ACEOF
15156 if ac_fn_c_try_link "$LINENO"
15157 then :
15158 eval $cacheid=yes
15159 else $as_nop
15160 eval $cacheid=no
15161 fi
15162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15163 conftest$ac_exeext conftest.$ac_ext
15164 fi
15165
15166
15167 CFLAGS="$xorg_testset_save_CFLAGS"
15168
15169 eval supported=\$$cacheid
15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15171 printf "%s\n" "$supported" >&6; }
15172 if test "$supported" = "yes" ; then
15173 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15174 found="yes"
15175 fi
15176 fi
15177
15178
15179
15180 # These are currently disabled because they are noisy. They will be enabled
15181 # in the future once the codebase is sufficiently modernized to silence
15182 # them. For now, I don't want them to drown out the other warnings.
15183 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15184 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15185 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15186
15187 # Turn some warnings into errors, so we don't accidently get successful builds
15188 # when there are problems that should be fixed.
15189
15190 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204 xorg_testset_save_CFLAGS="$CFLAGS"
15205
15206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15209 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15210 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15211 then :
15212 printf %s "(cached) " >&6
15213 else $as_nop
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15216 int i;
15217 _ACEOF
15218 if ac_fn_c_try_compile "$LINENO"
15219 then :
15220 xorg_cv_cc_flag_unknown_warning_option=yes
15221 else $as_nop
15222 xorg_cv_cc_flag_unknown_warning_option=no
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15225 fi
15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15227 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15229 CFLAGS="$xorg_testset_save_CFLAGS"
15230 fi
15231
15232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15235 fi
15236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15240 then :
15241 printf %s "(cached) " >&6
15242 else $as_nop
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15245 int i;
15246 _ACEOF
15247 if ac_fn_c_try_compile "$LINENO"
15248 then :
15249 xorg_cv_cc_flag_unused_command_line_argument=yes
15250 else $as_nop
15251 xorg_cv_cc_flag_unused_command_line_argument=no
15252 fi
15253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15254 fi
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15256 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15258 CFLAGS="$xorg_testset_save_CFLAGS"
15259 fi
15260
15261 found="no"
15262
15263 if test $found = "no" ; then
15264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15266 fi
15267
15268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15270 fi
15271
15272 CFLAGS="$CFLAGS -Werror=implicit"
15273
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15275 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15276 cacheid=xorg_cv_cc_flag__Werror_implicit
15277 if eval test \${$cacheid+y}
15278 then :
15279 printf %s "(cached) " >&6
15280 else $as_nop
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283 int i;
15284 int
15285 main (void)
15286 {
15287
15288 ;
15289 return 0;
15290 }
15291 _ACEOF
15292 if ac_fn_c_try_link "$LINENO"
15293 then :
15294 eval $cacheid=yes
15295 else $as_nop
15296 eval $cacheid=no
15297 fi
15298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15299 conftest$ac_exeext conftest.$ac_ext
15300 fi
15301
15302
15303 CFLAGS="$xorg_testset_save_CFLAGS"
15304
15305 eval supported=\$$cacheid
15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15307 printf "%s\n" "$supported" >&6; }
15308 if test "$supported" = "yes" ; then
15309 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15310 found="yes"
15311 fi
15312 fi
15313
15314 if test $found = "no" ; then
15315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15317 fi
15318
15319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15321 fi
15322
15323 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15324
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15326 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15327 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15328 if eval test \${$cacheid+y}
15329 then :
15330 printf %s "(cached) " >&6
15331 else $as_nop
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 int i;
15335 int
15336 main (void)
15337 {
15338
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_c_try_link "$LINENO"
15344 then :
15345 eval $cacheid=yes
15346 else $as_nop
15347 eval $cacheid=no
15348 fi
15349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15350 conftest$ac_exeext conftest.$ac_ext
15351 fi
15352
15353
15354 CFLAGS="$xorg_testset_save_CFLAGS"
15355
15356 eval supported=\$$cacheid
15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15358 printf "%s\n" "$supported" >&6; }
15359 if test "$supported" = "yes" ; then
15360 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15361 found="yes"
15362 fi
15363 fi
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379 xorg_testset_save_CFLAGS="$CFLAGS"
15380
15381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15385 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15386 then :
15387 printf %s "(cached) " >&6
15388 else $as_nop
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391 int i;
15392 _ACEOF
15393 if ac_fn_c_try_compile "$LINENO"
15394 then :
15395 xorg_cv_cc_flag_unknown_warning_option=yes
15396 else $as_nop
15397 xorg_cv_cc_flag_unknown_warning_option=no
15398 fi
15399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15400 fi
15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15402 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15404 CFLAGS="$xorg_testset_save_CFLAGS"
15405 fi
15406
15407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410 fi
15411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15413 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15414 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15415 then :
15416 printf %s "(cached) " >&6
15417 else $as_nop
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15420 int i;
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"
15423 then :
15424 xorg_cv_cc_flag_unused_command_line_argument=yes
15425 else $as_nop
15426 xorg_cv_cc_flag_unused_command_line_argument=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15429 fi
15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15431 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15433 CFLAGS="$xorg_testset_save_CFLAGS"
15434 fi
15435
15436 found="no"
15437
15438 if test $found = "no" ; then
15439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441 fi
15442
15443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445 fi
15446
15447 CFLAGS="$CFLAGS -Werror=nonnull"
15448
15449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15450 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15451 cacheid=xorg_cv_cc_flag__Werror_nonnull
15452 if eval test \${$cacheid+y}
15453 then :
15454 printf %s "(cached) " >&6
15455 else $as_nop
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 int i;
15459 int
15460 main (void)
15461 {
15462
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"
15468 then :
15469 eval $cacheid=yes
15470 else $as_nop
15471 eval $cacheid=no
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15474 conftest$ac_exeext conftest.$ac_ext
15475 fi
15476
15477
15478 CFLAGS="$xorg_testset_save_CFLAGS"
15479
15480 eval supported=\$$cacheid
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15482 printf "%s\n" "$supported" >&6; }
15483 if test "$supported" = "yes" ; then
15484 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15485 found="yes"
15486 fi
15487 fi
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503 xorg_testset_save_CFLAGS="$CFLAGS"
15504
15505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15508 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15509 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15510 then :
15511 printf %s "(cached) " >&6
15512 else $as_nop
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 int i;
15516 _ACEOF
15517 if ac_fn_c_try_compile "$LINENO"
15518 then :
15519 xorg_cv_cc_flag_unknown_warning_option=yes
15520 else $as_nop
15521 xorg_cv_cc_flag_unknown_warning_option=no
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15524 fi
15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15526 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15528 CFLAGS="$xorg_testset_save_CFLAGS"
15529 fi
15530
15531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15534 fi
15535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15537 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15538 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15539 then :
15540 printf %s "(cached) " >&6
15541 else $as_nop
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 int i;
15545 _ACEOF
15546 if ac_fn_c_try_compile "$LINENO"
15547 then :
15548 xorg_cv_cc_flag_unused_command_line_argument=yes
15549 else $as_nop
15550 xorg_cv_cc_flag_unused_command_line_argument=no
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 fi
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15557 CFLAGS="$xorg_testset_save_CFLAGS"
15558 fi
15559
15560 found="no"
15561
15562 if test $found = "no" ; then
15563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565 fi
15566
15567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15569 fi
15570
15571 CFLAGS="$CFLAGS -Werror=init-self"
15572
15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15574 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15575 cacheid=xorg_cv_cc_flag__Werror_init_self
15576 if eval test \${$cacheid+y}
15577 then :
15578 printf %s "(cached) " >&6
15579 else $as_nop
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582 int i;
15583 int
15584 main (void)
15585 {
15586
15587 ;
15588 return 0;
15589 }
15590 _ACEOF
15591 if ac_fn_c_try_link "$LINENO"
15592 then :
15593 eval $cacheid=yes
15594 else $as_nop
15595 eval $cacheid=no
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15598 conftest$ac_exeext conftest.$ac_ext
15599 fi
15600
15601
15602 CFLAGS="$xorg_testset_save_CFLAGS"
15603
15604 eval supported=\$$cacheid
15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15606 printf "%s\n" "$supported" >&6; }
15607 if test "$supported" = "yes" ; then
15608 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15609 found="yes"
15610 fi
15611 fi
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627 xorg_testset_save_CFLAGS="$CFLAGS"
15628
15629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15632 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15633 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15634 then :
15635 printf %s "(cached) " >&6
15636 else $as_nop
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 int i;
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"
15642 then :
15643 xorg_cv_cc_flag_unknown_warning_option=yes
15644 else $as_nop
15645 xorg_cv_cc_flag_unknown_warning_option=no
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15648 fi
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652 CFLAGS="$xorg_testset_save_CFLAGS"
15653 fi
15654
15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 fi
15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15663 then :
15664 printf %s "(cached) " >&6
15665 else $as_nop
15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668 int i;
15669 _ACEOF
15670 if ac_fn_c_try_compile "$LINENO"
15671 then :
15672 xorg_cv_cc_flag_unused_command_line_argument=yes
15673 else $as_nop
15674 xorg_cv_cc_flag_unused_command_line_argument=no
15675 fi
15676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15677 fi
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15681 CFLAGS="$xorg_testset_save_CFLAGS"
15682 fi
15683
15684 found="no"
15685
15686 if test $found = "no" ; then
15687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689 fi
15690
15691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15693 fi
15694
15695 CFLAGS="$CFLAGS -Werror=main"
15696
15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15698 printf %s "checking if $CC supports -Werror=main... " >&6; }
15699 cacheid=xorg_cv_cc_flag__Werror_main
15700 if eval test \${$cacheid+y}
15701 then :
15702 printf %s "(cached) " >&6
15703 else $as_nop
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 int i;
15707 int
15708 main (void)
15709 {
15710
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 if ac_fn_c_try_link "$LINENO"
15716 then :
15717 eval $cacheid=yes
15718 else $as_nop
15719 eval $cacheid=no
15720 fi
15721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15722 conftest$ac_exeext conftest.$ac_ext
15723 fi
15724
15725
15726 CFLAGS="$xorg_testset_save_CFLAGS"
15727
15728 eval supported=\$$cacheid
15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15730 printf "%s\n" "$supported" >&6; }
15731 if test "$supported" = "yes" ; then
15732 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15733 found="yes"
15734 fi
15735 fi
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751 xorg_testset_save_CFLAGS="$CFLAGS"
15752
15753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15756 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15757 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15758 then :
15759 printf %s "(cached) " >&6
15760 else $as_nop
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 int i;
15764 _ACEOF
15765 if ac_fn_c_try_compile "$LINENO"
15766 then :
15767 xorg_cv_cc_flag_unknown_warning_option=yes
15768 else $as_nop
15769 xorg_cv_cc_flag_unknown_warning_option=no
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15772 fi
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15774 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15776 CFLAGS="$xorg_testset_save_CFLAGS"
15777 fi
15778
15779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782 fi
15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15785 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15786 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15787 then :
15788 printf %s "(cached) " >&6
15789 else $as_nop
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792 int i;
15793 _ACEOF
15794 if ac_fn_c_try_compile "$LINENO"
15795 then :
15796 xorg_cv_cc_flag_unused_command_line_argument=yes
15797 else $as_nop
15798 xorg_cv_cc_flag_unused_command_line_argument=no
15799 fi
15800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15801 fi
15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15803 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15805 CFLAGS="$xorg_testset_save_CFLAGS"
15806 fi
15807
15808 found="no"
15809
15810 if test $found = "no" ; then
15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 fi
15814
15815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817 fi
15818
15819 CFLAGS="$CFLAGS -Werror=missing-braces"
15820
15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15822 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15823 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15824 if eval test \${$cacheid+y}
15825 then :
15826 printf %s "(cached) " >&6
15827 else $as_nop
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 int i;
15831 int
15832 main (void)
15833 {
15834
15835 ;
15836 return 0;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_link "$LINENO"
15840 then :
15841 eval $cacheid=yes
15842 else $as_nop
15843 eval $cacheid=no
15844 fi
15845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15846 conftest$ac_exeext conftest.$ac_ext
15847 fi
15848
15849
15850 CFLAGS="$xorg_testset_save_CFLAGS"
15851
15852 eval supported=\$$cacheid
15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15854 printf "%s\n" "$supported" >&6; }
15855 if test "$supported" = "yes" ; then
15856 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15857 found="yes"
15858 fi
15859 fi
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875 xorg_testset_save_CFLAGS="$CFLAGS"
15876
15877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15880 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15881 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15882 then :
15883 printf %s "(cached) " >&6
15884 else $as_nop
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15887 int i;
15888 _ACEOF
15889 if ac_fn_c_try_compile "$LINENO"
15890 then :
15891 xorg_cv_cc_flag_unknown_warning_option=yes
15892 else $as_nop
15893 xorg_cv_cc_flag_unknown_warning_option=no
15894 fi
15895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15896 fi
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15898 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15900 CFLAGS="$xorg_testset_save_CFLAGS"
15901 fi
15902
15903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906 fi
15907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15909 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15910 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15911 then :
15912 printf %s "(cached) " >&6
15913 else $as_nop
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 int i;
15917 _ACEOF
15918 if ac_fn_c_try_compile "$LINENO"
15919 then :
15920 xorg_cv_cc_flag_unused_command_line_argument=yes
15921 else $as_nop
15922 xorg_cv_cc_flag_unused_command_line_argument=no
15923 fi
15924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15925 fi
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15929 CFLAGS="$xorg_testset_save_CFLAGS"
15930 fi
15931
15932 found="no"
15933
15934 if test $found = "no" ; then
15935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937 fi
15938
15939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15941 fi
15942
15943 CFLAGS="$CFLAGS -Werror=sequence-point"
15944
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15946 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15947 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15948 if eval test \${$cacheid+y}
15949 then :
15950 printf %s "(cached) " >&6
15951 else $as_nop
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 int i;
15955 int
15956 main (void)
15957 {
15958
15959 ;
15960 return 0;
15961 }
15962 _ACEOF
15963 if ac_fn_c_try_link "$LINENO"
15964 then :
15965 eval $cacheid=yes
15966 else $as_nop
15967 eval $cacheid=no
15968 fi
15969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15970 conftest$ac_exeext conftest.$ac_ext
15971 fi
15972
15973
15974 CFLAGS="$xorg_testset_save_CFLAGS"
15975
15976 eval supported=\$$cacheid
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15978 printf "%s\n" "$supported" >&6; }
15979 if test "$supported" = "yes" ; then
15980 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16004 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16005 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16006 then :
16007 printf %s "(cached) " >&6
16008 else $as_nop
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 int i;
16012 _ACEOF
16013 if ac_fn_c_try_compile "$LINENO"
16014 then :
16015 xorg_cv_cc_flag_unknown_warning_option=yes
16016 else $as_nop
16017 xorg_cv_cc_flag_unknown_warning_option=no
16018 fi
16019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16020 fi
16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16022 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16024 CFLAGS="$xorg_testset_save_CFLAGS"
16025 fi
16026
16027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16030 fi
16031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16033 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16034 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16035 then :
16036 printf %s "(cached) " >&6
16037 else $as_nop
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 int i;
16041 _ACEOF
16042 if ac_fn_c_try_compile "$LINENO"
16043 then :
16044 xorg_cv_cc_flag_unused_command_line_argument=yes
16045 else $as_nop
16046 xorg_cv_cc_flag_unused_command_line_argument=no
16047 fi
16048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16049 fi
16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16051 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16053 CFLAGS="$xorg_testset_save_CFLAGS"
16054 fi
16055
16056 found="no"
16057
16058 if test $found = "no" ; then
16059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061 fi
16062
16063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16065 fi
16066
16067 CFLAGS="$CFLAGS -Werror=return-type"
16068
16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16070 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16071 cacheid=xorg_cv_cc_flag__Werror_return_type
16072 if eval test \${$cacheid+y}
16073 then :
16074 printf %s "(cached) " >&6
16075 else $as_nop
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078 int i;
16079 int
16080 main (void)
16081 {
16082
16083 ;
16084 return 0;
16085 }
16086 _ACEOF
16087 if ac_fn_c_try_link "$LINENO"
16088 then :
16089 eval $cacheid=yes
16090 else $as_nop
16091 eval $cacheid=no
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16094 conftest$ac_exeext conftest.$ac_ext
16095 fi
16096
16097
16098 CFLAGS="$xorg_testset_save_CFLAGS"
16099
16100 eval supported=\$$cacheid
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16102 printf "%s\n" "$supported" >&6; }
16103 if test "$supported" = "yes" ; then
16104 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16105 found="yes"
16106 fi
16107 fi
16108
16109 if test $found = "no" ; then
16110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16112 fi
16113
16114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16116 fi
16117
16118 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16119
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16121 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16122 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16123 if eval test \${$cacheid+y}
16124 then :
16125 printf %s "(cached) " >&6
16126 else $as_nop
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 int i;
16130 int
16131 main (void)
16132 {
16133
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_link "$LINENO"
16139 then :
16140 eval $cacheid=yes
16141 else $as_nop
16142 eval $cacheid=no
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16145 conftest$ac_exeext conftest.$ac_ext
16146 fi
16147
16148
16149 CFLAGS="$xorg_testset_save_CFLAGS"
16150
16151 eval supported=\$$cacheid
16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16153 printf "%s\n" "$supported" >&6; }
16154 if test "$supported" = "yes" ; then
16155 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16156 found="yes"
16157 fi
16158 fi
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174 xorg_testset_save_CFLAGS="$CFLAGS"
16175
16176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16179 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16180 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16181 then :
16182 printf %s "(cached) " >&6
16183 else $as_nop
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 int i;
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"
16189 then :
16190 xorg_cv_cc_flag_unknown_warning_option=yes
16191 else $as_nop
16192 xorg_cv_cc_flag_unknown_warning_option=no
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16195 fi
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16197 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16199 CFLAGS="$xorg_testset_save_CFLAGS"
16200 fi
16201
16202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16205 fi
16206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16210 then :
16211 printf %s "(cached) " >&6
16212 else $as_nop
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 int i;
16216 _ACEOF
16217 if ac_fn_c_try_compile "$LINENO"
16218 then :
16219 xorg_cv_cc_flag_unused_command_line_argument=yes
16220 else $as_nop
16221 xorg_cv_cc_flag_unused_command_line_argument=no
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16224 fi
16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16228 CFLAGS="$xorg_testset_save_CFLAGS"
16229 fi
16230
16231 found="no"
16232
16233 if test $found = "no" ; then
16234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16236 fi
16237
16238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16240 fi
16241
16242 CFLAGS="$CFLAGS -Werror=trigraphs"
16243
16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16245 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16246 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16247 if eval test \${$cacheid+y}
16248 then :
16249 printf %s "(cached) " >&6
16250 else $as_nop
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 int i;
16254 int
16255 main (void)
16256 {
16257
16258 ;
16259 return 0;
16260 }
16261 _ACEOF
16262 if ac_fn_c_try_link "$LINENO"
16263 then :
16264 eval $cacheid=yes
16265 else $as_nop
16266 eval $cacheid=no
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16269 conftest$ac_exeext conftest.$ac_ext
16270 fi
16271
16272
16273 CFLAGS="$xorg_testset_save_CFLAGS"
16274
16275 eval supported=\$$cacheid
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16277 printf "%s\n" "$supported" >&6; }
16278 if test "$supported" = "yes" ; then
16279 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16280 found="yes"
16281 fi
16282 fi
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298 xorg_testset_save_CFLAGS="$CFLAGS"
16299
16300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16303 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16304 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16305 then :
16306 printf %s "(cached) " >&6
16307 else $as_nop
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 int i;
16311 _ACEOF
16312 if ac_fn_c_try_compile "$LINENO"
16313 then :
16314 xorg_cv_cc_flag_unknown_warning_option=yes
16315 else $as_nop
16316 xorg_cv_cc_flag_unknown_warning_option=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16319 fi
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16323 CFLAGS="$xorg_testset_save_CFLAGS"
16324 fi
16325
16326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16329 fi
16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16334 then :
16335 printf %s "(cached) " >&6
16336 else $as_nop
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 int i;
16340 _ACEOF
16341 if ac_fn_c_try_compile "$LINENO"
16342 then :
16343 xorg_cv_cc_flag_unused_command_line_argument=yes
16344 else $as_nop
16345 xorg_cv_cc_flag_unused_command_line_argument=no
16346 fi
16347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16348 fi
16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16350 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16352 CFLAGS="$xorg_testset_save_CFLAGS"
16353 fi
16354
16355 found="no"
16356
16357 if test $found = "no" ; then
16358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360 fi
16361
16362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16364 fi
16365
16366 CFLAGS="$CFLAGS -Werror=array-bounds"
16367
16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16369 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16370 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16371 if eval test \${$cacheid+y}
16372 then :
16373 printf %s "(cached) " >&6
16374 else $as_nop
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377 int i;
16378 int
16379 main (void)
16380 {
16381
16382 ;
16383 return 0;
16384 }
16385 _ACEOF
16386 if ac_fn_c_try_link "$LINENO"
16387 then :
16388 eval $cacheid=yes
16389 else $as_nop
16390 eval $cacheid=no
16391 fi
16392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16393 conftest$ac_exeext conftest.$ac_ext
16394 fi
16395
16396
16397 CFLAGS="$xorg_testset_save_CFLAGS"
16398
16399 eval supported=\$$cacheid
16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16401 printf "%s\n" "$supported" >&6; }
16402 if test "$supported" = "yes" ; then
16403 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16404 found="yes"
16405 fi
16406 fi
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422 xorg_testset_save_CFLAGS="$CFLAGS"
16423
16424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16427 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16428 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16429 then :
16430 printf %s "(cached) " >&6
16431 else $as_nop
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 int i;
16435 _ACEOF
16436 if ac_fn_c_try_compile "$LINENO"
16437 then :
16438 xorg_cv_cc_flag_unknown_warning_option=yes
16439 else $as_nop
16440 xorg_cv_cc_flag_unknown_warning_option=no
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16443 fi
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16445 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16447 CFLAGS="$xorg_testset_save_CFLAGS"
16448 fi
16449
16450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453 fi
16454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16456 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16457 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16458 then :
16459 printf %s "(cached) " >&6
16460 else $as_nop
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463 int i;
16464 _ACEOF
16465 if ac_fn_c_try_compile "$LINENO"
16466 then :
16467 xorg_cv_cc_flag_unused_command_line_argument=yes
16468 else $as_nop
16469 xorg_cv_cc_flag_unused_command_line_argument=no
16470 fi
16471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16472 fi
16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16474 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16476 CFLAGS="$xorg_testset_save_CFLAGS"
16477 fi
16478
16479 found="no"
16480
16481 if test $found = "no" ; then
16482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484 fi
16485
16486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16488 fi
16489
16490 CFLAGS="$CFLAGS -Werror=write-strings"
16491
16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16493 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16494 cacheid=xorg_cv_cc_flag__Werror_write_strings
16495 if eval test \${$cacheid+y}
16496 then :
16497 printf %s "(cached) " >&6
16498 else $as_nop
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 int i;
16502 int
16503 main (void)
16504 {
16505
16506 ;
16507 return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"
16511 then :
16512 eval $cacheid=yes
16513 else $as_nop
16514 eval $cacheid=no
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16517 conftest$ac_exeext conftest.$ac_ext
16518 fi
16519
16520
16521 CFLAGS="$xorg_testset_save_CFLAGS"
16522
16523 eval supported=\$$cacheid
16524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16525 printf "%s\n" "$supported" >&6; }
16526 if test "$supported" = "yes" ; then
16527 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16528 found="yes"
16529 fi
16530 fi
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546 xorg_testset_save_CFLAGS="$CFLAGS"
16547
16548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16551 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16552 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16553 then :
16554 printf %s "(cached) " >&6
16555 else $as_nop
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 int i;
16559 _ACEOF
16560 if ac_fn_c_try_compile "$LINENO"
16561 then :
16562 xorg_cv_cc_flag_unknown_warning_option=yes
16563 else $as_nop
16564 xorg_cv_cc_flag_unknown_warning_option=no
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16567 fi
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16569 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16571 CFLAGS="$xorg_testset_save_CFLAGS"
16572 fi
16573
16574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16577 fi
16578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16580 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16581 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16582 then :
16583 printf %s "(cached) " >&6
16584 else $as_nop
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587 int i;
16588 _ACEOF
16589 if ac_fn_c_try_compile "$LINENO"
16590 then :
16591 xorg_cv_cc_flag_unused_command_line_argument=yes
16592 else $as_nop
16593 xorg_cv_cc_flag_unused_command_line_argument=no
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16596 fi
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16598 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16600 CFLAGS="$xorg_testset_save_CFLAGS"
16601 fi
16602
16603 found="no"
16604
16605 if test $found = "no" ; then
16606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 fi
16609
16610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16612 fi
16613
16614 CFLAGS="$CFLAGS -Werror=address"
16615
16616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16617 printf %s "checking if $CC supports -Werror=address... " >&6; }
16618 cacheid=xorg_cv_cc_flag__Werror_address
16619 if eval test \${$cacheid+y}
16620 then :
16621 printf %s "(cached) " >&6
16622 else $as_nop
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16625 int i;
16626 int
16627 main (void)
16628 {
16629
16630 ;
16631 return 0;
16632 }
16633 _ACEOF
16634 if ac_fn_c_try_link "$LINENO"
16635 then :
16636 eval $cacheid=yes
16637 else $as_nop
16638 eval $cacheid=no
16639 fi
16640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16641 conftest$ac_exeext conftest.$ac_ext
16642 fi
16643
16644
16645 CFLAGS="$xorg_testset_save_CFLAGS"
16646
16647 eval supported=\$$cacheid
16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16649 printf "%s\n" "$supported" >&6; }
16650 if test "$supported" = "yes" ; then
16651 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16652 found="yes"
16653 fi
16654 fi
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670 xorg_testset_save_CFLAGS="$CFLAGS"
16671
16672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16675 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16676 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16677 then :
16678 printf %s "(cached) " >&6
16679 else $as_nop
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 int i;
16683 _ACEOF
16684 if ac_fn_c_try_compile "$LINENO"
16685 then :
16686 xorg_cv_cc_flag_unknown_warning_option=yes
16687 else $as_nop
16688 xorg_cv_cc_flag_unknown_warning_option=no
16689 fi
16690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16691 fi
16692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16693 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16695 CFLAGS="$xorg_testset_save_CFLAGS"
16696 fi
16697
16698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16701 fi
16702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16704 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16705 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16706 then :
16707 printf %s "(cached) " >&6
16708 else $as_nop
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 int i;
16712 _ACEOF
16713 if ac_fn_c_try_compile "$LINENO"
16714 then :
16715 xorg_cv_cc_flag_unused_command_line_argument=yes
16716 else $as_nop
16717 xorg_cv_cc_flag_unused_command_line_argument=no
16718 fi
16719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16720 fi
16721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16722 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16724 CFLAGS="$xorg_testset_save_CFLAGS"
16725 fi
16726
16727 found="no"
16728
16729 if test $found = "no" ; then
16730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732 fi
16733
16734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16736 fi
16737
16738 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16739
16740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16741 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16742 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16743 if eval test \${$cacheid+y}
16744 then :
16745 printf %s "(cached) " >&6
16746 else $as_nop
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 int i;
16750 int
16751 main (void)
16752 {
16753
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 if ac_fn_c_try_link "$LINENO"
16759 then :
16760 eval $cacheid=yes
16761 else $as_nop
16762 eval $cacheid=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16765 conftest$ac_exeext conftest.$ac_ext
16766 fi
16767
16768
16769 CFLAGS="$xorg_testset_save_CFLAGS"
16770
16771 eval supported=\$$cacheid
16772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16773 printf "%s\n" "$supported" >&6; }
16774 if test "$supported" = "yes" ; then
16775 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16776 found="yes"
16777 fi
16778 fi
16779
16780 if test $found = "no" ; then
16781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16783 fi
16784
16785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16787 fi
16788
16789 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16790
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16792 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16793 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16794 if eval test \${$cacheid+y}
16795 then :
16796 printf %s "(cached) " >&6
16797 else $as_nop
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800 int i;
16801 int
16802 main (void)
16803 {
16804
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 if ac_fn_c_try_link "$LINENO"
16810 then :
16811 eval $cacheid=yes
16812 else $as_nop
16813 eval $cacheid=no
16814 fi
16815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16816 conftest$ac_exeext conftest.$ac_ext
16817 fi
16818
16819
16820 CFLAGS="$xorg_testset_save_CFLAGS"
16821
16822 eval supported=\$$cacheid
16823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16824 printf "%s\n" "$supported" >&6; }
16825 if test "$supported" = "yes" ; then
16826 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16827 found="yes"
16828 fi
16829 fi
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845 xorg_testset_save_CFLAGS="$CFLAGS"
16846
16847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16850 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16851 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16852 then :
16853 printf %s "(cached) " >&6
16854 else $as_nop
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 int i;
16858 _ACEOF
16859 if ac_fn_c_try_compile "$LINENO"
16860 then :
16861 xorg_cv_cc_flag_unknown_warning_option=yes
16862 else $as_nop
16863 xorg_cv_cc_flag_unknown_warning_option=no
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16866 fi
16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16868 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16870 CFLAGS="$xorg_testset_save_CFLAGS"
16871 fi
16872
16873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16876 fi
16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16879 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16880 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16881 then :
16882 printf %s "(cached) " >&6
16883 else $as_nop
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h. */
16886 int i;
16887 _ACEOF
16888 if ac_fn_c_try_compile "$LINENO"
16889 then :
16890 xorg_cv_cc_flag_unused_command_line_argument=yes
16891 else $as_nop
16892 xorg_cv_cc_flag_unused_command_line_argument=no
16893 fi
16894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16895 fi
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16897 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16899 CFLAGS="$xorg_testset_save_CFLAGS"
16900 fi
16901
16902 found="no"
16903
16904 if test $found = "no" ; then
16905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16907 fi
16908
16909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16911 fi
16912
16913 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16914
16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16916 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16917 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16918 if eval test \${$cacheid+y}
16919 then :
16920 printf %s "(cached) " >&6
16921 else $as_nop
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16924 int i;
16925 int
16926 main (void)
16927 {
16928
16929 ;
16930 return 0;
16931 }
16932 _ACEOF
16933 if ac_fn_c_try_link "$LINENO"
16934 then :
16935 eval $cacheid=yes
16936 else $as_nop
16937 eval $cacheid=no
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16940 conftest$ac_exeext conftest.$ac_ext
16941 fi
16942
16943
16944 CFLAGS="$xorg_testset_save_CFLAGS"
16945
16946 eval supported=\$$cacheid
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16948 printf "%s\n" "$supported" >&6; }
16949 if test "$supported" = "yes" ; then
16950 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16951 found="yes"
16952 fi
16953 fi
16954
16955 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16956 else
16957 { printf "%s\n" "$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
16958 printf "%s\n" "$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;}
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972 xorg_testset_save_CFLAGS="$CFLAGS"
16973
16974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16978 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16979 then :
16980 printf %s "(cached) " >&6
16981 else $as_nop
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"
16987 then :
16988 xorg_cv_cc_flag_unknown_warning_option=yes
16989 else $as_nop
16990 xorg_cv_cc_flag_unknown_warning_option=no
16991 fi
16992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16993 fi
16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16995 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16997 CFLAGS="$xorg_testset_save_CFLAGS"
16998 fi
16999
17000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17003 fi
17004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17006 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17007 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17008 then :
17009 printf %s "(cached) " >&6
17010 else $as_nop
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17013 int i;
17014 _ACEOF
17015 if ac_fn_c_try_compile "$LINENO"
17016 then :
17017 xorg_cv_cc_flag_unused_command_line_argument=yes
17018 else $as_nop
17019 xorg_cv_cc_flag_unused_command_line_argument=no
17020 fi
17021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17022 fi
17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17026 CFLAGS="$xorg_testset_save_CFLAGS"
17027 fi
17028
17029 found="no"
17030
17031 if test $found = "no" ; then
17032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17034 fi
17035
17036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17038 fi
17039
17040 CFLAGS="$CFLAGS -Wimplicit"
17041
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17043 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17044 cacheid=xorg_cv_cc_flag__Wimplicit
17045 if eval test \${$cacheid+y}
17046 then :
17047 printf %s "(cached) " >&6
17048 else $as_nop
17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h. */
17051 int i;
17052 int
17053 main (void)
17054 {
17055
17056 ;
17057 return 0;
17058 }
17059 _ACEOF
17060 if ac_fn_c_try_link "$LINENO"
17061 then :
17062 eval $cacheid=yes
17063 else $as_nop
17064 eval $cacheid=no
17065 fi
17066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17067 conftest$ac_exeext conftest.$ac_ext
17068 fi
17069
17070
17071 CFLAGS="$xorg_testset_save_CFLAGS"
17072
17073 eval supported=\$$cacheid
17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17075 printf "%s\n" "$supported" >&6; }
17076 if test "$supported" = "yes" ; then
17077 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17078 found="yes"
17079 fi
17080 fi
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096 xorg_testset_save_CFLAGS="$CFLAGS"
17097
17098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17102 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17103 then :
17104 printf %s "(cached) " >&6
17105 else $as_nop
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17108 int i;
17109 _ACEOF
17110 if ac_fn_c_try_compile "$LINENO"
17111 then :
17112 xorg_cv_cc_flag_unknown_warning_option=yes
17113 else $as_nop
17114 xorg_cv_cc_flag_unknown_warning_option=no
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17117 fi
17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17119 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17121 CFLAGS="$xorg_testset_save_CFLAGS"
17122 fi
17123
17124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17127 fi
17128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17130 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17131 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17132 then :
17133 printf %s "(cached) " >&6
17134 else $as_nop
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17137 int i;
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"
17140 then :
17141 xorg_cv_cc_flag_unused_command_line_argument=yes
17142 else $as_nop
17143 xorg_cv_cc_flag_unused_command_line_argument=no
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17146 fi
17147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17150 CFLAGS="$xorg_testset_save_CFLAGS"
17151 fi
17152
17153 found="no"
17154
17155 if test $found = "no" ; then
17156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158 fi
17159
17160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17162 fi
17163
17164 CFLAGS="$CFLAGS -Wnonnull"
17165
17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17167 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17168 cacheid=xorg_cv_cc_flag__Wnonnull
17169 if eval test \${$cacheid+y}
17170 then :
17171 printf %s "(cached) " >&6
17172 else $as_nop
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 int i;
17176 int
17177 main (void)
17178 {
17179
17180 ;
17181 return 0;
17182 }
17183 _ACEOF
17184 if ac_fn_c_try_link "$LINENO"
17185 then :
17186 eval $cacheid=yes
17187 else $as_nop
17188 eval $cacheid=no
17189 fi
17190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17191 conftest$ac_exeext conftest.$ac_ext
17192 fi
17193
17194
17195 CFLAGS="$xorg_testset_save_CFLAGS"
17196
17197 eval supported=\$$cacheid
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17199 printf "%s\n" "$supported" >&6; }
17200 if test "$supported" = "yes" ; then
17201 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17202 found="yes"
17203 fi
17204 fi
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220 xorg_testset_save_CFLAGS="$CFLAGS"
17221
17222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17226 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17227 then :
17228 printf %s "(cached) " >&6
17229 else $as_nop
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17232 int i;
17233 _ACEOF
17234 if ac_fn_c_try_compile "$LINENO"
17235 then :
17236 xorg_cv_cc_flag_unknown_warning_option=yes
17237 else $as_nop
17238 xorg_cv_cc_flag_unknown_warning_option=no
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17241 fi
17242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17245 CFLAGS="$xorg_testset_save_CFLAGS"
17246 fi
17247
17248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251 fi
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17256 then :
17257 printf %s "(cached) " >&6
17258 else $as_nop
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261 int i;
17262 _ACEOF
17263 if ac_fn_c_try_compile "$LINENO"
17264 then :
17265 xorg_cv_cc_flag_unused_command_line_argument=yes
17266 else $as_nop
17267 xorg_cv_cc_flag_unused_command_line_argument=no
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17270 fi
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17274 CFLAGS="$xorg_testset_save_CFLAGS"
17275 fi
17276
17277 found="no"
17278
17279 if test $found = "no" ; then
17280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17282 fi
17283
17284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17286 fi
17287
17288 CFLAGS="$CFLAGS -Winit-self"
17289
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17291 printf %s "checking if $CC supports -Winit-self... " >&6; }
17292 cacheid=xorg_cv_cc_flag__Winit_self
17293 if eval test \${$cacheid+y}
17294 then :
17295 printf %s "(cached) " >&6
17296 else $as_nop
17297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h. */
17299 int i;
17300 int
17301 main (void)
17302 {
17303
17304 ;
17305 return 0;
17306 }
17307 _ACEOF
17308 if ac_fn_c_try_link "$LINENO"
17309 then :
17310 eval $cacheid=yes
17311 else $as_nop
17312 eval $cacheid=no
17313 fi
17314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17315 conftest$ac_exeext conftest.$ac_ext
17316 fi
17317
17318
17319 CFLAGS="$xorg_testset_save_CFLAGS"
17320
17321 eval supported=\$$cacheid
17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17323 printf "%s\n" "$supported" >&6; }
17324 if test "$supported" = "yes" ; then
17325 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17326 found="yes"
17327 fi
17328 fi
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344 xorg_testset_save_CFLAGS="$CFLAGS"
17345
17346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17350 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17351 then :
17352 printf %s "(cached) " >&6
17353 else $as_nop
17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 int i;
17357 _ACEOF
17358 if ac_fn_c_try_compile "$LINENO"
17359 then :
17360 xorg_cv_cc_flag_unknown_warning_option=yes
17361 else $as_nop
17362 xorg_cv_cc_flag_unknown_warning_option=no
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17365 fi
17366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17369 CFLAGS="$xorg_testset_save_CFLAGS"
17370 fi
17371
17372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17375 fi
17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17380 then :
17381 printf %s "(cached) " >&6
17382 else $as_nop
17383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384 /* end confdefs.h. */
17385 int i;
17386 _ACEOF
17387 if ac_fn_c_try_compile "$LINENO"
17388 then :
17389 xorg_cv_cc_flag_unused_command_line_argument=yes
17390 else $as_nop
17391 xorg_cv_cc_flag_unused_command_line_argument=no
17392 fi
17393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17394 fi
17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17396 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17398 CFLAGS="$xorg_testset_save_CFLAGS"
17399 fi
17400
17401 found="no"
17402
17403 if test $found = "no" ; then
17404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17406 fi
17407
17408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17410 fi
17411
17412 CFLAGS="$CFLAGS -Wmain"
17413
17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17415 printf %s "checking if $CC supports -Wmain... " >&6; }
17416 cacheid=xorg_cv_cc_flag__Wmain
17417 if eval test \${$cacheid+y}
17418 then :
17419 printf %s "(cached) " >&6
17420 else $as_nop
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423 int i;
17424 int
17425 main (void)
17426 {
17427
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 if ac_fn_c_try_link "$LINENO"
17433 then :
17434 eval $cacheid=yes
17435 else $as_nop
17436 eval $cacheid=no
17437 fi
17438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17439 conftest$ac_exeext conftest.$ac_ext
17440 fi
17441
17442
17443 CFLAGS="$xorg_testset_save_CFLAGS"
17444
17445 eval supported=\$$cacheid
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17447 printf "%s\n" "$supported" >&6; }
17448 if test "$supported" = "yes" ; then
17449 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17450 found="yes"
17451 fi
17452 fi
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468 xorg_testset_save_CFLAGS="$CFLAGS"
17469
17470 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17473 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17474 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17475 then :
17476 printf %s "(cached) " >&6
17477 else $as_nop
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 int i;
17481 _ACEOF
17482 if ac_fn_c_try_compile "$LINENO"
17483 then :
17484 xorg_cv_cc_flag_unknown_warning_option=yes
17485 else $as_nop
17486 xorg_cv_cc_flag_unknown_warning_option=no
17487 fi
17488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17489 fi
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17491 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17493 CFLAGS="$xorg_testset_save_CFLAGS"
17494 fi
17495
17496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499 fi
17500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17504 then :
17505 printf %s "(cached) " >&6
17506 else $as_nop
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 int i;
17510 _ACEOF
17511 if ac_fn_c_try_compile "$LINENO"
17512 then :
17513 xorg_cv_cc_flag_unused_command_line_argument=yes
17514 else $as_nop
17515 xorg_cv_cc_flag_unused_command_line_argument=no
17516 fi
17517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17518 fi
17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17520 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17522 CFLAGS="$xorg_testset_save_CFLAGS"
17523 fi
17524
17525 found="no"
17526
17527 if test $found = "no" ; then
17528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17530 fi
17531
17532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17534 fi
17535
17536 CFLAGS="$CFLAGS -Wmissing-braces"
17537
17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17539 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17540 cacheid=xorg_cv_cc_flag__Wmissing_braces
17541 if eval test \${$cacheid+y}
17542 then :
17543 printf %s "(cached) " >&6
17544 else $as_nop
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 int i;
17548 int
17549 main (void)
17550 {
17551
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 if ac_fn_c_try_link "$LINENO"
17557 then :
17558 eval $cacheid=yes
17559 else $as_nop
17560 eval $cacheid=no
17561 fi
17562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17563 conftest$ac_exeext conftest.$ac_ext
17564 fi
17565
17566
17567 CFLAGS="$xorg_testset_save_CFLAGS"
17568
17569 eval supported=\$$cacheid
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17571 printf "%s\n" "$supported" >&6; }
17572 if test "$supported" = "yes" ; then
17573 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17574 found="yes"
17575 fi
17576 fi
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592 xorg_testset_save_CFLAGS="$CFLAGS"
17593
17594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17597 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17598 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17599 then :
17600 printf %s "(cached) " >&6
17601 else $as_nop
17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h. */
17604 int i;
17605 _ACEOF
17606 if ac_fn_c_try_compile "$LINENO"
17607 then :
17608 xorg_cv_cc_flag_unknown_warning_option=yes
17609 else $as_nop
17610 xorg_cv_cc_flag_unknown_warning_option=no
17611 fi
17612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17613 fi
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17615 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17617 CFLAGS="$xorg_testset_save_CFLAGS"
17618 fi
17619
17620 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17623 fi
17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17626 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17627 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17628 then :
17629 printf %s "(cached) " >&6
17630 else $as_nop
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633 int i;
17634 _ACEOF
17635 if ac_fn_c_try_compile "$LINENO"
17636 then :
17637 xorg_cv_cc_flag_unused_command_line_argument=yes
17638 else $as_nop
17639 xorg_cv_cc_flag_unused_command_line_argument=no
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17642 fi
17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17644 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17646 CFLAGS="$xorg_testset_save_CFLAGS"
17647 fi
17648
17649 found="no"
17650
17651 if test $found = "no" ; then
17652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17654 fi
17655
17656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17658 fi
17659
17660 CFLAGS="$CFLAGS -Wsequence-point"
17661
17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17663 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17664 cacheid=xorg_cv_cc_flag__Wsequence_point
17665 if eval test \${$cacheid+y}
17666 then :
17667 printf %s "(cached) " >&6
17668 else $as_nop
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671 int i;
17672 int
17673 main (void)
17674 {
17675
17676 ;
17677 return 0;
17678 }
17679 _ACEOF
17680 if ac_fn_c_try_link "$LINENO"
17681 then :
17682 eval $cacheid=yes
17683 else $as_nop
17684 eval $cacheid=no
17685 fi
17686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17687 conftest$ac_exeext conftest.$ac_ext
17688 fi
17689
17690
17691 CFLAGS="$xorg_testset_save_CFLAGS"
17692
17693 eval supported=\$$cacheid
17694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17695 printf "%s\n" "$supported" >&6; }
17696 if test "$supported" = "yes" ; then
17697 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17698 found="yes"
17699 fi
17700 fi
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716 xorg_testset_save_CFLAGS="$CFLAGS"
17717
17718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17722 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17723 then :
17724 printf %s "(cached) " >&6
17725 else $as_nop
17726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727 /* end confdefs.h. */
17728 int i;
17729 _ACEOF
17730 if ac_fn_c_try_compile "$LINENO"
17731 then :
17732 xorg_cv_cc_flag_unknown_warning_option=yes
17733 else $as_nop
17734 xorg_cv_cc_flag_unknown_warning_option=no
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17737 fi
17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17741 CFLAGS="$xorg_testset_save_CFLAGS"
17742 fi
17743
17744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17747 fi
17748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17752 then :
17753 printf %s "(cached) " >&6
17754 else $as_nop
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h. */
17757 int i;
17758 _ACEOF
17759 if ac_fn_c_try_compile "$LINENO"
17760 then :
17761 xorg_cv_cc_flag_unused_command_line_argument=yes
17762 else $as_nop
17763 xorg_cv_cc_flag_unused_command_line_argument=no
17764 fi
17765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17766 fi
17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17768 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17770 CFLAGS="$xorg_testset_save_CFLAGS"
17771 fi
17772
17773 found="no"
17774
17775 if test $found = "no" ; then
17776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17778 fi
17779
17780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17782 fi
17783
17784 CFLAGS="$CFLAGS -Wreturn-type"
17785
17786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17787 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17788 cacheid=xorg_cv_cc_flag__Wreturn_type
17789 if eval test \${$cacheid+y}
17790 then :
17791 printf %s "(cached) " >&6
17792 else $as_nop
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795 int i;
17796 int
17797 main (void)
17798 {
17799
17800 ;
17801 return 0;
17802 }
17803 _ACEOF
17804 if ac_fn_c_try_link "$LINENO"
17805 then :
17806 eval $cacheid=yes
17807 else $as_nop
17808 eval $cacheid=no
17809 fi
17810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17811 conftest$ac_exeext conftest.$ac_ext
17812 fi
17813
17814
17815 CFLAGS="$xorg_testset_save_CFLAGS"
17816
17817 eval supported=\$$cacheid
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17819 printf "%s\n" "$supported" >&6; }
17820 if test "$supported" = "yes" ; then
17821 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17822 found="yes"
17823 fi
17824 fi
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840 xorg_testset_save_CFLAGS="$CFLAGS"
17841
17842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17845 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17846 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17847 then :
17848 printf %s "(cached) " >&6
17849 else $as_nop
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 int i;
17853 _ACEOF
17854 if ac_fn_c_try_compile "$LINENO"
17855 then :
17856 xorg_cv_cc_flag_unknown_warning_option=yes
17857 else $as_nop
17858 xorg_cv_cc_flag_unknown_warning_option=no
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17861 fi
17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17863 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17865 CFLAGS="$xorg_testset_save_CFLAGS"
17866 fi
17867
17868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17871 fi
17872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17874 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17875 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17876 then :
17877 printf %s "(cached) " >&6
17878 else $as_nop
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881 int i;
17882 _ACEOF
17883 if ac_fn_c_try_compile "$LINENO"
17884 then :
17885 xorg_cv_cc_flag_unused_command_line_argument=yes
17886 else $as_nop
17887 xorg_cv_cc_flag_unused_command_line_argument=no
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17890 fi
17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17892 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17894 CFLAGS="$xorg_testset_save_CFLAGS"
17895 fi
17896
17897 found="no"
17898
17899 if test $found = "no" ; then
17900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17902 fi
17903
17904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17906 fi
17907
17908 CFLAGS="$CFLAGS -Wtrigraphs"
17909
17910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17911 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17912 cacheid=xorg_cv_cc_flag__Wtrigraphs
17913 if eval test \${$cacheid+y}
17914 then :
17915 printf %s "(cached) " >&6
17916 else $as_nop
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919 int i;
17920 int
17921 main (void)
17922 {
17923
17924 ;
17925 return 0;
17926 }
17927 _ACEOF
17928 if ac_fn_c_try_link "$LINENO"
17929 then :
17930 eval $cacheid=yes
17931 else $as_nop
17932 eval $cacheid=no
17933 fi
17934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17935 conftest$ac_exeext conftest.$ac_ext
17936 fi
17937
17938
17939 CFLAGS="$xorg_testset_save_CFLAGS"
17940
17941 eval supported=\$$cacheid
17942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17943 printf "%s\n" "$supported" >&6; }
17944 if test "$supported" = "yes" ; then
17945 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17946 found="yes"
17947 fi
17948 fi
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964 xorg_testset_save_CFLAGS="$CFLAGS"
17965
17966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17969 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17970 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17971 then :
17972 printf %s "(cached) " >&6
17973 else $as_nop
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 int i;
17977 _ACEOF
17978 if ac_fn_c_try_compile "$LINENO"
17979 then :
17980 xorg_cv_cc_flag_unknown_warning_option=yes
17981 else $as_nop
17982 xorg_cv_cc_flag_unknown_warning_option=no
17983 fi
17984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17985 fi
17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17987 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17989 CFLAGS="$xorg_testset_save_CFLAGS"
17990 fi
17991
17992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17995 fi
17996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17998 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17999 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18000 then :
18001 printf %s "(cached) " >&6
18002 else $as_nop
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18005 int i;
18006 _ACEOF
18007 if ac_fn_c_try_compile "$LINENO"
18008 then :
18009 xorg_cv_cc_flag_unused_command_line_argument=yes
18010 else $as_nop
18011 xorg_cv_cc_flag_unused_command_line_argument=no
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18014 fi
18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18018 CFLAGS="$xorg_testset_save_CFLAGS"
18019 fi
18020
18021 found="no"
18022
18023 if test $found = "no" ; then
18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026 fi
18027
18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18030 fi
18031
18032 CFLAGS="$CFLAGS -Warray-bounds"
18033
18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18035 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18036 cacheid=xorg_cv_cc_flag__Warray_bounds
18037 if eval test \${$cacheid+y}
18038 then :
18039 printf %s "(cached) " >&6
18040 else $as_nop
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043 int i;
18044 int
18045 main (void)
18046 {
18047
18048 ;
18049 return 0;
18050 }
18051 _ACEOF
18052 if ac_fn_c_try_link "$LINENO"
18053 then :
18054 eval $cacheid=yes
18055 else $as_nop
18056 eval $cacheid=no
18057 fi
18058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18059 conftest$ac_exeext conftest.$ac_ext
18060 fi
18061
18062
18063 CFLAGS="$xorg_testset_save_CFLAGS"
18064
18065 eval supported=\$$cacheid
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18067 printf "%s\n" "$supported" >&6; }
18068 if test "$supported" = "yes" ; then
18069 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18070 found="yes"
18071 fi
18072 fi
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088 xorg_testset_save_CFLAGS="$CFLAGS"
18089
18090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18093 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18094 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18095 then :
18096 printf %s "(cached) " >&6
18097 else $as_nop
18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18100 int i;
18101 _ACEOF
18102 if ac_fn_c_try_compile "$LINENO"
18103 then :
18104 xorg_cv_cc_flag_unknown_warning_option=yes
18105 else $as_nop
18106 xorg_cv_cc_flag_unknown_warning_option=no
18107 fi
18108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18109 fi
18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18111 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18113 CFLAGS="$xorg_testset_save_CFLAGS"
18114 fi
18115
18116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18119 fi
18120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18122 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18123 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18124 then :
18125 printf %s "(cached) " >&6
18126 else $as_nop
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18129 int i;
18130 _ACEOF
18131 if ac_fn_c_try_compile "$LINENO"
18132 then :
18133 xorg_cv_cc_flag_unused_command_line_argument=yes
18134 else $as_nop
18135 xorg_cv_cc_flag_unused_command_line_argument=no
18136 fi
18137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18138 fi
18139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18142 CFLAGS="$xorg_testset_save_CFLAGS"
18143 fi
18144
18145 found="no"
18146
18147 if test $found = "no" ; then
18148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18150 fi
18151
18152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18154 fi
18155
18156 CFLAGS="$CFLAGS -Wwrite-strings"
18157
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18159 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18160 cacheid=xorg_cv_cc_flag__Wwrite_strings
18161 if eval test \${$cacheid+y}
18162 then :
18163 printf %s "(cached) " >&6
18164 else $as_nop
18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h. */
18167 int i;
18168 int
18169 main (void)
18170 {
18171
18172 ;
18173 return 0;
18174 }
18175 _ACEOF
18176 if ac_fn_c_try_link "$LINENO"
18177 then :
18178 eval $cacheid=yes
18179 else $as_nop
18180 eval $cacheid=no
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18183 conftest$ac_exeext conftest.$ac_ext
18184 fi
18185
18186
18187 CFLAGS="$xorg_testset_save_CFLAGS"
18188
18189 eval supported=\$$cacheid
18190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18191 printf "%s\n" "$supported" >&6; }
18192 if test "$supported" = "yes" ; then
18193 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18194 found="yes"
18195 fi
18196 fi
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212 xorg_testset_save_CFLAGS="$CFLAGS"
18213
18214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18218 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18219 then :
18220 printf %s "(cached) " >&6
18221 else $as_nop
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18224 int i;
18225 _ACEOF
18226 if ac_fn_c_try_compile "$LINENO"
18227 then :
18228 xorg_cv_cc_flag_unknown_warning_option=yes
18229 else $as_nop
18230 xorg_cv_cc_flag_unknown_warning_option=no
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18233 fi
18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18235 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18237 CFLAGS="$xorg_testset_save_CFLAGS"
18238 fi
18239
18240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18243 fi
18244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18246 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18247 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18248 then :
18249 printf %s "(cached) " >&6
18250 else $as_nop
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18253 int i;
18254 _ACEOF
18255 if ac_fn_c_try_compile "$LINENO"
18256 then :
18257 xorg_cv_cc_flag_unused_command_line_argument=yes
18258 else $as_nop
18259 xorg_cv_cc_flag_unused_command_line_argument=no
18260 fi
18261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18262 fi
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18264 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18266 CFLAGS="$xorg_testset_save_CFLAGS"
18267 fi
18268
18269 found="no"
18270
18271 if test $found = "no" ; then
18272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274 fi
18275
18276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18278 fi
18279
18280 CFLAGS="$CFLAGS -Waddress"
18281
18282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18283 printf %s "checking if $CC supports -Waddress... " >&6; }
18284 cacheid=xorg_cv_cc_flag__Waddress
18285 if eval test \${$cacheid+y}
18286 then :
18287 printf %s "(cached) " >&6
18288 else $as_nop
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18291 int i;
18292 int
18293 main (void)
18294 {
18295
18296 ;
18297 return 0;
18298 }
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"
18301 then :
18302 eval $cacheid=yes
18303 else $as_nop
18304 eval $cacheid=no
18305 fi
18306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18307 conftest$ac_exeext conftest.$ac_ext
18308 fi
18309
18310
18311 CFLAGS="$xorg_testset_save_CFLAGS"
18312
18313 eval supported=\$$cacheid
18314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18315 printf "%s\n" "$supported" >&6; }
18316 if test "$supported" = "yes" ; then
18317 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18318 found="yes"
18319 fi
18320 fi
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336 xorg_testset_save_CFLAGS="$CFLAGS"
18337
18338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18342 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18343 then :
18344 printf %s "(cached) " >&6
18345 else $as_nop
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 int i;
18349 _ACEOF
18350 if ac_fn_c_try_compile "$LINENO"
18351 then :
18352 xorg_cv_cc_flag_unknown_warning_option=yes
18353 else $as_nop
18354 xorg_cv_cc_flag_unknown_warning_option=no
18355 fi
18356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18357 fi
18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18359 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18361 CFLAGS="$xorg_testset_save_CFLAGS"
18362 fi
18363
18364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18367 fi
18368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18370 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18371 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18372 then :
18373 printf %s "(cached) " >&6
18374 else $as_nop
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18377 int i;
18378 _ACEOF
18379 if ac_fn_c_try_compile "$LINENO"
18380 then :
18381 xorg_cv_cc_flag_unused_command_line_argument=yes
18382 else $as_nop
18383 xorg_cv_cc_flag_unused_command_line_argument=no
18384 fi
18385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18386 fi
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18388 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18390 CFLAGS="$xorg_testset_save_CFLAGS"
18391 fi
18392
18393 found="no"
18394
18395 if test $found = "no" ; then
18396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18398 fi
18399
18400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18402 fi
18403
18404 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18405
18406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18407 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18408 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18409 if eval test \${$cacheid+y}
18410 then :
18411 printf %s "(cached) " >&6
18412 else $as_nop
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415 int i;
18416 int
18417 main (void)
18418 {
18419
18420 ;
18421 return 0;
18422 }
18423 _ACEOF
18424 if ac_fn_c_try_link "$LINENO"
18425 then :
18426 eval $cacheid=yes
18427 else $as_nop
18428 eval $cacheid=no
18429 fi
18430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18431 conftest$ac_exeext conftest.$ac_ext
18432 fi
18433
18434
18435 CFLAGS="$xorg_testset_save_CFLAGS"
18436
18437 eval supported=\$$cacheid
18438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18439 printf "%s\n" "$supported" >&6; }
18440 if test "$supported" = "yes" ; then
18441 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18442 found="yes"
18443 fi
18444 fi
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460 xorg_testset_save_CFLAGS="$CFLAGS"
18461
18462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18465 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18466 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18467 then :
18468 printf %s "(cached) " >&6
18469 else $as_nop
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18472 int i;
18473 _ACEOF
18474 if ac_fn_c_try_compile "$LINENO"
18475 then :
18476 xorg_cv_cc_flag_unknown_warning_option=yes
18477 else $as_nop
18478 xorg_cv_cc_flag_unknown_warning_option=no
18479 fi
18480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18481 fi
18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18483 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18485 CFLAGS="$xorg_testset_save_CFLAGS"
18486 fi
18487
18488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18491 fi
18492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18494 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18495 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18496 then :
18497 printf %s "(cached) " >&6
18498 else $as_nop
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18501 int i;
18502 _ACEOF
18503 if ac_fn_c_try_compile "$LINENO"
18504 then :
18505 xorg_cv_cc_flag_unused_command_line_argument=yes
18506 else $as_nop
18507 xorg_cv_cc_flag_unused_command_line_argument=no
18508 fi
18509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18510 fi
18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18512 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18514 CFLAGS="$xorg_testset_save_CFLAGS"
18515 fi
18516
18517 found="no"
18518
18519 if test $found = "no" ; then
18520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18522 fi
18523
18524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18526 fi
18527
18528 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18529
18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18531 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18532 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18533 if eval test \${$cacheid+y}
18534 then :
18535 printf %s "(cached) " >&6
18536 else $as_nop
18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18539 int i;
18540 int
18541 main (void)
18542 {
18543
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_link "$LINENO"
18549 then :
18550 eval $cacheid=yes
18551 else $as_nop
18552 eval $cacheid=no
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18555 conftest$ac_exeext conftest.$ac_ext
18556 fi
18557
18558
18559 CFLAGS="$xorg_testset_save_CFLAGS"
18560
18561 eval supported=\$$cacheid
18562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18563 printf "%s\n" "$supported" >&6; }
18564 if test "$supported" = "yes" ; then
18565 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18566 found="yes"
18567 fi
18568 fi
18569
18570
18571 fi
18572
18573
18574
18575
18576
18577
18578
18579 CWARNFLAGS="$BASE_CFLAGS"
18580 if test "x$GCC" = xyes ; then
18581 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18582 fi
18583
18584
18585
18586
18587
18588
18589
18590
18591 # Check whether --enable-strict-compilation was given.
18592 if test ${enable_strict_compilation+y}
18593 then :
18594 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18595 else $as_nop
18596 STRICT_COMPILE=no
18597 fi
18598
18599
18600
18601
18602
18603
18604 STRICT_CFLAGS=""
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618 xorg_testset_save_CFLAGS="$CFLAGS"
18619
18620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18625 then :
18626 printf %s "(cached) " >&6
18627 else $as_nop
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h. */
18630 int i;
18631 _ACEOF
18632 if ac_fn_c_try_compile "$LINENO"
18633 then :
18634 xorg_cv_cc_flag_unknown_warning_option=yes
18635 else $as_nop
18636 xorg_cv_cc_flag_unknown_warning_option=no
18637 fi
18638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18639 fi
18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18641 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18643 CFLAGS="$xorg_testset_save_CFLAGS"
18644 fi
18645
18646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18649 fi
18650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18652 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18653 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18654 then :
18655 printf %s "(cached) " >&6
18656 else $as_nop
18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18659 int i;
18660 _ACEOF
18661 if ac_fn_c_try_compile "$LINENO"
18662 then :
18663 xorg_cv_cc_flag_unused_command_line_argument=yes
18664 else $as_nop
18665 xorg_cv_cc_flag_unused_command_line_argument=no
18666 fi
18667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18668 fi
18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18670 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18672 CFLAGS="$xorg_testset_save_CFLAGS"
18673 fi
18674
18675 found="no"
18676
18677 if test $found = "no" ; then
18678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18680 fi
18681
18682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18684 fi
18685
18686 CFLAGS="$CFLAGS -pedantic"
18687
18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18689 printf %s "checking if $CC supports -pedantic... " >&6; }
18690 cacheid=xorg_cv_cc_flag__pedantic
18691 if eval test \${$cacheid+y}
18692 then :
18693 printf %s "(cached) " >&6
18694 else $as_nop
18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h. */
18697 int i;
18698 int
18699 main (void)
18700 {
18701
18702 ;
18703 return 0;
18704 }
18705 _ACEOF
18706 if ac_fn_c_try_link "$LINENO"
18707 then :
18708 eval $cacheid=yes
18709 else $as_nop
18710 eval $cacheid=no
18711 fi
18712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18713 conftest$ac_exeext conftest.$ac_ext
18714 fi
18715
18716
18717 CFLAGS="$xorg_testset_save_CFLAGS"
18718
18719 eval supported=\$$cacheid
18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18721 printf "%s\n" "$supported" >&6; }
18722 if test "$supported" = "yes" ; then
18723 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18724 found="yes"
18725 fi
18726 fi
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742 xorg_testset_save_CFLAGS="$CFLAGS"
18743
18744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18749 then :
18750 printf %s "(cached) " >&6
18751 else $as_nop
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18754 int i;
18755 _ACEOF
18756 if ac_fn_c_try_compile "$LINENO"
18757 then :
18758 xorg_cv_cc_flag_unknown_warning_option=yes
18759 else $as_nop
18760 xorg_cv_cc_flag_unknown_warning_option=no
18761 fi
18762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18763 fi
18764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18767 CFLAGS="$xorg_testset_save_CFLAGS"
18768 fi
18769
18770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18773 fi
18774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18778 then :
18779 printf %s "(cached) " >&6
18780 else $as_nop
18781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18783 int i;
18784 _ACEOF
18785 if ac_fn_c_try_compile "$LINENO"
18786 then :
18787 xorg_cv_cc_flag_unused_command_line_argument=yes
18788 else $as_nop
18789 xorg_cv_cc_flag_unused_command_line_argument=no
18790 fi
18791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18792 fi
18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18796 CFLAGS="$xorg_testset_save_CFLAGS"
18797 fi
18798
18799 found="no"
18800
18801 if test $found = "no" ; then
18802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18804 fi
18805
18806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18808 fi
18809
18810 CFLAGS="$CFLAGS -Werror"
18811
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18813 printf %s "checking if $CC supports -Werror... " >&6; }
18814 cacheid=xorg_cv_cc_flag__Werror
18815 if eval test \${$cacheid+y}
18816 then :
18817 printf %s "(cached) " >&6
18818 else $as_nop
18819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h. */
18821 int i;
18822 int
18823 main (void)
18824 {
18825
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 if ac_fn_c_try_link "$LINENO"
18831 then :
18832 eval $cacheid=yes
18833 else $as_nop
18834 eval $cacheid=no
18835 fi
18836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18837 conftest$ac_exeext conftest.$ac_ext
18838 fi
18839
18840
18841 CFLAGS="$xorg_testset_save_CFLAGS"
18842
18843 eval supported=\$$cacheid
18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18845 printf "%s\n" "$supported" >&6; }
18846 if test "$supported" = "yes" ; then
18847 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18848 found="yes"
18849 fi
18850 fi
18851
18852 if test $found = "no" ; then
18853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18855 fi
18856
18857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18859 fi
18860
18861 CFLAGS="$CFLAGS -errwarn"
18862
18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18864 printf %s "checking if $CC supports -errwarn... " >&6; }
18865 cacheid=xorg_cv_cc_flag__errwarn
18866 if eval test \${$cacheid+y}
18867 then :
18868 printf %s "(cached) " >&6
18869 else $as_nop
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 int i;
18873 int
18874 main (void)
18875 {
18876
18877 ;
18878 return 0;
18879 }
18880 _ACEOF
18881 if ac_fn_c_try_link "$LINENO"
18882 then :
18883 eval $cacheid=yes
18884 else $as_nop
18885 eval $cacheid=no
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18888 conftest$ac_exeext conftest.$ac_ext
18889 fi
18890
18891
18892 CFLAGS="$xorg_testset_save_CFLAGS"
18893
18894 eval supported=\$$cacheid
18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18896 printf "%s\n" "$supported" >&6; }
18897 if test "$supported" = "yes" ; then
18898 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18899 found="yes"
18900 fi
18901 fi
18902
18903
18904
18905 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18906 # activate it with -Werror, so we add it here explicitly.
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920 xorg_testset_save_CFLAGS="$CFLAGS"
18921
18922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18927 then :
18928 printf %s "(cached) " >&6
18929 else $as_nop
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18932 int i;
18933 _ACEOF
18934 if ac_fn_c_try_compile "$LINENO"
18935 then :
18936 xorg_cv_cc_flag_unknown_warning_option=yes
18937 else $as_nop
18938 xorg_cv_cc_flag_unknown_warning_option=no
18939 fi
18940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18941 fi
18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18945 CFLAGS="$xorg_testset_save_CFLAGS"
18946 fi
18947
18948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18951 fi
18952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18956 then :
18957 printf %s "(cached) " >&6
18958 else $as_nop
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 int i;
18962 _ACEOF
18963 if ac_fn_c_try_compile "$LINENO"
18964 then :
18965 xorg_cv_cc_flag_unused_command_line_argument=yes
18966 else $as_nop
18967 xorg_cv_cc_flag_unused_command_line_argument=no
18968 fi
18969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18970 fi
18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18974 CFLAGS="$xorg_testset_save_CFLAGS"
18975 fi
18976
18977 found="no"
18978
18979 if test $found = "no" ; then
18980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18982 fi
18983
18984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18986 fi
18987
18988 CFLAGS="$CFLAGS -Werror=attributes"
18989
18990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18991 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18992 cacheid=xorg_cv_cc_flag__Werror_attributes
18993 if eval test \${$cacheid+y}
18994 then :
18995 printf %s "(cached) " >&6
18996 else $as_nop
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
18999 int i;
19000 int
19001 main (void)
19002 {
19003
19004 ;
19005 return 0;
19006 }
19007 _ACEOF
19008 if ac_fn_c_try_link "$LINENO"
19009 then :
19010 eval $cacheid=yes
19011 else $as_nop
19012 eval $cacheid=no
19013 fi
19014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19015 conftest$ac_exeext conftest.$ac_ext
19016 fi
19017
19018
19019 CFLAGS="$xorg_testset_save_CFLAGS"
19020
19021 eval supported=\$$cacheid
19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19023 printf "%s\n" "$supported" >&6; }
19024 if test "$supported" = "yes" ; then
19025 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19026 found="yes"
19027 fi
19028 fi
19029
19030
19031
19032 if test "x$STRICT_COMPILE" = "xyes"; then
19033 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19034 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19035 fi
19036
19037
19038
19039
19040
19041
19042 cat >>confdefs.h <<_ACEOF
19043 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19044 _ACEOF
19045
19046 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19047 if test "x$PVM" = "x"; then
19048 PVM="0"
19049 fi
19050
19051 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19052
19053 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19054 if test "x$PVP" = "x"; then
19055 PVP="0"
19056 fi
19057
19058 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19059
19060
19061
19062 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19063 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19064 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19065 touch \$(top_srcdir)/ChangeLog; \
19066 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19067
19068
19069
19070
19071 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19072 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19073 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19074 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19075 touch \$(top_srcdir)/INSTALL; \
19076 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19077
19078
19079
19080
19081
19082
19083 case $host_os in
19084 solaris*)
19085 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19086 # check for a man page file found in later versions that use
19087 # traditional section numbers instead
19088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19089 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19090 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19091 then :
19092 printf %s "(cached) " >&6
19093 else $as_nop
19094 test "$cross_compiling" = yes &&
19095 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19096 if test -r "/usr/share/man/man7/attributes.7"; then
19097 ac_cv_file__usr_share_man_man7_attributes_7=yes
19098 else
19099 ac_cv_file__usr_share_man_man7_attributes_7=no
19100 fi
19101 fi
19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19103 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19104 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19105 then :
19106 SYSV_MAN_SECTIONS=false
19107 else $as_nop
19108 SYSV_MAN_SECTIONS=true
19109 fi
19110
19111 ;;
19112 *) SYSV_MAN_SECTIONS=false ;;
19113 esac
19114
19115 if test x$APP_MAN_SUFFIX = x ; then
19116 APP_MAN_SUFFIX=1
19117 fi
19118 if test x$APP_MAN_DIR = x ; then
19119 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19120 fi
19121
19122 if test x$LIB_MAN_SUFFIX = x ; then
19123 LIB_MAN_SUFFIX=3
19124 fi
19125 if test x$LIB_MAN_DIR = x ; then
19126 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19127 fi
19128
19129 if test x$FILE_MAN_SUFFIX = x ; then
19130 case $SYSV_MAN_SECTIONS in
19131 true) FILE_MAN_SUFFIX=4 ;;
19132 *) FILE_MAN_SUFFIX=5 ;;
19133 esac
19134 fi
19135 if test x$FILE_MAN_DIR = x ; then
19136 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19137 fi
19138
19139 if test x$MISC_MAN_SUFFIX = x ; then
19140 case $SYSV_MAN_SECTIONS in
19141 true) MISC_MAN_SUFFIX=5 ;;
19142 *) MISC_MAN_SUFFIX=7 ;;
19143 esac
19144 fi
19145 if test x$MISC_MAN_DIR = x ; then
19146 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19147 fi
19148
19149 if test x$DRIVER_MAN_SUFFIX = x ; then
19150 case $SYSV_MAN_SECTIONS in
19151 true) DRIVER_MAN_SUFFIX=7 ;;
19152 *) DRIVER_MAN_SUFFIX=4 ;;
19153 esac
19154 fi
19155 if test x$DRIVER_MAN_DIR = x ; then
19156 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19157 fi
19158
19159 if test x$ADMIN_MAN_SUFFIX = x ; then
19160 case $SYSV_MAN_SECTIONS in
19161 true) ADMIN_MAN_SUFFIX=1m ;;
19162 *) ADMIN_MAN_SUFFIX=8 ;;
19163 esac
19164 fi
19165 if test x$ADMIN_MAN_DIR = x ; then
19166 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19167 fi
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183 XORG_MAN_PAGE="X Version 11"
19184
19185 MAN_SUBSTS="\
19186 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19187 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19188 -e 's|__xservername__|Xorg|g' \
19189 -e 's|__xconfigfile__|xorg.conf|g' \
19190 -e 's|__projectroot__|\$(prefix)|g' \
19191 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19192 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19193 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19194 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19195 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19196 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19197 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19198
19199
19200
19201 # Check whether --enable-silent-rules was given.
19202 if test ${enable_silent_rules+y}
19203 then :
19204 enableval=$enable_silent_rules;
19205 fi
19206
19207 case $enable_silent_rules in # (((
19208 yes) AM_DEFAULT_VERBOSITY=0;;
19209 no) AM_DEFAULT_VERBOSITY=1;;
19210 *) AM_DEFAULT_VERBOSITY=0;;
19211 esac
19212 am_make=${MAKE-make}
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19214 printf %s "checking whether $am_make supports nested variables... " >&6; }
19215 if test ${am_cv_make_support_nested_variables+y}
19216 then :
19217 printf %s "(cached) " >&6
19218 else $as_nop
19219 if printf "%s\n" 'TRUE=$(BAR$(V))
19220 BAR0=false
19221 BAR1=true
19222 V=1
19223 am__doit:
19224 @$(TRUE)
19225 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19226 am_cv_make_support_nested_variables=yes
19227 else
19228 am_cv_make_support_nested_variables=no
19229 fi
19230 fi
19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19232 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19233 if test $am_cv_make_support_nested_variables = yes; then
19234 AM_V='$(V)'
19235 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19236 else
19237 AM_V=$AM_DEFAULT_VERBOSITY
19238 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19239 fi
19240 AM_BACKSLASH='\'
19241
19242
19243
19244 # Check whether --enable-malloc0returnsnull was given.
19245 if test ${enable_malloc0returnsnull+y}
19246 then :
19247 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19248 else $as_nop
19249 MALLOC_ZERO_RETURNS_NULL=auto
19250 fi
19251
19252
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19254 printf %s "checking whether malloc(0) returns NULL... " >&6; }
19255 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19256 if test ${xorg_cv_malloc0_returns_null+y}
19257 then :
19258 printf %s "(cached) " >&6
19259 else $as_nop
19260 if test "$cross_compiling" = yes
19261 then :
19262 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19263 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19264 as_fn_error $? "cannot run test program while cross compiling
19265 See \`config.log' for more details" "$LINENO" 5; }
19266 else $as_nop
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h. */
19269
19270 #include <stdlib.h>
19271
19272 int
19273 main (void)
19274 {
19275
19276 char *m0, *r0, *c0, *p;
19277 m0 = malloc(0);
19278 p = malloc(10);
19279 r0 = realloc(p,0);
19280 c0 = calloc(0,10);
19281 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19282
19283 ;
19284 return 0;
19285 }
19286 _ACEOF
19287 if ac_fn_c_try_run "$LINENO"
19288 then :
19289 xorg_cv_malloc0_returns_null=yes
19290 else $as_nop
19291 xorg_cv_malloc0_returns_null=no
19292 fi
19293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19294 conftest.$ac_objext conftest.beam conftest.$ac_ext
19295 fi
19296
19297 fi
19298
19299 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19300 fi
19301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19302 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19303
19304 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19305 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19306 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19307 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19308 else
19309 MALLOC_ZERO_CFLAGS=""
19310 XMALLOC_ZERO_CFLAGS=""
19311 XTMALLOC_ZERO_CFLAGS=""
19312 fi
19313
19314
19315
19316
19317
19318
19319 # Obtain compiler/linker options for dependencies
19320
19321 pkg_failed=no
19322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
19323 printf %s "checking for XRES... " >&6; }
19324
19325 if test -n "$XRES_CFLAGS"; then
19326 pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
19327 elif test -n "$PKG_CONFIG"; then
19328 if test -n "$PKG_CONFIG" && \
19329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
19330 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
19331 ac_status=$?
19332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19333 test $ac_status = 0; }; then
19334 pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
19335 test "x$?" != "x0" && pkg_failed=yes
19336 else
19337 pkg_failed=yes
19338 fi
19339 else
19340 pkg_failed=untried
19341 fi
19342 if test -n "$XRES_LIBS"; then
19343 pkg_cv_XRES_LIBS="$XRES_LIBS"
19344 elif test -n "$PKG_CONFIG"; then
19345 if test -n "$PKG_CONFIG" && \
19346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
19347 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
19348 ac_status=$?
19349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19350 test $ac_status = 0; }; then
19351 pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
19352 test "x$?" != "x0" && pkg_failed=yes
19353 else
19354 pkg_failed=yes
19355 fi
19356 else
19357 pkg_failed=untried
19358 fi
19359
19360
19361
19362 if test $pkg_failed = yes; then
19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364 printf "%s\n" "no" >&6; }
19365
19366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19367 _pkg_short_errors_supported=yes
19368 else
19369 _pkg_short_errors_supported=no
19370 fi
19371 if test $_pkg_short_errors_supported = yes; then
19372 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
19373 else
19374 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
19375 fi
19376 # Put the nasty error message in config.log where it belongs
19377 echo "$XRES_PKG_ERRORS" >&5
19378
19379 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto resourceproto >= 1.2.0) were not met:
19380
19381 $XRES_PKG_ERRORS
19382
19383 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19384 installed software in a non-standard prefix.
19385
19386 Alternatively, you may set the environment variables XRES_CFLAGS
19387 and XRES_LIBS to avoid the need to call pkg-config.
19388 See the pkg-config man page for more details." "$LINENO" 5
19389 elif test $pkg_failed = untried; then
19390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19391 printf "%s\n" "no" >&6; }
19392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19393 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19394 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19395 is in your PATH or set the PKG_CONFIG environment variable to the full
19396 path to pkg-config.
19397
19398 Alternatively, you may set the environment variables XRES_CFLAGS
19399 and XRES_LIBS to avoid the need to call pkg-config.
19400 See the pkg-config man page for more details.
19401
19402 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19403 See \`config.log' for more details" "$LINENO" 5; }
19404 else
19405 XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
19406 XRES_LIBS=$pkg_cv_XRES_LIBS
19407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408 printf "%s\n" "yes" >&6; }
19409
19410 fi
19411
19412 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
19413
19414 cat >confcache <<\_ACEOF
19415 # This file is a shell script that caches the results of configure
19416 # tests run on this system so they can be shared between configure
19417 # scripts and configure runs, see configure's option --config-cache.
19418 # It is not useful on other systems. If it contains results you don't
19419 # want to keep, you may remove or edit it.
19420 #
19421 # config.status only pays attention to the cache file if you give it
19422 # the --recheck option to rerun configure.
19423 #
19424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19426 # following values.
19427
19428 _ACEOF
19429
19430 # The following way of writing the cache mishandles newlines in values,
19431 # but we know of no workaround that is simple, portable, and efficient.
19432 # So, we kill variables containing newlines.
19433 # Ultrix sh set writes to stderr and can't be redirected directly,
19434 # and sets the high bit in the cache file unless we assign to the vars.
19435 (
19436 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19437 eval ac_val=\$$ac_var
19438 case $ac_val in #(
19439 *${as_nl}*)
19440 case $ac_var in #(
19441 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19442 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19443 esac
19444 case $ac_var in #(
19445 _ | IFS | as_nl) ;; #(
19446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19447 *) { eval $ac_var=; unset $ac_var;} ;;
19448 esac ;;
19449 esac
19450 done
19451
19452 (set) 2>&1 |
19453 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19454 *${as_nl}ac_space=\ *)
19455 # `set' does not quote correctly, so add quotes: double-quote
19456 # substitution turns \\\\ into \\, and sed turns \\ into \.
19457 sed -n \
19458 "s/'/'\\\\''/g;
19459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19460 ;; #(
19461 *)
19462 # `set' quotes correctly as required by POSIX, so do not add quotes.
19463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19464 ;;
19465 esac |
19466 sort
19467 ) |
19468 sed '
19469 /^ac_cv_env_/b end
19470 t clear
19471 :clear
19472 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19473 t end
19474 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19475 :end' >>confcache
19476 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19477 if test -w "$cache_file"; then
19478 if test "x$cache_file" != "x/dev/null"; then
19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19480 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19481 if test ! -f "$cache_file" || test -h "$cache_file"; then
19482 cat confcache >"$cache_file"
19483 else
19484 case $cache_file in #(
19485 */* | ?:*)
19486 mv -f confcache "$cache_file"$$ &&
19487 mv -f "$cache_file"$$ "$cache_file" ;; #(
19488 *)
19489 mv -f confcache "$cache_file" ;;
19490 esac
19491 fi
19492 fi
19493 else
19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19495 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19496 fi
19497 fi
19498 rm -f confcache
19499
19500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19501 # Let make expand exec_prefix.
19502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19503
19504 DEFS=-DHAVE_CONFIG_H
19505
19506 ac_libobjs=
19507 ac_ltlibobjs=
19508 U=
19509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19510 # 1. Remove the extension, and $U if already installed.
19511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19512 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19514 # will be set to the directory where LIBOBJS objects are built.
19515 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19516 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19517 done
19518 LIBOBJS=$ac_libobjs
19519
19520 LTLIBOBJS=$ac_ltlibobjs
19521
19522
19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19524 printf %s "checking that generated files are newer than configure... " >&6; }
19525 if test -n "$am_sleep_pid"; then
19526 # Hide warnings about reused PIDs.
19527 wait $am_sleep_pid 2>/dev/null
19528 fi
19529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19530 printf "%s\n" "done" >&6; }
19531 if test -n "$EXEEXT"; then
19532 am__EXEEXT_TRUE=
19533 am__EXEEXT_FALSE='#'
19534 else
19535 am__EXEEXT_TRUE='#'
19536 am__EXEEXT_FALSE=
19537 fi
19538
19539 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19540 as_fn_error $? "conditional \"AMDEP\" was never defined.
19541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19542 fi
19543 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19544 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19546 fi
19547
19548 : "${CONFIG_STATUS=./config.status}"
19549 ac_write_fail=0
19550 ac_clean_files_save=$ac_clean_files
19551 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19553 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19554 as_write_fail=0
19555 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19556 #! $SHELL
19557 # Generated by $as_me.
19558 # Run this file to recreate the current configuration.
19559 # Compiler output produced by configure, useful for debugging
19560 # configure, is in config.log if it exists.
19561
19562 debug=false
19563 ac_cs_recheck=false
19564 ac_cs_silent=false
19565
19566 SHELL=\${CONFIG_SHELL-$SHELL}
19567 export SHELL
19568 _ASEOF
19569 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19570 ## -------------------- ##
19571 ## M4sh Initialization. ##
19572 ## -------------------- ##
19573
19574 # Be more Bourne compatible
19575 DUALCASE=1; export DUALCASE # for MKS sh
19576 as_nop=:
19577 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19578 then :
19579 emulate sh
19580 NULLCMD=:
19581 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19582 # is contrary to our usage. Disable this feature.
19583 alias -g '${1+"$@"}'='"$@"'
19584 setopt NO_GLOB_SUBST
19585 else $as_nop
19586 case `(set -o) 2>/dev/null` in #(
19587 *posix*) :
19588 set -o posix ;; #(
19589 *) :
19590 ;;
19591 esac
19592 fi
19593
19594
19595
19596 # Reset variables that may have inherited troublesome values from
19597 # the environment.
19598
19599 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19600 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19601 # side effect of setting IFS to empty, thus disabling word splitting.)
19602 # Quoting is to prevent editors from complaining about space-tab.
19603 as_nl='
19604 '
19605 export as_nl
19606 IFS=" "" $as_nl"
19607
19608 PS1='$ '
19609 PS2='> '
19610 PS4='+ '
19611
19612 # Ensure predictable behavior from utilities with locale-dependent output.
19613 LC_ALL=C
19614 export LC_ALL
19615 LANGUAGE=C
19616 export LANGUAGE
19617
19618 # We cannot yet rely on "unset" to work, but we need these variables
19619 # to be unset--not just set to an empty or harmless value--now, to
19620 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19621 # also avoids known problems related to "unset" and subshell syntax
19622 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19623 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19624 do eval test \${$as_var+y} \
19625 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19626 done
19627
19628 # Ensure that fds 0, 1, and 2 are open.
19629 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19630 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19631 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19632
19633 # The user is always right.
19634 if ${PATH_SEPARATOR+false} :; then
19635 PATH_SEPARATOR=:
19636 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19637 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19638 PATH_SEPARATOR=';'
19639 }
19640 fi
19641
19642
19643 # Find who we are. Look in the path if we contain no directory separator.
19644 as_myself=
19645 case $0 in #((
19646 *[\\/]* ) as_myself=$0 ;;
19647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19648 for as_dir in $PATH
19649 do
19650 IFS=$as_save_IFS
19651 case $as_dir in #(((
19652 '') as_dir=./ ;;
19653 */) ;;
19654 *) as_dir=$as_dir/ ;;
19655 esac
19656 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19657 done
19658 IFS=$as_save_IFS
19659
19660 ;;
19661 esac
19662 # We did not find ourselves, most probably we were run as `sh COMMAND'
19663 # in which case we are not to be found in the path.
19664 if test "x$as_myself" = x; then
19665 as_myself=$0
19666 fi
19667 if test ! -f "$as_myself"; then
19668 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19669 exit 1
19670 fi
19671
19672
19673
19674 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19675 # ----------------------------------------
19676 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19677 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19678 # script with STATUS, using 1 if that was 0.
19679 as_fn_error ()
19680 {
19681 as_status=$1; test $as_status -eq 0 && as_status=1
19682 if test "$4"; then
19683 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19685 fi
19686 printf "%s\n" "$as_me: error: $2" >&2
19687 as_fn_exit $as_status
19688 } # as_fn_error
19689
19690
19691
19692 # as_fn_set_status STATUS
19693 # -----------------------
19694 # Set $? to STATUS, without forking.
19695 as_fn_set_status ()
19696 {
19697 return $1
19698 } # as_fn_set_status
19699
19700 # as_fn_exit STATUS
19701 # -----------------
19702 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19703 as_fn_exit ()
19704 {
19705 set +e
19706 as_fn_set_status $1
19707 exit $1
19708 } # as_fn_exit
19709
19710 # as_fn_unset VAR
19711 # ---------------
19712 # Portably unset VAR.
19713 as_fn_unset ()
19714 {
19715 { eval $1=; unset $1;}
19716 }
19717 as_unset=as_fn_unset
19718
19719 # as_fn_append VAR VALUE
19720 # ----------------------
19721 # Append the text in VALUE to the end of the definition contained in VAR. Take
19722 # advantage of any shell optimizations that allow amortized linear growth over
19723 # repeated appends, instead of the typical quadratic growth present in naive
19724 # implementations.
19725 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19726 then :
19727 eval 'as_fn_append ()
19728 {
19729 eval $1+=\$2
19730 }'
19731 else $as_nop
19732 as_fn_append ()
19733 {
19734 eval $1=\$$1\$2
19735 }
19736 fi # as_fn_append
19737
19738 # as_fn_arith ARG...
19739 # ------------------
19740 # Perform arithmetic evaluation on the ARGs, and store the result in the
19741 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19742 # must be portable across $(()) and expr.
19743 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19744 then :
19745 eval 'as_fn_arith ()
19746 {
19747 as_val=$(( $* ))
19748 }'
19749 else $as_nop
19750 as_fn_arith ()
19751 {
19752 as_val=`expr "$@" || test $? -eq 1`
19753 }
19754 fi # as_fn_arith
19755
19756
19757 if expr a : '\(a\)' >/dev/null 2>&1 &&
19758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19759 as_expr=expr
19760 else
19761 as_expr=false
19762 fi
19763
19764 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19765 as_basename=basename
19766 else
19767 as_basename=false
19768 fi
19769
19770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19771 as_dirname=dirname
19772 else
19773 as_dirname=false
19774 fi
19775
19776 as_me=`$as_basename -- "$0" ||
19777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19778 X"$0" : 'X\(//\)$' \| \
19779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19780 printf "%s\n" X/"$0" |
19781 sed '/^.*\/\([^/][^/]*\)\/*$/{
19782 s//\1/
19783 q
19784 }
19785 /^X\/\(\/\/\)$/{
19786 s//\1/
19787 q
19788 }
19789 /^X\/\(\/\).*/{
19790 s//\1/
19791 q
19792 }
19793 s/.*/./; q'`
19794
19795 # Avoid depending upon Character Ranges.
19796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19799 as_cr_digits='0123456789'
19800 as_cr_alnum=$as_cr_Letters$as_cr_digits
19801
19802
19803 # Determine whether it's possible to make 'echo' print without a newline.
19804 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19805 # for compatibility with existing Makefiles.
19806 ECHO_C= ECHO_N= ECHO_T=
19807 case `echo -n x` in #(((((
19808 -n*)
19809 case `echo 'xy\c'` in
19810 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19811 xy) ECHO_C='\c';;
19812 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19813 ECHO_T=' ';;
19814 esac;;
19815 *)
19816 ECHO_N='-n';;
19817 esac
19818
19819 # For backward compatibility with old third-party macros, we provide
19820 # the shell variables $as_echo and $as_echo_n. New code should use
19821 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19822 as_echo='printf %s\n'
19823 as_echo_n='printf %s'
19824
19825 rm -f conf$$ conf$$.exe conf$$.file
19826 if test -d conf$$.dir; then
19827 rm -f conf$$.dir/conf$$.file
19828 else
19829 rm -f conf$$.dir
19830 mkdir conf$$.dir 2>/dev/null
19831 fi
19832 if (echo >conf$$.file) 2>/dev/null; then
19833 if ln -s conf$$.file conf$$ 2>/dev/null; then
19834 as_ln_s='ln -s'
19835 # ... but there are two gotchas:
19836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19838 # In both cases, we have to default to `cp -pR'.
19839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19840 as_ln_s='cp -pR'
19841 elif ln conf$$.file conf$$ 2>/dev/null; then
19842 as_ln_s=ln
19843 else
19844 as_ln_s='cp -pR'
19845 fi
19846 else
19847 as_ln_s='cp -pR'
19848 fi
19849 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19850 rmdir conf$$.dir 2>/dev/null
19851
19852
19853 # as_fn_mkdir_p
19854 # -------------
19855 # Create "$as_dir" as a directory, including parents if necessary.
19856 as_fn_mkdir_p ()
19857 {
19858
19859 case $as_dir in #(
19860 -*) as_dir=./$as_dir;;
19861 esac
19862 test -d "$as_dir" || eval $as_mkdir_p || {
19863 as_dirs=
19864 while :; do
19865 case $as_dir in #(
19866 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19867 *) as_qdir=$as_dir;;
19868 esac
19869 as_dirs="'$as_qdir' $as_dirs"
19870 as_dir=`$as_dirname -- "$as_dir" ||
19871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19872 X"$as_dir" : 'X\(//\)[^/]' \| \
19873 X"$as_dir" : 'X\(//\)$' \| \
19874 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19875 printf "%s\n" X"$as_dir" |
19876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19877 s//\1/
19878 q
19879 }
19880 /^X\(\/\/\)[^/].*/{
19881 s//\1/
19882 q
19883 }
19884 /^X\(\/\/\)$/{
19885 s//\1/
19886 q
19887 }
19888 /^X\(\/\).*/{
19889 s//\1/
19890 q
19891 }
19892 s/.*/./; q'`
19893 test -d "$as_dir" && break
19894 done
19895 test -z "$as_dirs" || eval "mkdir $as_dirs"
19896 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19897
19898
19899 } # as_fn_mkdir_p
19900 if mkdir -p . 2>/dev/null; then
19901 as_mkdir_p='mkdir -p "$as_dir"'
19902 else
19903 test -d ./-p && rmdir ./-p
19904 as_mkdir_p=false
19905 fi
19906
19907
19908 # as_fn_executable_p FILE
19909 # -----------------------
19910 # Test if FILE is an executable regular file.
19911 as_fn_executable_p ()
19912 {
19913 test -f "$1" && test -x "$1"
19914 } # as_fn_executable_p
19915 as_test_x='test -x'
19916 as_executable_p=as_fn_executable_p
19917
19918 # Sed expression to map a string onto a valid CPP name.
19919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19920
19921 # Sed expression to map a string onto a valid variable name.
19922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19923
19924
19925 exec 6>&1
19926 ## ----------------------------------- ##
19927 ## Main body of $CONFIG_STATUS script. ##
19928 ## ----------------------------------- ##
19929 _ASEOF
19930 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19931
19932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19933 # Save the log message, to keep $0 and so on meaningful, and to
19934 # report actual input values of CONFIG_FILES etc. instead of their
19935 # values after options handling.
19936 ac_log="
19937 This file was extended by libXres $as_me 1.2.2, which was
19938 generated by GNU Autoconf 2.71. Invocation command line was
19939
19940 CONFIG_FILES = $CONFIG_FILES
19941 CONFIG_HEADERS = $CONFIG_HEADERS
19942 CONFIG_LINKS = $CONFIG_LINKS
19943 CONFIG_COMMANDS = $CONFIG_COMMANDS
19944 $ $0 $@
19945
19946 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19947 "
19948
19949 _ACEOF
19950
19951 case $ac_config_files in *"
19952 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19953 esac
19954
19955 case $ac_config_headers in *"
19956 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19957 esac
19958
19959
19960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19961 # Files that config.status was made for.
19962 config_files="$ac_config_files"
19963 config_headers="$ac_config_headers"
19964 config_commands="$ac_config_commands"
19965
19966 _ACEOF
19967
19968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19969 ac_cs_usage="\
19970 \`$as_me' instantiates files and other configuration actions
19971 from templates according to the current configuration. Unless the files
19972 and actions are specified as TAGs, all are instantiated by default.
19973
19974 Usage: $0 [OPTION]... [TAG]...
19975
19976 -h, --help print this help, then exit
19977 -V, --version print version number and configuration settings, then exit
19978 --config print configuration, then exit
19979 -q, --quiet, --silent
19980 do not print progress messages
19981 -d, --debug don't remove temporary files
19982 --recheck update $as_me by reconfiguring in the same conditions
19983 --file=FILE[:TEMPLATE]
19984 instantiate the configuration file FILE
19985 --header=FILE[:TEMPLATE]
19986 instantiate the configuration header FILE
19987
19988 Configuration files:
19989 $config_files
19990
19991 Configuration headers:
19992 $config_headers
19993
19994 Configuration commands:
19995 $config_commands
19996
19997 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>."
19998
19999 _ACEOF
20000 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20001 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20003 ac_cs_config='$ac_cs_config_escaped'
20004 ac_cs_version="\\
20005 libXres config.status 1.2.2
20006 configured by $0, generated by GNU Autoconf 2.71,
20007 with options \\"\$ac_cs_config\\"
20008
20009 Copyright (C) 2021 Free Software Foundation, Inc.
20010 This config.status script is free software; the Free Software Foundation
20011 gives unlimited permission to copy, distribute and modify it."
20012
20013 ac_pwd='$ac_pwd'
20014 srcdir='$srcdir'
20015 INSTALL='$INSTALL'
20016 MKDIR_P='$MKDIR_P'
20017 AWK='$AWK'
20018 test -n "\$AWK" || AWK=awk
20019 _ACEOF
20020
20021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20022 # The default lists apply if the user does not specify any file.
20023 ac_need_defaults=:
20024 while test $# != 0
20025 do
20026 case $1 in
20027 --*=?*)
20028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20030 ac_shift=:
20031 ;;
20032 --*=)
20033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20034 ac_optarg=
20035 ac_shift=:
20036 ;;
20037 *)
20038 ac_option=$1
20039 ac_optarg=$2
20040 ac_shift=shift
20041 ;;
20042 esac
20043
20044 case $ac_option in
20045 # Handling of the options.
20046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20047 ac_cs_recheck=: ;;
20048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20049 printf "%s\n" "$ac_cs_version"; exit ;;
20050 --config | --confi | --conf | --con | --co | --c )
20051 printf "%s\n" "$ac_cs_config"; exit ;;
20052 --debug | --debu | --deb | --de | --d | -d )
20053 debug=: ;;
20054 --file | --fil | --fi | --f )
20055 $ac_shift
20056 case $ac_optarg in
20057 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20058 '') as_fn_error $? "missing file argument" ;;
20059 esac
20060 as_fn_append CONFIG_FILES " '$ac_optarg'"
20061 ac_need_defaults=false;;
20062 --header | --heade | --head | --hea )
20063 $ac_shift
20064 case $ac_optarg in
20065 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20066 esac
20067 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20068 ac_need_defaults=false;;
20069 --he | --h)
20070 # Conflict between --help and --header
20071 as_fn_error $? "ambiguous option: \`$1'
20072 Try \`$0 --help' for more information.";;
20073 --help | --hel | -h )
20074 printf "%s\n" "$ac_cs_usage"; exit ;;
20075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20077 ac_cs_silent=: ;;
20078
20079 # This is an error.
20080 -*) as_fn_error $? "unrecognized option: \`$1'
20081 Try \`$0 --help' for more information." ;;
20082
20083 *) as_fn_append ac_config_targets " $1"
20084 ac_need_defaults=false ;;
20085
20086 esac
20087 shift
20088 done
20089
20090 ac_configure_extra_args=
20091
20092 if $ac_cs_silent; then
20093 exec 6>/dev/null
20094 ac_configure_extra_args="$ac_configure_extra_args --silent"
20095 fi
20096
20097 _ACEOF
20098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20099 if \$ac_cs_recheck; then
20100 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20101 shift
20102 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20103 CONFIG_SHELL='$SHELL'
20104 export CONFIG_SHELL
20105 exec "\$@"
20106 fi
20107
20108 _ACEOF
20109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20110 exec 5>>config.log
20111 {
20112 echo
20113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20114 ## Running $as_me. ##
20115 _ASBOX
20116 printf "%s\n" "$ac_log"
20117 } >&5
20118
20119 _ACEOF
20120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20121 #
20122 # INIT-COMMANDS
20123 #
20124 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20125
20126
20127 # The HP-UX ksh and POSIX shell print the target directory to stdout
20128 # if CDPATH is set.
20129 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20130
20131 sed_quote_subst='$sed_quote_subst'
20132 double_quote_subst='$double_quote_subst'
20133 delay_variable_subst='$delay_variable_subst'
20134 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20135 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20136 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20137 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20138 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20139 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20140 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20141 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20142 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20143 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20144 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20145 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20146 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20147 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20148 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20149 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20150 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20151 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20152 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20153 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20154 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20155 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20156 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20157 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20158 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20159 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20160 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20161 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20162 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20163 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20164 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20165 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20166 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20167 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20168 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20169 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20170 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20171 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20172 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20173 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20174 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20175 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20176 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20177 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20178 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20179 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20180 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20181 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20182 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20183 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20184 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20185 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20186 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20187 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20188 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20189 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20190 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20191 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20192 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20193 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20194 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"`'
20195 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20196 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20197 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20198 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20199 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20200 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20201 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20202 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20203 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20204 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20205 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20206 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20207 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20208 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20209 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20210 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20211 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20212 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20213 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20214 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20215 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20216 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20217 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20218 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20219 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20220 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20221 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20222 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20223 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20224 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20225 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20226 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20227 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20228 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20229 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20230 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20231 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20232 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20233 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20234 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20235 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20236 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20237 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20238 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20239 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20240 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20241 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20242 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20243 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20244 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20245 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20246 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20247 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20248 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20249 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20250 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20251 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20252 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20253 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20254 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20255 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20256 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20257 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20258 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20259 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20260 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20261 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20262 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20263 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20264 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20265 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20266 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20267 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20268 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20269 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20270 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20271
20272 LTCC='$LTCC'
20273 LTCFLAGS='$LTCFLAGS'
20274 compiler='$compiler_DEFAULT'
20275
20276 # A function that is used when there is no print builtin or printf.
20277 func_fallback_echo ()
20278 {
20279 eval 'cat <<_LTECHO_EOF
20280 \$1
20281 _LTECHO_EOF'
20282 }
20283
20284 # Quote evaled strings.
20285 for var in SHELL \
20286 ECHO \
20287 PATH_SEPARATOR \
20288 SED \
20289 GREP \
20290 EGREP \
20291 FGREP \
20292 LD \
20293 NM \
20294 LN_S \
20295 lt_SP2NL \
20296 lt_NL2SP \
20297 reload_flag \
20298 FILECMD \
20299 OBJDUMP \
20300 deplibs_check_method \
20301 file_magic_cmd \
20302 file_magic_glob \
20303 want_nocaseglob \
20304 DLLTOOL \
20305 sharedlib_from_linklib_cmd \
20306 AR \
20307 archiver_list_spec \
20308 STRIP \
20309 RANLIB \
20310 CC \
20311 CFLAGS \
20312 compiler \
20313 lt_cv_sys_global_symbol_pipe \
20314 lt_cv_sys_global_symbol_to_cdecl \
20315 lt_cv_sys_global_symbol_to_import \
20316 lt_cv_sys_global_symbol_to_c_name_address \
20317 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20318 lt_cv_nm_interface \
20319 nm_file_list_spec \
20320 lt_cv_truncate_bin \
20321 lt_prog_compiler_no_builtin_flag \
20322 lt_prog_compiler_pic \
20323 lt_prog_compiler_wl \
20324 lt_prog_compiler_static \
20325 lt_cv_prog_compiler_c_o \
20326 need_locks \
20327 MANIFEST_TOOL \
20328 DSYMUTIL \
20329 NMEDIT \
20330 LIPO \
20331 OTOOL \
20332 OTOOL64 \
20333 shrext_cmds \
20334 export_dynamic_flag_spec \
20335 whole_archive_flag_spec \
20336 compiler_needs_object \
20337 with_gnu_ld \
20338 allow_undefined_flag \
20339 no_undefined_flag \
20340 hardcode_libdir_flag_spec \
20341 hardcode_libdir_separator \
20342 exclude_expsyms \
20343 include_expsyms \
20344 file_list_spec \
20345 variables_saved_for_relink \
20346 libname_spec \
20347 library_names_spec \
20348 soname_spec \
20349 install_override_mode \
20350 finish_eval \
20351 old_striplib \
20352 striplib; do
20353 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20354 *[\\\\\\\`\\"\\\$]*)
20355 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20356 ;;
20357 *)
20358 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20359 ;;
20360 esac
20361 done
20362
20363 # Double-quote double-evaled strings.
20364 for var in reload_cmds \
20365 old_postinstall_cmds \
20366 old_postuninstall_cmds \
20367 old_archive_cmds \
20368 extract_expsyms_cmds \
20369 old_archive_from_new_cmds \
20370 old_archive_from_expsyms_cmds \
20371 archive_cmds \
20372 archive_expsym_cmds \
20373 module_cmds \
20374 module_expsym_cmds \
20375 export_symbols_cmds \
20376 prelink_cmds \
20377 postlink_cmds \
20378 postinstall_cmds \
20379 postuninstall_cmds \
20380 finish_cmds \
20381 sys_lib_search_path_spec \
20382 configure_time_dlsearch_path \
20383 configure_time_lt_sys_library_path; do
20384 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20385 *[\\\\\\\`\\"\\\$]*)
20386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20387 ;;
20388 *)
20389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20390 ;;
20391 esac
20392 done
20393
20394 ac_aux_dir='$ac_aux_dir'
20395
20396 # See if we are running on zsh, and set the options that allow our
20397 # commands through without removal of \ escapes INIT.
20398 if test -n "\${ZSH_VERSION+set}"; then
20399 setopt NO_GLOB_SUBST
20400 fi
20401
20402
20403 PACKAGE='$PACKAGE'
20404 VERSION='$VERSION'
20405 RM='$RM'
20406 ofile='$ofile'
20407
20408
20409
20410
20411 _ACEOF
20412
20413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20414
20415 # Handling of arguments.
20416 for ac_config_target in $ac_config_targets
20417 do
20418 case $ac_config_target in
20419 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20420 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20421 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20423 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20424 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20425 "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
20426
20427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20428 esac
20429 done
20430
20431
20432 # If the user did not use the arguments to specify the items to instantiate,
20433 # then the envvar interface is used. Set only those that are not.
20434 # We use the long form for the default assignment because of an extremely
20435 # bizarre bug on SunOS 4.1.3.
20436 if $ac_need_defaults; then
20437 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20438 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20439 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20440 fi
20441
20442 # Have a temporary directory for convenience. Make it in the build tree
20443 # simply because there is no reason against having it here, and in addition,
20444 # creating and moving files from /tmp can sometimes cause problems.
20445 # Hook for its removal unless debugging.
20446 # Note that there is a small window in which the directory will not be cleaned:
20447 # after its creation but before its name has been assigned to `$tmp'.
20448 $debug ||
20449 {
20450 tmp= ac_tmp=
20451 trap 'exit_status=$?
20452 : "${ac_tmp:=$tmp}"
20453 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20454 ' 0
20455 trap 'as_fn_exit 1' 1 2 13 15
20456 }
20457 # Create a (secure) tmp directory for tmp files.
20458
20459 {
20460 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20461 test -d "$tmp"
20462 } ||
20463 {
20464 tmp=./conf$$-$RANDOM
20465 (umask 077 && mkdir "$tmp")
20466 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20467 ac_tmp=$tmp
20468
20469 # Set up the scripts for CONFIG_FILES section.
20470 # No need to generate them if there are no CONFIG_FILES.
20471 # This happens for instance with `./config.status config.h'.
20472 if test -n "$CONFIG_FILES"; then
20473
20474
20475 ac_cr=`echo X | tr X '\015'`
20476 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20477 # But we know of no other shell where ac_cr would be empty at this
20478 # point, so we can use a bashism as a fallback.
20479 if test "x$ac_cr" = x; then
20480 eval ac_cr=\$\'\\r\'
20481 fi
20482 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20483 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20484 ac_cs_awk_cr='\\r'
20485 else
20486 ac_cs_awk_cr=$ac_cr
20487 fi
20488
20489 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20490 _ACEOF
20491
20492
20493 {
20494 echo "cat >conf$$subs.awk <<_ACEOF" &&
20495 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20496 echo "_ACEOF"
20497 } >conf$$subs.sh ||
20498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20500 ac_delim='%!_!# '
20501 for ac_last_try in false false false false false :; do
20502 . ./conf$$subs.sh ||
20503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20504
20505 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20506 if test $ac_delim_n = $ac_delim_num; then
20507 break
20508 elif $ac_last_try; then
20509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20510 else
20511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20512 fi
20513 done
20514 rm -f conf$$subs.sh
20515
20516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20517 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20518 _ACEOF
20519 sed -n '
20520 h
20521 s/^/S["/; s/!.*/"]=/
20522 p
20523 g
20524 s/^[^!]*!//
20525 :repl
20526 t repl
20527 s/'"$ac_delim"'$//
20528 t delim
20529 :nl
20530 h
20531 s/\(.\{148\}\)..*/\1/
20532 t more1
20533 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20534 p
20535 n
20536 b repl
20537 :more1
20538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20539 p
20540 g
20541 s/.\{148\}//
20542 t nl
20543 :delim
20544 h
20545 s/\(.\{148\}\)..*/\1/
20546 t more2
20547 s/["\\]/\\&/g; s/^/"/; s/$/"/
20548 p
20549 b
20550 :more2
20551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20552 p
20553 g
20554 s/.\{148\}//
20555 t delim
20556 ' <conf$$subs.awk | sed '
20557 /^[^""]/{
20558 N
20559 s/\n//
20560 }
20561 ' >>$CONFIG_STATUS || ac_write_fail=1
20562 rm -f conf$$subs.awk
20563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20564 _ACAWK
20565 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20566 for (key in S) S_is_set[key] = 1
20567 FS = ""
20568
20569 }
20570 {
20571 line = $ 0
20572 nfields = split(line, field, "@")
20573 substed = 0
20574 len = length(field[1])
20575 for (i = 2; i < nfields; i++) {
20576 key = field[i]
20577 keylen = length(key)
20578 if (S_is_set[key]) {
20579 value = S[key]
20580 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20581 len += length(value) + length(field[++i])
20582 substed = 1
20583 } else
20584 len += 1 + keylen
20585 }
20586
20587 print line
20588 }
20589
20590 _ACAWK
20591 _ACEOF
20592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20593 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20594 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20595 else
20596 cat
20597 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20598 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20599 _ACEOF
20600
20601 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20602 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20603 # trailing colons and then remove the whole line if VPATH becomes empty
20604 # (actually we leave an empty line to preserve line numbers).
20605 if test "x$srcdir" = x.; then
20606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20607 h
20608 s///
20609 s/^/:/
20610 s/[ ]*$/:/
20611 s/:\$(srcdir):/:/g
20612 s/:\${srcdir}:/:/g
20613 s/:@srcdir@:/:/g
20614 s/^:*//
20615 s/:*$//
20616 x
20617 s/\(=[ ]*\).*/\1/
20618 G
20619 s/\n//
20620 s/^[^=]*=[ ]*$//
20621 }'
20622 fi
20623
20624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20625 fi # test -n "$CONFIG_FILES"
20626
20627 # Set up the scripts for CONFIG_HEADERS section.
20628 # No need to generate them if there are no CONFIG_HEADERS.
20629 # This happens for instance with `./config.status Makefile'.
20630 if test -n "$CONFIG_HEADERS"; then
20631 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20632 BEGIN {
20633 _ACEOF
20634
20635 # Transform confdefs.h into an awk script `defines.awk', embedded as
20636 # here-document in config.status, that substitutes the proper values into
20637 # config.h.in to produce config.h.
20638
20639 # Create a delimiter string that does not exist in confdefs.h, to ease
20640 # handling of long lines.
20641 ac_delim='%!_!# '
20642 for ac_last_try in false false :; do
20643 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20644 if test -z "$ac_tt"; then
20645 break
20646 elif $ac_last_try; then
20647 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20648 else
20649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20650 fi
20651 done
20652
20653 # For the awk script, D is an array of macro values keyed by name,
20654 # likewise P contains macro parameters if any. Preserve backslash
20655 # newline sequences.
20656
20657 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20658 sed -n '
20659 s/.\{148\}/&'"$ac_delim"'/g
20660 t rset
20661 :rset
20662 s/^[ ]*#[ ]*define[ ][ ]*/ /
20663 t def
20664 d
20665 :def
20666 s/\\$//
20667 t bsnl
20668 s/["\\]/\\&/g
20669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20670 D["\1"]=" \3"/p
20671 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20672 d
20673 :bsnl
20674 s/["\\]/\\&/g
20675 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20676 D["\1"]=" \3\\\\\\n"\\/p
20677 t cont
20678 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20679 t cont
20680 d
20681 :cont
20682 n
20683 s/.\{148\}/&'"$ac_delim"'/g
20684 t clear
20685 :clear
20686 s/\\$//
20687 t bsnlc
20688 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20689 d
20690 :bsnlc
20691 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20692 b cont
20693 ' <confdefs.h | sed '
20694 s/'"$ac_delim"'/"\\\
20695 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20696
20697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20698 for (key in D) D_is_set[key] = 1
20699 FS = ""
20700 }
20701 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20702 line = \$ 0
20703 split(line, arg, " ")
20704 if (arg[1] == "#") {
20705 defundef = arg[2]
20706 mac1 = arg[3]
20707 } else {
20708 defundef = substr(arg[1], 2)
20709 mac1 = arg[2]
20710 }
20711 split(mac1, mac2, "(") #)
20712 macro = mac2[1]
20713 prefix = substr(line, 1, index(line, defundef) - 1)
20714 if (D_is_set[macro]) {
20715 # Preserve the white space surrounding the "#".
20716 print prefix "define", macro P[macro] D[macro]
20717 next
20718 } else {
20719 # Replace #undef with comments. This is necessary, for example,
20720 # in the case of _POSIX_SOURCE, which is predefined and required
20721 # on some systems where configure will not decide to define it.
20722 if (defundef == "undef") {
20723 print "/*", prefix defundef, macro, "*/"
20724 next
20725 }
20726 }
20727 }
20728 { print }
20729 _ACAWK
20730 _ACEOF
20731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20732 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20733 fi # test -n "$CONFIG_HEADERS"
20734
20735
20736 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20737 shift
20738 for ac_tag
20739 do
20740 case $ac_tag in
20741 :[FHLC]) ac_mode=$ac_tag; continue;;
20742 esac
20743 case $ac_mode$ac_tag in
20744 :[FHL]*:*);;
20745 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20746 :[FH]-) ac_tag=-:-;;
20747 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20748 esac
20749 ac_save_IFS=$IFS
20750 IFS=:
20751 set x $ac_tag
20752 IFS=$ac_save_IFS
20753 shift
20754 ac_file=$1
20755 shift
20756
20757 case $ac_mode in
20758 :L) ac_source=$1;;
20759 :[FH])
20760 ac_file_inputs=
20761 for ac_f
20762 do
20763 case $ac_f in
20764 -) ac_f="$ac_tmp/stdin";;
20765 *) # Look for the file first in the build tree, then in the source tree
20766 # (if the path is not absolute). The absolute path cannot be DOS-style,
20767 # because $ac_f cannot contain `:'.
20768 test -f "$ac_f" ||
20769 case $ac_f in
20770 [\\/$]*) false;;
20771 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20772 esac ||
20773 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20774 esac
20775 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20776 as_fn_append ac_file_inputs " '$ac_f'"
20777 done
20778
20779 # Let's still pretend it is `configure' which instantiates (i.e., don't
20780 # use $as_me), people would be surprised to read:
20781 # /* config.h. Generated by config.status. */
20782 configure_input='Generated from '`
20783 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20784 `' by configure.'
20785 if test x"$ac_file" != x-; then
20786 configure_input="$ac_file. $configure_input"
20787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20788 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20789 fi
20790 # Neutralize special characters interpreted by sed in replacement strings.
20791 case $configure_input in #(
20792 *\&* | *\|* | *\\* )
20793 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20794 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20795 *) ac_sed_conf_input=$configure_input;;
20796 esac
20797
20798 case $ac_tag in
20799 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20801 esac
20802 ;;
20803 esac
20804
20805 ac_dir=`$as_dirname -- "$ac_file" ||
20806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20807 X"$ac_file" : 'X\(//\)[^/]' \| \
20808 X"$ac_file" : 'X\(//\)$' \| \
20809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20810 printf "%s\n" X"$ac_file" |
20811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20812 s//\1/
20813 q
20814 }
20815 /^X\(\/\/\)[^/].*/{
20816 s//\1/
20817 q
20818 }
20819 /^X\(\/\/\)$/{
20820 s//\1/
20821 q
20822 }
20823 /^X\(\/\).*/{
20824 s//\1/
20825 q
20826 }
20827 s/.*/./; q'`
20828 as_dir="$ac_dir"; as_fn_mkdir_p
20829 ac_builddir=.
20830
20831 case "$ac_dir" in
20832 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20833 *)
20834 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20835 # A ".." for each directory in $ac_dir_suffix.
20836 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20837 case $ac_top_builddir_sub in
20838 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20839 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20840 esac ;;
20841 esac
20842 ac_abs_top_builddir=$ac_pwd
20843 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20844 # for backward compatibility:
20845 ac_top_builddir=$ac_top_build_prefix
20846
20847 case $srcdir in
20848 .) # We are building in place.
20849 ac_srcdir=.
20850 ac_top_srcdir=$ac_top_builddir_sub
20851 ac_abs_top_srcdir=$ac_pwd ;;
20852 [\\/]* | ?:[\\/]* ) # Absolute name.
20853 ac_srcdir=$srcdir$ac_dir_suffix;
20854 ac_top_srcdir=$srcdir
20855 ac_abs_top_srcdir=$srcdir ;;
20856 *) # Relative name.
20857 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20858 ac_top_srcdir=$ac_top_build_prefix$srcdir
20859 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20860 esac
20861 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20862
20863
20864 case $ac_mode in
20865 :F)
20866 #
20867 # CONFIG_FILE
20868 #
20869
20870 case $INSTALL in
20871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20872 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20873 esac
20874 ac_MKDIR_P=$MKDIR_P
20875 case $MKDIR_P in
20876 [\\/$]* | ?:[\\/]* ) ;;
20877 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20878 esac
20879 _ACEOF
20880
20881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20882 # If the template does not know about datarootdir, expand it.
20883 # FIXME: This hack should be removed a few years after 2.60.
20884 ac_datarootdir_hack=; ac_datarootdir_seen=
20885 ac_sed_dataroot='
20886 /datarootdir/ {
20887 p
20888 q
20889 }
20890 /@datadir@/p
20891 /@docdir@/p
20892 /@infodir@/p
20893 /@localedir@/p
20894 /@mandir@/p'
20895 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20896 *datarootdir*) ac_datarootdir_seen=yes;;
20897 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20899 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20900 _ACEOF
20901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20902 ac_datarootdir_hack='
20903 s&@datadir@&$datadir&g
20904 s&@docdir@&$docdir&g
20905 s&@infodir@&$infodir&g
20906 s&@localedir@&$localedir&g
20907 s&@mandir@&$mandir&g
20908 s&\\\${datarootdir}&$datarootdir&g' ;;
20909 esac
20910 _ACEOF
20911
20912 # Neutralize VPATH when `$srcdir' = `.'.
20913 # Shell code in configure.ac might set extrasub.
20914 # FIXME: do we really want to maintain this feature?
20915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20916 ac_sed_extra="$ac_vpsub
20917 $extrasub
20918 _ACEOF
20919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20920 :t
20921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20922 s|@configure_input@|$ac_sed_conf_input|;t t
20923 s&@top_builddir@&$ac_top_builddir_sub&;t t
20924 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20925 s&@srcdir@&$ac_srcdir&;t t
20926 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20927 s&@top_srcdir@&$ac_top_srcdir&;t t
20928 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20929 s&@builddir@&$ac_builddir&;t t
20930 s&@abs_builddir@&$ac_abs_builddir&;t t
20931 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20932 s&@INSTALL@&$ac_INSTALL&;t t
20933 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20934 $ac_datarootdir_hack
20935 "
20936 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20937 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20938
20939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20940 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20942 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20944 which seems to be undefined. Please make sure it is defined" >&5
20945 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20946 which seems to be undefined. Please make sure it is defined" >&2;}
20947
20948 rm -f "$ac_tmp/stdin"
20949 case $ac_file in
20950 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20951 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20952 esac \
20953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20954 ;;
20955 :H)
20956 #
20957 # CONFIG_HEADER
20958 #
20959 if test x"$ac_file" != x-; then
20960 {
20961 printf "%s\n" "/* $configure_input */" >&1 \
20962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20963 } >"$ac_tmp/config.h" \
20964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20965 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20967 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20968 else
20969 rm -f "$ac_file"
20970 mv "$ac_tmp/config.h" "$ac_file" \
20971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20972 fi
20973 else
20974 printf "%s\n" "/* $configure_input */" >&1 \
20975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20976 || as_fn_error $? "could not create -" "$LINENO" 5
20977 fi
20978 # Compute "$ac_file"'s index in $config_headers.
20979 _am_arg="$ac_file"
20980 _am_stamp_count=1
20981 for _am_header in $config_headers :; do
20982 case $_am_header in
20983 $_am_arg | $_am_arg:* )
20984 break ;;
20985 * )
20986 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20987 esac
20988 done
20989 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20990 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20991 X"$_am_arg" : 'X\(//\)[^/]' \| \
20992 X"$_am_arg" : 'X\(//\)$' \| \
20993 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20994 printf "%s\n" X"$_am_arg" |
20995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20996 s//\1/
20997 q
20998 }
20999 /^X\(\/\/\)[^/].*/{
21000 s//\1/
21001 q
21002 }
21003 /^X\(\/\/\)$/{
21004 s//\1/
21005 q
21006 }
21007 /^X\(\/\).*/{
21008 s//\1/
21009 q
21010 }
21011 s/.*/./; q'`/stamp-h$_am_stamp_count
21012 ;;
21013
21014 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21015 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21016 ;;
21017 esac
21018
21019
21020 case $ac_file$ac_mode in
21021 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21022 # Older Autoconf quotes --file arguments for eval, but not when files
21023 # are listed without --file. Let's play safe and only enable the eval
21024 # if we detect the quoting.
21025 # TODO: see whether this extra hack can be removed once we start
21026 # requiring Autoconf 2.70 or later.
21027 case $CONFIG_FILES in #(
21028 *\'*) :
21029 eval set x "$CONFIG_FILES" ;; #(
21030 *) :
21031 set x $CONFIG_FILES ;; #(
21032 *) :
21033 ;;
21034 esac
21035 shift
21036 # Used to flag and report bootstrapping failures.
21037 am_rc=0
21038 for am_mf
21039 do
21040 # Strip MF so we end up with the name of the file.
21041 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21042 # Check whether this is an Automake generated Makefile which includes
21043 # dependency-tracking related rules and includes.
21044 # Grep'ing the whole file directly is not great: AIX grep has a line
21045 # limit of 2048, but all sed's we know have understand at least 4000.
21046 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21047 || continue
21048 am_dirpart=`$as_dirname -- "$am_mf" ||
21049 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21050 X"$am_mf" : 'X\(//\)[^/]' \| \
21051 X"$am_mf" : 'X\(//\)$' \| \
21052 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21053 printf "%s\n" X"$am_mf" |
21054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21055 s//\1/
21056 q
21057 }
21058 /^X\(\/\/\)[^/].*/{
21059 s//\1/
21060 q
21061 }
21062 /^X\(\/\/\)$/{
21063 s//\1/
21064 q
21065 }
21066 /^X\(\/\).*/{
21067 s//\1/
21068 q
21069 }
21070 s/.*/./; q'`
21071 am_filepart=`$as_basename -- "$am_mf" ||
21072 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21073 X"$am_mf" : 'X\(//\)$' \| \
21074 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21075 printf "%s\n" X/"$am_mf" |
21076 sed '/^.*\/\([^/][^/]*\)\/*$/{
21077 s//\1/
21078 q
21079 }
21080 /^X\/\(\/\/\)$/{
21081 s//\1/
21082 q
21083 }
21084 /^X\/\(\/\).*/{
21085 s//\1/
21086 q
21087 }
21088 s/.*/./; q'`
21089 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21090 && sed -e '/# am--include-marker/d' "$am_filepart" \
21091 | $MAKE -f - am--depfiles" >&5
21092 (cd "$am_dirpart" \
21093 && sed -e '/# am--include-marker/d' "$am_filepart" \
21094 | $MAKE -f - am--depfiles) >&5 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } || am_rc=$?
21098 done
21099 if test $am_rc -ne 0; then
21100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21102 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21103 for automatic dependency tracking. If GNU make was not used, consider
21104 re-running the configure script with MAKE=\"gmake\" (or whatever is
21105 necessary). You can also try re-running configure with the
21106 '--disable-dependency-tracking' option to at least be able to build
21107 the package (albeit without support for automatic dependency tracking).
21108 See \`config.log' for more details" "$LINENO" 5; }
21109 fi
21110 { am_dirpart=; unset am_dirpart;}
21111 { am_filepart=; unset am_filepart;}
21112 { am_mf=; unset am_mf;}
21113 { am_rc=; unset am_rc;}
21114 rm -f conftest-deps.mk
21115 }
21116 ;;
21117 "libtool":C)
21118
21119 # See if we are running on zsh, and set the options that allow our
21120 # commands through without removal of \ escapes.
21121 if test -n "${ZSH_VERSION+set}"; then
21122 setopt NO_GLOB_SUBST
21123 fi
21124
21125 cfgfile=${ofile}T
21126 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21127 $RM "$cfgfile"
21128
21129 cat <<_LT_EOF >> "$cfgfile"
21130 #! $SHELL
21131 # Generated automatically by $as_me ($PACKAGE) $VERSION
21132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21134
21135 # Provide generalized library-building support services.
21136 # Written by Gordon Matzigkeit, 1996
21137
21138 # Copyright (C) 2014 Free Software Foundation, Inc.
21139 # This is free software; see the source for copying conditions. There is NO
21140 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21141
21142 # GNU Libtool is free software; you can redistribute it and/or modify
21143 # it under the terms of the GNU General Public License as published by
21144 # the Free Software Foundation; either version 2 of of the License, or
21145 # (at your option) any later version.
21146 #
21147 # As a special exception to the GNU General Public License, if you
21148 # distribute this file as part of a program or library that is built
21149 # using GNU Libtool, you may include this file under the same
21150 # distribution terms that you use for the rest of that program.
21151 #
21152 # GNU Libtool is distributed in the hope that it will be useful, but
21153 # WITHOUT ANY WARRANTY; without even the implied warranty of
21154 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21155 # GNU General Public License for more details.
21156 #
21157 # You should have received a copy of the GNU General Public License
21158 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21159
21160
21161 # The names of the tagged configurations supported by this script.
21162 available_tags=''
21163
21164 # Configured defaults for sys_lib_dlsearch_path munging.
21165 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21166
21167 # ### BEGIN LIBTOOL CONFIG
21168
21169 # Which release of libtool.m4 was used?
21170 macro_version=$macro_version
21171 macro_revision=$macro_revision
21172
21173 # Whether or not to build shared libraries.
21174 build_libtool_libs=$enable_shared
21175
21176 # Whether or not to build static libraries.
21177 build_old_libs=$enable_static
21178
21179 # What type of objects to build.
21180 pic_mode=$pic_mode
21181
21182 # Whether or not to optimize for fast installation.
21183 fast_install=$enable_fast_install
21184
21185 # Shared archive member basename,for filename based shared library versioning on AIX.
21186 shared_archive_member_spec=$shared_archive_member_spec
21187
21188 # Shell to use when invoking shell scripts.
21189 SHELL=$lt_SHELL
21190
21191 # An echo program that protects backslashes.
21192 ECHO=$lt_ECHO
21193
21194 # The PATH separator for the build system.
21195 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21196
21197 # The host system.
21198 host_alias=$host_alias
21199 host=$host
21200 host_os=$host_os
21201
21202 # The build system.
21203 build_alias=$build_alias
21204 build=$build
21205 build_os=$build_os
21206
21207 # A sed program that does not truncate output.
21208 SED=$lt_SED
21209
21210 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21211 Xsed="\$SED -e 1s/^X//"
21212
21213 # A grep program that handles long lines.
21214 GREP=$lt_GREP
21215
21216 # An ERE matcher.
21217 EGREP=$lt_EGREP
21218
21219 # A literal string matcher.
21220 FGREP=$lt_FGREP
21221
21222 # A BSD- or MS-compatible name lister.
21223 NM=$lt_NM
21224
21225 # Whether we need soft or hard links.
21226 LN_S=$lt_LN_S
21227
21228 # What is the maximum length of a command?
21229 max_cmd_len=$max_cmd_len
21230
21231 # Object file suffix (normally "o").
21232 objext=$ac_objext
21233
21234 # Executable file suffix (normally "").
21235 exeext=$exeext
21236
21237 # whether the shell understands "unset".
21238 lt_unset=$lt_unset
21239
21240 # turn spaces into newlines.
21241 SP2NL=$lt_lt_SP2NL
21242
21243 # turn newlines into spaces.
21244 NL2SP=$lt_lt_NL2SP
21245
21246 # convert \$build file names to \$host format.
21247 to_host_file_cmd=$lt_cv_to_host_file_cmd
21248
21249 # convert \$build files to toolchain format.
21250 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21251
21252 # A file(cmd) program that detects file types.
21253 FILECMD=$lt_FILECMD
21254
21255 # An object symbol dumper.
21256 OBJDUMP=$lt_OBJDUMP
21257
21258 # Method to check whether dependent libraries are shared objects.
21259 deplibs_check_method=$lt_deplibs_check_method
21260
21261 # Command to use when deplibs_check_method = "file_magic".
21262 file_magic_cmd=$lt_file_magic_cmd
21263
21264 # How to find potential files when deplibs_check_method = "file_magic".
21265 file_magic_glob=$lt_file_magic_glob
21266
21267 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21268 want_nocaseglob=$lt_want_nocaseglob
21269
21270 # DLL creation program.
21271 DLLTOOL=$lt_DLLTOOL
21272
21273 # Command to associate shared and link libraries.
21274 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21275
21276 # The archiver.
21277 AR=$lt_AR
21278
21279 # Flags to create an archive (by configure).
21280 lt_ar_flags=$lt_ar_flags
21281
21282 # Flags to create an archive.
21283 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21284
21285 # How to feed a file listing to the archiver.
21286 archiver_list_spec=$lt_archiver_list_spec
21287
21288 # A symbol stripping program.
21289 STRIP=$lt_STRIP
21290
21291 # Commands used to install an old-style archive.
21292 RANLIB=$lt_RANLIB
21293 old_postinstall_cmds=$lt_old_postinstall_cmds
21294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21295
21296 # Whether to use a lock for old archive extraction.
21297 lock_old_archive_extraction=$lock_old_archive_extraction
21298
21299 # A C compiler.
21300 LTCC=$lt_CC
21301
21302 # LTCC compiler flags.
21303 LTCFLAGS=$lt_CFLAGS
21304
21305 # Take the output of nm and produce a listing of raw symbols and C names.
21306 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21307
21308 # Transform the output of nm in a proper C declaration.
21309 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21310
21311 # Transform the output of nm into a list of symbols to manually relocate.
21312 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21313
21314 # Transform the output of nm in a C name address pair.
21315 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21316
21317 # Transform the output of nm in a C name address pair when lib prefix is needed.
21318 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21319
21320 # The name lister interface.
21321 nm_interface=$lt_lt_cv_nm_interface
21322
21323 # Specify filename containing input files for \$NM.
21324 nm_file_list_spec=$lt_nm_file_list_spec
21325
21326 # The root where to search for dependent libraries,and where our libraries should be installed.
21327 lt_sysroot=$lt_sysroot
21328
21329 # Command to truncate a binary pipe.
21330 lt_truncate_bin=$lt_lt_cv_truncate_bin
21331
21332 # The name of the directory that contains temporary libtool files.
21333 objdir=$objdir
21334
21335 # Used to examine libraries when file_magic_cmd begins with "file".
21336 MAGIC_CMD=$MAGIC_CMD
21337
21338 # Must we lock files when doing compilation?
21339 need_locks=$lt_need_locks
21340
21341 # Manifest tool.
21342 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21343
21344 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21345 DSYMUTIL=$lt_DSYMUTIL
21346
21347 # Tool to change global to local symbols on Mac OS X.
21348 NMEDIT=$lt_NMEDIT
21349
21350 # Tool to manipulate fat objects and archives on Mac OS X.
21351 LIPO=$lt_LIPO
21352
21353 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21354 OTOOL=$lt_OTOOL
21355
21356 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21357 OTOOL64=$lt_OTOOL64
21358
21359 # Old archive suffix (normally "a").
21360 libext=$libext
21361
21362 # Shared library suffix (normally ".so").
21363 shrext_cmds=$lt_shrext_cmds
21364
21365 # The commands to extract the exported symbol list from a shared archive.
21366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21367
21368 # Variables whose values should be saved in libtool wrapper scripts and
21369 # restored at link time.
21370 variables_saved_for_relink=$lt_variables_saved_for_relink
21371
21372 # Do we need the "lib" prefix for modules?
21373 need_lib_prefix=$need_lib_prefix
21374
21375 # Do we need a version for libraries?
21376 need_version=$need_version
21377
21378 # Library versioning type.
21379 version_type=$version_type
21380
21381 # Shared library runtime path variable.
21382 runpath_var=$runpath_var
21383
21384 # Shared library path variable.
21385 shlibpath_var=$shlibpath_var
21386
21387 # Is shlibpath searched before the hard-coded library search path?
21388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21389
21390 # Format of library name prefix.
21391 libname_spec=$lt_libname_spec
21392
21393 # List of archive names. First name is the real one, the rest are links.
21394 # The last name is the one that the linker finds with -lNAME
21395 library_names_spec=$lt_library_names_spec
21396
21397 # The coded name of the library, if different from the real name.
21398 soname_spec=$lt_soname_spec
21399
21400 # Permission mode override for installation of shared libraries.
21401 install_override_mode=$lt_install_override_mode
21402
21403 # Command to use after installation of a shared archive.
21404 postinstall_cmds=$lt_postinstall_cmds
21405
21406 # Command to use after uninstallation of a shared archive.
21407 postuninstall_cmds=$lt_postuninstall_cmds
21408
21409 # Commands used to finish a libtool library installation in a directory.
21410 finish_cmds=$lt_finish_cmds
21411
21412 # As "finish_cmds", except a single script fragment to be evaled but
21413 # not shown.
21414 finish_eval=$lt_finish_eval
21415
21416 # Whether we should hardcode library paths into libraries.
21417 hardcode_into_libs=$hardcode_into_libs
21418
21419 # Compile-time system search path for libraries.
21420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21421
21422 # Detected run-time system search path for libraries.
21423 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21424
21425 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21426 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21427
21428 # Whether dlopen is supported.
21429 dlopen_support=$enable_dlopen
21430
21431 # Whether dlopen of programs is supported.
21432 dlopen_self=$enable_dlopen_self
21433
21434 # Whether dlopen of statically linked programs is supported.
21435 dlopen_self_static=$enable_dlopen_self_static
21436
21437 # Commands to strip libraries.
21438 old_striplib=$lt_old_striplib
21439 striplib=$lt_striplib
21440
21441
21442 # The linker used to build libraries.
21443 LD=$lt_LD
21444
21445 # How to create reloadable object files.
21446 reload_flag=$lt_reload_flag
21447 reload_cmds=$lt_reload_cmds
21448
21449 # Commands used to build an old-style archive.
21450 old_archive_cmds=$lt_old_archive_cmds
21451
21452 # A language specific compiler.
21453 CC=$lt_compiler
21454
21455 # Is the compiler the GNU compiler?
21456 with_gcc=$GCC
21457
21458 # Compiler flag to turn off builtin functions.
21459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21460
21461 # Additional compiler flags for building library objects.
21462 pic_flag=$lt_lt_prog_compiler_pic
21463
21464 # How to pass a linker flag through the compiler.
21465 wl=$lt_lt_prog_compiler_wl
21466
21467 # Compiler flag to prevent dynamic linking.
21468 link_static_flag=$lt_lt_prog_compiler_static
21469
21470 # Does compiler simultaneously support -c and -o options?
21471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21472
21473 # Whether or not to add -lc for building shared libraries.
21474 build_libtool_need_lc=$archive_cmds_need_lc
21475
21476 # Whether or not to disallow shared libs when runtime libs are static.
21477 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21478
21479 # Compiler flag to allow reflexive dlopens.
21480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21481
21482 # Compiler flag to generate shared objects directly from archives.
21483 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21484
21485 # Whether the compiler copes with passing no objects directly.
21486 compiler_needs_object=$lt_compiler_needs_object
21487
21488 # Create an old-style archive from a shared archive.
21489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21490
21491 # Create a temporary old-style archive to link instead of a shared archive.
21492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21493
21494 # Commands used to build a shared archive.
21495 archive_cmds=$lt_archive_cmds
21496 archive_expsym_cmds=$lt_archive_expsym_cmds
21497
21498 # Commands used to build a loadable module if different from building
21499 # a shared archive.
21500 module_cmds=$lt_module_cmds
21501 module_expsym_cmds=$lt_module_expsym_cmds
21502
21503 # Whether we are building with GNU ld or not.
21504 with_gnu_ld=$lt_with_gnu_ld
21505
21506 # Flag that allows shared libraries with undefined symbols to be built.
21507 allow_undefined_flag=$lt_allow_undefined_flag
21508
21509 # Flag that enforces no undefined symbols.
21510 no_undefined_flag=$lt_no_undefined_flag
21511
21512 # Flag to hardcode \$libdir into a binary during linking.
21513 # This must work even if \$libdir does not exist
21514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21515
21516 # Whether we need a single "-rpath" flag with a separated argument.
21517 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21518
21519 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21520 # DIR into the resulting binary.
21521 hardcode_direct=$hardcode_direct
21522
21523 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21524 # DIR into the resulting binary and the resulting library dependency is
21525 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21526 # library is relocated.
21527 hardcode_direct_absolute=$hardcode_direct_absolute
21528
21529 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21530 # into the resulting binary.
21531 hardcode_minus_L=$hardcode_minus_L
21532
21533 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21534 # into the resulting binary.
21535 hardcode_shlibpath_var=$hardcode_shlibpath_var
21536
21537 # Set to "yes" if building a shared library automatically hardcodes DIR
21538 # into the library and all subsequent libraries and executables linked
21539 # against it.
21540 hardcode_automatic=$hardcode_automatic
21541
21542 # Set to yes if linker adds runtime paths of dependent libraries
21543 # to runtime path list.
21544 inherit_rpath=$inherit_rpath
21545
21546 # Whether libtool must link a program against all its dependency libraries.
21547 link_all_deplibs=$link_all_deplibs
21548
21549 # Set to "yes" if exported symbols are required.
21550 always_export_symbols=$always_export_symbols
21551
21552 # The commands to list exported symbols.
21553 export_symbols_cmds=$lt_export_symbols_cmds
21554
21555 # Symbols that should not be listed in the preloaded symbols.
21556 exclude_expsyms=$lt_exclude_expsyms
21557
21558 # Symbols that must always be exported.
21559 include_expsyms=$lt_include_expsyms
21560
21561 # Commands necessary for linking programs (against libraries) with templates.
21562 prelink_cmds=$lt_prelink_cmds
21563
21564 # Commands necessary for finishing linking programs.
21565 postlink_cmds=$lt_postlink_cmds
21566
21567 # Specify filename containing input files.
21568 file_list_spec=$lt_file_list_spec
21569
21570 # How to hardcode a shared library path into an executable.
21571 hardcode_action=$hardcode_action
21572
21573 # ### END LIBTOOL CONFIG
21574
21575 _LT_EOF
21576
21577 cat <<'_LT_EOF' >> "$cfgfile"
21578
21579 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21580
21581 # func_munge_path_list VARIABLE PATH
21582 # -----------------------------------
21583 # VARIABLE is name of variable containing _space_ separated list of
21584 # directories to be munged by the contents of PATH, which is string
21585 # having a format:
21586 # "DIR[:DIR]:"
21587 # string "DIR[ DIR]" will be prepended to VARIABLE
21588 # ":DIR[:DIR]"
21589 # string "DIR[ DIR]" will be appended to VARIABLE
21590 # "DIRP[:DIRP]::[DIRA:]DIRA"
21591 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21592 # "DIRA[ DIRA]" will be appended to VARIABLE
21593 # "DIR[:DIR]"
21594 # VARIABLE will be replaced by "DIR[ DIR]"
21595 func_munge_path_list ()
21596 {
21597 case x$2 in
21598 x)
21599 ;;
21600 *:)
21601 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21602 ;;
21603 x:*)
21604 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21605 ;;
21606 *::*)
21607 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21608 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21609 ;;
21610 *)
21611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21612 ;;
21613 esac
21614 }
21615
21616
21617 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21618 func_cc_basename ()
21619 {
21620 for cc_temp in $*""; do
21621 case $cc_temp in
21622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21624 \-*) ;;
21625 *) break;;
21626 esac
21627 done
21628 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21629 }
21630
21631
21632 # ### END FUNCTIONS SHARED WITH CONFIGURE
21633
21634 _LT_EOF
21635
21636 case $host_os in
21637 aix3*)
21638 cat <<\_LT_EOF >> "$cfgfile"
21639 # AIX sometimes has problems with the GCC collect2 program. For some
21640 # reason, if we set the COLLECT_NAMES environment variable, the problems
21641 # vanish in a puff of smoke.
21642 if test set != "${COLLECT_NAMES+set}"; then
21643 COLLECT_NAMES=
21644 export COLLECT_NAMES
21645 fi
21646 _LT_EOF
21647 ;;
21648 esac
21649
21650
21651
21652 ltmain=$ac_aux_dir/ltmain.sh
21653
21654
21655 # We use sed instead of cat because bash on DJGPP gets confused if
21656 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21657 # text mode, it properly converts lines to CR/LF. This bash problem
21658 # is reportedly fixed, but why not run on old versions too?
21659 $SED '$q' "$ltmain" >> "$cfgfile" \
21660 || (rm -f "$cfgfile"; exit 1)
21661
21662 mv -f "$cfgfile" "$ofile" ||
21663 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21664 chmod +x "$ofile"
21665
21666 ;;
21667
21668 esac
21669 done # for ac_tag
21670
21671
21672 as_fn_exit 0
21673 _ACEOF
21674 ac_clean_files=$ac_clean_files_save
21675
21676 test $ac_write_fail = 0 ||
21677 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21678
21679
21680 # configure is writing to config.log, and then calls config.status.
21681 # config.status does its own redirection, appending to config.log.
21682 # Unfortunately, on DOS this fails, as config.log is still kept open
21683 # by configure, so config.status won't be able to write to it; its
21684 # output is simply discarded. So we exec the FD to /dev/null,
21685 # effectively closing config.log, so it can be properly (re)opened and
21686 # appended to by config.status. When coming back to configure, we
21687 # need to make the FD available again.
21688 if test "$no_create" != yes; then
21689 ac_cs_success=:
21690 ac_config_status_args=
21691 test "$silent" = yes &&
21692 ac_config_status_args="$ac_config_status_args --quiet"
21693 exec 5>/dev/null
21694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21695 exec 5>>config.log
21696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21697 # would make configure fail if this is the last instruction.
21698 $ac_cs_success || as_fn_exit 1
21699 fi
21700 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21702 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21703 fi
21704
21705
21706