configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libxkbfile 1.1.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/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/libxkbfile/-/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='libxkbfile'
624 PACKAGE_TARNAME='libxkbfile'
625 PACKAGE_VERSION='1.1.1'
626 PACKAGE_STRING='libxkbfile 1.1.1'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/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 XKBFILE_LIBS
668 XKBFILE_CFLAGS
669 MAN_SUBSTS
670 XORG_MAN_PAGE
671 ADMIN_MAN_DIR
672 DRIVER_MAN_DIR
673 MISC_MAN_DIR
674 FILE_MAN_DIR
675 LIB_MAN_DIR
676 APP_MAN_DIR
677 ADMIN_MAN_SUFFIX
678 DRIVER_MAN_SUFFIX
679 MISC_MAN_SUFFIX
680 FILE_MAN_SUFFIX
681 LIB_MAN_SUFFIX
682 APP_MAN_SUFFIX
683 INSTALL_CMD
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 CHANGELOG_CMD
688 STRICT_CFLAGS
689 CWARNFLAGS
690 BASE_CFLAGS
691 LT_SYS_LIBRARY_PATH
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 FILECMD
704 LN_S
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 EGREP
711 GREP
712 SED
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__include
721 DEPDIR
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
728 CC
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 LIBTOOL
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 CSCOPE
743 ETAGS
744 CTAGS
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL
807 am__quote'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_shared
813 enable_static
814 with_pic
815 enable_fast_install
816 with_aix_soname
817 enable_dependency_tracking
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_selective_werror
822 enable_strict_compilation
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 LT_SYS_LIBRARY_PATH
833 PKG_CONFIG
834 PKG_CONFIG_PATH
835 PKG_CONFIG_LIBDIR
836 XKBFILE_CFLAGS
837 XKBFILE_LIBS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 runstatedir='${localstatedir}/run'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: \`$ac_useropt'"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: \`$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: \`$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information"
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $? "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir runstatedir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 printf "%s\n" X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures libxkbfile 1.1.1 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of libxkbfile 1.1.1:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --enable-dependency-tracking
1472 do not reject slow dependency extractors
1473 --disable-dependency-tracking
1474 speeds up one-time build
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --disable-selective-werror
1477 Turn off selective compiler errors. (default:
1478 enabled)
1479 --enable-strict-compilation
1480 Enable all warnings from compiler and make them
1481 errors (default: disabled)
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-aix-soname=aix|svr4|both
1489 shared library versioning (aka "SONAME") variant to
1490 provide on AIX, [default=aix].
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1493 compiler's sysroot if not specified).
1494
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 LT_SYS_LIBRARY_PATH
1504 User-defined run-time library search path.
1505 PKG_CONFIG path to pkg-config utility
1506 PKG_CONFIG_PATH
1507 directories to add to pkg-config's search path
1508 PKG_CONFIG_LIBDIR
1509 path overriding pkg-config's built-in search path
1510 XKBFILE_CFLAGS
1511 C compiler flags for XKBFILE, overriding pkg-config
1512 XKBFILE_LIBS
1513 linker flags for XKBFILE, overriding pkg-config
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for configure.gnu first; this name is used for a wrapper for
1565 # Metaconfig's "Configure" on case-insensitive file systems.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 libxkbfile configure 1.1.1
1583 generated by GNU Autoconf 2.71
1584
1585 Copyright (C) 2021 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest.beam
1603 if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 printf "%s\n" "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext
1622 then :
1623 ac_retval=0
1624 else $as_nop
1625 printf "%s\n" "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_c_try_link LINENO
1636 # -----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_link ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1642 if { { ac_try="$ac_link"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 printf "%s\n" "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest$ac_exeext && {
1661 test "$cross_compiling" = yes ||
1662 test -x conftest$ac_exeext
1663 }
1664 then :
1665 ac_retval=0
1666 else $as_nop
1667 printf "%s\n" "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674 # interfere with the next link command; also delete a directory that is
1675 # left behind by Apple's compiler. We do this before executing the actions.
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_link
1681
1682 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists and can be compiled using the include files in
1685 # INCLUDES, setting the cache variable VAR accordingly.
1686 ac_fn_c_check_header_compile ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 printf %s "checking for $2... " >&6; }
1691 if eval test \${$3+y}
1692 then :
1693 printf %s "(cached) " >&6
1694 else $as_nop
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 $4
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"
1701 then :
1702 eval "$3=yes"
1703 else $as_nop
1704 eval "$3=no"
1705 fi
1706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1707 fi
1708 eval ac_res=\$$3
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 printf "%s\n" "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713 } # ac_fn_c_check_header_compile
1714
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 printf %s "checking for $2... " >&6; }
1723 if eval test \${$3+y}
1724 then :
1725 printf %s "(cached) " >&6
1726 else $as_nop
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1731 #define $2 innocuous_$2
1732
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $2 (); below. */
1735
1736 #include <limits.h>
1737 #undef $2
1738
1739 /* Override any GCC internal prototype to avoid an error.
1740 Use char because int might match the return type of a GCC
1741 builtin and then its argument prototype would still apply. */
1742 #ifdef __cplusplus
1743 extern "C"
1744 #endif
1745 char $2 ();
1746 /* The GNU C library defines this for functions which it implements
1747 to always fail with ENOSYS. Some functions are actually named
1748 something starting with __ and the normal name is an alias. */
1749 #if defined __stub_$2 || defined __stub___$2
1750 choke me
1751 #endif
1752
1753 int
1754 main (void)
1755 {
1756 return $2 ();
1757 ;
1758 return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_link "$LINENO"
1762 then :
1763 eval "$3=yes"
1764 else $as_nop
1765 eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1768 conftest$ac_exeext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 printf "%s\n" "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_func
1776
1777 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1778 # ------------------------------------------------------------------
1779 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1780 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1781 ac_fn_check_decl ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 as_decl_name=`echo $2|sed 's/ *(.*//'`
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1786 printf %s "checking whether $as_decl_name is declared... " >&6; }
1787 if eval test \${$3+y}
1788 then :
1789 printf %s "(cached) " >&6
1790 else $as_nop
1791 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1792 eval ac_save_FLAGS=\$$6
1793 as_fn_append $6 " $5"
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 int
1798 main (void)
1799 {
1800 #ifndef $as_decl_name
1801 #ifdef __cplusplus
1802 (void) $as_decl_use;
1803 #else
1804 (void) $as_decl_name;
1805 #endif
1806 #endif
1807
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"
1813 then :
1814 eval "$3=yes"
1815 else $as_nop
1816 eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1819 eval $6=\$ac_save_FLAGS
1820
1821 fi
1822 eval ac_res=\$$3
1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 printf "%s\n" "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } # ac_fn_check_decl
1828 ac_configure_args_raw=
1829 for ac_arg
1830 do
1831 case $ac_arg in
1832 *\'*)
1833 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1834 esac
1835 as_fn_append ac_configure_args_raw " '$ac_arg'"
1836 done
1837
1838 case $ac_configure_args_raw in
1839 *$as_nl*)
1840 ac_safe_unquote= ;;
1841 *)
1842 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1843 ac_unsafe_a="$ac_unsafe_z#~"
1844 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1845 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1846 esac
1847
1848 cat >config.log <<_ACEOF
1849 This file contains any messages produced by compilers while
1850 running configure, to aid debugging if configure makes a mistake.
1851
1852 It was created by libxkbfile $as_me 1.1.1, which was
1853 generated by GNU Autoconf 2.71. Invocation command line was
1854
1855 $ $0$ac_configure_args_raw
1856
1857 _ACEOF
1858 exec 5>>config.log
1859 {
1860 cat <<_ASUNAME
1861 ## --------- ##
1862 ## Platform. ##
1863 ## --------- ##
1864
1865 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1866 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1867 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1868 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1869 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1870
1871 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1872 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1873
1874 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1875 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1876 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1877 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1878 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1879 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1880 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1881
1882 _ASUNAME
1883
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 case $as_dir in #(((
1889 '') as_dir=./ ;;
1890 */) ;;
1891 *) as_dir=$as_dir/ ;;
1892 esac
1893 printf "%s\n" "PATH: $as_dir"
1894 done
1895 IFS=$as_save_IFS
1896
1897 } >&5
1898
1899 cat >&5 <<_ACEOF
1900
1901
1902 ## ----------- ##
1903 ## Core tests. ##
1904 ## ----------- ##
1905
1906 _ACEOF
1907
1908
1909 # Keep a trace of the command line.
1910 # Strip out --no-create and --no-recursion so they do not pile up.
1911 # Strip out --silent because we don't want to record it for future runs.
1912 # Also quote any args containing shell meta-characters.
1913 # Make two passes to allow for proper duplicate-argument suppression.
1914 ac_configure_args=
1915 ac_configure_args0=
1916 ac_configure_args1=
1917 ac_must_keep_next=false
1918 for ac_pass in 1 2
1919 do
1920 for ac_arg
1921 do
1922 case $ac_arg in
1923 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1925 | -silent | --silent | --silen | --sile | --sil)
1926 continue ;;
1927 *\'*)
1928 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 esac
1930 case $ac_pass in
1931 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1932 2)
1933 as_fn_append ac_configure_args1 " '$ac_arg'"
1934 if test $ac_must_keep_next = true; then
1935 ac_must_keep_next=false # Got value, back to normal.
1936 else
1937 case $ac_arg in
1938 *=* | --config-cache | -C | -disable-* | --disable-* \
1939 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1940 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1941 | -with-* | --with-* | -without-* | --without-* | --x)
1942 case "$ac_configure_args0 " in
1943 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1944 esac
1945 ;;
1946 -* ) ac_must_keep_next=true ;;
1947 esac
1948 fi
1949 as_fn_append ac_configure_args " '$ac_arg'"
1950 ;;
1951 esac
1952 done
1953 done
1954 { ac_configure_args0=; unset ac_configure_args0;}
1955 { ac_configure_args1=; unset ac_configure_args1;}
1956
1957 # When interrupted or exit'd, cleanup temporary files, and complete
1958 # config.log. We remove comments because anyway the quotes in there
1959 # would cause problems or look ugly.
1960 # WARNING: Use '\'' to represent an apostrophe within the trap.
1961 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1962 trap 'exit_status=$?
1963 # Sanitize IFS.
1964 IFS=" "" $as_nl"
1965 # Save into config.log some information that might help in debugging.
1966 {
1967 echo
1968
1969 printf "%s\n" "## ---------------- ##
1970 ## Cache variables. ##
1971 ## ---------------- ##"
1972 echo
1973 # The following way of writing the cache mishandles newlines in values,
1974 (
1975 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in #(
1978 *${as_nl}*)
1979 case $ac_var in #(
1980 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1981 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1982 esac
1983 case $ac_var in #(
1984 _ | IFS | as_nl) ;; #(
1985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1986 *) { eval $ac_var=; unset $ac_var;} ;;
1987 esac ;;
1988 esac
1989 done
1990 (set) 2>&1 |
1991 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1992 *${as_nl}ac_space=\ *)
1993 sed -n \
1994 "s/'\''/'\''\\\\'\'''\''/g;
1995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1996 ;; #(
1997 *)
1998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 ;;
2000 esac |
2001 sort
2002 )
2003 echo
2004
2005 printf "%s\n" "## ----------------- ##
2006 ## Output variables. ##
2007 ## ----------------- ##"
2008 echo
2009 for ac_var in $ac_subst_vars
2010 do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in
2013 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 esac
2015 printf "%s\n" "$ac_var='\''$ac_val'\''"
2016 done | sort
2017 echo
2018
2019 if test -n "$ac_subst_files"; then
2020 printf "%s\n" "## ------------------- ##
2021 ## File substitutions. ##
2022 ## ------------------- ##"
2023 echo
2024 for ac_var in $ac_subst_files
2025 do
2026 eval ac_val=\$$ac_var
2027 case $ac_val in
2028 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 esac
2030 printf "%s\n" "$ac_var='\''$ac_val'\''"
2031 done | sort
2032 echo
2033 fi
2034
2035 if test -s confdefs.h; then
2036 printf "%s\n" "## ----------- ##
2037 ## confdefs.h. ##
2038 ## ----------- ##"
2039 echo
2040 cat confdefs.h
2041 echo
2042 fi
2043 test "$ac_signal" != 0 &&
2044 printf "%s\n" "$as_me: caught signal $ac_signal"
2045 printf "%s\n" "$as_me: exit $exit_status"
2046 } >&5
2047 rm -f core *.core core.conftest.* &&
2048 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2049 exit $exit_status
2050 ' 0
2051 for ac_signal in 1 2 13 15; do
2052 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2053 done
2054 ac_signal=0
2055
2056 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2057 rm -f -r conftest* confdefs.h
2058
2059 printf "%s\n" "/* confdefs.h */" > confdefs.h
2060
2061 # Predefined preprocessor variables.
2062
2063 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2064
2065 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2066
2067 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2068
2069 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2070
2071 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2072
2073 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2074
2075
2076 # Let the site file select an alternate cache file if it wants to.
2077 # Prefer an explicitly selected file to automatically selected ones.
2078 if test -n "$CONFIG_SITE"; then
2079 ac_site_files="$CONFIG_SITE"
2080 elif test "x$prefix" != xNONE; then
2081 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2082 else
2083 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2084 fi
2085
2086 for ac_site_file in $ac_site_files
2087 do
2088 case $ac_site_file in #(
2089 */*) :
2090 ;; #(
2091 *) :
2092 ac_site_file=./$ac_site_file ;;
2093 esac
2094 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2096 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2097 sed 's/^/| /' "$ac_site_file" >&5
2098 . "$ac_site_file" \
2099 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2100 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2101 as_fn_error $? "failed to load site script $ac_site_file
2102 See \`config.log' for more details" "$LINENO" 5; }
2103 fi
2104 done
2105
2106 if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special files
2108 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2109 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2111 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2112 case $cache_file in
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
2115 esac
2116 fi
2117 else
2118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2119 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2120 >$cache_file
2121 fi
2122
2123 # Test code for whether the C compiler supports C89 (global declarations)
2124 ac_c_conftest_c89_globals='
2125 /* Does the compiler advertise C89 conformance?
2126 Do not test the value of __STDC__, because some compilers set it to 0
2127 while being otherwise adequately conformant. */
2128 #if !defined __STDC__
2129 # error "Compiler does not advertise C89 conformance"
2130 #endif
2131
2132 #include <stddef.h>
2133 #include <stdarg.h>
2134 struct stat;
2135 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2136 struct buf { int x; };
2137 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2138 static char *e (p, i)
2139 char **p;
2140 int i;
2141 {
2142 return p[i];
2143 }
2144 static char *f (char * (*g) (char **, int), char **p, ...)
2145 {
2146 char *s;
2147 va_list v;
2148 va_start (v,p);
2149 s = g (p, va_arg (v,int));
2150 va_end (v);
2151 return s;
2152 }
2153
2154 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2155 function prototypes and stuff, but not \xHH hex character constants.
2156 These do not provoke an error unfortunately, instead are silently treated
2157 as an "x". The following induces an error, until -std is added to get
2158 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2159 array size at least. It is necessary to write \x00 == 0 to get something
2160 that is true only with -std. */
2161 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2162
2163 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2164 inside strings and character constants. */
2165 #define FOO(x) '\''x'\''
2166 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2167
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2172 int, int);'
2173
2174 # Test code for whether the C compiler supports C89 (body of main).
2175 ac_c_conftest_c89_main='
2176 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2177 '
2178
2179 # Test code for whether the C compiler supports C99 (global declarations)
2180 ac_c_conftest_c99_globals='
2181 // Does the compiler advertise C99 conformance?
2182 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2183 # error "Compiler does not advertise C99 conformance"
2184 #endif
2185
2186 #include <stdbool.h>
2187 extern int puts (const char *);
2188 extern int printf (const char *, ...);
2189 extern int dprintf (int, const char *, ...);
2190 extern void *malloc (size_t);
2191
2192 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2193 // dprintf is used instead of fprintf to avoid needing to declare
2194 // FILE and stderr.
2195 #define debug(...) dprintf (2, __VA_ARGS__)
2196 #define showlist(...) puts (#__VA_ARGS__)
2197 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2198 static void
2199 test_varargs_macros (void)
2200 {
2201 int x = 1234;
2202 int y = 5678;
2203 debug ("Flag");
2204 debug ("X = %d\n", x);
2205 showlist (The first, second, and third items.);
2206 report (x>y, "x is %d but y is %d", x, y);
2207 }
2208
2209 // Check long long types.
2210 #define BIG64 18446744073709551615ull
2211 #define BIG32 4294967295ul
2212 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2213 #if !BIG_OK
2214 #error "your preprocessor is broken"
2215 #endif
2216 #if BIG_OK
2217 #else
2218 #error "your preprocessor is broken"
2219 #endif
2220 static long long int bignum = -9223372036854775807LL;
2221 static unsigned long long int ubignum = BIG64;
2222
2223 struct incomplete_array
2224 {
2225 int datasize;
2226 double data[];
2227 };
2228
2229 struct named_init {
2230 int number;
2231 const wchar_t *name;
2232 double average;
2233 };
2234
2235 typedef const char *ccp;
2236
2237 static inline int
2238 test_restrict (ccp restrict text)
2239 {
2240 // See if C++-style comments work.
2241 // Iterate through items via the restricted pointer.
2242 // Also check for declarations in for loops.
2243 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2244 continue;
2245 return 0;
2246 }
2247
2248 // Check varargs and va_copy.
2249 static bool
2250 test_varargs (const char *format, ...)
2251 {
2252 va_list args;
2253 va_start (args, format);
2254 va_list args_copy;
2255 va_copy (args_copy, args);
2256
2257 const char *str = "";
2258 int number = 0;
2259 float fnumber = 0;
2260
2261 while (*format)
2262 {
2263 switch (*format++)
2264 {
2265 case '\''s'\'': // string
2266 str = va_arg (args_copy, const char *);
2267 break;
2268 case '\''d'\'': // int
2269 number = va_arg (args_copy, int);
2270 break;
2271 case '\''f'\'': // float
2272 fnumber = va_arg (args_copy, double);
2273 break;
2274 default:
2275 break;
2276 }
2277 }
2278 va_end (args_copy);
2279 va_end (args);
2280
2281 return *str && number && fnumber;
2282 }
2283 '
2284
2285 # Test code for whether the C compiler supports C99 (body of main).
2286 ac_c_conftest_c99_main='
2287 // Check bool.
2288 _Bool success = false;
2289 success |= (argc != 0);
2290
2291 // Check restrict.
2292 if (test_restrict ("String literal") == 0)
2293 success = true;
2294 char *restrict newvar = "Another string";
2295
2296 // Check varargs.
2297 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2298 test_varargs_macros ();
2299
2300 // Check flexible array members.
2301 struct incomplete_array *ia =
2302 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2303 ia->datasize = 10;
2304 for (int i = 0; i < ia->datasize; ++i)
2305 ia->data[i] = i * 1.234;
2306
2307 // Check named initializers.
2308 struct named_init ni = {
2309 .number = 34,
2310 .name = L"Test wide string",
2311 .average = 543.34343,
2312 };
2313
2314 ni.number = 58;
2315
2316 int dynamic_array[ni.number];
2317 dynamic_array[0] = argv[0][0];
2318 dynamic_array[ni.number - 1] = 543;
2319
2320 // work around unused variable warnings
2321 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2322 || dynamic_array[ni.number - 1] != 543);
2323 '
2324
2325 # Test code for whether the C compiler supports C11 (global declarations)
2326 ac_c_conftest_c11_globals='
2327 // Does the compiler advertise C11 conformance?
2328 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2329 # error "Compiler does not advertise C11 conformance"
2330 #endif
2331
2332 // Check _Alignas.
2333 char _Alignas (double) aligned_as_double;
2334 char _Alignas (0) no_special_alignment;
2335 extern char aligned_as_int;
2336 char _Alignas (0) _Alignas (int) aligned_as_int;
2337
2338 // Check _Alignof.
2339 enum
2340 {
2341 int_alignment = _Alignof (int),
2342 int_array_alignment = _Alignof (int[100]),
2343 char_alignment = _Alignof (char)
2344 };
2345 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2346
2347 // Check _Noreturn.
2348 int _Noreturn does_not_return (void) { for (;;) continue; }
2349
2350 // Check _Static_assert.
2351 struct test_static_assert
2352 {
2353 int x;
2354 _Static_assert (sizeof (int) <= sizeof (long int),
2355 "_Static_assert does not work in struct");
2356 long int y;
2357 };
2358
2359 // Check UTF-8 literals.
2360 #define u8 syntax error!
2361 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2362
2363 // Check duplicate typedefs.
2364 typedef long *long_ptr;
2365 typedef long int *long_ptr;
2366 typedef long_ptr long_ptr;
2367
2368 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2369 struct anonymous
2370 {
2371 union {
2372 struct { int i; int j; };
2373 struct { int k; long int l; } w;
2374 };
2375 int m;
2376 } v1;
2377 '
2378
2379 # Test code for whether the C compiler supports C11 (body of main).
2380 ac_c_conftest_c11_main='
2381 _Static_assert ((offsetof (struct anonymous, i)
2382 == offsetof (struct anonymous, w.k)),
2383 "Anonymous union alignment botch");
2384 v1.i = 2;
2385 v1.w.k = 5;
2386 ok |= v1.i != 5;
2387 '
2388
2389 # Test code for whether the C compiler supports C11 (complete).
2390 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2391 ${ac_c_conftest_c99_globals}
2392 ${ac_c_conftest_c11_globals}
2393
2394 int
2395 main (int argc, char **argv)
2396 {
2397 int ok = 0;
2398 ${ac_c_conftest_c89_main}
2399 ${ac_c_conftest_c99_main}
2400 ${ac_c_conftest_c11_main}
2401 return ok;
2402 }
2403 "
2404
2405 # Test code for whether the C compiler supports C99 (complete).
2406 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2407 ${ac_c_conftest_c99_globals}
2408
2409 int
2410 main (int argc, char **argv)
2411 {
2412 int ok = 0;
2413 ${ac_c_conftest_c89_main}
2414 ${ac_c_conftest_c99_main}
2415 return ok;
2416 }
2417 "
2418
2419 # Test code for whether the C compiler supports C89 (complete).
2420 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2421
2422 int
2423 main (int argc, char **argv)
2424 {
2425 int ok = 0;
2426 ${ac_c_conftest_c89_main}
2427 return ok;
2428 }
2429 "
2430
2431 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2432 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2433 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2434 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2435 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2436 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2437 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2438 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2439 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2440
2441 # Auxiliary files required by this configure script.
2442 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2443
2444 # Locations in which to look for auxiliary files.
2445 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2446
2447 # Search for a directory containing all of the required auxiliary files,
2448 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2449 # If we don't find one directory that contains all the files we need,
2450 # we report the set of missing files from the *first* directory in
2451 # $ac_aux_dir_candidates and give up.
2452 ac_missing_aux_files=""
2453 ac_first_candidate=:
2454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 as_found=false
2457 for as_dir in $ac_aux_dir_candidates
2458 do
2459 IFS=$as_save_IFS
2460 case $as_dir in #(((
2461 '') as_dir=./ ;;
2462 */) ;;
2463 *) as_dir=$as_dir/ ;;
2464 esac
2465 as_found=:
2466
2467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2468 ac_aux_dir_found=yes
2469 ac_install_sh=
2470 for ac_aux in $ac_aux_files
2471 do
2472 # As a special case, if "install-sh" is required, that requirement
2473 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2474 # and $ac_install_sh is set appropriately for whichever one is found.
2475 if test x"$ac_aux" = x"install-sh"
2476 then
2477 if test -f "${as_dir}install-sh"; then
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2479 ac_install_sh="${as_dir}install-sh -c"
2480 elif test -f "${as_dir}install.sh"; then
2481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2482 ac_install_sh="${as_dir}install.sh -c"
2483 elif test -f "${as_dir}shtool"; then
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2485 ac_install_sh="${as_dir}shtool install -c"
2486 else
2487 ac_aux_dir_found=no
2488 if $ac_first_candidate; then
2489 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2490 else
2491 break
2492 fi
2493 fi
2494 else
2495 if test -f "${as_dir}${ac_aux}"; then
2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2497 else
2498 ac_aux_dir_found=no
2499 if $ac_first_candidate; then
2500 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2501 else
2502 break
2503 fi
2504 fi
2505 fi
2506 done
2507 if test "$ac_aux_dir_found" = yes; then
2508 ac_aux_dir="$as_dir"
2509 break
2510 fi
2511 ac_first_candidate=false
2512
2513 as_found=false
2514 done
2515 IFS=$as_save_IFS
2516 if $as_found
2517 then :
2518
2519 else $as_nop
2520 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2521 fi
2522
2523
2524 # These three variables are undocumented and unsupported,
2525 # and are intended to be withdrawn in a future Autoconf release.
2526 # They can cause serious problems if a builder's source tree is in a directory
2527 # whose full name contains unusual characters.
2528 if test -f "${ac_aux_dir}config.guess"; then
2529 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2530 fi
2531 if test -f "${ac_aux_dir}config.sub"; then
2532 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2533 fi
2534 if test -f "$ac_aux_dir/configure"; then
2535 ac_configure="$SHELL ${ac_aux_dir}configure"
2536 fi
2537
2538 # Check that the precious variables saved in the cache have kept the same
2539 # value.
2540 ac_cache_corrupted=false
2541 for ac_var in $ac_precious_vars; do
2542 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2543 eval ac_new_set=\$ac_env_${ac_var}_set
2544 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2545 eval ac_new_val=\$ac_env_${ac_var}_value
2546 case $ac_old_set,$ac_new_set in
2547 set,)
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2549 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2551 ,set)
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2553 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2555 ,);;
2556 *)
2557 if test "x$ac_old_val" != "x$ac_new_val"; then
2558 # differences in whitespace do not lead to failure.
2559 ac_old_val_w=`echo x $ac_old_val`
2560 ac_new_val_w=`echo x $ac_new_val`
2561 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2563 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2564 ac_cache_corrupted=:
2565 else
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2567 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2568 eval $ac_var=\$ac_old_val
2569 fi
2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2571 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2573 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2574 fi;;
2575 esac
2576 # Pass precious variables to config.status.
2577 if test "$ac_new_set" = set; then
2578 case $ac_new_val in
2579 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2580 *) ac_arg=$ac_var=$ac_new_val ;;
2581 esac
2582 case " $ac_configure_args " in
2583 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2584 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2585 esac
2586 fi
2587 done
2588 if $ac_cache_corrupted; then
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2592 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2593 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2594 and start over" "$LINENO" 5
2595 fi
2596 ## -------------------- ##
2597 ## Main body of script. ##
2598 ## -------------------- ##
2599
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605
2606
2607
2608 ac_config_headers="$ac_config_headers config.h"
2609
2610
2611 # Initialize Automake
2612 am__api_version='1.16'
2613
2614
2615
2616 # Find a good install program. We prefer a C program (faster),
2617 # so one script is as good as another. But avoid the broken or
2618 # incompatible versions:
2619 # SysV /etc/install, /usr/sbin/install
2620 # SunOS /usr/etc/install
2621 # IRIX /sbin/install
2622 # AIX /bin/install
2623 # AmigaOS /C/install, which installs bootblocks on floppy discs
2624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2627 # OS/2's system install, which has a completely different semantic
2628 # ./install, which can be erroneously created by make from ./install.sh.
2629 # Reject install programs that cannot install multiple files.
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2631 printf %s "checking for a BSD-compatible install... " >&6; }
2632 if test -z "$INSTALL"; then
2633 if test ${ac_cv_path_install+y}
2634 then :
2635 printf %s "(cached) " >&6
2636 else $as_nop
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640 IFS=$as_save_IFS
2641 case $as_dir in #(((
2642 '') as_dir=./ ;;
2643 */) ;;
2644 *) as_dir=$as_dir/ ;;
2645 esac
2646 # Account for fact that we put trailing slashes in our PATH walk.
2647 case $as_dir in #((
2648 ./ | /[cC]/* | \
2649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2650 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2651 /usr/ucb/* ) ;;
2652 *)
2653 # OSF1 and SCO ODT 3.0 have their own names for install.
2654 # Don't use installbsd from OSF since it installs stuff as root
2655 # by default.
2656 for ac_prog in ginstall scoinst install; do
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2659 if test $ac_prog = install &&
2660 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2661 # AIX install. It has an incompatible calling convention.
2662 :
2663 elif test $ac_prog = install &&
2664 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2665 # program-specific install script used by HP pwplus--don't use.
2666 :
2667 else
2668 rm -rf conftest.one conftest.two conftest.dir
2669 echo one > conftest.one
2670 echo two > conftest.two
2671 mkdir conftest.dir
2672 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2673 test -s conftest.one && test -s conftest.two &&
2674 test -s conftest.dir/conftest.one &&
2675 test -s conftest.dir/conftest.two
2676 then
2677 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2678 break 3
2679 fi
2680 fi
2681 fi
2682 done
2683 done
2684 ;;
2685 esac
2686
2687 done
2688 IFS=$as_save_IFS
2689
2690 rm -rf conftest.one conftest.two conftest.dir
2691
2692 fi
2693 if test ${ac_cv_path_install+y}; then
2694 INSTALL=$ac_cv_path_install
2695 else
2696 # As a last resort, use the slow shell script. Don't cache a
2697 # value for INSTALL within a source directory, because that will
2698 # break other packages using the cache if that directory is
2699 # removed, or if the value is a relative name.
2700 INSTALL=$ac_install_sh
2701 fi
2702 fi
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2704 printf "%s\n" "$INSTALL" >&6; }
2705
2706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2707 # It thinks the first close brace ends the variable substitution.
2708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2709
2710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2711
2712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2713
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2715 printf %s "checking whether build environment is sane... " >&6; }
2716 # Reject unsafe characters in $srcdir or the absolute working directory
2717 # name. Accept space and tab only in the latter.
2718 am_lf='
2719 '
2720 case `pwd` in
2721 *[\\\"\#\$\&\'\`$am_lf]*)
2722 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2723 esac
2724 case $srcdir in
2725 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2726 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2727 esac
2728
2729 # Do 'set' in a subshell so we don't clobber the current shell's
2730 # arguments. Must try -L first in case configure is actually a
2731 # symlink; some systems play weird games with the mod time of symlinks
2732 # (eg FreeBSD returns the mod time of the symlink's containing
2733 # directory).
2734 if (
2735 am_has_slept=no
2736 for am_try in 1 2; do
2737 echo "timestamp, slept: $am_has_slept" > conftest.file
2738 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2739 if test "$*" = "X"; then
2740 # -L didn't work.
2741 set X `ls -t "$srcdir/configure" conftest.file`
2742 fi
2743 if test "$*" != "X $srcdir/configure conftest.file" \
2744 && test "$*" != "X conftest.file $srcdir/configure"; then
2745
2746 # If neither matched, then we have a broken ls. This can happen
2747 # if, for instance, CONFIG_SHELL is bash and it inherits a
2748 # broken ls alias from the environment. This has actually
2749 # happened. Such a system could not be considered "sane".
2750 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2751 alias in your environment" "$LINENO" 5
2752 fi
2753 if test "$2" = conftest.file || test $am_try -eq 2; then
2754 break
2755 fi
2756 # Just in case.
2757 sleep 1
2758 am_has_slept=yes
2759 done
2760 test "$2" = conftest.file
2761 )
2762 then
2763 # Ok.
2764 :
2765 else
2766 as_fn_error $? "newly created file is older than distributed files!
2767 Check your system clock" "$LINENO" 5
2768 fi
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770 printf "%s\n" "yes" >&6; }
2771 # If we didn't sleep, we still need to ensure time stamps of config.status and
2772 # generated files are strictly newer.
2773 am_sleep_pid=
2774 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2775 ( sleep 1 ) &
2776 am_sleep_pid=$!
2777 fi
2778
2779 rm -f conftest.file
2780
2781 test "$program_prefix" != NONE &&
2782 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2783 # Use a double $ so make ignores it.
2784 test "$program_suffix" != NONE &&
2785 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2786 # Double any \ or $.
2787 # By default was `s,x,x', remove it if useless.
2788 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2789 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2790
2791
2792 # Expand $ac_aux_dir to an absolute path.
2793 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2794
2795
2796 if test x"${MISSING+set}" != xset; then
2797 MISSING="\${SHELL} '$am_aux_dir/missing'"
2798 fi
2799 # Use eval to expand $SHELL
2800 if eval "$MISSING --is-lightweight"; then
2801 am_missing_run="$MISSING "
2802 else
2803 am_missing_run=
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2805 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2806 fi
2807
2808 if test x"${install_sh+set}" != xset; then
2809 case $am_aux_dir in
2810 *\ * | *\ *)
2811 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2812 *)
2813 install_sh="\${SHELL} $am_aux_dir/install-sh"
2814 esac
2815 fi
2816
2817 # Installed binaries are usually stripped using 'strip' when the user
2818 # run "make install-strip". However 'strip' might not be the right
2819 # tool to use in cross-compilation environments, therefore Automake
2820 # will honor the 'STRIP' environment variable to overrule this program.
2821 if test "$cross_compiling" != no; then
2822 if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2824 set dummy ${ac_tool_prefix}strip; ac_word=$2
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 printf %s "checking for $ac_word... " >&6; }
2827 if test ${ac_cv_prog_STRIP+y}
2828 then :
2829 printf %s "(cached) " >&6
2830 else $as_nop
2831 if test -n "$STRIP"; then
2832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 case $as_dir in #(((
2839 '') as_dir=./ ;;
2840 */) ;;
2841 *) as_dir=$as_dir/ ;;
2842 esac
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 STRIP=$ac_cv_prog_STRIP
2856 if test -n "$STRIP"; then
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2858 printf "%s\n" "$STRIP" >&6; }
2859 else
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 printf "%s\n" "no" >&6; }
2862 fi
2863
2864
2865 fi
2866 if test -z "$ac_cv_prog_STRIP"; then
2867 ac_ct_STRIP=$STRIP
2868 # Extract the first word of "strip", so it can be a program name with args.
2869 set dummy strip; ac_word=$2
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 printf %s "checking for $ac_word... " >&6; }
2872 if test ${ac_cv_prog_ac_ct_STRIP+y}
2873 then :
2874 printf %s "(cached) " >&6
2875 else $as_nop
2876 if test -n "$ac_ct_STRIP"; then
2877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 case $as_dir in #(((
2884 '') as_dir=./ ;;
2885 */) ;;
2886 *) as_dir=$as_dir/ ;;
2887 esac
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_STRIP="strip"
2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2901 if test -n "$ac_ct_STRIP"; then
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2903 printf "%s\n" "$ac_ct_STRIP" >&6; }
2904 else
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 printf "%s\n" "no" >&6; }
2907 fi
2908
2909 if test "x$ac_ct_STRIP" = x; then
2910 STRIP=":"
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 STRIP=$ac_ct_STRIP
2919 fi
2920 else
2921 STRIP="$ac_cv_prog_STRIP"
2922 fi
2923
2924 fi
2925 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2926
2927
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2929 printf %s "checking for a race-free mkdir -p... " >&6; }
2930 if test -z "$MKDIR_P"; then
2931 if test ${ac_cv_path_mkdir+y}
2932 then :
2933 printf %s "(cached) " >&6
2934 else $as_nop
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2937 do
2938 IFS=$as_save_IFS
2939 case $as_dir in #(((
2940 '') as_dir=./ ;;
2941 */) ;;
2942 *) as_dir=$as_dir/ ;;
2943 esac
2944 for ac_prog in mkdir gmkdir; do
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2947 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2948 'mkdir ('*'coreutils) '* | \
2949 'BusyBox '* | \
2950 'mkdir (fileutils) '4.1*)
2951 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2952 break 3;;
2953 esac
2954 done
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960
2961 test -d ./--version && rmdir ./--version
2962 if test ${ac_cv_path_mkdir+y}; then
2963 MKDIR_P="$ac_cv_path_mkdir -p"
2964 else
2965 # As a last resort, use the slow shell script. Don't cache a
2966 # value for MKDIR_P within a source directory, because that will
2967 # break other packages using the cache if that directory is
2968 # removed, or if the value is a relative name.
2969 MKDIR_P="$ac_install_sh -d"
2970 fi
2971 fi
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2973 printf "%s\n" "$MKDIR_P" >&6; }
2974
2975 for ac_prog in gawk mawk nawk awk
2976 do
2977 # Extract the first word of "$ac_prog", so it can be a program name with args.
2978 set dummy $ac_prog; ac_word=$2
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 printf %s "checking for $ac_word... " >&6; }
2981 if test ${ac_cv_prog_AWK+y}
2982 then :
2983 printf %s "(cached) " >&6
2984 else $as_nop
2985 if test -n "$AWK"; then
2986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 case $as_dir in #(((
2993 '') as_dir=./ ;;
2994 */) ;;
2995 *) as_dir=$as_dir/ ;;
2996 esac
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_AWK="$ac_prog"
3000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 AWK=$ac_cv_prog_AWK
3010 if test -n "$AWK"; then
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3012 printf "%s\n" "$AWK" >&6; }
3013 else
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 printf "%s\n" "no" >&6; }
3016 fi
3017
3018
3019 test -n "$AWK" && break
3020 done
3021
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3023 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3024 set x ${MAKE-make}
3025 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3026 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3027 then :
3028 printf %s "(cached) " >&6
3029 else $as_nop
3030 cat >conftest.make <<\_ACEOF
3031 SHELL = /bin/sh
3032 all:
3033 @echo '@@@%%%=$(MAKE)=@@@%%%'
3034 _ACEOF
3035 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3036 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3037 *@@@%%%=?*=@@@%%%*)
3038 eval ac_cv_prog_make_${ac_make}_set=yes;;
3039 *)
3040 eval ac_cv_prog_make_${ac_make}_set=no;;
3041 esac
3042 rm -f conftest.make
3043 fi
3044 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3046 printf "%s\n" "yes" >&6; }
3047 SET_MAKE=
3048 else
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 printf "%s\n" "no" >&6; }
3051 SET_MAKE="MAKE=${MAKE-make}"
3052 fi
3053
3054 rm -rf .tst 2>/dev/null
3055 mkdir .tst 2>/dev/null
3056 if test -d .tst; then
3057 am__leading_dot=.
3058 else
3059 am__leading_dot=_
3060 fi
3061 rmdir .tst 2>/dev/null
3062
3063 # Check whether --enable-silent-rules was given.
3064 if test ${enable_silent_rules+y}
3065 then :
3066 enableval=$enable_silent_rules;
3067 fi
3068
3069 case $enable_silent_rules in # (((
3070 yes) AM_DEFAULT_VERBOSITY=0;;
3071 no) AM_DEFAULT_VERBOSITY=1;;
3072 *) AM_DEFAULT_VERBOSITY=1;;
3073 esac
3074 am_make=${MAKE-make}
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3076 printf %s "checking whether $am_make supports nested variables... " >&6; }
3077 if test ${am_cv_make_support_nested_variables+y}
3078 then :
3079 printf %s "(cached) " >&6
3080 else $as_nop
3081 if printf "%s\n" 'TRUE=$(BAR$(V))
3082 BAR0=false
3083 BAR1=true
3084 V=1
3085 am__doit:
3086 @$(TRUE)
3087 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3088 am_cv_make_support_nested_variables=yes
3089 else
3090 am_cv_make_support_nested_variables=no
3091 fi
3092 fi
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3094 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3095 if test $am_cv_make_support_nested_variables = yes; then
3096 AM_V='$(V)'
3097 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3098 else
3099 AM_V=$AM_DEFAULT_VERBOSITY
3100 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3101 fi
3102 AM_BACKSLASH='\'
3103
3104 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3105 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3106 # is not polluted with repeated "-I."
3107 am__isrc=' -I$(srcdir)'
3108 # test to see if srcdir already configured
3109 if test -f $srcdir/config.status; then
3110 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3111 fi
3112 fi
3113
3114 # test whether we have cygpath
3115 if test -z "$CYGPATH_W"; then
3116 if (cygpath --version) >/dev/null 2>/dev/null; then
3117 CYGPATH_W='cygpath -w'
3118 else
3119 CYGPATH_W=echo
3120 fi
3121 fi
3122
3123
3124 # Define the identity of the package.
3125 PACKAGE='libxkbfile'
3126 VERSION='1.1.1'
3127
3128
3129 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3130
3131
3132 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3133
3134 # Some tools Automake needs.
3135
3136 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3137
3138
3139 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3140
3141
3142 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3143
3144
3145 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3146
3147
3148 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3149
3150 # For better backward compatibility. To be removed once Automake 1.9.x
3151 # dies out for good. For more background, see:
3152 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3153 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3154 mkdir_p='$(MKDIR_P)'
3155
3156 # We need awk for the "check" target (and possibly the TAP driver). The
3157 # system "awk" is bad on some platforms.
3158 # Always define AMTAR for backward compatibility. Yes, it's still used
3159 # in the wild :-( We should find a proper way to deprecate it ...
3160 AMTAR='$${TAR-tar}'
3161
3162
3163 # We'll loop over all known methods to create a tar archive until one works.
3164 _am_tools='gnutar pax cpio none'
3165
3166 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3167
3168
3169
3170
3171
3172 # Variables for tags utilities; see am/tags.am
3173 if test -z "$CTAGS"; then
3174 CTAGS=ctags
3175 fi
3176
3177 if test -z "$ETAGS"; then
3178 ETAGS=etags
3179 fi
3180
3181 if test -z "$CSCOPE"; then
3182 CSCOPE=cscope
3183 fi
3184
3185
3186
3187 # POSIX will say in a future version that running "rm -f" with no argument
3188 # is OK; and we want to be able to make that assumption in our Makefile
3189 # recipes. So use an aggressive probe to check that the usage we want is
3190 # actually supported "in the wild" to an acceptable degree.
3191 # See automake bug#10828.
3192 # To make any issue more visible, cause the running configure to be aborted
3193 # by default if the 'rm' program in use doesn't match our expectations; the
3194 # user can still override this though.
3195 if rm -f && rm -fr && rm -rf; then : OK; else
3196 cat >&2 <<'END'
3197 Oops!
3198
3199 Your 'rm' program seems unable to run without file operands specified
3200 on the command line, even when the '-f' option is present. This is contrary
3201 to the behaviour of most rm programs out there, and not conforming with
3202 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3203
3204 Please tell bug-automake@gnu.org about your system, including the value
3205 of your $PATH and any error possibly output before this message. This
3206 can help us improve future automake versions.
3207
3208 END
3209 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3210 echo 'Configuration will proceed anyway, since you have set the' >&2
3211 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3212 echo >&2
3213 else
3214 cat >&2 <<'END'
3215 Aborting the configuration process, to ensure you take notice of the issue.
3216
3217 You can download and install GNU coreutils to get an 'rm' implementation
3218 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3219
3220 If you want to complete the configuration process using your problematic
3221 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3222 to "yes", and re-run configure.
3223
3224 END
3225 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3226 fi
3227 fi
3228
3229
3230 # Initialize libtool
3231 case `pwd` in
3232 *\ * | *\ *)
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3234 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3235 esac
3236
3237
3238
3239 macro_version='2.4.7'
3240 macro_revision='2.4.7'
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255 ltmain=$ac_aux_dir/ltmain.sh
3256
3257
3258
3259 # Make sure we can run config.sub.
3260 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3261 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3262
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3264 printf %s "checking build system type... " >&6; }
3265 if test ${ac_cv_build+y}
3266 then :
3267 printf %s "(cached) " >&6
3268 else $as_nop
3269 ac_build_alias=$build_alias
3270 test "x$ac_build_alias" = x &&
3271 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3272 test "x$ac_build_alias" = x &&
3273 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3274 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3275 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3276
3277 fi
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3279 printf "%s\n" "$ac_cv_build" >&6; }
3280 case $ac_cv_build in
3281 *-*-*) ;;
3282 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3283 esac
3284 build=$ac_cv_build
3285 ac_save_IFS=$IFS; IFS='-'
3286 set x $ac_cv_build
3287 shift
3288 build_cpu=$1
3289 build_vendor=$2
3290 shift; shift
3291 # Remember, the first character of IFS is used to create $*,
3292 # except with old shells:
3293 build_os=$*
3294 IFS=$ac_save_IFS
3295 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3296
3297
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3299 printf %s "checking host system type... " >&6; }
3300 if test ${ac_cv_host+y}
3301 then :
3302 printf %s "(cached) " >&6
3303 else $as_nop
3304 if test "x$host_alias" = x; then
3305 ac_cv_host=$ac_cv_build
3306 else
3307 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3308 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3309 fi
3310
3311 fi
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3313 printf "%s\n" "$ac_cv_host" >&6; }
3314 case $ac_cv_host in
3315 *-*-*) ;;
3316 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3317 esac
3318 host=$ac_cv_host
3319 ac_save_IFS=$IFS; IFS='-'
3320 set x $ac_cv_host
3321 shift
3322 host_cpu=$1
3323 host_vendor=$2
3324 shift; shift
3325 # Remember, the first character of IFS is used to create $*,
3326 # except with old shells:
3327 host_os=$*
3328 IFS=$ac_save_IFS
3329 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3330
3331
3332 # Backslashify metacharacters that are still active within
3333 # double-quoted strings.
3334 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3335
3336 # Same as above, but do not quote variable references.
3337 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3338
3339 # Sed substitution to delay expansion of an escaped shell variable in a
3340 # double_quote_subst'ed string.
3341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3342
3343 # Sed substitution to delay expansion of an escaped single quote.
3344 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3345
3346 # Sed substitution to avoid accidental globbing in evaled expressions
3347 no_glob_subst='s/\*/\\\*/g'
3348
3349 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3350 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3352
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3354 printf %s "checking how to print strings... " >&6; }
3355 # Test print first, because it will be a builtin if present.
3356 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3357 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3358 ECHO='print -r --'
3359 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3360 ECHO='printf %s\n'
3361 else
3362 # Use this function as a fallback that always works.
3363 func_fallback_echo ()
3364 {
3365 eval 'cat <<_LTECHO_EOF
3366 $1
3367 _LTECHO_EOF'
3368 }
3369 ECHO='func_fallback_echo'
3370 fi
3371
3372 # func_echo_all arg...
3373 # Invoke $ECHO with all args, space-separated.
3374 func_echo_all ()
3375 {
3376 $ECHO ""
3377 }
3378
3379 case $ECHO in
3380 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3381 printf "%s\n" "printf" >&6; } ;;
3382 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3383 printf "%s\n" "print -r" >&6; } ;;
3384 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3385 printf "%s\n" "cat" >&6; } ;;
3386 esac
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410 DEPDIR="${am__leading_dot}deps"
3411
3412 ac_config_commands="$ac_config_commands depfiles"
3413
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3415 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3416 cat > confinc.mk << 'END'
3417 am__doit:
3418 @echo this is the am__doit target >confinc.out
3419 .PHONY: am__doit
3420 END
3421 am__include="#"
3422 am__quote=
3423 # BSD make does it like this.
3424 echo '.include "confinc.mk" # ignored' > confmf.BSD
3425 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3426 echo 'include confinc.mk # ignored' > confmf.GNU
3427 _am_result=no
3428 for s in GNU BSD; do
3429 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3430 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }
3434 case $?:`cat confinc.out 2>/dev/null` in #(
3435 '0:this is the am__doit target') :
3436 case $s in #(
3437 BSD) :
3438 am__include='.include' am__quote='"' ;; #(
3439 *) :
3440 am__include='include' am__quote='' ;;
3441 esac ;; #(
3442 *) :
3443 ;;
3444 esac
3445 if test "$am__include" != "#"; then
3446 _am_result="yes ($s style)"
3447 break
3448 fi
3449 done
3450 rm -f confinc.* confmf.*
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3452 printf "%s\n" "${_am_result}" >&6; }
3453
3454 # Check whether --enable-dependency-tracking was given.
3455 if test ${enable_dependency_tracking+y}
3456 then :
3457 enableval=$enable_dependency_tracking;
3458 fi
3459
3460 if test "x$enable_dependency_tracking" != xno; then
3461 am_depcomp="$ac_aux_dir/depcomp"
3462 AMDEPBACKSLASH='\'
3463 am__nodep='_no'
3464 fi
3465 if test "x$enable_dependency_tracking" != xno; then
3466 AMDEP_TRUE=
3467 AMDEP_FALSE='#'
3468 else
3469 AMDEP_TRUE='#'
3470 AMDEP_FALSE=
3471 fi
3472
3473
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 printf %s "checking for $ac_word... " >&6; }
3484 if test ${ac_cv_prog_CC+y}
3485 then :
3486 printf %s "(cached) " >&6
3487 else $as_nop
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 case $as_dir in #(((
3496 '') as_dir=./ ;;
3497 */) ;;
3498 *) as_dir=$as_dir/ ;;
3499 esac
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3504 break 2
3505 fi
3506 done
3507 done
3508 IFS=$as_save_IFS
3509
3510 fi
3511 fi
3512 CC=$ac_cv_prog_CC
3513 if test -n "$CC"; then
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 printf "%s\n" "$CC" >&6; }
3516 else
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 printf "%s\n" "no" >&6; }
3519 fi
3520
3521
3522 fi
3523 if test -z "$ac_cv_prog_CC"; then
3524 ac_ct_CC=$CC
3525 # Extract the first word of "gcc", so it can be a program name with args.
3526 set dummy gcc; ac_word=$2
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 printf %s "checking for $ac_word... " >&6; }
3529 if test ${ac_cv_prog_ac_ct_CC+y}
3530 then :
3531 printf %s "(cached) " >&6
3532 else $as_nop
3533 if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539 IFS=$as_save_IFS
3540 case $as_dir in #(((
3541 '') as_dir=./ ;;
3542 */) ;;
3543 *) as_dir=$as_dir/ ;;
3544 esac
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_ac_ct_CC="gcc"
3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3560 printf "%s\n" "$ac_ct_CC" >&6; }
3561 else
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 printf "%s\n" "no" >&6; }
3564 fi
3565
3566 if test "x$ac_ct_CC" = x; then
3567 CC=""
3568 else
3569 case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3574 esac
3575 CC=$ac_ct_CC
3576 fi
3577 else
3578 CC="$ac_cv_prog_CC"
3579 fi
3580
3581 if test -z "$CC"; then
3582 if test -n "$ac_tool_prefix"; then
3583 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3584 set dummy ${ac_tool_prefix}cc; ac_word=$2
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 printf %s "checking for $ac_word... " >&6; }
3587 if test ${ac_cv_prog_CC+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else $as_nop
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 case $as_dir in #(((
3599 '') as_dir=./ ;;
3600 */) ;;
3601 *) as_dir=$as_dir/ ;;
3602 esac
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 printf "%s\n" "$CC" >&6; }
3619 else
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 printf "%s\n" "no" >&6; }
3622 fi
3623
3624
3625 fi
3626 fi
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 printf %s "checking for $ac_word... " >&6; }
3632 if test ${ac_cv_prog_CC+y}
3633 then :
3634 printf %s "(cached) " >&6
3635 else $as_nop
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639 ac_prog_rejected=no
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643 IFS=$as_save_IFS
3644 case $as_dir in #(((
3645 '') as_dir=./ ;;
3646 */) ;;
3647 *) as_dir=$as_dir/ ;;
3648 esac
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3651 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3653 continue
3654 fi
3655 ac_cv_prog_CC="cc"
3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3666 shift
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3671 shift
3672 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3673 fi
3674 fi
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686
3687 fi
3688 if test -z "$CC"; then
3689 if test -n "$ac_tool_prefix"; then
3690 for ac_prog in cl.exe
3691 do
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s "checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_CC+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else $as_nop
3700 if test -n "$CC"; then
3701 ac_cv_prog_CC="$CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 case $as_dir in #(((
3708 '') as_dir=./ ;;
3709 */) ;;
3710 *) as_dir=$as_dir/ ;;
3711 esac
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
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 test -n "$CC" && break
3735 done
3736 fi
3737 if test -z "$CC"; then
3738 ac_ct_CC=$CC
3739 for ac_prog in cl.exe
3740 do
3741 # Extract the first word of "$ac_prog", so it can be a program name with args.
3742 set dummy $ac_prog; ac_word=$2
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 printf %s "checking for $ac_word... " >&6; }
3745 if test ${ac_cv_prog_ac_ct_CC+y}
3746 then :
3747 printf %s "(cached) " >&6
3748 else $as_nop
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755 IFS=$as_save_IFS
3756 case $as_dir in #(((
3757 '') as_dir=./ ;;
3758 */) ;;
3759 *) as_dir=$as_dir/ ;;
3760 esac
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_ac_ct_CC="$ac_prog"
3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767 done
3768 done
3769 IFS=$as_save_IFS
3770
3771 fi
3772 fi
3773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 printf "%s\n" "$ac_ct_CC" >&6; }
3777 else
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 printf "%s\n" "no" >&6; }
3780 fi
3781
3782
3783 test -n "$ac_ct_CC" && break
3784 done
3785
3786 if test "x$ac_ct_CC" = x; then
3787 CC=""
3788 else
3789 case $cross_compiling:$ac_tool_warned in
3790 yes:)
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned=yes ;;
3794 esac
3795 CC=$ac_ct_CC
3796 fi
3797 fi
3798
3799 fi
3800 if test -z "$CC"; then
3801 if test -n "$ac_tool_prefix"; then
3802 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3803 set dummy ${ac_tool_prefix}clang; ac_word=$2
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 printf %s "checking for $ac_word... " >&6; }
3806 if test ${ac_cv_prog_CC+y}
3807 then :
3808 printf %s "(cached) " >&6
3809 else $as_nop
3810 if test -n "$CC"; then
3811 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 case $as_dir in #(((
3818 '') as_dir=./ ;;
3819 */) ;;
3820 *) as_dir=$as_dir/ ;;
3821 esac
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_CC="${ac_tool_prefix}clang"
3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 fi
3833 fi
3834 CC=$ac_cv_prog_CC
3835 if test -n "$CC"; then
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3837 printf "%s\n" "$CC" >&6; }
3838 else
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 printf "%s\n" "no" >&6; }
3841 fi
3842
3843
3844 fi
3845 if test -z "$ac_cv_prog_CC"; then
3846 ac_ct_CC=$CC
3847 # Extract the first word of "clang", so it can be a program name with args.
3848 set dummy clang; ac_word=$2
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 printf %s "checking for $ac_word... " >&6; }
3851 if test ${ac_cv_prog_ac_ct_CC+y}
3852 then :
3853 printf %s "(cached) " >&6
3854 else $as_nop
3855 if test -n "$ac_ct_CC"; then
3856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 case $as_dir in #(((
3863 '') as_dir=./ ;;
3864 */) ;;
3865 *) as_dir=$as_dir/ ;;
3866 esac
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_ac_ct_CC="clang"
3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 printf "%s\n" "$ac_ct_CC" >&6; }
3883 else
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 printf "%s\n" "no" >&6; }
3886 fi
3887
3888 if test "x$ac_ct_CC" = x; then
3889 CC=""
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892 yes:)
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897 CC=$ac_ct_CC
3898 fi
3899 else
3900 CC="$ac_cv_prog_CC"
3901 fi
3902
3903 fi
3904
3905
3906 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error $? "no acceptable C compiler found in \$PATH
3909 See \`config.log' for more details" "$LINENO" 5; }
3910
3911 # Provide some information about the compiler.
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3913 set X $ac_compile
3914 ac_compiler=$2
3915 for ac_option in --version -v -V -qversion -version; do
3916 { { ac_try="$ac_compiler $ac_option >&5"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 printf "%s\n" "$ac_try_echo"; } >&5
3923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3924 ac_status=$?
3925 if test -s conftest.err; then
3926 sed '10a\
3927 ... rest of stderr output deleted ...
3928 10q' conftest.err >conftest.er1
3929 cat conftest.er1 >&5
3930 fi
3931 rm -f conftest.er1 conftest.err
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }
3934 done
3935
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938
3939 int
3940 main (void)
3941 {
3942
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 ac_clean_files_save=$ac_clean_files
3948 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3949 # Try to create an executable without -o first, disregard a.out.
3950 # It will help us diagnose broken compilers, and finding out an intuition
3951 # of exeext.
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 printf %s "checking whether the C compiler works... " >&6; }
3954 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3955
3956 # The possible output files:
3957 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3958
3959 ac_rmfiles=
3960 for ac_file in $ac_files
3961 do
3962 case $ac_file in
3963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3964 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3965 esac
3966 done
3967 rm -f $ac_rmfiles
3968
3969 if { { ac_try="$ac_link_default"
3970 case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 printf "%s\n" "$ac_try_echo"; } >&5
3976 (eval "$ac_link_default") 2>&5
3977 ac_status=$?
3978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }
3980 then :
3981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3983 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3984 # so that the user can short-circuit this test for compilers unknown to
3985 # Autoconf.
3986 for ac_file in $ac_files ''
3987 do
3988 test -f "$ac_file" || continue
3989 case $ac_file in
3990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3991 ;;
3992 [ab].out )
3993 # We found the default executable, but exeext='' is most
3994 # certainly right.
3995 break;;
3996 *.* )
3997 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3998 then :; else
3999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4000 fi
4001 # We set ac_cv_exeext here because the later test for it is not
4002 # safe: cross compilers may not add the suffix if given an `-o'
4003 # argument, so we may need to know it at that point already.
4004 # Even if this section looks crufty: it has the advantage of
4005 # actually working.
4006 break;;
4007 * )
4008 break;;
4009 esac
4010 done
4011 test "$ac_cv_exeext" = no && ac_cv_exeext=
4012
4013 else $as_nop
4014 ac_file=''
4015 fi
4016 if test -z "$ac_file"
4017 then :
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 printf "%s\n" "no" >&6; }
4020 printf "%s\n" "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error 77 "C compiler cannot create executables
4026 See \`config.log' for more details" "$LINENO" 5; }
4027 else $as_nop
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 printf "%s\n" "yes" >&6; }
4030 fi
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4032 printf %s "checking for C compiler default output file name... " >&6; }
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4034 printf "%s\n" "$ac_file" >&6; }
4035 ac_exeext=$ac_cv_exeext
4036
4037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4038 ac_clean_files=$ac_clean_files_save
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4040 printf %s "checking for suffix of executables... " >&6; }
4041 if { { ac_try="$ac_link"
4042 case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 printf "%s\n" "$ac_try_echo"; } >&5
4048 (eval "$ac_link") 2>&5
4049 ac_status=$?
4050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }
4052 then :
4053 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4054 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4055 # work properly (i.e., refer to `conftest.exe'), while it won't with
4056 # `rm'.
4057 for ac_file in conftest.exe conftest conftest.*; do
4058 test -f "$ac_file" || continue
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062 break;;
4063 * ) break;;
4064 esac
4065 done
4066 else $as_nop
4067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4070 See \`config.log' for more details" "$LINENO" 5; }
4071 fi
4072 rm -f conftest conftest$ac_cv_exeext
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4074 printf "%s\n" "$ac_cv_exeext" >&6; }
4075
4076 rm -f conftest.$ac_ext
4077 EXEEXT=$ac_cv_exeext
4078 ac_exeext=$EXEEXT
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <stdio.h>
4082 int
4083 main (void)
4084 {
4085 FILE *f = fopen ("conftest.out", "w");
4086 return ferror (f) || fclose (f) != 0;
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 ac_clean_files="$ac_clean_files conftest.out"
4093 # Check that the compiler produces executables we can run. If not, either
4094 # the compiler is broken, or we cross compile.
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4096 printf %s "checking whether we are cross compiling... " >&6; }
4097 if test "$cross_compiling" != yes; then
4098 { { ac_try="$ac_link"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 printf "%s\n" "$ac_try_echo"; } >&5
4105 (eval "$ac_link") 2>&5
4106 ac_status=$?
4107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }
4109 if { ac_try='./conftest$ac_cv_exeext'
4110 { { case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 printf "%s\n" "$ac_try_echo"; } >&5
4116 (eval "$ac_try") 2>&5
4117 ac_status=$?
4118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }; }; then
4120 cross_compiling=no
4121 else
4122 if test "$cross_compiling" = maybe; then
4123 cross_compiling=yes
4124 else
4125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4127 as_fn_error 77 "cannot run C compiled programs.
4128 If you meant to cross compile, use \`--host'.
4129 See \`config.log' for more details" "$LINENO" 5; }
4130 fi
4131 fi
4132 fi
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4134 printf "%s\n" "$cross_compiling" >&6; }
4135
4136 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4137 ac_clean_files=$ac_clean_files_save
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4139 printf %s "checking for suffix of object files... " >&6; }
4140 if test ${ac_cv_objext+y}
4141 then :
4142 printf %s "(cached) " >&6
4143 else $as_nop
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146
4147 int
4148 main (void)
4149 {
4150
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.o conftest.obj
4156 if { { ac_try="$ac_compile"
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_compile") 2>&5
4164 ac_status=$?
4165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166 test $ac_status = 0; }
4167 then :
4168 for ac_file in conftest.o conftest.obj conftest.*; do
4169 test -f "$ac_file" || continue;
4170 case $ac_file in
4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4173 break;;
4174 esac
4175 done
4176 else $as_nop
4177 printf "%s\n" "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error $? "cannot compute suffix of object files: cannot compile
4183 See \`config.log' for more details" "$LINENO" 5; }
4184 fi
4185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4186 fi
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4188 printf "%s\n" "$ac_cv_objext" >&6; }
4189 OBJEXT=$ac_cv_objext
4190 ac_objext=$OBJEXT
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4192 printf %s "checking whether the compiler supports GNU C... " >&6; }
4193 if test ${ac_cv_c_compiler_gnu+y}
4194 then :
4195 printf %s "(cached) " >&6
4196 else $as_nop
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main (void)
4202 {
4203 #ifndef __GNUC__
4204 choke me
4205 #endif
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"
4212 then :
4213 ac_compiler_gnu=yes
4214 else $as_nop
4215 ac_compiler_gnu=no
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4219
4220 fi
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4222 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224
4225 if test $ac_compiler_gnu = yes; then
4226 GCC=yes
4227 else
4228 GCC=
4229 fi
4230 ac_test_CFLAGS=${CFLAGS+y}
4231 ac_save_CFLAGS=$CFLAGS
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4233 printf %s "checking whether $CC accepts -g... " >&6; }
4234 if test ${ac_cv_prog_cc_g+y}
4235 then :
4236 printf %s "(cached) " >&6
4237 else $as_nop
4238 ac_save_c_werror_flag=$ac_c_werror_flag
4239 ac_c_werror_flag=yes
4240 ac_cv_prog_cc_g=no
4241 CFLAGS="-g"
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244
4245 int
4246 main (void)
4247 {
4248
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 if ac_fn_c_try_compile "$LINENO"
4254 then :
4255 ac_cv_prog_cc_g=yes
4256 else $as_nop
4257 CFLAGS=""
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260
4261 int
4262 main (void)
4263 {
4264
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_c_try_compile "$LINENO"
4270 then :
4271
4272 else $as_nop
4273 ac_c_werror_flag=$ac_save_c_werror_flag
4274 CFLAGS="-g"
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main (void)
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cc_g=yes
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4295 ac_c_werror_flag=$ac_save_c_werror_flag
4296 fi
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4298 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4299 if test $ac_test_CFLAGS; then
4300 CFLAGS=$ac_save_CFLAGS
4301 elif test $ac_cv_prog_cc_g = yes; then
4302 if test "$GCC" = yes; then
4303 CFLAGS="-g -O2"
4304 else
4305 CFLAGS="-g"
4306 fi
4307 else
4308 if test "$GCC" = yes; then
4309 CFLAGS="-O2"
4310 else
4311 CFLAGS=
4312 fi
4313 fi
4314 ac_prog_cc_stdc=no
4315 if test x$ac_prog_cc_stdc = xno
4316 then :
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4318 printf %s "checking for $CC option to enable C11 features... " >&6; }
4319 if test ${ac_cv_prog_cc_c11+y}
4320 then :
4321 printf %s "(cached) " >&6
4322 else $as_nop
4323 ac_cv_prog_cc_c11=no
4324 ac_save_CC=$CC
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 $ac_c_conftest_c11_program
4328 _ACEOF
4329 for ac_arg in '' -std=gnu11
4330 do
4331 CC="$ac_save_CC $ac_arg"
4332 if ac_fn_c_try_compile "$LINENO"
4333 then :
4334 ac_cv_prog_cc_c11=$ac_arg
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.beam
4337 test "x$ac_cv_prog_cc_c11" != "xno" && break
4338 done
4339 rm -f conftest.$ac_ext
4340 CC=$ac_save_CC
4341 fi
4342
4343 if test "x$ac_cv_prog_cc_c11" = xno
4344 then :
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346 printf "%s\n" "unsupported" >&6; }
4347 else $as_nop
4348 if test "x$ac_cv_prog_cc_c11" = x
4349 then :
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4351 printf "%s\n" "none needed" >&6; }
4352 else $as_nop
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4354 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4355 CC="$CC $ac_cv_prog_cc_c11"
4356 fi
4357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4358 ac_prog_cc_stdc=c11
4359 fi
4360 fi
4361 if test x$ac_prog_cc_stdc = xno
4362 then :
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4364 printf %s "checking for $CC option to enable C99 features... " >&6; }
4365 if test ${ac_cv_prog_cc_c99+y}
4366 then :
4367 printf %s "(cached) " >&6
4368 else $as_nop
4369 ac_cv_prog_cc_c99=no
4370 ac_save_CC=$CC
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 $ac_c_conftest_c99_program
4374 _ACEOF
4375 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4376 do
4377 CC="$ac_save_CC $ac_arg"
4378 if ac_fn_c_try_compile "$LINENO"
4379 then :
4380 ac_cv_prog_cc_c99=$ac_arg
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.beam
4383 test "x$ac_cv_prog_cc_c99" != "xno" && break
4384 done
4385 rm -f conftest.$ac_ext
4386 CC=$ac_save_CC
4387 fi
4388
4389 if test "x$ac_cv_prog_cc_c99" = xno
4390 then :
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4392 printf "%s\n" "unsupported" >&6; }
4393 else $as_nop
4394 if test "x$ac_cv_prog_cc_c99" = x
4395 then :
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4397 printf "%s\n" "none needed" >&6; }
4398 else $as_nop
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4400 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4401 CC="$CC $ac_cv_prog_cc_c99"
4402 fi
4403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4404 ac_prog_cc_stdc=c99
4405 fi
4406 fi
4407 if test x$ac_prog_cc_stdc = xno
4408 then :
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4410 printf %s "checking for $CC option to enable C89 features... " >&6; }
4411 if test ${ac_cv_prog_cc_c89+y}
4412 then :
4413 printf %s "(cached) " >&6
4414 else $as_nop
4415 ac_cv_prog_cc_c89=no
4416 ac_save_CC=$CC
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 $ac_c_conftest_c89_program
4420 _ACEOF
4421 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4422 do
4423 CC="$ac_save_CC $ac_arg"
4424 if ac_fn_c_try_compile "$LINENO"
4425 then :
4426 ac_cv_prog_cc_c89=$ac_arg
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.beam
4429 test "x$ac_cv_prog_cc_c89" != "xno" && break
4430 done
4431 rm -f conftest.$ac_ext
4432 CC=$ac_save_CC
4433 fi
4434
4435 if test "x$ac_cv_prog_cc_c89" = xno
4436 then :
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4438 printf "%s\n" "unsupported" >&6; }
4439 else $as_nop
4440 if test "x$ac_cv_prog_cc_c89" = x
4441 then :
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4443 printf "%s\n" "none needed" >&6; }
4444 else $as_nop
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4446 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4447 CC="$CC $ac_cv_prog_cc_c89"
4448 fi
4449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4450 ac_prog_cc_stdc=c89
4451 fi
4452 fi
4453
4454 ac_ext=c
4455 ac_cpp='$CPP $CPPFLAGS'
4456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459
4460
4461 ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4467 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4468 if test ${am_cv_prog_cc_c_o+y}
4469 then :
4470 printf %s "(cached) " >&6
4471 else $as_nop
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474
4475 int
4476 main (void)
4477 {
4478
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 # Make sure it works both with $CC and with simple cc.
4484 # Following AC_PROG_CC_C_O, we do the test twice because some
4485 # compilers refuse to overwrite an existing .o file with -o,
4486 # though they will create one.
4487 am_cv_prog_cc_c_o=yes
4488 for am_i in 1 2; do
4489 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4490 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } \
4494 && test -f conftest2.$ac_objext; then
4495 : OK
4496 else
4497 am_cv_prog_cc_c_o=no
4498 break
4499 fi
4500 done
4501 rm -f core conftest*
4502 unset am_i
4503 fi
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4505 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4506 if test "$am_cv_prog_cc_c_o" != yes; then
4507 # Losing compiler, so override with the script.
4508 # FIXME: It is wrong to rewrite CC.
4509 # But if we don't then we get into trouble of one sort or another.
4510 # A longer-term fix would be to have automake use am__CC in this case,
4511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4512 CC="$am_aux_dir/compile $CC"
4513 fi
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520
4521 depcc="$CC" am_compiler_list=
4522
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4524 printf %s "checking dependency style of $depcc... " >&6; }
4525 if test ${am_cv_CC_dependencies_compiler_type+y}
4526 then :
4527 printf %s "(cached) " >&6
4528 else $as_nop
4529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4530 # We make a subdir and do the tests there. Otherwise we can end up
4531 # making bogus files that we don't know about and never remove. For
4532 # instance it was reported that on HP-UX the gcc test will end up
4533 # making a dummy file named 'D' -- because '-MD' means "put the output
4534 # in D".
4535 rm -rf conftest.dir
4536 mkdir conftest.dir
4537 # Copy depcomp to subdir because otherwise we won't find it if we're
4538 # using a relative directory.
4539 cp "$am_depcomp" conftest.dir
4540 cd conftest.dir
4541 # We will build objects and dependencies in a subdirectory because
4542 # it helps to detect inapplicable dependency modes. For instance
4543 # both Tru64's cc and ICC support -MD to output dependencies as a
4544 # side effect of compilation, but ICC will put the dependencies in
4545 # the current directory while Tru64 will put them in the object
4546 # directory.
4547 mkdir sub
4548
4549 am_cv_CC_dependencies_compiler_type=none
4550 if test "$am_compiler_list" = ""; then
4551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4552 fi
4553 am__universal=false
4554 case " $depcc " in #(
4555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4556 esac
4557
4558 for depmode in $am_compiler_list; do
4559 # Setup a source with many dependencies, because some compilers
4560 # like to wrap large dependency lists on column 80 (with \), and
4561 # we should not choose a depcomp mode which is confused by this.
4562 #
4563 # We need to recreate these files for each test, as the compiler may
4564 # overwrite some of them when testing with obscure command lines.
4565 # This happens at least with the AIX C compiler.
4566 : > sub/conftest.c
4567 for i in 1 2 3 4 5 6; do
4568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4569 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4570 # Solaris 10 /bin/sh.
4571 echo '/* dummy */' > sub/conftst$i.h
4572 done
4573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4574
4575 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4576 # mode. It turns out that the SunPro C++ compiler does not properly
4577 # handle '-M -o', and we need to detect this. Also, some Intel
4578 # versions had trouble with output in subdirs.
4579 am__obj=sub/conftest.${OBJEXT-o}
4580 am__minus_obj="-o $am__obj"
4581 case $depmode in
4582 gcc)
4583 # This depmode causes a compiler race in universal mode.
4584 test "$am__universal" = false || continue
4585 ;;
4586 nosideeffect)
4587 # After this tag, mechanisms are not by side-effect, so they'll
4588 # only be used when explicitly requested.
4589 if test "x$enable_dependency_tracking" = xyes; then
4590 continue
4591 else
4592 break
4593 fi
4594 ;;
4595 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4596 # This compiler won't grok '-c -o', but also, the minuso test has
4597 # not run yet. These depmodes are late enough in the game, and
4598 # so weak that their functioning should not be impacted.
4599 am__obj=conftest.${OBJEXT-o}
4600 am__minus_obj=
4601 ;;
4602 none) break ;;
4603 esac
4604 if depmode=$depmode \
4605 source=sub/conftest.c object=$am__obj \
4606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4608 >/dev/null 2>conftest.err &&
4609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4613 # icc doesn't choke on unknown options, it will just issue warnings
4614 # or remarks (even with -Werror). So we grep stderr for any message
4615 # that says an option was ignored or not supported.
4616 # When given -MP, icc 7.0 and 7.1 complain thusly:
4617 # icc: Command line warning: ignoring option '-M'; no argument required
4618 # The diagnosis changed in icc 8.0:
4619 # icc: Command line remark: option '-MP' not supported
4620 if (grep 'ignoring option' conftest.err ||
4621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4622 am_cv_CC_dependencies_compiler_type=$depmode
4623 break
4624 fi
4625 fi
4626 done
4627
4628 cd ..
4629 rm -rf conftest.dir
4630 else
4631 am_cv_CC_dependencies_compiler_type=none
4632 fi
4633
4634 fi
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4636 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4637 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4638
4639 if
4640 test "x$enable_dependency_tracking" != xno \
4641 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4642 am__fastdepCC_TRUE=
4643 am__fastdepCC_FALSE='#'
4644 else
4645 am__fastdepCC_TRUE='#'
4646 am__fastdepCC_FALSE=
4647 fi
4648
4649
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4651 printf %s "checking for a sed that does not truncate output... " >&6; }
4652 if test ${ac_cv_path_SED+y}
4653 then :
4654 printf %s "(cached) " >&6
4655 else $as_nop
4656 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4657 for ac_i in 1 2 3 4 5 6 7; do
4658 ac_script="$ac_script$as_nl$ac_script"
4659 done
4660 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4661 { ac_script=; unset ac_script;}
4662 if test -z "$SED"; then
4663 ac_path_SED_found=false
4664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668 IFS=$as_save_IFS
4669 case $as_dir in #(((
4670 '') as_dir=./ ;;
4671 */) ;;
4672 *) as_dir=$as_dir/ ;;
4673 esac
4674 for ac_prog in sed gsed
4675 do
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4678 as_fn_executable_p "$ac_path_SED" || continue
4679 # Check for GNU ac_path_SED and select it if it is found.
4680 # Check for GNU $ac_path_SED
4681 case `"$ac_path_SED" --version 2>&1` in
4682 *GNU*)
4683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4684 *)
4685 ac_count=0
4686 printf %s 0123456789 >"conftest.in"
4687 while :
4688 do
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 printf "%s\n" '' >> "conftest.nl"
4693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
4696 if test $ac_count -gt ${ac_path_SED_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_SED="$ac_path_SED"
4699 ac_path_SED_max=$ac_count
4700 fi
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
4703 done
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 esac
4706
4707 $ac_path_SED_found && break 3
4708 done
4709 done
4710 done
4711 IFS=$as_save_IFS
4712 if test -z "$ac_cv_path_SED"; then
4713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4714 fi
4715 else
4716 ac_cv_path_SED=$SED
4717 fi
4718
4719 fi
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4721 printf "%s\n" "$ac_cv_path_SED" >&6; }
4722 SED="$ac_cv_path_SED"
4723 rm -f conftest.sed
4724
4725 test -z "$SED" && SED=sed
4726 Xsed="$SED -e 1s/^X//"
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4739 printf %s "checking for grep that handles long lines and -e... " >&6; }
4740 if test ${ac_cv_path_GREP+y}
4741 then :
4742 printf %s "(cached) " >&6
4743 else $as_nop
4744 if test -z "$GREP"; then
4745 ac_path_GREP_found=false
4746 # Loop through the user's path and test for each of PROGNAME-LIST
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4749 do
4750 IFS=$as_save_IFS
4751 case $as_dir in #(((
4752 '') as_dir=./ ;;
4753 */) ;;
4754 *) as_dir=$as_dir/ ;;
4755 esac
4756 for ac_prog in grep ggrep
4757 do
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4760 as_fn_executable_p "$ac_path_GREP" || continue
4761 # Check for GNU ac_path_GREP and select it if it is found.
4762 # Check for GNU $ac_path_GREP
4763 case `"$ac_path_GREP" --version 2>&1` in
4764 *GNU*)
4765 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4766 *)
4767 ac_count=0
4768 printf %s 0123456789 >"conftest.in"
4769 while :
4770 do
4771 cat "conftest.in" "conftest.in" >"conftest.tmp"
4772 mv "conftest.tmp" "conftest.in"
4773 cp "conftest.in" "conftest.nl"
4774 printf "%s\n" 'GREP' >> "conftest.nl"
4775 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777 as_fn_arith $ac_count + 1 && ac_count=$as_val
4778 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4779 # Best one so far, save it but keep looking for a better one
4780 ac_cv_path_GREP="$ac_path_GREP"
4781 ac_path_GREP_max=$ac_count
4782 fi
4783 # 10*(2^10) chars as input seems more than enough
4784 test $ac_count -gt 10 && break
4785 done
4786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787 esac
4788
4789 $ac_path_GREP_found && break 3
4790 done
4791 done
4792 done
4793 IFS=$as_save_IFS
4794 if test -z "$ac_cv_path_GREP"; then
4795 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4796 fi
4797 else
4798 ac_cv_path_GREP=$GREP
4799 fi
4800
4801 fi
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4803 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4804 GREP="$ac_cv_path_GREP"
4805
4806
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4808 printf %s "checking for egrep... " >&6; }
4809 if test ${ac_cv_path_EGREP+y}
4810 then :
4811 printf %s "(cached) " >&6
4812 else $as_nop
4813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4814 then ac_cv_path_EGREP="$GREP -E"
4815 else
4816 if test -z "$EGREP"; then
4817 ac_path_EGREP_found=false
4818 # Loop through the user's path and test for each of PROGNAME-LIST
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4821 do
4822 IFS=$as_save_IFS
4823 case $as_dir in #(((
4824 '') as_dir=./ ;;
4825 */) ;;
4826 *) as_dir=$as_dir/ ;;
4827 esac
4828 for ac_prog in egrep
4829 do
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4832 as_fn_executable_p "$ac_path_EGREP" || continue
4833 # Check for GNU ac_path_EGREP and select it if it is found.
4834 # Check for GNU $ac_path_EGREP
4835 case `"$ac_path_EGREP" --version 2>&1` in
4836 *GNU*)
4837 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4838 *)
4839 ac_count=0
4840 printf %s 0123456789 >"conftest.in"
4841 while :
4842 do
4843 cat "conftest.in" "conftest.in" >"conftest.tmp"
4844 mv "conftest.tmp" "conftest.in"
4845 cp "conftest.in" "conftest.nl"
4846 printf "%s\n" 'EGREP' >> "conftest.nl"
4847 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849 as_fn_arith $ac_count + 1 && ac_count=$as_val
4850 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4851 # Best one so far, save it but keep looking for a better one
4852 ac_cv_path_EGREP="$ac_path_EGREP"
4853 ac_path_EGREP_max=$ac_count
4854 fi
4855 # 10*(2^10) chars as input seems more than enough
4856 test $ac_count -gt 10 && break
4857 done
4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861 $ac_path_EGREP_found && break 3
4862 done
4863 done
4864 done
4865 IFS=$as_save_IFS
4866 if test -z "$ac_cv_path_EGREP"; then
4867 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868 fi
4869 else
4870 ac_cv_path_EGREP=$EGREP
4871 fi
4872
4873 fi
4874 fi
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4876 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4877 EGREP="$ac_cv_path_EGREP"
4878
4879
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4881 printf %s "checking for fgrep... " >&6; }
4882 if test ${ac_cv_path_FGREP+y}
4883 then :
4884 printf %s "(cached) " >&6
4885 else $as_nop
4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4887 then ac_cv_path_FGREP="$GREP -F"
4888 else
4889 if test -z "$FGREP"; then
4890 ac_path_FGREP_found=false
4891 # Loop through the user's path and test for each of PROGNAME-LIST
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4894 do
4895 IFS=$as_save_IFS
4896 case $as_dir in #(((
4897 '') as_dir=./ ;;
4898 */) ;;
4899 *) as_dir=$as_dir/ ;;
4900 esac
4901 for ac_prog in fgrep
4902 do
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4905 as_fn_executable_p "$ac_path_FGREP" || continue
4906 # Check for GNU ac_path_FGREP and select it if it is found.
4907 # Check for GNU $ac_path_FGREP
4908 case `"$ac_path_FGREP" --version 2>&1` in
4909 *GNU*)
4910 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4911 *)
4912 ac_count=0
4913 printf %s 0123456789 >"conftest.in"
4914 while :
4915 do
4916 cat "conftest.in" "conftest.in" >"conftest.tmp"
4917 mv "conftest.tmp" "conftest.in"
4918 cp "conftest.in" "conftest.nl"
4919 printf "%s\n" 'FGREP' >> "conftest.nl"
4920 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4922 as_fn_arith $ac_count + 1 && ac_count=$as_val
4923 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4924 # Best one so far, save it but keep looking for a better one
4925 ac_cv_path_FGREP="$ac_path_FGREP"
4926 ac_path_FGREP_max=$ac_count
4927 fi
4928 # 10*(2^10) chars as input seems more than enough
4929 test $ac_count -gt 10 && break
4930 done
4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4932 esac
4933
4934 $ac_path_FGREP_found && break 3
4935 done
4936 done
4937 done
4938 IFS=$as_save_IFS
4939 if test -z "$ac_cv_path_FGREP"; then
4940 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4941 fi
4942 else
4943 ac_cv_path_FGREP=$FGREP
4944 fi
4945
4946 fi
4947 fi
4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4949 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4950 FGREP="$ac_cv_path_FGREP"
4951
4952
4953 test -z "$GREP" && GREP=grep
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 # Check whether --with-gnu-ld was given.
4974 if test ${with_gnu_ld+y}
4975 then :
4976 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4977 else $as_nop
4978 with_gnu_ld=no
4979 fi
4980
4981 ac_prog=ld
4982 if test yes = "$GCC"; then
4983 # Check if gcc -print-prog-name=ld gives a path.
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4985 printf %s "checking for ld used by $CC... " >&6; }
4986 case $host in
4987 *-*-mingw*)
4988 # gcc leaves a trailing carriage return, which upsets mingw
4989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4990 *)
4991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4992 esac
4993 case $ac_prog in
4994 # Accept absolute paths.
4995 [\\/]* | ?:[\\/]*)
4996 re_direlt='/[^/][^/]*/\.\./'
4997 # Canonicalize the pathname of ld
4998 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4999 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5000 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5001 done
5002 test -z "$LD" && LD=$ac_prog
5003 ;;
5004 "")
5005 # If it fails, then pretend we aren't using GCC.
5006 ac_prog=ld
5007 ;;
5008 *)
5009 # If it is relative, then search for the first ld in PATH.
5010 with_gnu_ld=unknown
5011 ;;
5012 esac
5013 elif test yes = "$with_gnu_ld"; then
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5015 printf %s "checking for GNU ld... " >&6; }
5016 else
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5018 printf %s "checking for non-GNU ld... " >&6; }
5019 fi
5020 if test ${lt_cv_path_LD+y}
5021 then :
5022 printf %s "(cached) " >&6
5023 else $as_nop
5024 if test -z "$LD"; then
5025 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5026 for ac_dir in $PATH; do
5027 IFS=$lt_save_ifs
5028 test -z "$ac_dir" && ac_dir=.
5029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5030 lt_cv_path_LD=$ac_dir/$ac_prog
5031 # Check to see if the program is GNU ld. I'd rather use --version,
5032 # but apparently some variants of GNU ld only accept -v.
5033 # Break only if it was the GNU/non-GNU ld that we prefer.
5034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5035 *GNU* | *'with BFD'*)
5036 test no != "$with_gnu_ld" && break
5037 ;;
5038 *)
5039 test yes != "$with_gnu_ld" && break
5040 ;;
5041 esac
5042 fi
5043 done
5044 IFS=$lt_save_ifs
5045 else
5046 lt_cv_path_LD=$LD # Let the user override the test with a path.
5047 fi
5048 fi
5049
5050 LD=$lt_cv_path_LD
5051 if test -n "$LD"; then
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5053 printf "%s\n" "$LD" >&6; }
5054 else
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 printf "%s\n" "no" >&6; }
5057 fi
5058 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5060 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5061 if test ${lt_cv_prog_gnu_ld+y}
5062 then :
5063 printf %s "(cached) " >&6
5064 else $as_nop
5065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5066 case `$LD -v 2>&1 </dev/null` in
5067 *GNU* | *'with BFD'*)
5068 lt_cv_prog_gnu_ld=yes
5069 ;;
5070 *)
5071 lt_cv_prog_gnu_ld=no
5072 ;;
5073 esac
5074 fi
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5076 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5077 with_gnu_ld=$lt_cv_prog_gnu_ld
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5088 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5089 if test ${lt_cv_path_NM+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else $as_nop
5093 if test -n "$NM"; then
5094 # Let the user override the test.
5095 lt_cv_path_NM=$NM
5096 else
5097 lt_nm_to_check=${ac_tool_prefix}nm
5098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5099 lt_nm_to_check="$lt_nm_to_check nm"
5100 fi
5101 for lt_tmp_nm in $lt_nm_to_check; do
5102 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5103 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5104 IFS=$lt_save_ifs
5105 test -z "$ac_dir" && ac_dir=.
5106 tmp_nm=$ac_dir/$lt_tmp_nm
5107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5108 # Check to see if the nm accepts a BSD-compat flag.
5109 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5110 # nm: unknown option "B" ignored
5111 # Tru64's nm complains that /dev/null is an invalid object file
5112 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5113 case $build_os in
5114 mingw*) lt_bad_file=conftest.nm/nofile ;;
5115 *) lt_bad_file=/dev/null ;;
5116 esac
5117 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5118 *$lt_bad_file* | *'Invalid file or object type'*)
5119 lt_cv_path_NM="$tmp_nm -B"
5120 break 2
5121 ;;
5122 *)
5123 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5124 */dev/null*)
5125 lt_cv_path_NM="$tmp_nm -p"
5126 break 2
5127 ;;
5128 *)
5129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130 continue # so that we can try to find one that supports BSD flags
5131 ;;
5132 esac
5133 ;;
5134 esac
5135 fi
5136 done
5137 IFS=$lt_save_ifs
5138 done
5139 : ${lt_cv_path_NM=no}
5140 fi
5141 fi
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5143 printf "%s\n" "$lt_cv_path_NM" >&6; }
5144 if test no != "$lt_cv_path_NM"; then
5145 NM=$lt_cv_path_NM
5146 else
5147 # Didn't find any BSD compatible name lister, look for dumpbin.
5148 if test -n "$DUMPBIN"; then :
5149 # Let the user override the test.
5150 else
5151 if test -n "$ac_tool_prefix"; then
5152 for ac_prog in dumpbin "link -dump"
5153 do
5154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 printf %s "checking for $ac_word... " >&6; }
5158 if test ${ac_cv_prog_DUMPBIN+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else $as_nop
5162 if test -n "$DUMPBIN"; then
5163 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 case $as_dir in #(((
5170 '') as_dir=./ ;;
5171 */) ;;
5172 *) as_dir=$as_dir/ ;;
5173 esac
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 DUMPBIN=$ac_cv_prog_DUMPBIN
5187 if test -n "$DUMPBIN"; then
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5189 printf "%s\n" "$DUMPBIN" >&6; }
5190 else
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 printf "%s\n" "no" >&6; }
5193 fi
5194
5195
5196 test -n "$DUMPBIN" && break
5197 done
5198 fi
5199 if test -z "$DUMPBIN"; then
5200 ac_ct_DUMPBIN=$DUMPBIN
5201 for ac_prog in dumpbin "link -dump"
5202 do
5203 # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 printf %s "checking for $ac_word... " >&6; }
5207 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5208 then :
5209 printf %s "(cached) " >&6
5210 else $as_nop
5211 if test -n "$ac_ct_DUMPBIN"; then
5212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217 IFS=$as_save_IFS
5218 case $as_dir in #(((
5219 '') as_dir=./ ;;
5220 */) ;;
5221 *) as_dir=$as_dir/ ;;
5222 esac
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229 done
5230 done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5236 if test -n "$ac_ct_DUMPBIN"; then
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5238 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5239 else
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 printf "%s\n" "no" >&6; }
5242 fi
5243
5244
5245 test -n "$ac_ct_DUMPBIN" && break
5246 done
5247
5248 if test "x$ac_ct_DUMPBIN" = x; then
5249 DUMPBIN=":"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 DUMPBIN=$ac_ct_DUMPBIN
5258 fi
5259 fi
5260
5261 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5262 *COFF*)
5263 DUMPBIN="$DUMPBIN -symbols -headers"
5264 ;;
5265 *)
5266 DUMPBIN=:
5267 ;;
5268 esac
5269 fi
5270
5271 if test : != "$DUMPBIN"; then
5272 NM=$DUMPBIN
5273 fi
5274 fi
5275 test -z "$NM" && NM=nm
5276
5277
5278
5279
5280
5281
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5283 printf %s "checking the name lister ($NM) interface... " >&6; }
5284 if test ${lt_cv_nm_interface+y}
5285 then :
5286 printf %s "(cached) " >&6
5287 else $as_nop
5288 lt_cv_nm_interface="BSD nm"
5289 echo "int some_variable = 0;" > conftest.$ac_ext
5290 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5291 (eval "$ac_compile" 2>conftest.err)
5292 cat conftest.err >&5
5293 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5294 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5295 cat conftest.err >&5
5296 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5297 cat conftest.out >&5
5298 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5299 lt_cv_nm_interface="MS dumpbin"
5300 fi
5301 rm -f conftest*
5302 fi
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5304 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5305
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5307 printf %s "checking whether ln -s works... " >&6; }
5308 LN_S=$as_ln_s
5309 if test "$LN_S" = "ln -s"; then
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 printf "%s\n" "yes" >&6; }
5312 else
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5314 printf "%s\n" "no, using $LN_S" >&6; }
5315 fi
5316
5317 # find the maximum length of command line arguments
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5319 printf %s "checking the maximum length of command line arguments... " >&6; }
5320 if test ${lt_cv_sys_max_cmd_len+y}
5321 then :
5322 printf %s "(cached) " >&6
5323 else $as_nop
5324 i=0
5325 teststring=ABCD
5326
5327 case $build_os in
5328 msdosdjgpp*)
5329 # On DJGPP, this test can blow up pretty badly due to problems in libc
5330 # (any single argument exceeding 2000 bytes causes a buffer overrun
5331 # during glob expansion). Even if it were fixed, the result of this
5332 # check would be larger than it should be.
5333 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5334 ;;
5335
5336 gnu*)
5337 # Under GNU Hurd, this test is not required because there is
5338 # no limit to the length of command line arguments.
5339 # Libtool will interpret -1 as no limit whatsoever
5340 lt_cv_sys_max_cmd_len=-1;
5341 ;;
5342
5343 cygwin* | mingw* | cegcc*)
5344 # On Win9x/ME, this test blows up -- it succeeds, but takes
5345 # about 5 minutes as the teststring grows exponentially.
5346 # Worse, since 9x/ME are not pre-emptively multitasking,
5347 # you end up with a "frozen" computer, even though with patience
5348 # the test eventually succeeds (with a max line length of 256k).
5349 # Instead, let's just punt: use the minimum linelength reported by
5350 # all of the supported platforms: 8192 (on NT/2K/XP).
5351 lt_cv_sys_max_cmd_len=8192;
5352 ;;
5353
5354 mint*)
5355 # On MiNT this can take a long time and run out of memory.
5356 lt_cv_sys_max_cmd_len=8192;
5357 ;;
5358
5359 amigaos*)
5360 # On AmigaOS with pdksh, this test takes hours, literally.
5361 # So we just punt and use a minimum line length of 8192.
5362 lt_cv_sys_max_cmd_len=8192;
5363 ;;
5364
5365 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5366 # This has been around since 386BSD, at least. Likely further.
5367 if test -x /sbin/sysctl; then
5368 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5369 elif test -x /usr/sbin/sysctl; then
5370 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5371 else
5372 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5373 fi
5374 # And add a safety zone
5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5377 ;;
5378
5379 interix*)
5380 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5381 lt_cv_sys_max_cmd_len=196608
5382 ;;
5383
5384 os2*)
5385 # The test takes a long time on OS/2.
5386 lt_cv_sys_max_cmd_len=8192
5387 ;;
5388
5389 osf*)
5390 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5391 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5392 # nice to cause kernel panics so lets avoid the loop below.
5393 # First set a reasonable default.
5394 lt_cv_sys_max_cmd_len=16384
5395 #
5396 if test -x /sbin/sysconfig; then
5397 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5398 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5399 esac
5400 fi
5401 ;;
5402 sco3.2v5*)
5403 lt_cv_sys_max_cmd_len=102400
5404 ;;
5405 sysv5* | sco5v6* | sysv4.2uw2*)
5406 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5407 if test -n "$kargmax"; then
5408 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5409 else
5410 lt_cv_sys_max_cmd_len=32768
5411 fi
5412 ;;
5413 *)
5414 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5415 if test -n "$lt_cv_sys_max_cmd_len" && \
5416 test undefined != "$lt_cv_sys_max_cmd_len"; then
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419 else
5420 # Make teststring a little bigger before we do anything with it.
5421 # a 1K string should be a reasonable start.
5422 for i in 1 2 3 4 5 6 7 8; do
5423 teststring=$teststring$teststring
5424 done
5425 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5426 # If test is not a shell built-in, we'll probably end up computing a
5427 # maximum length that is only half of the actual maximum length, but
5428 # we can't tell.
5429 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5430 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5431 test 17 != "$i" # 1/2 MB should be enough
5432 do
5433 i=`expr $i + 1`
5434 teststring=$teststring$teststring
5435 done
5436 # Only check the string length outside the loop.
5437 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5438 teststring=
5439 # Add a significant safety factor because C++ compilers can tack on
5440 # massive amounts of additional arguments before passing them to the
5441 # linker. It appears as though 1/2 is a usable value.
5442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5443 fi
5444 ;;
5445 esac
5446
5447 fi
5448
5449 if test -n "$lt_cv_sys_max_cmd_len"; then
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5451 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5452 else
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5454 printf "%s\n" "none" >&6; }
5455 fi
5456 max_cmd_len=$lt_cv_sys_max_cmd_len
5457
5458
5459
5460
5461
5462
5463 : ${CP="cp -f"}
5464 : ${MV="mv -f"}
5465 : ${RM="rm -f"}
5466
5467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5468 lt_unset=unset
5469 else
5470 lt_unset=false
5471 fi
5472
5473
5474
5475
5476
5477 # test EBCDIC or ASCII
5478 case `echo X|tr X '\101'` in
5479 A) # ASCII based system
5480 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5481 lt_SP2NL='tr \040 \012'
5482 lt_NL2SP='tr \015\012 \040\040'
5483 ;;
5484 *) # EBCDIC based system
5485 lt_SP2NL='tr \100 \n'
5486 lt_NL2SP='tr \r\n \100\100'
5487 ;;
5488 esac
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5499 printf %s "checking how to convert $build file names to $host format... " >&6; }
5500 if test ${lt_cv_to_host_file_cmd+y}
5501 then :
5502 printf %s "(cached) " >&6
5503 else $as_nop
5504 case $host in
5505 *-*-mingw* )
5506 case $build in
5507 *-*-mingw* ) # actually msys
5508 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5509 ;;
5510 *-*-cygwin* )
5511 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5512 ;;
5513 * ) # otherwise, assume *nix
5514 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5515 ;;
5516 esac
5517 ;;
5518 *-*-cygwin* )
5519 case $build in
5520 *-*-mingw* ) # actually msys
5521 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5522 ;;
5523 *-*-cygwin* )
5524 lt_cv_to_host_file_cmd=func_convert_file_noop
5525 ;;
5526 * ) # otherwise, assume *nix
5527 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5528 ;;
5529 esac
5530 ;;
5531 * ) # unhandled hosts (and "normal" native builds)
5532 lt_cv_to_host_file_cmd=func_convert_file_noop
5533 ;;
5534 esac
5535
5536 fi
5537
5538 to_host_file_cmd=$lt_cv_to_host_file_cmd
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5540 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5541
5542
5543
5544
5545
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5547 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5548 if test ${lt_cv_to_tool_file_cmd+y}
5549 then :
5550 printf %s "(cached) " >&6
5551 else $as_nop
5552 #assume ordinary cross tools, or native build.
5553 lt_cv_to_tool_file_cmd=func_convert_file_noop
5554 case $host in
5555 *-*-mingw* )
5556 case $build in
5557 *-*-mingw* ) # actually msys
5558 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5559 ;;
5560 esac
5561 ;;
5562 esac
5563
5564 fi
5565
5566 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5568 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5569
5570
5571
5572
5573
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5575 printf %s "checking for $LD option to reload object files... " >&6; }
5576 if test ${lt_cv_ld_reload_flag+y}
5577 then :
5578 printf %s "(cached) " >&6
5579 else $as_nop
5580 lt_cv_ld_reload_flag='-r'
5581 fi
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5583 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5584 reload_flag=$lt_cv_ld_reload_flag
5585 case $reload_flag in
5586 "" | " "*) ;;
5587 *) reload_flag=" $reload_flag" ;;
5588 esac
5589 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5590 case $host_os in
5591 cygwin* | mingw* | pw32* | cegcc*)
5592 if test yes != "$GCC"; then
5593 reload_cmds=false
5594 fi
5595 ;;
5596 darwin*)
5597 if test yes = "$GCC"; then
5598 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5599 else
5600 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5601 fi
5602 ;;
5603 esac
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613 if test -n "$ac_tool_prefix"; then
5614 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5615 set dummy ${ac_tool_prefix}file; ac_word=$2
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 printf %s "checking for $ac_word... " >&6; }
5618 if test ${ac_cv_prog_FILECMD+y}
5619 then :
5620 printf %s "(cached) " >&6
5621 else $as_nop
5622 if test -n "$FILECMD"; then
5623 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 case $as_dir in #(((
5630 '') as_dir=./ ;;
5631 */) ;;
5632 *) as_dir=$as_dir/ ;;
5633 esac
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5638 break 2
5639 fi
5640 done
5641 done
5642 IFS=$as_save_IFS
5643
5644 fi
5645 fi
5646 FILECMD=$ac_cv_prog_FILECMD
5647 if test -n "$FILECMD"; then
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5649 printf "%s\n" "$FILECMD" >&6; }
5650 else
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 printf "%s\n" "no" >&6; }
5653 fi
5654
5655
5656 fi
5657 if test -z "$ac_cv_prog_FILECMD"; then
5658 ac_ct_FILECMD=$FILECMD
5659 # Extract the first word of "file", so it can be a program name with args.
5660 set dummy file; ac_word=$2
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 printf %s "checking for $ac_word... " >&6; }
5663 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5664 then :
5665 printf %s "(cached) " >&6
5666 else $as_nop
5667 if test -n "$ac_ct_FILECMD"; then
5668 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673 IFS=$as_save_IFS
5674 case $as_dir in #(((
5675 '') as_dir=./ ;;
5676 */) ;;
5677 *) as_dir=$as_dir/ ;;
5678 esac
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_ac_ct_FILECMD="file"
5682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5692 if test -n "$ac_ct_FILECMD"; then
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5694 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5695 else
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 printf "%s\n" "no" >&6; }
5698 fi
5699
5700 if test "x$ac_ct_FILECMD" = x; then
5701 FILECMD=":"
5702 else
5703 case $cross_compiling:$ac_tool_warned in
5704 yes:)
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707 ac_tool_warned=yes ;;
5708 esac
5709 FILECMD=$ac_ct_FILECMD
5710 fi
5711 else
5712 FILECMD="$ac_cv_prog_FILECMD"
5713 fi
5714
5715
5716
5717
5718
5719
5720
5721 if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 printf %s "checking for $ac_word... " >&6; }
5726 if test ${ac_cv_prog_OBJDUMP+y}
5727 then :
5728 printf %s "(cached) " >&6
5729 else $as_nop
5730 if test -n "$OBJDUMP"; then
5731 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736 IFS=$as_save_IFS
5737 case $as_dir in #(((
5738 '') as_dir=./ ;;
5739 */) ;;
5740 *) as_dir=$as_dir/ ;;
5741 esac
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 OBJDUMP=$ac_cv_prog_OBJDUMP
5755 if test -n "$OBJDUMP"; then
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5757 printf "%s\n" "$OBJDUMP" >&6; }
5758 else
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 printf "%s\n" "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_OBJDUMP"; then
5766 ac_ct_OBJDUMP=$OBJDUMP
5767 # Extract the first word of "objdump", so it can be a program name with args.
5768 set dummy objdump; ac_word=$2
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 printf %s "checking for $ac_word... " >&6; }
5771 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5772 then :
5773 printf %s "(cached) " >&6
5774 else $as_nop
5775 if test -n "$ac_ct_OBJDUMP"; then
5776 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781 IFS=$as_save_IFS
5782 case $as_dir in #(((
5783 '') as_dir=./ ;;
5784 */) ;;
5785 *) as_dir=$as_dir/ ;;
5786 esac
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5789 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5800 if test -n "$ac_ct_OBJDUMP"; then
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5802 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5803 else
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 printf "%s\n" "no" >&6; }
5806 fi
5807
5808 if test "x$ac_ct_OBJDUMP" = x; then
5809 OBJDUMP="false"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812 yes:)
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815 ac_tool_warned=yes ;;
5816 esac
5817 OBJDUMP=$ac_ct_OBJDUMP
5818 fi
5819 else
5820 OBJDUMP="$ac_cv_prog_OBJDUMP"
5821 fi
5822
5823 test -z "$OBJDUMP" && OBJDUMP=objdump
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5834 printf %s "checking how to recognize dependent libraries... " >&6; }
5835 if test ${lt_cv_deplibs_check_method+y}
5836 then :
5837 printf %s "(cached) " >&6
5838 else $as_nop
5839 lt_cv_file_magic_cmd='$MAGIC_CMD'
5840 lt_cv_file_magic_test_file=
5841 lt_cv_deplibs_check_method='unknown'
5842 # Need to set the preceding variable on all platforms that support
5843 # interlibrary dependencies.
5844 # 'none' -- dependencies not supported.
5845 # 'unknown' -- same as none, but documents that we really don't know.
5846 # 'pass_all' -- all dependencies passed with no checks.
5847 # 'test_compile' -- check by making test program.
5848 # 'file_magic [[regex]]' -- check by looking for files in library path
5849 # that responds to the $file_magic_cmd with a given extended regex.
5850 # If you have 'file' or equivalent on your system and you're not sure
5851 # whether 'pass_all' will *always* work, you probably want this one.
5852
5853 case $host_os in
5854 aix[4-9]*)
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857
5858 beos*)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861
5862 bsdi[45]*)
5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5864 lt_cv_file_magic_cmd='$FILECMD -L'
5865 lt_cv_file_magic_test_file=/shlib/libc.so
5866 ;;
5867
5868 cygwin*)
5869 # func_win32_libid is a shell function defined in ltmain.sh
5870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5871 lt_cv_file_magic_cmd='func_win32_libid'
5872 ;;
5873
5874 mingw* | pw32*)
5875 # Base MSYS/MinGW do not provide the 'file' command needed by
5876 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5877 # unless we find 'file', for example because we are cross-compiling.
5878 if ( file / ) >/dev/null 2>&1; then
5879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5880 lt_cv_file_magic_cmd='func_win32_libid'
5881 else
5882 # Keep this pattern in sync with the one in func_win32_libid.
5883 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5884 lt_cv_file_magic_cmd='$OBJDUMP -f'
5885 fi
5886 ;;
5887
5888 cegcc*)
5889 # use the weaker test based on 'objdump'. See mingw*.
5890 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5891 lt_cv_file_magic_cmd='$OBJDUMP -f'
5892 ;;
5893
5894 darwin* | rhapsody*)
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897
5898 freebsd* | dragonfly* | midnightbsd*)
5899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5900 case $host_cpu in
5901 i*86 )
5902 # Not sure whether the presence of OpenBSD here was a mistake.
5903 # Let's accept both of them until this is cleared up.
5904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5905 lt_cv_file_magic_cmd=$FILECMD
5906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5907 ;;
5908 esac
5909 else
5910 lt_cv_deplibs_check_method=pass_all
5911 fi
5912 ;;
5913
5914 haiku*)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
5917
5918 hpux10.20* | hpux11*)
5919 lt_cv_file_magic_cmd=$FILECMD
5920 case $host_cpu in
5921 ia64*)
5922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5923 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5924 ;;
5925 hppa*64*)
5926 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]'
5927 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5928 ;;
5929 *)
5930 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5931 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5932 ;;
5933 esac
5934 ;;
5935
5936 interix[3-9]*)
5937 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5939 ;;
5940
5941 irix5* | irix6* | nonstopux*)
5942 case $LD in
5943 *-32|*"-32 ") libmagic=32-bit;;
5944 *-n32|*"-n32 ") libmagic=N32;;
5945 *-64|*"-64 ") libmagic=64-bit;;
5946 *) libmagic=never-match;;
5947 esac
5948 lt_cv_deplibs_check_method=pass_all
5949 ;;
5950
5951 # This must be glibc/ELF.
5952 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5953 lt_cv_deplibs_check_method=pass_all
5954 ;;
5955
5956 netbsd*)
5957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5959 else
5960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5961 fi
5962 ;;
5963
5964 newos6*)
5965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5966 lt_cv_file_magic_cmd=$FILECMD
5967 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5968 ;;
5969
5970 *nto* | *qnx*)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973
5974 openbsd* | bitrig*)
5975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5977 else
5978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5979 fi
5980 ;;
5981
5982 osf3* | osf4* | osf5*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986 rdos*)
5987 lt_cv_deplibs_check_method=pass_all
5988 ;;
5989
5990 solaris*)
5991 lt_cv_deplibs_check_method=pass_all
5992 ;;
5993
5994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997
5998 sysv4 | sysv4.3*)
5999 case $host_vendor in
6000 motorola)
6001 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]'
6002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6003 ;;
6004 ncr)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007 sequent)
6008 lt_cv_file_magic_cmd='/bin/file'
6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6010 ;;
6011 sni)
6012 lt_cv_file_magic_cmd='/bin/file'
6013 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6014 lt_cv_file_magic_test_file=/lib/libc.so
6015 ;;
6016 siemens)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019 pc)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022 esac
6023 ;;
6024
6025 tpf*)
6026 lt_cv_deplibs_check_method=pass_all
6027 ;;
6028 os2*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031 esac
6032
6033 fi
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6035 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6036
6037 file_magic_glob=
6038 want_nocaseglob=no
6039 if test "$build" = "$host"; then
6040 case $host_os in
6041 mingw* | pw32*)
6042 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6043 want_nocaseglob=yes
6044 else
6045 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6046 fi
6047 ;;
6048 esac
6049 fi
6050
6051 file_magic_cmd=$lt_cv_file_magic_cmd
6052 deplibs_check_method=$lt_cv_deplibs_check_method
6053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 printf %s "checking for $ac_word... " >&6; }
6081 if test ${ac_cv_prog_DLLTOOL+y}
6082 then :
6083 printf %s "(cached) " >&6
6084 else $as_nop
6085 if test -n "$DLLTOOL"; then
6086 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091 IFS=$as_save_IFS
6092 case $as_dir in #(((
6093 '') as_dir=./ ;;
6094 */) ;;
6095 *) as_dir=$as_dir/ ;;
6096 esac
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103 done
6104 done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 DLLTOOL=$ac_cv_prog_DLLTOOL
6110 if test -n "$DLLTOOL"; then
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6112 printf "%s\n" "$DLLTOOL" >&6; }
6113 else
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 printf "%s\n" "no" >&6; }
6116 fi
6117
6118
6119 fi
6120 if test -z "$ac_cv_prog_DLLTOOL"; then
6121 ac_ct_DLLTOOL=$DLLTOOL
6122 # Extract the first word of "dlltool", so it can be a program name with args.
6123 set dummy dlltool; ac_word=$2
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 printf %s "checking for $ac_word... " >&6; }
6126 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else $as_nop
6130 if test -n "$ac_ct_DLLTOOL"; then
6131 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136 IFS=$as_save_IFS
6137 case $as_dir in #(((
6138 '') as_dir=./ ;;
6139 */) ;;
6140 *) as_dir=$as_dir/ ;;
6141 esac
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6155 if test -n "$ac_ct_DLLTOOL"; then
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6157 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6158 else
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 printf "%s\n" "no" >&6; }
6161 fi
6162
6163 if test "x$ac_ct_DLLTOOL" = x; then
6164 DLLTOOL="false"
6165 else
6166 case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6171 esac
6172 DLLTOOL=$ac_ct_DLLTOOL
6173 fi
6174 else
6175 DLLTOOL="$ac_cv_prog_DLLTOOL"
6176 fi
6177
6178 test -z "$DLLTOOL" && DLLTOOL=dlltool
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6190 printf %s "checking how to associate runtime and link libraries... " >&6; }
6191 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6192 then :
6193 printf %s "(cached) " >&6
6194 else $as_nop
6195 lt_cv_sharedlib_from_linklib_cmd='unknown'
6196
6197 case $host_os in
6198 cygwin* | mingw* | pw32* | cegcc*)
6199 # two different shell functions defined in ltmain.sh;
6200 # decide which one to use based on capabilities of $DLLTOOL
6201 case `$DLLTOOL --help 2>&1` in
6202 *--identify-strict*)
6203 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6204 ;;
6205 *)
6206 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6207 ;;
6208 esac
6209 ;;
6210 *)
6211 # fallback: assume linklib IS sharedlib
6212 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6213 ;;
6214 esac
6215
6216 fi
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6218 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6219 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6220 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6221
6222
6223
6224
6225
6226
6227
6228
6229 if test -n "$ac_tool_prefix"; then
6230 for ac_prog in ar
6231 do
6232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 printf %s "checking for $ac_word... " >&6; }
6236 if test ${ac_cv_prog_AR+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else $as_nop
6240 if test -n "$AR"; then
6241 ac_cv_prog_AR="$AR" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 case $as_dir in #(((
6248 '') as_dir=./ ;;
6249 */) ;;
6250 *) as_dir=$as_dir/ ;;
6251 esac
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 AR=$ac_cv_prog_AR
6265 if test -n "$AR"; then
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6267 printf "%s\n" "$AR" >&6; }
6268 else
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 printf "%s\n" "no" >&6; }
6271 fi
6272
6273
6274 test -n "$AR" && break
6275 done
6276 fi
6277 if test -z "$AR"; then
6278 ac_ct_AR=$AR
6279 for ac_prog in ar
6280 do
6281 # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 printf %s "checking for $ac_word... " >&6; }
6285 if test ${ac_cv_prog_ac_ct_AR+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else $as_nop
6289 if test -n "$ac_ct_AR"; then
6290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 case $as_dir in #(((
6297 '') as_dir=./ ;;
6298 */) ;;
6299 *) as_dir=$as_dir/ ;;
6300 esac
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_AR="$ac_prog"
6304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6314 if test -n "$ac_ct_AR"; then
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6316 printf "%s\n" "$ac_ct_AR" >&6; }
6317 else
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 printf "%s\n" "no" >&6; }
6320 fi
6321
6322
6323 test -n "$ac_ct_AR" && break
6324 done
6325
6326 if test "x$ac_ct_AR" = x; then
6327 AR="false"
6328 else
6329 case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335 AR=$ac_ct_AR
6336 fi
6337 fi
6338
6339 : ${AR=ar}
6340
6341
6342
6343
6344
6345
6346 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6347 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6348 # higher priority because thats what people were doing historically (setting
6349 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6350 # variable obsoleted/removed.
6351
6352 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6353 lt_ar_flags=$AR_FLAGS
6354
6355
6356
6357
6358
6359
6360 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6361 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6362
6363
6364
6365
6366
6367
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6369 printf %s "checking for archiver @FILE support... " >&6; }
6370 if test ${lt_cv_ar_at_file+y}
6371 then :
6372 printf %s "(cached) " >&6
6373 else $as_nop
6374 lt_cv_ar_at_file=no
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377
6378 int
6379 main (void)
6380 {
6381
6382 ;
6383 return 0;
6384 }
6385 _ACEOF
6386 if ac_fn_c_try_compile "$LINENO"
6387 then :
6388 echo conftest.$ac_objext > conftest.lst
6389 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6391 (eval $lt_ar_try) 2>&5
6392 ac_status=$?
6393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6394 test $ac_status = 0; }
6395 if test 0 -eq "$ac_status"; then
6396 # Ensure the archiver fails upon bogus file names.
6397 rm -f conftest.$ac_objext libconftest.a
6398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6399 (eval $lt_ar_try) 2>&5
6400 ac_status=$?
6401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }
6403 if test 0 -ne "$ac_status"; then
6404 lt_cv_ar_at_file=@
6405 fi
6406 fi
6407 rm -f conftest.* libconftest.a
6408
6409 fi
6410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6411
6412 fi
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6414 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6415
6416 if test no = "$lt_cv_ar_at_file"; then
6417 archiver_list_spec=
6418 else
6419 archiver_list_spec=$lt_cv_ar_at_file
6420 fi
6421
6422
6423
6424
6425
6426
6427
6428 if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}strip; ac_word=$2
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 printf %s "checking for $ac_word... " >&6; }
6433 if test ${ac_cv_prog_STRIP+y}
6434 then :
6435 printf %s "(cached) " >&6
6436 else $as_nop
6437 if test -n "$STRIP"; then
6438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 case $as_dir in #(((
6445 '') as_dir=./ ;;
6446 */) ;;
6447 *) as_dir=$as_dir/ ;;
6448 esac
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 STRIP=$ac_cv_prog_STRIP
6462 if test -n "$STRIP"; then
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6464 printf "%s\n" "$STRIP" >&6; }
6465 else
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 printf "%s\n" "no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_STRIP"; then
6473 ac_ct_STRIP=$STRIP
6474 # Extract the first word of "strip", so it can be a program name with args.
6475 set dummy strip; ac_word=$2
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 printf %s "checking for $ac_word... " >&6; }
6478 if test ${ac_cv_prog_ac_ct_STRIP+y}
6479 then :
6480 printf %s "(cached) " >&6
6481 else $as_nop
6482 if test -n "$ac_ct_STRIP"; then
6483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488 IFS=$as_save_IFS
6489 case $as_dir in #(((
6490 '') as_dir=./ ;;
6491 */) ;;
6492 *) as_dir=$as_dir/ ;;
6493 esac
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_ac_ct_STRIP="strip"
6497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6507 if test -n "$ac_ct_STRIP"; then
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6509 printf "%s\n" "$ac_ct_STRIP" >&6; }
6510 else
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 printf "%s\n" "no" >&6; }
6513 fi
6514
6515 if test "x$ac_ct_STRIP" = x; then
6516 STRIP=":"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 STRIP=$ac_ct_STRIP
6525 fi
6526 else
6527 STRIP="$ac_cv_prog_STRIP"
6528 fi
6529
6530 test -z "$STRIP" && STRIP=:
6531
6532
6533
6534
6535
6536
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 printf %s "checking for $ac_word... " >&6; }
6542 if test ${ac_cv_prog_RANLIB+y}
6543 then :
6544 printf %s "(cached) " >&6
6545 else $as_nop
6546 if test -n "$RANLIB"; then
6547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552 IFS=$as_save_IFS
6553 case $as_dir in #(((
6554 '') as_dir=./ ;;
6555 */) ;;
6556 *) as_dir=$as_dir/ ;;
6557 esac
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 RANLIB=$ac_cv_prog_RANLIB
6571 if test -n "$RANLIB"; then
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6573 printf "%s\n" "$RANLIB" >&6; }
6574 else
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 printf "%s\n" "no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_RANLIB"; then
6582 ac_ct_RANLIB=$RANLIB
6583 # Extract the first word of "ranlib", so it can be a program name with args.
6584 set dummy ranlib; ac_word=$2
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 printf %s "checking for $ac_word... " >&6; }
6587 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6588 then :
6589 printf %s "(cached) " >&6
6590 else $as_nop
6591 if test -n "$ac_ct_RANLIB"; then
6592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597 IFS=$as_save_IFS
6598 case $as_dir in #(((
6599 '') as_dir=./ ;;
6600 */) ;;
6601 *) as_dir=$as_dir/ ;;
6602 esac
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_ac_ct_RANLIB="ranlib"
6606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6616 if test -n "$ac_ct_RANLIB"; then
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6618 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6619 else
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 printf "%s\n" "no" >&6; }
6622 fi
6623
6624 if test "x$ac_ct_RANLIB" = x; then
6625 RANLIB=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 RANLIB=$ac_ct_RANLIB
6634 fi
6635 else
6636 RANLIB="$ac_cv_prog_RANLIB"
6637 fi
6638
6639 test -z "$RANLIB" && RANLIB=:
6640
6641
6642
6643
6644
6645
6646 # Determine commands to create old-style static archives.
6647 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6648 old_postinstall_cmds='chmod 644 $oldlib'
6649 old_postuninstall_cmds=
6650
6651 if test -n "$RANLIB"; then
6652 case $host_os in
6653 bitrig* | openbsd*)
6654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6655 ;;
6656 *)
6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6658 ;;
6659 esac
6660 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6661 fi
6662
6663 case $host_os in
6664 darwin*)
6665 lock_old_archive_extraction=yes ;;
6666 *)
6667 lock_old_archive_extraction=no ;;
6668 esac
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 # If no C compiler was specified, use CC.
6709 LTCC=${LTCC-"$CC"}
6710
6711 # If no C compiler flags were specified, use CFLAGS.
6712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6713
6714 # Allow CC to be a program name with arguments.
6715 compiler=$CC
6716
6717
6718 # Check for command to grab the raw symbol name followed by C symbol from nm.
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6720 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6721 if test ${lt_cv_sys_global_symbol_pipe+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else $as_nop
6725
6726 # These are sane defaults that work on at least a few old systems.
6727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6728
6729 # Character class describing NM global symbol codes.
6730 symcode='[BCDEGRST]'
6731
6732 # Regexp to match symbols that can be accessed directly from C.
6733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6734
6735 # Define system-specific variables.
6736 case $host_os in
6737 aix*)
6738 symcode='[BCDT]'
6739 ;;
6740 cygwin* | mingw* | pw32* | cegcc*)
6741 symcode='[ABCDGISTW]'
6742 ;;
6743 hpux*)
6744 if test ia64 = "$host_cpu"; then
6745 symcode='[ABCDEGRST]'
6746 fi
6747 ;;
6748 irix* | nonstopux*)
6749 symcode='[BCDEGRST]'
6750 ;;
6751 osf*)
6752 symcode='[BCDEGQRST]'
6753 ;;
6754 solaris*)
6755 symcode='[BDRT]'
6756 ;;
6757 sco3.2v5*)
6758 symcode='[DT]'
6759 ;;
6760 sysv4.2uw2*)
6761 symcode='[DT]'
6762 ;;
6763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6764 symcode='[ABDT]'
6765 ;;
6766 sysv4)
6767 symcode='[DFNSTU]'
6768 ;;
6769 esac
6770
6771 # If we're using GNU nm, then use its standard symbol codes.
6772 case `$NM -V 2>&1` in
6773 *GNU* | *'with BFD'*)
6774 symcode='[ABCDGIRSTW]' ;;
6775 esac
6776
6777 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6778 # Gets list of data symbols to import.
6779 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6780 # Adjust the below global symbol transforms to fixup imported variables.
6781 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6782 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6783 lt_c_name_lib_hook="\
6784 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6785 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6786 else
6787 # Disable hooks by default.
6788 lt_cv_sys_global_symbol_to_import=
6789 lt_cdecl_hook=
6790 lt_c_name_hook=
6791 lt_c_name_lib_hook=
6792 fi
6793
6794 # Transform an extracted symbol line into a proper C declaration.
6795 # Some systems (esp. on ia64) link data and code symbols differently,
6796 # so use this general approach.
6797 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6798 $lt_cdecl_hook\
6799 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6800 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6801
6802 # Transform an extracted symbol line into symbol name and symbol address
6803 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6804 $lt_c_name_hook\
6805 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6806 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6807
6808 # Transform an extracted symbol line into symbol name with lib prefix and
6809 # symbol address.
6810 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6811 $lt_c_name_lib_hook\
6812 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6813 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6814 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6815
6816 # Handle CRLF in mingw tool chain
6817 opt_cr=
6818 case $build_os in
6819 mingw*)
6820 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6821 ;;
6822 esac
6823
6824 # Try without a prefix underscore, then with it.
6825 for ac_symprfx in "" "_"; do
6826
6827 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6828 symxfrm="\\1 $ac_symprfx\\2 \\2"
6829
6830 # Write the raw and C identifiers.
6831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6832 # Fake it for dumpbin and say T for any non-static function,
6833 # D for any global variable and I for any imported variable.
6834 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6835 # which start with @ or ?.
6836 lt_cv_sys_global_symbol_pipe="$AWK '"\
6837 " {last_section=section; section=\$ 3};"\
6838 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6839 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6840 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6841 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6842 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6843 " \$ 0!~/External *\|/{next};"\
6844 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6845 " {if(hide[section]) next};"\
6846 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6847 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6848 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6849 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6850 " ' prfx=^$ac_symprfx"
6851 else
6852 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6853 fi
6854 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6855
6856 # Check to see that the pipe works correctly.
6857 pipe_works=no
6858
6859 rm -f conftest*
6860 cat > conftest.$ac_ext <<_LT_EOF
6861 #ifdef __cplusplus
6862 extern "C" {
6863 #endif
6864 char nm_test_var;
6865 void nm_test_func(void);
6866 void nm_test_func(void){}
6867 #ifdef __cplusplus
6868 }
6869 #endif
6870 int main(){nm_test_var='a';nm_test_func();return(0);}
6871 _LT_EOF
6872
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874 (eval $ac_compile) 2>&5
6875 ac_status=$?
6876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }; then
6878 # Now try to grab the symbols.
6879 nlist=conftest.nm
6880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6881 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6882 ac_status=$?
6883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6884 test $ac_status = 0; } && test -s "$nlist"; then
6885 # Try sorting and uniquifying the output.
6886 if sort "$nlist" | uniq > "$nlist"T; then
6887 mv -f "$nlist"T "$nlist"
6888 else
6889 rm -f "$nlist"T
6890 fi
6891
6892 # Make sure that we snagged all the symbols we need.
6893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6895 cat <<_LT_EOF > conftest.$ac_ext
6896 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6897 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6898 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6899 relocations are performed -- see ld's documentation on pseudo-relocs. */
6900 # define LT_DLSYM_CONST
6901 #elif defined __osf__
6902 /* This system does not cope well with relocations in const data. */
6903 # define LT_DLSYM_CONST
6904 #else
6905 # define LT_DLSYM_CONST const
6906 #endif
6907
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911
6912 _LT_EOF
6913 # Now generate the symbol file.
6914 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6915
6916 cat <<_LT_EOF >> conftest.$ac_ext
6917
6918 /* The mapping between symbol names and symbols. */
6919 LT_DLSYM_CONST struct {
6920 const char *name;
6921 void *address;
6922 }
6923 lt__PROGRAM__LTX_preloaded_symbols[] =
6924 {
6925 { "@PROGRAM@", (void *) 0 },
6926 _LT_EOF
6927 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6928 cat <<\_LT_EOF >> conftest.$ac_ext
6929 {0, (void *) 0}
6930 };
6931
6932 /* This works around a problem in FreeBSD linker */
6933 #ifdef FREEBSD_WORKAROUND
6934 static const void *lt_preloaded_setup() {
6935 return lt__PROGRAM__LTX_preloaded_symbols;
6936 }
6937 #endif
6938
6939 #ifdef __cplusplus
6940 }
6941 #endif
6942 _LT_EOF
6943 # Now try linking the two files.
6944 mv conftest.$ac_objext conftstm.$ac_objext
6945 lt_globsym_save_LIBS=$LIBS
6946 lt_globsym_save_CFLAGS=$CFLAGS
6947 LIBS=conftstm.$ac_objext
6948 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6950 (eval $ac_link) 2>&5
6951 ac_status=$?
6952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6954 pipe_works=yes
6955 fi
6956 LIBS=$lt_globsym_save_LIBS
6957 CFLAGS=$lt_globsym_save_CFLAGS
6958 else
6959 echo "cannot find nm_test_func in $nlist" >&5
6960 fi
6961 else
6962 echo "cannot find nm_test_var in $nlist" >&5
6963 fi
6964 else
6965 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6966 fi
6967 else
6968 echo "$progname: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 fi
6971 rm -rf conftest* conftst*
6972
6973 # Do not use the global_symbol_pipe unless it works.
6974 if test yes = "$pipe_works"; then
6975 break
6976 else
6977 lt_cv_sys_global_symbol_pipe=
6978 fi
6979 done
6980
6981 fi
6982
6983 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6984 lt_cv_sys_global_symbol_to_cdecl=
6985 fi
6986 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6988 printf "%s\n" "failed" >&6; }
6989 else
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6991 printf "%s\n" "ok" >&6; }
6992 fi
6993
6994 # Response file support.
6995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6996 nm_file_list_spec='@'
6997 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6998 nm_file_list_spec='@'
6999 fi
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7038 printf %s "checking for sysroot... " >&6; }
7039
7040 # Check whether --with-sysroot was given.
7041 if test ${with_sysroot+y}
7042 then :
7043 withval=$with_sysroot;
7044 else $as_nop
7045 with_sysroot=no
7046 fi
7047
7048
7049 lt_sysroot=
7050 case $with_sysroot in #(
7051 yes)
7052 if test yes = "$GCC"; then
7053 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7054 fi
7055 ;; #(
7056 /*)
7057 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7058 ;; #(
7059 no|'')
7060 ;; #(
7061 *)
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7063 printf "%s\n" "$with_sysroot" >&6; }
7064 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7065 ;;
7066 esac
7067
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7069 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7070
7071
7072
7073
7074
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7076 printf %s "checking for a working dd... " >&6; }
7077 if test ${ac_cv_path_lt_DD+y}
7078 then :
7079 printf %s "(cached) " >&6
7080 else $as_nop
7081 printf 0123456789abcdef0123456789abcdef >conftest.i
7082 cat conftest.i conftest.i >conftest2.i
7083 : ${lt_DD:=$DD}
7084 if test -z "$lt_DD"; then
7085 ac_path_lt_DD_found=false
7086 # Loop through the user's path and test for each of PROGNAME-LIST
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 case $as_dir in #(((
7092 '') as_dir=./ ;;
7093 */) ;;
7094 *) as_dir=$as_dir/ ;;
7095 esac
7096 for ac_prog in dd
7097 do
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7100 as_fn_executable_p "$ac_path_lt_DD" || continue
7101 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7102 cmp -s conftest.i conftest.out \
7103 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7104 fi
7105 $ac_path_lt_DD_found && break 3
7106 done
7107 done
7108 done
7109 IFS=$as_save_IFS
7110 if test -z "$ac_cv_path_lt_DD"; then
7111 :
7112 fi
7113 else
7114 ac_cv_path_lt_DD=$lt_DD
7115 fi
7116
7117 rm -f conftest.i conftest2.i conftest.out
7118 fi
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7120 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7121
7122
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7124 printf %s "checking how to truncate binary pipes... " >&6; }
7125 if test ${lt_cv_truncate_bin+y}
7126 then :
7127 printf %s "(cached) " >&6
7128 else $as_nop
7129 printf 0123456789abcdef0123456789abcdef >conftest.i
7130 cat conftest.i conftest.i >conftest2.i
7131 lt_cv_truncate_bin=
7132 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7133 cmp -s conftest.i conftest.out \
7134 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7135 fi
7136 rm -f conftest.i conftest2.i conftest.out
7137 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7138 fi
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7140 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7141
7142
7143
7144
7145
7146
7147
7148 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7149 func_cc_basename ()
7150 {
7151 for cc_temp in $*""; do
7152 case $cc_temp in
7153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7155 \-*) ;;
7156 *) break;;
7157 esac
7158 done
7159 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7160 }
7161
7162 # Check whether --enable-libtool-lock was given.
7163 if test ${enable_libtool_lock+y}
7164 then :
7165 enableval=$enable_libtool_lock;
7166 fi
7167
7168 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7169
7170 # Some flags need to be propagated to the compiler or linker for good
7171 # libtool support.
7172 case $host in
7173 ia64-*-hpux*)
7174 # Find out what ABI is being produced by ac_compile, and set mode
7175 # options accordingly.
7176 echo 'int i;' > conftest.$ac_ext
7177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7178 (eval $ac_compile) 2>&5
7179 ac_status=$?
7180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181 test $ac_status = 0; }; then
7182 case `$FILECMD conftest.$ac_objext` in
7183 *ELF-32*)
7184 HPUX_IA64_MODE=32
7185 ;;
7186 *ELF-64*)
7187 HPUX_IA64_MODE=64
7188 ;;
7189 esac
7190 fi
7191 rm -rf conftest*
7192 ;;
7193 *-*-irix6*)
7194 # Find out what ABI is being produced by ac_compile, and set linker
7195 # options accordingly.
7196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 if test yes = "$lt_cv_prog_gnu_ld"; then
7203 case `$FILECMD conftest.$ac_objext` in
7204 *32-bit*)
7205 LD="${LD-ld} -melf32bsmip"
7206 ;;
7207 *N32*)
7208 LD="${LD-ld} -melf32bmipn32"
7209 ;;
7210 *64-bit*)
7211 LD="${LD-ld} -melf64bmip"
7212 ;;
7213 esac
7214 else
7215 case `$FILECMD conftest.$ac_objext` in
7216 *32-bit*)
7217 LD="${LD-ld} -32"
7218 ;;
7219 *N32*)
7220 LD="${LD-ld} -n32"
7221 ;;
7222 *64-bit*)
7223 LD="${LD-ld} -64"
7224 ;;
7225 esac
7226 fi
7227 fi
7228 rm -rf conftest*
7229 ;;
7230
7231 mips64*-*linux*)
7232 # Find out what ABI is being produced by ac_compile, and set linker
7233 # options accordingly.
7234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7236 (eval $ac_compile) 2>&5
7237 ac_status=$?
7238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; }; then
7240 emul=elf
7241 case `$FILECMD conftest.$ac_objext` in
7242 *32-bit*)
7243 emul="${emul}32"
7244 ;;
7245 *64-bit*)
7246 emul="${emul}64"
7247 ;;
7248 esac
7249 case `$FILECMD conftest.$ac_objext` in
7250 *MSB*)
7251 emul="${emul}btsmip"
7252 ;;
7253 *LSB*)
7254 emul="${emul}ltsmip"
7255 ;;
7256 esac
7257 case `$FILECMD conftest.$ac_objext` in
7258 *N32*)
7259 emul="${emul}n32"
7260 ;;
7261 esac
7262 LD="${LD-ld} -m $emul"
7263 fi
7264 rm -rf conftest*
7265 ;;
7266
7267 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7268 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7269 # Find out what ABI is being produced by ac_compile, and set linker
7270 # options accordingly. Note that the listed cases only cover the
7271 # situations where additional linker options are needed (such as when
7272 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7273 # vice versa); the common cases where no linker options are needed do
7274 # not appear in the list.
7275 echo 'int i;' > conftest.$ac_ext
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
7279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
7281 case `$FILECMD conftest.o` in
7282 *32-bit*)
7283 case $host in
7284 x86_64-*kfreebsd*-gnu)
7285 LD="${LD-ld} -m elf_i386_fbsd"
7286 ;;
7287 x86_64-*linux*)
7288 case `$FILECMD conftest.o` in
7289 *x86-64*)
7290 LD="${LD-ld} -m elf32_x86_64"
7291 ;;
7292 *)
7293 LD="${LD-ld} -m elf_i386"
7294 ;;
7295 esac
7296 ;;
7297 powerpc64le-*linux*)
7298 LD="${LD-ld} -m elf32lppclinux"
7299 ;;
7300 powerpc64-*linux*)
7301 LD="${LD-ld} -m elf32ppclinux"
7302 ;;
7303 s390x-*linux*)
7304 LD="${LD-ld} -m elf_s390"
7305 ;;
7306 sparc64-*linux*)
7307 LD="${LD-ld} -m elf32_sparc"
7308 ;;
7309 esac
7310 ;;
7311 *64-bit*)
7312 case $host in
7313 x86_64-*kfreebsd*-gnu)
7314 LD="${LD-ld} -m elf_x86_64_fbsd"
7315 ;;
7316 x86_64-*linux*)
7317 LD="${LD-ld} -m elf_x86_64"
7318 ;;
7319 powerpcle-*linux*)
7320 LD="${LD-ld} -m elf64lppc"
7321 ;;
7322 powerpc-*linux*)
7323 LD="${LD-ld} -m elf64ppc"
7324 ;;
7325 s390*-*linux*|s390*-*tpf*)
7326 LD="${LD-ld} -m elf64_s390"
7327 ;;
7328 sparc*-*linux*)
7329 LD="${LD-ld} -m elf64_sparc"
7330 ;;
7331 esac
7332 ;;
7333 esac
7334 fi
7335 rm -rf conftest*
7336 ;;
7337
7338 *-*-sco3.2v5*)
7339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7340 SAVE_CFLAGS=$CFLAGS
7341 CFLAGS="$CFLAGS -belf"
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7343 printf %s "checking whether the C compiler needs -belf... " >&6; }
7344 if test ${lt_cv_cc_needs_belf+y}
7345 then :
7346 printf %s "(cached) " >&6
7347 else $as_nop
7348 ac_ext=c
7349 ac_cpp='$CPP $CPPFLAGS'
7350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356
7357 int
7358 main (void)
7359 {
7360
7361 ;
7362 return 0;
7363 }
7364 _ACEOF
7365 if ac_fn_c_try_link "$LINENO"
7366 then :
7367 lt_cv_cc_needs_belf=yes
7368 else $as_nop
7369 lt_cv_cc_needs_belf=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7372 conftest$ac_exeext conftest.$ac_ext
7373 ac_ext=c
7374 ac_cpp='$CPP $CPPFLAGS'
7375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378
7379 fi
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7381 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7382 if test yes != "$lt_cv_cc_needs_belf"; then
7383 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7384 CFLAGS=$SAVE_CFLAGS
7385 fi
7386 ;;
7387 *-*solaris*)
7388 # Find out what ABI is being produced by ac_compile, and set linker
7389 # options accordingly.
7390 echo 'int i;' > conftest.$ac_ext
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392 (eval $ac_compile) 2>&5
7393 ac_status=$?
7394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; }; then
7396 case `$FILECMD conftest.o` in
7397 *64-bit*)
7398 case $lt_cv_prog_gnu_ld in
7399 yes*)
7400 case $host in
7401 i?86-*-solaris*|x86_64-*-solaris*)
7402 LD="${LD-ld} -m elf_x86_64"
7403 ;;
7404 sparc*-*-solaris*)
7405 LD="${LD-ld} -m elf64_sparc"
7406 ;;
7407 esac
7408 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7409 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7410 LD=${LD-ld}_sol2
7411 fi
7412 ;;
7413 *)
7414 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7415 LD="${LD-ld} -64"
7416 fi
7417 ;;
7418 esac
7419 ;;
7420 esac
7421 fi
7422 rm -rf conftest*
7423 ;;
7424 esac
7425
7426 need_locks=$enable_libtool_lock
7427
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}mt; ac_word=$2
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 printf %s "checking for $ac_word... " >&6; }
7433 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7434 then :
7435 printf %s "(cached) " >&6
7436 else $as_nop
7437 if test -n "$MANIFEST_TOOL"; then
7438 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443 IFS=$as_save_IFS
7444 case $as_dir in #(((
7445 '') as_dir=./ ;;
7446 */) ;;
7447 *) as_dir=$as_dir/ ;;
7448 esac
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7462 if test -n "$MANIFEST_TOOL"; then
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7464 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7465 else
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 printf "%s\n" "no" >&6; }
7468 fi
7469
7470
7471 fi
7472 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7473 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7474 # Extract the first word of "mt", so it can be a program name with args.
7475 set dummy mt; ac_word=$2
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 printf %s "checking for $ac_word... " >&6; }
7478 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7479 then :
7480 printf %s "(cached) " >&6
7481 else $as_nop
7482 if test -n "$ac_ct_MANIFEST_TOOL"; then
7483 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488 IFS=$as_save_IFS
7489 case $as_dir in #(((
7490 '') as_dir=./ ;;
7491 */) ;;
7492 *) as_dir=$as_dir/ ;;
7493 esac
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7507 if test -n "$ac_ct_MANIFEST_TOOL"; then
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7509 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7510 else
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 printf "%s\n" "no" >&6; }
7513 fi
7514
7515 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7516 MANIFEST_TOOL=":"
7517 else
7518 case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7523 esac
7524 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7525 fi
7526 else
7527 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7528 fi
7529
7530 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7532 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7533 if test ${lt_cv_path_mainfest_tool+y}
7534 then :
7535 printf %s "(cached) " >&6
7536 else $as_nop
7537 lt_cv_path_mainfest_tool=no
7538 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7539 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7540 cat conftest.err >&5
7541 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7542 lt_cv_path_mainfest_tool=yes
7543 fi
7544 rm -f conftest*
7545 fi
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7547 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7548 if test yes != "$lt_cv_path_mainfest_tool"; then
7549 MANIFEST_TOOL=:
7550 fi
7551
7552
7553
7554
7555
7556
7557 case $host_os in
7558 rhapsody* | darwin*)
7559 if test -n "$ac_tool_prefix"; then
7560 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 printf %s "checking for $ac_word... " >&6; }
7564 if test ${ac_cv_prog_DSYMUTIL+y}
7565 then :
7566 printf %s "(cached) " >&6
7567 else $as_nop
7568 if test -n "$DSYMUTIL"; then
7569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574 IFS=$as_save_IFS
7575 case $as_dir in #(((
7576 '') as_dir=./ ;;
7577 */) ;;
7578 *) as_dir=$as_dir/ ;;
7579 esac
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7593 if test -n "$DSYMUTIL"; then
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7595 printf "%s\n" "$DSYMUTIL" >&6; }
7596 else
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 printf "%s\n" "no" >&6; }
7599 fi
7600
7601
7602 fi
7603 if test -z "$ac_cv_prog_DSYMUTIL"; then
7604 ac_ct_DSYMUTIL=$DSYMUTIL
7605 # Extract the first word of "dsymutil", so it can be a program name with args.
7606 set dummy dsymutil; ac_word=$2
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 printf %s "checking for $ac_word... " >&6; }
7609 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7610 then :
7611 printf %s "(cached) " >&6
7612 else $as_nop
7613 if test -n "$ac_ct_DSYMUTIL"; then
7614 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 case $as_dir in #(((
7621 '') as_dir=./ ;;
7622 */) ;;
7623 *) as_dir=$as_dir/ ;;
7624 esac
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631 done
7632 done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7640 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7641 else
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 printf "%s\n" "no" >&6; }
7644 fi
7645
7646 if test "x$ac_ct_DSYMUTIL" = x; then
7647 DSYMUTIL=":"
7648 else
7649 case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655 DSYMUTIL=$ac_ct_DSYMUTIL
7656 fi
7657 else
7658 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7659 fi
7660
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 printf %s "checking for $ac_word... " >&6; }
7666 if test ${ac_cv_prog_NMEDIT+y}
7667 then :
7668 printf %s "(cached) " >&6
7669 else $as_nop
7670 if test -n "$NMEDIT"; then
7671 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676 IFS=$as_save_IFS
7677 case $as_dir in #(((
7678 '') as_dir=./ ;;
7679 */) ;;
7680 *) as_dir=$as_dir/ ;;
7681 esac
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 NMEDIT=$ac_cv_prog_NMEDIT
7695 if test -n "$NMEDIT"; then
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7697 printf "%s\n" "$NMEDIT" >&6; }
7698 else
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 printf "%s\n" "no" >&6; }
7701 fi
7702
7703
7704 fi
7705 if test -z "$ac_cv_prog_NMEDIT"; then
7706 ac_ct_NMEDIT=$NMEDIT
7707 # Extract the first word of "nmedit", so it can be a program name with args.
7708 set dummy nmedit; ac_word=$2
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 printf %s "checking for $ac_word... " >&6; }
7711 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7712 then :
7713 printf %s "(cached) " >&6
7714 else $as_nop
7715 if test -n "$ac_ct_NMEDIT"; then
7716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721 IFS=$as_save_IFS
7722 case $as_dir in #(((
7723 '') as_dir=./ ;;
7724 */) ;;
7725 *) as_dir=$as_dir/ ;;
7726 esac
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737 fi
7738 fi
7739 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7740 if test -n "$ac_ct_NMEDIT"; then
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7742 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7743 else
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 printf "%s\n" "no" >&6; }
7746 fi
7747
7748 if test "x$ac_ct_NMEDIT" = x; then
7749 NMEDIT=":"
7750 else
7751 case $cross_compiling:$ac_tool_warned in
7752 yes:)
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7754 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7755 ac_tool_warned=yes ;;
7756 esac
7757 NMEDIT=$ac_ct_NMEDIT
7758 fi
7759 else
7760 NMEDIT="$ac_cv_prog_NMEDIT"
7761 fi
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 printf %s "checking for $ac_word... " >&6; }
7768 if test ${ac_cv_prog_LIPO+y}
7769 then :
7770 printf %s "(cached) " >&6
7771 else $as_nop
7772 if test -n "$LIPO"; then
7773 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 case $as_dir in #(((
7780 '') as_dir=./ ;;
7781 */) ;;
7782 *) as_dir=$as_dir/ ;;
7783 esac
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 LIPO=$ac_cv_prog_LIPO
7797 if test -n "$LIPO"; then
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7799 printf "%s\n" "$LIPO" >&6; }
7800 else
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 printf "%s\n" "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_LIPO"; then
7808 ac_ct_LIPO=$LIPO
7809 # Extract the first word of "lipo", so it can be a program name with args.
7810 set dummy lipo; ac_word=$2
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 printf %s "checking for $ac_word... " >&6; }
7813 if test ${ac_cv_prog_ac_ct_LIPO+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else $as_nop
7817 if test -n "$ac_ct_LIPO"; then
7818 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 case $as_dir in #(((
7825 '') as_dir=./ ;;
7826 */) ;;
7827 *) as_dir=$as_dir/ ;;
7828 esac
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_ac_ct_LIPO="lipo"
7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7842 if test -n "$ac_ct_LIPO"; then
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7844 printf "%s\n" "$ac_ct_LIPO" >&6; }
7845 else
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 printf "%s\n" "no" >&6; }
7848 fi
7849
7850 if test "x$ac_ct_LIPO" = x; then
7851 LIPO=":"
7852 else
7853 case $cross_compiling:$ac_tool_warned in
7854 yes:)
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7858 esac
7859 LIPO=$ac_ct_LIPO
7860 fi
7861 else
7862 LIPO="$ac_cv_prog_LIPO"
7863 fi
7864
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}otool; ac_word=$2
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 printf %s "checking for $ac_word... " >&6; }
7870 if test ${ac_cv_prog_OTOOL+y}
7871 then :
7872 printf %s "(cached) " >&6
7873 else $as_nop
7874 if test -n "$OTOOL"; then
7875 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880 IFS=$as_save_IFS
7881 case $as_dir in #(((
7882 '') as_dir=./ ;;
7883 */) ;;
7884 *) as_dir=$as_dir/ ;;
7885 esac
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892 done
7893 done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 OTOOL=$ac_cv_prog_OTOOL
7899 if test -n "$OTOOL"; then
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7901 printf "%s\n" "$OTOOL" >&6; }
7902 else
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 printf "%s\n" "no" >&6; }
7905 fi
7906
7907
7908 fi
7909 if test -z "$ac_cv_prog_OTOOL"; then
7910 ac_ct_OTOOL=$OTOOL
7911 # Extract the first word of "otool", so it can be a program name with args.
7912 set dummy otool; ac_word=$2
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 printf %s "checking for $ac_word... " >&6; }
7915 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7916 then :
7917 printf %s "(cached) " >&6
7918 else $as_nop
7919 if test -n "$ac_ct_OTOOL"; then
7920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 case $as_dir in #(((
7927 '') as_dir=./ ;;
7928 */) ;;
7929 *) as_dir=$as_dir/ ;;
7930 esac
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_ac_ct_OTOOL="otool"
7934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7935 break 2
7936 fi
7937 done
7938 done
7939 IFS=$as_save_IFS
7940
7941 fi
7942 fi
7943 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7944 if test -n "$ac_ct_OTOOL"; then
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7946 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7947 else
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 printf "%s\n" "no" >&6; }
7950 fi
7951
7952 if test "x$ac_ct_OTOOL" = x; then
7953 OTOOL=":"
7954 else
7955 case $cross_compiling:$ac_tool_warned in
7956 yes:)
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7960 esac
7961 OTOOL=$ac_ct_OTOOL
7962 fi
7963 else
7964 OTOOL="$ac_cv_prog_OTOOL"
7965 fi
7966
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 printf %s "checking for $ac_word... " >&6; }
7972 if test ${ac_cv_prog_OTOOL64+y}
7973 then :
7974 printf %s "(cached) " >&6
7975 else $as_nop
7976 if test -n "$OTOOL64"; then
7977 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982 IFS=$as_save_IFS
7983 case $as_dir in #(((
7984 '') as_dir=./ ;;
7985 */) ;;
7986 *) as_dir=$as_dir/ ;;
7987 esac
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 OTOOL64=$ac_cv_prog_OTOOL64
8001 if test -n "$OTOOL64"; then
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8003 printf "%s\n" "$OTOOL64" >&6; }
8004 else
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 printf "%s\n" "no" >&6; }
8007 fi
8008
8009
8010 fi
8011 if test -z "$ac_cv_prog_OTOOL64"; then
8012 ac_ct_OTOOL64=$OTOOL64
8013 # Extract the first word of "otool64", so it can be a program name with args.
8014 set dummy otool64; ac_word=$2
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 printf %s "checking for $ac_word... " >&6; }
8017 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8018 then :
8019 printf %s "(cached) " >&6
8020 else $as_nop
8021 if test -n "$ac_ct_OTOOL64"; then
8022 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027 IFS=$as_save_IFS
8028 case $as_dir in #(((
8029 '') as_dir=./ ;;
8030 */) ;;
8031 *) as_dir=$as_dir/ ;;
8032 esac
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_ac_ct_OTOOL64="otool64"
8036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8046 if test -n "$ac_ct_OTOOL64"; then
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8048 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8049 else
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 printf "%s\n" "no" >&6; }
8052 fi
8053
8054 if test "x$ac_ct_OTOOL64" = x; then
8055 OTOOL64=":"
8056 else
8057 case $cross_compiling:$ac_tool_warned in
8058 yes:)
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061 ac_tool_warned=yes ;;
8062 esac
8063 OTOOL64=$ac_ct_OTOOL64
8064 fi
8065 else
8066 OTOOL64="$ac_cv_prog_OTOOL64"
8067 fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8096 printf %s "checking for -single_module linker flag... " >&6; }
8097 if test ${lt_cv_apple_cc_single_mod+y}
8098 then :
8099 printf %s "(cached) " >&6
8100 else $as_nop
8101 lt_cv_apple_cc_single_mod=no
8102 if test -z "$LT_MULTI_MODULE"; then
8103 # By default we will add the -single_module flag. You can override
8104 # by either setting the environment variable LT_MULTI_MODULE
8105 # non-empty at configure time, or by adding -multi_module to the
8106 # link flags.
8107 rm -rf libconftest.dylib*
8108 echo "int foo(void){return 1;}" > conftest.c
8109 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8110 -dynamiclib -Wl,-single_module conftest.c" >&5
8111 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8112 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8113 _lt_result=$?
8114 # If there is a non-empty error log, and "single_module"
8115 # appears in it, assume the flag caused a linker warning
8116 if test -s conftest.err && $GREP single_module conftest.err; then
8117 cat conftest.err >&5
8118 # Otherwise, if the output was created with a 0 exit code from
8119 # the compiler, it worked.
8120 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8121 lt_cv_apple_cc_single_mod=yes
8122 else
8123 cat conftest.err >&5
8124 fi
8125 rm -rf libconftest.dylib*
8126 rm -f conftest.*
8127 fi
8128 fi
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8130 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8131
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8133 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8134 if test ${lt_cv_ld_exported_symbols_list+y}
8135 then :
8136 printf %s "(cached) " >&6
8137 else $as_nop
8138 lt_cv_ld_exported_symbols_list=no
8139 save_LDFLAGS=$LDFLAGS
8140 echo "_main" > conftest.sym
8141 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144
8145 int
8146 main (void)
8147 {
8148
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_link "$LINENO"
8154 then :
8155 lt_cv_ld_exported_symbols_list=yes
8156 else $as_nop
8157 lt_cv_ld_exported_symbols_list=no
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8160 conftest$ac_exeext conftest.$ac_ext
8161 LDFLAGS=$save_LDFLAGS
8162
8163 fi
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8165 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8166
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8168 printf %s "checking for -force_load linker flag... " >&6; }
8169 if test ${lt_cv_ld_force_load+y}
8170 then :
8171 printf %s "(cached) " >&6
8172 else $as_nop
8173 lt_cv_ld_force_load=no
8174 cat > conftest.c << _LT_EOF
8175 int forced_loaded() { return 2;}
8176 _LT_EOF
8177 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8178 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8179 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8180 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8181 echo "$RANLIB libconftest.a" >&5
8182 $RANLIB libconftest.a 2>&5
8183 cat > conftest.c << _LT_EOF
8184 int main() { return 0;}
8185 _LT_EOF
8186 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8187 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8188 _lt_result=$?
8189 if test -s conftest.err && $GREP force_load conftest.err; then
8190 cat conftest.err >&5
8191 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8192 lt_cv_ld_force_load=yes
8193 else
8194 cat conftest.err >&5
8195 fi
8196 rm -f conftest.err libconftest.a conftest conftest.c
8197 rm -rf conftest.dSYM
8198
8199 fi
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8201 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8202 case $host_os in
8203 rhapsody* | darwin1.[012])
8204 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8205 darwin1.*)
8206 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8207 darwin*)
8208 case $MACOSX_DEPLOYMENT_TARGET,$host in
8209 10.[012],*|,*powerpc*-darwin[5-8]*)
8210 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8211 *)
8212 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8213 esac
8214 ;;
8215 esac
8216 if test yes = "$lt_cv_apple_cc_single_mod"; then
8217 _lt_dar_single_mod='$single_module'
8218 fi
8219 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8220 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8221 else
8222 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8223 fi
8224 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8225 _lt_dsymutil='~$DSYMUTIL $lib || :'
8226 else
8227 _lt_dsymutil=
8228 fi
8229 ;;
8230 esac
8231
8232 # func_munge_path_list VARIABLE PATH
8233 # -----------------------------------
8234 # VARIABLE is name of variable containing _space_ separated list of
8235 # directories to be munged by the contents of PATH, which is string
8236 # having a format:
8237 # "DIR[:DIR]:"
8238 # string "DIR[ DIR]" will be prepended to VARIABLE
8239 # ":DIR[:DIR]"
8240 # string "DIR[ DIR]" will be appended to VARIABLE
8241 # "DIRP[:DIRP]::[DIRA:]DIRA"
8242 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8243 # "DIRA[ DIRA]" will be appended to VARIABLE
8244 # "DIR[:DIR]"
8245 # VARIABLE will be replaced by "DIR[ DIR]"
8246 func_munge_path_list ()
8247 {
8248 case x$2 in
8249 x)
8250 ;;
8251 *:)
8252 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8253 ;;
8254 x:*)
8255 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8256 ;;
8257 *::*)
8258 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8259 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8260 ;;
8261 *)
8262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8263 ;;
8264 esac
8265 }
8266
8267 ac_header= ac_cache=
8268 for ac_item in $ac_header_c_list
8269 do
8270 if test $ac_cache; then
8271 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8272 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8273 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8274 fi
8275 ac_header= ac_cache=
8276 elif test $ac_header; then
8277 ac_cache=$ac_item
8278 else
8279 ac_header=$ac_item
8280 fi
8281 done
8282
8283
8284
8285
8286
8287
8288
8289
8290 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8291 then :
8292
8293 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8294
8295 fi
8296 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8297 "
8298 if test "x$ac_cv_header_dlfcn_h" = xyes
8299 then :
8300 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8301
8302 fi
8303
8304
8305
8306
8307
8308 # Set options
8309
8310
8311
8312 enable_dlopen=no
8313
8314
8315 enable_win32_dll=no
8316
8317
8318 # Check whether --enable-shared was given.
8319 if test ${enable_shared+y}
8320 then :
8321 enableval=$enable_shared; p=${PACKAGE-default}
8322 case $enableval in
8323 yes) enable_shared=yes ;;
8324 no) enable_shared=no ;;
8325 *)
8326 enable_shared=no
8327 # Look at the argument we got. We use all the common list separators.
8328 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8329 for pkg in $enableval; do
8330 IFS=$lt_save_ifs
8331 if test "X$pkg" = "X$p"; then
8332 enable_shared=yes
8333 fi
8334 done
8335 IFS=$lt_save_ifs
8336 ;;
8337 esac
8338 else $as_nop
8339 enable_shared=yes
8340 fi
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350 # Check whether --enable-static was given.
8351 if test ${enable_static+y}
8352 then :
8353 enableval=$enable_static; p=${PACKAGE-default}
8354 case $enableval in
8355 yes) enable_static=yes ;;
8356 no) enable_static=no ;;
8357 *)
8358 enable_static=no
8359 # Look at the argument we got. We use all the common list separators.
8360 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8361 for pkg in $enableval; do
8362 IFS=$lt_save_ifs
8363 if test "X$pkg" = "X$p"; then
8364 enable_static=yes
8365 fi
8366 done
8367 IFS=$lt_save_ifs
8368 ;;
8369 esac
8370 else $as_nop
8371 enable_static=yes
8372 fi
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 # Check whether --with-pic was given.
8384 if test ${with_pic+y}
8385 then :
8386 withval=$with_pic; lt_p=${PACKAGE-default}
8387 case $withval in
8388 yes|no) pic_mode=$withval ;;
8389 *)
8390 pic_mode=default
8391 # Look at the argument we got. We use all the common list separators.
8392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8393 for lt_pkg in $withval; do
8394 IFS=$lt_save_ifs
8395 if test "X$lt_pkg" = "X$lt_p"; then
8396 pic_mode=yes
8397 fi
8398 done
8399 IFS=$lt_save_ifs
8400 ;;
8401 esac
8402 else $as_nop
8403 pic_mode=default
8404 fi
8405
8406
8407
8408
8409
8410
8411
8412
8413 # Check whether --enable-fast-install was given.
8414 if test ${enable_fast_install+y}
8415 then :
8416 enableval=$enable_fast_install; p=${PACKAGE-default}
8417 case $enableval in
8418 yes) enable_fast_install=yes ;;
8419 no) enable_fast_install=no ;;
8420 *)
8421 enable_fast_install=no
8422 # Look at the argument we got. We use all the common list separators.
8423 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8424 for pkg in $enableval; do
8425 IFS=$lt_save_ifs
8426 if test "X$pkg" = "X$p"; then
8427 enable_fast_install=yes
8428 fi
8429 done
8430 IFS=$lt_save_ifs
8431 ;;
8432 esac
8433 else $as_nop
8434 enable_fast_install=yes
8435 fi
8436
8437
8438
8439
8440
8441
8442
8443
8444 shared_archive_member_spec=
8445 case $host,$enable_shared in
8446 power*-*-aix[5-9]*,yes)
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8448 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8449
8450 # Check whether --with-aix-soname was given.
8451 if test ${with_aix_soname+y}
8452 then :
8453 withval=$with_aix_soname; case $withval in
8454 aix|svr4|both)
8455 ;;
8456 *)
8457 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8458 ;;
8459 esac
8460 lt_cv_with_aix_soname=$with_aix_soname
8461 else $as_nop
8462 if test ${lt_cv_with_aix_soname+y}
8463 then :
8464 printf %s "(cached) " >&6
8465 else $as_nop
8466 lt_cv_with_aix_soname=aix
8467 fi
8468
8469 with_aix_soname=$lt_cv_with_aix_soname
8470 fi
8471
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8473 printf "%s\n" "$with_aix_soname" >&6; }
8474 if test aix != "$with_aix_soname"; then
8475 # For the AIX way of multilib, we name the shared archive member
8476 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8477 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8478 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8479 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8480 if test 64 = "${OBJECT_MODE-32}"; then
8481 shared_archive_member_spec=shr_64
8482 else
8483 shared_archive_member_spec=shr
8484 fi
8485 fi
8486 ;;
8487 *)
8488 with_aix_soname=aix
8489 ;;
8490 esac
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501 # This can be used to rebuild libtool when needed
8502 LIBTOOL_DEPS=$ltmain
8503
8504 # Always use our own libtool.
8505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536 test -z "$LN_S" && LN_S="ln -s"
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551 if test -n "${ZSH_VERSION+set}"; then
8552 setopt NO_GLOB_SUBST
8553 fi
8554
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8556 printf %s "checking for objdir... " >&6; }
8557 if test ${lt_cv_objdir+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else $as_nop
8561 rm -f .libs 2>/dev/null
8562 mkdir .libs 2>/dev/null
8563 if test -d .libs; then
8564 lt_cv_objdir=.libs
8565 else
8566 # MS-DOS does not allow filenames that begin with a dot.
8567 lt_cv_objdir=_libs
8568 fi
8569 rmdir .libs 2>/dev/null
8570 fi
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8572 printf "%s\n" "$lt_cv_objdir" >&6; }
8573 objdir=$lt_cv_objdir
8574
8575
8576
8577
8578
8579 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8580
8581
8582
8583
8584 case $host_os in
8585 aix3*)
8586 # AIX sometimes has problems with the GCC collect2 program. For some
8587 # reason, if we set the COLLECT_NAMES environment variable, the problems
8588 # vanish in a puff of smoke.
8589 if test set != "${COLLECT_NAMES+set}"; then
8590 COLLECT_NAMES=
8591 export COLLECT_NAMES
8592 fi
8593 ;;
8594 esac
8595
8596 # Global variables:
8597 ofile=libtool
8598 can_build_shared=yes
8599
8600 # All known linkers require a '.a' archive for static linking (except MSVC and
8601 # ICC, which need '.lib').
8602 libext=a
8603
8604 with_gnu_ld=$lt_cv_prog_gnu_ld
8605
8606 old_CC=$CC
8607 old_CFLAGS=$CFLAGS
8608
8609 # Set sane defaults for various variables
8610 test -z "$CC" && CC=cc
8611 test -z "$LTCC" && LTCC=$CC
8612 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8613 test -z "$LD" && LD=ld
8614 test -z "$ac_objext" && ac_objext=o
8615
8616 func_cc_basename $compiler
8617 cc_basename=$func_cc_basename_result
8618
8619
8620 # Only perform the check for file, if the check method requires it
8621 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8622 case $deplibs_check_method in
8623 file_magic*)
8624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8626 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8627 if test ${lt_cv_path_MAGIC_CMD+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else $as_nop
8631 case $MAGIC_CMD in
8632 [\\/*] | ?:[\\/]*)
8633 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8634 ;;
8635 *)
8636 lt_save_MAGIC_CMD=$MAGIC_CMD
8637 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8639 for ac_dir in $ac_dummy; do
8640 IFS=$lt_save_ifs
8641 test -z "$ac_dir" && ac_dir=.
8642 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8643 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8644 if test -n "$file_magic_test_file"; then
8645 case $deplibs_check_method in
8646 "file_magic "*)
8647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8648 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8650 $EGREP "$file_magic_regex" > /dev/null; then
8651 :
8652 else
8653 cat <<_LT_EOF 1>&2
8654
8655 *** Warning: the command libtool uses to detect shared libraries,
8656 *** $file_magic_cmd, produces output that libtool cannot recognize.
8657 *** The result is that libtool may fail to recognize shared libraries
8658 *** as such. This will affect the creation of libtool libraries that
8659 *** depend on shared libraries, but programs linked with such libtool
8660 *** libraries will work regardless of this problem. Nevertheless, you
8661 *** may want to report the problem to your system manager and/or to
8662 *** bug-libtool@gnu.org
8663
8664 _LT_EOF
8665 fi ;;
8666 esac
8667 fi
8668 break
8669 fi
8670 done
8671 IFS=$lt_save_ifs
8672 MAGIC_CMD=$lt_save_MAGIC_CMD
8673 ;;
8674 esac
8675 fi
8676
8677 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8678 if test -n "$MAGIC_CMD"; then
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8680 printf "%s\n" "$MAGIC_CMD" >&6; }
8681 else
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 printf "%s\n" "no" >&6; }
8684 fi
8685
8686
8687
8688
8689
8690 if test -z "$lt_cv_path_MAGIC_CMD"; then
8691 if test -n "$ac_tool_prefix"; then
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8693 printf %s "checking for file... " >&6; }
8694 if test ${lt_cv_path_MAGIC_CMD+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else $as_nop
8698 case $MAGIC_CMD in
8699 [\\/*] | ?:[\\/]*)
8700 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8701 ;;
8702 *)
8703 lt_save_MAGIC_CMD=$MAGIC_CMD
8704 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8706 for ac_dir in $ac_dummy; do
8707 IFS=$lt_save_ifs
8708 test -z "$ac_dir" && ac_dir=.
8709 if test -f "$ac_dir/file"; then
8710 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8711 if test -n "$file_magic_test_file"; then
8712 case $deplibs_check_method in
8713 "file_magic "*)
8714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8715 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8717 $EGREP "$file_magic_regex" > /dev/null; then
8718 :
8719 else
8720 cat <<_LT_EOF 1>&2
8721
8722 *** Warning: the command libtool uses to detect shared libraries,
8723 *** $file_magic_cmd, produces output that libtool cannot recognize.
8724 *** The result is that libtool may fail to recognize shared libraries
8725 *** as such. This will affect the creation of libtool libraries that
8726 *** depend on shared libraries, but programs linked with such libtool
8727 *** libraries will work regardless of this problem. Nevertheless, you
8728 *** may want to report the problem to your system manager and/or to
8729 *** bug-libtool@gnu.org
8730
8731 _LT_EOF
8732 fi ;;
8733 esac
8734 fi
8735 break
8736 fi
8737 done
8738 IFS=$lt_save_ifs
8739 MAGIC_CMD=$lt_save_MAGIC_CMD
8740 ;;
8741 esac
8742 fi
8743
8744 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8745 if test -n "$MAGIC_CMD"; then
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8747 printf "%s\n" "$MAGIC_CMD" >&6; }
8748 else
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 printf "%s\n" "no" >&6; }
8751 fi
8752
8753
8754 else
8755 MAGIC_CMD=:
8756 fi
8757 fi
8758
8759 fi
8760 ;;
8761 esac
8762
8763 # Use C for the default configuration in the libtool script
8764
8765 lt_save_CC=$CC
8766 ac_ext=c
8767 ac_cpp='$CPP $CPPFLAGS'
8768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8771
8772
8773 # Source file extension for C test sources.
8774 ac_ext=c
8775
8776 # Object file extension for compiled C test sources.
8777 objext=o
8778 objext=$objext
8779
8780 # Code to be used in simple compile tests
8781 lt_simple_compile_test_code="int some_variable = 0;"
8782
8783 # Code to be used in simple link tests
8784 lt_simple_link_test_code='int main(){return(0);}'
8785
8786
8787
8788
8789
8790
8791
8792 # If no C compiler was specified, use CC.
8793 LTCC=${LTCC-"$CC"}
8794
8795 # If no C compiler flags were specified, use CFLAGS.
8796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8797
8798 # Allow CC to be a program name with arguments.
8799 compiler=$CC
8800
8801 # Save the default compiler, since it gets overwritten when the other
8802 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8803 compiler_DEFAULT=$CC
8804
8805 # save warnings/boilerplate of simple test code
8806 ac_outfile=conftest.$ac_objext
8807 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8808 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8809 _lt_compiler_boilerplate=`cat conftest.err`
8810 $RM conftest*
8811
8812 ac_outfile=conftest.$ac_objext
8813 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8814 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8815 _lt_linker_boilerplate=`cat conftest.err`
8816 $RM -r conftest*
8817
8818
8819 if test -n "$compiler"; then
8820
8821 lt_prog_compiler_no_builtin_flag=
8822
8823 if test yes = "$GCC"; then
8824 case $cc_basename in
8825 nvcc*)
8826 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8827 *)
8828 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8829 esac
8830
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8832 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8833 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8834 then :
8835 printf %s "(cached) " >&6
8836 else $as_nop
8837 lt_cv_prog_compiler_rtti_exceptions=no
8838 ac_outfile=conftest.$ac_objext
8839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8841 # Insert the option either (1) after the last *FLAGS variable, or
8842 # (2) before a word containing "conftest.", or (3) at the end.
8843 # Note that $ac_compile itself does not contain backslashes and begins
8844 # with a dollar sign (not a hyphen), so the echo should work correctly.
8845 # The option is referenced via a variable to avoid confusing sed.
8846 lt_compile=`echo "$ac_compile" | $SED \
8847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849 -e 's:$: $lt_compiler_flag:'`
8850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8851 (eval "$lt_compile" 2>conftest.err)
8852 ac_status=$?
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 if (exit $ac_status) && test -s "$ac_outfile"; then
8856 # The compiler can only warn and ignore the option if not recognized
8857 # So say no if there are warnings other than the usual output.
8858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8861 lt_cv_prog_compiler_rtti_exceptions=yes
8862 fi
8863 fi
8864 $RM conftest*
8865
8866 fi
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8868 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8869
8870 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8871 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8872 else
8873 :
8874 fi
8875
8876 fi
8877
8878
8879
8880
8881
8882
8883 lt_prog_compiler_wl=
8884 lt_prog_compiler_pic=
8885 lt_prog_compiler_static=
8886
8887
8888 if test yes = "$GCC"; then
8889 lt_prog_compiler_wl='-Wl,'
8890 lt_prog_compiler_static='-static'
8891
8892 case $host_os in
8893 aix*)
8894 # All AIX code is PIC.
8895 if test ia64 = "$host_cpu"; then
8896 # AIX 5 now supports IA64 processor
8897 lt_prog_compiler_static='-Bstatic'
8898 fi
8899 lt_prog_compiler_pic='-fPIC'
8900 ;;
8901
8902 amigaos*)
8903 case $host_cpu in
8904 powerpc)
8905 # see comment about AmigaOS4 .so support
8906 lt_prog_compiler_pic='-fPIC'
8907 ;;
8908 m68k)
8909 # FIXME: we need at least 68020 code to build shared libraries, but
8910 # adding the '-m68020' flag to GCC prevents building anything better,
8911 # like '-m68040'.
8912 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8913 ;;
8914 esac
8915 ;;
8916
8917 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8918 # PIC is the default for these OSes.
8919 ;;
8920
8921 mingw* | cygwin* | pw32* | os2* | cegcc*)
8922 # This hack is so that the source file can tell whether it is being
8923 # built for inclusion in a dll (and should export symbols for example).
8924 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8925 # (--disable-auto-import) libraries
8926 lt_prog_compiler_pic='-DDLL_EXPORT'
8927 case $host_os in
8928 os2*)
8929 lt_prog_compiler_static='$wl-static'
8930 ;;
8931 esac
8932 ;;
8933
8934 darwin* | rhapsody*)
8935 # PIC is the default on this platform
8936 # Common symbols not allowed in MH_DYLIB files
8937 lt_prog_compiler_pic='-fno-common'
8938 ;;
8939
8940 haiku*)
8941 # PIC is the default for Haiku.
8942 # The "-static" flag exists, but is broken.
8943 lt_prog_compiler_static=
8944 ;;
8945
8946 hpux*)
8947 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8948 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8949 # sets the default TLS model and affects inlining.
8950 case $host_cpu in
8951 hppa*64*)
8952 # +Z the default
8953 ;;
8954 *)
8955 lt_prog_compiler_pic='-fPIC'
8956 ;;
8957 esac
8958 ;;
8959
8960 interix[3-9]*)
8961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8962 # Instead, we relocate shared libraries at runtime.
8963 ;;
8964
8965 msdosdjgpp*)
8966 # Just because we use GCC doesn't mean we suddenly get shared libraries
8967 # on systems that don't support them.
8968 lt_prog_compiler_can_build_shared=no
8969 enable_shared=no
8970 ;;
8971
8972 *nto* | *qnx*)
8973 # QNX uses GNU C++, but need to define -shared option too, otherwise
8974 # it will coredump.
8975 lt_prog_compiler_pic='-fPIC -shared'
8976 ;;
8977
8978 sysv4*MP*)
8979 if test -d /usr/nec; then
8980 lt_prog_compiler_pic=-Kconform_pic
8981 fi
8982 ;;
8983
8984 *)
8985 lt_prog_compiler_pic='-fPIC'
8986 ;;
8987 esac
8988
8989 case $cc_basename in
8990 nvcc*) # Cuda Compiler Driver 2.2
8991 lt_prog_compiler_wl='-Xlinker '
8992 if test -n "$lt_prog_compiler_pic"; then
8993 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8994 fi
8995 ;;
8996 esac
8997 else
8998 # PORTME Check for flag to pass linker flags through the system compiler.
8999 case $host_os in
9000 aix*)
9001 lt_prog_compiler_wl='-Wl,'
9002 if test ia64 = "$host_cpu"; then
9003 # AIX 5 now supports IA64 processor
9004 lt_prog_compiler_static='-Bstatic'
9005 else
9006 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9007 fi
9008 ;;
9009
9010 darwin* | rhapsody*)
9011 # PIC is the default on this platform
9012 # Common symbols not allowed in MH_DYLIB files
9013 lt_prog_compiler_pic='-fno-common'
9014 case $cc_basename in
9015 nagfor*)
9016 # NAG Fortran compiler
9017 lt_prog_compiler_wl='-Wl,-Wl,,'
9018 lt_prog_compiler_pic='-PIC'
9019 lt_prog_compiler_static='-Bstatic'
9020 ;;
9021 esac
9022 ;;
9023
9024 mingw* | cygwin* | pw32* | os2* | cegcc*)
9025 # This hack is so that the source file can tell whether it is being
9026 # built for inclusion in a dll (and should export symbols for example).
9027 lt_prog_compiler_pic='-DDLL_EXPORT'
9028 case $host_os in
9029 os2*)
9030 lt_prog_compiler_static='$wl-static'
9031 ;;
9032 esac
9033 ;;
9034
9035 hpux9* | hpux10* | hpux11*)
9036 lt_prog_compiler_wl='-Wl,'
9037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9038 # not for PA HP-UX.
9039 case $host_cpu in
9040 hppa*64*|ia64*)
9041 # +Z the default
9042 ;;
9043 *)
9044 lt_prog_compiler_pic='+Z'
9045 ;;
9046 esac
9047 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9048 lt_prog_compiler_static='$wl-a ${wl}archive'
9049 ;;
9050
9051 irix5* | irix6* | nonstopux*)
9052 lt_prog_compiler_wl='-Wl,'
9053 # PIC (with -KPIC) is the default.
9054 lt_prog_compiler_static='-non_shared'
9055 ;;
9056
9057 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9058 case $cc_basename in
9059 # old Intel for x86_64, which still supported -KPIC.
9060 ecc*)
9061 lt_prog_compiler_wl='-Wl,'
9062 lt_prog_compiler_pic='-KPIC'
9063 lt_prog_compiler_static='-static'
9064 ;;
9065 # icc used to be incompatible with GCC.
9066 # ICC 10 doesn't accept -KPIC any more.
9067 icc* | ifort*)
9068 lt_prog_compiler_wl='-Wl,'
9069 lt_prog_compiler_pic='-fPIC'
9070 lt_prog_compiler_static='-static'
9071 ;;
9072 # Lahey Fortran 8.1.
9073 lf95*)
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_pic='--shared'
9076 lt_prog_compiler_static='--static'
9077 ;;
9078 nagfor*)
9079 # NAG Fortran compiler
9080 lt_prog_compiler_wl='-Wl,-Wl,,'
9081 lt_prog_compiler_pic='-PIC'
9082 lt_prog_compiler_static='-Bstatic'
9083 ;;
9084 tcc*)
9085 # Fabrice Bellard et al's Tiny C Compiler
9086 lt_prog_compiler_wl='-Wl,'
9087 lt_prog_compiler_pic='-fPIC'
9088 lt_prog_compiler_static='-static'
9089 ;;
9090 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9091 # Portland Group compilers (*not* the Pentium gcc compiler,
9092 # which looks to be a dead project)
9093 lt_prog_compiler_wl='-Wl,'
9094 lt_prog_compiler_pic='-fpic'
9095 lt_prog_compiler_static='-Bstatic'
9096 ;;
9097 ccc*)
9098 lt_prog_compiler_wl='-Wl,'
9099 # All Alpha code is PIC.
9100 lt_prog_compiler_static='-non_shared'
9101 ;;
9102 xl* | bgxl* | bgf* | mpixl*)
9103 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9104 lt_prog_compiler_wl='-Wl,'
9105 lt_prog_compiler_pic='-qpic'
9106 lt_prog_compiler_static='-qstaticlink'
9107 ;;
9108 *)
9109 case `$CC -V 2>&1 | $SED 5q` in
9110 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9111 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9112 lt_prog_compiler_pic='-KPIC'
9113 lt_prog_compiler_static='-Bstatic'
9114 lt_prog_compiler_wl=''
9115 ;;
9116 *Sun\ F* | *Sun*Fortran*)
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-Bstatic'
9119 lt_prog_compiler_wl='-Qoption ld '
9120 ;;
9121 *Sun\ C*)
9122 # Sun C 5.9
9123 lt_prog_compiler_pic='-KPIC'
9124 lt_prog_compiler_static='-Bstatic'
9125 lt_prog_compiler_wl='-Wl,'
9126 ;;
9127 *Intel*\ [CF]*Compiler*)
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_pic='-fPIC'
9130 lt_prog_compiler_static='-static'
9131 ;;
9132 *Portland\ Group*)
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-fpic'
9135 lt_prog_compiler_static='-Bstatic'
9136 ;;
9137 esac
9138 ;;
9139 esac
9140 ;;
9141
9142 newsos6)
9143 lt_prog_compiler_pic='-KPIC'
9144 lt_prog_compiler_static='-Bstatic'
9145 ;;
9146
9147 *nto* | *qnx*)
9148 # QNX uses GNU C++, but need to define -shared option too, otherwise
9149 # it will coredump.
9150 lt_prog_compiler_pic='-fPIC -shared'
9151 ;;
9152
9153 osf3* | osf4* | osf5*)
9154 lt_prog_compiler_wl='-Wl,'
9155 # All OSF/1 code is PIC.
9156 lt_prog_compiler_static='-non_shared'
9157 ;;
9158
9159 rdos*)
9160 lt_prog_compiler_static='-non_shared'
9161 ;;
9162
9163 solaris*)
9164 lt_prog_compiler_pic='-KPIC'
9165 lt_prog_compiler_static='-Bstatic'
9166 case $cc_basename in
9167 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9168 lt_prog_compiler_wl='-Qoption ld ';;
9169 *)
9170 lt_prog_compiler_wl='-Wl,';;
9171 esac
9172 ;;
9173
9174 sunos4*)
9175 lt_prog_compiler_wl='-Qoption ld '
9176 lt_prog_compiler_pic='-PIC'
9177 lt_prog_compiler_static='-Bstatic'
9178 ;;
9179
9180 sysv4 | sysv4.2uw2* | sysv4.3*)
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_pic='-KPIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 ;;
9185
9186 sysv4*MP*)
9187 if test -d /usr/nec; then
9188 lt_prog_compiler_pic='-Kconform_pic'
9189 lt_prog_compiler_static='-Bstatic'
9190 fi
9191 ;;
9192
9193 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9194 lt_prog_compiler_wl='-Wl,'
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 ;;
9198
9199 unicos*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_can_build_shared=no
9202 ;;
9203
9204 uts4*)
9205 lt_prog_compiler_pic='-pic'
9206 lt_prog_compiler_static='-Bstatic'
9207 ;;
9208
9209 *)
9210 lt_prog_compiler_can_build_shared=no
9211 ;;
9212 esac
9213 fi
9214
9215 case $host_os in
9216 # For platforms that do not support PIC, -DPIC is meaningless:
9217 *djgpp*)
9218 lt_prog_compiler_pic=
9219 ;;
9220 *)
9221 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9222 ;;
9223 esac
9224
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9226 printf %s "checking for $compiler option to produce PIC... " >&6; }
9227 if test ${lt_cv_prog_compiler_pic+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else $as_nop
9231 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9232 fi
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9234 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9235 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9236
9237 #
9238 # Check to make sure the PIC flag actually works.
9239 #
9240 if test -n "$lt_prog_compiler_pic"; then
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9242 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9243 if test ${lt_cv_prog_compiler_pic_works+y}
9244 then :
9245 printf %s "(cached) " >&6
9246 else $as_nop
9247 lt_cv_prog_compiler_pic_works=no
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 # The option is referenced via a variable to avoid confusing sed.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>conftest.err)
9262 ac_status=$?
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s "$ac_outfile"; then
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings other than the usual output.
9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_pic_works=yes
9272 fi
9273 fi
9274 $RM conftest*
9275
9276 fi
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9278 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9279
9280 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9281 case $lt_prog_compiler_pic in
9282 "" | " "*) ;;
9283 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9284 esac
9285 else
9286 lt_prog_compiler_pic=
9287 lt_prog_compiler_can_build_shared=no
9288 fi
9289
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 #
9303 # Check to make sure the static flag actually works.
9304 #
9305 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9307 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9308 if test ${lt_cv_prog_compiler_static_works+y}
9309 then :
9310 printf %s "(cached) " >&6
9311 else $as_nop
9312 lt_cv_prog_compiler_static_works=no
9313 save_LDFLAGS=$LDFLAGS
9314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9317 # The linker can only warn and ignore the option if not recognized
9318 # So say no if there are warnings
9319 if test -s conftest.err; then
9320 # Append any errors to the config.log.
9321 cat conftest.err 1>&5
9322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9324 if diff conftest.exp conftest.er2 >/dev/null; then
9325 lt_cv_prog_compiler_static_works=yes
9326 fi
9327 else
9328 lt_cv_prog_compiler_static_works=yes
9329 fi
9330 fi
9331 $RM -r conftest*
9332 LDFLAGS=$save_LDFLAGS
9333
9334 fi
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9336 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9337
9338 if test yes = "$lt_cv_prog_compiler_static_works"; then
9339 :
9340 else
9341 lt_prog_compiler_static=
9342 fi
9343
9344
9345
9346
9347
9348
9349
9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9351 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9352 if test ${lt_cv_prog_compiler_c_o+y}
9353 then :
9354 printf %s "(cached) " >&6
9355 else $as_nop
9356 lt_cv_prog_compiler_c_o=no
9357 $RM -r conftest 2>/dev/null
9358 mkdir conftest
9359 cd conftest
9360 mkdir out
9361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9362
9363 lt_compiler_flag="-o out/conftest2.$ac_objext"
9364 # Insert the option either (1) after the last *FLAGS variable, or
9365 # (2) before a word containing "conftest.", or (3) at the end.
9366 # Note that $ac_compile itself does not contain backslashes and begins
9367 # with a dollar sign (not a hyphen), so the echo should work correctly.
9368 lt_compile=`echo "$ac_compile" | $SED \
9369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9371 -e 's:$: $lt_compiler_flag:'`
9372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9373 (eval "$lt_compile" 2>out/conftest.err)
9374 ac_status=$?
9375 cat out/conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9378 then
9379 # The compiler can only warn and ignore the option if not recognized
9380 # So say no if there are warnings
9381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9384 lt_cv_prog_compiler_c_o=yes
9385 fi
9386 fi
9387 chmod u+w . 2>&5
9388 $RM conftest*
9389 # SGI C++ compiler will create directory out/ii_files/ for
9390 # template instantiation
9391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9392 $RM out/* && rmdir out
9393 cd ..
9394 $RM -r conftest
9395 $RM conftest*
9396
9397 fi
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9399 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9400
9401
9402
9403
9404
9405
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9407 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9408 if test ${lt_cv_prog_compiler_c_o+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 lt_cv_prog_compiler_c_o=no
9413 $RM -r conftest 2>/dev/null
9414 mkdir conftest
9415 cd conftest
9416 mkdir out
9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418
9419 lt_compiler_flag="-o out/conftest2.$ac_objext"
9420 # Insert the option either (1) after the last *FLAGS variable, or
9421 # (2) before a word containing "conftest.", or (3) at the end.
9422 # Note that $ac_compile itself does not contain backslashes and begins
9423 # with a dollar sign (not a hyphen), so the echo should work correctly.
9424 lt_compile=`echo "$ac_compile" | $SED \
9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427 -e 's:$: $lt_compiler_flag:'`
9428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9429 (eval "$lt_compile" 2>out/conftest.err)
9430 ac_status=$?
9431 cat out/conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9434 then
9435 # The compiler can only warn and ignore the option if not recognized
9436 # So say no if there are warnings
9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9440 lt_cv_prog_compiler_c_o=yes
9441 fi
9442 fi
9443 chmod u+w . 2>&5
9444 $RM conftest*
9445 # SGI C++ compiler will create directory out/ii_files/ for
9446 # template instantiation
9447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9448 $RM out/* && rmdir out
9449 cd ..
9450 $RM -r conftest
9451 $RM conftest*
9452
9453 fi
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9455 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9456
9457
9458
9459
9460 hard_links=nottested
9461 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9462 # do not overwrite the value of need_locks provided by the user
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9464 printf %s "checking if we can lock with hard links... " >&6; }
9465 hard_links=yes
9466 $RM conftest*
9467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9468 touch conftest.a
9469 ln conftest.a conftest.b 2>&5 || hard_links=no
9470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9472 printf "%s\n" "$hard_links" >&6; }
9473 if test no = "$hard_links"; then
9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9475 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9476 need_locks=warn
9477 fi
9478 else
9479 need_locks=no
9480 fi
9481
9482
9483
9484
9485
9486
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9488 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9489
9490 runpath_var=
9491 allow_undefined_flag=
9492 always_export_symbols=no
9493 archive_cmds=
9494 archive_expsym_cmds=
9495 compiler_needs_object=no
9496 enable_shared_with_static_runtimes=no
9497 export_dynamic_flag_spec=
9498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9499 hardcode_automatic=no
9500 hardcode_direct=no
9501 hardcode_direct_absolute=no
9502 hardcode_libdir_flag_spec=
9503 hardcode_libdir_separator=
9504 hardcode_minus_L=no
9505 hardcode_shlibpath_var=unsupported
9506 inherit_rpath=no
9507 link_all_deplibs=unknown
9508 module_cmds=
9509 module_expsym_cmds=
9510 old_archive_from_new_cmds=
9511 old_archive_from_expsyms_cmds=
9512 thread_safe_flag_spec=
9513 whole_archive_flag_spec=
9514 # include_expsyms should be a list of space-separated symbols to be *always*
9515 # included in the symbol list
9516 include_expsyms=
9517 # exclude_expsyms can be an extended regexp of symbols to exclude
9518 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9519 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9520 # as well as any symbol that contains 'd'.
9521 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9523 # platforms (ab)use it in PIC code, but their linkers get confused if
9524 # the symbol is explicitly referenced. Since portable code cannot
9525 # rely on this symbol name, it's probably fine to never include it in
9526 # preloaded symbol tables.
9527 # Exclude shared library initialization/finalization symbols.
9528 extract_expsyms_cmds=
9529
9530 case $host_os in
9531 cygwin* | mingw* | pw32* | cegcc*)
9532 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9533 # When not using gcc, we currently assume that we are using
9534 # Microsoft Visual C++ or Intel C++ Compiler.
9535 if test yes != "$GCC"; then
9536 with_gnu_ld=no
9537 fi
9538 ;;
9539 interix*)
9540 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9541 with_gnu_ld=yes
9542 ;;
9543 openbsd* | bitrig*)
9544 with_gnu_ld=no
9545 ;;
9546 esac
9547
9548 ld_shlibs=yes
9549
9550 # On some targets, GNU ld is compatible enough with the native linker
9551 # that we're better off using the native interface for both.
9552 lt_use_gnu_ld_interface=no
9553 if test yes = "$with_gnu_ld"; then
9554 case $host_os in
9555 aix*)
9556 # The AIX port of GNU ld has always aspired to compatibility
9557 # with the native linker. However, as the warning in the GNU ld
9558 # block says, versions before 2.19.5* couldn't really create working
9559 # shared libraries, regardless of the interface used.
9560 case `$LD -v 2>&1` in
9561 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9562 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9563 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9564 *)
9565 lt_use_gnu_ld_interface=yes
9566 ;;
9567 esac
9568 ;;
9569 *)
9570 lt_use_gnu_ld_interface=yes
9571 ;;
9572 esac
9573 fi
9574
9575 if test yes = "$lt_use_gnu_ld_interface"; then
9576 # If archive_cmds runs LD, not CC, wlarc should be empty
9577 wlarc='$wl'
9578
9579 # Set some defaults for GNU ld with shared library support. These
9580 # are reset later if shared libraries are not supported. Putting them
9581 # here allows them to be overridden if necessary.
9582 runpath_var=LD_RUN_PATH
9583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9584 export_dynamic_flag_spec='$wl--export-dynamic'
9585 # ancient GNU ld didn't support --whole-archive et. al.
9586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9587 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9588 else
9589 whole_archive_flag_spec=
9590 fi
9591 supports_anon_versioning=no
9592 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9593 *GNU\ gold*) supports_anon_versioning=yes ;;
9594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9597 *\ 2.11.*) ;; # other 2.11 versions
9598 *) supports_anon_versioning=yes ;;
9599 esac
9600
9601 # See if GNU ld supports shared libraries.
9602 case $host_os in
9603 aix[3-9]*)
9604 # On AIX/PPC, the GNU linker is very broken
9605 if test ia64 != "$host_cpu"; then
9606 ld_shlibs=no
9607 cat <<_LT_EOF 1>&2
9608
9609 *** Warning: the GNU linker, at least up to release 2.19, is reported
9610 *** to be unable to reliably create shared libraries on AIX.
9611 *** Therefore, libtool is disabling shared libraries support. If you
9612 *** really care for shared libraries, you may want to install binutils
9613 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9614 *** You will then need to restart the configuration process.
9615
9616 _LT_EOF
9617 fi
9618 ;;
9619
9620 amigaos*)
9621 case $host_cpu in
9622 powerpc)
9623 # see comment about AmigaOS4 .so support
9624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9625 archive_expsym_cmds=''
9626 ;;
9627 m68k)
9628 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)'
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 hardcode_minus_L=yes
9631 ;;
9632 esac
9633 ;;
9634
9635 beos*)
9636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637 allow_undefined_flag=unsupported
9638 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9639 # support --undefined. This deserves some investigation. FIXME
9640 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9641 else
9642 ld_shlibs=no
9643 fi
9644 ;;
9645
9646 cygwin* | mingw* | pw32* | cegcc*)
9647 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9648 # as there is no search path for DLLs.
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 export_dynamic_flag_spec='$wl--export-all-symbols'
9651 allow_undefined_flag=unsupported
9652 always_export_symbols=no
9653 enable_shared_with_static_runtimes=yes
9654 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'
9655 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9656
9657 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9659 # If the export-symbols file already is a .def file, use it as
9660 # is; otherwise, prepend EXPORTS...
9661 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9662 cp $export_symbols $output_objdir/$soname.def;
9663 else
9664 echo EXPORTS > $output_objdir/$soname.def;
9665 cat $export_symbols >> $output_objdir/$soname.def;
9666 fi~
9667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9668 else
9669 ld_shlibs=no
9670 fi
9671 ;;
9672
9673 haiku*)
9674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9675 link_all_deplibs=yes
9676 ;;
9677
9678 os2*)
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 hardcode_minus_L=yes
9681 allow_undefined_flag=unsupported
9682 shrext_cmds=.dll
9683 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9684 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9685 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9686 $ECHO EXPORTS >> $output_objdir/$libname.def~
9687 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9688 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9689 emximp -o $lib $output_objdir/$libname.def'
9690 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9693 $ECHO EXPORTS >> $output_objdir/$libname.def~
9694 prefix_cmds="$SED"~
9695 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9696 prefix_cmds="$prefix_cmds -e 1d";
9697 fi~
9698 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9699 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9700 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9701 emximp -o $lib $output_objdir/$libname.def'
9702 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9703 enable_shared_with_static_runtimes=yes
9704 file_list_spec='@'
9705 ;;
9706
9707 interix[3-9]*)
9708 hardcode_direct=no
9709 hardcode_shlibpath_var=no
9710 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9711 export_dynamic_flag_spec='$wl-E'
9712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9713 # Instead, shared libraries are loaded at an image base (0x10000000 by
9714 # default) and relocated if they conflict, which is a slow very memory
9715 # consuming and fragmenting process. To avoid this, we pick a random,
9716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9717 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9719 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'
9720 ;;
9721
9722 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9723 tmp_diet=no
9724 if test linux-dietlibc = "$host_os"; then
9725 case $cc_basename in
9726 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9727 esac
9728 fi
9729 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9730 && test no = "$tmp_diet"
9731 then
9732 tmp_addflag=' $pic_flag'
9733 tmp_sharedflag='-shared'
9734 case $cc_basename,$host_cpu in
9735 pgcc*) # Portland Group C compiler
9736 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'
9737 tmp_addflag=' $pic_flag'
9738 ;;
9739 pgf77* | pgf90* | pgf95* | pgfortran*)
9740 # Portland Group f77 and f90 compilers
9741 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'
9742 tmp_addflag=' $pic_flag -Mnomain' ;;
9743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9744 tmp_addflag=' -i_dynamic' ;;
9745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9746 tmp_addflag=' -i_dynamic -nofor_main' ;;
9747 ifc* | ifort*) # Intel Fortran compiler
9748 tmp_addflag=' -nofor_main' ;;
9749 lf95*) # Lahey Fortran 8.1
9750 whole_archive_flag_spec=
9751 tmp_sharedflag='--shared' ;;
9752 nagfor*) # NAGFOR 5.3
9753 tmp_sharedflag='-Wl,-shared' ;;
9754 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9755 tmp_sharedflag='-qmkshrobj'
9756 tmp_addflag= ;;
9757 nvcc*) # Cuda Compiler Driver 2.2
9758 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'
9759 compiler_needs_object=yes
9760 ;;
9761 esac
9762 case `$CC -V 2>&1 | $SED 5q` in
9763 *Sun\ C*) # Sun C 5.9
9764 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'
9765 compiler_needs_object=yes
9766 tmp_sharedflag='-G' ;;
9767 *Sun\ F*) # Sun Fortran 8.3
9768 tmp_sharedflag='-G' ;;
9769 esac
9770 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9771
9772 if test yes = "$supports_anon_versioning"; then
9773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9774 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9775 echo "local: *; };" >> $output_objdir/$libname.ver~
9776 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9777 fi
9778
9779 case $cc_basename in
9780 tcc*)
9781 export_dynamic_flag_spec='-rdynamic'
9782 ;;
9783 xlf* | bgf* | bgxlf* | mpixlf*)
9784 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9785 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9786 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9787 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9788 if test yes = "$supports_anon_versioning"; then
9789 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9790 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9791 echo "local: *; };" >> $output_objdir/$libname.ver~
9792 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9793 fi
9794 ;;
9795 esac
9796 else
9797 ld_shlibs=no
9798 fi
9799 ;;
9800
9801 netbsd*)
9802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9803 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9804 wlarc=
9805 else
9806 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9807 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9808 fi
9809 ;;
9810
9811 solaris*)
9812 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9813 ld_shlibs=no
9814 cat <<_LT_EOF 1>&2
9815
9816 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9817 *** create shared libraries on Solaris systems. Therefore, libtool
9818 *** is disabling shared libraries support. We urge you to upgrade GNU
9819 *** binutils to release 2.9.1 or newer. Another option is to modify
9820 *** your PATH or compiler configuration so that the native linker is
9821 *** used, and then restart.
9822
9823 _LT_EOF
9824 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9827 else
9828 ld_shlibs=no
9829 fi
9830 ;;
9831
9832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9833 case `$LD -v 2>&1` in
9834 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9835 ld_shlibs=no
9836 cat <<_LT_EOF 1>&2
9837
9838 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9839 *** reliably create shared libraries on SCO systems. Therefore, libtool
9840 *** is disabling shared libraries support. We urge you to upgrade GNU
9841 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9842 *** your PATH or compiler configuration so that the native linker is
9843 *** used, and then restart.
9844
9845 _LT_EOF
9846 ;;
9847 *)
9848 # For security reasons, it is highly recommended that you always
9849 # use absolute paths for naming shared libraries, and exclude the
9850 # DT_RUNPATH tag from executables and libraries. But doing so
9851 # requires that you compile everything twice, which is a pain.
9852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9856 else
9857 ld_shlibs=no
9858 fi
9859 ;;
9860 esac
9861 ;;
9862
9863 sunos4*)
9864 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9865 wlarc=
9866 hardcode_direct=yes
9867 hardcode_shlibpath_var=no
9868 ;;
9869
9870 *)
9871 if $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 esac
9879
9880 if test no = "$ld_shlibs"; then
9881 runpath_var=
9882 hardcode_libdir_flag_spec=
9883 export_dynamic_flag_spec=
9884 whole_archive_flag_spec=
9885 fi
9886 else
9887 # PORTME fill in a description of your system's linker (not GNU ld)
9888 case $host_os in
9889 aix3*)
9890 allow_undefined_flag=unsupported
9891 always_export_symbols=yes
9892 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'
9893 # Note: this linker hardcodes the directories in LIBPATH if there
9894 # are no directories specified by -L.
9895 hardcode_minus_L=yes
9896 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9897 # Neither direct hardcoding nor static linking is supported with a
9898 # broken collect2.
9899 hardcode_direct=unsupported
9900 fi
9901 ;;
9902
9903 aix[4-9]*)
9904 if test ia64 = "$host_cpu"; then
9905 # On IA64, the linker does run time linking by default, so we don't
9906 # have to do anything special.
9907 aix_use_runtimelinking=no
9908 exp_sym_flag='-Bexport'
9909 no_entry_flag=
9910 else
9911 # If we're using GNU nm, then we don't want the "-C" option.
9912 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9913 # Without the "-l" option, or with the "-B" option, AIX nm treats
9914 # weak defined symbols like other global defined symbols, whereas
9915 # GNU nm marks them as "W".
9916 # While the 'weak' keyword is ignored in the Export File, we need
9917 # it in the Import File for the 'aix-soname' feature, so we have
9918 # to replace the "-B" option with "-P" for AIX nm.
9919 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9920 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'
9921 else
9922 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'
9923 fi
9924 aix_use_runtimelinking=no
9925
9926 # Test if we are trying to use run time linking or normal
9927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9928 # have runtime linking enabled, and use it for executables.
9929 # For shared libraries, we enable/disable runtime linking
9930 # depending on the kind of the shared library created -
9931 # when "with_aix_soname,aix_use_runtimelinking" is:
9932 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9933 # "aix,yes" lib.so shared, rtl:yes, for executables
9934 # lib.a static archive
9935 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9936 # lib.a(lib.so.V) shared, rtl:no, for executables
9937 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9938 # lib.a(lib.so.V) shared, rtl:no
9939 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9940 # lib.a static archive
9941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9942 for ld_flag in $LDFLAGS; do
9943 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9944 aix_use_runtimelinking=yes
9945 break
9946 fi
9947 done
9948 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9949 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9950 # so we don't have lib.a shared libs to link our executables.
9951 # We have to force runtime linking in this case.
9952 aix_use_runtimelinking=yes
9953 LDFLAGS="$LDFLAGS -Wl,-brtl"
9954 fi
9955 ;;
9956 esac
9957
9958 exp_sym_flag='-bexport'
9959 no_entry_flag='-bnoentry'
9960 fi
9961
9962 # When large executables or shared objects are built, AIX ld can
9963 # have problems creating the table of contents. If linking a library
9964 # or program results in "error TOC overflow" add -mminimal-toc to
9965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9967
9968 archive_cmds=''
9969 hardcode_direct=yes
9970 hardcode_direct_absolute=yes
9971 hardcode_libdir_separator=':'
9972 link_all_deplibs=yes
9973 file_list_spec='$wl-f,'
9974 case $with_aix_soname,$aix_use_runtimelinking in
9975 aix,*) ;; # traditional, no import file
9976 svr4,* | *,yes) # use import file
9977 # The Import File defines what to hardcode.
9978 hardcode_direct=no
9979 hardcode_direct_absolute=no
9980 ;;
9981 esac
9982
9983 if test yes = "$GCC"; then
9984 case $host_os in aix4.[012]|aix4.[012].*)
9985 # We only want to do this on AIX 4.2 and lower, the check
9986 # below for broken collect2 doesn't work under 4.3+
9987 collect2name=`$CC -print-prog-name=collect2`
9988 if test -f "$collect2name" &&
9989 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9990 then
9991 # We have reworked collect2
9992 :
9993 else
9994 # We have old collect2
9995 hardcode_direct=unsupported
9996 # It fails to find uninstalled libraries when the uninstalled
9997 # path is not listed in the libpath. Setting hardcode_minus_L
9998 # to unsupported forces relinking
9999 hardcode_minus_L=yes
10000 hardcode_libdir_flag_spec='-L$libdir'
10001 hardcode_libdir_separator=
10002 fi
10003 ;;
10004 esac
10005 shared_flag='-shared'
10006 if test yes = "$aix_use_runtimelinking"; then
10007 shared_flag="$shared_flag "'$wl-G'
10008 fi
10009 # Need to ensure runtime linking is disabled for the traditional
10010 # shared library, or the linker may eventually find shared libraries
10011 # /with/ Import File - we do not want to mix them.
10012 shared_flag_aix='-shared'
10013 shared_flag_svr4='-shared $wl-G'
10014 else
10015 # not using gcc
10016 if test ia64 = "$host_cpu"; then
10017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10018 # chokes on -Wl,-G. The following line is correct:
10019 shared_flag='-G'
10020 else
10021 if test yes = "$aix_use_runtimelinking"; then
10022 shared_flag='$wl-G'
10023 else
10024 shared_flag='$wl-bM:SRE'
10025 fi
10026 shared_flag_aix='$wl-bM:SRE'
10027 shared_flag_svr4='$wl-G'
10028 fi
10029 fi
10030
10031 export_dynamic_flag_spec='$wl-bexpall'
10032 # It seems that -bexpall does not export symbols beginning with
10033 # underscore (_), so it is better to generate a list of symbols to export.
10034 always_export_symbols=yes
10035 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10036 # Warning - without using the other runtime loading flags (-brtl),
10037 # -berok will link without error, but may produce a broken library.
10038 allow_undefined_flag='-berok'
10039 # Determine the default libpath from the value encoded in an
10040 # empty executable.
10041 if test set = "${lt_cv_aix_libpath+set}"; then
10042 aix_libpath=$lt_cv_aix_libpath
10043 else
10044 if test ${lt_cv_aix_libpath_+y}
10045 then :
10046 printf %s "(cached) " >&6
10047 else $as_nop
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050
10051 int
10052 main (void)
10053 {
10054
10055 ;
10056 return 0;
10057 }
10058 _ACEOF
10059 if ac_fn_c_try_link "$LINENO"
10060 then :
10061
10062 lt_aix_libpath_sed='
10063 /Import File Strings/,/^$/ {
10064 /^0/ {
10065 s/^0 *\([^ ]*\) *$/\1/
10066 p
10067 }
10068 }'
10069 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10070 # Check for a 64-bit object if we didn't find anything.
10071 if test -z "$lt_cv_aix_libpath_"; then
10072 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10073 fi
10074 fi
10075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10076 conftest$ac_exeext conftest.$ac_ext
10077 if test -z "$lt_cv_aix_libpath_"; then
10078 lt_cv_aix_libpath_=/usr/lib:/lib
10079 fi
10080
10081 fi
10082
10083 aix_libpath=$lt_cv_aix_libpath_
10084 fi
10085
10086 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10087 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
10088 else
10089 if test ia64 = "$host_cpu"; then
10090 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10091 allow_undefined_flag="-z nodefs"
10092 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"
10093 else
10094 # Determine the default libpath from the value encoded in an
10095 # empty executable.
10096 if test set = "${lt_cv_aix_libpath+set}"; then
10097 aix_libpath=$lt_cv_aix_libpath
10098 else
10099 if test ${lt_cv_aix_libpath_+y}
10100 then :
10101 printf %s "(cached) " >&6
10102 else $as_nop
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105
10106 int
10107 main (void)
10108 {
10109
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"
10115 then :
10116
10117 lt_aix_libpath_sed='
10118 /Import File Strings/,/^$/ {
10119 /^0/ {
10120 s/^0 *\([^ ]*\) *$/\1/
10121 p
10122 }
10123 }'
10124 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10125 # Check for a 64-bit object if we didn't find anything.
10126 if test -z "$lt_cv_aix_libpath_"; then
10127 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10128 fi
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10131 conftest$ac_exeext conftest.$ac_ext
10132 if test -z "$lt_cv_aix_libpath_"; then
10133 lt_cv_aix_libpath_=/usr/lib:/lib
10134 fi
10135
10136 fi
10137
10138 aix_libpath=$lt_cv_aix_libpath_
10139 fi
10140
10141 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10142 # Warning - without using the other run time loading flags,
10143 # -berok will link without error, but may produce a broken library.
10144 no_undefined_flag=' $wl-bernotok'
10145 allow_undefined_flag=' $wl-berok'
10146 if test yes = "$with_gnu_ld"; then
10147 # We only use this code for GNU lds that support --whole-archive.
10148 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10149 else
10150 # Exported symbols can be pulled into shared objects from archives
10151 whole_archive_flag_spec='$convenience'
10152 fi
10153 archive_cmds_need_lc=yes
10154 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10155 # -brtl affects multiple linker settings, -berok does not and is overridden later
10156 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10157 if test svr4 != "$with_aix_soname"; then
10158 # This is similar to how AIX traditionally builds its shared libraries.
10159 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'
10160 fi
10161 if test aix != "$with_aix_soname"; then
10162 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'
10163 else
10164 # used by -dlpreopen to get the symbols
10165 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10166 fi
10167 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10168 fi
10169 fi
10170 ;;
10171
10172 amigaos*)
10173 case $host_cpu in
10174 powerpc)
10175 # see comment about AmigaOS4 .so support
10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10177 archive_expsym_cmds=''
10178 ;;
10179 m68k)
10180 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)'
10181 hardcode_libdir_flag_spec='-L$libdir'
10182 hardcode_minus_L=yes
10183 ;;
10184 esac
10185 ;;
10186
10187 bsdi[45]*)
10188 export_dynamic_flag_spec=-rdynamic
10189 ;;
10190
10191 cygwin* | mingw* | pw32* | cegcc*)
10192 # When not using gcc, we currently assume that we are using
10193 # Microsoft Visual C++ or Intel C++ Compiler.
10194 # hardcode_libdir_flag_spec is actually meaningless, as there is
10195 # no search path for DLLs.
10196 case $cc_basename in
10197 cl* | icl*)
10198 # Native MSVC or ICC
10199 hardcode_libdir_flag_spec=' '
10200 allow_undefined_flag=unsupported
10201 always_export_symbols=yes
10202 file_list_spec='@'
10203 # Tell ltmain to make .lib files, not .a files.
10204 libext=lib
10205 # Tell ltmain to make .dll files, not .so files.
10206 shrext_cmds=.dll
10207 # FIXME: Setting linknames here is a bad hack.
10208 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10209 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10210 cp "$export_symbols" "$output_objdir/$soname.def";
10211 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10212 else
10213 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10214 fi~
10215 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10216 linknames='
10217 # The linker will not automatically build a static lib if we build a DLL.
10218 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10219 enable_shared_with_static_runtimes=yes
10220 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10222 # Don't use ranlib
10223 old_postinstall_cmds='chmod 644 $oldlib'
10224 postlink_cmds='lt_outputfile="@OUTPUT@"~
10225 lt_tool_outputfile="@TOOL_OUTPUT@"~
10226 case $lt_outputfile in
10227 *.exe|*.EXE) ;;
10228 *)
10229 lt_outputfile=$lt_outputfile.exe
10230 lt_tool_outputfile=$lt_tool_outputfile.exe
10231 ;;
10232 esac~
10233 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10234 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10235 $RM "$lt_outputfile.manifest";
10236 fi'
10237 ;;
10238 *)
10239 # Assume MSVC and ICC wrapper
10240 hardcode_libdir_flag_spec=' '
10241 allow_undefined_flag=unsupported
10242 # Tell ltmain to make .lib files, not .a files.
10243 libext=lib
10244 # Tell ltmain to make .dll files, not .so files.
10245 shrext_cmds=.dll
10246 # FIXME: Setting linknames here is a bad hack.
10247 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10248 # The linker will automatically build a .lib file if we build a DLL.
10249 old_archive_from_new_cmds='true'
10250 # FIXME: Should let the user specify the lib program.
10251 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10252 enable_shared_with_static_runtimes=yes
10253 ;;
10254 esac
10255 ;;
10256
10257 darwin* | rhapsody*)
10258
10259
10260 archive_cmds_need_lc=no
10261 hardcode_direct=no
10262 hardcode_automatic=yes
10263 hardcode_shlibpath_var=unsupported
10264 if test yes = "$lt_cv_ld_force_load"; then
10265 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\"`'
10266
10267 else
10268 whole_archive_flag_spec=''
10269 fi
10270 link_all_deplibs=yes
10271 allow_undefined_flag=$_lt_dar_allow_undefined
10272 case $cc_basename in
10273 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10274 *) _lt_dar_can_shared=$GCC ;;
10275 esac
10276 if test yes = "$_lt_dar_can_shared"; then
10277 output_verbose_link_cmd=func_echo_all
10278 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10279 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10280 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"
10281 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"
10282
10283 else
10284 ld_shlibs=no
10285 fi
10286
10287 ;;
10288
10289 dgux*)
10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_libdir_flag_spec='-L$libdir'
10292 hardcode_shlibpath_var=no
10293 ;;
10294
10295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10296 # support. Future versions do this automatically, but an explicit c++rt0.o
10297 # does not break anything, and helps significantly (at the cost of a little
10298 # extra space).
10299 freebsd2.2*)
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10301 hardcode_libdir_flag_spec='-R$libdir'
10302 hardcode_direct=yes
10303 hardcode_shlibpath_var=no
10304 ;;
10305
10306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10307 freebsd2.*)
10308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_direct=yes
10310 hardcode_minus_L=yes
10311 hardcode_shlibpath_var=no
10312 ;;
10313
10314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10315 freebsd* | dragonfly* | midnightbsd*)
10316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10317 hardcode_libdir_flag_spec='-R$libdir'
10318 hardcode_direct=yes
10319 hardcode_shlibpath_var=no
10320 ;;
10321
10322 hpux9*)
10323 if test yes = "$GCC"; then
10324 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'
10325 else
10326 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'
10327 fi
10328 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10329 hardcode_libdir_separator=:
10330 hardcode_direct=yes
10331
10332 # hardcode_minus_L: Not really in the search PATH,
10333 # but as the default location of the library.
10334 hardcode_minus_L=yes
10335 export_dynamic_flag_spec='$wl-E'
10336 ;;
10337
10338 hpux10*)
10339 if test yes,no = "$GCC,$with_gnu_ld"; then
10340 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341 else
10342 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10343 fi
10344 if test no = "$with_gnu_ld"; then
10345 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10346 hardcode_libdir_separator=:
10347 hardcode_direct=yes
10348 hardcode_direct_absolute=yes
10349 export_dynamic_flag_spec='$wl-E'
10350 # hardcode_minus_L: Not really in the search PATH,
10351 # but as the default location of the library.
10352 hardcode_minus_L=yes
10353 fi
10354 ;;
10355
10356 hpux11*)
10357 if test yes,no = "$GCC,$with_gnu_ld"; then
10358 case $host_cpu in
10359 hppa*64*)
10360 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 ;;
10362 ia64*)
10363 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10364 ;;
10365 *)
10366 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10367 ;;
10368 esac
10369 else
10370 case $host_cpu in
10371 hppa*64*)
10372 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10373 ;;
10374 ia64*)
10375 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10376 ;;
10377 *)
10378
10379 # Older versions of the 11.00 compiler do not understand -b yet
10380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10382 printf %s "checking if $CC understands -b... " >&6; }
10383 if test ${lt_cv_prog_compiler__b+y}
10384 then :
10385 printf %s "(cached) " >&6
10386 else $as_nop
10387 lt_cv_prog_compiler__b=no
10388 save_LDFLAGS=$LDFLAGS
10389 LDFLAGS="$LDFLAGS -b"
10390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10392 # The linker can only warn and ignore the option if not recognized
10393 # So say no if there are warnings
10394 if test -s conftest.err; then
10395 # Append any errors to the config.log.
10396 cat conftest.err 1>&5
10397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10399 if diff conftest.exp conftest.er2 >/dev/null; then
10400 lt_cv_prog_compiler__b=yes
10401 fi
10402 else
10403 lt_cv_prog_compiler__b=yes
10404 fi
10405 fi
10406 $RM -r conftest*
10407 LDFLAGS=$save_LDFLAGS
10408
10409 fi
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10411 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10412
10413 if test yes = "$lt_cv_prog_compiler__b"; then
10414 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10415 else
10416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10417 fi
10418
10419 ;;
10420 esac
10421 fi
10422 if test no = "$with_gnu_ld"; then
10423 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10424 hardcode_libdir_separator=:
10425
10426 case $host_cpu in
10427 hppa*64*|ia64*)
10428 hardcode_direct=no
10429 hardcode_shlibpath_var=no
10430 ;;
10431 *)
10432 hardcode_direct=yes
10433 hardcode_direct_absolute=yes
10434 export_dynamic_flag_spec='$wl-E'
10435
10436 # hardcode_minus_L: Not really in the search PATH,
10437 # but as the default location of the library.
10438 hardcode_minus_L=yes
10439 ;;
10440 esac
10441 fi
10442 ;;
10443
10444 irix5* | irix6* | nonstopux*)
10445 if test yes = "$GCC"; then
10446 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'
10447 # Try to use the -exported_symbol ld option, if it does not
10448 # work, assume that -exports_file does not work either and
10449 # implicitly export all symbols.
10450 # This should be the same for all languages, so no per-tag cache variable.
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10452 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10453 if test ${lt_cv_irix_exported_symbol+y}
10454 then :
10455 printf %s "(cached) " >&6
10456 else $as_nop
10457 save_LDFLAGS=$LDFLAGS
10458 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 int foo (void) { return 0; }
10462 _ACEOF
10463 if ac_fn_c_try_link "$LINENO"
10464 then :
10465 lt_cv_irix_exported_symbol=yes
10466 else $as_nop
10467 lt_cv_irix_exported_symbol=no
10468 fi
10469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LDFLAGS=$save_LDFLAGS
10472 fi
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10474 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10475 if test yes = "$lt_cv_irix_exported_symbol"; then
10476 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'
10477 fi
10478 else
10479 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'
10480 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'
10481 fi
10482 archive_cmds_need_lc='no'
10483 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10484 hardcode_libdir_separator=:
10485 inherit_rpath=yes
10486 link_all_deplibs=yes
10487 ;;
10488
10489 linux*)
10490 case $cc_basename in
10491 tcc*)
10492 # Fabrice Bellard et al's Tiny C Compiler
10493 ld_shlibs=yes
10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495 ;;
10496 esac
10497 ;;
10498
10499 netbsd*)
10500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10502 else
10503 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10504 fi
10505 hardcode_libdir_flag_spec='-R$libdir'
10506 hardcode_direct=yes
10507 hardcode_shlibpath_var=no
10508 ;;
10509
10510 newsos6)
10511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10512 hardcode_direct=yes
10513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10514 hardcode_libdir_separator=:
10515 hardcode_shlibpath_var=no
10516 ;;
10517
10518 *nto* | *qnx*)
10519 ;;
10520
10521 openbsd* | bitrig*)
10522 if test -f /usr/libexec/ld.so; then
10523 hardcode_direct=yes
10524 hardcode_shlibpath_var=no
10525 hardcode_direct_absolute=yes
10526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10528 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10529 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10530 export_dynamic_flag_spec='$wl-E'
10531 else
10532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10533 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10534 fi
10535 else
10536 ld_shlibs=no
10537 fi
10538 ;;
10539
10540 os2*)
10541 hardcode_libdir_flag_spec='-L$libdir'
10542 hardcode_minus_L=yes
10543 allow_undefined_flag=unsupported
10544 shrext_cmds=.dll
10545 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10546 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10547 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10548 $ECHO EXPORTS >> $output_objdir/$libname.def~
10549 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10550 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10551 emximp -o $lib $output_objdir/$libname.def'
10552 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10553 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10554 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10555 $ECHO EXPORTS >> $output_objdir/$libname.def~
10556 prefix_cmds="$SED"~
10557 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10558 prefix_cmds="$prefix_cmds -e 1d";
10559 fi~
10560 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10561 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10562 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10563 emximp -o $lib $output_objdir/$libname.def'
10564 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10565 enable_shared_with_static_runtimes=yes
10566 file_list_spec='@'
10567 ;;
10568
10569 osf3*)
10570 if test yes = "$GCC"; then
10571 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10572 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'
10573 else
10574 allow_undefined_flag=' -expect_unresolved \*'
10575 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'
10576 fi
10577 archive_cmds_need_lc='no'
10578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10579 hardcode_libdir_separator=:
10580 ;;
10581
10582 osf4* | osf5*) # as osf3* with the addition of -msym flag
10583 if test yes = "$GCC"; then
10584 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10585 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'
10586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10587 else
10588 allow_undefined_flag=' -expect_unresolved \*'
10589 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'
10590 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~
10591 $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'
10592
10593 # Both c and cxx compiler support -rpath directly
10594 hardcode_libdir_flag_spec='-rpath $libdir'
10595 fi
10596 archive_cmds_need_lc='no'
10597 hardcode_libdir_separator=:
10598 ;;
10599
10600 solaris*)
10601 no_undefined_flag=' -z defs'
10602 if test yes = "$GCC"; then
10603 wlarc='$wl'
10604 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10606 $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'
10607 else
10608 case `$CC -V 2>&1` in
10609 *"Compilers 5.0"*)
10610 wlarc=''
10611 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10613 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10614 ;;
10615 *)
10616 wlarc='$wl'
10617 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10619 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10620 ;;
10621 esac
10622 fi
10623 hardcode_libdir_flag_spec='-R$libdir'
10624 hardcode_shlibpath_var=no
10625 case $host_os in
10626 solaris2.[0-5] | solaris2.[0-5].*) ;;
10627 *)
10628 # The compiler driver will combine and reorder linker options,
10629 # but understands '-z linker_flag'. GCC discards it without '$wl',
10630 # but is careful enough not to reorder.
10631 # Supported since Solaris 2.6 (maybe 2.5.1?)
10632 if test yes = "$GCC"; then
10633 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10634 else
10635 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10636 fi
10637 ;;
10638 esac
10639 link_all_deplibs=yes
10640 ;;
10641
10642 sunos4*)
10643 if test sequent = "$host_vendor"; then
10644 # Use $CC to link under sequent, because it throws in some extra .o
10645 # files that make .init and .fini sections work.
10646 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10647 else
10648 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10649 fi
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_direct=yes
10652 hardcode_minus_L=yes
10653 hardcode_shlibpath_var=no
10654 ;;
10655
10656 sysv4)
10657 case $host_vendor in
10658 sni)
10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_direct=yes # is this really true???
10661 ;;
10662 siemens)
10663 ## LD is ld it makes a PLAMLIB
10664 ## CC just makes a GrossModule.
10665 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10666 reload_cmds='$CC -r -o $output$reload_objs'
10667 hardcode_direct=no
10668 ;;
10669 motorola)
10670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10671 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10672 ;;
10673 esac
10674 runpath_var='LD_RUN_PATH'
10675 hardcode_shlibpath_var=no
10676 ;;
10677
10678 sysv4.3*)
10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_shlibpath_var=no
10681 export_dynamic_flag_spec='-Bexport'
10682 ;;
10683
10684 sysv4*MP*)
10685 if test -d /usr/nec; then
10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_shlibpath_var=no
10688 runpath_var=LD_RUN_PATH
10689 hardcode_runpath_var=yes
10690 ld_shlibs=yes
10691 fi
10692 ;;
10693
10694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10695 no_undefined_flag='$wl-z,text'
10696 archive_cmds_need_lc=no
10697 hardcode_shlibpath_var=no
10698 runpath_var='LD_RUN_PATH'
10699
10700 if test yes = "$GCC"; then
10701 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703 else
10704 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706 fi
10707 ;;
10708
10709 sysv5* | sco3.2v5* | sco5v6*)
10710 # Note: We CANNOT use -z defs as we might desire, because we do not
10711 # link with -lc, and that would cause any symbols used from libc to
10712 # always be unresolved, which means just about no library would
10713 # ever link correctly. If we're not using GNU ld we use -z text
10714 # though, which does catch some bad symbols but isn't as heavy-handed
10715 # as -z defs.
10716 no_undefined_flag='$wl-z,text'
10717 allow_undefined_flag='$wl-z,nodefs'
10718 archive_cmds_need_lc=no
10719 hardcode_shlibpath_var=no
10720 hardcode_libdir_flag_spec='$wl-R,$libdir'
10721 hardcode_libdir_separator=':'
10722 link_all_deplibs=yes
10723 export_dynamic_flag_spec='$wl-Bexport'
10724 runpath_var='LD_RUN_PATH'
10725
10726 if test yes = "$GCC"; then
10727 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 else
10730 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 fi
10733 ;;
10734
10735 uts4*)
10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_libdir_flag_spec='-L$libdir'
10738 hardcode_shlibpath_var=no
10739 ;;
10740
10741 *)
10742 ld_shlibs=no
10743 ;;
10744 esac
10745
10746 if test sni = "$host_vendor"; then
10747 case $host in
10748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10749 export_dynamic_flag_spec='$wl-Blargedynsym'
10750 ;;
10751 esac
10752 fi
10753 fi
10754
10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10756 printf "%s\n" "$ld_shlibs" >&6; }
10757 test no = "$ld_shlibs" && can_build_shared=no
10758
10759 with_gnu_ld=$with_gnu_ld
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775 #
10776 # Do we need to explicitly link libc?
10777 #
10778 case "x$archive_cmds_need_lc" in
10779 x|xyes)
10780 # Assume -lc should be added
10781 archive_cmds_need_lc=yes
10782
10783 if test yes,yes = "$GCC,$enable_shared"; then
10784 case $archive_cmds in
10785 *'~'*)
10786 # FIXME: we may have to deal with multi-command sequences.
10787 ;;
10788 '$CC '*)
10789 # Test whether the compiler implicitly links with -lc since on some
10790 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10791 # to ld, don't add -lc before -lgcc.
10792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10793 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10794 if test ${lt_cv_archive_cmds_need_lc+y}
10795 then :
10796 printf %s "(cached) " >&6
10797 else $as_nop
10798 $RM conftest*
10799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10800
10801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10802 (eval $ac_compile) 2>&5
10803 ac_status=$?
10804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10805 test $ac_status = 0; } 2>conftest.err; then
10806 soname=conftest
10807 lib=conftest
10808 libobjs=conftest.$ac_objext
10809 deplibs=
10810 wl=$lt_prog_compiler_wl
10811 pic_flag=$lt_prog_compiler_pic
10812 compiler_flags=-v
10813 linker_flags=-v
10814 verstring=
10815 output_objdir=.
10816 libname=conftest
10817 lt_save_allow_undefined_flag=$allow_undefined_flag
10818 allow_undefined_flag=
10819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10820 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10821 ac_status=$?
10822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10823 test $ac_status = 0; }
10824 then
10825 lt_cv_archive_cmds_need_lc=no
10826 else
10827 lt_cv_archive_cmds_need_lc=yes
10828 fi
10829 allow_undefined_flag=$lt_save_allow_undefined_flag
10830 else
10831 cat conftest.err 1>&5
10832 fi
10833 $RM conftest*
10834
10835 fi
10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10837 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10838 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10839 ;;
10840 esac
10841 fi
10842 ;;
10843 esac
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10997 printf %s "checking dynamic linker characteristics... " >&6; }
10998
10999 if test yes = "$GCC"; then
11000 case $host_os in
11001 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11002 *) lt_awk_arg='/^libraries:/' ;;
11003 esac
11004 case $host_os in
11005 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11006 *) lt_sed_strip_eq='s|=/|/|g' ;;
11007 esac
11008 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11009 case $lt_search_path_spec in
11010 *\;*)
11011 # if the path contains ";" then we assume it to be the separator
11012 # otherwise default to the standard path separator (i.e. ":") - it is
11013 # assumed that no part of a normal pathname contains ";" but that should
11014 # okay in the real world where ";" in dirpaths is itself problematic.
11015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11016 ;;
11017 *)
11018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11019 ;;
11020 esac
11021 # Ok, now we have the path, separated by spaces, we can step through it
11022 # and add multilib dir if necessary...
11023 lt_tmp_lt_search_path_spec=
11024 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11025 # ...but if some path component already ends with the multilib dir we assume
11026 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11027 case "$lt_multi_os_dir; $lt_search_path_spec " in
11028 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11029 lt_multi_os_dir=
11030 ;;
11031 esac
11032 for lt_sys_path in $lt_search_path_spec; do
11033 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11034 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11035 elif test -n "$lt_multi_os_dir"; then
11036 test -d "$lt_sys_path" && \
11037 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11038 fi
11039 done
11040 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11041 BEGIN {RS = " "; FS = "/|\n";} {
11042 lt_foo = "";
11043 lt_count = 0;
11044 for (lt_i = NF; lt_i > 0; lt_i--) {
11045 if ($lt_i != "" && $lt_i != ".") {
11046 if ($lt_i == "..") {
11047 lt_count++;
11048 } else {
11049 if (lt_count == 0) {
11050 lt_foo = "/" $lt_i lt_foo;
11051 } else {
11052 lt_count--;
11053 }
11054 }
11055 }
11056 }
11057 if (lt_foo != "") { lt_freq[lt_foo]++; }
11058 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11059 }'`
11060 # AWK program above erroneously prepends '/' to C:/dos/paths
11061 # for these hosts.
11062 case $host_os in
11063 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11064 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11065 esac
11066 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11067 else
11068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11069 fi
11070 library_names_spec=
11071 libname_spec='lib$name'
11072 soname_spec=
11073 shrext_cmds=.so
11074 postinstall_cmds=
11075 postuninstall_cmds=
11076 finish_cmds=
11077 finish_eval=
11078 shlibpath_var=
11079 shlibpath_overrides_runpath=unknown
11080 version_type=none
11081 dynamic_linker="$host_os ld.so"
11082 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11083 need_lib_prefix=unknown
11084 hardcode_into_libs=no
11085
11086 # when you set need_version to no, make sure it does not cause -set_version
11087 # flags to be left without arguments
11088 need_version=unknown
11089
11090
11091
11092 case $host_os in
11093 aix3*)
11094 version_type=linux # correct to gnu/linux during the next big refactor
11095 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11096 shlibpath_var=LIBPATH
11097
11098 # AIX 3 has no versioning support, so we append a major version to the name.
11099 soname_spec='$libname$release$shared_ext$major'
11100 ;;
11101
11102 aix[4-9]*)
11103 version_type=linux # correct to gnu/linux during the next big refactor
11104 need_lib_prefix=no
11105 need_version=no
11106 hardcode_into_libs=yes
11107 if test ia64 = "$host_cpu"; then
11108 # AIX 5 supports IA64
11109 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 else
11112 # With GCC up to 2.95.x, collect2 would create an import file
11113 # for dependence libraries. The import file would start with
11114 # the line '#! .'. This would cause the generated library to
11115 # depend on '.', always an invalid library. This was fixed in
11116 # development snapshots of GCC prior to 3.0.
11117 case $host_os in
11118 aix4 | aix4.[01] | aix4.[01].*)
11119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11120 echo ' yes '
11121 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11122 :
11123 else
11124 can_build_shared=no
11125 fi
11126 ;;
11127 esac
11128 # Using Import Files as archive members, it is possible to support
11129 # filename-based versioning of shared library archives on AIX. While
11130 # this would work for both with and without runtime linking, it will
11131 # prevent static linking of such archives. So we do filename-based
11132 # shared library versioning with .so extension only, which is used
11133 # when both runtime linking and shared linking is enabled.
11134 # Unfortunately, runtime linking may impact performance, so we do
11135 # not want this to be the default eventually. Also, we use the
11136 # versioned .so libs for executables only if there is the -brtl
11137 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11138 # To allow for filename-based versioning support, we need to create
11139 # libNAME.so.V as an archive file, containing:
11140 # *) an Import File, referring to the versioned filename of the
11141 # archive as well as the shared archive member, telling the
11142 # bitwidth (32 or 64) of that shared object, and providing the
11143 # list of exported symbols of that shared object, eventually
11144 # decorated with the 'weak' keyword
11145 # *) the shared object with the F_LOADONLY flag set, to really avoid
11146 # it being seen by the linker.
11147 # At run time we better use the real file rather than another symlink,
11148 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11149
11150 case $with_aix_soname,$aix_use_runtimelinking in
11151 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11152 # soname into executable. Probably we can add versioning support to
11153 # collect2, so additional links can be useful in future.
11154 aix,yes) # traditional libtool
11155 dynamic_linker='AIX unversionable lib.so'
11156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11157 # instead of lib<name>.a to let people know that these are not
11158 # typical AIX shared libraries.
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160 ;;
11161 aix,no) # traditional AIX only
11162 dynamic_linker='AIX lib.a(lib.so.V)'
11163 # We preserve .a as extension for shared libraries through AIX4.2
11164 # and later when we are not doing run time linking.
11165 library_names_spec='$libname$release.a $libname.a'
11166 soname_spec='$libname$release$shared_ext$major'
11167 ;;
11168 svr4,*) # full svr4 only
11169 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11170 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11171 # We do not specify a path in Import Files, so LIBPATH fires.
11172 shlibpath_overrides_runpath=yes
11173 ;;
11174 *,yes) # both, prefer svr4
11175 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11176 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11177 # unpreferred sharedlib libNAME.a needs extra handling
11178 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"'
11179 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"'
11180 # We do not specify a path in Import Files, so LIBPATH fires.
11181 shlibpath_overrides_runpath=yes
11182 ;;
11183 *,no) # both, prefer aix
11184 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11185 library_names_spec='$libname$release.a $libname.a'
11186 soname_spec='$libname$release$shared_ext$major'
11187 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11188 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)'
11189 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"'
11190 ;;
11191 esac
11192 shlibpath_var=LIBPATH
11193 fi
11194 ;;
11195
11196 amigaos*)
11197 case $host_cpu in
11198 powerpc)
11199 # Since July 2007 AmigaOS4 officially supports .so libraries.
11200 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202 ;;
11203 m68k)
11204 library_names_spec='$libname.ixlibrary $libname.a'
11205 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11206 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'
11207 ;;
11208 esac
11209 ;;
11210
11211 beos*)
11212 library_names_spec='$libname$shared_ext'
11213 dynamic_linker="$host_os ld.so"
11214 shlibpath_var=LIBRARY_PATH
11215 ;;
11216
11217 bsdi[45]*)
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 need_version=no
11220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11221 soname_spec='$libname$release$shared_ext$major'
11222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11226 # the default ld.so.conf also contains /usr/contrib/lib and
11227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11228 # libtool to hard-code these into programs
11229 ;;
11230
11231 cygwin* | mingw* | pw32* | cegcc*)
11232 version_type=windows
11233 shrext_cmds=.dll
11234 need_version=no
11235 need_lib_prefix=no
11236
11237 case $GCC,$cc_basename in
11238 yes,*)
11239 # gcc
11240 library_names_spec='$libname.dll.a'
11241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11242 postinstall_cmds='base_file=`basename \$file`~
11243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11244 dldir=$destdir/`dirname \$dlpath`~
11245 test -d \$dldir || mkdir -p \$dldir~
11246 $install_prog $dir/$dlname \$dldir/$dlname~
11247 chmod a+x \$dldir/$dlname~
11248 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11249 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11250 fi'
11251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11252 dlpath=$dir/\$dldll~
11253 $RM \$dlpath'
11254 shlibpath_overrides_runpath=yes
11255
11256 case $host_os in
11257 cygwin*)
11258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11259 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11260
11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11262 ;;
11263 mingw* | cegcc*)
11264 # MinGW DLLs use traditional 'lib' prefix
11265 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11266 ;;
11267 pw32*)
11268 # pw32 DLLs use 'pw' prefix rather than 'lib'
11269 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11270 ;;
11271 esac
11272 dynamic_linker='Win32 ld.exe'
11273 ;;
11274
11275 *,cl* | *,icl*)
11276 # Native MSVC or ICC
11277 libname_spec='$name'
11278 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11279 library_names_spec='$libname.dll.lib'
11280
11281 case $build_os in
11282 mingw*)
11283 sys_lib_search_path_spec=
11284 lt_save_ifs=$IFS
11285 IFS=';'
11286 for lt_path in $LIB
11287 do
11288 IFS=$lt_save_ifs
11289 # Let DOS variable expansion print the short 8.3 style file name.
11290 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11291 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11292 done
11293 IFS=$lt_save_ifs
11294 # Convert to MSYS style.
11295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11296 ;;
11297 cygwin*)
11298 # Convert to unix form, then to dos form, then back to unix form
11299 # but this time dos style (no spaces!) so that the unix form looks
11300 # like /cygdrive/c/PROGRA~1:/cygdr...
11301 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11302 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11303 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11304 ;;
11305 *)
11306 sys_lib_search_path_spec=$LIB
11307 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11308 # It is most probably a Windows format PATH.
11309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11310 else
11311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11312 fi
11313 # FIXME: find the short name or the path components, as spaces are
11314 # common. (e.g. "Program Files" -> "PROGRA~1")
11315 ;;
11316 esac
11317
11318 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11319 postinstall_cmds='base_file=`basename \$file`~
11320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11321 dldir=$destdir/`dirname \$dlpath`~
11322 test -d \$dldir || mkdir -p \$dldir~
11323 $install_prog $dir/$dlname \$dldir/$dlname'
11324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11325 dlpath=$dir/\$dldll~
11326 $RM \$dlpath'
11327 shlibpath_overrides_runpath=yes
11328 dynamic_linker='Win32 link.exe'
11329 ;;
11330
11331 *)
11332 # Assume MSVC and ICC wrapper
11333 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11334 dynamic_linker='Win32 ld.exe'
11335 ;;
11336 esac
11337 # FIXME: first we should search . and the directory the executable is in
11338 shlibpath_var=PATH
11339 ;;
11340
11341 darwin* | rhapsody*)
11342 dynamic_linker="$host_os dyld"
11343 version_type=darwin
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11347 soname_spec='$libname$release$major$shared_ext'
11348 shlibpath_overrides_runpath=yes
11349 shlibpath_var=DYLD_LIBRARY_PATH
11350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11351
11352 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11354 ;;
11355
11356 dgux*)
11357 version_type=linux # correct to gnu/linux during the next big refactor
11358 need_lib_prefix=no
11359 need_version=no
11360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11361 soname_spec='$libname$release$shared_ext$major'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 ;;
11364
11365 freebsd* | dragonfly* | midnightbsd*)
11366 # DragonFly does not have aout. When/if they implement a new
11367 # versioning mechanism, adjust this.
11368 if test -x /usr/bin/objformat; then
11369 objformat=`/usr/bin/objformat`
11370 else
11371 case $host_os in
11372 freebsd[23].*) objformat=aout ;;
11373 *) objformat=elf ;;
11374 esac
11375 fi
11376 version_type=freebsd-$objformat
11377 case $version_type in
11378 freebsd-elf*)
11379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11380 soname_spec='$libname$release$shared_ext$major'
11381 need_version=no
11382 need_lib_prefix=no
11383 ;;
11384 freebsd-*)
11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11386 need_version=yes
11387 ;;
11388 esac
11389 shlibpath_var=LD_LIBRARY_PATH
11390 case $host_os in
11391 freebsd2.*)
11392 shlibpath_overrides_runpath=yes
11393 ;;
11394 freebsd3.[01]* | freebsdelf3.[01]*)
11395 shlibpath_overrides_runpath=yes
11396 hardcode_into_libs=yes
11397 ;;
11398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11400 shlibpath_overrides_runpath=no
11401 hardcode_into_libs=yes
11402 ;;
11403 *) # from 4.6 on, and DragonFly
11404 shlibpath_overrides_runpath=yes
11405 hardcode_into_libs=yes
11406 ;;
11407 esac
11408 ;;
11409
11410 haiku*)
11411 version_type=linux # correct to gnu/linux during the next big refactor
11412 need_lib_prefix=no
11413 need_version=no
11414 dynamic_linker="$host_os runtime_loader"
11415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11416 soname_spec='$libname$release$shared_ext$major'
11417 shlibpath_var=LIBRARY_PATH
11418 shlibpath_overrides_runpath=no
11419 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11420 hardcode_into_libs=yes
11421 ;;
11422
11423 hpux9* | hpux10* | hpux11*)
11424 # Give a soname corresponding to the major version so that dld.sl refuses to
11425 # link against other versions.
11426 version_type=sunos
11427 need_lib_prefix=no
11428 need_version=no
11429 case $host_cpu in
11430 ia64*)
11431 shrext_cmds='.so'
11432 hardcode_into_libs=yes
11433 dynamic_linker="$host_os dld.so"
11434 shlibpath_var=LD_LIBRARY_PATH
11435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437 soname_spec='$libname$release$shared_ext$major'
11438 if test 32 = "$HPUX_IA64_MODE"; then
11439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11440 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11441 else
11442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11443 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11444 fi
11445 ;;
11446 hppa*64*)
11447 shrext_cmds='.sl'
11448 hardcode_into_libs=yes
11449 dynamic_linker="$host_os dld.sl"
11450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11453 soname_spec='$libname$release$shared_ext$major'
11454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11456 ;;
11457 *)
11458 shrext_cmds='.sl'
11459 dynamic_linker="$host_os dld.sl"
11460 shlibpath_var=SHLIB_PATH
11461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
11465 esac
11466 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11467 postinstall_cmds='chmod 555 $lib'
11468 # or fails outright, so override atomically:
11469 install_override_mode=555
11470 ;;
11471
11472 interix[3-9]*)
11473 version_type=linux # correct to gnu/linux during the next big refactor
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11477 soname_spec='$libname$release$shared_ext$major'
11478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11479 shlibpath_var=LD_LIBRARY_PATH
11480 shlibpath_overrides_runpath=no
11481 hardcode_into_libs=yes
11482 ;;
11483
11484 irix5* | irix6* | nonstopux*)
11485 case $host_os in
11486 nonstopux*) version_type=nonstopux ;;
11487 *)
11488 if test yes = "$lt_cv_prog_gnu_ld"; then
11489 version_type=linux # correct to gnu/linux during the next big refactor
11490 else
11491 version_type=irix
11492 fi ;;
11493 esac
11494 need_lib_prefix=no
11495 need_version=no
11496 soname_spec='$libname$release$shared_ext$major'
11497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11498 case $host_os in
11499 irix5* | nonstopux*)
11500 libsuff= shlibsuff=
11501 ;;
11502 *)
11503 case $LD in # libtool.m4 will add one of these switches to LD
11504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11505 libsuff= shlibsuff= libmagic=32-bit;;
11506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11507 libsuff=32 shlibsuff=N32 libmagic=N32;;
11508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11510 *) libsuff= shlibsuff= libmagic=never-match;;
11511 esac
11512 ;;
11513 esac
11514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11515 shlibpath_overrides_runpath=no
11516 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11517 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11518 hardcode_into_libs=yes
11519 ;;
11520
11521 # No shared lib support for Linux oldld, aout, or coff.
11522 linux*oldld* | linux*aout* | linux*coff*)
11523 dynamic_linker=no
11524 ;;
11525
11526 linux*android*)
11527 version_type=none # Android doesn't support versioned libraries.
11528 need_lib_prefix=no
11529 need_version=no
11530 library_names_spec='$libname$release$shared_ext'
11531 soname_spec='$libname$release$shared_ext'
11532 finish_cmds=
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535
11536 # This implies no fast_install, which is unacceptable.
11537 # Some rework will be needed to allow for fast_install
11538 # before this can be enabled.
11539 hardcode_into_libs=yes
11540
11541 dynamic_linker='Android linker'
11542 # Don't embed -rpath directories since the linker doesn't support them.
11543 hardcode_libdir_flag_spec='-L$libdir'
11544 ;;
11545
11546 # This must be glibc/ELF.
11547 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11548 version_type=linux # correct to gnu/linux during the next big refactor
11549 need_lib_prefix=no
11550 need_version=no
11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11552 soname_spec='$libname$release$shared_ext$major'
11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 shlibpath_overrides_runpath=no
11556
11557 # Some binutils ld are patched to set DT_RUNPATH
11558 if test ${lt_cv_shlibpath_overrides_runpath+y}
11559 then :
11560 printf %s "(cached) " >&6
11561 else $as_nop
11562 lt_cv_shlibpath_overrides_runpath=no
11563 save_LDFLAGS=$LDFLAGS
11564 save_libdir=$libdir
11565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11569
11570 int
11571 main (void)
11572 {
11573
11574 ;
11575 return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"
11579 then :
11580 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11581 then :
11582 lt_cv_shlibpath_overrides_runpath=yes
11583 fi
11584 fi
11585 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LDFLAGS=$save_LDFLAGS
11588 libdir=$save_libdir
11589
11590 fi
11591
11592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11593
11594 # This implies no fast_install, which is unacceptable.
11595 # Some rework will be needed to allow for fast_install
11596 # before this can be enabled.
11597 hardcode_into_libs=yes
11598
11599 # Ideally, we could use ldconfig to report *all* directores which are
11600 # searched for libraries, however this is still not possible. Aside from not
11601 # being certain /sbin/ldconfig is available, command
11602 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11603 # even though it is searched at run-time. Try to do the best guess by
11604 # appending ld.so.conf contents (and includes) to the search path.
11605 if test -f /etc/ld.so.conf; then
11606 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' ' '`
11607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11608 fi
11609
11610 # We used to test for /lib/ld.so.1 and disable shared libraries on
11611 # powerpc, because MkLinux only supported shared libraries with the
11612 # GNU dynamic linker. Since this was broken with cross compilers,
11613 # most powerpc-linux boxes support dynamic linking these days and
11614 # people can always --disable-shared, the test was removed, and we
11615 # assume the GNU/Linux dynamic linker is in use.
11616 dynamic_linker='GNU/Linux ld.so'
11617 ;;
11618
11619 netbsd*)
11620 version_type=sunos
11621 need_lib_prefix=no
11622 need_version=no
11623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11624 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11626 dynamic_linker='NetBSD (a.out) ld.so'
11627 else
11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629 soname_spec='$libname$release$shared_ext$major'
11630 dynamic_linker='NetBSD ld.elf_so'
11631 fi
11632 shlibpath_var=LD_LIBRARY_PATH
11633 shlibpath_overrides_runpath=yes
11634 hardcode_into_libs=yes
11635 ;;
11636
11637 newsos6)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=yes
11642 ;;
11643
11644 *nto* | *qnx*)
11645 version_type=qnx
11646 need_lib_prefix=no
11647 need_version=no
11648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11649 soname_spec='$libname$release$shared_ext$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=no
11652 hardcode_into_libs=yes
11653 dynamic_linker='ldqnx.so'
11654 ;;
11655
11656 openbsd* | bitrig*)
11657 version_type=sunos
11658 sys_lib_dlsearch_path_spec=/usr/lib
11659 need_lib_prefix=no
11660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11661 need_version=no
11662 else
11663 need_version=yes
11664 fi
11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 shlibpath_overrides_runpath=yes
11669 ;;
11670
11671 os2*)
11672 libname_spec='$name'
11673 version_type=windows
11674 shrext_cmds=.dll
11675 need_version=no
11676 need_lib_prefix=no
11677 # OS/2 can only load a DLL with a base name of 8 characters or less.
11678 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11679 v=$($ECHO $release$versuffix | tr -d .-);
11680 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11681 $ECHO $n$v`$shared_ext'
11682 library_names_spec='${libname}_dll.$libext'
11683 dynamic_linker='OS/2 ld.exe'
11684 shlibpath_var=BEGINLIBPATH
11685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11687 postinstall_cmds='base_file=`basename \$file`~
11688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11689 dldir=$destdir/`dirname \$dlpath`~
11690 test -d \$dldir || mkdir -p \$dldir~
11691 $install_prog $dir/$dlname \$dldir/$dlname~
11692 chmod a+x \$dldir/$dlname~
11693 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11694 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11695 fi'
11696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11697 dlpath=$dir/\$dldll~
11698 $RM \$dlpath'
11699 ;;
11700
11701 osf3* | osf4* | osf5*)
11702 version_type=osf
11703 need_lib_prefix=no
11704 need_version=no
11705 soname_spec='$libname$release$shared_ext$major'
11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11710 ;;
11711
11712 rdos*)
11713 dynamic_linker=no
11714 ;;
11715
11716 solaris*)
11717 version_type=linux # correct to gnu/linux during the next big refactor
11718 need_lib_prefix=no
11719 need_version=no
11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721 soname_spec='$libname$release$shared_ext$major'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11725 # ldd complains unless libraries are executable
11726 postinstall_cmds='chmod +x $lib'
11727 ;;
11728
11729 sunos4*)
11730 version_type=sunos
11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11732 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11735 if test yes = "$with_gnu_ld"; then
11736 need_lib_prefix=no
11737 fi
11738 need_version=yes
11739 ;;
11740
11741 sysv4 | sysv4.3*)
11742 version_type=linux # correct to gnu/linux during the next big refactor
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 case $host_vendor in
11747 sni)
11748 shlibpath_overrides_runpath=no
11749 need_lib_prefix=no
11750 runpath_var=LD_RUN_PATH
11751 ;;
11752 siemens)
11753 need_lib_prefix=no
11754 ;;
11755 motorola)
11756 need_lib_prefix=no
11757 need_version=no
11758 shlibpath_overrides_runpath=no
11759 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11760 ;;
11761 esac
11762 ;;
11763
11764 sysv4*MP*)
11765 if test -d /usr/nec; then
11766 version_type=linux # correct to gnu/linux during the next big refactor
11767 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11768 soname_spec='$libname$shared_ext.$major'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 fi
11771 ;;
11772
11773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11774 version_type=sco
11775 need_lib_prefix=no
11776 need_version=no
11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11778 soname_spec='$libname$release$shared_ext$major'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11781 hardcode_into_libs=yes
11782 if test yes = "$with_gnu_ld"; then
11783 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11784 else
11785 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11786 case $host_os in
11787 sco3.2v5*)
11788 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11789 ;;
11790 esac
11791 fi
11792 sys_lib_dlsearch_path_spec='/usr/lib'
11793 ;;
11794
11795 tpf*)
11796 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11797 version_type=linux # correct to gnu/linux during the next big refactor
11798 need_lib_prefix=no
11799 need_version=no
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=no
11803 hardcode_into_libs=yes
11804 ;;
11805
11806 uts4*)
11807 version_type=linux # correct to gnu/linux during the next big refactor
11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11809 soname_spec='$libname$release$shared_ext$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 ;;
11812
11813 *)
11814 dynamic_linker=no
11815 ;;
11816 esac
11817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11818 printf "%s\n" "$dynamic_linker" >&6; }
11819 test no = "$dynamic_linker" && can_build_shared=no
11820
11821 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11822 if test yes = "$GCC"; then
11823 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11824 fi
11825
11826 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11827 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11828 fi
11829
11830 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11831 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11832 fi
11833
11834 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11835 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11836
11837 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11838 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11839
11840 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11841 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11940 printf %s "checking how to hardcode library paths into programs... " >&6; }
11941 hardcode_action=
11942 if test -n "$hardcode_libdir_flag_spec" ||
11943 test -n "$runpath_var" ||
11944 test yes = "$hardcode_automatic"; then
11945
11946 # We can hardcode non-existent directories.
11947 if test no != "$hardcode_direct" &&
11948 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11949 # have to relink, otherwise we might link with an installed library
11950 # when we should be linking with a yet-to-be-installed one
11951 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11952 test no != "$hardcode_minus_L"; then
11953 # Linking always hardcodes the temporary library directory.
11954 hardcode_action=relink
11955 else
11956 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11957 hardcode_action=immediate
11958 fi
11959 else
11960 # We cannot hardcode anything, or else we can only hardcode existing
11961 # directories.
11962 hardcode_action=unsupported
11963 fi
11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11965 printf "%s\n" "$hardcode_action" >&6; }
11966
11967 if test relink = "$hardcode_action" ||
11968 test yes = "$inherit_rpath"; then
11969 # Fast installation is not supported
11970 enable_fast_install=no
11971 elif test yes = "$shlibpath_overrides_runpath" ||
11972 test no = "$enable_shared"; then
11973 # Fast installation is not necessary
11974 enable_fast_install=needless
11975 fi
11976
11977
11978
11979
11980
11981
11982 if test yes != "$enable_dlopen"; then
11983 enable_dlopen=unknown
11984 enable_dlopen_self=unknown
11985 enable_dlopen_self_static=unknown
11986 else
11987 lt_cv_dlopen=no
11988 lt_cv_dlopen_libs=
11989
11990 case $host_os in
11991 beos*)
11992 lt_cv_dlopen=load_add_on
11993 lt_cv_dlopen_libs=
11994 lt_cv_dlopen_self=yes
11995 ;;
11996
11997 mingw* | pw32* | cegcc*)
11998 lt_cv_dlopen=LoadLibrary
11999 lt_cv_dlopen_libs=
12000 ;;
12001
12002 cygwin*)
12003 lt_cv_dlopen=dlopen
12004 lt_cv_dlopen_libs=
12005 ;;
12006
12007 darwin*)
12008 # if libdl is installed we need to link against it
12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12010 printf %s "checking for dlopen in -ldl... " >&6; }
12011 if test ${ac_cv_lib_dl_dlopen+y}
12012 then :
12013 printf %s "(cached) " >&6
12014 else $as_nop
12015 ac_check_lib_save_LIBS=$LIBS
12016 LIBS="-ldl $LIBS"
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019
12020 /* Override any GCC internal prototype to avoid an error.
12021 Use char because int might match the return type of a GCC
12022 builtin and then its argument prototype would still apply. */
12023 char dlopen ();
12024 int
12025 main (void)
12026 {
12027 return dlopen ();
12028 ;
12029 return 0;
12030 }
12031 _ACEOF
12032 if ac_fn_c_try_link "$LINENO"
12033 then :
12034 ac_cv_lib_dl_dlopen=yes
12035 else $as_nop
12036 ac_cv_lib_dl_dlopen=no
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12039 conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12041 fi
12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12043 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12044 if test "x$ac_cv_lib_dl_dlopen" = xyes
12045 then :
12046 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12047 else $as_nop
12048
12049 lt_cv_dlopen=dyld
12050 lt_cv_dlopen_libs=
12051 lt_cv_dlopen_self=yes
12052
12053 fi
12054
12055 ;;
12056
12057 tpf*)
12058 # Don't try to run any link tests for TPF. We know it's impossible
12059 # because TPF is a cross-compiler, and we know how we open DSOs.
12060 lt_cv_dlopen=dlopen
12061 lt_cv_dlopen_libs=
12062 lt_cv_dlopen_self=no
12063 ;;
12064
12065 *)
12066 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12067 if test "x$ac_cv_func_shl_load" = xyes
12068 then :
12069 lt_cv_dlopen=shl_load
12070 else $as_nop
12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12072 printf %s "checking for shl_load in -ldld... " >&6; }
12073 if test ${ac_cv_lib_dld_shl_load+y}
12074 then :
12075 printf %s "(cached) " >&6
12076 else $as_nop
12077 ac_check_lib_save_LIBS=$LIBS
12078 LIBS="-ldld $LIBS"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085 char shl_load ();
12086 int
12087 main (void)
12088 {
12089 return shl_load ();
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 if ac_fn_c_try_link "$LINENO"
12095 then :
12096 ac_cv_lib_dld_shl_load=yes
12097 else $as_nop
12098 ac_cv_lib_dld_shl_load=no
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12103 fi
12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12105 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12106 if test "x$ac_cv_lib_dld_shl_load" = xyes
12107 then :
12108 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12109 else $as_nop
12110 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12111 if test "x$ac_cv_func_dlopen" = xyes
12112 then :
12113 lt_cv_dlopen=dlopen
12114 else $as_nop
12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12116 printf %s "checking for dlopen in -ldl... " >&6; }
12117 if test ${ac_cv_lib_dl_dlopen+y}
12118 then :
12119 printf %s "(cached) " >&6
12120 else $as_nop
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-ldl $LIBS"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129 char dlopen ();
12130 int
12131 main (void)
12132 {
12133 return dlopen ();
12134 ;
12135 return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"
12139 then :
12140 ac_cv_lib_dl_dlopen=yes
12141 else $as_nop
12142 ac_cv_lib_dl_dlopen=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12147 fi
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12149 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12150 if test "x$ac_cv_lib_dl_dlopen" = xyes
12151 then :
12152 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12153 else $as_nop
12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12155 printf %s "checking for dlopen in -lsvld... " >&6; }
12156 if test ${ac_cv_lib_svld_dlopen+y}
12157 then :
12158 printf %s "(cached) " >&6
12159 else $as_nop
12160 ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-lsvld $LIBS"
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 char dlopen ();
12169 int
12170 main (void)
12171 {
12172 return dlopen ();
12173 ;
12174 return 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"
12178 then :
12179 ac_cv_lib_svld_dlopen=yes
12180 else $as_nop
12181 ac_cv_lib_svld_dlopen=no
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12186 fi
12187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12188 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12189 if test "x$ac_cv_lib_svld_dlopen" = xyes
12190 then :
12191 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12192 else $as_nop
12193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12194 printf %s "checking for dld_link in -ldld... " >&6; }
12195 if test ${ac_cv_lib_dld_dld_link+y}
12196 then :
12197 printf %s "(cached) " >&6
12198 else $as_nop
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-ldld $LIBS"
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12207 char dld_link ();
12208 int
12209 main (void)
12210 {
12211 return dld_link ();
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_c_try_link "$LINENO"
12217 then :
12218 ac_cv_lib_dld_dld_link=yes
12219 else $as_nop
12220 ac_cv_lib_dld_dld_link=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12225 fi
12226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12227 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12228 if test "x$ac_cv_lib_dld_dld_link" = xyes
12229 then :
12230 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12231 fi
12232
12233
12234 fi
12235
12236
12237 fi
12238
12239
12240 fi
12241
12242
12243 fi
12244
12245
12246 fi
12247
12248 ;;
12249 esac
12250
12251 if test no = "$lt_cv_dlopen"; then
12252 enable_dlopen=no
12253 else
12254 enable_dlopen=yes
12255 fi
12256
12257 case $lt_cv_dlopen in
12258 dlopen)
12259 save_CPPFLAGS=$CPPFLAGS
12260 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12261
12262 save_LDFLAGS=$LDFLAGS
12263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12264
12265 save_LIBS=$LIBS
12266 LIBS="$lt_cv_dlopen_libs $LIBS"
12267
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12269 printf %s "checking whether a program can dlopen itself... " >&6; }
12270 if test ${lt_cv_dlopen_self+y}
12271 then :
12272 printf %s "(cached) " >&6
12273 else $as_nop
12274 if test yes = "$cross_compiling"; then :
12275 lt_cv_dlopen_self=cross
12276 else
12277 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12278 lt_status=$lt_dlunknown
12279 cat > conftest.$ac_ext <<_LT_EOF
12280 #line $LINENO "configure"
12281 #include "confdefs.h"
12282
12283 #if HAVE_DLFCN_H
12284 #include <dlfcn.h>
12285 #endif
12286
12287 #include <stdio.h>
12288
12289 #ifdef RTLD_GLOBAL
12290 # define LT_DLGLOBAL RTLD_GLOBAL
12291 #else
12292 # ifdef DL_GLOBAL
12293 # define LT_DLGLOBAL DL_GLOBAL
12294 # else
12295 # define LT_DLGLOBAL 0
12296 # endif
12297 #endif
12298
12299 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12300 find out it does not work in some platform. */
12301 #ifndef LT_DLLAZY_OR_NOW
12302 # ifdef RTLD_LAZY
12303 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12304 # else
12305 # ifdef DL_LAZY
12306 # define LT_DLLAZY_OR_NOW DL_LAZY
12307 # else
12308 # ifdef RTLD_NOW
12309 # define LT_DLLAZY_OR_NOW RTLD_NOW
12310 # else
12311 # ifdef DL_NOW
12312 # define LT_DLLAZY_OR_NOW DL_NOW
12313 # else
12314 # define LT_DLLAZY_OR_NOW 0
12315 # endif
12316 # endif
12317 # endif
12318 # endif
12319 #endif
12320
12321 /* When -fvisibility=hidden is used, assume the code has been annotated
12322 correspondingly for the symbols needed. */
12323 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12324 int fnord () __attribute__((visibility("default")));
12325 #endif
12326
12327 int fnord () { return 42; }
12328 int main ()
12329 {
12330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12331 int status = $lt_dlunknown;
12332
12333 if (self)
12334 {
12335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12336 else
12337 {
12338 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12339 else puts (dlerror ());
12340 }
12341 /* dlclose (self); */
12342 }
12343 else
12344 puts (dlerror ());
12345
12346 return status;
12347 }
12348 _LT_EOF
12349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12350 (eval $ac_link) 2>&5
12351 ac_status=$?
12352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12353 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12354 (./conftest; exit; ) >&5 2>/dev/null
12355 lt_status=$?
12356 case x$lt_status in
12357 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12358 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12359 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12360 esac
12361 else :
12362 # compilation failed
12363 lt_cv_dlopen_self=no
12364 fi
12365 fi
12366 rm -fr conftest*
12367
12368
12369 fi
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12371 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12372
12373 if test yes = "$lt_cv_dlopen_self"; then
12374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12376 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12377 if test ${lt_cv_dlopen_self_static+y}
12378 then :
12379 printf %s "(cached) " >&6
12380 else $as_nop
12381 if test yes = "$cross_compiling"; then :
12382 lt_cv_dlopen_self_static=cross
12383 else
12384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12385 lt_status=$lt_dlunknown
12386 cat > conftest.$ac_ext <<_LT_EOF
12387 #line $LINENO "configure"
12388 #include "confdefs.h"
12389
12390 #if HAVE_DLFCN_H
12391 #include <dlfcn.h>
12392 #endif
12393
12394 #include <stdio.h>
12395
12396 #ifdef RTLD_GLOBAL
12397 # define LT_DLGLOBAL RTLD_GLOBAL
12398 #else
12399 # ifdef DL_GLOBAL
12400 # define LT_DLGLOBAL DL_GLOBAL
12401 # else
12402 # define LT_DLGLOBAL 0
12403 # endif
12404 #endif
12405
12406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12407 find out it does not work in some platform. */
12408 #ifndef LT_DLLAZY_OR_NOW
12409 # ifdef RTLD_LAZY
12410 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12411 # else
12412 # ifdef DL_LAZY
12413 # define LT_DLLAZY_OR_NOW DL_LAZY
12414 # else
12415 # ifdef RTLD_NOW
12416 # define LT_DLLAZY_OR_NOW RTLD_NOW
12417 # else
12418 # ifdef DL_NOW
12419 # define LT_DLLAZY_OR_NOW DL_NOW
12420 # else
12421 # define LT_DLLAZY_OR_NOW 0
12422 # endif
12423 # endif
12424 # endif
12425 # endif
12426 #endif
12427
12428 /* When -fvisibility=hidden is used, assume the code has been annotated
12429 correspondingly for the symbols needed. */
12430 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12431 int fnord () __attribute__((visibility("default")));
12432 #endif
12433
12434 int fnord () { return 42; }
12435 int main ()
12436 {
12437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12438 int status = $lt_dlunknown;
12439
12440 if (self)
12441 {
12442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12443 else
12444 {
12445 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12446 else puts (dlerror ());
12447 }
12448 /* dlclose (self); */
12449 }
12450 else
12451 puts (dlerror ());
12452
12453 return status;
12454 }
12455 _LT_EOF
12456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12457 (eval $ac_link) 2>&5
12458 ac_status=$?
12459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12460 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12461 (./conftest; exit; ) >&5 2>/dev/null
12462 lt_status=$?
12463 case x$lt_status in
12464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12466 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12467 esac
12468 else :
12469 # compilation failed
12470 lt_cv_dlopen_self_static=no
12471 fi
12472 fi
12473 rm -fr conftest*
12474
12475
12476 fi
12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12478 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12479 fi
12480
12481 CPPFLAGS=$save_CPPFLAGS
12482 LDFLAGS=$save_LDFLAGS
12483 LIBS=$save_LIBS
12484 ;;
12485 esac
12486
12487 case $lt_cv_dlopen_self in
12488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12489 *) enable_dlopen_self=unknown ;;
12490 esac
12491
12492 case $lt_cv_dlopen_self_static in
12493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12494 *) enable_dlopen_self_static=unknown ;;
12495 esac
12496 fi
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514 striplib=
12515 old_striplib=
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12517 printf %s "checking whether stripping libraries is possible... " >&6; }
12518 if test -z "$STRIP"; then
12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 printf "%s\n" "no" >&6; }
12521 else
12522 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12523 old_striplib="$STRIP --strip-debug"
12524 striplib="$STRIP --strip-unneeded"
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12526 printf "%s\n" "yes" >&6; }
12527 else
12528 case $host_os in
12529 darwin*)
12530 # FIXME - insert some real tests, host_os isn't really good enough
12531 striplib="$STRIP -x"
12532 old_striplib="$STRIP -S"
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12534 printf "%s\n" "yes" >&6; }
12535 ;;
12536 freebsd*)
12537 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12538 old_striplib="$STRIP --strip-debug"
12539 striplib="$STRIP --strip-unneeded"
12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12541 printf "%s\n" "yes" >&6; }
12542 else
12543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 printf "%s\n" "no" >&6; }
12545 fi
12546 ;;
12547 *)
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 printf "%s\n" "no" >&6; }
12550 ;;
12551 esac
12552 fi
12553 fi
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 # Report what library types will actually be built
12567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12568 printf %s "checking if libtool supports shared libraries... " >&6; }
12569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12570 printf "%s\n" "$can_build_shared" >&6; }
12571
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12573 printf %s "checking whether to build shared libraries... " >&6; }
12574 test no = "$can_build_shared" && enable_shared=no
12575
12576 # On AIX, shared libraries and static libraries use the same namespace, and
12577 # are all built from PIC.
12578 case $host_os in
12579 aix3*)
12580 test yes = "$enable_shared" && enable_static=no
12581 if test -n "$RANLIB"; then
12582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12583 postinstall_cmds='$RANLIB $lib'
12584 fi
12585 ;;
12586
12587 aix[4-9]*)
12588 if test ia64 != "$host_cpu"; then
12589 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12590 yes,aix,yes) ;; # shared object as lib.so file only
12591 yes,svr4,*) ;; # shared object as lib.so archive member only
12592 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12593 esac
12594 fi
12595 ;;
12596 esac
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12598 printf "%s\n" "$enable_shared" >&6; }
12599
12600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12601 printf %s "checking whether to build static libraries... " >&6; }
12602 # Make sure either enable_shared or enable_static is yes.
12603 test yes = "$enable_shared" || enable_static=yes
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12605 printf "%s\n" "$enable_static" >&6; }
12606
12607
12608
12609
12610 fi
12611 ac_ext=c
12612 ac_cpp='$CPP $CPPFLAGS'
12613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12616
12617 CC=$lt_save_CC
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633 ac_config_commands="$ac_config_commands libtool"
12634
12635
12636
12637
12638 # Only expand once:
12639
12640
12641
12642 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12656 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12657 if test ${ac_cv_c_undeclared_builtin_options+y}
12658 then :
12659 printf %s "(cached) " >&6
12660 else $as_nop
12661 ac_save_CFLAGS=$CFLAGS
12662 ac_cv_c_undeclared_builtin_options='cannot detect'
12663 for ac_arg in '' -fno-builtin; do
12664 CFLAGS="$ac_save_CFLAGS $ac_arg"
12665 # This test program should *not* compile successfully.
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668
12669 int
12670 main (void)
12671 {
12672 (void) strchr;
12673 ;
12674 return 0;
12675 }
12676 _ACEOF
12677 if ac_fn_c_try_compile "$LINENO"
12678 then :
12679
12680 else $as_nop
12681 # This test program should compile successfully.
12682 # No library function is consistently available on
12683 # freestanding implementations, so test against a dummy
12684 # declaration. Include always-available headers on the
12685 # off chance that they somehow elicit warnings.
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 #include <float.h>
12689 #include <limits.h>
12690 #include <stdarg.h>
12691 #include <stddef.h>
12692 extern void ac_decl (int, char *);
12693
12694 int
12695 main (void)
12696 {
12697 (void) ac_decl (0, (char *) 0);
12698 (void) ac_decl;
12699
12700 ;
12701 return 0;
12702 }
12703 _ACEOF
12704 if ac_fn_c_try_compile "$LINENO"
12705 then :
12706 if test x"$ac_arg" = x
12707 then :
12708 ac_cv_c_undeclared_builtin_options='none needed'
12709 else $as_nop
12710 ac_cv_c_undeclared_builtin_options=$ac_arg
12711 fi
12712 break
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12717 done
12718 CFLAGS=$ac_save_CFLAGS
12719
12720 fi
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12722 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12723 case $ac_cv_c_undeclared_builtin_options in #(
12724 'cannot detect') :
12725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12726 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12727 as_fn_error $? "cannot make $CC report undeclared builtins
12728 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12729 'none needed') :
12730 ac_c_undeclared_builtin_options='' ;; #(
12731 *) :
12732 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12733 esac
12734
12735
12736
12737
12738
12739 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12740 if test "x$ac_cv_have_decl___clang__" = xyes
12741 then :
12742 CLANGCC="yes"
12743 else $as_nop
12744 CLANGCC="no"
12745 fi
12746 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12747 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12748 then :
12749 INTELCC="yes"
12750 else $as_nop
12751 INTELCC="no"
12752 fi
12753 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12754 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12755 then :
12756 SUNCC="yes"
12757 else $as_nop
12758 SUNCC="no"
12759 fi
12760
12761
12762
12763
12764
12765
12766
12767
12768 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12769 if test -n "$ac_tool_prefix"; then
12770 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12771 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773 printf %s "checking for $ac_word... " >&6; }
12774 if test ${ac_cv_path_PKG_CONFIG+y}
12775 then :
12776 printf %s "(cached) " >&6
12777 else $as_nop
12778 case $PKG_CONFIG in
12779 [\\/]* | ?:[\\/]*)
12780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12781 ;;
12782 *)
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12785 do
12786 IFS=$as_save_IFS
12787 case $as_dir in #(((
12788 '') as_dir=./ ;;
12789 */) ;;
12790 *) as_dir=$as_dir/ ;;
12791 esac
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12794 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798 done
12799 done
12800 IFS=$as_save_IFS
12801
12802 ;;
12803 esac
12804 fi
12805 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12806 if test -n "$PKG_CONFIG"; then
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12808 printf "%s\n" "$PKG_CONFIG" >&6; }
12809 else
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 printf "%s\n" "no" >&6; }
12812 fi
12813
12814
12815 fi
12816 if test -z "$ac_cv_path_PKG_CONFIG"; then
12817 ac_pt_PKG_CONFIG=$PKG_CONFIG
12818 # Extract the first word of "pkg-config", so it can be a program name with args.
12819 set dummy pkg-config; ac_word=$2
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12821 printf %s "checking for $ac_word... " >&6; }
12822 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12823 then :
12824 printf %s "(cached) " >&6
12825 else $as_nop
12826 case $ac_pt_PKG_CONFIG in
12827 [\\/]* | ?:[\\/]*)
12828 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12829 ;;
12830 *)
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834 IFS=$as_save_IFS
12835 case $as_dir in #(((
12836 '') as_dir=./ ;;
12837 */) ;;
12838 *) as_dir=$as_dir/ ;;
12839 esac
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 ;;
12851 esac
12852 fi
12853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12854 if test -n "$ac_pt_PKG_CONFIG"; then
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12856 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12857 else
12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 printf "%s\n" "no" >&6; }
12860 fi
12861
12862 if test "x$ac_pt_PKG_CONFIG" = x; then
12863 PKG_CONFIG=""
12864 else
12865 case $cross_compiling:$ac_tool_warned in
12866 yes:)
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12869 ac_tool_warned=yes ;;
12870 esac
12871 PKG_CONFIG=$ac_pt_PKG_CONFIG
12872 fi
12873 else
12874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12875 fi
12876
12877 fi
12878 if test -n "$PKG_CONFIG"; then
12879 _pkg_min_version=0.9.0
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12881 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12884 printf "%s\n" "yes" >&6; }
12885 else
12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 printf "%s\n" "no" >&6; }
12888 PKG_CONFIG=""
12889 fi
12890 fi
12891
12892
12893
12894
12895
12896 # Check whether --enable-selective-werror was given.
12897 if test ${enable_selective_werror+y}
12898 then :
12899 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12900 else $as_nop
12901 SELECTIVE_WERROR=yes
12902 fi
12903
12904
12905
12906
12907
12908 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12909 if test "x$SUNCC" = "xyes"; then
12910 BASE_CFLAGS="-v"
12911 else
12912 BASE_CFLAGS=""
12913 fi
12914
12915 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929 xorg_testset_save_CFLAGS="$CFLAGS"
12930
12931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12934 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12935 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12936 then :
12937 printf %s "(cached) " >&6
12938 else $as_nop
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 int i;
12942 _ACEOF
12943 if ac_fn_c_try_compile "$LINENO"
12944 then :
12945 xorg_cv_cc_flag_unknown_warning_option=yes
12946 else $as_nop
12947 xorg_cv_cc_flag_unknown_warning_option=no
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12950 fi
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12952 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12954 CFLAGS="$xorg_testset_save_CFLAGS"
12955 fi
12956
12957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12960 fi
12961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12963 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12964 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12965 then :
12966 printf %s "(cached) " >&6
12967 else $as_nop
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12970 int i;
12971 _ACEOF
12972 if ac_fn_c_try_compile "$LINENO"
12973 then :
12974 xorg_cv_cc_flag_unused_command_line_argument=yes
12975 else $as_nop
12976 xorg_cv_cc_flag_unused_command_line_argument=no
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12979 fi
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12981 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12983 CFLAGS="$xorg_testset_save_CFLAGS"
12984 fi
12985
12986 found="no"
12987
12988 if test $found = "no" ; then
12989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12991 fi
12992
12993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12995 fi
12996
12997 CFLAGS="$CFLAGS -Wall"
12998
12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13000 printf %s "checking if $CC supports -Wall... " >&6; }
13001 cacheid=xorg_cv_cc_flag__Wall
13002 if eval test \${$cacheid+y}
13003 then :
13004 printf %s "(cached) " >&6
13005 else $as_nop
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 int i;
13009 int
13010 main (void)
13011 {
13012
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"
13018 then :
13019 eval $cacheid=yes
13020 else $as_nop
13021 eval $cacheid=no
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13024 conftest$ac_exeext conftest.$ac_ext
13025 fi
13026
13027
13028 CFLAGS="$xorg_testset_save_CFLAGS"
13029
13030 eval supported=\$$cacheid
13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13032 printf "%s\n" "$supported" >&6; }
13033 if test "$supported" = "yes" ; then
13034 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13035 found="yes"
13036 fi
13037 fi
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053 xorg_testset_save_CFLAGS="$CFLAGS"
13054
13055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13058 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13059 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13060 then :
13061 printf %s "(cached) " >&6
13062 else $as_nop
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 int i;
13066 _ACEOF
13067 if ac_fn_c_try_compile "$LINENO"
13068 then :
13069 xorg_cv_cc_flag_unknown_warning_option=yes
13070 else $as_nop
13071 xorg_cv_cc_flag_unknown_warning_option=no
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13074 fi
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13078 CFLAGS="$xorg_testset_save_CFLAGS"
13079 fi
13080
13081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13084 fi
13085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13089 then :
13090 printf %s "(cached) " >&6
13091 else $as_nop
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 int i;
13095 _ACEOF
13096 if ac_fn_c_try_compile "$LINENO"
13097 then :
13098 xorg_cv_cc_flag_unused_command_line_argument=yes
13099 else $as_nop
13100 xorg_cv_cc_flag_unused_command_line_argument=no
13101 fi
13102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13103 fi
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13107 CFLAGS="$xorg_testset_save_CFLAGS"
13108 fi
13109
13110 found="no"
13111
13112 if test $found = "no" ; then
13113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13115 fi
13116
13117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13119 fi
13120
13121 CFLAGS="$CFLAGS -Wpointer-arith"
13122
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13124 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13125 cacheid=xorg_cv_cc_flag__Wpointer_arith
13126 if eval test \${$cacheid+y}
13127 then :
13128 printf %s "(cached) " >&6
13129 else $as_nop
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132 int i;
13133 int
13134 main (void)
13135 {
13136
13137 ;
13138 return 0;
13139 }
13140 _ACEOF
13141 if ac_fn_c_try_link "$LINENO"
13142 then :
13143 eval $cacheid=yes
13144 else $as_nop
13145 eval $cacheid=no
13146 fi
13147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13148 conftest$ac_exeext conftest.$ac_ext
13149 fi
13150
13151
13152 CFLAGS="$xorg_testset_save_CFLAGS"
13153
13154 eval supported=\$$cacheid
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13156 printf "%s\n" "$supported" >&6; }
13157 if test "$supported" = "yes" ; then
13158 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13159 found="yes"
13160 fi
13161 fi
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177 xorg_testset_save_CFLAGS="$CFLAGS"
13178
13179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13183 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13184 then :
13185 printf %s "(cached) " >&6
13186 else $as_nop
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189 int i;
13190 _ACEOF
13191 if ac_fn_c_try_compile "$LINENO"
13192 then :
13193 xorg_cv_cc_flag_unknown_warning_option=yes
13194 else $as_nop
13195 xorg_cv_cc_flag_unknown_warning_option=no
13196 fi
13197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13198 fi
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13200 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13202 CFLAGS="$xorg_testset_save_CFLAGS"
13203 fi
13204
13205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13208 fi
13209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13211 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13212 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13213 then :
13214 printf %s "(cached) " >&6
13215 else $as_nop
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 int i;
13219 _ACEOF
13220 if ac_fn_c_try_compile "$LINENO"
13221 then :
13222 xorg_cv_cc_flag_unused_command_line_argument=yes
13223 else $as_nop
13224 xorg_cv_cc_flag_unused_command_line_argument=no
13225 fi
13226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13227 fi
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13229 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13231 CFLAGS="$xorg_testset_save_CFLAGS"
13232 fi
13233
13234 found="no"
13235
13236 if test $found = "no" ; then
13237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13239 fi
13240
13241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13243 fi
13244
13245 CFLAGS="$CFLAGS -Wmissing-declarations"
13246
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13248 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13249 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13250 if eval test \${$cacheid+y}
13251 then :
13252 printf %s "(cached) " >&6
13253 else $as_nop
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13256 int i;
13257 int
13258 main (void)
13259 {
13260
13261 ;
13262 return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"
13266 then :
13267 eval $cacheid=yes
13268 else $as_nop
13269 eval $cacheid=no
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13272 conftest$ac_exeext conftest.$ac_ext
13273 fi
13274
13275
13276 CFLAGS="$xorg_testset_save_CFLAGS"
13277
13278 eval supported=\$$cacheid
13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13280 printf "%s\n" "$supported" >&6; }
13281 if test "$supported" = "yes" ; then
13282 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13283 found="yes"
13284 fi
13285 fi
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301 xorg_testset_save_CFLAGS="$CFLAGS"
13302
13303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13306 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13307 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13308 then :
13309 printf %s "(cached) " >&6
13310 else $as_nop
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 int i;
13314 _ACEOF
13315 if ac_fn_c_try_compile "$LINENO"
13316 then :
13317 xorg_cv_cc_flag_unknown_warning_option=yes
13318 else $as_nop
13319 xorg_cv_cc_flag_unknown_warning_option=no
13320 fi
13321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13322 fi
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13324 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13326 CFLAGS="$xorg_testset_save_CFLAGS"
13327 fi
13328
13329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13332 fi
13333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13335 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13336 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13337 then :
13338 printf %s "(cached) " >&6
13339 else $as_nop
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342 int i;
13343 _ACEOF
13344 if ac_fn_c_try_compile "$LINENO"
13345 then :
13346 xorg_cv_cc_flag_unused_command_line_argument=yes
13347 else $as_nop
13348 xorg_cv_cc_flag_unused_command_line_argument=no
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13351 fi
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13353 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13355 CFLAGS="$xorg_testset_save_CFLAGS"
13356 fi
13357
13358 found="no"
13359
13360 if test $found = "no" ; then
13361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13363 fi
13364
13365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13367 fi
13368
13369 CFLAGS="$CFLAGS -Wformat=2"
13370
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13372 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13373 cacheid=xorg_cv_cc_flag__Wformat_2
13374 if eval test \${$cacheid+y}
13375 then :
13376 printf %s "(cached) " >&6
13377 else $as_nop
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 int i;
13381 int
13382 main (void)
13383 {
13384
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_link "$LINENO"
13390 then :
13391 eval $cacheid=yes
13392 else $as_nop
13393 eval $cacheid=no
13394 fi
13395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13396 conftest$ac_exeext conftest.$ac_ext
13397 fi
13398
13399
13400 CFLAGS="$xorg_testset_save_CFLAGS"
13401
13402 eval supported=\$$cacheid
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13404 printf "%s\n" "$supported" >&6; }
13405 if test "$supported" = "yes" ; then
13406 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13407 found="yes"
13408 fi
13409 fi
13410
13411 if test $found = "no" ; then
13412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13414 fi
13415
13416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13418 fi
13419
13420 CFLAGS="$CFLAGS -Wformat"
13421
13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13423 printf %s "checking if $CC supports -Wformat... " >&6; }
13424 cacheid=xorg_cv_cc_flag__Wformat
13425 if eval test \${$cacheid+y}
13426 then :
13427 printf %s "(cached) " >&6
13428 else $as_nop
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 int i;
13432 int
13433 main (void)
13434 {
13435
13436 ;
13437 return 0;
13438 }
13439 _ACEOF
13440 if ac_fn_c_try_link "$LINENO"
13441 then :
13442 eval $cacheid=yes
13443 else $as_nop
13444 eval $cacheid=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13447 conftest$ac_exeext conftest.$ac_ext
13448 fi
13449
13450
13451 CFLAGS="$xorg_testset_save_CFLAGS"
13452
13453 eval supported=\$$cacheid
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13455 printf "%s\n" "$supported" >&6; }
13456 if test "$supported" = "yes" ; then
13457 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13458 found="yes"
13459 fi
13460 fi
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478 xorg_testset_save_CFLAGS="$CFLAGS"
13479
13480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13485 then :
13486 printf %s "(cached) " >&6
13487 else $as_nop
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13490 int i;
13491 _ACEOF
13492 if ac_fn_c_try_compile "$LINENO"
13493 then :
13494 xorg_cv_cc_flag_unknown_warning_option=yes
13495 else $as_nop
13496 xorg_cv_cc_flag_unknown_warning_option=no
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13499 fi
13500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13503 CFLAGS="$xorg_testset_save_CFLAGS"
13504 fi
13505
13506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13509 fi
13510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13514 then :
13515 printf %s "(cached) " >&6
13516 else $as_nop
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13519 int i;
13520 _ACEOF
13521 if ac_fn_c_try_compile "$LINENO"
13522 then :
13523 xorg_cv_cc_flag_unused_command_line_argument=yes
13524 else $as_nop
13525 xorg_cv_cc_flag_unused_command_line_argument=no
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13528 fi
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13532 CFLAGS="$xorg_testset_save_CFLAGS"
13533 fi
13534
13535 found="no"
13536
13537 if test $found = "no" ; then
13538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13540 fi
13541
13542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13544 fi
13545
13546 CFLAGS="$CFLAGS -Wstrict-prototypes"
13547
13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13549 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13550 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13551 if eval test \${$cacheid+y}
13552 then :
13553 printf %s "(cached) " >&6
13554 else $as_nop
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 int i;
13558 int
13559 main (void)
13560 {
13561
13562 ;
13563 return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"
13567 then :
13568 eval $cacheid=yes
13569 else $as_nop
13570 eval $cacheid=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13573 conftest$ac_exeext conftest.$ac_ext
13574 fi
13575
13576
13577 CFLAGS="$xorg_testset_save_CFLAGS"
13578
13579 eval supported=\$$cacheid
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13581 printf "%s\n" "$supported" >&6; }
13582 if test "$supported" = "yes" ; then
13583 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13584 found="yes"
13585 fi
13586 fi
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602 xorg_testset_save_CFLAGS="$CFLAGS"
13603
13604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13608 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13609 then :
13610 printf %s "(cached) " >&6
13611 else $as_nop
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 int i;
13615 _ACEOF
13616 if ac_fn_c_try_compile "$LINENO"
13617 then :
13618 xorg_cv_cc_flag_unknown_warning_option=yes
13619 else $as_nop
13620 xorg_cv_cc_flag_unknown_warning_option=no
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13623 fi
13624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13627 CFLAGS="$xorg_testset_save_CFLAGS"
13628 fi
13629
13630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13633 fi
13634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13638 then :
13639 printf %s "(cached) " >&6
13640 else $as_nop
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643 int i;
13644 _ACEOF
13645 if ac_fn_c_try_compile "$LINENO"
13646 then :
13647 xorg_cv_cc_flag_unused_command_line_argument=yes
13648 else $as_nop
13649 xorg_cv_cc_flag_unused_command_line_argument=no
13650 fi
13651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13652 fi
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13654 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13656 CFLAGS="$xorg_testset_save_CFLAGS"
13657 fi
13658
13659 found="no"
13660
13661 if test $found = "no" ; then
13662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13664 fi
13665
13666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13668 fi
13669
13670 CFLAGS="$CFLAGS -Wmissing-prototypes"
13671
13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13673 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13674 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13675 if eval test \${$cacheid+y}
13676 then :
13677 printf %s "(cached) " >&6
13678 else $as_nop
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 int i;
13682 int
13683 main (void)
13684 {
13685
13686 ;
13687 return 0;
13688 }
13689 _ACEOF
13690 if ac_fn_c_try_link "$LINENO"
13691 then :
13692 eval $cacheid=yes
13693 else $as_nop
13694 eval $cacheid=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13697 conftest$ac_exeext conftest.$ac_ext
13698 fi
13699
13700
13701 CFLAGS="$xorg_testset_save_CFLAGS"
13702
13703 eval supported=\$$cacheid
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13705 printf "%s\n" "$supported" >&6; }
13706 if test "$supported" = "yes" ; then
13707 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13708 found="yes"
13709 fi
13710 fi
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726 xorg_testset_save_CFLAGS="$CFLAGS"
13727
13728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13732 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13733 then :
13734 printf %s "(cached) " >&6
13735 else $as_nop
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 int i;
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"
13741 then :
13742 xorg_cv_cc_flag_unknown_warning_option=yes
13743 else $as_nop
13744 xorg_cv_cc_flag_unknown_warning_option=no
13745 fi
13746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13747 fi
13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13749 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13751 CFLAGS="$xorg_testset_save_CFLAGS"
13752 fi
13753
13754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13757 fi
13758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13760 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13761 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13762 then :
13763 printf %s "(cached) " >&6
13764 else $as_nop
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767 int i;
13768 _ACEOF
13769 if ac_fn_c_try_compile "$LINENO"
13770 then :
13771 xorg_cv_cc_flag_unused_command_line_argument=yes
13772 else $as_nop
13773 xorg_cv_cc_flag_unused_command_line_argument=no
13774 fi
13775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13776 fi
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13778 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13780 CFLAGS="$xorg_testset_save_CFLAGS"
13781 fi
13782
13783 found="no"
13784
13785 if test $found = "no" ; then
13786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13788 fi
13789
13790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13792 fi
13793
13794 CFLAGS="$CFLAGS -Wnested-externs"
13795
13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13797 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13798 cacheid=xorg_cv_cc_flag__Wnested_externs
13799 if eval test \${$cacheid+y}
13800 then :
13801 printf %s "(cached) " >&6
13802 else $as_nop
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 int i;
13806 int
13807 main (void)
13808 {
13809
13810 ;
13811 return 0;
13812 }
13813 _ACEOF
13814 if ac_fn_c_try_link "$LINENO"
13815 then :
13816 eval $cacheid=yes
13817 else $as_nop
13818 eval $cacheid=no
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13821 conftest$ac_exeext conftest.$ac_ext
13822 fi
13823
13824
13825 CFLAGS="$xorg_testset_save_CFLAGS"
13826
13827 eval supported=\$$cacheid
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13829 printf "%s\n" "$supported" >&6; }
13830 if test "$supported" = "yes" ; then
13831 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13832 found="yes"
13833 fi
13834 fi
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850 xorg_testset_save_CFLAGS="$CFLAGS"
13851
13852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13856 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13857 then :
13858 printf %s "(cached) " >&6
13859 else $as_nop
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862 int i;
13863 _ACEOF
13864 if ac_fn_c_try_compile "$LINENO"
13865 then :
13866 xorg_cv_cc_flag_unknown_warning_option=yes
13867 else $as_nop
13868 xorg_cv_cc_flag_unknown_warning_option=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13871 fi
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13875 CFLAGS="$xorg_testset_save_CFLAGS"
13876 fi
13877
13878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13881 fi
13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13886 then :
13887 printf %s "(cached) " >&6
13888 else $as_nop
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891 int i;
13892 _ACEOF
13893 if ac_fn_c_try_compile "$LINENO"
13894 then :
13895 xorg_cv_cc_flag_unused_command_line_argument=yes
13896 else $as_nop
13897 xorg_cv_cc_flag_unused_command_line_argument=no
13898 fi
13899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13900 fi
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13904 CFLAGS="$xorg_testset_save_CFLAGS"
13905 fi
13906
13907 found="no"
13908
13909 if test $found = "no" ; then
13910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13912 fi
13913
13914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13916 fi
13917
13918 CFLAGS="$CFLAGS -Wbad-function-cast"
13919
13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13921 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13922 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13923 if eval test \${$cacheid+y}
13924 then :
13925 printf %s "(cached) " >&6
13926 else $as_nop
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13929 int i;
13930 int
13931 main (void)
13932 {
13933
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_link "$LINENO"
13939 then :
13940 eval $cacheid=yes
13941 else $as_nop
13942 eval $cacheid=no
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13945 conftest$ac_exeext conftest.$ac_ext
13946 fi
13947
13948
13949 CFLAGS="$xorg_testset_save_CFLAGS"
13950
13951 eval supported=\$$cacheid
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13953 printf "%s\n" "$supported" >&6; }
13954 if test "$supported" = "yes" ; then
13955 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13956 found="yes"
13957 fi
13958 fi
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974 xorg_testset_save_CFLAGS="$CFLAGS"
13975
13976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13981 then :
13982 printf %s "(cached) " >&6
13983 else $as_nop
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986 int i;
13987 _ACEOF
13988 if ac_fn_c_try_compile "$LINENO"
13989 then :
13990 xorg_cv_cc_flag_unknown_warning_option=yes
13991 else $as_nop
13992 xorg_cv_cc_flag_unknown_warning_option=no
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13995 fi
13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13999 CFLAGS="$xorg_testset_save_CFLAGS"
14000 fi
14001
14002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14005 fi
14006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14010 then :
14011 printf %s "(cached) " >&6
14012 else $as_nop
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015 int i;
14016 _ACEOF
14017 if ac_fn_c_try_compile "$LINENO"
14018 then :
14019 xorg_cv_cc_flag_unused_command_line_argument=yes
14020 else $as_nop
14021 xorg_cv_cc_flag_unused_command_line_argument=no
14022 fi
14023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14024 fi
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14028 CFLAGS="$xorg_testset_save_CFLAGS"
14029 fi
14030
14031 found="no"
14032
14033 if test $found = "no" ; then
14034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14036 fi
14037
14038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14040 fi
14041
14042 CFLAGS="$CFLAGS -Wold-style-definition"
14043
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14045 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14046 cacheid=xorg_cv_cc_flag__Wold_style_definition
14047 if eval test \${$cacheid+y}
14048 then :
14049 printf %s "(cached) " >&6
14050 else $as_nop
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 int i;
14054 int
14055 main (void)
14056 {
14057
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"
14063 then :
14064 eval $cacheid=yes
14065 else $as_nop
14066 eval $cacheid=no
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14069 conftest$ac_exeext conftest.$ac_ext
14070 fi
14071
14072
14073 CFLAGS="$xorg_testset_save_CFLAGS"
14074
14075 eval supported=\$$cacheid
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14077 printf "%s\n" "$supported" >&6; }
14078 if test "$supported" = "yes" ; then
14079 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14080 found="yes"
14081 fi
14082 fi
14083
14084 if test $found = "no" ; then
14085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087 fi
14088
14089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14091 fi
14092
14093 CFLAGS="$CFLAGS -fd"
14094
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14096 printf %s "checking if $CC supports -fd... " >&6; }
14097 cacheid=xorg_cv_cc_flag__fd
14098 if eval test \${$cacheid+y}
14099 then :
14100 printf %s "(cached) " >&6
14101 else $as_nop
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104 int i;
14105 int
14106 main (void)
14107 {
14108
14109 ;
14110 return 0;
14111 }
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"
14114 then :
14115 eval $cacheid=yes
14116 else $as_nop
14117 eval $cacheid=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14120 conftest$ac_exeext conftest.$ac_ext
14121 fi
14122
14123
14124 CFLAGS="$xorg_testset_save_CFLAGS"
14125
14126 eval supported=\$$cacheid
14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14128 printf "%s\n" "$supported" >&6; }
14129 if test "$supported" = "yes" ; then
14130 BASE_CFLAGS="$BASE_CFLAGS -fd"
14131 found="yes"
14132 fi
14133 fi
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149 xorg_testset_save_CFLAGS="$CFLAGS"
14150
14151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14154 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14155 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14156 then :
14157 printf %s "(cached) " >&6
14158 else $as_nop
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 int i;
14162 _ACEOF
14163 if ac_fn_c_try_compile "$LINENO"
14164 then :
14165 xorg_cv_cc_flag_unknown_warning_option=yes
14166 else $as_nop
14167 xorg_cv_cc_flag_unknown_warning_option=no
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14170 fi
14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14172 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14174 CFLAGS="$xorg_testset_save_CFLAGS"
14175 fi
14176
14177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14180 fi
14181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14183 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14184 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14185 then :
14186 printf %s "(cached) " >&6
14187 else $as_nop
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 int i;
14191 _ACEOF
14192 if ac_fn_c_try_compile "$LINENO"
14193 then :
14194 xorg_cv_cc_flag_unused_command_line_argument=yes
14195 else $as_nop
14196 xorg_cv_cc_flag_unused_command_line_argument=no
14197 fi
14198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14199 fi
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14203 CFLAGS="$xorg_testset_save_CFLAGS"
14204 fi
14205
14206 found="no"
14207
14208 if test $found = "no" ; then
14209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14211 fi
14212
14213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14215 fi
14216
14217 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14218
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14220 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14221 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14222 if eval test \${$cacheid+y}
14223 then :
14224 printf %s "(cached) " >&6
14225 else $as_nop
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 int i;
14229 int
14230 main (void)
14231 {
14232
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"
14238 then :
14239 eval $cacheid=yes
14240 else $as_nop
14241 eval $cacheid=no
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14244 conftest$ac_exeext conftest.$ac_ext
14245 fi
14246
14247
14248 CFLAGS="$xorg_testset_save_CFLAGS"
14249
14250 eval supported=\$$cacheid
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14252 printf "%s\n" "$supported" >&6; }
14253 if test "$supported" = "yes" ; then
14254 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14255 found="yes"
14256 fi
14257 fi
14258
14259
14260
14261
14262
14263 # This chunk adds additional warnings that could catch undesired effects.
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277 xorg_testset_save_CFLAGS="$CFLAGS"
14278
14279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14282 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14283 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14284 then :
14285 printf %s "(cached) " >&6
14286 else $as_nop
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 int i;
14290 _ACEOF
14291 if ac_fn_c_try_compile "$LINENO"
14292 then :
14293 xorg_cv_cc_flag_unknown_warning_option=yes
14294 else $as_nop
14295 xorg_cv_cc_flag_unknown_warning_option=no
14296 fi
14297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14298 fi
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14300 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14302 CFLAGS="$xorg_testset_save_CFLAGS"
14303 fi
14304
14305 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14308 fi
14309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14311 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14312 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14313 then :
14314 printf %s "(cached) " >&6
14315 else $as_nop
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 int i;
14319 _ACEOF
14320 if ac_fn_c_try_compile "$LINENO"
14321 then :
14322 xorg_cv_cc_flag_unused_command_line_argument=yes
14323 else $as_nop
14324 xorg_cv_cc_flag_unused_command_line_argument=no
14325 fi
14326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14327 fi
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14329 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14331 CFLAGS="$xorg_testset_save_CFLAGS"
14332 fi
14333
14334 found="no"
14335
14336 if test $found = "no" ; then
14337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14339 fi
14340
14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14343 fi
14344
14345 CFLAGS="$CFLAGS -Wunused"
14346
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14348 printf %s "checking if $CC supports -Wunused... " >&6; }
14349 cacheid=xorg_cv_cc_flag__Wunused
14350 if eval test \${$cacheid+y}
14351 then :
14352 printf %s "(cached) " >&6
14353 else $as_nop
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 int i;
14357 int
14358 main (void)
14359 {
14360
14361 ;
14362 return 0;
14363 }
14364 _ACEOF
14365 if ac_fn_c_try_link "$LINENO"
14366 then :
14367 eval $cacheid=yes
14368 else $as_nop
14369 eval $cacheid=no
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14372 conftest$ac_exeext conftest.$ac_ext
14373 fi
14374
14375
14376 CFLAGS="$xorg_testset_save_CFLAGS"
14377
14378 eval supported=\$$cacheid
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14380 printf "%s\n" "$supported" >&6; }
14381 if test "$supported" = "yes" ; then
14382 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14383 found="yes"
14384 fi
14385 fi
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401 xorg_testset_save_CFLAGS="$CFLAGS"
14402
14403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14406 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14407 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14408 then :
14409 printf %s "(cached) " >&6
14410 else $as_nop
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413 int i;
14414 _ACEOF
14415 if ac_fn_c_try_compile "$LINENO"
14416 then :
14417 xorg_cv_cc_flag_unknown_warning_option=yes
14418 else $as_nop
14419 xorg_cv_cc_flag_unknown_warning_option=no
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14422 fi
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14424 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14426 CFLAGS="$xorg_testset_save_CFLAGS"
14427 fi
14428
14429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14432 fi
14433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14437 then :
14438 printf %s "(cached) " >&6
14439 else $as_nop
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 int i;
14443 _ACEOF
14444 if ac_fn_c_try_compile "$LINENO"
14445 then :
14446 xorg_cv_cc_flag_unused_command_line_argument=yes
14447 else $as_nop
14448 xorg_cv_cc_flag_unused_command_line_argument=no
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14451 fi
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14453 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14455 CFLAGS="$xorg_testset_save_CFLAGS"
14456 fi
14457
14458 found="no"
14459
14460 if test $found = "no" ; then
14461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463 fi
14464
14465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14467 fi
14468
14469 CFLAGS="$CFLAGS -Wuninitialized"
14470
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14472 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14473 cacheid=xorg_cv_cc_flag__Wuninitialized
14474 if eval test \${$cacheid+y}
14475 then :
14476 printf %s "(cached) " >&6
14477 else $as_nop
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 int i;
14481 int
14482 main (void)
14483 {
14484
14485 ;
14486 return 0;
14487 }
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"
14490 then :
14491 eval $cacheid=yes
14492 else $as_nop
14493 eval $cacheid=no
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14496 conftest$ac_exeext conftest.$ac_ext
14497 fi
14498
14499
14500 CFLAGS="$xorg_testset_save_CFLAGS"
14501
14502 eval supported=\$$cacheid
14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14504 printf "%s\n" "$supported" >&6; }
14505 if test "$supported" = "yes" ; then
14506 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14507 found="yes"
14508 fi
14509 fi
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525 xorg_testset_save_CFLAGS="$CFLAGS"
14526
14527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14530 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14531 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14532 then :
14533 printf %s "(cached) " >&6
14534 else $as_nop
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14537 int i;
14538 _ACEOF
14539 if ac_fn_c_try_compile "$LINENO"
14540 then :
14541 xorg_cv_cc_flag_unknown_warning_option=yes
14542 else $as_nop
14543 xorg_cv_cc_flag_unknown_warning_option=no
14544 fi
14545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14546 fi
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14548 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14550 CFLAGS="$xorg_testset_save_CFLAGS"
14551 fi
14552
14553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14556 fi
14557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14559 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14560 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14561 then :
14562 printf %s "(cached) " >&6
14563 else $as_nop
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 int i;
14567 _ACEOF
14568 if ac_fn_c_try_compile "$LINENO"
14569 then :
14570 xorg_cv_cc_flag_unused_command_line_argument=yes
14571 else $as_nop
14572 xorg_cv_cc_flag_unused_command_line_argument=no
14573 fi
14574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14575 fi
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14577 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14579 CFLAGS="$xorg_testset_save_CFLAGS"
14580 fi
14581
14582 found="no"
14583
14584 if test $found = "no" ; then
14585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14587 fi
14588
14589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14591 fi
14592
14593 CFLAGS="$CFLAGS -Wshadow"
14594
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14596 printf %s "checking if $CC supports -Wshadow... " >&6; }
14597 cacheid=xorg_cv_cc_flag__Wshadow
14598 if eval test \${$cacheid+y}
14599 then :
14600 printf %s "(cached) " >&6
14601 else $as_nop
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 int i;
14605 int
14606 main (void)
14607 {
14608
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 if ac_fn_c_try_link "$LINENO"
14614 then :
14615 eval $cacheid=yes
14616 else $as_nop
14617 eval $cacheid=no
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14620 conftest$ac_exeext conftest.$ac_ext
14621 fi
14622
14623
14624 CFLAGS="$xorg_testset_save_CFLAGS"
14625
14626 eval supported=\$$cacheid
14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14628 printf "%s\n" "$supported" >&6; }
14629 if test "$supported" = "yes" ; then
14630 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14631 found="yes"
14632 fi
14633 fi
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649 xorg_testset_save_CFLAGS="$CFLAGS"
14650
14651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14654 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14655 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14656 then :
14657 printf %s "(cached) " >&6
14658 else $as_nop
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14661 int i;
14662 _ACEOF
14663 if ac_fn_c_try_compile "$LINENO"
14664 then :
14665 xorg_cv_cc_flag_unknown_warning_option=yes
14666 else $as_nop
14667 xorg_cv_cc_flag_unknown_warning_option=no
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14670 fi
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14672 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14674 CFLAGS="$xorg_testset_save_CFLAGS"
14675 fi
14676
14677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14680 fi
14681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14683 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14684 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14685 then :
14686 printf %s "(cached) " >&6
14687 else $as_nop
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 int i;
14691 _ACEOF
14692 if ac_fn_c_try_compile "$LINENO"
14693 then :
14694 xorg_cv_cc_flag_unused_command_line_argument=yes
14695 else $as_nop
14696 xorg_cv_cc_flag_unused_command_line_argument=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14699 fi
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14703 CFLAGS="$xorg_testset_save_CFLAGS"
14704 fi
14705
14706 found="no"
14707
14708 if test $found = "no" ; then
14709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14711 fi
14712
14713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14715 fi
14716
14717 CFLAGS="$CFLAGS -Wmissing-noreturn"
14718
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14720 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14721 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14722 if eval test \${$cacheid+y}
14723 then :
14724 printf %s "(cached) " >&6
14725 else $as_nop
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 int i;
14729 int
14730 main (void)
14731 {
14732
14733 ;
14734 return 0;
14735 }
14736 _ACEOF
14737 if ac_fn_c_try_link "$LINENO"
14738 then :
14739 eval $cacheid=yes
14740 else $as_nop
14741 eval $cacheid=no
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14744 conftest$ac_exeext conftest.$ac_ext
14745 fi
14746
14747
14748 CFLAGS="$xorg_testset_save_CFLAGS"
14749
14750 eval supported=\$$cacheid
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14752 printf "%s\n" "$supported" >&6; }
14753 if test "$supported" = "yes" ; then
14754 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14755 found="yes"
14756 fi
14757 fi
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773 xorg_testset_save_CFLAGS="$CFLAGS"
14774
14775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14779 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14780 then :
14781 printf %s "(cached) " >&6
14782 else $as_nop
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 int i;
14786 _ACEOF
14787 if ac_fn_c_try_compile "$LINENO"
14788 then :
14789 xorg_cv_cc_flag_unknown_warning_option=yes
14790 else $as_nop
14791 xorg_cv_cc_flag_unknown_warning_option=no
14792 fi
14793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14794 fi
14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14798 CFLAGS="$xorg_testset_save_CFLAGS"
14799 fi
14800
14801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14804 fi
14805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14809 then :
14810 printf %s "(cached) " >&6
14811 else $as_nop
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814 int i;
14815 _ACEOF
14816 if ac_fn_c_try_compile "$LINENO"
14817 then :
14818 xorg_cv_cc_flag_unused_command_line_argument=yes
14819 else $as_nop
14820 xorg_cv_cc_flag_unused_command_line_argument=no
14821 fi
14822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14823 fi
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14825 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14827 CFLAGS="$xorg_testset_save_CFLAGS"
14828 fi
14829
14830 found="no"
14831
14832 if test $found = "no" ; then
14833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14835 fi
14836
14837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14839 fi
14840
14841 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14842
14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14844 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14845 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14846 if eval test \${$cacheid+y}
14847 then :
14848 printf %s "(cached) " >&6
14849 else $as_nop
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14852 int i;
14853 int
14854 main (void)
14855 {
14856
14857 ;
14858 return 0;
14859 }
14860 _ACEOF
14861 if ac_fn_c_try_link "$LINENO"
14862 then :
14863 eval $cacheid=yes
14864 else $as_nop
14865 eval $cacheid=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14868 conftest$ac_exeext conftest.$ac_ext
14869 fi
14870
14871
14872 CFLAGS="$xorg_testset_save_CFLAGS"
14873
14874 eval supported=\$$cacheid
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14876 printf "%s\n" "$supported" >&6; }
14877 if test "$supported" = "yes" ; then
14878 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14879 found="yes"
14880 fi
14881 fi
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897 xorg_testset_save_CFLAGS="$CFLAGS"
14898
14899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14903 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14904 then :
14905 printf %s "(cached) " >&6
14906 else $as_nop
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14909 int i;
14910 _ACEOF
14911 if ac_fn_c_try_compile "$LINENO"
14912 then :
14913 xorg_cv_cc_flag_unknown_warning_option=yes
14914 else $as_nop
14915 xorg_cv_cc_flag_unknown_warning_option=no
14916 fi
14917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14918 fi
14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14922 CFLAGS="$xorg_testset_save_CFLAGS"
14923 fi
14924
14925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14928 fi
14929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14933 then :
14934 printf %s "(cached) " >&6
14935 else $as_nop
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14938 int i;
14939 _ACEOF
14940 if ac_fn_c_try_compile "$LINENO"
14941 then :
14942 xorg_cv_cc_flag_unused_command_line_argument=yes
14943 else $as_nop
14944 xorg_cv_cc_flag_unused_command_line_argument=no
14945 fi
14946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14947 fi
14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14951 CFLAGS="$xorg_testset_save_CFLAGS"
14952 fi
14953
14954 found="no"
14955
14956 if test $found = "no" ; then
14957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14959 fi
14960
14961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14963 fi
14964
14965 CFLAGS="$CFLAGS -Wredundant-decls"
14966
14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14968 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14969 cacheid=xorg_cv_cc_flag__Wredundant_decls
14970 if eval test \${$cacheid+y}
14971 then :
14972 printf %s "(cached) " >&6
14973 else $as_nop
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14976 int i;
14977 int
14978 main (void)
14979 {
14980
14981 ;
14982 return 0;
14983 }
14984 _ACEOF
14985 if ac_fn_c_try_link "$LINENO"
14986 then :
14987 eval $cacheid=yes
14988 else $as_nop
14989 eval $cacheid=no
14990 fi
14991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14992 conftest$ac_exeext conftest.$ac_ext
14993 fi
14994
14995
14996 CFLAGS="$xorg_testset_save_CFLAGS"
14997
14998 eval supported=\$$cacheid
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15000 printf "%s\n" "$supported" >&6; }
15001 if test "$supported" = "yes" ; then
15002 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15003 found="yes"
15004 fi
15005 fi
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021 xorg_testset_save_CFLAGS="$CFLAGS"
15022
15023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15027 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15028 then :
15029 printf %s "(cached) " >&6
15030 else $as_nop
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033 int i;
15034 _ACEOF
15035 if ac_fn_c_try_compile "$LINENO"
15036 then :
15037 xorg_cv_cc_flag_unknown_warning_option=yes
15038 else $as_nop
15039 xorg_cv_cc_flag_unknown_warning_option=no
15040 fi
15041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15042 fi
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15046 CFLAGS="$xorg_testset_save_CFLAGS"
15047 fi
15048
15049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052 fi
15053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15057 then :
15058 printf %s "(cached) " >&6
15059 else $as_nop
15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15062 int i;
15063 _ACEOF
15064 if ac_fn_c_try_compile "$LINENO"
15065 then :
15066 xorg_cv_cc_flag_unused_command_line_argument=yes
15067 else $as_nop
15068 xorg_cv_cc_flag_unused_command_line_argument=no
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15071 fi
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15075 CFLAGS="$xorg_testset_save_CFLAGS"
15076 fi
15077
15078 found="no"
15079
15080 if test $found = "no" ; then
15081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15083 fi
15084
15085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15087 fi
15088
15089 CFLAGS="$CFLAGS -Wlogical-op"
15090
15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15092 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15093 cacheid=xorg_cv_cc_flag__Wlogical_op
15094 if eval test \${$cacheid+y}
15095 then :
15096 printf %s "(cached) " >&6
15097 else $as_nop
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15100 int i;
15101 int
15102 main (void)
15103 {
15104
15105 ;
15106 return 0;
15107 }
15108 _ACEOF
15109 if ac_fn_c_try_link "$LINENO"
15110 then :
15111 eval $cacheid=yes
15112 else $as_nop
15113 eval $cacheid=no
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15116 conftest$ac_exeext conftest.$ac_ext
15117 fi
15118
15119
15120 CFLAGS="$xorg_testset_save_CFLAGS"
15121
15122 eval supported=\$$cacheid
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15124 printf "%s\n" "$supported" >&6; }
15125 if test "$supported" = "yes" ; then
15126 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15127 found="yes"
15128 fi
15129 fi
15130
15131
15132
15133 # These are currently disabled because they are noisy. They will be enabled
15134 # in the future once the codebase is sufficiently modernized to silence
15135 # them. For now, I don't want them to drown out the other warnings.
15136 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15137 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15138 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15139
15140 # Turn some warnings into errors, so we don't accidently get successful builds
15141 # when there are problems that should be fixed.
15142
15143 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 xorg_testset_save_CFLAGS="$CFLAGS"
15158
15159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15164 then :
15165 printf %s "(cached) " >&6
15166 else $as_nop
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169 int i;
15170 _ACEOF
15171 if ac_fn_c_try_compile "$LINENO"
15172 then :
15173 xorg_cv_cc_flag_unknown_warning_option=yes
15174 else $as_nop
15175 xorg_cv_cc_flag_unknown_warning_option=no
15176 fi
15177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15178 fi
15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15180 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15182 CFLAGS="$xorg_testset_save_CFLAGS"
15183 fi
15184
15185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15188 fi
15189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15191 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15192 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15193 then :
15194 printf %s "(cached) " >&6
15195 else $as_nop
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 int i;
15199 _ACEOF
15200 if ac_fn_c_try_compile "$LINENO"
15201 then :
15202 xorg_cv_cc_flag_unused_command_line_argument=yes
15203 else $as_nop
15204 xorg_cv_cc_flag_unused_command_line_argument=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15207 fi
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15211 CFLAGS="$xorg_testset_save_CFLAGS"
15212 fi
15213
15214 found="no"
15215
15216 if test $found = "no" ; then
15217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15219 fi
15220
15221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15223 fi
15224
15225 CFLAGS="$CFLAGS -Werror=implicit"
15226
15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15228 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15229 cacheid=xorg_cv_cc_flag__Werror_implicit
15230 if eval test \${$cacheid+y}
15231 then :
15232 printf %s "(cached) " >&6
15233 else $as_nop
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15236 int i;
15237 int
15238 main (void)
15239 {
15240
15241 ;
15242 return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_link "$LINENO"
15246 then :
15247 eval $cacheid=yes
15248 else $as_nop
15249 eval $cacheid=no
15250 fi
15251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15252 conftest$ac_exeext conftest.$ac_ext
15253 fi
15254
15255
15256 CFLAGS="$xorg_testset_save_CFLAGS"
15257
15258 eval supported=\$$cacheid
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15260 printf "%s\n" "$supported" >&6; }
15261 if test "$supported" = "yes" ; then
15262 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15263 found="yes"
15264 fi
15265 fi
15266
15267 if test $found = "no" ; then
15268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15270 fi
15271
15272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15274 fi
15275
15276 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15277
15278 { 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
15279 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15280 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15281 if eval test \${$cacheid+y}
15282 then :
15283 printf %s "(cached) " >&6
15284 else $as_nop
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287 int i;
15288 int
15289 main (void)
15290 {
15291
15292 ;
15293 return 0;
15294 }
15295 _ACEOF
15296 if ac_fn_c_try_link "$LINENO"
15297 then :
15298 eval $cacheid=yes
15299 else $as_nop
15300 eval $cacheid=no
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15303 conftest$ac_exeext conftest.$ac_ext
15304 fi
15305
15306
15307 CFLAGS="$xorg_testset_save_CFLAGS"
15308
15309 eval supported=\$$cacheid
15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15311 printf "%s\n" "$supported" >&6; }
15312 if test "$supported" = "yes" ; then
15313 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15314 found="yes"
15315 fi
15316 fi
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332 xorg_testset_save_CFLAGS="$CFLAGS"
15333
15334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15338 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15339 then :
15340 printf %s "(cached) " >&6
15341 else $as_nop
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 int i;
15345 _ACEOF
15346 if ac_fn_c_try_compile "$LINENO"
15347 then :
15348 xorg_cv_cc_flag_unknown_warning_option=yes
15349 else $as_nop
15350 xorg_cv_cc_flag_unknown_warning_option=no
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15353 fi
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15357 CFLAGS="$xorg_testset_save_CFLAGS"
15358 fi
15359
15360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15363 fi
15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15368 then :
15369 printf %s "(cached) " >&6
15370 else $as_nop
15371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15373 int i;
15374 _ACEOF
15375 if ac_fn_c_try_compile "$LINENO"
15376 then :
15377 xorg_cv_cc_flag_unused_command_line_argument=yes
15378 else $as_nop
15379 xorg_cv_cc_flag_unused_command_line_argument=no
15380 fi
15381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15382 fi
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15386 CFLAGS="$xorg_testset_save_CFLAGS"
15387 fi
15388
15389 found="no"
15390
15391 if test $found = "no" ; then
15392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15394 fi
15395
15396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15398 fi
15399
15400 CFLAGS="$CFLAGS -Werror=nonnull"
15401
15402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15403 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15404 cacheid=xorg_cv_cc_flag__Werror_nonnull
15405 if eval test \${$cacheid+y}
15406 then :
15407 printf %s "(cached) " >&6
15408 else $as_nop
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 int i;
15412 int
15413 main (void)
15414 {
15415
15416 ;
15417 return 0;
15418 }
15419 _ACEOF
15420 if ac_fn_c_try_link "$LINENO"
15421 then :
15422 eval $cacheid=yes
15423 else $as_nop
15424 eval $cacheid=no
15425 fi
15426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15427 conftest$ac_exeext conftest.$ac_ext
15428 fi
15429
15430
15431 CFLAGS="$xorg_testset_save_CFLAGS"
15432
15433 eval supported=\$$cacheid
15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15435 printf "%s\n" "$supported" >&6; }
15436 if test "$supported" = "yes" ; then
15437 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15438 found="yes"
15439 fi
15440 fi
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456 xorg_testset_save_CFLAGS="$CFLAGS"
15457
15458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15462 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15463 then :
15464 printf %s "(cached) " >&6
15465 else $as_nop
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 int i;
15469 _ACEOF
15470 if ac_fn_c_try_compile "$LINENO"
15471 then :
15472 xorg_cv_cc_flag_unknown_warning_option=yes
15473 else $as_nop
15474 xorg_cv_cc_flag_unknown_warning_option=no
15475 fi
15476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15477 fi
15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15481 CFLAGS="$xorg_testset_save_CFLAGS"
15482 fi
15483
15484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15487 fi
15488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15492 then :
15493 printf %s "(cached) " >&6
15494 else $as_nop
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15497 int i;
15498 _ACEOF
15499 if ac_fn_c_try_compile "$LINENO"
15500 then :
15501 xorg_cv_cc_flag_unused_command_line_argument=yes
15502 else $as_nop
15503 xorg_cv_cc_flag_unused_command_line_argument=no
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15506 fi
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15508 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15510 CFLAGS="$xorg_testset_save_CFLAGS"
15511 fi
15512
15513 found="no"
15514
15515 if test $found = "no" ; then
15516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15518 fi
15519
15520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15522 fi
15523
15524 CFLAGS="$CFLAGS -Werror=init-self"
15525
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15527 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15528 cacheid=xorg_cv_cc_flag__Werror_init_self
15529 if eval test \${$cacheid+y}
15530 then :
15531 printf %s "(cached) " >&6
15532 else $as_nop
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535 int i;
15536 int
15537 main (void)
15538 {
15539
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_link "$LINENO"
15545 then :
15546 eval $cacheid=yes
15547 else $as_nop
15548 eval $cacheid=no
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15551 conftest$ac_exeext conftest.$ac_ext
15552 fi
15553
15554
15555 CFLAGS="$xorg_testset_save_CFLAGS"
15556
15557 eval supported=\$$cacheid
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15559 printf "%s\n" "$supported" >&6; }
15560 if test "$supported" = "yes" ; then
15561 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15562 found="yes"
15563 fi
15564 fi
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580 xorg_testset_save_CFLAGS="$CFLAGS"
15581
15582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15585 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15586 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15587 then :
15588 printf %s "(cached) " >&6
15589 else $as_nop
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 int i;
15593 _ACEOF
15594 if ac_fn_c_try_compile "$LINENO"
15595 then :
15596 xorg_cv_cc_flag_unknown_warning_option=yes
15597 else $as_nop
15598 xorg_cv_cc_flag_unknown_warning_option=no
15599 fi
15600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15601 fi
15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15603 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15605 CFLAGS="$xorg_testset_save_CFLAGS"
15606 fi
15607
15608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15611 fi
15612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15615 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15616 then :
15617 printf %s "(cached) " >&6
15618 else $as_nop
15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620 /* end confdefs.h. */
15621 int i;
15622 _ACEOF
15623 if ac_fn_c_try_compile "$LINENO"
15624 then :
15625 xorg_cv_cc_flag_unused_command_line_argument=yes
15626 else $as_nop
15627 xorg_cv_cc_flag_unused_command_line_argument=no
15628 fi
15629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15630 fi
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15632 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15634 CFLAGS="$xorg_testset_save_CFLAGS"
15635 fi
15636
15637 found="no"
15638
15639 if test $found = "no" ; then
15640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642 fi
15643
15644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15646 fi
15647
15648 CFLAGS="$CFLAGS -Werror=main"
15649
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15651 printf %s "checking if $CC supports -Werror=main... " >&6; }
15652 cacheid=xorg_cv_cc_flag__Werror_main
15653 if eval test \${$cacheid+y}
15654 then :
15655 printf %s "(cached) " >&6
15656 else $as_nop
15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15659 int i;
15660 int
15661 main (void)
15662 {
15663
15664 ;
15665 return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_c_try_link "$LINENO"
15669 then :
15670 eval $cacheid=yes
15671 else $as_nop
15672 eval $cacheid=no
15673 fi
15674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15675 conftest$ac_exeext conftest.$ac_ext
15676 fi
15677
15678
15679 CFLAGS="$xorg_testset_save_CFLAGS"
15680
15681 eval supported=\$$cacheid
15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15683 printf "%s\n" "$supported" >&6; }
15684 if test "$supported" = "yes" ; then
15685 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15686 found="yes"
15687 fi
15688 fi
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704 xorg_testset_save_CFLAGS="$CFLAGS"
15705
15706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15711 then :
15712 printf %s "(cached) " >&6
15713 else $as_nop
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 int i;
15717 _ACEOF
15718 if ac_fn_c_try_compile "$LINENO"
15719 then :
15720 xorg_cv_cc_flag_unknown_warning_option=yes
15721 else $as_nop
15722 xorg_cv_cc_flag_unknown_warning_option=no
15723 fi
15724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15725 fi
15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15727 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15729 CFLAGS="$xorg_testset_save_CFLAGS"
15730 fi
15731
15732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15735 fi
15736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15738 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15739 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15740 then :
15741 printf %s "(cached) " >&6
15742 else $as_nop
15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15745 int i;
15746 _ACEOF
15747 if ac_fn_c_try_compile "$LINENO"
15748 then :
15749 xorg_cv_cc_flag_unused_command_line_argument=yes
15750 else $as_nop
15751 xorg_cv_cc_flag_unused_command_line_argument=no
15752 fi
15753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15754 fi
15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15758 CFLAGS="$xorg_testset_save_CFLAGS"
15759 fi
15760
15761 found="no"
15762
15763 if test $found = "no" ; then
15764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15766 fi
15767
15768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15770 fi
15771
15772 CFLAGS="$CFLAGS -Werror=missing-braces"
15773
15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15775 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15776 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15777 if eval test \${$cacheid+y}
15778 then :
15779 printf %s "(cached) " >&6
15780 else $as_nop
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15783 int i;
15784 int
15785 main (void)
15786 {
15787
15788 ;
15789 return 0;
15790 }
15791 _ACEOF
15792 if ac_fn_c_try_link "$LINENO"
15793 then :
15794 eval $cacheid=yes
15795 else $as_nop
15796 eval $cacheid=no
15797 fi
15798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15799 conftest$ac_exeext conftest.$ac_ext
15800 fi
15801
15802
15803 CFLAGS="$xorg_testset_save_CFLAGS"
15804
15805 eval supported=\$$cacheid
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15807 printf "%s\n" "$supported" >&6; }
15808 if test "$supported" = "yes" ; then
15809 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15810 found="yes"
15811 fi
15812 fi
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828 xorg_testset_save_CFLAGS="$CFLAGS"
15829
15830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15834 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15835 then :
15836 printf %s "(cached) " >&6
15837 else $as_nop
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15840 int i;
15841 _ACEOF
15842 if ac_fn_c_try_compile "$LINENO"
15843 then :
15844 xorg_cv_cc_flag_unknown_warning_option=yes
15845 else $as_nop
15846 xorg_cv_cc_flag_unknown_warning_option=no
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15849 fi
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15853 CFLAGS="$xorg_testset_save_CFLAGS"
15854 fi
15855
15856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15859 fi
15860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15864 then :
15865 printf %s "(cached) " >&6
15866 else $as_nop
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15869 int i;
15870 _ACEOF
15871 if ac_fn_c_try_compile "$LINENO"
15872 then :
15873 xorg_cv_cc_flag_unused_command_line_argument=yes
15874 else $as_nop
15875 xorg_cv_cc_flag_unused_command_line_argument=no
15876 fi
15877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15878 fi
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15882 CFLAGS="$xorg_testset_save_CFLAGS"
15883 fi
15884
15885 found="no"
15886
15887 if test $found = "no" ; then
15888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15890 fi
15891
15892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15894 fi
15895
15896 CFLAGS="$CFLAGS -Werror=sequence-point"
15897
15898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15899 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15900 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15901 if eval test \${$cacheid+y}
15902 then :
15903 printf %s "(cached) " >&6
15904 else $as_nop
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907 int i;
15908 int
15909 main (void)
15910 {
15911
15912 ;
15913 return 0;
15914 }
15915 _ACEOF
15916 if ac_fn_c_try_link "$LINENO"
15917 then :
15918 eval $cacheid=yes
15919 else $as_nop
15920 eval $cacheid=no
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15923 conftest$ac_exeext conftest.$ac_ext
15924 fi
15925
15926
15927 CFLAGS="$xorg_testset_save_CFLAGS"
15928
15929 eval supported=\$$cacheid
15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15931 printf "%s\n" "$supported" >&6; }
15932 if test "$supported" = "yes" ; then
15933 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15934 found="yes"
15935 fi
15936 fi
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952 xorg_testset_save_CFLAGS="$CFLAGS"
15953
15954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15959 then :
15960 printf %s "(cached) " >&6
15961 else $as_nop
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15964 int i;
15965 _ACEOF
15966 if ac_fn_c_try_compile "$LINENO"
15967 then :
15968 xorg_cv_cc_flag_unknown_warning_option=yes
15969 else $as_nop
15970 xorg_cv_cc_flag_unknown_warning_option=no
15971 fi
15972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15973 fi
15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15977 CFLAGS="$xorg_testset_save_CFLAGS"
15978 fi
15979
15980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15983 fi
15984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15988 then :
15989 printf %s "(cached) " >&6
15990 else $as_nop
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993 int i;
15994 _ACEOF
15995 if ac_fn_c_try_compile "$LINENO"
15996 then :
15997 xorg_cv_cc_flag_unused_command_line_argument=yes
15998 else $as_nop
15999 xorg_cv_cc_flag_unused_command_line_argument=no
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16002 fi
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16004 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16006 CFLAGS="$xorg_testset_save_CFLAGS"
16007 fi
16008
16009 found="no"
16010
16011 if test $found = "no" ; then
16012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16014 fi
16015
16016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16018 fi
16019
16020 CFLAGS="$CFLAGS -Werror=return-type"
16021
16022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16023 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16024 cacheid=xorg_cv_cc_flag__Werror_return_type
16025 if eval test \${$cacheid+y}
16026 then :
16027 printf %s "(cached) " >&6
16028 else $as_nop
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16031 int i;
16032 int
16033 main (void)
16034 {
16035
16036 ;
16037 return 0;
16038 }
16039 _ACEOF
16040 if ac_fn_c_try_link "$LINENO"
16041 then :
16042 eval $cacheid=yes
16043 else $as_nop
16044 eval $cacheid=no
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16047 conftest$ac_exeext conftest.$ac_ext
16048 fi
16049
16050
16051 CFLAGS="$xorg_testset_save_CFLAGS"
16052
16053 eval supported=\$$cacheid
16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16055 printf "%s\n" "$supported" >&6; }
16056 if test "$supported" = "yes" ; then
16057 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16058 found="yes"
16059 fi
16060 fi
16061
16062 if test $found = "no" ; then
16063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16065 fi
16066
16067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16069 fi
16070
16071 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16072
16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16074 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16075 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16076 if eval test \${$cacheid+y}
16077 then :
16078 printf %s "(cached) " >&6
16079 else $as_nop
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 int i;
16083 int
16084 main (void)
16085 {
16086
16087 ;
16088 return 0;
16089 }
16090 _ACEOF
16091 if ac_fn_c_try_link "$LINENO"
16092 then :
16093 eval $cacheid=yes
16094 else $as_nop
16095 eval $cacheid=no
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16098 conftest$ac_exeext conftest.$ac_ext
16099 fi
16100
16101
16102 CFLAGS="$xorg_testset_save_CFLAGS"
16103
16104 eval supported=\$$cacheid
16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16106 printf "%s\n" "$supported" >&6; }
16107 if test "$supported" = "yes" ; then
16108 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16109 found="yes"
16110 fi
16111 fi
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127 xorg_testset_save_CFLAGS="$CFLAGS"
16128
16129 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16132 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16133 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16134 then :
16135 printf %s "(cached) " >&6
16136 else $as_nop
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16139 int i;
16140 _ACEOF
16141 if ac_fn_c_try_compile "$LINENO"
16142 then :
16143 xorg_cv_cc_flag_unknown_warning_option=yes
16144 else $as_nop
16145 xorg_cv_cc_flag_unknown_warning_option=no
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16148 fi
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16150 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16152 CFLAGS="$xorg_testset_save_CFLAGS"
16153 fi
16154
16155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16158 fi
16159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16161 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16162 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16163 then :
16164 printf %s "(cached) " >&6
16165 else $as_nop
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16168 int i;
16169 _ACEOF
16170 if ac_fn_c_try_compile "$LINENO"
16171 then :
16172 xorg_cv_cc_flag_unused_command_line_argument=yes
16173 else $as_nop
16174 xorg_cv_cc_flag_unused_command_line_argument=no
16175 fi
16176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16177 fi
16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16179 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16181 CFLAGS="$xorg_testset_save_CFLAGS"
16182 fi
16183
16184 found="no"
16185
16186 if test $found = "no" ; then
16187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16189 fi
16190
16191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16193 fi
16194
16195 CFLAGS="$CFLAGS -Werror=trigraphs"
16196
16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16198 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16199 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16200 if eval test \${$cacheid+y}
16201 then :
16202 printf %s "(cached) " >&6
16203 else $as_nop
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16206 int i;
16207 int
16208 main (void)
16209 {
16210
16211 ;
16212 return 0;
16213 }
16214 _ACEOF
16215 if ac_fn_c_try_link "$LINENO"
16216 then :
16217 eval $cacheid=yes
16218 else $as_nop
16219 eval $cacheid=no
16220 fi
16221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16222 conftest$ac_exeext conftest.$ac_ext
16223 fi
16224
16225
16226 CFLAGS="$xorg_testset_save_CFLAGS"
16227
16228 eval supported=\$$cacheid
16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16230 printf "%s\n" "$supported" >&6; }
16231 if test "$supported" = "yes" ; then
16232 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16233 found="yes"
16234 fi
16235 fi
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251 xorg_testset_save_CFLAGS="$CFLAGS"
16252
16253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16258 then :
16259 printf %s "(cached) " >&6
16260 else $as_nop
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 int i;
16264 _ACEOF
16265 if ac_fn_c_try_compile "$LINENO"
16266 then :
16267 xorg_cv_cc_flag_unknown_warning_option=yes
16268 else $as_nop
16269 xorg_cv_cc_flag_unknown_warning_option=no
16270 fi
16271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16272 fi
16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16276 CFLAGS="$xorg_testset_save_CFLAGS"
16277 fi
16278
16279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16282 fi
16283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16287 then :
16288 printf %s "(cached) " >&6
16289 else $as_nop
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 int i;
16293 _ACEOF
16294 if ac_fn_c_try_compile "$LINENO"
16295 then :
16296 xorg_cv_cc_flag_unused_command_line_argument=yes
16297 else $as_nop
16298 xorg_cv_cc_flag_unused_command_line_argument=no
16299 fi
16300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16301 fi
16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16303 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16305 CFLAGS="$xorg_testset_save_CFLAGS"
16306 fi
16307
16308 found="no"
16309
16310 if test $found = "no" ; then
16311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16313 fi
16314
16315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16317 fi
16318
16319 CFLAGS="$CFLAGS -Werror=array-bounds"
16320
16321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16322 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16323 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16324 if eval test \${$cacheid+y}
16325 then :
16326 printf %s "(cached) " >&6
16327 else $as_nop
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 int i;
16331 int
16332 main (void)
16333 {
16334
16335 ;
16336 return 0;
16337 }
16338 _ACEOF
16339 if ac_fn_c_try_link "$LINENO"
16340 then :
16341 eval $cacheid=yes
16342 else $as_nop
16343 eval $cacheid=no
16344 fi
16345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16346 conftest$ac_exeext conftest.$ac_ext
16347 fi
16348
16349
16350 CFLAGS="$xorg_testset_save_CFLAGS"
16351
16352 eval supported=\$$cacheid
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16354 printf "%s\n" "$supported" >&6; }
16355 if test "$supported" = "yes" ; then
16356 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16357 found="yes"
16358 fi
16359 fi
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375 xorg_testset_save_CFLAGS="$CFLAGS"
16376
16377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16381 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16382 then :
16383 printf %s "(cached) " >&6
16384 else $as_nop
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 int i;
16388 _ACEOF
16389 if ac_fn_c_try_compile "$LINENO"
16390 then :
16391 xorg_cv_cc_flag_unknown_warning_option=yes
16392 else $as_nop
16393 xorg_cv_cc_flag_unknown_warning_option=no
16394 fi
16395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16396 fi
16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16398 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16400 CFLAGS="$xorg_testset_save_CFLAGS"
16401 fi
16402
16403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16406 fi
16407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16411 then :
16412 printf %s "(cached) " >&6
16413 else $as_nop
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 int i;
16417 _ACEOF
16418 if ac_fn_c_try_compile "$LINENO"
16419 then :
16420 xorg_cv_cc_flag_unused_command_line_argument=yes
16421 else $as_nop
16422 xorg_cv_cc_flag_unused_command_line_argument=no
16423 fi
16424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16425 fi
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16427 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16429 CFLAGS="$xorg_testset_save_CFLAGS"
16430 fi
16431
16432 found="no"
16433
16434 if test $found = "no" ; then
16435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437 fi
16438
16439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16441 fi
16442
16443 CFLAGS="$CFLAGS -Werror=write-strings"
16444
16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16446 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16447 cacheid=xorg_cv_cc_flag__Werror_write_strings
16448 if eval test \${$cacheid+y}
16449 then :
16450 printf %s "(cached) " >&6
16451 else $as_nop
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16454 int i;
16455 int
16456 main (void)
16457 {
16458
16459 ;
16460 return 0;
16461 }
16462 _ACEOF
16463 if ac_fn_c_try_link "$LINENO"
16464 then :
16465 eval $cacheid=yes
16466 else $as_nop
16467 eval $cacheid=no
16468 fi
16469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16470 conftest$ac_exeext conftest.$ac_ext
16471 fi
16472
16473
16474 CFLAGS="$xorg_testset_save_CFLAGS"
16475
16476 eval supported=\$$cacheid
16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16478 printf "%s\n" "$supported" >&6; }
16479 if test "$supported" = "yes" ; then
16480 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16481 found="yes"
16482 fi
16483 fi
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499 xorg_testset_save_CFLAGS="$CFLAGS"
16500
16501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16506 then :
16507 printf %s "(cached) " >&6
16508 else $as_nop
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 int i;
16512 _ACEOF
16513 if ac_fn_c_try_compile "$LINENO"
16514 then :
16515 xorg_cv_cc_flag_unknown_warning_option=yes
16516 else $as_nop
16517 xorg_cv_cc_flag_unknown_warning_option=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16520 fi
16521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16524 CFLAGS="$xorg_testset_save_CFLAGS"
16525 fi
16526
16527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16530 fi
16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16535 then :
16536 printf %s "(cached) " >&6
16537 else $as_nop
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540 int i;
16541 _ACEOF
16542 if ac_fn_c_try_compile "$LINENO"
16543 then :
16544 xorg_cv_cc_flag_unused_command_line_argument=yes
16545 else $as_nop
16546 xorg_cv_cc_flag_unused_command_line_argument=no
16547 fi
16548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16549 fi
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16553 CFLAGS="$xorg_testset_save_CFLAGS"
16554 fi
16555
16556 found="no"
16557
16558 if test $found = "no" ; then
16559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16561 fi
16562
16563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16565 fi
16566
16567 CFLAGS="$CFLAGS -Werror=address"
16568
16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16570 printf %s "checking if $CC supports -Werror=address... " >&6; }
16571 cacheid=xorg_cv_cc_flag__Werror_address
16572 if eval test \${$cacheid+y}
16573 then :
16574 printf %s "(cached) " >&6
16575 else $as_nop
16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577 /* end confdefs.h. */
16578 int i;
16579 int
16580 main (void)
16581 {
16582
16583 ;
16584 return 0;
16585 }
16586 _ACEOF
16587 if ac_fn_c_try_link "$LINENO"
16588 then :
16589 eval $cacheid=yes
16590 else $as_nop
16591 eval $cacheid=no
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16594 conftest$ac_exeext conftest.$ac_ext
16595 fi
16596
16597
16598 CFLAGS="$xorg_testset_save_CFLAGS"
16599
16600 eval supported=\$$cacheid
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16602 printf "%s\n" "$supported" >&6; }
16603 if test "$supported" = "yes" ; then
16604 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16605 found="yes"
16606 fi
16607 fi
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623 xorg_testset_save_CFLAGS="$CFLAGS"
16624
16625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16630 then :
16631 printf %s "(cached) " >&6
16632 else $as_nop
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16635 int i;
16636 _ACEOF
16637 if ac_fn_c_try_compile "$LINENO"
16638 then :
16639 xorg_cv_cc_flag_unknown_warning_option=yes
16640 else $as_nop
16641 xorg_cv_cc_flag_unknown_warning_option=no
16642 fi
16643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16644 fi
16645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16648 CFLAGS="$xorg_testset_save_CFLAGS"
16649 fi
16650
16651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16654 fi
16655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16659 then :
16660 printf %s "(cached) " >&6
16661 else $as_nop
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 int i;
16665 _ACEOF
16666 if ac_fn_c_try_compile "$LINENO"
16667 then :
16668 xorg_cv_cc_flag_unused_command_line_argument=yes
16669 else $as_nop
16670 xorg_cv_cc_flag_unused_command_line_argument=no
16671 fi
16672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16673 fi
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16677 CFLAGS="$xorg_testset_save_CFLAGS"
16678 fi
16679
16680 found="no"
16681
16682 if test $found = "no" ; then
16683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16685 fi
16686
16687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16689 fi
16690
16691 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16692
16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16694 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16695 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16696 if eval test \${$cacheid+y}
16697 then :
16698 printf %s "(cached) " >&6
16699 else $as_nop
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702 int i;
16703 int
16704 main (void)
16705 {
16706
16707 ;
16708 return 0;
16709 }
16710 _ACEOF
16711 if ac_fn_c_try_link "$LINENO"
16712 then :
16713 eval $cacheid=yes
16714 else $as_nop
16715 eval $cacheid=no
16716 fi
16717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16718 conftest$ac_exeext conftest.$ac_ext
16719 fi
16720
16721
16722 CFLAGS="$xorg_testset_save_CFLAGS"
16723
16724 eval supported=\$$cacheid
16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16726 printf "%s\n" "$supported" >&6; }
16727 if test "$supported" = "yes" ; then
16728 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16729 found="yes"
16730 fi
16731 fi
16732
16733 if test $found = "no" ; then
16734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16736 fi
16737
16738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16740 fi
16741
16742 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16743
16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16745 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16746 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16747 if eval test \${$cacheid+y}
16748 then :
16749 printf %s "(cached) " >&6
16750 else $as_nop
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 int i;
16754 int
16755 main (void)
16756 {
16757
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 if ac_fn_c_try_link "$LINENO"
16763 then :
16764 eval $cacheid=yes
16765 else $as_nop
16766 eval $cacheid=no
16767 fi
16768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16769 conftest$ac_exeext conftest.$ac_ext
16770 fi
16771
16772
16773 CFLAGS="$xorg_testset_save_CFLAGS"
16774
16775 eval supported=\$$cacheid
16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16777 printf "%s\n" "$supported" >&6; }
16778 if test "$supported" = "yes" ; then
16779 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16780 found="yes"
16781 fi
16782 fi
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798 xorg_testset_save_CFLAGS="$CFLAGS"
16799
16800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16803 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16804 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16805 then :
16806 printf %s "(cached) " >&6
16807 else $as_nop
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810 int i;
16811 _ACEOF
16812 if ac_fn_c_try_compile "$LINENO"
16813 then :
16814 xorg_cv_cc_flag_unknown_warning_option=yes
16815 else $as_nop
16816 xorg_cv_cc_flag_unknown_warning_option=no
16817 fi
16818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16819 fi
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16821 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16823 CFLAGS="$xorg_testset_save_CFLAGS"
16824 fi
16825
16826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16829 fi
16830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16832 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16833 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16834 then :
16835 printf %s "(cached) " >&6
16836 else $as_nop
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16839 int i;
16840 _ACEOF
16841 if ac_fn_c_try_compile "$LINENO"
16842 then :
16843 xorg_cv_cc_flag_unused_command_line_argument=yes
16844 else $as_nop
16845 xorg_cv_cc_flag_unused_command_line_argument=no
16846 fi
16847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16848 fi
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16850 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16852 CFLAGS="$xorg_testset_save_CFLAGS"
16853 fi
16854
16855 found="no"
16856
16857 if test $found = "no" ; then
16858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16860 fi
16861
16862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16864 fi
16865
16866 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16867
16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16869 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16870 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16871 if eval test \${$cacheid+y}
16872 then :
16873 printf %s "(cached) " >&6
16874 else $as_nop
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 int i;
16878 int
16879 main (void)
16880 {
16881
16882 ;
16883 return 0;
16884 }
16885 _ACEOF
16886 if ac_fn_c_try_link "$LINENO"
16887 then :
16888 eval $cacheid=yes
16889 else $as_nop
16890 eval $cacheid=no
16891 fi
16892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16893 conftest$ac_exeext conftest.$ac_ext
16894 fi
16895
16896
16897 CFLAGS="$xorg_testset_save_CFLAGS"
16898
16899 eval supported=\$$cacheid
16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16901 printf "%s\n" "$supported" >&6; }
16902 if test "$supported" = "yes" ; then
16903 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16904 found="yes"
16905 fi
16906 fi
16907
16908 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16909 else
16910 { 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
16911 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;}
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925 xorg_testset_save_CFLAGS="$CFLAGS"
16926
16927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16930 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16931 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16932 then :
16933 printf %s "(cached) " >&6
16934 else $as_nop
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16937 int i;
16938 _ACEOF
16939 if ac_fn_c_try_compile "$LINENO"
16940 then :
16941 xorg_cv_cc_flag_unknown_warning_option=yes
16942 else $as_nop
16943 xorg_cv_cc_flag_unknown_warning_option=no
16944 fi
16945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16946 fi
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16948 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16950 CFLAGS="$xorg_testset_save_CFLAGS"
16951 fi
16952
16953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16956 fi
16957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16959 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16960 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16961 then :
16962 printf %s "(cached) " >&6
16963 else $as_nop
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 int i;
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"
16969 then :
16970 xorg_cv_cc_flag_unused_command_line_argument=yes
16971 else $as_nop
16972 xorg_cv_cc_flag_unused_command_line_argument=no
16973 fi
16974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16975 fi
16976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16979 CFLAGS="$xorg_testset_save_CFLAGS"
16980 fi
16981
16982 found="no"
16983
16984 if test $found = "no" ; then
16985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16987 fi
16988
16989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16991 fi
16992
16993 CFLAGS="$CFLAGS -Wimplicit"
16994
16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16996 printf %s "checking if $CC supports -Wimplicit... " >&6; }
16997 cacheid=xorg_cv_cc_flag__Wimplicit
16998 if eval test \${$cacheid+y}
16999 then :
17000 printf %s "(cached) " >&6
17001 else $as_nop
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 int i;
17005 int
17006 main (void)
17007 {
17008
17009 ;
17010 return 0;
17011 }
17012 _ACEOF
17013 if ac_fn_c_try_link "$LINENO"
17014 then :
17015 eval $cacheid=yes
17016 else $as_nop
17017 eval $cacheid=no
17018 fi
17019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17020 conftest$ac_exeext conftest.$ac_ext
17021 fi
17022
17023
17024 CFLAGS="$xorg_testset_save_CFLAGS"
17025
17026 eval supported=\$$cacheid
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17028 printf "%s\n" "$supported" >&6; }
17029 if test "$supported" = "yes" ; then
17030 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17031 found="yes"
17032 fi
17033 fi
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049 xorg_testset_save_CFLAGS="$CFLAGS"
17050
17051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17056 then :
17057 printf %s "(cached) " >&6
17058 else $as_nop
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 int i;
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"
17064 then :
17065 xorg_cv_cc_flag_unknown_warning_option=yes
17066 else $as_nop
17067 xorg_cv_cc_flag_unknown_warning_option=no
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17070 fi
17071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074 CFLAGS="$xorg_testset_save_CFLAGS"
17075 fi
17076
17077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080 fi
17081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17085 then :
17086 printf %s "(cached) " >&6
17087 else $as_nop
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 int i;
17091 _ACEOF
17092 if ac_fn_c_try_compile "$LINENO"
17093 then :
17094 xorg_cv_cc_flag_unused_command_line_argument=yes
17095 else $as_nop
17096 xorg_cv_cc_flag_unused_command_line_argument=no
17097 fi
17098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17099 fi
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17101 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17103 CFLAGS="$xorg_testset_save_CFLAGS"
17104 fi
17105
17106 found="no"
17107
17108 if test $found = "no" ; then
17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111 fi
17112
17113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17115 fi
17116
17117 CFLAGS="$CFLAGS -Wnonnull"
17118
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17120 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17121 cacheid=xorg_cv_cc_flag__Wnonnull
17122 if eval test \${$cacheid+y}
17123 then :
17124 printf %s "(cached) " >&6
17125 else $as_nop
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17128 int i;
17129 int
17130 main (void)
17131 {
17132
17133 ;
17134 return 0;
17135 }
17136 _ACEOF
17137 if ac_fn_c_try_link "$LINENO"
17138 then :
17139 eval $cacheid=yes
17140 else $as_nop
17141 eval $cacheid=no
17142 fi
17143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17144 conftest$ac_exeext conftest.$ac_ext
17145 fi
17146
17147
17148 CFLAGS="$xorg_testset_save_CFLAGS"
17149
17150 eval supported=\$$cacheid
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17152 printf "%s\n" "$supported" >&6; }
17153 if test "$supported" = "yes" ; then
17154 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17155 found="yes"
17156 fi
17157 fi
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173 xorg_testset_save_CFLAGS="$CFLAGS"
17174
17175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17178 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17179 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17180 then :
17181 printf %s "(cached) " >&6
17182 else $as_nop
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17185 int i;
17186 _ACEOF
17187 if ac_fn_c_try_compile "$LINENO"
17188 then :
17189 xorg_cv_cc_flag_unknown_warning_option=yes
17190 else $as_nop
17191 xorg_cv_cc_flag_unknown_warning_option=no
17192 fi
17193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17194 fi
17195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17196 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17198 CFLAGS="$xorg_testset_save_CFLAGS"
17199 fi
17200
17201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204 fi
17205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17207 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17208 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17209 then :
17210 printf %s "(cached) " >&6
17211 else $as_nop
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 int i;
17215 _ACEOF
17216 if ac_fn_c_try_compile "$LINENO"
17217 then :
17218 xorg_cv_cc_flag_unused_command_line_argument=yes
17219 else $as_nop
17220 xorg_cv_cc_flag_unused_command_line_argument=no
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17223 fi
17224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17225 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17227 CFLAGS="$xorg_testset_save_CFLAGS"
17228 fi
17229
17230 found="no"
17231
17232 if test $found = "no" ; then
17233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17235 fi
17236
17237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17239 fi
17240
17241 CFLAGS="$CFLAGS -Winit-self"
17242
17243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17244 printf %s "checking if $CC supports -Winit-self... " >&6; }
17245 cacheid=xorg_cv_cc_flag__Winit_self
17246 if eval test \${$cacheid+y}
17247 then :
17248 printf %s "(cached) " >&6
17249 else $as_nop
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17252 int i;
17253 int
17254 main (void)
17255 {
17256
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"
17262 then :
17263 eval $cacheid=yes
17264 else $as_nop
17265 eval $cacheid=no
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17268 conftest$ac_exeext conftest.$ac_ext
17269 fi
17270
17271
17272 CFLAGS="$xorg_testset_save_CFLAGS"
17273
17274 eval supported=\$$cacheid
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17276 printf "%s\n" "$supported" >&6; }
17277 if test "$supported" = "yes" ; then
17278 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17279 found="yes"
17280 fi
17281 fi
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297 xorg_testset_save_CFLAGS="$CFLAGS"
17298
17299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17302 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17303 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17304 then :
17305 printf %s "(cached) " >&6
17306 else $as_nop
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309 int i;
17310 _ACEOF
17311 if ac_fn_c_try_compile "$LINENO"
17312 then :
17313 xorg_cv_cc_flag_unknown_warning_option=yes
17314 else $as_nop
17315 xorg_cv_cc_flag_unknown_warning_option=no
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17318 fi
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17322 CFLAGS="$xorg_testset_save_CFLAGS"
17323 fi
17324
17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17328 fi
17329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17333 then :
17334 printf %s "(cached) " >&6
17335 else $as_nop
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 int i;
17339 _ACEOF
17340 if ac_fn_c_try_compile "$LINENO"
17341 then :
17342 xorg_cv_cc_flag_unused_command_line_argument=yes
17343 else $as_nop
17344 xorg_cv_cc_flag_unused_command_line_argument=no
17345 fi
17346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17347 fi
17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17349 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17351 CFLAGS="$xorg_testset_save_CFLAGS"
17352 fi
17353
17354 found="no"
17355
17356 if test $found = "no" ; then
17357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359 fi
17360
17361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17363 fi
17364
17365 CFLAGS="$CFLAGS -Wmain"
17366
17367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17368 printf %s "checking if $CC supports -Wmain... " >&6; }
17369 cacheid=xorg_cv_cc_flag__Wmain
17370 if eval test \${$cacheid+y}
17371 then :
17372 printf %s "(cached) " >&6
17373 else $as_nop
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17376 int i;
17377 int
17378 main (void)
17379 {
17380
17381 ;
17382 return 0;
17383 }
17384 _ACEOF
17385 if ac_fn_c_try_link "$LINENO"
17386 then :
17387 eval $cacheid=yes
17388 else $as_nop
17389 eval $cacheid=no
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17392 conftest$ac_exeext conftest.$ac_ext
17393 fi
17394
17395
17396 CFLAGS="$xorg_testset_save_CFLAGS"
17397
17398 eval supported=\$$cacheid
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17400 printf "%s\n" "$supported" >&6; }
17401 if test "$supported" = "yes" ; then
17402 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17403 found="yes"
17404 fi
17405 fi
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421 xorg_testset_save_CFLAGS="$CFLAGS"
17422
17423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17426 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17427 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17428 then :
17429 printf %s "(cached) " >&6
17430 else $as_nop
17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432 /* end confdefs.h. */
17433 int i;
17434 _ACEOF
17435 if ac_fn_c_try_compile "$LINENO"
17436 then :
17437 xorg_cv_cc_flag_unknown_warning_option=yes
17438 else $as_nop
17439 xorg_cv_cc_flag_unknown_warning_option=no
17440 fi
17441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17442 fi
17443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17444 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17446 CFLAGS="$xorg_testset_save_CFLAGS"
17447 fi
17448
17449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17452 fi
17453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17455 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17456 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17457 then :
17458 printf %s "(cached) " >&6
17459 else $as_nop
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17462 int i;
17463 _ACEOF
17464 if ac_fn_c_try_compile "$LINENO"
17465 then :
17466 xorg_cv_cc_flag_unused_command_line_argument=yes
17467 else $as_nop
17468 xorg_cv_cc_flag_unused_command_line_argument=no
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17471 fi
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17473 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17475 CFLAGS="$xorg_testset_save_CFLAGS"
17476 fi
17477
17478 found="no"
17479
17480 if test $found = "no" ; then
17481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17483 fi
17484
17485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17487 fi
17488
17489 CFLAGS="$CFLAGS -Wmissing-braces"
17490
17491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17492 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17493 cacheid=xorg_cv_cc_flag__Wmissing_braces
17494 if eval test \${$cacheid+y}
17495 then :
17496 printf %s "(cached) " >&6
17497 else $as_nop
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17500 int i;
17501 int
17502 main (void)
17503 {
17504
17505 ;
17506 return 0;
17507 }
17508 _ACEOF
17509 if ac_fn_c_try_link "$LINENO"
17510 then :
17511 eval $cacheid=yes
17512 else $as_nop
17513 eval $cacheid=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17516 conftest$ac_exeext conftest.$ac_ext
17517 fi
17518
17519
17520 CFLAGS="$xorg_testset_save_CFLAGS"
17521
17522 eval supported=\$$cacheid
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17524 printf "%s\n" "$supported" >&6; }
17525 if test "$supported" = "yes" ; then
17526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17527 found="yes"
17528 fi
17529 fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545 xorg_testset_save_CFLAGS="$CFLAGS"
17546
17547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17551 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17552 then :
17553 printf %s "(cached) " >&6
17554 else $as_nop
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 int i;
17558 _ACEOF
17559 if ac_fn_c_try_compile "$LINENO"
17560 then :
17561 xorg_cv_cc_flag_unknown_warning_option=yes
17562 else $as_nop
17563 xorg_cv_cc_flag_unknown_warning_option=no
17564 fi
17565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17566 fi
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17568 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17570 CFLAGS="$xorg_testset_save_CFLAGS"
17571 fi
17572
17573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17576 fi
17577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17579 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17580 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17581 then :
17582 printf %s "(cached) " >&6
17583 else $as_nop
17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585 /* end confdefs.h. */
17586 int i;
17587 _ACEOF
17588 if ac_fn_c_try_compile "$LINENO"
17589 then :
17590 xorg_cv_cc_flag_unused_command_line_argument=yes
17591 else $as_nop
17592 xorg_cv_cc_flag_unused_command_line_argument=no
17593 fi
17594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17595 fi
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17597 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17599 CFLAGS="$xorg_testset_save_CFLAGS"
17600 fi
17601
17602 found="no"
17603
17604 if test $found = "no" ; then
17605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17607 fi
17608
17609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17611 fi
17612
17613 CFLAGS="$CFLAGS -Wsequence-point"
17614
17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17616 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17617 cacheid=xorg_cv_cc_flag__Wsequence_point
17618 if eval test \${$cacheid+y}
17619 then :
17620 printf %s "(cached) " >&6
17621 else $as_nop
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17624 int i;
17625 int
17626 main (void)
17627 {
17628
17629 ;
17630 return 0;
17631 }
17632 _ACEOF
17633 if ac_fn_c_try_link "$LINENO"
17634 then :
17635 eval $cacheid=yes
17636 else $as_nop
17637 eval $cacheid=no
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17640 conftest$ac_exeext conftest.$ac_ext
17641 fi
17642
17643
17644 CFLAGS="$xorg_testset_save_CFLAGS"
17645
17646 eval supported=\$$cacheid
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17648 printf "%s\n" "$supported" >&6; }
17649 if test "$supported" = "yes" ; then
17650 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17651 found="yes"
17652 fi
17653 fi
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669 xorg_testset_save_CFLAGS="$CFLAGS"
17670
17671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17675 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17676 then :
17677 printf %s "(cached) " >&6
17678 else $as_nop
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17681 int i;
17682 _ACEOF
17683 if ac_fn_c_try_compile "$LINENO"
17684 then :
17685 xorg_cv_cc_flag_unknown_warning_option=yes
17686 else $as_nop
17687 xorg_cv_cc_flag_unknown_warning_option=no
17688 fi
17689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17690 fi
17691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17692 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17694 CFLAGS="$xorg_testset_save_CFLAGS"
17695 fi
17696
17697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17700 fi
17701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17703 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17704 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17705 then :
17706 printf %s "(cached) " >&6
17707 else $as_nop
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17710 int i;
17711 _ACEOF
17712 if ac_fn_c_try_compile "$LINENO"
17713 then :
17714 xorg_cv_cc_flag_unused_command_line_argument=yes
17715 else $as_nop
17716 xorg_cv_cc_flag_unused_command_line_argument=no
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17719 fi
17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17721 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17723 CFLAGS="$xorg_testset_save_CFLAGS"
17724 fi
17725
17726 found="no"
17727
17728 if test $found = "no" ; then
17729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17731 fi
17732
17733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17735 fi
17736
17737 CFLAGS="$CFLAGS -Wreturn-type"
17738
17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17740 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17741 cacheid=xorg_cv_cc_flag__Wreturn_type
17742 if eval test \${$cacheid+y}
17743 then :
17744 printf %s "(cached) " >&6
17745 else $as_nop
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 int i;
17749 int
17750 main (void)
17751 {
17752
17753 ;
17754 return 0;
17755 }
17756 _ACEOF
17757 if ac_fn_c_try_link "$LINENO"
17758 then :
17759 eval $cacheid=yes
17760 else $as_nop
17761 eval $cacheid=no
17762 fi
17763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17764 conftest$ac_exeext conftest.$ac_ext
17765 fi
17766
17767
17768 CFLAGS="$xorg_testset_save_CFLAGS"
17769
17770 eval supported=\$$cacheid
17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17772 printf "%s\n" "$supported" >&6; }
17773 if test "$supported" = "yes" ; then
17774 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17775 found="yes"
17776 fi
17777 fi
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793 xorg_testset_save_CFLAGS="$CFLAGS"
17794
17795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17800 then :
17801 printf %s "(cached) " >&6
17802 else $as_nop
17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17805 int i;
17806 _ACEOF
17807 if ac_fn_c_try_compile "$LINENO"
17808 then :
17809 xorg_cv_cc_flag_unknown_warning_option=yes
17810 else $as_nop
17811 xorg_cv_cc_flag_unknown_warning_option=no
17812 fi
17813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17814 fi
17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17818 CFLAGS="$xorg_testset_save_CFLAGS"
17819 fi
17820
17821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17824 fi
17825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17829 then :
17830 printf %s "(cached) " >&6
17831 else $as_nop
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834 int i;
17835 _ACEOF
17836 if ac_fn_c_try_compile "$LINENO"
17837 then :
17838 xorg_cv_cc_flag_unused_command_line_argument=yes
17839 else $as_nop
17840 xorg_cv_cc_flag_unused_command_line_argument=no
17841 fi
17842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17843 fi
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17847 CFLAGS="$xorg_testset_save_CFLAGS"
17848 fi
17849
17850 found="no"
17851
17852 if test $found = "no" ; then
17853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17855 fi
17856
17857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17859 fi
17860
17861 CFLAGS="$CFLAGS -Wtrigraphs"
17862
17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17864 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17865 cacheid=xorg_cv_cc_flag__Wtrigraphs
17866 if eval test \${$cacheid+y}
17867 then :
17868 printf %s "(cached) " >&6
17869 else $as_nop
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17872 int i;
17873 int
17874 main (void)
17875 {
17876
17877 ;
17878 return 0;
17879 }
17880 _ACEOF
17881 if ac_fn_c_try_link "$LINENO"
17882 then :
17883 eval $cacheid=yes
17884 else $as_nop
17885 eval $cacheid=no
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17888 conftest$ac_exeext conftest.$ac_ext
17889 fi
17890
17891
17892 CFLAGS="$xorg_testset_save_CFLAGS"
17893
17894 eval supported=\$$cacheid
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17896 printf "%s\n" "$supported" >&6; }
17897 if test "$supported" = "yes" ; then
17898 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17899 found="yes"
17900 fi
17901 fi
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917 xorg_testset_save_CFLAGS="$CFLAGS"
17918
17919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17923 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17924 then :
17925 printf %s "(cached) " >&6
17926 else $as_nop
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 int i;
17930 _ACEOF
17931 if ac_fn_c_try_compile "$LINENO"
17932 then :
17933 xorg_cv_cc_flag_unknown_warning_option=yes
17934 else $as_nop
17935 xorg_cv_cc_flag_unknown_warning_option=no
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17938 fi
17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17940 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17942 CFLAGS="$xorg_testset_save_CFLAGS"
17943 fi
17944
17945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17948 fi
17949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17953 then :
17954 printf %s "(cached) " >&6
17955 else $as_nop
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17958 int i;
17959 _ACEOF
17960 if ac_fn_c_try_compile "$LINENO"
17961 then :
17962 xorg_cv_cc_flag_unused_command_line_argument=yes
17963 else $as_nop
17964 xorg_cv_cc_flag_unused_command_line_argument=no
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17967 fi
17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17969 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17971 CFLAGS="$xorg_testset_save_CFLAGS"
17972 fi
17973
17974 found="no"
17975
17976 if test $found = "no" ; then
17977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17979 fi
17980
17981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17983 fi
17984
17985 CFLAGS="$CFLAGS -Warray-bounds"
17986
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17988 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
17989 cacheid=xorg_cv_cc_flag__Warray_bounds
17990 if eval test \${$cacheid+y}
17991 then :
17992 printf %s "(cached) " >&6
17993 else $as_nop
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 int i;
17997 int
17998 main (void)
17999 {
18000
18001 ;
18002 return 0;
18003 }
18004 _ACEOF
18005 if ac_fn_c_try_link "$LINENO"
18006 then :
18007 eval $cacheid=yes
18008 else $as_nop
18009 eval $cacheid=no
18010 fi
18011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18012 conftest$ac_exeext conftest.$ac_ext
18013 fi
18014
18015
18016 CFLAGS="$xorg_testset_save_CFLAGS"
18017
18018 eval supported=\$$cacheid
18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18020 printf "%s\n" "$supported" >&6; }
18021 if test "$supported" = "yes" ; then
18022 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18023 found="yes"
18024 fi
18025 fi
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041 xorg_testset_save_CFLAGS="$CFLAGS"
18042
18043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18046 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18047 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18048 then :
18049 printf %s "(cached) " >&6
18050 else $as_nop
18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18053 int i;
18054 _ACEOF
18055 if ac_fn_c_try_compile "$LINENO"
18056 then :
18057 xorg_cv_cc_flag_unknown_warning_option=yes
18058 else $as_nop
18059 xorg_cv_cc_flag_unknown_warning_option=no
18060 fi
18061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18062 fi
18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18064 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18066 CFLAGS="$xorg_testset_save_CFLAGS"
18067 fi
18068
18069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18072 fi
18073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18075 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18076 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18077 then :
18078 printf %s "(cached) " >&6
18079 else $as_nop
18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081 /* end confdefs.h. */
18082 int i;
18083 _ACEOF
18084 if ac_fn_c_try_compile "$LINENO"
18085 then :
18086 xorg_cv_cc_flag_unused_command_line_argument=yes
18087 else $as_nop
18088 xorg_cv_cc_flag_unused_command_line_argument=no
18089 fi
18090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18091 fi
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18093 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18095 CFLAGS="$xorg_testset_save_CFLAGS"
18096 fi
18097
18098 found="no"
18099
18100 if test $found = "no" ; then
18101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18103 fi
18104
18105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18107 fi
18108
18109 CFLAGS="$CFLAGS -Wwrite-strings"
18110
18111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18112 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18113 cacheid=xorg_cv_cc_flag__Wwrite_strings
18114 if eval test \${$cacheid+y}
18115 then :
18116 printf %s "(cached) " >&6
18117 else $as_nop
18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119 /* end confdefs.h. */
18120 int i;
18121 int
18122 main (void)
18123 {
18124
18125 ;
18126 return 0;
18127 }
18128 _ACEOF
18129 if ac_fn_c_try_link "$LINENO"
18130 then :
18131 eval $cacheid=yes
18132 else $as_nop
18133 eval $cacheid=no
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18136 conftest$ac_exeext conftest.$ac_ext
18137 fi
18138
18139
18140 CFLAGS="$xorg_testset_save_CFLAGS"
18141
18142 eval supported=\$$cacheid
18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18144 printf "%s\n" "$supported" >&6; }
18145 if test "$supported" = "yes" ; then
18146 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18147 found="yes"
18148 fi
18149 fi
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165 xorg_testset_save_CFLAGS="$CFLAGS"
18166
18167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18171 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18172 then :
18173 printf %s "(cached) " >&6
18174 else $as_nop
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18177 int i;
18178 _ACEOF
18179 if ac_fn_c_try_compile "$LINENO"
18180 then :
18181 xorg_cv_cc_flag_unknown_warning_option=yes
18182 else $as_nop
18183 xorg_cv_cc_flag_unknown_warning_option=no
18184 fi
18185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18186 fi
18187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18190 CFLAGS="$xorg_testset_save_CFLAGS"
18191 fi
18192
18193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18196 fi
18197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18201 then :
18202 printf %s "(cached) " >&6
18203 else $as_nop
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18206 int i;
18207 _ACEOF
18208 if ac_fn_c_try_compile "$LINENO"
18209 then :
18210 xorg_cv_cc_flag_unused_command_line_argument=yes
18211 else $as_nop
18212 xorg_cv_cc_flag_unused_command_line_argument=no
18213 fi
18214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18215 fi
18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18219 CFLAGS="$xorg_testset_save_CFLAGS"
18220 fi
18221
18222 found="no"
18223
18224 if test $found = "no" ; then
18225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18227 fi
18228
18229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18231 fi
18232
18233 CFLAGS="$CFLAGS -Waddress"
18234
18235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18236 printf %s "checking if $CC supports -Waddress... " >&6; }
18237 cacheid=xorg_cv_cc_flag__Waddress
18238 if eval test \${$cacheid+y}
18239 then :
18240 printf %s "(cached) " >&6
18241 else $as_nop
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h. */
18244 int i;
18245 int
18246 main (void)
18247 {
18248
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 if ac_fn_c_try_link "$LINENO"
18254 then :
18255 eval $cacheid=yes
18256 else $as_nop
18257 eval $cacheid=no
18258 fi
18259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18260 conftest$ac_exeext conftest.$ac_ext
18261 fi
18262
18263
18264 CFLAGS="$xorg_testset_save_CFLAGS"
18265
18266 eval supported=\$$cacheid
18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18268 printf "%s\n" "$supported" >&6; }
18269 if test "$supported" = "yes" ; then
18270 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18271 found="yes"
18272 fi
18273 fi
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289 xorg_testset_save_CFLAGS="$CFLAGS"
18290
18291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18294 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18295 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18296 then :
18297 printf %s "(cached) " >&6
18298 else $as_nop
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18301 int i;
18302 _ACEOF
18303 if ac_fn_c_try_compile "$LINENO"
18304 then :
18305 xorg_cv_cc_flag_unknown_warning_option=yes
18306 else $as_nop
18307 xorg_cv_cc_flag_unknown_warning_option=no
18308 fi
18309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18310 fi
18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18312 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18314 CFLAGS="$xorg_testset_save_CFLAGS"
18315 fi
18316
18317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18320 fi
18321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18323 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18324 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18325 then :
18326 printf %s "(cached) " >&6
18327 else $as_nop
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18330 int i;
18331 _ACEOF
18332 if ac_fn_c_try_compile "$LINENO"
18333 then :
18334 xorg_cv_cc_flag_unused_command_line_argument=yes
18335 else $as_nop
18336 xorg_cv_cc_flag_unused_command_line_argument=no
18337 fi
18338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18339 fi
18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18341 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18343 CFLAGS="$xorg_testset_save_CFLAGS"
18344 fi
18345
18346 found="no"
18347
18348 if test $found = "no" ; then
18349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18351 fi
18352
18353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18355 fi
18356
18357 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18358
18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18360 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18361 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18362 if eval test \${$cacheid+y}
18363 then :
18364 printf %s "(cached) " >&6
18365 else $as_nop
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18368 int i;
18369 int
18370 main (void)
18371 {
18372
18373 ;
18374 return 0;
18375 }
18376 _ACEOF
18377 if ac_fn_c_try_link "$LINENO"
18378 then :
18379 eval $cacheid=yes
18380 else $as_nop
18381 eval $cacheid=no
18382 fi
18383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18384 conftest$ac_exeext conftest.$ac_ext
18385 fi
18386
18387
18388 CFLAGS="$xorg_testset_save_CFLAGS"
18389
18390 eval supported=\$$cacheid
18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18392 printf "%s\n" "$supported" >&6; }
18393 if test "$supported" = "yes" ; then
18394 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18395 found="yes"
18396 fi
18397 fi
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413 xorg_testset_save_CFLAGS="$CFLAGS"
18414
18415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18418 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18419 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18420 then :
18421 printf %s "(cached) " >&6
18422 else $as_nop
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18425 int i;
18426 _ACEOF
18427 if ac_fn_c_try_compile "$LINENO"
18428 then :
18429 xorg_cv_cc_flag_unknown_warning_option=yes
18430 else $as_nop
18431 xorg_cv_cc_flag_unknown_warning_option=no
18432 fi
18433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18434 fi
18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18436 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18438 CFLAGS="$xorg_testset_save_CFLAGS"
18439 fi
18440
18441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18444 fi
18445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18447 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18448 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18449 then :
18450 printf %s "(cached) " >&6
18451 else $as_nop
18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18454 int i;
18455 _ACEOF
18456 if ac_fn_c_try_compile "$LINENO"
18457 then :
18458 xorg_cv_cc_flag_unused_command_line_argument=yes
18459 else $as_nop
18460 xorg_cv_cc_flag_unused_command_line_argument=no
18461 fi
18462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18463 fi
18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18465 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18467 CFLAGS="$xorg_testset_save_CFLAGS"
18468 fi
18469
18470 found="no"
18471
18472 if test $found = "no" ; then
18473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18475 fi
18476
18477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18479 fi
18480
18481 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18482
18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18484 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18485 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18486 if eval test \${$cacheid+y}
18487 then :
18488 printf %s "(cached) " >&6
18489 else $as_nop
18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18492 int i;
18493 int
18494 main (void)
18495 {
18496
18497 ;
18498 return 0;
18499 }
18500 _ACEOF
18501 if ac_fn_c_try_link "$LINENO"
18502 then :
18503 eval $cacheid=yes
18504 else $as_nop
18505 eval $cacheid=no
18506 fi
18507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18508 conftest$ac_exeext conftest.$ac_ext
18509 fi
18510
18511
18512 CFLAGS="$xorg_testset_save_CFLAGS"
18513
18514 eval supported=\$$cacheid
18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18516 printf "%s\n" "$supported" >&6; }
18517 if test "$supported" = "yes" ; then
18518 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18519 found="yes"
18520 fi
18521 fi
18522
18523
18524 fi
18525
18526
18527
18528
18529
18530
18531
18532 CWARNFLAGS="$BASE_CFLAGS"
18533 if test "x$GCC" = xyes ; then
18534 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18535 fi
18536
18537
18538
18539
18540
18541
18542
18543
18544 # Check whether --enable-strict-compilation was given.
18545 if test ${enable_strict_compilation+y}
18546 then :
18547 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18548 else $as_nop
18549 STRICT_COMPILE=no
18550 fi
18551
18552
18553
18554
18555
18556
18557 STRICT_CFLAGS=""
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571 xorg_testset_save_CFLAGS="$CFLAGS"
18572
18573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18576 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18577 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18578 then :
18579 printf %s "(cached) " >&6
18580 else $as_nop
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h. */
18583 int i;
18584 _ACEOF
18585 if ac_fn_c_try_compile "$LINENO"
18586 then :
18587 xorg_cv_cc_flag_unknown_warning_option=yes
18588 else $as_nop
18589 xorg_cv_cc_flag_unknown_warning_option=no
18590 fi
18591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18592 fi
18593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18594 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18596 CFLAGS="$xorg_testset_save_CFLAGS"
18597 fi
18598
18599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18602 fi
18603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18605 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18606 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18607 then :
18608 printf %s "(cached) " >&6
18609 else $as_nop
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612 int i;
18613 _ACEOF
18614 if ac_fn_c_try_compile "$LINENO"
18615 then :
18616 xorg_cv_cc_flag_unused_command_line_argument=yes
18617 else $as_nop
18618 xorg_cv_cc_flag_unused_command_line_argument=no
18619 fi
18620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18621 fi
18622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18623 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18625 CFLAGS="$xorg_testset_save_CFLAGS"
18626 fi
18627
18628 found="no"
18629
18630 if test $found = "no" ; then
18631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18633 fi
18634
18635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18637 fi
18638
18639 CFLAGS="$CFLAGS -pedantic"
18640
18641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18642 printf %s "checking if $CC supports -pedantic... " >&6; }
18643 cacheid=xorg_cv_cc_flag__pedantic
18644 if eval test \${$cacheid+y}
18645 then :
18646 printf %s "(cached) " >&6
18647 else $as_nop
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18650 int i;
18651 int
18652 main (void)
18653 {
18654
18655 ;
18656 return 0;
18657 }
18658 _ACEOF
18659 if ac_fn_c_try_link "$LINENO"
18660 then :
18661 eval $cacheid=yes
18662 else $as_nop
18663 eval $cacheid=no
18664 fi
18665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18666 conftest$ac_exeext conftest.$ac_ext
18667 fi
18668
18669
18670 CFLAGS="$xorg_testset_save_CFLAGS"
18671
18672 eval supported=\$$cacheid
18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18674 printf "%s\n" "$supported" >&6; }
18675 if test "$supported" = "yes" ; then
18676 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18677 found="yes"
18678 fi
18679 fi
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695 xorg_testset_save_CFLAGS="$CFLAGS"
18696
18697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18700 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18701 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18702 then :
18703 printf %s "(cached) " >&6
18704 else $as_nop
18705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18706 /* end confdefs.h. */
18707 int i;
18708 _ACEOF
18709 if ac_fn_c_try_compile "$LINENO"
18710 then :
18711 xorg_cv_cc_flag_unknown_warning_option=yes
18712 else $as_nop
18713 xorg_cv_cc_flag_unknown_warning_option=no
18714 fi
18715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18716 fi
18717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18718 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18720 CFLAGS="$xorg_testset_save_CFLAGS"
18721 fi
18722
18723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18726 fi
18727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18729 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18730 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18731 then :
18732 printf %s "(cached) " >&6
18733 else $as_nop
18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18735 /* end confdefs.h. */
18736 int i;
18737 _ACEOF
18738 if ac_fn_c_try_compile "$LINENO"
18739 then :
18740 xorg_cv_cc_flag_unused_command_line_argument=yes
18741 else $as_nop
18742 xorg_cv_cc_flag_unused_command_line_argument=no
18743 fi
18744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18745 fi
18746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18747 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18749 CFLAGS="$xorg_testset_save_CFLAGS"
18750 fi
18751
18752 found="no"
18753
18754 if test $found = "no" ; then
18755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18757 fi
18758
18759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18761 fi
18762
18763 CFLAGS="$CFLAGS -Werror"
18764
18765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18766 printf %s "checking if $CC supports -Werror... " >&6; }
18767 cacheid=xorg_cv_cc_flag__Werror
18768 if eval test \${$cacheid+y}
18769 then :
18770 printf %s "(cached) " >&6
18771 else $as_nop
18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18774 int i;
18775 int
18776 main (void)
18777 {
18778
18779 ;
18780 return 0;
18781 }
18782 _ACEOF
18783 if ac_fn_c_try_link "$LINENO"
18784 then :
18785 eval $cacheid=yes
18786 else $as_nop
18787 eval $cacheid=no
18788 fi
18789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18790 conftest$ac_exeext conftest.$ac_ext
18791 fi
18792
18793
18794 CFLAGS="$xorg_testset_save_CFLAGS"
18795
18796 eval supported=\$$cacheid
18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18798 printf "%s\n" "$supported" >&6; }
18799 if test "$supported" = "yes" ; then
18800 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18801 found="yes"
18802 fi
18803 fi
18804
18805 if test $found = "no" ; then
18806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18808 fi
18809
18810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18812 fi
18813
18814 CFLAGS="$CFLAGS -errwarn"
18815
18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18817 printf %s "checking if $CC supports -errwarn... " >&6; }
18818 cacheid=xorg_cv_cc_flag__errwarn
18819 if eval test \${$cacheid+y}
18820 then :
18821 printf %s "(cached) " >&6
18822 else $as_nop
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18825 int i;
18826 int
18827 main (void)
18828 {
18829
18830 ;
18831 return 0;
18832 }
18833 _ACEOF
18834 if ac_fn_c_try_link "$LINENO"
18835 then :
18836 eval $cacheid=yes
18837 else $as_nop
18838 eval $cacheid=no
18839 fi
18840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18841 conftest$ac_exeext conftest.$ac_ext
18842 fi
18843
18844
18845 CFLAGS="$xorg_testset_save_CFLAGS"
18846
18847 eval supported=\$$cacheid
18848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18849 printf "%s\n" "$supported" >&6; }
18850 if test "$supported" = "yes" ; then
18851 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18852 found="yes"
18853 fi
18854 fi
18855
18856
18857
18858 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18859 # activate it with -Werror, so we add it here explicitly.
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873 xorg_testset_save_CFLAGS="$CFLAGS"
18874
18875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18878 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18879 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18880 then :
18881 printf %s "(cached) " >&6
18882 else $as_nop
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885 int i;
18886 _ACEOF
18887 if ac_fn_c_try_compile "$LINENO"
18888 then :
18889 xorg_cv_cc_flag_unknown_warning_option=yes
18890 else $as_nop
18891 xorg_cv_cc_flag_unknown_warning_option=no
18892 fi
18893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18894 fi
18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18898 CFLAGS="$xorg_testset_save_CFLAGS"
18899 fi
18900
18901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18904 fi
18905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18909 then :
18910 printf %s "(cached) " >&6
18911 else $as_nop
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18914 int i;
18915 _ACEOF
18916 if ac_fn_c_try_compile "$LINENO"
18917 then :
18918 xorg_cv_cc_flag_unused_command_line_argument=yes
18919 else $as_nop
18920 xorg_cv_cc_flag_unused_command_line_argument=no
18921 fi
18922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18923 fi
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18925 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18927 CFLAGS="$xorg_testset_save_CFLAGS"
18928 fi
18929
18930 found="no"
18931
18932 if test $found = "no" ; then
18933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18935 fi
18936
18937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18939 fi
18940
18941 CFLAGS="$CFLAGS -Werror=attributes"
18942
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18944 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18945 cacheid=xorg_cv_cc_flag__Werror_attributes
18946 if eval test \${$cacheid+y}
18947 then :
18948 printf %s "(cached) " >&6
18949 else $as_nop
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18952 int i;
18953 int
18954 main (void)
18955 {
18956
18957 ;
18958 return 0;
18959 }
18960 _ACEOF
18961 if ac_fn_c_try_link "$LINENO"
18962 then :
18963 eval $cacheid=yes
18964 else $as_nop
18965 eval $cacheid=no
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18968 conftest$ac_exeext conftest.$ac_ext
18969 fi
18970
18971
18972 CFLAGS="$xorg_testset_save_CFLAGS"
18973
18974 eval supported=\$$cacheid
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18976 printf "%s\n" "$supported" >&6; }
18977 if test "$supported" = "yes" ; then
18978 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18979 found="yes"
18980 fi
18981 fi
18982
18983
18984
18985 if test "x$STRICT_COMPILE" = "xyes"; then
18986 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18987 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18988 fi
18989
18990
18991
18992
18993
18994
18995 cat >>confdefs.h <<_ACEOF
18996 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18997 _ACEOF
18998
18999 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19000 if test "x$PVM" = "x"; then
19001 PVM="0"
19002 fi
19003
19004 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19005
19006 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19007 if test "x$PVP" = "x"; then
19008 PVP="0"
19009 fi
19010
19011 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19012
19013
19014
19015 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19016 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19017 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19018 touch \$(top_srcdir)/ChangeLog; \
19019 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19020
19021
19022
19023
19024 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19025 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19026 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19027 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19028 touch \$(top_srcdir)/INSTALL; \
19029 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19030
19031
19032
19033
19034
19035
19036 case $host_os in
19037 solaris*)
19038 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19039 # check for a man page file found in later versions that use
19040 # traditional section numbers instead
19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19042 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19043 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19044 then :
19045 printf %s "(cached) " >&6
19046 else $as_nop
19047 test "$cross_compiling" = yes &&
19048 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19049 if test -r "/usr/share/man/man7/attributes.7"; then
19050 ac_cv_file__usr_share_man_man7_attributes_7=yes
19051 else
19052 ac_cv_file__usr_share_man_man7_attributes_7=no
19053 fi
19054 fi
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19056 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19057 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19058 then :
19059 SYSV_MAN_SECTIONS=false
19060 else $as_nop
19061 SYSV_MAN_SECTIONS=true
19062 fi
19063
19064 ;;
19065 *) SYSV_MAN_SECTIONS=false ;;
19066 esac
19067
19068 if test x$APP_MAN_SUFFIX = x ; then
19069 APP_MAN_SUFFIX=1
19070 fi
19071 if test x$APP_MAN_DIR = x ; then
19072 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19073 fi
19074
19075 if test x$LIB_MAN_SUFFIX = x ; then
19076 LIB_MAN_SUFFIX=3
19077 fi
19078 if test x$LIB_MAN_DIR = x ; then
19079 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19080 fi
19081
19082 if test x$FILE_MAN_SUFFIX = x ; then
19083 case $SYSV_MAN_SECTIONS in
19084 true) FILE_MAN_SUFFIX=4 ;;
19085 *) FILE_MAN_SUFFIX=5 ;;
19086 esac
19087 fi
19088 if test x$FILE_MAN_DIR = x ; then
19089 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19090 fi
19091
19092 if test x$MISC_MAN_SUFFIX = x ; then
19093 case $SYSV_MAN_SECTIONS in
19094 true) MISC_MAN_SUFFIX=5 ;;
19095 *) MISC_MAN_SUFFIX=7 ;;
19096 esac
19097 fi
19098 if test x$MISC_MAN_DIR = x ; then
19099 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19100 fi
19101
19102 if test x$DRIVER_MAN_SUFFIX = x ; then
19103 case $SYSV_MAN_SECTIONS in
19104 true) DRIVER_MAN_SUFFIX=7 ;;
19105 *) DRIVER_MAN_SUFFIX=4 ;;
19106 esac
19107 fi
19108 if test x$DRIVER_MAN_DIR = x ; then
19109 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19110 fi
19111
19112 if test x$ADMIN_MAN_SUFFIX = x ; then
19113 case $SYSV_MAN_SECTIONS in
19114 true) ADMIN_MAN_SUFFIX=1m ;;
19115 *) ADMIN_MAN_SUFFIX=8 ;;
19116 esac
19117 fi
19118 if test x$ADMIN_MAN_DIR = x ; then
19119 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19120 fi
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136 XORG_MAN_PAGE="X Version 11"
19137
19138 MAN_SUBSTS="\
19139 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19140 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19141 -e 's|__xservername__|Xorg|g' \
19142 -e 's|__xconfigfile__|xorg.conf|g' \
19143 -e 's|__projectroot__|\$(prefix)|g' \
19144 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19145 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19146 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19147 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19148 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19149 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19150 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19151
19152
19153
19154 # Check whether --enable-silent-rules was given.
19155 if test ${enable_silent_rules+y}
19156 then :
19157 enableval=$enable_silent_rules;
19158 fi
19159
19160 case $enable_silent_rules in # (((
19161 yes) AM_DEFAULT_VERBOSITY=0;;
19162 no) AM_DEFAULT_VERBOSITY=1;;
19163 *) AM_DEFAULT_VERBOSITY=0;;
19164 esac
19165 am_make=${MAKE-make}
19166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19167 printf %s "checking whether $am_make supports nested variables... " >&6; }
19168 if test ${am_cv_make_support_nested_variables+y}
19169 then :
19170 printf %s "(cached) " >&6
19171 else $as_nop
19172 if printf "%s\n" 'TRUE=$(BAR$(V))
19173 BAR0=false
19174 BAR1=true
19175 V=1
19176 am__doit:
19177 @$(TRUE)
19178 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19179 am_cv_make_support_nested_variables=yes
19180 else
19181 am_cv_make_support_nested_variables=no
19182 fi
19183 fi
19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19185 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19186 if test $am_cv_make_support_nested_variables = yes; then
19187 AM_V='$(V)'
19188 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19189 else
19190 AM_V=$AM_DEFAULT_VERBOSITY
19191 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19192 fi
19193 AM_BACKSLASH='\'
19194
19195
19196
19197 # Checks for library functions.
19198 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19199 if test "x$ac_cv_func_strcasecmp" = xyes
19200 then :
19201 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
19202
19203 fi
19204 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
19205 if test "x$ac_cv_func_strndup" = xyes
19206 then :
19207 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
19208
19209 fi
19210
19211 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
19212 if test "x$ac_cv_func_getc_unlocked" = xyes
19213 then :
19214
19215 printf "%s\n" "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h
19216
19217 fi
19218
19219
19220 # Obtain compiler/linker options for dependencies
19221
19222 pkg_failed=no
19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5
19224 printf %s "checking for XKBFILE... " >&6; }
19225
19226 if test -n "$XKBFILE_CFLAGS"; then
19227 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS"
19228 elif test -n "$PKG_CONFIG"; then
19229 if test -n "$PKG_CONFIG" && \
19230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
19231 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
19232 ac_status=$?
19233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19234 test $ac_status = 0; }; then
19235 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
19236 test "x$?" != "x0" && pkg_failed=yes
19237 else
19238 pkg_failed=yes
19239 fi
19240 else
19241 pkg_failed=untried
19242 fi
19243 if test -n "$XKBFILE_LIBS"; then
19244 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS"
19245 elif test -n "$PKG_CONFIG"; then
19246 if test -n "$PKG_CONFIG" && \
19247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
19248 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
19249 ac_status=$?
19250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19251 test $ac_status = 0; }; then
19252 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
19253 test "x$?" != "x0" && pkg_failed=yes
19254 else
19255 pkg_failed=yes
19256 fi
19257 else
19258 pkg_failed=untried
19259 fi
19260
19261
19262
19263 if test $pkg_failed = yes; then
19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265 printf "%s\n" "no" >&6; }
19266
19267 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19268 _pkg_short_errors_supported=yes
19269 else
19270 _pkg_short_errors_supported=no
19271 fi
19272 if test $_pkg_short_errors_supported = yes; then
19273 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto" 2>&1`
19274 else
19275 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto" 2>&1`
19276 fi
19277 # Put the nasty error message in config.log where it belongs
19278 echo "$XKBFILE_PKG_ERRORS" >&5
19279
19280 as_fn_error $? "Package requirements (x11 kbproto) were not met:
19281
19282 $XKBFILE_PKG_ERRORS
19283
19284 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19285 installed software in a non-standard prefix.
19286
19287 Alternatively, you may set the environment variables XKBFILE_CFLAGS
19288 and XKBFILE_LIBS to avoid the need to call pkg-config.
19289 See the pkg-config man page for more details." "$LINENO" 5
19290 elif test $pkg_failed = untried; then
19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19292 printf "%s\n" "no" >&6; }
19293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19294 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19295 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19296 is in your PATH or set the PKG_CONFIG environment variable to the full
19297 path to pkg-config.
19298
19299 Alternatively, you may set the environment variables XKBFILE_CFLAGS
19300 and XKBFILE_LIBS to avoid the need to call pkg-config.
19301 See the pkg-config man page for more details.
19302
19303 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19304 See \`config.log' for more details" "$LINENO" 5; }
19305 else
19306 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS
19307 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS
19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19309 printf "%s\n" "yes" >&6; }
19310
19311 fi
19312
19313 ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc"
19314
19315 cat >confcache <<\_ACEOF
19316 # This file is a shell script that caches the results of configure
19317 # tests run on this system so they can be shared between configure
19318 # scripts and configure runs, see configure's option --config-cache.
19319 # It is not useful on other systems. If it contains results you don't
19320 # want to keep, you may remove or edit it.
19321 #
19322 # config.status only pays attention to the cache file if you give it
19323 # the --recheck option to rerun configure.
19324 #
19325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19327 # following values.
19328
19329 _ACEOF
19330
19331 # The following way of writing the cache mishandles newlines in values,
19332 # but we know of no workaround that is simple, portable, and efficient.
19333 # So, we kill variables containing newlines.
19334 # Ultrix sh set writes to stderr and can't be redirected directly,
19335 # and sets the high bit in the cache file unless we assign to the vars.
19336 (
19337 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19338 eval ac_val=\$$ac_var
19339 case $ac_val in #(
19340 *${as_nl}*)
19341 case $ac_var in #(
19342 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19343 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19344 esac
19345 case $ac_var in #(
19346 _ | IFS | as_nl) ;; #(
19347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19348 *) { eval $ac_var=; unset $ac_var;} ;;
19349 esac ;;
19350 esac
19351 done
19352
19353 (set) 2>&1 |
19354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19355 *${as_nl}ac_space=\ *)
19356 # `set' does not quote correctly, so add quotes: double-quote
19357 # substitution turns \\\\ into \\, and sed turns \\ into \.
19358 sed -n \
19359 "s/'/'\\\\''/g;
19360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19361 ;; #(
19362 *)
19363 # `set' quotes correctly as required by POSIX, so do not add quotes.
19364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19365 ;;
19366 esac |
19367 sort
19368 ) |
19369 sed '
19370 /^ac_cv_env_/b end
19371 t clear
19372 :clear
19373 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19374 t end
19375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19376 :end' >>confcache
19377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19378 if test -w "$cache_file"; then
19379 if test "x$cache_file" != "x/dev/null"; then
19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19381 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19382 if test ! -f "$cache_file" || test -h "$cache_file"; then
19383 cat confcache >"$cache_file"
19384 else
19385 case $cache_file in #(
19386 */* | ?:*)
19387 mv -f confcache "$cache_file"$$ &&
19388 mv -f "$cache_file"$$ "$cache_file" ;; #(
19389 *)
19390 mv -f confcache "$cache_file" ;;
19391 esac
19392 fi
19393 fi
19394 else
19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19396 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19397 fi
19398 fi
19399 rm -f confcache
19400
19401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19402 # Let make expand exec_prefix.
19403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19404
19405 DEFS=-DHAVE_CONFIG_H
19406
19407 ac_libobjs=
19408 ac_ltlibobjs=
19409 U=
19410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19411 # 1. Remove the extension, and $U if already installed.
19412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19413 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19415 # will be set to the directory where LIBOBJS objects are built.
19416 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19417 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19418 done
19419 LIBOBJS=$ac_libobjs
19420
19421 LTLIBOBJS=$ac_ltlibobjs
19422
19423
19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19425 printf %s "checking that generated files are newer than configure... " >&6; }
19426 if test -n "$am_sleep_pid"; then
19427 # Hide warnings about reused PIDs.
19428 wait $am_sleep_pid 2>/dev/null
19429 fi
19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19431 printf "%s\n" "done" >&6; }
19432 if test -n "$EXEEXT"; then
19433 am__EXEEXT_TRUE=
19434 am__EXEEXT_FALSE='#'
19435 else
19436 am__EXEEXT_TRUE='#'
19437 am__EXEEXT_FALSE=
19438 fi
19439
19440 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19441 as_fn_error $? "conditional \"AMDEP\" was never defined.
19442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19443 fi
19444 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19445 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19447 fi
19448
19449 : "${CONFIG_STATUS=./config.status}"
19450 ac_write_fail=0
19451 ac_clean_files_save=$ac_clean_files
19452 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19454 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19455 as_write_fail=0
19456 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19457 #! $SHELL
19458 # Generated by $as_me.
19459 # Run this file to recreate the current configuration.
19460 # Compiler output produced by configure, useful for debugging
19461 # configure, is in config.log if it exists.
19462
19463 debug=false
19464 ac_cs_recheck=false
19465 ac_cs_silent=false
19466
19467 SHELL=\${CONFIG_SHELL-$SHELL}
19468 export SHELL
19469 _ASEOF
19470 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19471 ## -------------------- ##
19472 ## M4sh Initialization. ##
19473 ## -------------------- ##
19474
19475 # Be more Bourne compatible
19476 DUALCASE=1; export DUALCASE # for MKS sh
19477 as_nop=:
19478 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19479 then :
19480 emulate sh
19481 NULLCMD=:
19482 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19483 # is contrary to our usage. Disable this feature.
19484 alias -g '${1+"$@"}'='"$@"'
19485 setopt NO_GLOB_SUBST
19486 else $as_nop
19487 case `(set -o) 2>/dev/null` in #(
19488 *posix*) :
19489 set -o posix ;; #(
19490 *) :
19491 ;;
19492 esac
19493 fi
19494
19495
19496
19497 # Reset variables that may have inherited troublesome values from
19498 # the environment.
19499
19500 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19501 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19502 # side effect of setting IFS to empty, thus disabling word splitting.)
19503 # Quoting is to prevent editors from complaining about space-tab.
19504 as_nl='
19505 '
19506 export as_nl
19507 IFS=" "" $as_nl"
19508
19509 PS1='$ '
19510 PS2='> '
19511 PS4='+ '
19512
19513 # Ensure predictable behavior from utilities with locale-dependent output.
19514 LC_ALL=C
19515 export LC_ALL
19516 LANGUAGE=C
19517 export LANGUAGE
19518
19519 # We cannot yet rely on "unset" to work, but we need these variables
19520 # to be unset--not just set to an empty or harmless value--now, to
19521 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19522 # also avoids known problems related to "unset" and subshell syntax
19523 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19524 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19525 do eval test \${$as_var+y} \
19526 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19527 done
19528
19529 # Ensure that fds 0, 1, and 2 are open.
19530 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19531 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19532 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19533
19534 # The user is always right.
19535 if ${PATH_SEPARATOR+false} :; then
19536 PATH_SEPARATOR=:
19537 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19538 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19539 PATH_SEPARATOR=';'
19540 }
19541 fi
19542
19543
19544 # Find who we are. Look in the path if we contain no directory separator.
19545 as_myself=
19546 case $0 in #((
19547 *[\\/]* ) as_myself=$0 ;;
19548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19549 for as_dir in $PATH
19550 do
19551 IFS=$as_save_IFS
19552 case $as_dir in #(((
19553 '') as_dir=./ ;;
19554 */) ;;
19555 *) as_dir=$as_dir/ ;;
19556 esac
19557 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19558 done
19559 IFS=$as_save_IFS
19560
19561 ;;
19562 esac
19563 # We did not find ourselves, most probably we were run as `sh COMMAND'
19564 # in which case we are not to be found in the path.
19565 if test "x$as_myself" = x; then
19566 as_myself=$0
19567 fi
19568 if test ! -f "$as_myself"; then
19569 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19570 exit 1
19571 fi
19572
19573
19574
19575 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19576 # ----------------------------------------
19577 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19578 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19579 # script with STATUS, using 1 if that was 0.
19580 as_fn_error ()
19581 {
19582 as_status=$1; test $as_status -eq 0 && as_status=1
19583 if test "$4"; then
19584 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19586 fi
19587 printf "%s\n" "$as_me: error: $2" >&2
19588 as_fn_exit $as_status
19589 } # as_fn_error
19590
19591
19592
19593 # as_fn_set_status STATUS
19594 # -----------------------
19595 # Set $? to STATUS, without forking.
19596 as_fn_set_status ()
19597 {
19598 return $1
19599 } # as_fn_set_status
19600
19601 # as_fn_exit STATUS
19602 # -----------------
19603 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19604 as_fn_exit ()
19605 {
19606 set +e
19607 as_fn_set_status $1
19608 exit $1
19609 } # as_fn_exit
19610
19611 # as_fn_unset VAR
19612 # ---------------
19613 # Portably unset VAR.
19614 as_fn_unset ()
19615 {
19616 { eval $1=; unset $1;}
19617 }
19618 as_unset=as_fn_unset
19619
19620 # as_fn_append VAR VALUE
19621 # ----------------------
19622 # Append the text in VALUE to the end of the definition contained in VAR. Take
19623 # advantage of any shell optimizations that allow amortized linear growth over
19624 # repeated appends, instead of the typical quadratic growth present in naive
19625 # implementations.
19626 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19627 then :
19628 eval 'as_fn_append ()
19629 {
19630 eval $1+=\$2
19631 }'
19632 else $as_nop
19633 as_fn_append ()
19634 {
19635 eval $1=\$$1\$2
19636 }
19637 fi # as_fn_append
19638
19639 # as_fn_arith ARG...
19640 # ------------------
19641 # Perform arithmetic evaluation on the ARGs, and store the result in the
19642 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19643 # must be portable across $(()) and expr.
19644 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19645 then :
19646 eval 'as_fn_arith ()
19647 {
19648 as_val=$(( $* ))
19649 }'
19650 else $as_nop
19651 as_fn_arith ()
19652 {
19653 as_val=`expr "$@" || test $? -eq 1`
19654 }
19655 fi # as_fn_arith
19656
19657
19658 if expr a : '\(a\)' >/dev/null 2>&1 &&
19659 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19660 as_expr=expr
19661 else
19662 as_expr=false
19663 fi
19664
19665 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19666 as_basename=basename
19667 else
19668 as_basename=false
19669 fi
19670
19671 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19672 as_dirname=dirname
19673 else
19674 as_dirname=false
19675 fi
19676
19677 as_me=`$as_basename -- "$0" ||
19678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19679 X"$0" : 'X\(//\)$' \| \
19680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19681 printf "%s\n" X/"$0" |
19682 sed '/^.*\/\([^/][^/]*\)\/*$/{
19683 s//\1/
19684 q
19685 }
19686 /^X\/\(\/\/\)$/{
19687 s//\1/
19688 q
19689 }
19690 /^X\/\(\/\).*/{
19691 s//\1/
19692 q
19693 }
19694 s/.*/./; q'`
19695
19696 # Avoid depending upon Character Ranges.
19697 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19698 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19699 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19700 as_cr_digits='0123456789'
19701 as_cr_alnum=$as_cr_Letters$as_cr_digits
19702
19703
19704 # Determine whether it's possible to make 'echo' print without a newline.
19705 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19706 # for compatibility with existing Makefiles.
19707 ECHO_C= ECHO_N= ECHO_T=
19708 case `echo -n x` in #(((((
19709 -n*)
19710 case `echo 'xy\c'` in
19711 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19712 xy) ECHO_C='\c';;
19713 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19714 ECHO_T=' ';;
19715 esac;;
19716 *)
19717 ECHO_N='-n';;
19718 esac
19719
19720 # For backward compatibility with old third-party macros, we provide
19721 # the shell variables $as_echo and $as_echo_n. New code should use
19722 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19723 as_echo='printf %s\n'
19724 as_echo_n='printf %s'
19725
19726 rm -f conf$$ conf$$.exe conf$$.file
19727 if test -d conf$$.dir; then
19728 rm -f conf$$.dir/conf$$.file
19729 else
19730 rm -f conf$$.dir
19731 mkdir conf$$.dir 2>/dev/null
19732 fi
19733 if (echo >conf$$.file) 2>/dev/null; then
19734 if ln -s conf$$.file conf$$ 2>/dev/null; then
19735 as_ln_s='ln -s'
19736 # ... but there are two gotchas:
19737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19739 # In both cases, we have to default to `cp -pR'.
19740 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19741 as_ln_s='cp -pR'
19742 elif ln conf$$.file conf$$ 2>/dev/null; then
19743 as_ln_s=ln
19744 else
19745 as_ln_s='cp -pR'
19746 fi
19747 else
19748 as_ln_s='cp -pR'
19749 fi
19750 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19751 rmdir conf$$.dir 2>/dev/null
19752
19753
19754 # as_fn_mkdir_p
19755 # -------------
19756 # Create "$as_dir" as a directory, including parents if necessary.
19757 as_fn_mkdir_p ()
19758 {
19759
19760 case $as_dir in #(
19761 -*) as_dir=./$as_dir;;
19762 esac
19763 test -d "$as_dir" || eval $as_mkdir_p || {
19764 as_dirs=
19765 while :; do
19766 case $as_dir in #(
19767 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19768 *) as_qdir=$as_dir;;
19769 esac
19770 as_dirs="'$as_qdir' $as_dirs"
19771 as_dir=`$as_dirname -- "$as_dir" ||
19772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19773 X"$as_dir" : 'X\(//\)[^/]' \| \
19774 X"$as_dir" : 'X\(//\)$' \| \
19775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19776 printf "%s\n" X"$as_dir" |
19777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19778 s//\1/
19779 q
19780 }
19781 /^X\(\/\/\)[^/].*/{
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 test -d "$as_dir" && break
19795 done
19796 test -z "$as_dirs" || eval "mkdir $as_dirs"
19797 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19798
19799
19800 } # as_fn_mkdir_p
19801 if mkdir -p . 2>/dev/null; then
19802 as_mkdir_p='mkdir -p "$as_dir"'
19803 else
19804 test -d ./-p && rmdir ./-p
19805 as_mkdir_p=false
19806 fi
19807
19808
19809 # as_fn_executable_p FILE
19810 # -----------------------
19811 # Test if FILE is an executable regular file.
19812 as_fn_executable_p ()
19813 {
19814 test -f "$1" && test -x "$1"
19815 } # as_fn_executable_p
19816 as_test_x='test -x'
19817 as_executable_p=as_fn_executable_p
19818
19819 # Sed expression to map a string onto a valid CPP name.
19820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19821
19822 # Sed expression to map a string onto a valid variable name.
19823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19824
19825
19826 exec 6>&1
19827 ## ----------------------------------- ##
19828 ## Main body of $CONFIG_STATUS script. ##
19829 ## ----------------------------------- ##
19830 _ASEOF
19831 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19832
19833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19834 # Save the log message, to keep $0 and so on meaningful, and to
19835 # report actual input values of CONFIG_FILES etc. instead of their
19836 # values after options handling.
19837 ac_log="
19838 This file was extended by libxkbfile $as_me 1.1.1, which was
19839 generated by GNU Autoconf 2.71. Invocation command line was
19840
19841 CONFIG_FILES = $CONFIG_FILES
19842 CONFIG_HEADERS = $CONFIG_HEADERS
19843 CONFIG_LINKS = $CONFIG_LINKS
19844 CONFIG_COMMANDS = $CONFIG_COMMANDS
19845 $ $0 $@
19846
19847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19848 "
19849
19850 _ACEOF
19851
19852 case $ac_config_files in *"
19853 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19854 esac
19855
19856 case $ac_config_headers in *"
19857 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19858 esac
19859
19860
19861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19862 # Files that config.status was made for.
19863 config_files="$ac_config_files"
19864 config_headers="$ac_config_headers"
19865 config_commands="$ac_config_commands"
19866
19867 _ACEOF
19868
19869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870 ac_cs_usage="\
19871 \`$as_me' instantiates files and other configuration actions
19872 from templates according to the current configuration. Unless the files
19873 and actions are specified as TAGs, all are instantiated by default.
19874
19875 Usage: $0 [OPTION]... [TAG]...
19876
19877 -h, --help print this help, then exit
19878 -V, --version print version number and configuration settings, then exit
19879 --config print configuration, then exit
19880 -q, --quiet, --silent
19881 do not print progress messages
19882 -d, --debug don't remove temporary files
19883 --recheck update $as_me by reconfiguring in the same conditions
19884 --file=FILE[:TEMPLATE]
19885 instantiate the configuration file FILE
19886 --header=FILE[:TEMPLATE]
19887 instantiate the configuration header FILE
19888
19889 Configuration files:
19890 $config_files
19891
19892 Configuration headers:
19893 $config_headers
19894
19895 Configuration commands:
19896 $config_commands
19897
19898 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>."
19899
19900 _ACEOF
19901 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19902 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19904 ac_cs_config='$ac_cs_config_escaped'
19905 ac_cs_version="\\
19906 libxkbfile config.status 1.1.1
19907 configured by $0, generated by GNU Autoconf 2.71,
19908 with options \\"\$ac_cs_config\\"
19909
19910 Copyright (C) 2021 Free Software Foundation, Inc.
19911 This config.status script is free software; the Free Software Foundation
19912 gives unlimited permission to copy, distribute and modify it."
19913
19914 ac_pwd='$ac_pwd'
19915 srcdir='$srcdir'
19916 INSTALL='$INSTALL'
19917 MKDIR_P='$MKDIR_P'
19918 AWK='$AWK'
19919 test -n "\$AWK" || AWK=awk
19920 _ACEOF
19921
19922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19923 # The default lists apply if the user does not specify any file.
19924 ac_need_defaults=:
19925 while test $# != 0
19926 do
19927 case $1 in
19928 --*=?*)
19929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19930 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19931 ac_shift=:
19932 ;;
19933 --*=)
19934 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19935 ac_optarg=
19936 ac_shift=:
19937 ;;
19938 *)
19939 ac_option=$1
19940 ac_optarg=$2
19941 ac_shift=shift
19942 ;;
19943 esac
19944
19945 case $ac_option in
19946 # Handling of the options.
19947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19948 ac_cs_recheck=: ;;
19949 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19950 printf "%s\n" "$ac_cs_version"; exit ;;
19951 --config | --confi | --conf | --con | --co | --c )
19952 printf "%s\n" "$ac_cs_config"; exit ;;
19953 --debug | --debu | --deb | --de | --d | -d )
19954 debug=: ;;
19955 --file | --fil | --fi | --f )
19956 $ac_shift
19957 case $ac_optarg in
19958 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19959 '') as_fn_error $? "missing file argument" ;;
19960 esac
19961 as_fn_append CONFIG_FILES " '$ac_optarg'"
19962 ac_need_defaults=false;;
19963 --header | --heade | --head | --hea )
19964 $ac_shift
19965 case $ac_optarg in
19966 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19967 esac
19968 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19969 ac_need_defaults=false;;
19970 --he | --h)
19971 # Conflict between --help and --header
19972 as_fn_error $? "ambiguous option: \`$1'
19973 Try \`$0 --help' for more information.";;
19974 --help | --hel | -h )
19975 printf "%s\n" "$ac_cs_usage"; exit ;;
19976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19977 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19978 ac_cs_silent=: ;;
19979
19980 # This is an error.
19981 -*) as_fn_error $? "unrecognized option: \`$1'
19982 Try \`$0 --help' for more information." ;;
19983
19984 *) as_fn_append ac_config_targets " $1"
19985 ac_need_defaults=false ;;
19986
19987 esac
19988 shift
19989 done
19990
19991 ac_configure_extra_args=
19992
19993 if $ac_cs_silent; then
19994 exec 6>/dev/null
19995 ac_configure_extra_args="$ac_configure_extra_args --silent"
19996 fi
19997
19998 _ACEOF
19999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20000 if \$ac_cs_recheck; then
20001 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20002 shift
20003 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20004 CONFIG_SHELL='$SHELL'
20005 export CONFIG_SHELL
20006 exec "\$@"
20007 fi
20008
20009 _ACEOF
20010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20011 exec 5>>config.log
20012 {
20013 echo
20014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20015 ## Running $as_me. ##
20016 _ASBOX
20017 printf "%s\n" "$ac_log"
20018 } >&5
20019
20020 _ACEOF
20021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20022 #
20023 # INIT-COMMANDS
20024 #
20025 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20026
20027
20028 # The HP-UX ksh and POSIX shell print the target directory to stdout
20029 # if CDPATH is set.
20030 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20031
20032 sed_quote_subst='$sed_quote_subst'
20033 double_quote_subst='$double_quote_subst'
20034 delay_variable_subst='$delay_variable_subst'
20035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20038 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20039 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20040 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20041 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20042 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20043 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20044 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20045 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20046 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20047 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20048 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20049 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20050 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20051 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20052 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20053 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20054 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20055 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20056 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20057 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20058 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20059 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20060 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20061 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20062 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20063 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20064 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20065 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20066 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20067 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20068 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20069 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20070 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20071 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20072 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20073 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20074 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20075 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20076 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20077 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20078 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20079 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20080 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20081 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20082 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20083 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20084 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20085 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20086 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20087 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20088 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20089 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20090 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20091 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20092 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20093 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20094 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20095 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"`'
20096 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20097 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20098 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20099 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20100 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20101 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20102 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20103 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20104 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20105 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20106 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20107 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20108 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20109 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20110 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20111 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20112 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20113 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20114 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20115 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20116 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20117 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20118 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20119 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20120 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20121 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20122 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20123 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20124 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20125 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20126 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20127 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20128 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20129 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20130 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20131 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20132 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20133 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20134 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20135 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20136 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20137 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20138 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20139 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20140 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20141 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20142 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20143 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20144 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20145 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20146 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20147 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20148 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20149 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20150 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20151 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20152 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20153 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20154 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20155 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20156 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20157 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20158 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20159 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20160 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20161 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20162 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20163 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20164 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20165 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20166 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20167 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20168 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20169 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20170 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20171 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20172
20173 LTCC='$LTCC'
20174 LTCFLAGS='$LTCFLAGS'
20175 compiler='$compiler_DEFAULT'
20176
20177 # A function that is used when there is no print builtin or printf.
20178 func_fallback_echo ()
20179 {
20180 eval 'cat <<_LTECHO_EOF
20181 \$1
20182 _LTECHO_EOF'
20183 }
20184
20185 # Quote evaled strings.
20186 for var in SHELL \
20187 ECHO \
20188 PATH_SEPARATOR \
20189 SED \
20190 GREP \
20191 EGREP \
20192 FGREP \
20193 LD \
20194 NM \
20195 LN_S \
20196 lt_SP2NL \
20197 lt_NL2SP \
20198 reload_flag \
20199 FILECMD \
20200 OBJDUMP \
20201 deplibs_check_method \
20202 file_magic_cmd \
20203 file_magic_glob \
20204 want_nocaseglob \
20205 DLLTOOL \
20206 sharedlib_from_linklib_cmd \
20207 AR \
20208 archiver_list_spec \
20209 STRIP \
20210 RANLIB \
20211 CC \
20212 CFLAGS \
20213 compiler \
20214 lt_cv_sys_global_symbol_pipe \
20215 lt_cv_sys_global_symbol_to_cdecl \
20216 lt_cv_sys_global_symbol_to_import \
20217 lt_cv_sys_global_symbol_to_c_name_address \
20218 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20219 lt_cv_nm_interface \
20220 nm_file_list_spec \
20221 lt_cv_truncate_bin \
20222 lt_prog_compiler_no_builtin_flag \
20223 lt_prog_compiler_pic \
20224 lt_prog_compiler_wl \
20225 lt_prog_compiler_static \
20226 lt_cv_prog_compiler_c_o \
20227 need_locks \
20228 MANIFEST_TOOL \
20229 DSYMUTIL \
20230 NMEDIT \
20231 LIPO \
20232 OTOOL \
20233 OTOOL64 \
20234 shrext_cmds \
20235 export_dynamic_flag_spec \
20236 whole_archive_flag_spec \
20237 compiler_needs_object \
20238 with_gnu_ld \
20239 allow_undefined_flag \
20240 no_undefined_flag \
20241 hardcode_libdir_flag_spec \
20242 hardcode_libdir_separator \
20243 exclude_expsyms \
20244 include_expsyms \
20245 file_list_spec \
20246 variables_saved_for_relink \
20247 libname_spec \
20248 library_names_spec \
20249 soname_spec \
20250 install_override_mode \
20251 finish_eval \
20252 old_striplib \
20253 striplib; do
20254 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20255 *[\\\\\\\`\\"\\\$]*)
20256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20257 ;;
20258 *)
20259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20260 ;;
20261 esac
20262 done
20263
20264 # Double-quote double-evaled strings.
20265 for var in reload_cmds \
20266 old_postinstall_cmds \
20267 old_postuninstall_cmds \
20268 old_archive_cmds \
20269 extract_expsyms_cmds \
20270 old_archive_from_new_cmds \
20271 old_archive_from_expsyms_cmds \
20272 archive_cmds \
20273 archive_expsym_cmds \
20274 module_cmds \
20275 module_expsym_cmds \
20276 export_symbols_cmds \
20277 prelink_cmds \
20278 postlink_cmds \
20279 postinstall_cmds \
20280 postuninstall_cmds \
20281 finish_cmds \
20282 sys_lib_search_path_spec \
20283 configure_time_dlsearch_path \
20284 configure_time_lt_sys_library_path; do
20285 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20286 *[\\\\\\\`\\"\\\$]*)
20287 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20288 ;;
20289 *)
20290 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20291 ;;
20292 esac
20293 done
20294
20295 ac_aux_dir='$ac_aux_dir'
20296
20297 # See if we are running on zsh, and set the options that allow our
20298 # commands through without removal of \ escapes INIT.
20299 if test -n "\${ZSH_VERSION+set}"; then
20300 setopt NO_GLOB_SUBST
20301 fi
20302
20303
20304 PACKAGE='$PACKAGE'
20305 VERSION='$VERSION'
20306 RM='$RM'
20307 ofile='$ofile'
20308
20309
20310
20311
20312 _ACEOF
20313
20314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20315
20316 # Handling of arguments.
20317 for ac_config_target in $ac_config_targets
20318 do
20319 case $ac_config_target in
20320 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20321 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20322 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20323 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20324 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20325 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;;
20326
20327 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20328 esac
20329 done
20330
20331
20332 # If the user did not use the arguments to specify the items to instantiate,
20333 # then the envvar interface is used. Set only those that are not.
20334 # We use the long form for the default assignment because of an extremely
20335 # bizarre bug on SunOS 4.1.3.
20336 if $ac_need_defaults; then
20337 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20338 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20339 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20340 fi
20341
20342 # Have a temporary directory for convenience. Make it in the build tree
20343 # simply because there is no reason against having it here, and in addition,
20344 # creating and moving files from /tmp can sometimes cause problems.
20345 # Hook for its removal unless debugging.
20346 # Note that there is a small window in which the directory will not be cleaned:
20347 # after its creation but before its name has been assigned to `$tmp'.
20348 $debug ||
20349 {
20350 tmp= ac_tmp=
20351 trap 'exit_status=$?
20352 : "${ac_tmp:=$tmp}"
20353 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20354 ' 0
20355 trap 'as_fn_exit 1' 1 2 13 15
20356 }
20357 # Create a (secure) tmp directory for tmp files.
20358
20359 {
20360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20361 test -d "$tmp"
20362 } ||
20363 {
20364 tmp=./conf$$-$RANDOM
20365 (umask 077 && mkdir "$tmp")
20366 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20367 ac_tmp=$tmp
20368
20369 # Set up the scripts for CONFIG_FILES section.
20370 # No need to generate them if there are no CONFIG_FILES.
20371 # This happens for instance with `./config.status config.h'.
20372 if test -n "$CONFIG_FILES"; then
20373
20374
20375 ac_cr=`echo X | tr X '\015'`
20376 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20377 # But we know of no other shell where ac_cr would be empty at this
20378 # point, so we can use a bashism as a fallback.
20379 if test "x$ac_cr" = x; then
20380 eval ac_cr=\$\'\\r\'
20381 fi
20382 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20383 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20384 ac_cs_awk_cr='\\r'
20385 else
20386 ac_cs_awk_cr=$ac_cr
20387 fi
20388
20389 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20390 _ACEOF
20391
20392
20393 {
20394 echo "cat >conf$$subs.awk <<_ACEOF" &&
20395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20396 echo "_ACEOF"
20397 } >conf$$subs.sh ||
20398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20399 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20400 ac_delim='%!_!# '
20401 for ac_last_try in false false false false false :; do
20402 . ./conf$$subs.sh ||
20403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20404
20405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20406 if test $ac_delim_n = $ac_delim_num; then
20407 break
20408 elif $ac_last_try; then
20409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20410 else
20411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20412 fi
20413 done
20414 rm -f conf$$subs.sh
20415
20416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20417 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20418 _ACEOF
20419 sed -n '
20420 h
20421 s/^/S["/; s/!.*/"]=/
20422 p
20423 g
20424 s/^[^!]*!//
20425 :repl
20426 t repl
20427 s/'"$ac_delim"'$//
20428 t delim
20429 :nl
20430 h
20431 s/\(.\{148\}\)..*/\1/
20432 t more1
20433 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20434 p
20435 n
20436 b repl
20437 :more1
20438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20439 p
20440 g
20441 s/.\{148\}//
20442 t nl
20443 :delim
20444 h
20445 s/\(.\{148\}\)..*/\1/
20446 t more2
20447 s/["\\]/\\&/g; s/^/"/; s/$/"/
20448 p
20449 b
20450 :more2
20451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20452 p
20453 g
20454 s/.\{148\}//
20455 t delim
20456 ' <conf$$subs.awk | sed '
20457 /^[^""]/{
20458 N
20459 s/\n//
20460 }
20461 ' >>$CONFIG_STATUS || ac_write_fail=1
20462 rm -f conf$$subs.awk
20463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20464 _ACAWK
20465 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20466 for (key in S) S_is_set[key] = 1
20467 FS = ""
20468
20469 }
20470 {
20471 line = $ 0
20472 nfields = split(line, field, "@")
20473 substed = 0
20474 len = length(field[1])
20475 for (i = 2; i < nfields; i++) {
20476 key = field[i]
20477 keylen = length(key)
20478 if (S_is_set[key]) {
20479 value = S[key]
20480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20481 len += length(value) + length(field[++i])
20482 substed = 1
20483 } else
20484 len += 1 + keylen
20485 }
20486
20487 print line
20488 }
20489
20490 _ACAWK
20491 _ACEOF
20492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20493 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20494 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20495 else
20496 cat
20497 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20498 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20499 _ACEOF
20500
20501 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20502 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20503 # trailing colons and then remove the whole line if VPATH becomes empty
20504 # (actually we leave an empty line to preserve line numbers).
20505 if test "x$srcdir" = x.; then
20506 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20507 h
20508 s///
20509 s/^/:/
20510 s/[ ]*$/:/
20511 s/:\$(srcdir):/:/g
20512 s/:\${srcdir}:/:/g
20513 s/:@srcdir@:/:/g
20514 s/^:*//
20515 s/:*$//
20516 x
20517 s/\(=[ ]*\).*/\1/
20518 G
20519 s/\n//
20520 s/^[^=]*=[ ]*$//
20521 }'
20522 fi
20523
20524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20525 fi # test -n "$CONFIG_FILES"
20526
20527 # Set up the scripts for CONFIG_HEADERS section.
20528 # No need to generate them if there are no CONFIG_HEADERS.
20529 # This happens for instance with `./config.status Makefile'.
20530 if test -n "$CONFIG_HEADERS"; then
20531 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20532 BEGIN {
20533 _ACEOF
20534
20535 # Transform confdefs.h into an awk script `defines.awk', embedded as
20536 # here-document in config.status, that substitutes the proper values into
20537 # config.h.in to produce config.h.
20538
20539 # Create a delimiter string that does not exist in confdefs.h, to ease
20540 # handling of long lines.
20541 ac_delim='%!_!# '
20542 for ac_last_try in false false :; do
20543 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20544 if test -z "$ac_tt"; then
20545 break
20546 elif $ac_last_try; then
20547 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20548 else
20549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20550 fi
20551 done
20552
20553 # For the awk script, D is an array of macro values keyed by name,
20554 # likewise P contains macro parameters if any. Preserve backslash
20555 # newline sequences.
20556
20557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20558 sed -n '
20559 s/.\{148\}/&'"$ac_delim"'/g
20560 t rset
20561 :rset
20562 s/^[ ]*#[ ]*define[ ][ ]*/ /
20563 t def
20564 d
20565 :def
20566 s/\\$//
20567 t bsnl
20568 s/["\\]/\\&/g
20569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20570 D["\1"]=" \3"/p
20571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20572 d
20573 :bsnl
20574 s/["\\]/\\&/g
20575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20576 D["\1"]=" \3\\\\\\n"\\/p
20577 t cont
20578 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20579 t cont
20580 d
20581 :cont
20582 n
20583 s/.\{148\}/&'"$ac_delim"'/g
20584 t clear
20585 :clear
20586 s/\\$//
20587 t bsnlc
20588 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20589 d
20590 :bsnlc
20591 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20592 b cont
20593 ' <confdefs.h | sed '
20594 s/'"$ac_delim"'/"\\\
20595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20596
20597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20598 for (key in D) D_is_set[key] = 1
20599 FS = ""
20600 }
20601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20602 line = \$ 0
20603 split(line, arg, " ")
20604 if (arg[1] == "#") {
20605 defundef = arg[2]
20606 mac1 = arg[3]
20607 } else {
20608 defundef = substr(arg[1], 2)
20609 mac1 = arg[2]
20610 }
20611 split(mac1, mac2, "(") #)
20612 macro = mac2[1]
20613 prefix = substr(line, 1, index(line, defundef) - 1)
20614 if (D_is_set[macro]) {
20615 # Preserve the white space surrounding the "#".
20616 print prefix "define", macro P[macro] D[macro]
20617 next
20618 } else {
20619 # Replace #undef with comments. This is necessary, for example,
20620 # in the case of _POSIX_SOURCE, which is predefined and required
20621 # on some systems where configure will not decide to define it.
20622 if (defundef == "undef") {
20623 print "/*", prefix defundef, macro, "*/"
20624 next
20625 }
20626 }
20627 }
20628 { print }
20629 _ACAWK
20630 _ACEOF
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20633 fi # test -n "$CONFIG_HEADERS"
20634
20635
20636 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20637 shift
20638 for ac_tag
20639 do
20640 case $ac_tag in
20641 :[FHLC]) ac_mode=$ac_tag; continue;;
20642 esac
20643 case $ac_mode$ac_tag in
20644 :[FHL]*:*);;
20645 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20646 :[FH]-) ac_tag=-:-;;
20647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20648 esac
20649 ac_save_IFS=$IFS
20650 IFS=:
20651 set x $ac_tag
20652 IFS=$ac_save_IFS
20653 shift
20654 ac_file=$1
20655 shift
20656
20657 case $ac_mode in
20658 :L) ac_source=$1;;
20659 :[FH])
20660 ac_file_inputs=
20661 for ac_f
20662 do
20663 case $ac_f in
20664 -) ac_f="$ac_tmp/stdin";;
20665 *) # Look for the file first in the build tree, then in the source tree
20666 # (if the path is not absolute). The absolute path cannot be DOS-style,
20667 # because $ac_f cannot contain `:'.
20668 test -f "$ac_f" ||
20669 case $ac_f in
20670 [\\/$]*) false;;
20671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20672 esac ||
20673 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20674 esac
20675 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20676 as_fn_append ac_file_inputs " '$ac_f'"
20677 done
20678
20679 # Let's still pretend it is `configure' which instantiates (i.e., don't
20680 # use $as_me), people would be surprised to read:
20681 # /* config.h. Generated by config.status. */
20682 configure_input='Generated from '`
20683 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20684 `' by configure.'
20685 if test x"$ac_file" != x-; then
20686 configure_input="$ac_file. $configure_input"
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20688 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20689 fi
20690 # Neutralize special characters interpreted by sed in replacement strings.
20691 case $configure_input in #(
20692 *\&* | *\|* | *\\* )
20693 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20694 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20695 *) ac_sed_conf_input=$configure_input;;
20696 esac
20697
20698 case $ac_tag in
20699 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20701 esac
20702 ;;
20703 esac
20704
20705 ac_dir=`$as_dirname -- "$ac_file" ||
20706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20707 X"$ac_file" : 'X\(//\)[^/]' \| \
20708 X"$ac_file" : 'X\(//\)$' \| \
20709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20710 printf "%s\n" X"$ac_file" |
20711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20712 s//\1/
20713 q
20714 }
20715 /^X\(\/\/\)[^/].*/{
20716 s//\1/
20717 q
20718 }
20719 /^X\(\/\/\)$/{
20720 s//\1/
20721 q
20722 }
20723 /^X\(\/\).*/{
20724 s//\1/
20725 q
20726 }
20727 s/.*/./; q'`
20728 as_dir="$ac_dir"; as_fn_mkdir_p
20729 ac_builddir=.
20730
20731 case "$ac_dir" in
20732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20733 *)
20734 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20735 # A ".." for each directory in $ac_dir_suffix.
20736 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20737 case $ac_top_builddir_sub in
20738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20740 esac ;;
20741 esac
20742 ac_abs_top_builddir=$ac_pwd
20743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20744 # for backward compatibility:
20745 ac_top_builddir=$ac_top_build_prefix
20746
20747 case $srcdir in
20748 .) # We are building in place.
20749 ac_srcdir=.
20750 ac_top_srcdir=$ac_top_builddir_sub
20751 ac_abs_top_srcdir=$ac_pwd ;;
20752 [\\/]* | ?:[\\/]* ) # Absolute name.
20753 ac_srcdir=$srcdir$ac_dir_suffix;
20754 ac_top_srcdir=$srcdir
20755 ac_abs_top_srcdir=$srcdir ;;
20756 *) # Relative name.
20757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20758 ac_top_srcdir=$ac_top_build_prefix$srcdir
20759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20760 esac
20761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20762
20763
20764 case $ac_mode in
20765 :F)
20766 #
20767 # CONFIG_FILE
20768 #
20769
20770 case $INSTALL in
20771 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20772 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20773 esac
20774 ac_MKDIR_P=$MKDIR_P
20775 case $MKDIR_P in
20776 [\\/$]* | ?:[\\/]* ) ;;
20777 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20778 esac
20779 _ACEOF
20780
20781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20782 # If the template does not know about datarootdir, expand it.
20783 # FIXME: This hack should be removed a few years after 2.60.
20784 ac_datarootdir_hack=; ac_datarootdir_seen=
20785 ac_sed_dataroot='
20786 /datarootdir/ {
20787 p
20788 q
20789 }
20790 /@datadir@/p
20791 /@docdir@/p
20792 /@infodir@/p
20793 /@localedir@/p
20794 /@mandir@/p'
20795 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20796 *datarootdir*) ac_datarootdir_seen=yes;;
20797 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20799 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20802 ac_datarootdir_hack='
20803 s&@datadir@&$datadir&g
20804 s&@docdir@&$docdir&g
20805 s&@infodir@&$infodir&g
20806 s&@localedir@&$localedir&g
20807 s&@mandir@&$mandir&g
20808 s&\\\${datarootdir}&$datarootdir&g' ;;
20809 esac
20810 _ACEOF
20811
20812 # Neutralize VPATH when `$srcdir' = `.'.
20813 # Shell code in configure.ac might set extrasub.
20814 # FIXME: do we really want to maintain this feature?
20815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20816 ac_sed_extra="$ac_vpsub
20817 $extrasub
20818 _ACEOF
20819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20820 :t
20821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20822 s|@configure_input@|$ac_sed_conf_input|;t t
20823 s&@top_builddir@&$ac_top_builddir_sub&;t t
20824 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20825 s&@srcdir@&$ac_srcdir&;t t
20826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20827 s&@top_srcdir@&$ac_top_srcdir&;t t
20828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20829 s&@builddir@&$ac_builddir&;t t
20830 s&@abs_builddir@&$ac_abs_builddir&;t t
20831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20832 s&@INSTALL@&$ac_INSTALL&;t t
20833 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20834 $ac_datarootdir_hack
20835 "
20836 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20837 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20838
20839 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20840 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20841 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20842 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20844 which seems to be undefined. Please make sure it is defined" >&5
20845 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20846 which seems to be undefined. Please make sure it is defined" >&2;}
20847
20848 rm -f "$ac_tmp/stdin"
20849 case $ac_file in
20850 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20851 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20852 esac \
20853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20854 ;;
20855 :H)
20856 #
20857 # CONFIG_HEADER
20858 #
20859 if test x"$ac_file" != x-; then
20860 {
20861 printf "%s\n" "/* $configure_input */" >&1 \
20862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20863 } >"$ac_tmp/config.h" \
20864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20865 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20867 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20868 else
20869 rm -f "$ac_file"
20870 mv "$ac_tmp/config.h" "$ac_file" \
20871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20872 fi
20873 else
20874 printf "%s\n" "/* $configure_input */" >&1 \
20875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20876 || as_fn_error $? "could not create -" "$LINENO" 5
20877 fi
20878 # Compute "$ac_file"'s index in $config_headers.
20879 _am_arg="$ac_file"
20880 _am_stamp_count=1
20881 for _am_header in $config_headers :; do
20882 case $_am_header in
20883 $_am_arg | $_am_arg:* )
20884 break ;;
20885 * )
20886 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20887 esac
20888 done
20889 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20890 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20891 X"$_am_arg" : 'X\(//\)[^/]' \| \
20892 X"$_am_arg" : 'X\(//\)$' \| \
20893 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20894 printf "%s\n" X"$_am_arg" |
20895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20896 s//\1/
20897 q
20898 }
20899 /^X\(\/\/\)[^/].*/{
20900 s//\1/
20901 q
20902 }
20903 /^X\(\/\/\)$/{
20904 s//\1/
20905 q
20906 }
20907 /^X\(\/\).*/{
20908 s//\1/
20909 q
20910 }
20911 s/.*/./; q'`/stamp-h$_am_stamp_count
20912 ;;
20913
20914 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20915 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20916 ;;
20917 esac
20918
20919
20920 case $ac_file$ac_mode in
20921 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20922 # Older Autoconf quotes --file arguments for eval, but not when files
20923 # are listed without --file. Let's play safe and only enable the eval
20924 # if we detect the quoting.
20925 # TODO: see whether this extra hack can be removed once we start
20926 # requiring Autoconf 2.70 or later.
20927 case $CONFIG_FILES in #(
20928 *\'*) :
20929 eval set x "$CONFIG_FILES" ;; #(
20930 *) :
20931 set x $CONFIG_FILES ;; #(
20932 *) :
20933 ;;
20934 esac
20935 shift
20936 # Used to flag and report bootstrapping failures.
20937 am_rc=0
20938 for am_mf
20939 do
20940 # Strip MF so we end up with the name of the file.
20941 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20942 # Check whether this is an Automake generated Makefile which includes
20943 # dependency-tracking related rules and includes.
20944 # Grep'ing the whole file directly is not great: AIX grep has a line
20945 # limit of 2048, but all sed's we know have understand at least 4000.
20946 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20947 || continue
20948 am_dirpart=`$as_dirname -- "$am_mf" ||
20949 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20950 X"$am_mf" : 'X\(//\)[^/]' \| \
20951 X"$am_mf" : 'X\(//\)$' \| \
20952 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20953 printf "%s\n" X"$am_mf" |
20954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20955 s//\1/
20956 q
20957 }
20958 /^X\(\/\/\)[^/].*/{
20959 s//\1/
20960 q
20961 }
20962 /^X\(\/\/\)$/{
20963 s//\1/
20964 q
20965 }
20966 /^X\(\/\).*/{
20967 s//\1/
20968 q
20969 }
20970 s/.*/./; q'`
20971 am_filepart=`$as_basename -- "$am_mf" ||
20972 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20973 X"$am_mf" : 'X\(//\)$' \| \
20974 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20975 printf "%s\n" X/"$am_mf" |
20976 sed '/^.*\/\([^/][^/]*\)\/*$/{
20977 s//\1/
20978 q
20979 }
20980 /^X\/\(\/\/\)$/{
20981 s//\1/
20982 q
20983 }
20984 /^X\/\(\/\).*/{
20985 s//\1/
20986 q
20987 }
20988 s/.*/./; q'`
20989 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20990 && sed -e '/# am--include-marker/d' "$am_filepart" \
20991 | $MAKE -f - am--depfiles" >&5
20992 (cd "$am_dirpart" \
20993 && sed -e '/# am--include-marker/d' "$am_filepart" \
20994 | $MAKE -f - am--depfiles) >&5 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } || am_rc=$?
20998 done
20999 if test $am_rc -ne 0; then
21000 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21002 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21003 for automatic dependency tracking. If GNU make was not used, consider
21004 re-running the configure script with MAKE=\"gmake\" (or whatever is
21005 necessary). You can also try re-running configure with the
21006 '--disable-dependency-tracking' option to at least be able to build
21007 the package (albeit without support for automatic dependency tracking).
21008 See \`config.log' for more details" "$LINENO" 5; }
21009 fi
21010 { am_dirpart=; unset am_dirpart;}
21011 { am_filepart=; unset am_filepart;}
21012 { am_mf=; unset am_mf;}
21013 { am_rc=; unset am_rc;}
21014 rm -f conftest-deps.mk
21015 }
21016 ;;
21017 "libtool":C)
21018
21019 # See if we are running on zsh, and set the options that allow our
21020 # commands through without removal of \ escapes.
21021 if test -n "${ZSH_VERSION+set}"; then
21022 setopt NO_GLOB_SUBST
21023 fi
21024
21025 cfgfile=${ofile}T
21026 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21027 $RM "$cfgfile"
21028
21029 cat <<_LT_EOF >> "$cfgfile"
21030 #! $SHELL
21031 # Generated automatically by $as_me ($PACKAGE) $VERSION
21032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21033 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21034
21035 # Provide generalized library-building support services.
21036 # Written by Gordon Matzigkeit, 1996
21037
21038 # Copyright (C) 2014 Free Software Foundation, Inc.
21039 # This is free software; see the source for copying conditions. There is NO
21040 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21041
21042 # GNU Libtool is free software; you can redistribute it and/or modify
21043 # it under the terms of the GNU General Public License as published by
21044 # the Free Software Foundation; either version 2 of of the License, or
21045 # (at your option) any later version.
21046 #
21047 # As a special exception to the GNU General Public License, if you
21048 # distribute this file as part of a program or library that is built
21049 # using GNU Libtool, you may include this file under the same
21050 # distribution terms that you use for the rest of that program.
21051 #
21052 # GNU Libtool is distributed in the hope that it will be useful, but
21053 # WITHOUT ANY WARRANTY; without even the implied warranty of
21054 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21055 # GNU General Public License for more details.
21056 #
21057 # You should have received a copy of the GNU General Public License
21058 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21059
21060
21061 # The names of the tagged configurations supported by this script.
21062 available_tags=''
21063
21064 # Configured defaults for sys_lib_dlsearch_path munging.
21065 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21066
21067 # ### BEGIN LIBTOOL CONFIG
21068
21069 # Which release of libtool.m4 was used?
21070 macro_version=$macro_version
21071 macro_revision=$macro_revision
21072
21073 # Whether or not to build shared libraries.
21074 build_libtool_libs=$enable_shared
21075
21076 # Whether or not to build static libraries.
21077 build_old_libs=$enable_static
21078
21079 # What type of objects to build.
21080 pic_mode=$pic_mode
21081
21082 # Whether or not to optimize for fast installation.
21083 fast_install=$enable_fast_install
21084
21085 # Shared archive member basename,for filename based shared library versioning on AIX.
21086 shared_archive_member_spec=$shared_archive_member_spec
21087
21088 # Shell to use when invoking shell scripts.
21089 SHELL=$lt_SHELL
21090
21091 # An echo program that protects backslashes.
21092 ECHO=$lt_ECHO
21093
21094 # The PATH separator for the build system.
21095 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21096
21097 # The host system.
21098 host_alias=$host_alias
21099 host=$host
21100 host_os=$host_os
21101
21102 # The build system.
21103 build_alias=$build_alias
21104 build=$build
21105 build_os=$build_os
21106
21107 # A sed program that does not truncate output.
21108 SED=$lt_SED
21109
21110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21111 Xsed="\$SED -e 1s/^X//"
21112
21113 # A grep program that handles long lines.
21114 GREP=$lt_GREP
21115
21116 # An ERE matcher.
21117 EGREP=$lt_EGREP
21118
21119 # A literal string matcher.
21120 FGREP=$lt_FGREP
21121
21122 # A BSD- or MS-compatible name lister.
21123 NM=$lt_NM
21124
21125 # Whether we need soft or hard links.
21126 LN_S=$lt_LN_S
21127
21128 # What is the maximum length of a command?
21129 max_cmd_len=$max_cmd_len
21130
21131 # Object file suffix (normally "o").
21132 objext=$ac_objext
21133
21134 # Executable file suffix (normally "").
21135 exeext=$exeext
21136
21137 # whether the shell understands "unset".
21138 lt_unset=$lt_unset
21139
21140 # turn spaces into newlines.
21141 SP2NL=$lt_lt_SP2NL
21142
21143 # turn newlines into spaces.
21144 NL2SP=$lt_lt_NL2SP
21145
21146 # convert \$build file names to \$host format.
21147 to_host_file_cmd=$lt_cv_to_host_file_cmd
21148
21149 # convert \$build files to toolchain format.
21150 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21151
21152 # A file(cmd) program that detects file types.
21153 FILECMD=$lt_FILECMD
21154
21155 # An object symbol dumper.
21156 OBJDUMP=$lt_OBJDUMP
21157
21158 # Method to check whether dependent libraries are shared objects.
21159 deplibs_check_method=$lt_deplibs_check_method
21160
21161 # Command to use when deplibs_check_method = "file_magic".
21162 file_magic_cmd=$lt_file_magic_cmd
21163
21164 # How to find potential files when deplibs_check_method = "file_magic".
21165 file_magic_glob=$lt_file_magic_glob
21166
21167 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21168 want_nocaseglob=$lt_want_nocaseglob
21169
21170 # DLL creation program.
21171 DLLTOOL=$lt_DLLTOOL
21172
21173 # Command to associate shared and link libraries.
21174 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21175
21176 # The archiver.
21177 AR=$lt_AR
21178
21179 # Flags to create an archive (by configure).
21180 lt_ar_flags=$lt_ar_flags
21181
21182 # Flags to create an archive.
21183 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21184
21185 # How to feed a file listing to the archiver.
21186 archiver_list_spec=$lt_archiver_list_spec
21187
21188 # A symbol stripping program.
21189 STRIP=$lt_STRIP
21190
21191 # Commands used to install an old-style archive.
21192 RANLIB=$lt_RANLIB
21193 old_postinstall_cmds=$lt_old_postinstall_cmds
21194 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21195
21196 # Whether to use a lock for old archive extraction.
21197 lock_old_archive_extraction=$lock_old_archive_extraction
21198
21199 # A C compiler.
21200 LTCC=$lt_CC
21201
21202 # LTCC compiler flags.
21203 LTCFLAGS=$lt_CFLAGS
21204
21205 # Take the output of nm and produce a listing of raw symbols and C names.
21206 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21207
21208 # Transform the output of nm in a proper C declaration.
21209 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21210
21211 # Transform the output of nm into a list of symbols to manually relocate.
21212 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21213
21214 # Transform the output of nm in a C name address pair.
21215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21216
21217 # Transform the output of nm in a C name address pair when lib prefix is needed.
21218 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21219
21220 # The name lister interface.
21221 nm_interface=$lt_lt_cv_nm_interface
21222
21223 # Specify filename containing input files for \$NM.
21224 nm_file_list_spec=$lt_nm_file_list_spec
21225
21226 # The root where to search for dependent libraries,and where our libraries should be installed.
21227 lt_sysroot=$lt_sysroot
21228
21229 # Command to truncate a binary pipe.
21230 lt_truncate_bin=$lt_lt_cv_truncate_bin
21231
21232 # The name of the directory that contains temporary libtool files.
21233 objdir=$objdir
21234
21235 # Used to examine libraries when file_magic_cmd begins with "file".
21236 MAGIC_CMD=$MAGIC_CMD
21237
21238 # Must we lock files when doing compilation?
21239 need_locks=$lt_need_locks
21240
21241 # Manifest tool.
21242 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21243
21244 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21245 DSYMUTIL=$lt_DSYMUTIL
21246
21247 # Tool to change global to local symbols on Mac OS X.
21248 NMEDIT=$lt_NMEDIT
21249
21250 # Tool to manipulate fat objects and archives on Mac OS X.
21251 LIPO=$lt_LIPO
21252
21253 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21254 OTOOL=$lt_OTOOL
21255
21256 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21257 OTOOL64=$lt_OTOOL64
21258
21259 # Old archive suffix (normally "a").
21260 libext=$libext
21261
21262 # Shared library suffix (normally ".so").
21263 shrext_cmds=$lt_shrext_cmds
21264
21265 # The commands to extract the exported symbol list from a shared archive.
21266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21267
21268 # Variables whose values should be saved in libtool wrapper scripts and
21269 # restored at link time.
21270 variables_saved_for_relink=$lt_variables_saved_for_relink
21271
21272 # Do we need the "lib" prefix for modules?
21273 need_lib_prefix=$need_lib_prefix
21274
21275 # Do we need a version for libraries?
21276 need_version=$need_version
21277
21278 # Library versioning type.
21279 version_type=$version_type
21280
21281 # Shared library runtime path variable.
21282 runpath_var=$runpath_var
21283
21284 # Shared library path variable.
21285 shlibpath_var=$shlibpath_var
21286
21287 # Is shlibpath searched before the hard-coded library search path?
21288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21289
21290 # Format of library name prefix.
21291 libname_spec=$lt_libname_spec
21292
21293 # List of archive names. First name is the real one, the rest are links.
21294 # The last name is the one that the linker finds with -lNAME
21295 library_names_spec=$lt_library_names_spec
21296
21297 # The coded name of the library, if different from the real name.
21298 soname_spec=$lt_soname_spec
21299
21300 # Permission mode override for installation of shared libraries.
21301 install_override_mode=$lt_install_override_mode
21302
21303 # Command to use after installation of a shared archive.
21304 postinstall_cmds=$lt_postinstall_cmds
21305
21306 # Command to use after uninstallation of a shared archive.
21307 postuninstall_cmds=$lt_postuninstall_cmds
21308
21309 # Commands used to finish a libtool library installation in a directory.
21310 finish_cmds=$lt_finish_cmds
21311
21312 # As "finish_cmds", except a single script fragment to be evaled but
21313 # not shown.
21314 finish_eval=$lt_finish_eval
21315
21316 # Whether we should hardcode library paths into libraries.
21317 hardcode_into_libs=$hardcode_into_libs
21318
21319 # Compile-time system search path for libraries.
21320 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21321
21322 # Detected run-time system search path for libraries.
21323 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21324
21325 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21326 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21327
21328 # Whether dlopen is supported.
21329 dlopen_support=$enable_dlopen
21330
21331 # Whether dlopen of programs is supported.
21332 dlopen_self=$enable_dlopen_self
21333
21334 # Whether dlopen of statically linked programs is supported.
21335 dlopen_self_static=$enable_dlopen_self_static
21336
21337 # Commands to strip libraries.
21338 old_striplib=$lt_old_striplib
21339 striplib=$lt_striplib
21340
21341
21342 # The linker used to build libraries.
21343 LD=$lt_LD
21344
21345 # How to create reloadable object files.
21346 reload_flag=$lt_reload_flag
21347 reload_cmds=$lt_reload_cmds
21348
21349 # Commands used to build an old-style archive.
21350 old_archive_cmds=$lt_old_archive_cmds
21351
21352 # A language specific compiler.
21353 CC=$lt_compiler
21354
21355 # Is the compiler the GNU compiler?
21356 with_gcc=$GCC
21357
21358 # Compiler flag to turn off builtin functions.
21359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21360
21361 # Additional compiler flags for building library objects.
21362 pic_flag=$lt_lt_prog_compiler_pic
21363
21364 # How to pass a linker flag through the compiler.
21365 wl=$lt_lt_prog_compiler_wl
21366
21367 # Compiler flag to prevent dynamic linking.
21368 link_static_flag=$lt_lt_prog_compiler_static
21369
21370 # Does compiler simultaneously support -c and -o options?
21371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21372
21373 # Whether or not to add -lc for building shared libraries.
21374 build_libtool_need_lc=$archive_cmds_need_lc
21375
21376 # Whether or not to disallow shared libs when runtime libs are static.
21377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21378
21379 # Compiler flag to allow reflexive dlopens.
21380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21381
21382 # Compiler flag to generate shared objects directly from archives.
21383 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21384
21385 # Whether the compiler copes with passing no objects directly.
21386 compiler_needs_object=$lt_compiler_needs_object
21387
21388 # Create an old-style archive from a shared archive.
21389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21390
21391 # Create a temporary old-style archive to link instead of a shared archive.
21392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21393
21394 # Commands used to build a shared archive.
21395 archive_cmds=$lt_archive_cmds
21396 archive_expsym_cmds=$lt_archive_expsym_cmds
21397
21398 # Commands used to build a loadable module if different from building
21399 # a shared archive.
21400 module_cmds=$lt_module_cmds
21401 module_expsym_cmds=$lt_module_expsym_cmds
21402
21403 # Whether we are building with GNU ld or not.
21404 with_gnu_ld=$lt_with_gnu_ld
21405
21406 # Flag that allows shared libraries with undefined symbols to be built.
21407 allow_undefined_flag=$lt_allow_undefined_flag
21408
21409 # Flag that enforces no undefined symbols.
21410 no_undefined_flag=$lt_no_undefined_flag
21411
21412 # Flag to hardcode \$libdir into a binary during linking.
21413 # This must work even if \$libdir does not exist
21414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21415
21416 # Whether we need a single "-rpath" flag with a separated argument.
21417 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21418
21419 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21420 # DIR into the resulting binary.
21421 hardcode_direct=$hardcode_direct
21422
21423 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21424 # DIR into the resulting binary and the resulting library dependency is
21425 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21426 # library is relocated.
21427 hardcode_direct_absolute=$hardcode_direct_absolute
21428
21429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21430 # into the resulting binary.
21431 hardcode_minus_L=$hardcode_minus_L
21432
21433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21434 # into the resulting binary.
21435 hardcode_shlibpath_var=$hardcode_shlibpath_var
21436
21437 # Set to "yes" if building a shared library automatically hardcodes DIR
21438 # into the library and all subsequent libraries and executables linked
21439 # against it.
21440 hardcode_automatic=$hardcode_automatic
21441
21442 # Set to yes if linker adds runtime paths of dependent libraries
21443 # to runtime path list.
21444 inherit_rpath=$inherit_rpath
21445
21446 # Whether libtool must link a program against all its dependency libraries.
21447 link_all_deplibs=$link_all_deplibs
21448
21449 # Set to "yes" if exported symbols are required.
21450 always_export_symbols=$always_export_symbols
21451
21452 # The commands to list exported symbols.
21453 export_symbols_cmds=$lt_export_symbols_cmds
21454
21455 # Symbols that should not be listed in the preloaded symbols.
21456 exclude_expsyms=$lt_exclude_expsyms
21457
21458 # Symbols that must always be exported.
21459 include_expsyms=$lt_include_expsyms
21460
21461 # Commands necessary for linking programs (against libraries) with templates.
21462 prelink_cmds=$lt_prelink_cmds
21463
21464 # Commands necessary for finishing linking programs.
21465 postlink_cmds=$lt_postlink_cmds
21466
21467 # Specify filename containing input files.
21468 file_list_spec=$lt_file_list_spec
21469
21470 # How to hardcode a shared library path into an executable.
21471 hardcode_action=$hardcode_action
21472
21473 # ### END LIBTOOL CONFIG
21474
21475 _LT_EOF
21476
21477 cat <<'_LT_EOF' >> "$cfgfile"
21478
21479 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21480
21481 # func_munge_path_list VARIABLE PATH
21482 # -----------------------------------
21483 # VARIABLE is name of variable containing _space_ separated list of
21484 # directories to be munged by the contents of PATH, which is string
21485 # having a format:
21486 # "DIR[:DIR]:"
21487 # string "DIR[ DIR]" will be prepended to VARIABLE
21488 # ":DIR[:DIR]"
21489 # string "DIR[ DIR]" will be appended to VARIABLE
21490 # "DIRP[:DIRP]::[DIRA:]DIRA"
21491 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21492 # "DIRA[ DIRA]" will be appended to VARIABLE
21493 # "DIR[:DIR]"
21494 # VARIABLE will be replaced by "DIR[ DIR]"
21495 func_munge_path_list ()
21496 {
21497 case x$2 in
21498 x)
21499 ;;
21500 *:)
21501 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21502 ;;
21503 x:*)
21504 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21505 ;;
21506 *::*)
21507 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21508 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21509 ;;
21510 *)
21511 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21512 ;;
21513 esac
21514 }
21515
21516
21517 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21518 func_cc_basename ()
21519 {
21520 for cc_temp in $*""; do
21521 case $cc_temp in
21522 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21523 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21524 \-*) ;;
21525 *) break;;
21526 esac
21527 done
21528 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21529 }
21530
21531
21532 # ### END FUNCTIONS SHARED WITH CONFIGURE
21533
21534 _LT_EOF
21535
21536 case $host_os in
21537 aix3*)
21538 cat <<\_LT_EOF >> "$cfgfile"
21539 # AIX sometimes has problems with the GCC collect2 program. For some
21540 # reason, if we set the COLLECT_NAMES environment variable, the problems
21541 # vanish in a puff of smoke.
21542 if test set != "${COLLECT_NAMES+set}"; then
21543 COLLECT_NAMES=
21544 export COLLECT_NAMES
21545 fi
21546 _LT_EOF
21547 ;;
21548 esac
21549
21550
21551
21552 ltmain=$ac_aux_dir/ltmain.sh
21553
21554
21555 # We use sed instead of cat because bash on DJGPP gets confused if
21556 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21557 # text mode, it properly converts lines to CR/LF. This bash problem
21558 # is reportedly fixed, but why not run on old versions too?
21559 $SED '$q' "$ltmain" >> "$cfgfile" \
21560 || (rm -f "$cfgfile"; exit 1)
21561
21562 mv -f "$cfgfile" "$ofile" ||
21563 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21564 chmod +x "$ofile"
21565
21566 ;;
21567
21568 esac
21569 done # for ac_tag
21570
21571
21572 as_fn_exit 0
21573 _ACEOF
21574 ac_clean_files=$ac_clean_files_save
21575
21576 test $ac_write_fail = 0 ||
21577 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21578
21579
21580 # configure is writing to config.log, and then calls config.status.
21581 # config.status does its own redirection, appending to config.log.
21582 # Unfortunately, on DOS this fails, as config.log is still kept open
21583 # by configure, so config.status won't be able to write to it; its
21584 # output is simply discarded. So we exec the FD to /dev/null,
21585 # effectively closing config.log, so it can be properly (re)opened and
21586 # appended to by config.status. When coming back to configure, we
21587 # need to make the FD available again.
21588 if test "$no_create" != yes; then
21589 ac_cs_success=:
21590 ac_config_status_args=
21591 test "$silent" = yes &&
21592 ac_config_status_args="$ac_config_status_args --quiet"
21593 exec 5>/dev/null
21594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21595 exec 5>>config.log
21596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21597 # would make configure fail if this is the last instruction.
21598 $ac_cs_success || as_fn_exit 1
21599 fi
21600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21602 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21603 fi
21604
21605
21606