configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libxkbfile 1.1.2.
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.2'
626 PACKAGE_STRING='libxkbfile 1.1.2'
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 enable_largefile
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 LT_SYS_LIBRARY_PATH
834 PKG_CONFIG
835 PKG_CONFIG_PATH
836 PKG_CONFIG_LIBDIR
837 XKBFILE_CFLAGS
838 XKBFILE_LIBS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 runstatedir='${localstatedir}/run'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: \`$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: \`$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -runstatedir | --runstatedir | --runstatedi | --runstated \
1129 | --runstate | --runstat | --runsta | --runst | --runs \
1130 | --run | --ru | --r)
1131 ac_prev=runstatedir ;;
1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134 | --run=* | --ru=* | --r=*)
1135 runstatedir=$ac_optarg ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: \`$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1197
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 ;;
1253
1254 esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir runstatedir
1275 do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 printf "%s\n" X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352 else
1353 ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures libxkbfile 1.1.2 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of libxkbfile 1.1.2:";;
1459 esac
1460 cat <<\_ACEOF
1461
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --enable-dependency-tracking
1473 do not reject slow dependency extractors
1474 --disable-dependency-tracking
1475 speeds up one-time build
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --disable-selective-werror
1478 Turn off selective compiler errors. (default:
1479 enabled)
1480 --enable-strict-compilation
1481 Enable all warnings from compiler and make them
1482 errors (default: disabled)
1483 --disable-largefile omit support for large files
1484
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1489 both]
1490 --with-aix-soname=aix|svr4|both
1491 shared library versioning (aka "SONAME") variant to
1492 provide on AIX, [default=aix].
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1495 compiler's sysroot if not specified).
1496
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 LT_SYS_LIBRARY_PATH
1506 User-defined run-time library search path.
1507 PKG_CONFIG path to pkg-config utility
1508 PKG_CONFIG_PATH
1509 directories to add to pkg-config's search path
1510 PKG_CONFIG_LIBDIR
1511 path overriding pkg-config's built-in search path
1512 XKBFILE_CFLAGS
1513 C compiler flags for XKBFILE, overriding pkg-config
1514 XKBFILE_LIBS
1515 linker flags for XKBFILE, overriding pkg-config
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for configure.gnu first; this name is used for a wrapper for
1567 # Metaconfig's "Configure" on case-insensitive file systems.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 libxkbfile configure 1.1.2
1585 generated by GNU Autoconf 2.71
1586
1587 Copyright (C) 2021 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest.beam
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 printf "%s\n" "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext
1624 then :
1625 ac_retval=0
1626 else $as_nop
1627 printf "%s\n" "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_compile
1636
1637 # ac_fn_c_try_link LINENO
1638 # -----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_link ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 printf "%s\n" "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 test -x conftest$ac_exeext
1665 }
1666 then :
1667 ac_retval=0
1668 else $as_nop
1669 printf "%s\n" "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673 fi
1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676 # interfere with the next link command; also delete a directory that is
1677 # left behind by Apple's compiler. We do this before executing the actions.
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_link
1683
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 printf %s "checking for $2... " >&6; }
1693 if eval test \${$3+y}
1694 then :
1695 printf %s "(cached) " >&6
1696 else $as_nop
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"
1703 then :
1704 eval "$3=yes"
1705 else $as_nop
1706 eval "$3=no"
1707 fi
1708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1709 fi
1710 eval ac_res=\$$3
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 printf "%s\n" "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_header_compile
1716
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 printf %s "checking for $2... " >&6; }
1725 if eval test \${$3+y}
1726 then :
1727 printf %s "(cached) " >&6
1728 else $as_nop
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733 #define $2 innocuous_$2
1734
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (void); below. */
1737
1738 #include <limits.h>
1739 #undef $2
1740
1741 /* Override any GCC internal prototype to avoid an error.
1742 Use char because int might match the return type of a GCC
1743 builtin and then its argument prototype would still apply. */
1744 #ifdef __cplusplus
1745 extern "C"
1746 #endif
1747 char $2 (void);
1748 /* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751 #if defined __stub_$2 || defined __stub___$2
1752 choke me
1753 #endif
1754
1755 int
1756 main (void)
1757 {
1758 return $2 ();
1759 ;
1760 return 0;
1761 }
1762 _ACEOF
1763 if ac_fn_c_try_link "$LINENO"
1764 then :
1765 eval "$3=yes"
1766 else $as_nop
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1770 conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 printf "%s\n" "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_func
1778
1779 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1780 # ------------------------------------------------------------------
1781 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1782 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1783 ac_fn_check_decl ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 as_decl_name=`echo $2|sed 's/ *(.*//'`
1787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1788 printf %s "checking whether $as_decl_name is declared... " >&6; }
1789 if eval test \${$3+y}
1790 then :
1791 printf %s "(cached) " >&6
1792 else $as_nop
1793 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1794 eval ac_save_FLAGS=\$$6
1795 as_fn_append $6 " $5"
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 int
1800 main (void)
1801 {
1802 #ifndef $as_decl_name
1803 #ifdef __cplusplus
1804 (void) $as_decl_use;
1805 #else
1806 (void) $as_decl_name;
1807 #endif
1808 #endif
1809
1810 ;
1811 return 0;
1812 }
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"
1815 then :
1816 eval "$3=yes"
1817 else $as_nop
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1821 eval $6=\$ac_save_FLAGS
1822
1823 fi
1824 eval ac_res=\$$3
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 printf "%s\n" "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_check_decl
1830 ac_configure_args_raw=
1831 for ac_arg
1832 do
1833 case $ac_arg in
1834 *\'*)
1835 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 esac
1837 as_fn_append ac_configure_args_raw " '$ac_arg'"
1838 done
1839
1840 case $ac_configure_args_raw in
1841 *$as_nl*)
1842 ac_safe_unquote= ;;
1843 *)
1844 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1845 ac_unsafe_a="$ac_unsafe_z#~"
1846 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1847 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1848 esac
1849
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by libxkbfile $as_me 1.1.2, which was
1855 generated by GNU Autoconf 2.71. Invocation command line was
1856
1857 $ $0$ac_configure_args_raw
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889 IFS=$as_save_IFS
1890 case $as_dir in #(((
1891 '') as_dir=./ ;;
1892 */) ;;
1893 *) as_dir=$as_dir/ ;;
1894 esac
1895 printf "%s\n" "PATH: $as_dir"
1896 done
1897 IFS=$as_save_IFS
1898
1899 } >&5
1900
1901 cat >&5 <<_ACEOF
1902
1903
1904 ## ----------- ##
1905 ## Core tests. ##
1906 ## ----------- ##
1907
1908 _ACEOF
1909
1910
1911 # Keep a trace of the command line.
1912 # Strip out --no-create and --no-recursion so they do not pile up.
1913 # Strip out --silent because we don't want to record it for future runs.
1914 # Also quote any args containing shell meta-characters.
1915 # Make two passes to allow for proper duplicate-argument suppression.
1916 ac_configure_args=
1917 ac_configure_args0=
1918 ac_configure_args1=
1919 ac_must_keep_next=false
1920 for ac_pass in 1 2
1921 do
1922 for ac_arg
1923 do
1924 case $ac_arg in
1925 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1926 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1927 | -silent | --silent | --silen | --sile | --sil)
1928 continue ;;
1929 *\'*)
1930 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 esac
1932 case $ac_pass in
1933 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1934 2)
1935 as_fn_append ac_configure_args1 " '$ac_arg'"
1936 if test $ac_must_keep_next = true; then
1937 ac_must_keep_next=false # Got value, back to normal.
1938 else
1939 case $ac_arg in
1940 *=* | --config-cache | -C | -disable-* | --disable-* \
1941 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1942 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1943 | -with-* | --with-* | -without-* | --without-* | --x)
1944 case "$ac_configure_args0 " in
1945 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1946 esac
1947 ;;
1948 -* ) ac_must_keep_next=true ;;
1949 esac
1950 fi
1951 as_fn_append ac_configure_args " '$ac_arg'"
1952 ;;
1953 esac
1954 done
1955 done
1956 { ac_configure_args0=; unset ac_configure_args0;}
1957 { ac_configure_args1=; unset ac_configure_args1;}
1958
1959 # When interrupted or exit'd, cleanup temporary files, and complete
1960 # config.log. We remove comments because anyway the quotes in there
1961 # would cause problems or look ugly.
1962 # WARNING: Use '\'' to represent an apostrophe within the trap.
1963 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1964 trap 'exit_status=$?
1965 # Sanitize IFS.
1966 IFS=" "" $as_nl"
1967 # Save into config.log some information that might help in debugging.
1968 {
1969 echo
1970
1971 printf "%s\n" "## ---------------- ##
1972 ## Cache variables. ##
1973 ## ---------------- ##"
1974 echo
1975 # The following way of writing the cache mishandles newlines in values,
1976 (
1977 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in #(
1980 *${as_nl}*)
1981 case $ac_var in #(
1982 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1983 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1984 esac
1985 case $ac_var in #(
1986 _ | IFS | as_nl) ;; #(
1987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1988 *) { eval $ac_var=; unset $ac_var;} ;;
1989 esac ;;
1990 esac
1991 done
1992 (set) 2>&1 |
1993 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1994 *${as_nl}ac_space=\ *)
1995 sed -n \
1996 "s/'\''/'\''\\\\'\'''\''/g;
1997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1998 ;; #(
1999 *)
2000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001 ;;
2002 esac |
2003 sort
2004 )
2005 echo
2006
2007 printf "%s\n" "## ----------------- ##
2008 ## Output variables. ##
2009 ## ----------------- ##"
2010 echo
2011 for ac_var in $ac_subst_vars
2012 do
2013 eval ac_val=\$$ac_var
2014 case $ac_val in
2015 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016 esac
2017 printf "%s\n" "$ac_var='\''$ac_val'\''"
2018 done | sort
2019 echo
2020
2021 if test -n "$ac_subst_files"; then
2022 printf "%s\n" "## ------------------- ##
2023 ## File substitutions. ##
2024 ## ------------------- ##"
2025 echo
2026 for ac_var in $ac_subst_files
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 printf "%s\n" "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035 fi
2036
2037 if test -s confdefs.h; then
2038 printf "%s\n" "## ----------- ##
2039 ## confdefs.h. ##
2040 ## ----------- ##"
2041 echo
2042 cat confdefs.h
2043 echo
2044 fi
2045 test "$ac_signal" != 0 &&
2046 printf "%s\n" "$as_me: caught signal $ac_signal"
2047 printf "%s\n" "$as_me: exit $exit_status"
2048 } >&5
2049 rm -f core *.core core.conftest.* &&
2050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2051 exit $exit_status
2052 ' 0
2053 for ac_signal in 1 2 13 15; do
2054 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2055 done
2056 ac_signal=0
2057
2058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2059 rm -f -r conftest* confdefs.h
2060
2061 printf "%s\n" "/* confdefs.h */" > confdefs.h
2062
2063 # Predefined preprocessor variables.
2064
2065 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2066
2067 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2068
2069 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2070
2071 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2072
2073 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2074
2075 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2076
2077
2078 # Let the site file select an alternate cache file if it wants to.
2079 # Prefer an explicitly selected file to automatically selected ones.
2080 if test -n "$CONFIG_SITE"; then
2081 ac_site_files="$CONFIG_SITE"
2082 elif test "x$prefix" != xNONE; then
2083 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2084 else
2085 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2086 fi
2087
2088 for ac_site_file in $ac_site_files
2089 do
2090 case $ac_site_file in #(
2091 */*) :
2092 ;; #(
2093 *) :
2094 ac_site_file=./$ac_site_file ;;
2095 esac
2096 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2098 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2099 sed 's/^/| /' "$ac_site_file" >&5
2100 . "$ac_site_file" \
2101 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2102 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2103 as_fn_error $? "failed to load site script $ac_site_file
2104 See \`config.log' for more details" "$LINENO" 5; }
2105 fi
2106 done
2107
2108 if test -r "$cache_file"; then
2109 # Some versions of bash will fail to source /dev/null (special files
2110 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2111 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2113 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2114 case $cache_file in
2115 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2116 *) . "./$cache_file";;
2117 esac
2118 fi
2119 else
2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2121 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2122 >$cache_file
2123 fi
2124
2125 # Test code for whether the C compiler supports C89 (global declarations)
2126 ac_c_conftest_c89_globals='
2127 /* Does the compiler advertise C89 conformance?
2128 Do not test the value of __STDC__, because some compilers set it to 0
2129 while being otherwise adequately conformant. */
2130 #if !defined __STDC__
2131 # error "Compiler does not advertise C89 conformance"
2132 #endif
2133
2134 #include <stddef.h>
2135 #include <stdarg.h>
2136 struct stat;
2137 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2138 struct buf { int x; };
2139 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2140 static char *e (char **p, 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 extern void free (void *);
2192
2193 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2194 // dprintf is used instead of fprintf to avoid needing to declare
2195 // FILE and stderr.
2196 #define debug(...) dprintf (2, __VA_ARGS__)
2197 #define showlist(...) puts (#__VA_ARGS__)
2198 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2199 static void
2200 test_varargs_macros (void)
2201 {
2202 int x = 1234;
2203 int y = 5678;
2204 debug ("Flag");
2205 debug ("X = %d\n", x);
2206 showlist (The first, second, and third items.);
2207 report (x>y, "x is %d but y is %d", x, y);
2208 }
2209
2210 // Check long long types.
2211 #define BIG64 18446744073709551615ull
2212 #define BIG32 4294967295ul
2213 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2214 #if !BIG_OK
2215 #error "your preprocessor is broken"
2216 #endif
2217 #if BIG_OK
2218 #else
2219 #error "your preprocessor is broken"
2220 #endif
2221 static long long int bignum = -9223372036854775807LL;
2222 static unsigned long long int ubignum = BIG64;
2223
2224 struct incomplete_array
2225 {
2226 int datasize;
2227 double data[];
2228 };
2229
2230 struct named_init {
2231 int number;
2232 const wchar_t *name;
2233 double average;
2234 };
2235
2236 typedef const char *ccp;
2237
2238 static inline int
2239 test_restrict (ccp restrict text)
2240 {
2241 // See if C++-style comments work.
2242 // Iterate through items via the restricted pointer.
2243 // Also check for declarations in for loops.
2244 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2245 continue;
2246 return 0;
2247 }
2248
2249 // Check varargs and va_copy.
2250 static bool
2251 test_varargs (const char *format, ...)
2252 {
2253 va_list args;
2254 va_start (args, format);
2255 va_list args_copy;
2256 va_copy (args_copy, args);
2257
2258 const char *str = "";
2259 int number = 0;
2260 float fnumber = 0;
2261
2262 while (*format)
2263 {
2264 switch (*format++)
2265 {
2266 case '\''s'\'': // string
2267 str = va_arg (args_copy, const char *);
2268 break;
2269 case '\''d'\'': // int
2270 number = va_arg (args_copy, int);
2271 break;
2272 case '\''f'\'': // float
2273 fnumber = va_arg (args_copy, double);
2274 break;
2275 default:
2276 break;
2277 }
2278 }
2279 va_end (args_copy);
2280 va_end (args);
2281
2282 return *str && number && fnumber;
2283 }
2284 '
2285
2286 # Test code for whether the C compiler supports C99 (body of main).
2287 ac_c_conftest_c99_main='
2288 // Check bool.
2289 _Bool success = false;
2290 success |= (argc != 0);
2291
2292 // Check restrict.
2293 if (test_restrict ("String literal") == 0)
2294 success = true;
2295 char *restrict newvar = "Another string";
2296
2297 // Check varargs.
2298 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2299 test_varargs_macros ();
2300
2301 // Check flexible array members.
2302 struct incomplete_array *ia =
2303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2304 ia->datasize = 10;
2305 for (int i = 0; i < ia->datasize; ++i)
2306 ia->data[i] = i * 1.234;
2307
2308 // Check named initializers.
2309 struct named_init ni = {
2310 .number = 34,
2311 .name = L"Test wide string",
2312 .average = 543.34343,
2313 };
2314
2315 ni.number = 58;
2316
2317 int dynamic_array[ni.number];
2318 dynamic_array[0] = argv[0][0];
2319 dynamic_array[ni.number - 1] = 543;
2320
2321 // work around unused variable warnings
2322 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2323 || dynamic_array[ni.number - 1] != 543);
2324 '
2325
2326 # Test code for whether the C compiler supports C11 (global declarations)
2327 ac_c_conftest_c11_globals='
2328 // Does the compiler advertise C11 conformance?
2329 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2330 # error "Compiler does not advertise C11 conformance"
2331 #endif
2332
2333 // Check _Alignas.
2334 char _Alignas (double) aligned_as_double;
2335 char _Alignas (0) no_special_alignment;
2336 extern char aligned_as_int;
2337 char _Alignas (0) _Alignas (int) aligned_as_int;
2338
2339 // Check _Alignof.
2340 enum
2341 {
2342 int_alignment = _Alignof (int),
2343 int_array_alignment = _Alignof (int[100]),
2344 char_alignment = _Alignof (char)
2345 };
2346 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2347
2348 // Check _Noreturn.
2349 int _Noreturn does_not_return (void) { for (;;) continue; }
2350
2351 // Check _Static_assert.
2352 struct test_static_assert
2353 {
2354 int x;
2355 _Static_assert (sizeof (int) <= sizeof (long int),
2356 "_Static_assert does not work in struct");
2357 long int y;
2358 };
2359
2360 // Check UTF-8 literals.
2361 #define u8 syntax error!
2362 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2363
2364 // Check duplicate typedefs.
2365 typedef long *long_ptr;
2366 typedef long int *long_ptr;
2367 typedef long_ptr long_ptr;
2368
2369 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2370 struct anonymous
2371 {
2372 union {
2373 struct { int i; int j; };
2374 struct { int k; long int l; } w;
2375 };
2376 int m;
2377 } v1;
2378 '
2379
2380 # Test code for whether the C compiler supports C11 (body of main).
2381 ac_c_conftest_c11_main='
2382 _Static_assert ((offsetof (struct anonymous, i)
2383 == offsetof (struct anonymous, w.k)),
2384 "Anonymous union alignment botch");
2385 v1.i = 2;
2386 v1.w.k = 5;
2387 ok |= v1.i != 5;
2388 '
2389
2390 # Test code for whether the C compiler supports C11 (complete).
2391 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2392 ${ac_c_conftest_c99_globals}
2393 ${ac_c_conftest_c11_globals}
2394
2395 int
2396 main (int argc, char **argv)
2397 {
2398 int ok = 0;
2399 ${ac_c_conftest_c89_main}
2400 ${ac_c_conftest_c99_main}
2401 ${ac_c_conftest_c11_main}
2402 return ok;
2403 }
2404 "
2405
2406 # Test code for whether the C compiler supports C99 (complete).
2407 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2408 ${ac_c_conftest_c99_globals}
2409
2410 int
2411 main (int argc, char **argv)
2412 {
2413 int ok = 0;
2414 ${ac_c_conftest_c89_main}
2415 ${ac_c_conftest_c99_main}
2416 return ok;
2417 }
2418 "
2419
2420 # Test code for whether the C compiler supports C89 (complete).
2421 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2422
2423 int
2424 main (int argc, char **argv)
2425 {
2426 int ok = 0;
2427 ${ac_c_conftest_c89_main}
2428 return ok;
2429 }
2430 "
2431
2432 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2433 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2434 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2435 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2436 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2437 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2438 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2439 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2440 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2441
2442 # Auxiliary files required by this configure script.
2443 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2444
2445 # Locations in which to look for auxiliary files.
2446 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2447
2448 # Search for a directory containing all of the required auxiliary files,
2449 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2450 # If we don't find one directory that contains all the files we need,
2451 # we report the set of missing files from the *first* directory in
2452 # $ac_aux_dir_candidates and give up.
2453 ac_missing_aux_files=""
2454 ac_first_candidate=:
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 as_found=false
2458 for as_dir in $ac_aux_dir_candidates
2459 do
2460 IFS=$as_save_IFS
2461 case $as_dir in #(((
2462 '') as_dir=./ ;;
2463 */) ;;
2464 *) as_dir=$as_dir/ ;;
2465 esac
2466 as_found=:
2467
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2469 ac_aux_dir_found=yes
2470 ac_install_sh=
2471 for ac_aux in $ac_aux_files
2472 do
2473 # As a special case, if "install-sh" is required, that requirement
2474 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2475 # and $ac_install_sh is set appropriately for whichever one is found.
2476 if test x"$ac_aux" = x"install-sh"
2477 then
2478 if test -f "${as_dir}install-sh"; then
2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2480 ac_install_sh="${as_dir}install-sh -c"
2481 elif test -f "${as_dir}install.sh"; then
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2483 ac_install_sh="${as_dir}install.sh -c"
2484 elif test -f "${as_dir}shtool"; then
2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2486 ac_install_sh="${as_dir}shtool install -c"
2487 else
2488 ac_aux_dir_found=no
2489 if $ac_first_candidate; then
2490 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2491 else
2492 break
2493 fi
2494 fi
2495 else
2496 if test -f "${as_dir}${ac_aux}"; then
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2498 else
2499 ac_aux_dir_found=no
2500 if $ac_first_candidate; then
2501 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2502 else
2503 break
2504 fi
2505 fi
2506 fi
2507 done
2508 if test "$ac_aux_dir_found" = yes; then
2509 ac_aux_dir="$as_dir"
2510 break
2511 fi
2512 ac_first_candidate=false
2513
2514 as_found=false
2515 done
2516 IFS=$as_save_IFS
2517 if $as_found
2518 then :
2519
2520 else $as_nop
2521 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2522 fi
2523
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 if test -f "${ac_aux_dir}config.guess"; then
2530 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2531 fi
2532 if test -f "${ac_aux_dir}config.sub"; then
2533 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2534 fi
2535 if test -f "$ac_aux_dir/configure"; then
2536 ac_configure="$SHELL ${ac_aux_dir}configure"
2537 fi
2538
2539 # Check that the precious variables saved in the cache have kept the same
2540 # value.
2541 ac_cache_corrupted=false
2542 for ac_var in $ac_precious_vars; do
2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2544 eval ac_new_set=\$ac_env_${ac_var}_set
2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2546 eval ac_new_val=\$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2548 set,)
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,set)
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,);;
2557 *)
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w=`echo x $ac_old_val`
2561 ac_new_val_w=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted=:
2566 else
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\$ac_old_val
2570 fi
2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2575 fi;;
2576 esac
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2579 case $ac_new_val in
2580 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg=$ac_var=$ac_new_val ;;
2582 esac
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 esac
2587 fi
2588 done
2589 if $ac_cache_corrupted; then
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2595 and start over" "$LINENO" 5
2596 fi
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609 ac_config_headers="$ac_config_headers config.h"
2610
2611
2612 # Initialize Automake
2613 am__api_version='1.16'
2614
2615
2616
2617 # Find a good install program. We prefer a C program (faster),
2618 # so one script is as good as another. But avoid the broken or
2619 # incompatible versions:
2620 # SysV /etc/install, /usr/sbin/install
2621 # SunOS /usr/etc/install
2622 # IRIX /sbin/install
2623 # AIX /bin/install
2624 # AmigaOS /C/install, which installs bootblocks on floppy discs
2625 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2626 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2627 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2628 # OS/2's system install, which has a completely different semantic
2629 # ./install, which can be erroneously created by make from ./install.sh.
2630 # Reject install programs that cannot install multiple files.
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2632 printf %s "checking for a BSD-compatible install... " >&6; }
2633 if test -z "$INSTALL"; then
2634 if test ${ac_cv_path_install+y}
2635 then :
2636 printf %s "(cached) " >&6
2637 else $as_nop
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 case $as_dir in #(((
2643 '') as_dir=./ ;;
2644 */) ;;
2645 *) as_dir=$as_dir/ ;;
2646 esac
2647 # Account for fact that we put trailing slashes in our PATH walk.
2648 case $as_dir in #((
2649 ./ | /[cC]/* | \
2650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2652 /usr/ucb/* ) ;;
2653 *)
2654 # OSF1 and SCO ODT 3.0 have their own names for install.
2655 # Don't use installbsd from OSF since it installs stuff as root
2656 # by default.
2657 for ac_prog in ginstall scoinst install; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2660 if test $ac_prog = install &&
2661 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662 # AIX install. It has an incompatible calling convention.
2663 :
2664 elif test $ac_prog = install &&
2665 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # program-specific install script used by HP pwplus--don't use.
2667 :
2668 else
2669 rm -rf conftest.one conftest.two conftest.dir
2670 echo one > conftest.one
2671 echo two > conftest.two
2672 mkdir conftest.dir
2673 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2674 test -s conftest.one && test -s conftest.two &&
2675 test -s conftest.dir/conftest.one &&
2676 test -s conftest.dir/conftest.two
2677 then
2678 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2679 break 3
2680 fi
2681 fi
2682 fi
2683 done
2684 done
2685 ;;
2686 esac
2687
2688 done
2689 IFS=$as_save_IFS
2690
2691 rm -rf conftest.one conftest.two conftest.dir
2692
2693 fi
2694 if test ${ac_cv_path_install+y}; then
2695 INSTALL=$ac_cv_path_install
2696 else
2697 # As a last resort, use the slow shell script. Don't cache a
2698 # value for INSTALL within a source directory, because that will
2699 # break other packages using the cache if that directory is
2700 # removed, or if the value is a relative name.
2701 INSTALL=$ac_install_sh
2702 fi
2703 fi
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2705 printf "%s\n" "$INSTALL" >&6; }
2706
2707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2708 # It thinks the first close brace ends the variable substitution.
2709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2710
2711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2712
2713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2714
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2716 printf %s "checking whether build environment is sane... " >&6; }
2717 # Reject unsafe characters in $srcdir or the absolute working directory
2718 # name. Accept space and tab only in the latter.
2719 am_lf='
2720 '
2721 case `pwd` in
2722 *[\\\"\#\$\&\'\`$am_lf]*)
2723 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2724 esac
2725 case $srcdir in
2726 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2727 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2728 esac
2729
2730 # Do 'set' in a subshell so we don't clobber the current shell's
2731 # arguments. Must try -L first in case configure is actually a
2732 # symlink; some systems play weird games with the mod time of symlinks
2733 # (eg FreeBSD returns the mod time of the symlink's containing
2734 # directory).
2735 if (
2736 am_has_slept=no
2737 for am_try in 1 2; do
2738 echo "timestamp, slept: $am_has_slept" > conftest.file
2739 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2740 if test "$*" = "X"; then
2741 # -L didn't work.
2742 set X `ls -t "$srcdir/configure" conftest.file`
2743 fi
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
2751 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2752 alias in your environment" "$LINENO" 5
2753 fi
2754 if test "$2" = conftest.file || test $am_try -eq 2; then
2755 break
2756 fi
2757 # Just in case.
2758 sleep 1
2759 am_has_slept=yes
2760 done
2761 test "$2" = conftest.file
2762 )
2763 then
2764 # Ok.
2765 :
2766 else
2767 as_fn_error $? "newly created file is older than distributed files!
2768 Check your system clock" "$LINENO" 5
2769 fi
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2771 printf "%s\n" "yes" >&6; }
2772 # If we didn't sleep, we still need to ensure time stamps of config.status and
2773 # generated files are strictly newer.
2774 am_sleep_pid=
2775 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2776 ( sleep 1 ) &
2777 am_sleep_pid=$!
2778 fi
2779
2780 rm -f conftest.file
2781
2782 test "$program_prefix" != NONE &&
2783 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2784 # Use a double $ so make ignores it.
2785 test "$program_suffix" != NONE &&
2786 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2787 # Double any \ or $.
2788 # By default was `s,x,x', remove it if useless.
2789 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2790 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2791
2792
2793 # Expand $ac_aux_dir to an absolute path.
2794 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2795
2796
2797 if test x"${MISSING+set}" != xset; then
2798 MISSING="\${SHELL} '$am_aux_dir/missing'"
2799 fi
2800 # Use eval to expand $SHELL
2801 if eval "$MISSING --is-lightweight"; then
2802 am_missing_run="$MISSING "
2803 else
2804 am_missing_run=
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2806 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2807 fi
2808
2809 if test x"${install_sh+set}" != xset; then
2810 case $am_aux_dir in
2811 *\ * | *\ *)
2812 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2813 *)
2814 install_sh="\${SHELL} $am_aux_dir/install-sh"
2815 esac
2816 fi
2817
2818 # Installed binaries are usually stripped using 'strip' when the user
2819 # run "make install-strip". However 'strip' might not be the right
2820 # tool to use in cross-compilation environments, therefore Automake
2821 # will honor the 'STRIP' environment variable to overrule this program.
2822 if test "$cross_compiling" != no; then
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}strip; ac_word=$2
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 printf %s "checking for $ac_word... " >&6; }
2828 if test ${ac_cv_prog_STRIP+y}
2829 then :
2830 printf %s "(cached) " >&6
2831 else $as_nop
2832 if test -n "$STRIP"; then
2833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 STRIP=$ac_cv_prog_STRIP
2857 if test -n "$STRIP"; then
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2859 printf "%s\n" "$STRIP" >&6; }
2860 else
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 printf "%s\n" "no" >&6; }
2863 fi
2864
2865
2866 fi
2867 if test -z "$ac_cv_prog_STRIP"; then
2868 ac_ct_STRIP=$STRIP
2869 # Extract the first word of "strip", so it can be a program name with args.
2870 set dummy strip; ac_word=$2
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 printf %s "checking for $ac_word... " >&6; }
2873 if test ${ac_cv_prog_ac_ct_STRIP+y}
2874 then :
2875 printf %s "(cached) " >&6
2876 else $as_nop
2877 if test -n "$ac_ct_STRIP"; then
2878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 case $as_dir in #(((
2885 '') as_dir=./ ;;
2886 */) ;;
2887 *) as_dir=$as_dir/ ;;
2888 esac
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_ac_ct_STRIP="strip"
2892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2902 if test -n "$ac_ct_STRIP"; then
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2904 printf "%s\n" "$ac_ct_STRIP" >&6; }
2905 else
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 printf "%s\n" "no" >&6; }
2908 fi
2909
2910 if test "x$ac_ct_STRIP" = x; then
2911 STRIP=":"
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2918 esac
2919 STRIP=$ac_ct_STRIP
2920 fi
2921 else
2922 STRIP="$ac_cv_prog_STRIP"
2923 fi
2924
2925 fi
2926 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2927
2928
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2930 printf %s "checking for a race-free mkdir -p... " >&6; }
2931 if test -z "$MKDIR_P"; then
2932 if test ${ac_cv_path_mkdir+y}
2933 then :
2934 printf %s "(cached) " >&6
2935 else $as_nop
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2938 do
2939 IFS=$as_save_IFS
2940 case $as_dir in #(((
2941 '') as_dir=./ ;;
2942 */) ;;
2943 *) as_dir=$as_dir/ ;;
2944 esac
2945 for ac_prog in mkdir gmkdir; do
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2948 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2949 'mkdir ('*'coreutils) '* | \
2950 'BusyBox '* | \
2951 'mkdir (fileutils) '4.1*)
2952 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2953 break 3;;
2954 esac
2955 done
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961
2962 test -d ./--version && rmdir ./--version
2963 if test ${ac_cv_path_mkdir+y}; then
2964 MKDIR_P="$ac_cv_path_mkdir -p"
2965 else
2966 # As a last resort, use the slow shell script. Don't cache a
2967 # value for MKDIR_P within a source directory, because that will
2968 # break other packages using the cache if that directory is
2969 # removed, or if the value is a relative name.
2970 MKDIR_P="$ac_install_sh -d"
2971 fi
2972 fi
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2974 printf "%s\n" "$MKDIR_P" >&6; }
2975
2976 for ac_prog in gawk mawk nawk awk
2977 do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 printf %s "checking for $ac_word... " >&6; }
2982 if test ${ac_cv_prog_AWK+y}
2983 then :
2984 printf %s "(cached) " >&6
2985 else $as_nop
2986 if test -n "$AWK"; then
2987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 case $as_dir in #(((
2994 '') as_dir=./ ;;
2995 */) ;;
2996 *) as_dir=$as_dir/ ;;
2997 esac
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_AWK="$ac_prog"
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 AWK=$ac_cv_prog_AWK
3011 if test -n "$AWK"; then
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3013 printf "%s\n" "$AWK" >&6; }
3014 else
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 printf "%s\n" "no" >&6; }
3017 fi
3018
3019
3020 test -n "$AWK" && break
3021 done
3022
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3024 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3025 set x ${MAKE-make}
3026 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3027 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else $as_nop
3031 cat >conftest.make <<\_ACEOF
3032 SHELL = /bin/sh
3033 all:
3034 @echo '@@@%%%=$(MAKE)=@@@%%%'
3035 _ACEOF
3036 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3037 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3038 *@@@%%%=?*=@@@%%%*)
3039 eval ac_cv_prog_make_${ac_make}_set=yes;;
3040 *)
3041 eval ac_cv_prog_make_${ac_make}_set=no;;
3042 esac
3043 rm -f conftest.make
3044 fi
3045 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047 printf "%s\n" "yes" >&6; }
3048 SET_MAKE=
3049 else
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 printf "%s\n" "no" >&6; }
3052 SET_MAKE="MAKE=${MAKE-make}"
3053 fi
3054
3055 rm -rf .tst 2>/dev/null
3056 mkdir .tst 2>/dev/null
3057 if test -d .tst; then
3058 am__leading_dot=.
3059 else
3060 am__leading_dot=_
3061 fi
3062 rmdir .tst 2>/dev/null
3063
3064 # Check whether --enable-silent-rules was given.
3065 if test ${enable_silent_rules+y}
3066 then :
3067 enableval=$enable_silent_rules;
3068 fi
3069
3070 case $enable_silent_rules in # (((
3071 yes) AM_DEFAULT_VERBOSITY=0;;
3072 no) AM_DEFAULT_VERBOSITY=1;;
3073 *) AM_DEFAULT_VERBOSITY=1;;
3074 esac
3075 am_make=${MAKE-make}
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3077 printf %s "checking whether $am_make supports nested variables... " >&6; }
3078 if test ${am_cv_make_support_nested_variables+y}
3079 then :
3080 printf %s "(cached) " >&6
3081 else $as_nop
3082 if printf "%s\n" 'TRUE=$(BAR$(V))
3083 BAR0=false
3084 BAR1=true
3085 V=1
3086 am__doit:
3087 @$(TRUE)
3088 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3089 am_cv_make_support_nested_variables=yes
3090 else
3091 am_cv_make_support_nested_variables=no
3092 fi
3093 fi
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3095 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3096 if test $am_cv_make_support_nested_variables = yes; then
3097 AM_V='$(V)'
3098 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3099 else
3100 AM_V=$AM_DEFAULT_VERBOSITY
3101 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3102 fi
3103 AM_BACKSLASH='\'
3104
3105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3107 # is not polluted with repeated "-I."
3108 am__isrc=' -I$(srcdir)'
3109 # test to see if srcdir already configured
3110 if test -f $srcdir/config.status; then
3111 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3112 fi
3113 fi
3114
3115 # test whether we have cygpath
3116 if test -z "$CYGPATH_W"; then
3117 if (cygpath --version) >/dev/null 2>/dev/null; then
3118 CYGPATH_W='cygpath -w'
3119 else
3120 CYGPATH_W=echo
3121 fi
3122 fi
3123
3124
3125 # Define the identity of the package.
3126 PACKAGE='libxkbfile'
3127 VERSION='1.1.2'
3128
3129
3130 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3131
3132
3133 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3134
3135 # Some tools Automake needs.
3136
3137 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3138
3139
3140 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3141
3142
3143 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3144
3145
3146 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3147
3148
3149 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3150
3151 # For better backward compatibility. To be removed once Automake 1.9.x
3152 # dies out for good. For more background, see:
3153 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3154 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3155 mkdir_p='$(MKDIR_P)'
3156
3157 # We need awk for the "check" target (and possibly the TAP driver). The
3158 # system "awk" is bad on some platforms.
3159 # Always define AMTAR for backward compatibility. Yes, it's still used
3160 # in the wild :-( We should find a proper way to deprecate it ...
3161 AMTAR='$${TAR-tar}'
3162
3163
3164 # We'll loop over all known methods to create a tar archive until one works.
3165 _am_tools='gnutar pax cpio none'
3166
3167 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168
3169
3170
3171
3172
3173 # Variables for tags utilities; see am/tags.am
3174 if test -z "$CTAGS"; then
3175 CTAGS=ctags
3176 fi
3177
3178 if test -z "$ETAGS"; then
3179 ETAGS=etags
3180 fi
3181
3182 if test -z "$CSCOPE"; then
3183 CSCOPE=cscope
3184 fi
3185
3186
3187
3188 # POSIX will say in a future version that running "rm -f" with no argument
3189 # is OK; and we want to be able to make that assumption in our Makefile
3190 # recipes. So use an aggressive probe to check that the usage we want is
3191 # actually supported "in the wild" to an acceptable degree.
3192 # See automake bug#10828.
3193 # To make any issue more visible, cause the running configure to be aborted
3194 # by default if the 'rm' program in use doesn't match our expectations; the
3195 # user can still override this though.
3196 if rm -f && rm -fr && rm -rf; then : OK; else
3197 cat >&2 <<'END'
3198 Oops!
3199
3200 Your 'rm' program seems unable to run without file operands specified
3201 on the command line, even when the '-f' option is present. This is contrary
3202 to the behaviour of most rm programs out there, and not conforming with
3203 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3204
3205 Please tell bug-automake@gnu.org about your system, including the value
3206 of your $PATH and any error possibly output before this message. This
3207 can help us improve future automake versions.
3208
3209 END
3210 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3211 echo 'Configuration will proceed anyway, since you have set the' >&2
3212 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3213 echo >&2
3214 else
3215 cat >&2 <<'END'
3216 Aborting the configuration process, to ensure you take notice of the issue.
3217
3218 You can download and install GNU coreutils to get an 'rm' implementation
3219 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3220
3221 If you want to complete the configuration process using your problematic
3222 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3223 to "yes", and re-run configure.
3224
3225 END
3226 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3227 fi
3228 fi
3229
3230
3231 # Initialize libtool
3232 case `pwd` in
3233 *\ * | *\ *)
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3235 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3236 esac
3237
3238
3239
3240 macro_version='2.4.7'
3241 macro_revision='2.4.7'
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256 ltmain=$ac_aux_dir/ltmain.sh
3257
3258
3259
3260 # Make sure we can run config.sub.
3261 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3262 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3263
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3265 printf %s "checking build system type... " >&6; }
3266 if test ${ac_cv_build+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else $as_nop
3270 ac_build_alias=$build_alias
3271 test "x$ac_build_alias" = x &&
3272 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3273 test "x$ac_build_alias" = x &&
3274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3275 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3276 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3277
3278 fi
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3280 printf "%s\n" "$ac_cv_build" >&6; }
3281 case $ac_cv_build in
3282 *-*-*) ;;
3283 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3284 esac
3285 build=$ac_cv_build
3286 ac_save_IFS=$IFS; IFS='-'
3287 set x $ac_cv_build
3288 shift
3289 build_cpu=$1
3290 build_vendor=$2
3291 shift; shift
3292 # Remember, the first character of IFS is used to create $*,
3293 # except with old shells:
3294 build_os=$*
3295 IFS=$ac_save_IFS
3296 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3297
3298
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3300 printf %s "checking host system type... " >&6; }
3301 if test ${ac_cv_host+y}
3302 then :
3303 printf %s "(cached) " >&6
3304 else $as_nop
3305 if test "x$host_alias" = x; then
3306 ac_cv_host=$ac_cv_build
3307 else
3308 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3309 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3310 fi
3311
3312 fi
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3314 printf "%s\n" "$ac_cv_host" >&6; }
3315 case $ac_cv_host in
3316 *-*-*) ;;
3317 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3318 esac
3319 host=$ac_cv_host
3320 ac_save_IFS=$IFS; IFS='-'
3321 set x $ac_cv_host
3322 shift
3323 host_cpu=$1
3324 host_vendor=$2
3325 shift; shift
3326 # Remember, the first character of IFS is used to create $*,
3327 # except with old shells:
3328 host_os=$*
3329 IFS=$ac_save_IFS
3330 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3331
3332
3333 # Backslashify metacharacters that are still active within
3334 # double-quoted strings.
3335 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3336
3337 # Same as above, but do not quote variable references.
3338 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3339
3340 # Sed substitution to delay expansion of an escaped shell variable in a
3341 # double_quote_subst'ed string.
3342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3343
3344 # Sed substitution to delay expansion of an escaped single quote.
3345 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3346
3347 # Sed substitution to avoid accidental globbing in evaled expressions
3348 no_glob_subst='s/\*/\\\*/g'
3349
3350 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3353
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3355 printf %s "checking how to print strings... " >&6; }
3356 # Test print first, because it will be a builtin if present.
3357 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3358 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3359 ECHO='print -r --'
3360 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3361 ECHO='printf %s\n'
3362 else
3363 # Use this function as a fallback that always works.
3364 func_fallback_echo ()
3365 {
3366 eval 'cat <<_LTECHO_EOF
3367 $1
3368 _LTECHO_EOF'
3369 }
3370 ECHO='func_fallback_echo'
3371 fi
3372
3373 # func_echo_all arg...
3374 # Invoke $ECHO with all args, space-separated.
3375 func_echo_all ()
3376 {
3377 $ECHO ""
3378 }
3379
3380 case $ECHO in
3381 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3382 printf "%s\n" "printf" >&6; } ;;
3383 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3384 printf "%s\n" "print -r" >&6; } ;;
3385 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3386 printf "%s\n" "cat" >&6; } ;;
3387 esac
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411 DEPDIR="${am__leading_dot}deps"
3412
3413 ac_config_commands="$ac_config_commands depfiles"
3414
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3416 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3417 cat > confinc.mk << 'END'
3418 am__doit:
3419 @echo this is the am__doit target >confinc.out
3420 .PHONY: am__doit
3421 END
3422 am__include="#"
3423 am__quote=
3424 # BSD make does it like this.
3425 echo '.include "confinc.mk" # ignored' > confmf.BSD
3426 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3427 echo 'include confinc.mk # ignored' > confmf.GNU
3428 _am_result=no
3429 for s in GNU BSD; do
3430 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3431 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }
3435 case $?:`cat confinc.out 2>/dev/null` in #(
3436 '0:this is the am__doit target') :
3437 case $s in #(
3438 BSD) :
3439 am__include='.include' am__quote='"' ;; #(
3440 *) :
3441 am__include='include' am__quote='' ;;
3442 esac ;; #(
3443 *) :
3444 ;;
3445 esac
3446 if test "$am__include" != "#"; then
3447 _am_result="yes ($s style)"
3448 break
3449 fi
3450 done
3451 rm -f confinc.* confmf.*
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3453 printf "%s\n" "${_am_result}" >&6; }
3454
3455 # Check whether --enable-dependency-tracking was given.
3456 if test ${enable_dependency_tracking+y}
3457 then :
3458 enableval=$enable_dependency_tracking;
3459 fi
3460
3461 if test "x$enable_dependency_tracking" != xno; then
3462 am_depcomp="$ac_aux_dir/depcomp"
3463 AMDEPBACKSLASH='\'
3464 am__nodep='_no'
3465 fi
3466 if test "x$enable_dependency_tracking" != xno; then
3467 AMDEP_TRUE=
3468 AMDEP_FALSE='#'
3469 else
3470 AMDEP_TRUE='#'
3471 AMDEP_FALSE=
3472 fi
3473
3474
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3482 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 printf %s "checking for $ac_word... " >&6; }
3485 if test ${ac_cv_prog_CC+y}
3486 then :
3487 printf %s "(cached) " >&6
3488 else $as_nop
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495 IFS=$as_save_IFS
3496 case $as_dir in #(((
3497 '') as_dir=./ ;;
3498 */) ;;
3499 *) as_dir=$as_dir/ ;;
3500 esac
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3505 break 2
3506 fi
3507 done
3508 done
3509 IFS=$as_save_IFS
3510
3511 fi
3512 fi
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 printf "%s\n" "$CC" >&6; }
3517 else
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 printf "%s\n" "no" >&6; }
3520 fi
3521
3522
3523 fi
3524 if test -z "$ac_cv_prog_CC"; then
3525 ac_ct_CC=$CC
3526 # Extract the first word of "gcc", so it can be a program name with args.
3527 set dummy gcc; ac_word=$2
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 printf %s "checking for $ac_word... " >&6; }
3530 if test ${ac_cv_prog_ac_ct_CC+y}
3531 then :
3532 printf %s "(cached) " >&6
3533 else $as_nop
3534 if test -n "$ac_ct_CC"; then
3535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540 IFS=$as_save_IFS
3541 case $as_dir in #(((
3542 '') as_dir=./ ;;
3543 */) ;;
3544 *) as_dir=$as_dir/ ;;
3545 esac
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 printf "%s\n" "$ac_ct_CC" >&6; }
3562 else
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 printf "%s\n" "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 printf %s "checking for $ac_word... " >&6; }
3588 if test ${ac_cv_prog_CC+y}
3589 then :
3590 printf %s "(cached) " >&6
3591 else $as_nop
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 case $as_dir in #(((
3600 '') as_dir=./ ;;
3601 */) ;;
3602 *) as_dir=$as_dir/ ;;
3603 esac
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_CC="${ac_tool_prefix}cc"
3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 printf "%s\n" "$CC" >&6; }
3620 else
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 printf "%s\n" "no" >&6; }
3623 fi
3624
3625
3626 fi
3627 fi
3628 if test -z "$CC"; then
3629 # Extract the first word of "cc", so it can be a program name with args.
3630 set dummy cc; ac_word=$2
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 printf %s "checking for $ac_word... " >&6; }
3633 if test ${ac_cv_prog_CC+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else $as_nop
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 ac_prog_rejected=no
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3655 fi
3656 ac_cv_prog_CC="cc"
3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660 done
3661 done
3662 IFS=$as_save_IFS
3663
3664 if test $ac_prog_rejected = yes; then
3665 # We found a bogon in the path, so make sure we never use it.
3666 set dummy $ac_cv_prog_CC
3667 shift
3668 if test $# != 0; then
3669 # We chose a different compiler from the bogus one.
3670 # However, it has the same basename, so the bogon will be chosen
3671 # first if we set CC to just the basename; use the full file name.
3672 shift
3673 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3674 fi
3675 fi
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 printf "%s\n" "$CC" >&6; }
3682 else
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3685 fi
3686
3687
3688 fi
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 for ac_prog in cl.exe
3692 do
3693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 printf %s "checking for $ac_word... " >&6; }
3697 if test ${ac_cv_prog_CC+y}
3698 then :
3699 printf %s "(cached) " >&6
3700 else $as_nop
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707 IFS=$as_save_IFS
3708 case $as_dir in #(((
3709 '') as_dir=./ ;;
3710 */) ;;
3711 *) as_dir=$as_dir/ ;;
3712 esac
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719 done
3720 done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 printf "%s\n" "$CC" >&6; }
3729 else
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 printf "%s\n" "no" >&6; }
3732 fi
3733
3734
3735 test -n "$CC" && break
3736 done
3737 fi
3738 if test -z "$CC"; then
3739 ac_ct_CC=$CC
3740 for ac_prog in cl.exe
3741 do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 printf %s "checking for $ac_word... " >&6; }
3746 if test ${ac_cv_prog_ac_ct_CC+y}
3747 then :
3748 printf %s "(cached) " >&6
3749 else $as_nop
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756 IFS=$as_save_IFS
3757 case $as_dir in #(((
3758 '') as_dir=./ ;;
3759 */) ;;
3760 *) as_dir=$as_dir/ ;;
3761 esac
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_ac_ct_CC="$ac_prog"
3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 printf "%s\n" "$ac_ct_CC" >&6; }
3778 else
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 printf "%s\n" "no" >&6; }
3781 fi
3782
3783
3784 test -n "$ac_ct_CC" && break
3785 done
3786
3787 if test "x$ac_ct_CC" = x; then
3788 CC=""
3789 else
3790 case $cross_compiling:$ac_tool_warned in
3791 yes:)
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794 ac_tool_warned=yes ;;
3795 esac
3796 CC=$ac_ct_CC
3797 fi
3798 fi
3799
3800 fi
3801 if test -z "$CC"; then
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}clang; ac_word=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s "checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_CC+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else $as_nop
3811 if test -n "$CC"; then
3812 ac_cv_prog_CC="$CC" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817 IFS=$as_save_IFS
3818 case $as_dir in #(((
3819 '') as_dir=./ ;;
3820 */) ;;
3821 *) as_dir=$as_dir/ ;;
3822 esac
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="${ac_tool_prefix}clang"
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 printf "%s\n" "$CC" >&6; }
3839 else
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3842 fi
3843
3844
3845 fi
3846 if test -z "$ac_cv_prog_CC"; then
3847 ac_ct_CC=$CC
3848 # Extract the first word of "clang", so it can be a program name with args.
3849 set dummy clang; ac_word=$2
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 printf %s "checking for $ac_word... " >&6; }
3852 if test ${ac_cv_prog_ac_ct_CC+y}
3853 then :
3854 printf %s "(cached) " >&6
3855 else $as_nop
3856 if test -n "$ac_ct_CC"; then
3857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 case $as_dir in #(((
3864 '') as_dir=./ ;;
3865 */) ;;
3866 *) as_dir=$as_dir/ ;;
3867 esac
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_ac_ct_CC="clang"
3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 printf "%s\n" "$ac_ct_CC" >&6; }
3884 else
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 printf "%s\n" "no" >&6; }
3887 fi
3888
3889 if test "x$ac_ct_CC" = x; then
3890 CC=""
3891 else
3892 case $cross_compiling:$ac_tool_warned in
3893 yes:)
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3897 esac
3898 CC=$ac_ct_CC
3899 fi
3900 else
3901 CC="$ac_cv_prog_CC"
3902 fi
3903
3904 fi
3905
3906
3907 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error $? "no acceptable C compiler found in \$PATH
3910 See \`config.log' for more details" "$LINENO" 5; }
3911
3912 # Provide some information about the compiler.
3913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3914 set X $ac_compile
3915 ac_compiler=$2
3916 for ac_option in --version -v -V -qversion -version; do
3917 { { ac_try="$ac_compiler $ac_option >&5"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 printf "%s\n" "$ac_try_echo"; } >&5
3924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3925 ac_status=$?
3926 if test -s conftest.err; then
3927 sed '10a\
3928 ... rest of stderr output deleted ...
3929 10q' conftest.err >conftest.er1
3930 cat conftest.er1 >&5
3931 fi
3932 rm -f conftest.er1 conftest.err
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }
3935 done
3936
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939
3940 int
3941 main (void)
3942 {
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 ac_clean_files_save=$ac_clean_files
3949 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3950 # Try to create an executable without -o first, disregard a.out.
3951 # It will help us diagnose broken compilers, and finding out an intuition
3952 # of exeext.
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3954 printf %s "checking whether the C compiler works... " >&6; }
3955 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3956
3957 # The possible output files:
3958 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3959
3960 ac_rmfiles=
3961 for ac_file in $ac_files
3962 do
3963 case $ac_file in
3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3965 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3966 esac
3967 done
3968 rm -f $ac_rmfiles
3969
3970 if { { ac_try="$ac_link_default"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 printf "%s\n" "$ac_try_echo"; } >&5
3977 (eval "$ac_link_default") 2>&5
3978 ac_status=$?
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3981 then :
3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3985 # so that the user can short-circuit this test for compilers unknown to
3986 # Autoconf.
3987 for ac_file in $ac_files ''
3988 do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3992 ;;
3993 [ab].out )
3994 # We found the default executable, but exeext='' is most
3995 # certainly right.
3996 break;;
3997 *.* )
3998 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3999 then :; else
4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 fi
4002 # We set ac_cv_exeext here because the later test for it is not
4003 # safe: cross compilers may not add the suffix if given an `-o'
4004 # argument, so we may need to know it at that point already.
4005 # Even if this section looks crufty: it has the advantage of
4006 # actually working.
4007 break;;
4008 * )
4009 break;;
4010 esac
4011 done
4012 test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
4014 else $as_nop
4015 ac_file=''
4016 fi
4017 if test -z "$ac_file"
4018 then :
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 printf "%s\n" "no" >&6; }
4021 printf "%s\n" "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error 77 "C compiler cannot create executables
4027 See \`config.log' for more details" "$LINENO" 5; }
4028 else $as_nop
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4030 printf "%s\n" "yes" >&6; }
4031 fi
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4033 printf %s "checking for C compiler default output file name... " >&6; }
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4035 printf "%s\n" "$ac_file" >&6; }
4036 ac_exeext=$ac_cv_exeext
4037
4038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4039 ac_clean_files=$ac_clean_files_save
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4041 printf %s "checking for suffix of executables... " >&6; }
4042 if { { ac_try="$ac_link"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 printf "%s\n" "$ac_try_echo"; } >&5
4049 (eval "$ac_link") 2>&5
4050 ac_status=$?
4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }
4053 then :
4054 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4055 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4056 # work properly (i.e., refer to `conftest.exe'), while it won't with
4057 # `rm'.
4058 for ac_file in conftest.exe conftest conftest.*; do
4059 test -f "$ac_file" || continue
4060 case $ac_file in
4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4063 break;;
4064 * ) break;;
4065 esac
4066 done
4067 else $as_nop
4068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4071 See \`config.log' for more details" "$LINENO" 5; }
4072 fi
4073 rm -f conftest conftest$ac_cv_exeext
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4075 printf "%s\n" "$ac_cv_exeext" >&6; }
4076
4077 rm -f conftest.$ac_ext
4078 EXEEXT=$ac_cv_exeext
4079 ac_exeext=$EXEEXT
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <stdio.h>
4083 int
4084 main (void)
4085 {
4086 FILE *f = fopen ("conftest.out", "w");
4087 return ferror (f) || fclose (f) != 0;
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 ac_clean_files="$ac_clean_files conftest.out"
4094 # Check that the compiler produces executables we can run. If not, either
4095 # the compiler is broken, or we cross compile.
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4097 printf %s "checking whether we are cross compiling... " >&6; }
4098 if test "$cross_compiling" != yes; then
4099 { { ac_try="$ac_link"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 printf "%s\n" "$ac_try_echo"; } >&5
4106 (eval "$ac_link") 2>&5
4107 ac_status=$?
4108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }
4110 if { ac_try='./conftest$ac_cv_exeext'
4111 { { case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 printf "%s\n" "$ac_try_echo"; } >&5
4117 (eval "$ac_try") 2>&5
4118 ac_status=$?
4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; }; then
4121 cross_compiling=no
4122 else
4123 if test "$cross_compiling" = maybe; then
4124 cross_compiling=yes
4125 else
4126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error 77 "cannot run C compiled programs.
4129 If you meant to cross compile, use \`--host'.
4130 See \`config.log' for more details" "$LINENO" 5; }
4131 fi
4132 fi
4133 fi
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4135 printf "%s\n" "$cross_compiling" >&6; }
4136
4137 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4138 ac_clean_files=$ac_clean_files_save
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4140 printf %s "checking for suffix of object files... " >&6; }
4141 if test ${ac_cv_objext+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else $as_nop
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 int
4149 main (void)
4150 {
4151
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.o conftest.obj
4157 if { { ac_try="$ac_compile"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 printf "%s\n" "$ac_try_echo"; } >&5
4164 (eval "$ac_compile") 2>&5
4165 ac_status=$?
4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }
4168 then :
4169 for ac_file in conftest.o conftest.obj conftest.*; do
4170 test -f "$ac_file" || continue;
4171 case $ac_file in
4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4174 break;;
4175 esac
4176 done
4177 else $as_nop
4178 printf "%s\n" "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4183 as_fn_error $? "cannot compute suffix of object files: cannot compile
4184 See \`config.log' for more details" "$LINENO" 5; }
4185 fi
4186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187 fi
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4189 printf "%s\n" "$ac_cv_objext" >&6; }
4190 OBJEXT=$ac_cv_objext
4191 ac_objext=$OBJEXT
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4193 printf %s "checking whether the compiler supports GNU C... " >&6; }
4194 if test ${ac_cv_c_compiler_gnu+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else $as_nop
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200
4201 int
4202 main (void)
4203 {
4204 #ifndef __GNUC__
4205 choke me
4206 #endif
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"
4213 then :
4214 ac_compiler_gnu=yes
4215 else $as_nop
4216 ac_compiler_gnu=no
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4220
4221 fi
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4223 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226 if test $ac_compiler_gnu = yes; then
4227 GCC=yes
4228 else
4229 GCC=
4230 fi
4231 ac_test_CFLAGS=${CFLAGS+y}
4232 ac_save_CFLAGS=$CFLAGS
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4234 printf %s "checking whether $CC accepts -g... " >&6; }
4235 if test ${ac_cv_prog_cc_g+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else $as_nop
4239 ac_save_c_werror_flag=$ac_c_werror_flag
4240 ac_c_werror_flag=yes
4241 ac_cv_prog_cc_g=no
4242 CFLAGS="-g"
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245
4246 int
4247 main (void)
4248 {
4249
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 if ac_fn_c_try_compile "$LINENO"
4255 then :
4256 ac_cv_prog_cc_g=yes
4257 else $as_nop
4258 CFLAGS=""
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 int
4263 main (void)
4264 {
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"
4271 then :
4272
4273 else $as_nop
4274 ac_c_werror_flag=$ac_save_c_werror_flag
4275 CFLAGS="-g"
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278
4279 int
4280 main (void)
4281 {
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_compile "$LINENO"
4288 then :
4289 ac_cv_prog_cc_g=yes
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4296 ac_c_werror_flag=$ac_save_c_werror_flag
4297 fi
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4299 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4300 if test $ac_test_CFLAGS; then
4301 CFLAGS=$ac_save_CFLAGS
4302 elif test $ac_cv_prog_cc_g = yes; then
4303 if test "$GCC" = yes; then
4304 CFLAGS="-g -O2"
4305 else
4306 CFLAGS="-g"
4307 fi
4308 else
4309 if test "$GCC" = yes; then
4310 CFLAGS="-O2"
4311 else
4312 CFLAGS=
4313 fi
4314 fi
4315 ac_prog_cc_stdc=no
4316 if test x$ac_prog_cc_stdc = xno
4317 then :
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4319 printf %s "checking for $CC option to enable C11 features... " >&6; }
4320 if test ${ac_cv_prog_cc_c11+y}
4321 then :
4322 printf %s "(cached) " >&6
4323 else $as_nop
4324 ac_cv_prog_cc_c11=no
4325 ac_save_CC=$CC
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 $ac_c_conftest_c11_program
4329 _ACEOF
4330 for ac_arg in '' -std=gnu11
4331 do
4332 CC="$ac_save_CC $ac_arg"
4333 if ac_fn_c_try_compile "$LINENO"
4334 then :
4335 ac_cv_prog_cc_c11=$ac_arg
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.beam
4338 test "x$ac_cv_prog_cc_c11" != "xno" && break
4339 done
4340 rm -f conftest.$ac_ext
4341 CC=$ac_save_CC
4342 fi
4343
4344 if test "x$ac_cv_prog_cc_c11" = xno
4345 then :
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347 printf "%s\n" "unsupported" >&6; }
4348 else $as_nop
4349 if test "x$ac_cv_prog_cc_c11" = x
4350 then :
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4352 printf "%s\n" "none needed" >&6; }
4353 else $as_nop
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4355 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4356 CC="$CC $ac_cv_prog_cc_c11"
4357 fi
4358 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4359 ac_prog_cc_stdc=c11
4360 fi
4361 fi
4362 if test x$ac_prog_cc_stdc = xno
4363 then :
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4365 printf %s "checking for $CC option to enable C99 features... " >&6; }
4366 if test ${ac_cv_prog_cc_c99+y}
4367 then :
4368 printf %s "(cached) " >&6
4369 else $as_nop
4370 ac_cv_prog_cc_c99=no
4371 ac_save_CC=$CC
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 $ac_c_conftest_c99_program
4375 _ACEOF
4376 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4377 do
4378 CC="$ac_save_CC $ac_arg"
4379 if ac_fn_c_try_compile "$LINENO"
4380 then :
4381 ac_cv_prog_cc_c99=$ac_arg
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.beam
4384 test "x$ac_cv_prog_cc_c99" != "xno" && break
4385 done
4386 rm -f conftest.$ac_ext
4387 CC=$ac_save_CC
4388 fi
4389
4390 if test "x$ac_cv_prog_cc_c99" = xno
4391 then :
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4393 printf "%s\n" "unsupported" >&6; }
4394 else $as_nop
4395 if test "x$ac_cv_prog_cc_c99" = x
4396 then :
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4398 printf "%s\n" "none needed" >&6; }
4399 else $as_nop
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4401 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4402 CC="$CC $ac_cv_prog_cc_c99"
4403 fi
4404 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4405 ac_prog_cc_stdc=c99
4406 fi
4407 fi
4408 if test x$ac_prog_cc_stdc = xno
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4411 printf %s "checking for $CC option to enable C89 features... " >&6; }
4412 if test ${ac_cv_prog_cc_c89+y}
4413 then :
4414 printf %s "(cached) " >&6
4415 else $as_nop
4416 ac_cv_prog_cc_c89=no
4417 ac_save_CC=$CC
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 $ac_c_conftest_c89_program
4421 _ACEOF
4422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4423 do
4424 CC="$ac_save_CC $ac_arg"
4425 if ac_fn_c_try_compile "$LINENO"
4426 then :
4427 ac_cv_prog_cc_c89=$ac_arg
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.beam
4430 test "x$ac_cv_prog_cc_c89" != "xno" && break
4431 done
4432 rm -f conftest.$ac_ext
4433 CC=$ac_save_CC
4434 fi
4435
4436 if test "x$ac_cv_prog_cc_c89" = xno
4437 then :
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4439 printf "%s\n" "unsupported" >&6; }
4440 else $as_nop
4441 if test "x$ac_cv_prog_cc_c89" = x
4442 then :
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4444 printf "%s\n" "none needed" >&6; }
4445 else $as_nop
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4447 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4448 CC="$CC $ac_cv_prog_cc_c89"
4449 fi
4450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4451 ac_prog_cc_stdc=c89
4452 fi
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4468 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4469 if test ${am_cv_prog_cc_c_o+y}
4470 then :
4471 printf %s "(cached) " >&6
4472 else $as_nop
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475
4476 int
4477 main (void)
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 # Make sure it works both with $CC and with simple cc.
4485 # Following AC_PROG_CC_C_O, we do the test twice because some
4486 # compilers refuse to overwrite an existing .o file with -o,
4487 # though they will create one.
4488 am_cv_prog_cc_c_o=yes
4489 for am_i in 1 2; do
4490 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4491 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } \
4495 && test -f conftest2.$ac_objext; then
4496 : OK
4497 else
4498 am_cv_prog_cc_c_o=no
4499 break
4500 fi
4501 done
4502 rm -f core conftest*
4503 unset am_i
4504 fi
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4506 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4507 if test "$am_cv_prog_cc_c_o" != yes; then
4508 # Losing compiler, so override with the script.
4509 # FIXME: It is wrong to rewrite CC.
4510 # But if we don't then we get into trouble of one sort or another.
4511 # A longer-term fix would be to have automake use am__CC in this case,
4512 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4513 CC="$am_aux_dir/compile $CC"
4514 fi
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521
4522 depcc="$CC" am_compiler_list=
4523
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4525 printf %s "checking dependency style of $depcc... " >&6; }
4526 if test ${am_cv_CC_dependencies_compiler_type+y}
4527 then :
4528 printf %s "(cached) " >&6
4529 else $as_nop
4530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4531 # We make a subdir and do the tests there. Otherwise we can end up
4532 # making bogus files that we don't know about and never remove. For
4533 # instance it was reported that on HP-UX the gcc test will end up
4534 # making a dummy file named 'D' -- because '-MD' means "put the output
4535 # in D".
4536 rm -rf conftest.dir
4537 mkdir conftest.dir
4538 # Copy depcomp to subdir because otherwise we won't find it if we're
4539 # using a relative directory.
4540 cp "$am_depcomp" conftest.dir
4541 cd conftest.dir
4542 # We will build objects and dependencies in a subdirectory because
4543 # it helps to detect inapplicable dependency modes. For instance
4544 # both Tru64's cc and ICC support -MD to output dependencies as a
4545 # side effect of compilation, but ICC will put the dependencies in
4546 # the current directory while Tru64 will put them in the object
4547 # directory.
4548 mkdir sub
4549
4550 am_cv_CC_dependencies_compiler_type=none
4551 if test "$am_compiler_list" = ""; then
4552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4553 fi
4554 am__universal=false
4555 case " $depcc " in #(
4556 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4557 esac
4558
4559 for depmode in $am_compiler_list; do
4560 # Setup a source with many dependencies, because some compilers
4561 # like to wrap large dependency lists on column 80 (with \), and
4562 # we should not choose a depcomp mode which is confused by this.
4563 #
4564 # We need to recreate these files for each test, as the compiler may
4565 # overwrite some of them when testing with obscure command lines.
4566 # This happens at least with the AIX C compiler.
4567 : > sub/conftest.c
4568 for i in 1 2 3 4 5 6; do
4569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4570 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4571 # Solaris 10 /bin/sh.
4572 echo '/* dummy */' > sub/conftst$i.h
4573 done
4574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4575
4576 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4577 # mode. It turns out that the SunPro C++ compiler does not properly
4578 # handle '-M -o', and we need to detect this. Also, some Intel
4579 # versions had trouble with output in subdirs.
4580 am__obj=sub/conftest.${OBJEXT-o}
4581 am__minus_obj="-o $am__obj"
4582 case $depmode in
4583 gcc)
4584 # This depmode causes a compiler race in universal mode.
4585 test "$am__universal" = false || continue
4586 ;;
4587 nosideeffect)
4588 # After this tag, mechanisms are not by side-effect, so they'll
4589 # only be used when explicitly requested.
4590 if test "x$enable_dependency_tracking" = xyes; then
4591 continue
4592 else
4593 break
4594 fi
4595 ;;
4596 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4597 # This compiler won't grok '-c -o', but also, the minuso test has
4598 # not run yet. These depmodes are late enough in the game, and
4599 # so weak that their functioning should not be impacted.
4600 am__obj=conftest.${OBJEXT-o}
4601 am__minus_obj=
4602 ;;
4603 none) break ;;
4604 esac
4605 if depmode=$depmode \
4606 source=sub/conftest.c object=$am__obj \
4607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4609 >/dev/null 2>conftest.err &&
4610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4614 # icc doesn't choke on unknown options, it will just issue warnings
4615 # or remarks (even with -Werror). So we grep stderr for any message
4616 # that says an option was ignored or not supported.
4617 # When given -MP, icc 7.0 and 7.1 complain thusly:
4618 # icc: Command line warning: ignoring option '-M'; no argument required
4619 # The diagnosis changed in icc 8.0:
4620 # icc: Command line remark: option '-MP' not supported
4621 if (grep 'ignoring option' conftest.err ||
4622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4623 am_cv_CC_dependencies_compiler_type=$depmode
4624 break
4625 fi
4626 fi
4627 done
4628
4629 cd ..
4630 rm -rf conftest.dir
4631 else
4632 am_cv_CC_dependencies_compiler_type=none
4633 fi
4634
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4637 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4638 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4639
4640 if
4641 test "x$enable_dependency_tracking" != xno \
4642 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4643 am__fastdepCC_TRUE=
4644 am__fastdepCC_FALSE='#'
4645 else
4646 am__fastdepCC_TRUE='#'
4647 am__fastdepCC_FALSE=
4648 fi
4649
4650
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4652 printf %s "checking for a sed that does not truncate output... " >&6; }
4653 if test ${ac_cv_path_SED+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else $as_nop
4657 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4658 for ac_i in 1 2 3 4 5 6 7; do
4659 ac_script="$ac_script$as_nl$ac_script"
4660 done
4661 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4662 { ac_script=; unset ac_script;}
4663 if test -z "$SED"; then
4664 ac_path_SED_found=false
4665 # Loop through the user's path and test for each of PROGNAME-LIST
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669 IFS=$as_save_IFS
4670 case $as_dir in #(((
4671 '') as_dir=./ ;;
4672 */) ;;
4673 *) as_dir=$as_dir/ ;;
4674 esac
4675 for ac_prog in sed gsed
4676 do
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4679 as_fn_executable_p "$ac_path_SED" || continue
4680 # Check for GNU ac_path_SED and select it if it is found.
4681 # Check for GNU $ac_path_SED
4682 case `"$ac_path_SED" --version 2>&1` in
4683 *GNU*)
4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4685 *)
4686 ac_count=0
4687 printf %s 0123456789 >"conftest.in"
4688 while :
4689 do
4690 cat "conftest.in" "conftest.in" >"conftest.tmp"
4691 mv "conftest.tmp" "conftest.in"
4692 cp "conftest.in" "conftest.nl"
4693 printf "%s\n" '' >> "conftest.nl"
4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696 as_fn_arith $ac_count + 1 && ac_count=$as_val
4697 if test $ac_count -gt ${ac_path_SED_max-0}; then
4698 # Best one so far, save it but keep looking for a better one
4699 ac_cv_path_SED="$ac_path_SED"
4700 ac_path_SED_max=$ac_count
4701 fi
4702 # 10*(2^10) chars as input seems more than enough
4703 test $ac_count -gt 10 && break
4704 done
4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708 $ac_path_SED_found && break 3
4709 done
4710 done
4711 done
4712 IFS=$as_save_IFS
4713 if test -z "$ac_cv_path_SED"; then
4714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4715 fi
4716 else
4717 ac_cv_path_SED=$SED
4718 fi
4719
4720 fi
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4722 printf "%s\n" "$ac_cv_path_SED" >&6; }
4723 SED="$ac_cv_path_SED"
4724 rm -f conftest.sed
4725
4726 test -z "$SED" && SED=sed
4727 Xsed="$SED -e 1s/^X//"
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4740 printf %s "checking for grep that handles long lines and -e... " >&6; }
4741 if test ${ac_cv_path_GREP+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else $as_nop
4745 if test -z "$GREP"; then
4746 ac_path_GREP_found=false
4747 # Loop through the user's path and test for each of PROGNAME-LIST
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750 do
4751 IFS=$as_save_IFS
4752 case $as_dir in #(((
4753 '') as_dir=./ ;;
4754 */) ;;
4755 *) as_dir=$as_dir/ ;;
4756 esac
4757 for ac_prog in grep ggrep
4758 do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4761 as_fn_executable_p "$ac_path_GREP" || continue
4762 # Check for GNU ac_path_GREP and select it if it is found.
4763 # Check for GNU $ac_path_GREP
4764 case `"$ac_path_GREP" --version 2>&1` in
4765 *GNU*)
4766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4767 *)
4768 ac_count=0
4769 printf %s 0123456789 >"conftest.in"
4770 while :
4771 do
4772 cat "conftest.in" "conftest.in" >"conftest.tmp"
4773 mv "conftest.tmp" "conftest.in"
4774 cp "conftest.in" "conftest.nl"
4775 printf "%s\n" 'GREP' >> "conftest.nl"
4776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778 as_fn_arith $ac_count + 1 && ac_count=$as_val
4779 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4780 # Best one so far, save it but keep looking for a better one
4781 ac_cv_path_GREP="$ac_path_GREP"
4782 ac_path_GREP_max=$ac_count
4783 fi
4784 # 10*(2^10) chars as input seems more than enough
4785 test $ac_count -gt 10 && break
4786 done
4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788 esac
4789
4790 $ac_path_GREP_found && break 3
4791 done
4792 done
4793 done
4794 IFS=$as_save_IFS
4795 if test -z "$ac_cv_path_GREP"; then
4796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4797 fi
4798 else
4799 ac_cv_path_GREP=$GREP
4800 fi
4801
4802 fi
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4804 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4805 GREP="$ac_cv_path_GREP"
4806
4807
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4809 printf %s "checking for egrep... " >&6; }
4810 if test ${ac_cv_path_EGREP+y}
4811 then :
4812 printf %s "(cached) " >&6
4813 else $as_nop
4814 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4815 then ac_cv_path_EGREP="$GREP -E"
4816 else
4817 if test -z "$EGREP"; then
4818 ac_path_EGREP_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 do
4823 IFS=$as_save_IFS
4824 case $as_dir in #(((
4825 '') as_dir=./ ;;
4826 */) ;;
4827 *) as_dir=$as_dir/ ;;
4828 esac
4829 for ac_prog in egrep
4830 do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4833 as_fn_executable_p "$ac_path_EGREP" || continue
4834 # Check for GNU ac_path_EGREP and select it if it is found.
4835 # Check for GNU $ac_path_EGREP
4836 case `"$ac_path_EGREP" --version 2>&1` in
4837 *GNU*)
4838 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4839 *)
4840 ac_count=0
4841 printf %s 0123456789 >"conftest.in"
4842 while :
4843 do
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 printf "%s\n" 'EGREP' >> "conftest.nl"
4848 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_EGREP="$ac_path_EGREP"
4854 ac_path_EGREP_max=$ac_count
4855 fi
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 esac
4861
4862 $ac_path_EGREP_found && break 3
4863 done
4864 done
4865 done
4866 IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_EGREP"; then
4868 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 fi
4870 else
4871 ac_cv_path_EGREP=$EGREP
4872 fi
4873
4874 fi
4875 fi
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4877 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4878 EGREP="$ac_cv_path_EGREP"
4879
4880
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882 printf %s "checking for fgrep... " >&6; }
4883 if test ${ac_cv_path_FGREP+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else $as_nop
4887 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4888 then ac_cv_path_FGREP="$GREP -F"
4889 else
4890 if test -z "$FGREP"; then
4891 ac_path_FGREP_found=false
4892 # Loop through the user's path and test for each of PROGNAME-LIST
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 do
4896 IFS=$as_save_IFS
4897 case $as_dir in #(((
4898 '') as_dir=./ ;;
4899 */) ;;
4900 *) as_dir=$as_dir/ ;;
4901 esac
4902 for ac_prog in fgrep
4903 do
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4906 as_fn_executable_p "$ac_path_FGREP" || continue
4907 # Check for GNU ac_path_FGREP and select it if it is found.
4908 # Check for GNU $ac_path_FGREP
4909 case `"$ac_path_FGREP" --version 2>&1` in
4910 *GNU*)
4911 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4912 *)
4913 ac_count=0
4914 printf %s 0123456789 >"conftest.in"
4915 while :
4916 do
4917 cat "conftest.in" "conftest.in" >"conftest.tmp"
4918 mv "conftest.tmp" "conftest.in"
4919 cp "conftest.in" "conftest.nl"
4920 printf "%s\n" 'FGREP' >> "conftest.nl"
4921 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4923 as_fn_arith $ac_count + 1 && ac_count=$as_val
4924 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4925 # Best one so far, save it but keep looking for a better one
4926 ac_cv_path_FGREP="$ac_path_FGREP"
4927 ac_path_FGREP_max=$ac_count
4928 fi
4929 # 10*(2^10) chars as input seems more than enough
4930 test $ac_count -gt 10 && break
4931 done
4932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4933 esac
4934
4935 $ac_path_FGREP_found && break 3
4936 done
4937 done
4938 done
4939 IFS=$as_save_IFS
4940 if test -z "$ac_cv_path_FGREP"; then
4941 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4942 fi
4943 else
4944 ac_cv_path_FGREP=$FGREP
4945 fi
4946
4947 fi
4948 fi
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4950 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4951 FGREP="$ac_cv_path_FGREP"
4952
4953
4954 test -z "$GREP" && GREP=grep
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 # Check whether --with-gnu-ld was given.
4975 if test ${with_gnu_ld+y}
4976 then :
4977 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4978 else $as_nop
4979 with_gnu_ld=no
4980 fi
4981
4982 ac_prog=ld
4983 if test yes = "$GCC"; then
4984 # Check if gcc -print-prog-name=ld gives a path.
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4986 printf %s "checking for ld used by $CC... " >&6; }
4987 case $host in
4988 *-*-mingw*)
4989 # gcc leaves a trailing carriage return, which upsets mingw
4990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4991 *)
4992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4993 esac
4994 case $ac_prog in
4995 # Accept absolute paths.
4996 [\\/]* | ?:[\\/]*)
4997 re_direlt='/[^/][^/]*/\.\./'
4998 # Canonicalize the pathname of ld
4999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5002 done
5003 test -z "$LD" && LD=$ac_prog
5004 ;;
5005 "")
5006 # If it fails, then pretend we aren't using GCC.
5007 ac_prog=ld
5008 ;;
5009 *)
5010 # If it is relative, then search for the first ld in PATH.
5011 with_gnu_ld=unknown
5012 ;;
5013 esac
5014 elif test yes = "$with_gnu_ld"; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5016 printf %s "checking for GNU ld... " >&6; }
5017 else
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5019 printf %s "checking for non-GNU ld... " >&6; }
5020 fi
5021 if test ${lt_cv_path_LD+y}
5022 then :
5023 printf %s "(cached) " >&6
5024 else $as_nop
5025 if test -z "$LD"; then
5026 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5027 for ac_dir in $PATH; do
5028 IFS=$lt_save_ifs
5029 test -z "$ac_dir" && ac_dir=.
5030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5031 lt_cv_path_LD=$ac_dir/$ac_prog
5032 # Check to see if the program is GNU ld. I'd rather use --version,
5033 # but apparently some variants of GNU ld only accept -v.
5034 # Break only if it was the GNU/non-GNU ld that we prefer.
5035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5036 *GNU* | *'with BFD'*)
5037 test no != "$with_gnu_ld" && break
5038 ;;
5039 *)
5040 test yes != "$with_gnu_ld" && break
5041 ;;
5042 esac
5043 fi
5044 done
5045 IFS=$lt_save_ifs
5046 else
5047 lt_cv_path_LD=$LD # Let the user override the test with a path.
5048 fi
5049 fi
5050
5051 LD=$lt_cv_path_LD
5052 if test -n "$LD"; then
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5054 printf "%s\n" "$LD" >&6; }
5055 else
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 printf "%s\n" "no" >&6; }
5058 fi
5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5061 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5062 if test ${lt_cv_prog_gnu_ld+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5067 case `$LD -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069 lt_cv_prog_gnu_ld=yes
5070 ;;
5071 *)
5072 lt_cv_prog_gnu_ld=no
5073 ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5077 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5078 with_gnu_ld=$lt_cv_prog_gnu_ld
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5089 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5090 if test ${lt_cv_path_NM+y}
5091 then :
5092 printf %s "(cached) " >&6
5093 else $as_nop
5094 if test -n "$NM"; then
5095 # Let the user override the test.
5096 lt_cv_path_NM=$NM
5097 else
5098 lt_nm_to_check=${ac_tool_prefix}nm
5099 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5100 lt_nm_to_check="$lt_nm_to_check nm"
5101 fi
5102 for lt_tmp_nm in $lt_nm_to_check; do
5103 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5104 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5105 IFS=$lt_save_ifs
5106 test -z "$ac_dir" && ac_dir=.
5107 tmp_nm=$ac_dir/$lt_tmp_nm
5108 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5109 # Check to see if the nm accepts a BSD-compat flag.
5110 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5111 # nm: unknown option "B" ignored
5112 # Tru64's nm complains that /dev/null is an invalid object file
5113 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5114 case $build_os in
5115 mingw*) lt_bad_file=conftest.nm/nofile ;;
5116 *) lt_bad_file=/dev/null ;;
5117 esac
5118 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5119 *$lt_bad_file* | *'Invalid file or object type'*)
5120 lt_cv_path_NM="$tmp_nm -B"
5121 break 2
5122 ;;
5123 *)
5124 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5125 */dev/null*)
5126 lt_cv_path_NM="$tmp_nm -p"
5127 break 2
5128 ;;
5129 *)
5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131 continue # so that we can try to find one that supports BSD flags
5132 ;;
5133 esac
5134 ;;
5135 esac
5136 fi
5137 done
5138 IFS=$lt_save_ifs
5139 done
5140 : ${lt_cv_path_NM=no}
5141 fi
5142 fi
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5144 printf "%s\n" "$lt_cv_path_NM" >&6; }
5145 if test no != "$lt_cv_path_NM"; then
5146 NM=$lt_cv_path_NM
5147 else
5148 # Didn't find any BSD compatible name lister, look for dumpbin.
5149 if test -n "$DUMPBIN"; then :
5150 # Let the user override the test.
5151 else
5152 if test -n "$ac_tool_prefix"; then
5153 for ac_prog in dumpbin "link -dump"
5154 do
5155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 printf %s "checking for $ac_word... " >&6; }
5159 if test ${ac_cv_prog_DUMPBIN+y}
5160 then :
5161 printf %s "(cached) " >&6
5162 else $as_nop
5163 if test -n "$DUMPBIN"; then
5164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 case $as_dir in #(((
5171 '') as_dir=./ ;;
5172 */) ;;
5173 *) as_dir=$as_dir/ ;;
5174 esac
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 DUMPBIN=$ac_cv_prog_DUMPBIN
5188 if test -n "$DUMPBIN"; then
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5190 printf "%s\n" "$DUMPBIN" >&6; }
5191 else
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 printf "%s\n" "no" >&6; }
5194 fi
5195
5196
5197 test -n "$DUMPBIN" && break
5198 done
5199 fi
5200 if test -z "$DUMPBIN"; then
5201 ac_ct_DUMPBIN=$DUMPBIN
5202 for ac_prog in dumpbin "link -dump"
5203 do
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 printf %s "checking for $ac_word... " >&6; }
5208 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5209 then :
5210 printf %s "(cached) " >&6
5211 else $as_nop
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 case $as_dir in #(((
5220 '') as_dir=./ ;;
5221 */) ;;
5222 *) as_dir=$as_dir/ ;;
5223 esac
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5237 if test -n "$ac_ct_DUMPBIN"; then
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5239 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5240 else
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 printf "%s\n" "no" >&6; }
5243 fi
5244
5245
5246 test -n "$ac_ct_DUMPBIN" && break
5247 done
5248
5249 if test "x$ac_ct_DUMPBIN" = x; then
5250 DUMPBIN=":"
5251 else
5252 case $cross_compiling:$ac_tool_warned in
5253 yes:)
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258 DUMPBIN=$ac_ct_DUMPBIN
5259 fi
5260 fi
5261
5262 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5263 *COFF*)
5264 DUMPBIN="$DUMPBIN -symbols -headers"
5265 ;;
5266 *)
5267 DUMPBIN=:
5268 ;;
5269 esac
5270 fi
5271
5272 if test : != "$DUMPBIN"; then
5273 NM=$DUMPBIN
5274 fi
5275 fi
5276 test -z "$NM" && NM=nm
5277
5278
5279
5280
5281
5282
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5284 printf %s "checking the name lister ($NM) interface... " >&6; }
5285 if test ${lt_cv_nm_interface+y}
5286 then :
5287 printf %s "(cached) " >&6
5288 else $as_nop
5289 lt_cv_nm_interface="BSD nm"
5290 echo "int some_variable = 0;" > conftest.$ac_ext
5291 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5292 (eval "$ac_compile" 2>conftest.err)
5293 cat conftest.err >&5
5294 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5295 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5296 cat conftest.err >&5
5297 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5298 cat conftest.out >&5
5299 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5300 lt_cv_nm_interface="MS dumpbin"
5301 fi
5302 rm -f conftest*
5303 fi
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5305 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5306
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5308 printf %s "checking whether ln -s works... " >&6; }
5309 LN_S=$as_ln_s
5310 if test "$LN_S" = "ln -s"; then
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312 printf "%s\n" "yes" >&6; }
5313 else
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5315 printf "%s\n" "no, using $LN_S" >&6; }
5316 fi
5317
5318 # find the maximum length of command line arguments
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5320 printf %s "checking the maximum length of command line arguments... " >&6; }
5321 if test ${lt_cv_sys_max_cmd_len+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else $as_nop
5325 i=0
5326 teststring=ABCD
5327
5328 case $build_os in
5329 msdosdjgpp*)
5330 # On DJGPP, this test can blow up pretty badly due to problems in libc
5331 # (any single argument exceeding 2000 bytes causes a buffer overrun
5332 # during glob expansion). Even if it were fixed, the result of this
5333 # check would be larger than it should be.
5334 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5335 ;;
5336
5337 gnu*)
5338 # Under GNU Hurd, this test is not required because there is
5339 # no limit to the length of command line arguments.
5340 # Libtool will interpret -1 as no limit whatsoever
5341 lt_cv_sys_max_cmd_len=-1;
5342 ;;
5343
5344 cygwin* | mingw* | cegcc*)
5345 # On Win9x/ME, this test blows up -- it succeeds, but takes
5346 # about 5 minutes as the teststring grows exponentially.
5347 # Worse, since 9x/ME are not pre-emptively multitasking,
5348 # you end up with a "frozen" computer, even though with patience
5349 # the test eventually succeeds (with a max line length of 256k).
5350 # Instead, let's just punt: use the minimum linelength reported by
5351 # all of the supported platforms: 8192 (on NT/2K/XP).
5352 lt_cv_sys_max_cmd_len=8192;
5353 ;;
5354
5355 mint*)
5356 # On MiNT this can take a long time and run out of memory.
5357 lt_cv_sys_max_cmd_len=8192;
5358 ;;
5359
5360 mint*)
5361 # On MiNT this can take a long time and run out of memory.
5362 lt_cv_sys_max_cmd_len=8192;
5363 ;;
5364
5365 amigaos*)
5366 # On AmigaOS with pdksh, this test takes hours, literally.
5367 # So we just punt and use a minimum line length of 8192.
5368 lt_cv_sys_max_cmd_len=8192;
5369 ;;
5370
5371 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5372 # This has been around since 386BSD, at least. Likely further.
5373 if test -x /sbin/sysctl; then
5374 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5375 elif test -x /usr/sbin/sysctl; then
5376 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5377 else
5378 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5379 fi
5380 # And add a safety zone
5381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5383 ;;
5384
5385 interix*)
5386 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5387 lt_cv_sys_max_cmd_len=196608
5388 ;;
5389
5390 os2*)
5391 # The test takes a long time on OS/2.
5392 lt_cv_sys_max_cmd_len=8192
5393 ;;
5394
5395 osf*)
5396 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5397 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5398 # nice to cause kernel panics so lets avoid the loop below.
5399 # First set a reasonable default.
5400 lt_cv_sys_max_cmd_len=16384
5401 #
5402 if test -x /sbin/sysconfig; then
5403 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5404 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5405 esac
5406 fi
5407 ;;
5408 sco3.2v5*)
5409 lt_cv_sys_max_cmd_len=102400
5410 ;;
5411 sysv5* | sco5v6* | sysv4.2uw2*)
5412 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5413 if test -n "$kargmax"; then
5414 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5415 else
5416 lt_cv_sys_max_cmd_len=32768
5417 fi
5418 ;;
5419 *)
5420 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5421 if test -n "$lt_cv_sys_max_cmd_len" && \
5422 test undefined != "$lt_cv_sys_max_cmd_len"; then
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5425 else
5426 # Make teststring a little bigger before we do anything with it.
5427 # a 1K string should be a reasonable start.
5428 for i in 1 2 3 4 5 6 7 8; do
5429 teststring=$teststring$teststring
5430 done
5431 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5432 # If test is not a shell built-in, we'll probably end up computing a
5433 # maximum length that is only half of the actual maximum length, but
5434 # we can't tell.
5435 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5436 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5437 test 17 != "$i" # 1/2 MB should be enough
5438 do
5439 i=`expr $i + 1`
5440 teststring=$teststring$teststring
5441 done
5442 # Only check the string length outside the loop.
5443 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5444 teststring=
5445 # Add a significant safety factor because C++ compilers can tack on
5446 # massive amounts of additional arguments before passing them to the
5447 # linker. It appears as though 1/2 is a usable value.
5448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5449 fi
5450 ;;
5451 esac
5452
5453 fi
5454
5455 if test -n "$lt_cv_sys_max_cmd_len"; then
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5457 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5458 else
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5460 printf "%s\n" "none" >&6; }
5461 fi
5462 max_cmd_len=$lt_cv_sys_max_cmd_len
5463
5464
5465
5466
5467
5468
5469 : ${CP="cp -f"}
5470 : ${MV="mv -f"}
5471 : ${RM="rm -f"}
5472
5473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5474 lt_unset=unset
5475 else
5476 lt_unset=false
5477 fi
5478
5479
5480
5481
5482
5483 # test EBCDIC or ASCII
5484 case `echo X|tr X '\101'` in
5485 A) # ASCII based system
5486 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5487 lt_SP2NL='tr \040 \012'
5488 lt_NL2SP='tr \015\012 \040\040'
5489 ;;
5490 *) # EBCDIC based system
5491 lt_SP2NL='tr \100 \n'
5492 lt_NL2SP='tr \r\n \100\100'
5493 ;;
5494 esac
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5505 printf %s "checking how to convert $build file names to $host format... " >&6; }
5506 if test ${lt_cv_to_host_file_cmd+y}
5507 then :
5508 printf %s "(cached) " >&6
5509 else $as_nop
5510 case $host in
5511 *-*-mingw* )
5512 case $build in
5513 *-*-mingw* ) # actually msys
5514 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5515 ;;
5516 *-*-cygwin* )
5517 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5518 ;;
5519 * ) # otherwise, assume *nix
5520 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5521 ;;
5522 esac
5523 ;;
5524 *-*-cygwin* )
5525 case $build in
5526 *-*-mingw* ) # actually msys
5527 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5528 ;;
5529 *-*-cygwin* )
5530 lt_cv_to_host_file_cmd=func_convert_file_noop
5531 ;;
5532 * ) # otherwise, assume *nix
5533 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5534 ;;
5535 esac
5536 ;;
5537 * ) # unhandled hosts (and "normal" native builds)
5538 lt_cv_to_host_file_cmd=func_convert_file_noop
5539 ;;
5540 esac
5541
5542 fi
5543
5544 to_host_file_cmd=$lt_cv_to_host_file_cmd
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5546 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5547
5548
5549
5550
5551
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5553 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5554 if test ${lt_cv_to_tool_file_cmd+y}
5555 then :
5556 printf %s "(cached) " >&6
5557 else $as_nop
5558 #assume ordinary cross tools, or native build.
5559 lt_cv_to_tool_file_cmd=func_convert_file_noop
5560 case $host in
5561 *-*-mingw* )
5562 case $build in
5563 *-*-mingw* ) # actually msys
5564 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5565 ;;
5566 esac
5567 ;;
5568 esac
5569
5570 fi
5571
5572 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5574 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5575
5576
5577
5578
5579
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5581 printf %s "checking for $LD option to reload object files... " >&6; }
5582 if test ${lt_cv_ld_reload_flag+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else $as_nop
5586 lt_cv_ld_reload_flag='-r'
5587 fi
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5589 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5590 reload_flag=$lt_cv_ld_reload_flag
5591 case $reload_flag in
5592 "" | " "*) ;;
5593 *) reload_flag=" $reload_flag" ;;
5594 esac
5595 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5596 case $host_os in
5597 cygwin* | mingw* | pw32* | cegcc*)
5598 if test yes != "$GCC"; then
5599 reload_cmds=false
5600 fi
5601 ;;
5602 darwin*)
5603 if test yes = "$GCC"; then
5604 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5605 else
5606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5607 fi
5608 ;;
5609 esac
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619 if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}file; ac_word=$2
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 printf %s "checking for $ac_word... " >&6; }
5624 if test ${ac_cv_prog_FILECMD+y}
5625 then :
5626 printf %s "(cached) " >&6
5627 else $as_nop
5628 if test -n "$FILECMD"; then
5629 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634 IFS=$as_save_IFS
5635 case $as_dir in #(((
5636 '') as_dir=./ ;;
5637 */) ;;
5638 *) as_dir=$as_dir/ ;;
5639 esac
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5644 break 2
5645 fi
5646 done
5647 done
5648 IFS=$as_save_IFS
5649
5650 fi
5651 fi
5652 FILECMD=$ac_cv_prog_FILECMD
5653 if test -n "$FILECMD"; then
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5655 printf "%s\n" "$FILECMD" >&6; }
5656 else
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 printf "%s\n" "no" >&6; }
5659 fi
5660
5661
5662 fi
5663 if test -z "$ac_cv_prog_FILECMD"; then
5664 ac_ct_FILECMD=$FILECMD
5665 # Extract the first word of "file", so it can be a program name with args.
5666 set dummy file; ac_word=$2
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 printf %s "checking for $ac_word... " >&6; }
5669 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else $as_nop
5673 if test -n "$ac_ct_FILECMD"; then
5674 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679 IFS=$as_save_IFS
5680 case $as_dir in #(((
5681 '') as_dir=./ ;;
5682 */) ;;
5683 *) as_dir=$as_dir/ ;;
5684 esac
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_ac_ct_FILECMD="file"
5688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5689 break 2
5690 fi
5691 done
5692 done
5693 IFS=$as_save_IFS
5694
5695 fi
5696 fi
5697 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5698 if test -n "$ac_ct_FILECMD"; then
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5700 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5701 else
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 printf "%s\n" "no" >&6; }
5704 fi
5705
5706 if test "x$ac_ct_FILECMD" = x; then
5707 FILECMD=":"
5708 else
5709 case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715 FILECMD=$ac_ct_FILECMD
5716 fi
5717 else
5718 FILECMD="$ac_cv_prog_FILECMD"
5719 fi
5720
5721
5722
5723
5724
5725
5726
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 printf %s "checking for $ac_word... " >&6; }
5732 if test ${ac_cv_prog_OBJDUMP+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else $as_nop
5736 if test -n "$OBJDUMP"; then
5737 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742 IFS=$as_save_IFS
5743 case $as_dir in #(((
5744 '') as_dir=./ ;;
5745 */) ;;
5746 *) as_dir=$as_dir/ ;;
5747 esac
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 OBJDUMP=$ac_cv_prog_OBJDUMP
5761 if test -n "$OBJDUMP"; then
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5763 printf "%s\n" "$OBJDUMP" >&6; }
5764 else
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 printf "%s\n" "no" >&6; }
5767 fi
5768
5769
5770 fi
5771 if test -z "$ac_cv_prog_OBJDUMP"; then
5772 ac_ct_OBJDUMP=$OBJDUMP
5773 # Extract the first word of "objdump", so it can be a program name with args.
5774 set dummy objdump; ac_word=$2
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 printf %s "checking for $ac_word... " >&6; }
5777 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5778 then :
5779 printf %s "(cached) " >&6
5780 else $as_nop
5781 if test -n "$ac_ct_OBJDUMP"; then
5782 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787 IFS=$as_save_IFS
5788 case $as_dir in #(((
5789 '') as_dir=./ ;;
5790 */) ;;
5791 *) as_dir=$as_dir/ ;;
5792 esac
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5806 if test -n "$ac_ct_OBJDUMP"; then
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5808 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5809 else
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 printf "%s\n" "no" >&6; }
5812 fi
5813
5814 if test "x$ac_ct_OBJDUMP" = x; then
5815 OBJDUMP="false"
5816 else
5817 case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823 OBJDUMP=$ac_ct_OBJDUMP
5824 fi
5825 else
5826 OBJDUMP="$ac_cv_prog_OBJDUMP"
5827 fi
5828
5829 test -z "$OBJDUMP" && OBJDUMP=objdump
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5840 printf %s "checking how to recognize dependent libraries... " >&6; }
5841 if test ${lt_cv_deplibs_check_method+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else $as_nop
5845 lt_cv_file_magic_cmd='$MAGIC_CMD'
5846 lt_cv_file_magic_test_file=
5847 lt_cv_deplibs_check_method='unknown'
5848 # Need to set the preceding variable on all platforms that support
5849 # interlibrary dependencies.
5850 # 'none' -- dependencies not supported.
5851 # 'unknown' -- same as none, but documents that we really don't know.
5852 # 'pass_all' -- all dependencies passed with no checks.
5853 # 'test_compile' -- check by making test program.
5854 # 'file_magic [[regex]]' -- check by looking for files in library path
5855 # that responds to the $file_magic_cmd with a given extended regex.
5856 # If you have 'file' or equivalent on your system and you're not sure
5857 # whether 'pass_all' will *always* work, you probably want this one.
5858
5859 case $host_os in
5860 aix[4-9]*)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863
5864 beos*)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868 bsdi[45]*)
5869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5870 lt_cv_file_magic_cmd='$FILECMD -L'
5871 lt_cv_file_magic_test_file=/shlib/libc.so
5872 ;;
5873
5874 cygwin*)
5875 # func_win32_libid is a shell function defined in ltmain.sh
5876 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5877 lt_cv_file_magic_cmd='func_win32_libid'
5878 ;;
5879
5880 mingw* | pw32*)
5881 # Base MSYS/MinGW do not provide the 'file' command needed by
5882 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5883 # unless we find 'file', for example because we are cross-compiling.
5884 if ( file / ) >/dev/null 2>&1; then
5885 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5886 lt_cv_file_magic_cmd='func_win32_libid'
5887 else
5888 # Keep this pattern in sync with the one in func_win32_libid.
5889 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5890 lt_cv_file_magic_cmd='$OBJDUMP -f'
5891 fi
5892 ;;
5893
5894 cegcc*)
5895 # use the weaker test based on 'objdump'. See mingw*.
5896 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5897 lt_cv_file_magic_cmd='$OBJDUMP -f'
5898 ;;
5899
5900 darwin* | rhapsody*)
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904 freebsd* | dragonfly* | midnightbsd*)
5905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5906 case $host_cpu in
5907 i*86 )
5908 # Not sure whether the presence of OpenBSD here was a mistake.
5909 # Let's accept both of them until this is cleared up.
5910 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5911 lt_cv_file_magic_cmd=$FILECMD
5912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5913 ;;
5914 esac
5915 else
5916 lt_cv_deplibs_check_method=pass_all
5917 fi
5918 ;;
5919
5920 haiku*)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
5924 hpux10.20* | hpux11*)
5925 lt_cv_file_magic_cmd=$FILECMD
5926 case $host_cpu in
5927 ia64*)
5928 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5929 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5930 ;;
5931 hppa*64*)
5932 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]'
5933 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5934 ;;
5935 *)
5936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5937 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5938 ;;
5939 esac
5940 ;;
5941
5942 interix[3-9]*)
5943 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5945 ;;
5946
5947 irix5* | irix6* | nonstopux*)
5948 case $LD in
5949 *-32|*"-32 ") libmagic=32-bit;;
5950 *-n32|*"-n32 ") libmagic=N32;;
5951 *-64|*"-64 ") libmagic=64-bit;;
5952 *) libmagic=never-match;;
5953 esac
5954 lt_cv_deplibs_check_method=pass_all
5955 ;;
5956
5957 # This must be glibc/ELF.
5958 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 netbsd*)
5963 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5965 else
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5967 fi
5968 ;;
5969
5970 newos6*)
5971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5972 lt_cv_file_magic_cmd=$FILECMD
5973 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5974 ;;
5975
5976 *nto* | *qnx*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980 openbsd* | bitrig*)
5981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5983 else
5984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5985 fi
5986 ;;
5987
5988 osf3* | osf4* | osf5*)
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991
5992 rdos*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 solaris*)
5997 lt_cv_deplibs_check_method=pass_all
5998 ;;
5999
6000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004 sysv4 | sysv4.3*)
6005 case $host_vendor in
6006 motorola)
6007 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]'
6008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6009 ;;
6010 ncr)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013 sequent)
6014 lt_cv_file_magic_cmd='/bin/file'
6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6016 ;;
6017 sni)
6018 lt_cv_file_magic_cmd='/bin/file'
6019 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6020 lt_cv_file_magic_test_file=/lib/libc.so
6021 ;;
6022 siemens)
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
6025 pc)
6026 lt_cv_deplibs_check_method=pass_all
6027 ;;
6028 esac
6029 ;;
6030
6031 tpf*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034 os2*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037 esac
6038
6039 fi
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6041 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6042
6043 file_magic_glob=
6044 want_nocaseglob=no
6045 if test "$build" = "$host"; then
6046 case $host_os in
6047 mingw* | pw32*)
6048 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6049 want_nocaseglob=yes
6050 else
6051 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6052 fi
6053 ;;
6054 esac
6055 fi
6056
6057 file_magic_cmd=$lt_cv_file_magic_cmd
6058 deplibs_check_method=$lt_cv_deplibs_check_method
6059 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6084 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 printf %s "checking for $ac_word... " >&6; }
6087 if test ${ac_cv_prog_DLLTOOL+y}
6088 then :
6089 printf %s "(cached) " >&6
6090 else $as_nop
6091 if test -n "$DLLTOOL"; then
6092 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097 IFS=$as_save_IFS
6098 case $as_dir in #(((
6099 '') as_dir=./ ;;
6100 */) ;;
6101 *) as_dir=$as_dir/ ;;
6102 esac
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 DLLTOOL=$ac_cv_prog_DLLTOOL
6116 if test -n "$DLLTOOL"; then
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6118 printf "%s\n" "$DLLTOOL" >&6; }
6119 else
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 printf "%s\n" "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_DLLTOOL"; then
6127 ac_ct_DLLTOOL=$DLLTOOL
6128 # Extract the first word of "dlltool", so it can be a program name with args.
6129 set dummy dlltool; ac_word=$2
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 printf %s "checking for $ac_word... " >&6; }
6132 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6133 then :
6134 printf %s "(cached) " >&6
6135 else $as_nop
6136 if test -n "$ac_ct_DLLTOOL"; then
6137 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142 IFS=$as_save_IFS
6143 case $as_dir in #(((
6144 '') as_dir=./ ;;
6145 */) ;;
6146 *) as_dir=$as_dir/ ;;
6147 esac
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6161 if test -n "$ac_ct_DLLTOOL"; then
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6163 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6164 else
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 printf "%s\n" "no" >&6; }
6167 fi
6168
6169 if test "x$ac_ct_DLLTOOL" = x; then
6170 DLLTOOL="false"
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178 DLLTOOL=$ac_ct_DLLTOOL
6179 fi
6180 else
6181 DLLTOOL="$ac_cv_prog_DLLTOOL"
6182 fi
6183
6184 test -z "$DLLTOOL" && DLLTOOL=dlltool
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6196 printf %s "checking how to associate runtime and link libraries... " >&6; }
6197 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6198 then :
6199 printf %s "(cached) " >&6
6200 else $as_nop
6201 lt_cv_sharedlib_from_linklib_cmd='unknown'
6202
6203 case $host_os in
6204 cygwin* | mingw* | pw32* | cegcc*)
6205 # two different shell functions defined in ltmain.sh;
6206 # decide which one to use based on capabilities of $DLLTOOL
6207 case `$DLLTOOL --help 2>&1` in
6208 *--identify-strict*)
6209 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6210 ;;
6211 *)
6212 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6213 ;;
6214 esac
6215 ;;
6216 *)
6217 # fallback: assume linklib IS sharedlib
6218 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6219 ;;
6220 esac
6221
6222 fi
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6224 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6225 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6226 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6227
6228
6229
6230
6231
6232
6233
6234
6235 if test -n "$ac_tool_prefix"; then
6236 for ac_prog in ar
6237 do
6238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 printf %s "checking for $ac_word... " >&6; }
6242 if test ${ac_cv_prog_AR+y}
6243 then :
6244 printf %s "(cached) " >&6
6245 else $as_nop
6246 if test -n "$AR"; then
6247 ac_cv_prog_AR="$AR" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252 IFS=$as_save_IFS
6253 case $as_dir in #(((
6254 '') as_dir=./ ;;
6255 */) ;;
6256 *) as_dir=$as_dir/ ;;
6257 esac
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 AR=$ac_cv_prog_AR
6271 if test -n "$AR"; then
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6273 printf "%s\n" "$AR" >&6; }
6274 else
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 printf "%s\n" "no" >&6; }
6277 fi
6278
6279
6280 test -n "$AR" && break
6281 done
6282 fi
6283 if test -z "$AR"; then
6284 ac_ct_AR=$AR
6285 for ac_prog in ar
6286 do
6287 # Extract the first word of "$ac_prog", so it can be a program name with args.
6288 set dummy $ac_prog; ac_word=$2
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 printf %s "checking for $ac_word... " >&6; }
6291 if test ${ac_cv_prog_ac_ct_AR+y}
6292 then :
6293 printf %s "(cached) " >&6
6294 else $as_nop
6295 if test -n "$ac_ct_AR"; then
6296 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 case $as_dir in #(((
6303 '') as_dir=./ ;;
6304 */) ;;
6305 *) as_dir=$as_dir/ ;;
6306 esac
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_ac_ct_AR="$ac_prog"
6310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6320 if test -n "$ac_ct_AR"; then
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6322 printf "%s\n" "$ac_ct_AR" >&6; }
6323 else
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 printf "%s\n" "no" >&6; }
6326 fi
6327
6328
6329 test -n "$ac_ct_AR" && break
6330 done
6331
6332 if test "x$ac_ct_AR" = x; then
6333 AR="false"
6334 else
6335 case $cross_compiling:$ac_tool_warned in
6336 yes:)
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339 ac_tool_warned=yes ;;
6340 esac
6341 AR=$ac_ct_AR
6342 fi
6343 fi
6344
6345 : ${AR=ar}
6346
6347
6348
6349
6350
6351
6352 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6353 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6354 # higher priority because thats what people were doing historically (setting
6355 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6356 # variable obsoleted/removed.
6357
6358 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6359 lt_ar_flags=$AR_FLAGS
6360
6361
6362
6363
6364
6365
6366 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6367 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6368
6369
6370
6371
6372
6373
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6375 printf %s "checking for archiver @FILE support... " >&6; }
6376 if test ${lt_cv_ar_at_file+y}
6377 then :
6378 printf %s "(cached) " >&6
6379 else $as_nop
6380 lt_cv_ar_at_file=no
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383
6384 int
6385 main (void)
6386 {
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"
6393 then :
6394 echo conftest.$ac_objext > conftest.lst
6395 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6397 (eval $lt_ar_try) 2>&5
6398 ac_status=$?
6399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }
6401 if test 0 -eq "$ac_status"; then
6402 # Ensure the archiver fails upon bogus file names.
6403 rm -f conftest.$ac_objext libconftest.a
6404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6405 (eval $lt_ar_try) 2>&5
6406 ac_status=$?
6407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }
6409 if test 0 -ne "$ac_status"; then
6410 lt_cv_ar_at_file=@
6411 fi
6412 fi
6413 rm -f conftest.* libconftest.a
6414
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6417
6418 fi
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6420 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6421
6422 if test no = "$lt_cv_ar_at_file"; then
6423 archiver_list_spec=
6424 else
6425 archiver_list_spec=$lt_cv_ar_at_file
6426 fi
6427
6428
6429
6430
6431
6432
6433
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}strip; ac_word=$2
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 printf %s "checking for $ac_word... " >&6; }
6439 if test ${ac_cv_prog_STRIP+y}
6440 then :
6441 printf %s "(cached) " >&6
6442 else $as_nop
6443 if test -n "$STRIP"; then
6444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 case $as_dir in #(((
6451 '') as_dir=./ ;;
6452 */) ;;
6453 *) as_dir=$as_dir/ ;;
6454 esac
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 STRIP=$ac_cv_prog_STRIP
6468 if test -n "$STRIP"; then
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6470 printf "%s\n" "$STRIP" >&6; }
6471 else
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 printf "%s\n" "no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_STRIP"; then
6479 ac_ct_STRIP=$STRIP
6480 # Extract the first word of "strip", so it can be a program name with args.
6481 set dummy strip; ac_word=$2
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 printf %s "checking for $ac_word... " >&6; }
6484 if test ${ac_cv_prog_ac_ct_STRIP+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else $as_nop
6488 if test -n "$ac_ct_STRIP"; then
6489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 case $as_dir in #(((
6496 '') as_dir=./ ;;
6497 */) ;;
6498 *) as_dir=$as_dir/ ;;
6499 esac
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_ac_ct_STRIP="strip"
6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6513 if test -n "$ac_ct_STRIP"; then
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6515 printf "%s\n" "$ac_ct_STRIP" >&6; }
6516 else
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 printf "%s\n" "no" >&6; }
6519 fi
6520
6521 if test "x$ac_ct_STRIP" = x; then
6522 STRIP=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 STRIP=$ac_ct_STRIP
6531 fi
6532 else
6533 STRIP="$ac_cv_prog_STRIP"
6534 fi
6535
6536 test -z "$STRIP" && STRIP=:
6537
6538
6539
6540
6541
6542
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 printf %s "checking for $ac_word... " >&6; }
6548 if test ${ac_cv_prog_RANLIB+y}
6549 then :
6550 printf %s "(cached) " >&6
6551 else $as_nop
6552 if test -n "$RANLIB"; then
6553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558 IFS=$as_save_IFS
6559 case $as_dir in #(((
6560 '') as_dir=./ ;;
6561 */) ;;
6562 *) as_dir=$as_dir/ ;;
6563 esac
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 RANLIB=$ac_cv_prog_RANLIB
6577 if test -n "$RANLIB"; then
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6579 printf "%s\n" "$RANLIB" >&6; }
6580 else
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 printf "%s\n" "no" >&6; }
6583 fi
6584
6585
6586 fi
6587 if test -z "$ac_cv_prog_RANLIB"; then
6588 ac_ct_RANLIB=$RANLIB
6589 # Extract the first word of "ranlib", so it can be a program name with args.
6590 set dummy ranlib; ac_word=$2
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 printf %s "checking for $ac_word... " >&6; }
6593 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6594 then :
6595 printf %s "(cached) " >&6
6596 else $as_nop
6597 if test -n "$ac_ct_RANLIB"; then
6598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603 IFS=$as_save_IFS
6604 case $as_dir in #(((
6605 '') as_dir=./ ;;
6606 */) ;;
6607 *) as_dir=$as_dir/ ;;
6608 esac
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_ac_ct_RANLIB="ranlib"
6612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6622 if test -n "$ac_ct_RANLIB"; then
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6624 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6625 else
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 printf "%s\n" "no" >&6; }
6628 fi
6629
6630 if test "x$ac_ct_RANLIB" = x; then
6631 RANLIB=":"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639 RANLIB=$ac_ct_RANLIB
6640 fi
6641 else
6642 RANLIB="$ac_cv_prog_RANLIB"
6643 fi
6644
6645 test -z "$RANLIB" && RANLIB=:
6646
6647
6648
6649
6650
6651
6652 # Determine commands to create old-style static archives.
6653 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6654 old_postinstall_cmds='chmod 644 $oldlib'
6655 old_postuninstall_cmds=
6656
6657 if test -n "$RANLIB"; then
6658 case $host_os in
6659 bitrig* | openbsd*)
6660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6661 ;;
6662 *)
6663 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6664 ;;
6665 esac
6666 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6667 fi
6668
6669 case $host_os in
6670 darwin*)
6671 lock_old_archive_extraction=yes ;;
6672 *)
6673 lock_old_archive_extraction=no ;;
6674 esac
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
6709
6710
6711
6712
6713
6714 # If no C compiler was specified, use CC.
6715 LTCC=${LTCC-"$CC"}
6716
6717 # If no C compiler flags were specified, use CFLAGS.
6718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6719
6720 # Allow CC to be a program name with arguments.
6721 compiler=$CC
6722
6723
6724 # Check for command to grab the raw symbol name followed by C symbol from nm.
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6726 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6727 if test ${lt_cv_sys_global_symbol_pipe+y}
6728 then :
6729 printf %s "(cached) " >&6
6730 else $as_nop
6731
6732 # These are sane defaults that work on at least a few old systems.
6733 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6734
6735 # Character class describing NM global symbol codes.
6736 symcode='[BCDEGRST]'
6737
6738 # Regexp to match symbols that can be accessed directly from C.
6739 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6740
6741 # Define system-specific variables.
6742 case $host_os in
6743 aix*)
6744 symcode='[BCDT]'
6745 ;;
6746 cygwin* | mingw* | pw32* | cegcc*)
6747 symcode='[ABCDGISTW]'
6748 ;;
6749 hpux*)
6750 if test ia64 = "$host_cpu"; then
6751 symcode='[ABCDEGRST]'
6752 fi
6753 ;;
6754 irix* | nonstopux*)
6755 symcode='[BCDEGRST]'
6756 ;;
6757 osf*)
6758 symcode='[BCDEGQRST]'
6759 ;;
6760 solaris*)
6761 symcode='[BDRT]'
6762 ;;
6763 sco3.2v5*)
6764 symcode='[DT]'
6765 ;;
6766 sysv4.2uw2*)
6767 symcode='[DT]'
6768 ;;
6769 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6770 symcode='[ABDT]'
6771 ;;
6772 sysv4)
6773 symcode='[DFNSTU]'
6774 ;;
6775 esac
6776
6777 # If we're using GNU nm, then use its standard symbol codes.
6778 case `$NM -V 2>&1` in
6779 *GNU* | *'with BFD'*)
6780 symcode='[ABCDGIRSTW]' ;;
6781 esac
6782
6783 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6784 # Gets list of data symbols to import.
6785 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6786 # Adjust the below global symbol transforms to fixup imported variables.
6787 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6788 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6789 lt_c_name_lib_hook="\
6790 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6791 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6792 else
6793 # Disable hooks by default.
6794 lt_cv_sys_global_symbol_to_import=
6795 lt_cdecl_hook=
6796 lt_c_name_hook=
6797 lt_c_name_lib_hook=
6798 fi
6799
6800 # Transform an extracted symbol line into a proper C declaration.
6801 # Some systems (esp. on ia64) link data and code symbols differently,
6802 # so use this general approach.
6803 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6804 $lt_cdecl_hook\
6805 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6806 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6807
6808 # Transform an extracted symbol line into symbol name and symbol address
6809 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6810 $lt_c_name_hook\
6811 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6812 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6813
6814 # Transform an extracted symbol line into symbol name with lib prefix and
6815 # symbol address.
6816 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6817 $lt_c_name_lib_hook\
6818 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6819 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6820 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6821
6822 # Handle CRLF in mingw tool chain
6823 opt_cr=
6824 case $build_os in
6825 mingw*)
6826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6827 ;;
6828 esac
6829
6830 # Try without a prefix underscore, then with it.
6831 for ac_symprfx in "" "_"; do
6832
6833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6834 symxfrm="\\1 $ac_symprfx\\2 \\2"
6835
6836 # Write the raw and C identifiers.
6837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6838 # Fake it for dumpbin and say T for any non-static function,
6839 # D for any global variable and I for any imported variable.
6840 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6841 # which start with @ or ?.
6842 lt_cv_sys_global_symbol_pipe="$AWK '"\
6843 " {last_section=section; section=\$ 3};"\
6844 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6845 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6846 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6847 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6848 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6849 " \$ 0!~/External *\|/{next};"\
6850 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6851 " {if(hide[section]) next};"\
6852 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6853 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6854 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6855 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6856 " ' prfx=^$ac_symprfx"
6857 else
6858 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6859 fi
6860 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6861
6862 # Check to see that the pipe works correctly.
6863 pipe_works=no
6864
6865 rm -f conftest*
6866 cat > conftest.$ac_ext <<_LT_EOF
6867 #ifdef __cplusplus
6868 extern "C" {
6869 #endif
6870 char nm_test_var;
6871 void nm_test_func(void);
6872 void nm_test_func(void){}
6873 #ifdef __cplusplus
6874 }
6875 #endif
6876 int main(){nm_test_var='a';nm_test_func();return(0);}
6877 _LT_EOF
6878
6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880 (eval $ac_compile) 2>&5
6881 ac_status=$?
6882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; }; then
6884 # Now try to grab the symbols.
6885 nlist=conftest.nm
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6887 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6888 ac_status=$?
6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; } && test -s "$nlist"; then
6891 # Try sorting and uniquifying the output.
6892 if sort "$nlist" | uniq > "$nlist"T; then
6893 mv -f "$nlist"T "$nlist"
6894 else
6895 rm -f "$nlist"T
6896 fi
6897
6898 # Make sure that we snagged all the symbols we need.
6899 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6900 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6901 cat <<_LT_EOF > conftest.$ac_ext
6902 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6903 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6904 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6905 relocations are performed -- see ld's documentation on pseudo-relocs. */
6906 # define LT_DLSYM_CONST
6907 #elif defined __osf__
6908 /* This system does not cope well with relocations in const data. */
6909 # define LT_DLSYM_CONST
6910 #else
6911 # define LT_DLSYM_CONST const
6912 #endif
6913
6914 #ifdef __cplusplus
6915 extern "C" {
6916 #endif
6917
6918 _LT_EOF
6919 # Now generate the symbol file.
6920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6921
6922 cat <<_LT_EOF >> conftest.$ac_ext
6923
6924 /* The mapping between symbol names and symbols. */
6925 LT_DLSYM_CONST struct {
6926 const char *name;
6927 void *address;
6928 }
6929 lt__PROGRAM__LTX_preloaded_symbols[] =
6930 {
6931 { "@PROGRAM@", (void *) 0 },
6932 _LT_EOF
6933 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6934 cat <<\_LT_EOF >> conftest.$ac_ext
6935 {0, (void *) 0}
6936 };
6937
6938 /* This works around a problem in FreeBSD linker */
6939 #ifdef FREEBSD_WORKAROUND
6940 static const void *lt_preloaded_setup() {
6941 return lt__PROGRAM__LTX_preloaded_symbols;
6942 }
6943 #endif
6944
6945 #ifdef __cplusplus
6946 }
6947 #endif
6948 _LT_EOF
6949 # Now try linking the two files.
6950 mv conftest.$ac_objext conftstm.$ac_objext
6951 lt_globsym_save_LIBS=$LIBS
6952 lt_globsym_save_CFLAGS=$CFLAGS
6953 LIBS=conftstm.$ac_objext
6954 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6956 (eval $ac_link) 2>&5
6957 ac_status=$?
6958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6960 pipe_works=yes
6961 fi
6962 LIBS=$lt_globsym_save_LIBS
6963 CFLAGS=$lt_globsym_save_CFLAGS
6964 else
6965 echo "cannot find nm_test_func in $nlist" >&5
6966 fi
6967 else
6968 echo "cannot find nm_test_var in $nlist" >&5
6969 fi
6970 else
6971 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6972 fi
6973 else
6974 echo "$progname: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6976 fi
6977 rm -rf conftest* conftst*
6978
6979 # Do not use the global_symbol_pipe unless it works.
6980 if test yes = "$pipe_works"; then
6981 break
6982 else
6983 lt_cv_sys_global_symbol_pipe=
6984 fi
6985 done
6986
6987 fi
6988
6989 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6990 lt_cv_sys_global_symbol_to_cdecl=
6991 fi
6992 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6994 printf "%s\n" "failed" >&6; }
6995 else
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6997 printf "%s\n" "ok" >&6; }
6998 fi
6999
7000 # Response file support.
7001 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7002 nm_file_list_spec='@'
7003 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7004 nm_file_list_spec='@'
7005 fi
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
7038
7039
7040
7041
7042
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7044 printf %s "checking for sysroot... " >&6; }
7045
7046 # Check whether --with-sysroot was given.
7047 if test ${with_sysroot+y}
7048 then :
7049 withval=$with_sysroot;
7050 else $as_nop
7051 with_sysroot=no
7052 fi
7053
7054
7055 lt_sysroot=
7056 case $with_sysroot in #(
7057 yes)
7058 if test yes = "$GCC"; then
7059 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7060 fi
7061 ;; #(
7062 /*)
7063 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7064 ;; #(
7065 no|'')
7066 ;; #(
7067 *)
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7069 printf "%s\n" "$with_sysroot" >&6; }
7070 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7071 ;;
7072 esac
7073
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7075 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7076
7077
7078
7079
7080
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7082 printf %s "checking for a working dd... " >&6; }
7083 if test ${ac_cv_path_lt_DD+y}
7084 then :
7085 printf %s "(cached) " >&6
7086 else $as_nop
7087 printf 0123456789abcdef0123456789abcdef >conftest.i
7088 cat conftest.i conftest.i >conftest2.i
7089 : ${lt_DD:=$DD}
7090 if test -z "$lt_DD"; then
7091 ac_path_lt_DD_found=false
7092 # Loop through the user's path and test for each of PROGNAME-LIST
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 case $as_dir in #(((
7098 '') as_dir=./ ;;
7099 */) ;;
7100 *) as_dir=$as_dir/ ;;
7101 esac
7102 for ac_prog in dd
7103 do
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7106 as_fn_executable_p "$ac_path_lt_DD" || continue
7107 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7108 cmp -s conftest.i conftest.out \
7109 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7110 fi
7111 $ac_path_lt_DD_found && break 3
7112 done
7113 done
7114 done
7115 IFS=$as_save_IFS
7116 if test -z "$ac_cv_path_lt_DD"; then
7117 :
7118 fi
7119 else
7120 ac_cv_path_lt_DD=$lt_DD
7121 fi
7122
7123 rm -f conftest.i conftest2.i conftest.out
7124 fi
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7126 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7127
7128
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7130 printf %s "checking how to truncate binary pipes... " >&6; }
7131 if test ${lt_cv_truncate_bin+y}
7132 then :
7133 printf %s "(cached) " >&6
7134 else $as_nop
7135 printf 0123456789abcdef0123456789abcdef >conftest.i
7136 cat conftest.i conftest.i >conftest2.i
7137 lt_cv_truncate_bin=
7138 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7139 cmp -s conftest.i conftest.out \
7140 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7141 fi
7142 rm -f conftest.i conftest2.i conftest.out
7143 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7144 fi
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7146 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7147
7148
7149
7150
7151
7152
7153
7154 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7155 func_cc_basename ()
7156 {
7157 for cc_temp in $*""; do
7158 case $cc_temp in
7159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7161 \-*) ;;
7162 *) break;;
7163 esac
7164 done
7165 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7166 }
7167
7168 # Check whether --enable-libtool-lock was given.
7169 if test ${enable_libtool_lock+y}
7170 then :
7171 enableval=$enable_libtool_lock;
7172 fi
7173
7174 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7175
7176 # Some flags need to be propagated to the compiler or linker for good
7177 # libtool support.
7178 case $host in
7179 ia64-*-hpux*)
7180 # Find out what ABI is being produced by ac_compile, and set mode
7181 # options accordingly.
7182 echo 'int i;' > conftest.$ac_ext
7183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7184 (eval $ac_compile) 2>&5
7185 ac_status=$?
7186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7187 test $ac_status = 0; }; then
7188 case `$FILECMD conftest.$ac_objext` in
7189 *ELF-32*)
7190 HPUX_IA64_MODE=32
7191 ;;
7192 *ELF-64*)
7193 HPUX_IA64_MODE=64
7194 ;;
7195 esac
7196 fi
7197 rm -rf conftest*
7198 ;;
7199 *-*-irix6*)
7200 # Find out what ABI is being produced by ac_compile, and set linker
7201 # options accordingly.
7202 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
7206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207 test $ac_status = 0; }; then
7208 if test yes = "$lt_cv_prog_gnu_ld"; then
7209 case `$FILECMD conftest.$ac_objext` in
7210 *32-bit*)
7211 LD="${LD-ld} -melf32bsmip"
7212 ;;
7213 *N32*)
7214 LD="${LD-ld} -melf32bmipn32"
7215 ;;
7216 *64-bit*)
7217 LD="${LD-ld} -melf64bmip"
7218 ;;
7219 esac
7220 else
7221 case `$FILECMD conftest.$ac_objext` in
7222 *32-bit*)
7223 LD="${LD-ld} -32"
7224 ;;
7225 *N32*)
7226 LD="${LD-ld} -n32"
7227 ;;
7228 *64-bit*)
7229 LD="${LD-ld} -64"
7230 ;;
7231 esac
7232 fi
7233 fi
7234 rm -rf conftest*
7235 ;;
7236
7237 mips64*-*linux*)
7238 # Find out what ABI is being produced by ac_compile, and set linker
7239 # options accordingly.
7240 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7242 (eval $ac_compile) 2>&5
7243 ac_status=$?
7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245 test $ac_status = 0; }; then
7246 emul=elf
7247 case `$FILECMD conftest.$ac_objext` in
7248 *32-bit*)
7249 emul="${emul}32"
7250 ;;
7251 *64-bit*)
7252 emul="${emul}64"
7253 ;;
7254 esac
7255 case `$FILECMD conftest.$ac_objext` in
7256 *MSB*)
7257 emul="${emul}btsmip"
7258 ;;
7259 *LSB*)
7260 emul="${emul}ltsmip"
7261 ;;
7262 esac
7263 case `$FILECMD conftest.$ac_objext` in
7264 *N32*)
7265 emul="${emul}n32"
7266 ;;
7267 esac
7268 LD="${LD-ld} -m $emul"
7269 fi
7270 rm -rf conftest*
7271 ;;
7272
7273 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7274 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7275 # Find out what ABI is being produced by ac_compile, and set linker
7276 # options accordingly. Note that the listed cases only cover the
7277 # situations where additional linker options are needed (such as when
7278 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7279 # vice versa); the common cases where no linker options are needed do
7280 # not appear in the list.
7281 echo 'int i;' > conftest.$ac_ext
7282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7283 (eval $ac_compile) 2>&5
7284 ac_status=$?
7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; }; then
7287 case `$FILECMD conftest.o` in
7288 *32-bit*)
7289 case $host in
7290 x86_64-*kfreebsd*-gnu)
7291 LD="${LD-ld} -m elf_i386_fbsd"
7292 ;;
7293 x86_64-*linux*)
7294 case `$FILECMD conftest.o` in
7295 *x86-64*)
7296 LD="${LD-ld} -m elf32_x86_64"
7297 ;;
7298 *)
7299 LD="${LD-ld} -m elf_i386"
7300 ;;
7301 esac
7302 ;;
7303 powerpc64le-*linux*)
7304 LD="${LD-ld} -m elf32lppclinux"
7305 ;;
7306 powerpc64-*linux*)
7307 LD="${LD-ld} -m elf32ppclinux"
7308 ;;
7309 s390x-*linux*)
7310 LD="${LD-ld} -m elf_s390"
7311 ;;
7312 sparc64-*linux*)
7313 LD="${LD-ld} -m elf32_sparc"
7314 ;;
7315 esac
7316 ;;
7317 *64-bit*)
7318 case $host in
7319 x86_64-*kfreebsd*-gnu)
7320 LD="${LD-ld} -m elf_x86_64_fbsd"
7321 ;;
7322 x86_64-*linux*)
7323 LD="${LD-ld} -m elf_x86_64"
7324 ;;
7325 powerpcle-*linux*|powerpc64le-*linux*)
7326 LD="${LD-ld} -m elf64lppc"
7327 ;;
7328 powerpc-*linux*|powerpc64-*linux*)
7329 LD="${LD-ld} -m elf64ppc"
7330 ;;
7331 s390*-*linux*|s390*-*tpf*)
7332 LD="${LD-ld} -m elf64_s390"
7333 ;;
7334 sparc*-*linux*)
7335 LD="${LD-ld} -m elf64_sparc"
7336 ;;
7337 esac
7338 ;;
7339 esac
7340 fi
7341 rm -rf conftest*
7342 ;;
7343
7344 *-*-sco3.2v5*)
7345 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7346 SAVE_CFLAGS=$CFLAGS
7347 CFLAGS="$CFLAGS -belf"
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7349 printf %s "checking whether the C compiler needs -belf... " >&6; }
7350 if test ${lt_cv_cc_needs_belf+y}
7351 then :
7352 printf %s "(cached) " >&6
7353 else $as_nop
7354 ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362
7363 int
7364 main (void)
7365 {
7366
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 if ac_fn_c_try_link "$LINENO"
7372 then :
7373 lt_cv_cc_needs_belf=yes
7374 else $as_nop
7375 lt_cv_cc_needs_belf=no
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7378 conftest$ac_exeext conftest.$ac_ext
7379 ac_ext=c
7380 ac_cpp='$CPP $CPPFLAGS'
7381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7384
7385 fi
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7387 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7388 if test yes != "$lt_cv_cc_needs_belf"; then
7389 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7390 CFLAGS=$SAVE_CFLAGS
7391 fi
7392 ;;
7393 *-*solaris*)
7394 # Find out what ABI is being produced by ac_compile, and set linker
7395 # options accordingly.
7396 echo 'int i;' > conftest.$ac_ext
7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398 (eval $ac_compile) 2>&5
7399 ac_status=$?
7400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401 test $ac_status = 0; }; then
7402 case `$FILECMD conftest.o` in
7403 *64-bit*)
7404 case $lt_cv_prog_gnu_ld in
7405 yes*)
7406 case $host in
7407 i?86-*-solaris*|x86_64-*-solaris*)
7408 LD="${LD-ld} -m elf_x86_64"
7409 ;;
7410 sparc*-*-solaris*)
7411 LD="${LD-ld} -m elf64_sparc"
7412 ;;
7413 esac
7414 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7415 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7416 LD=${LD-ld}_sol2
7417 fi
7418 ;;
7419 *)
7420 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7421 LD="${LD-ld} -64"
7422 fi
7423 ;;
7424 esac
7425 ;;
7426 esac
7427 fi
7428 rm -rf conftest*
7429 ;;
7430 esac
7431
7432 need_locks=$enable_libtool_lock
7433
7434 if test -n "$ac_tool_prefix"; then
7435 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7436 set dummy ${ac_tool_prefix}mt; ac_word=$2
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 printf %s "checking for $ac_word... " >&6; }
7439 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7440 then :
7441 printf %s "(cached) " >&6
7442 else $as_nop
7443 if test -n "$MANIFEST_TOOL"; then
7444 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449 IFS=$as_save_IFS
7450 case $as_dir in #(((
7451 '') as_dir=./ ;;
7452 */) ;;
7453 *) as_dir=$as_dir/ ;;
7454 esac
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461 done
7462 done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7468 if test -n "$MANIFEST_TOOL"; then
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7470 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7471 else
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 printf "%s\n" "no" >&6; }
7474 fi
7475
7476
7477 fi
7478 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7479 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7480 # Extract the first word of "mt", so it can be a program name with args.
7481 set dummy mt; ac_word=$2
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 printf %s "checking for $ac_word... " >&6; }
7484 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7485 then :
7486 printf %s "(cached) " >&6
7487 else $as_nop
7488 if test -n "$ac_ct_MANIFEST_TOOL"; then
7489 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494 IFS=$as_save_IFS
7495 case $as_dir in #(((
7496 '') as_dir=./ ;;
7497 */) ;;
7498 *) as_dir=$as_dir/ ;;
7499 esac
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7513 if test -n "$ac_ct_MANIFEST_TOOL"; then
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7515 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7516 else
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 printf "%s\n" "no" >&6; }
7519 fi
7520
7521 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7522 MANIFEST_TOOL=":"
7523 else
7524 case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7531 fi
7532 else
7533 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7534 fi
7535
7536 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7538 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7539 if test ${lt_cv_path_mainfest_tool+y}
7540 then :
7541 printf %s "(cached) " >&6
7542 else $as_nop
7543 lt_cv_path_mainfest_tool=no
7544 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7545 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7546 cat conftest.err >&5
7547 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7548 lt_cv_path_mainfest_tool=yes
7549 fi
7550 rm -f conftest*
7551 fi
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7553 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7554 if test yes != "$lt_cv_path_mainfest_tool"; then
7555 MANIFEST_TOOL=:
7556 fi
7557
7558
7559
7560
7561
7562
7563 case $host_os in
7564 rhapsody* | darwin*)
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 printf %s "checking for $ac_word... " >&6; }
7570 if test ${ac_cv_prog_DSYMUTIL+y}
7571 then :
7572 printf %s "(cached) " >&6
7573 else $as_nop
7574 if test -n "$DSYMUTIL"; then
7575 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 case $as_dir in #(((
7582 '') as_dir=./ ;;
7583 */) ;;
7584 *) as_dir=$as_dir/ ;;
7585 esac
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7599 if test -n "$DSYMUTIL"; then
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7601 printf "%s\n" "$DSYMUTIL" >&6; }
7602 else
7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 printf "%s\n" "no" >&6; }
7605 fi
7606
7607
7608 fi
7609 if test -z "$ac_cv_prog_DSYMUTIL"; then
7610 ac_ct_DSYMUTIL=$DSYMUTIL
7611 # Extract the first word of "dsymutil", so it can be a program name with args.
7612 set dummy dsymutil; ac_word=$2
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 printf %s "checking for $ac_word... " >&6; }
7615 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7616 then :
7617 printf %s "(cached) " >&6
7618 else $as_nop
7619 if test -n "$ac_ct_DSYMUTIL"; then
7620 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625 IFS=$as_save_IFS
7626 case $as_dir in #(((
7627 '') as_dir=./ ;;
7628 */) ;;
7629 *) as_dir=$as_dir/ ;;
7630 esac
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7644 if test -n "$ac_ct_DSYMUTIL"; then
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7646 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7647 else
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 printf "%s\n" "no" >&6; }
7650 fi
7651
7652 if test "x$ac_ct_DSYMUTIL" = x; then
7653 DSYMUTIL=":"
7654 else
7655 case $cross_compiling:$ac_tool_warned in
7656 yes:)
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7660 esac
7661 DSYMUTIL=$ac_ct_DSYMUTIL
7662 fi
7663 else
7664 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7665 fi
7666
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 printf %s "checking for $ac_word... " >&6; }
7672 if test ${ac_cv_prog_NMEDIT+y}
7673 then :
7674 printf %s "(cached) " >&6
7675 else $as_nop
7676 if test -n "$NMEDIT"; then
7677 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 case $as_dir in #(((
7684 '') as_dir=./ ;;
7685 */) ;;
7686 *) as_dir=$as_dir/ ;;
7687 esac
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 NMEDIT=$ac_cv_prog_NMEDIT
7701 if test -n "$NMEDIT"; then
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7703 printf "%s\n" "$NMEDIT" >&6; }
7704 else
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 printf "%s\n" "no" >&6; }
7707 fi
7708
7709
7710 fi
7711 if test -z "$ac_cv_prog_NMEDIT"; then
7712 ac_ct_NMEDIT=$NMEDIT
7713 # Extract the first word of "nmedit", so it can be a program name with args.
7714 set dummy nmedit; ac_word=$2
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 printf %s "checking for $ac_word... " >&6; }
7717 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7718 then :
7719 printf %s "(cached) " >&6
7720 else $as_nop
7721 if test -n "$ac_ct_NMEDIT"; then
7722 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727 IFS=$as_save_IFS
7728 case $as_dir in #(((
7729 '') as_dir=./ ;;
7730 */) ;;
7731 *) as_dir=$as_dir/ ;;
7732 esac
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7735 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7746 if test -n "$ac_ct_NMEDIT"; then
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7748 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7749 else
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 printf "%s\n" "no" >&6; }
7752 fi
7753
7754 if test "x$ac_ct_NMEDIT" = x; then
7755 NMEDIT=":"
7756 else
7757 case $cross_compiling:$ac_tool_warned in
7758 yes:)
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7760 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761 ac_tool_warned=yes ;;
7762 esac
7763 NMEDIT=$ac_ct_NMEDIT
7764 fi
7765 else
7766 NMEDIT="$ac_cv_prog_NMEDIT"
7767 fi
7768
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 printf %s "checking for $ac_word... " >&6; }
7774 if test ${ac_cv_prog_LIPO+y}
7775 then :
7776 printf %s "(cached) " >&6
7777 else $as_nop
7778 if test -n "$LIPO"; then
7779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 case $as_dir in #(((
7786 '') as_dir=./ ;;
7787 */) ;;
7788 *) as_dir=$as_dir/ ;;
7789 esac
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 LIPO=$ac_cv_prog_LIPO
7803 if test -n "$LIPO"; then
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7805 printf "%s\n" "$LIPO" >&6; }
7806 else
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 printf "%s\n" "no" >&6; }
7809 fi
7810
7811
7812 fi
7813 if test -z "$ac_cv_prog_LIPO"; then
7814 ac_ct_LIPO=$LIPO
7815 # Extract the first word of "lipo", so it can be a program name with args.
7816 set dummy lipo; ac_word=$2
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 printf %s "checking for $ac_word... " >&6; }
7819 if test ${ac_cv_prog_ac_ct_LIPO+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else $as_nop
7823 if test -n "$ac_ct_LIPO"; then
7824 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829 IFS=$as_save_IFS
7830 case $as_dir in #(((
7831 '') as_dir=./ ;;
7832 */) ;;
7833 *) as_dir=$as_dir/ ;;
7834 esac
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_ac_ct_LIPO="lipo"
7838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7848 if test -n "$ac_ct_LIPO"; then
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7850 printf "%s\n" "$ac_ct_LIPO" >&6; }
7851 else
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 printf "%s\n" "no" >&6; }
7854 fi
7855
7856 if test "x$ac_ct_LIPO" = x; then
7857 LIPO=":"
7858 else
7859 case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865 LIPO=$ac_ct_LIPO
7866 fi
7867 else
7868 LIPO="$ac_cv_prog_LIPO"
7869 fi
7870
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7873 set dummy ${ac_tool_prefix}otool; ac_word=$2
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 printf %s "checking for $ac_word... " >&6; }
7876 if test ${ac_cv_prog_OTOOL+y}
7877 then :
7878 printf %s "(cached) " >&6
7879 else $as_nop
7880 if test -n "$OTOOL"; then
7881 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886 IFS=$as_save_IFS
7887 case $as_dir in #(((
7888 '') as_dir=./ ;;
7889 */) ;;
7890 *) as_dir=$as_dir/ ;;
7891 esac
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7896 break 2
7897 fi
7898 done
7899 done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 OTOOL=$ac_cv_prog_OTOOL
7905 if test -n "$OTOOL"; then
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7907 printf "%s\n" "$OTOOL" >&6; }
7908 else
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 printf "%s\n" "no" >&6; }
7911 fi
7912
7913
7914 fi
7915 if test -z "$ac_cv_prog_OTOOL"; then
7916 ac_ct_OTOOL=$OTOOL
7917 # Extract the first word of "otool", so it can be a program name with args.
7918 set dummy otool; ac_word=$2
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 printf %s "checking for $ac_word... " >&6; }
7921 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7922 then :
7923 printf %s "(cached) " >&6
7924 else $as_nop
7925 if test -n "$ac_ct_OTOOL"; then
7926 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7930 do
7931 IFS=$as_save_IFS
7932 case $as_dir in #(((
7933 '') as_dir=./ ;;
7934 */) ;;
7935 *) as_dir=$as_dir/ ;;
7936 esac
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_ac_ct_OTOOL="otool"
7940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7950 if test -n "$ac_ct_OTOOL"; then
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7952 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7953 else
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 printf "%s\n" "no" >&6; }
7956 fi
7957
7958 if test "x$ac_ct_OTOOL" = x; then
7959 OTOOL=":"
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965 ac_tool_warned=yes ;;
7966 esac
7967 OTOOL=$ac_ct_OTOOL
7968 fi
7969 else
7970 OTOOL="$ac_cv_prog_OTOOL"
7971 fi
7972
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7975 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 printf %s "checking for $ac_word... " >&6; }
7978 if test ${ac_cv_prog_OTOOL64+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else $as_nop
7982 if test -n "$OTOOL64"; then
7983 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 case $as_dir in #(((
7990 '') as_dir=./ ;;
7991 */) ;;
7992 *) as_dir=$as_dir/ ;;
7993 esac
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 OTOOL64=$ac_cv_prog_OTOOL64
8007 if test -n "$OTOOL64"; then
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8009 printf "%s\n" "$OTOOL64" >&6; }
8010 else
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 printf "%s\n" "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_OTOOL64"; then
8018 ac_ct_OTOOL64=$OTOOL64
8019 # Extract the first word of "otool64", so it can be a program name with args.
8020 set dummy otool64; ac_word=$2
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 printf %s "checking for $ac_word... " >&6; }
8023 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else $as_nop
8027 if test -n "$ac_ct_OTOOL64"; then
8028 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 case $as_dir in #(((
8035 '') as_dir=./ ;;
8036 */) ;;
8037 *) as_dir=$as_dir/ ;;
8038 esac
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_ac_ct_OTOOL64="otool64"
8042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8043 break 2
8044 fi
8045 done
8046 done
8047 IFS=$as_save_IFS
8048
8049 fi
8050 fi
8051 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8052 if test -n "$ac_ct_OTOOL64"; then
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8054 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8055 else
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 printf "%s\n" "no" >&6; }
8058 fi
8059
8060 if test "x$ac_ct_OTOOL64" = x; then
8061 OTOOL64=":"
8062 else
8063 case $cross_compiling:$ac_tool_warned in
8064 yes:)
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067 ac_tool_warned=yes ;;
8068 esac
8069 OTOOL64=$ac_ct_OTOOL64
8070 fi
8071 else
8072 OTOOL64="$ac_cv_prog_OTOOL64"
8073 fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8102 printf %s "checking for -single_module linker flag... " >&6; }
8103 if test ${lt_cv_apple_cc_single_mod+y}
8104 then :
8105 printf %s "(cached) " >&6
8106 else $as_nop
8107 lt_cv_apple_cc_single_mod=no
8108 if test -z "$LT_MULTI_MODULE"; then
8109 # By default we will add the -single_module flag. You can override
8110 # by either setting the environment variable LT_MULTI_MODULE
8111 # non-empty at configure time, or by adding -multi_module to the
8112 # link flags.
8113 rm -rf libconftest.dylib*
8114 echo "int foo(void){return 1;}" > conftest.c
8115 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116 -dynamiclib -Wl,-single_module conftest.c" >&5
8117 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8118 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8119 _lt_result=$?
8120 # If there is a non-empty error log, and "single_module"
8121 # appears in it, assume the flag caused a linker warning
8122 if test -s conftest.err && $GREP single_module conftest.err; then
8123 cat conftest.err >&5
8124 # Otherwise, if the output was created with a 0 exit code from
8125 # the compiler, it worked.
8126 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8127 lt_cv_apple_cc_single_mod=yes
8128 else
8129 cat conftest.err >&5
8130 fi
8131 rm -rf libconftest.dylib*
8132 rm -f conftest.*
8133 fi
8134 fi
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8136 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8137
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8139 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8140 if test ${lt_cv_ld_exported_symbols_list+y}
8141 then :
8142 printf %s "(cached) " >&6
8143 else $as_nop
8144 lt_cv_ld_exported_symbols_list=no
8145 save_LDFLAGS=$LDFLAGS
8146 echo "_main" > conftest.sym
8147 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150
8151 int
8152 main (void)
8153 {
8154
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_link "$LINENO"
8160 then :
8161 lt_cv_ld_exported_symbols_list=yes
8162 else $as_nop
8163 lt_cv_ld_exported_symbols_list=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8166 conftest$ac_exeext conftest.$ac_ext
8167 LDFLAGS=$save_LDFLAGS
8168
8169 fi
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8171 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8172
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8174 printf %s "checking for -force_load linker flag... " >&6; }
8175 if test ${lt_cv_ld_force_load+y}
8176 then :
8177 printf %s "(cached) " >&6
8178 else $as_nop
8179 lt_cv_ld_force_load=no
8180 cat > conftest.c << _LT_EOF
8181 int forced_loaded() { return 2;}
8182 _LT_EOF
8183 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8184 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8185 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8186 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8187 echo "$RANLIB libconftest.a" >&5
8188 $RANLIB libconftest.a 2>&5
8189 cat > conftest.c << _LT_EOF
8190 int main() { return 0;}
8191 _LT_EOF
8192 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8193 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8194 _lt_result=$?
8195 if test -s conftest.err && $GREP force_load conftest.err; then
8196 cat conftest.err >&5
8197 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8198 lt_cv_ld_force_load=yes
8199 else
8200 cat conftest.err >&5
8201 fi
8202 rm -f conftest.err libconftest.a conftest conftest.c
8203 rm -rf conftest.dSYM
8204
8205 fi
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8207 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8208 case $host_os in
8209 rhapsody* | darwin1.[012])
8210 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8211 darwin1.*)
8212 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8213 darwin*)
8214 case $MACOSX_DEPLOYMENT_TARGET,$host in
8215 10.[012],*|,*powerpc*-darwin[5-8]*)
8216 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8217 *)
8218 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8219 esac
8220 ;;
8221 esac
8222 if test yes = "$lt_cv_apple_cc_single_mod"; then
8223 _lt_dar_single_mod='$single_module'
8224 fi
8225 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8226 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8227 else
8228 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8229 fi
8230 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8231 _lt_dsymutil='~$DSYMUTIL $lib || :'
8232 else
8233 _lt_dsymutil=
8234 fi
8235 ;;
8236 esac
8237
8238 # func_munge_path_list VARIABLE PATH
8239 # -----------------------------------
8240 # VARIABLE is name of variable containing _space_ separated list of
8241 # directories to be munged by the contents of PATH, which is string
8242 # having a format:
8243 # "DIR[:DIR]:"
8244 # string "DIR[ DIR]" will be prepended to VARIABLE
8245 # ":DIR[:DIR]"
8246 # string "DIR[ DIR]" will be appended to VARIABLE
8247 # "DIRP[:DIRP]::[DIRA:]DIRA"
8248 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8249 # "DIRA[ DIRA]" will be appended to VARIABLE
8250 # "DIR[:DIR]"
8251 # VARIABLE will be replaced by "DIR[ DIR]"
8252 func_munge_path_list ()
8253 {
8254 case x$2 in
8255 x)
8256 ;;
8257 *:)
8258 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8259 ;;
8260 x:*)
8261 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8262 ;;
8263 *::*)
8264 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8265 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8266 ;;
8267 *)
8268 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8269 ;;
8270 esac
8271 }
8272
8273 ac_header= ac_cache=
8274 for ac_item in $ac_header_c_list
8275 do
8276 if test $ac_cache; then
8277 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8278 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8279 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8280 fi
8281 ac_header= ac_cache=
8282 elif test $ac_header; then
8283 ac_cache=$ac_item
8284 else
8285 ac_header=$ac_item
8286 fi
8287 done
8288
8289
8290
8291
8292
8293
8294
8295
8296 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8297 then :
8298
8299 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8300
8301 fi
8302 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8303 "
8304 if test "x$ac_cv_header_dlfcn_h" = xyes
8305 then :
8306 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8307
8308 fi
8309
8310
8311
8312
8313
8314 # Set options
8315
8316
8317
8318 enable_dlopen=no
8319
8320
8321 enable_win32_dll=no
8322
8323
8324 # Check whether --enable-shared was given.
8325 if test ${enable_shared+y}
8326 then :
8327 enableval=$enable_shared; p=${PACKAGE-default}
8328 case $enableval in
8329 yes) enable_shared=yes ;;
8330 no) enable_shared=no ;;
8331 *)
8332 enable_shared=no
8333 # Look at the argument we got. We use all the common list separators.
8334 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8335 for pkg in $enableval; do
8336 IFS=$lt_save_ifs
8337 if test "X$pkg" = "X$p"; then
8338 enable_shared=yes
8339 fi
8340 done
8341 IFS=$lt_save_ifs
8342 ;;
8343 esac
8344 else $as_nop
8345 enable_shared=yes
8346 fi
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 # Check whether --enable-static was given.
8357 if test ${enable_static+y}
8358 then :
8359 enableval=$enable_static; p=${PACKAGE-default}
8360 case $enableval in
8361 yes) enable_static=yes ;;
8362 no) enable_static=no ;;
8363 *)
8364 enable_static=no
8365 # Look at the argument we got. We use all the common list separators.
8366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8367 for pkg in $enableval; do
8368 IFS=$lt_save_ifs
8369 if test "X$pkg" = "X$p"; then
8370 enable_static=yes
8371 fi
8372 done
8373 IFS=$lt_save_ifs
8374 ;;
8375 esac
8376 else $as_nop
8377 enable_static=yes
8378 fi
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389 # Check whether --with-pic was given.
8390 if test ${with_pic+y}
8391 then :
8392 withval=$with_pic; lt_p=${PACKAGE-default}
8393 case $withval in
8394 yes|no) pic_mode=$withval ;;
8395 *)
8396 pic_mode=default
8397 # Look at the argument we got. We use all the common list separators.
8398 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8399 for lt_pkg in $withval; do
8400 IFS=$lt_save_ifs
8401 if test "X$lt_pkg" = "X$lt_p"; then
8402 pic_mode=yes
8403 fi
8404 done
8405 IFS=$lt_save_ifs
8406 ;;
8407 esac
8408 else $as_nop
8409 pic_mode=default
8410 fi
8411
8412
8413
8414
8415
8416
8417
8418
8419 # Check whether --enable-fast-install was given.
8420 if test ${enable_fast_install+y}
8421 then :
8422 enableval=$enable_fast_install; p=${PACKAGE-default}
8423 case $enableval in
8424 yes) enable_fast_install=yes ;;
8425 no) enable_fast_install=no ;;
8426 *)
8427 enable_fast_install=no
8428 # Look at the argument we got. We use all the common list separators.
8429 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8430 for pkg in $enableval; do
8431 IFS=$lt_save_ifs
8432 if test "X$pkg" = "X$p"; then
8433 enable_fast_install=yes
8434 fi
8435 done
8436 IFS=$lt_save_ifs
8437 ;;
8438 esac
8439 else $as_nop
8440 enable_fast_install=yes
8441 fi
8442
8443
8444
8445
8446
8447
8448
8449
8450 shared_archive_member_spec=
8451 case $host,$enable_shared in
8452 power*-*-aix[5-9]*,yes)
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8454 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8455
8456 # Check whether --with-aix-soname was given.
8457 if test ${with_aix_soname+y}
8458 then :
8459 withval=$with_aix_soname; case $withval in
8460 aix|svr4|both)
8461 ;;
8462 *)
8463 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8464 ;;
8465 esac
8466 lt_cv_with_aix_soname=$with_aix_soname
8467 else $as_nop
8468 if test ${lt_cv_with_aix_soname+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else $as_nop
8472 lt_cv_with_aix_soname=aix
8473 fi
8474
8475 with_aix_soname=$lt_cv_with_aix_soname
8476 fi
8477
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8479 printf "%s\n" "$with_aix_soname" >&6; }
8480 if test aix != "$with_aix_soname"; then
8481 # For the AIX way of multilib, we name the shared archive member
8482 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8483 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8484 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8485 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8486 if test 64 = "${OBJECT_MODE-32}"; then
8487 shared_archive_member_spec=shr_64
8488 else
8489 shared_archive_member_spec=shr
8490 fi
8491 fi
8492 ;;
8493 *)
8494 with_aix_soname=aix
8495 ;;
8496 esac
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507 # This can be used to rebuild libtool when needed
8508 LIBTOOL_DEPS=$ltmain
8509
8510 # Always use our own libtool.
8511 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8537
8538
8539
8540
8541
8542 test -z "$LN_S" && LN_S="ln -s"
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557 if test -n "${ZSH_VERSION+set}"; then
8558 setopt NO_GLOB_SUBST
8559 fi
8560
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8562 printf %s "checking for objdir... " >&6; }
8563 if test ${lt_cv_objdir+y}
8564 then :
8565 printf %s "(cached) " >&6
8566 else $as_nop
8567 rm -f .libs 2>/dev/null
8568 mkdir .libs 2>/dev/null
8569 if test -d .libs; then
8570 lt_cv_objdir=.libs
8571 else
8572 # MS-DOS does not allow filenames that begin with a dot.
8573 lt_cv_objdir=_libs
8574 fi
8575 rmdir .libs 2>/dev/null
8576 fi
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8578 printf "%s\n" "$lt_cv_objdir" >&6; }
8579 objdir=$lt_cv_objdir
8580
8581
8582
8583
8584
8585 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8586
8587
8588
8589
8590 case $host_os in
8591 aix3*)
8592 # AIX sometimes has problems with the GCC collect2 program. For some
8593 # reason, if we set the COLLECT_NAMES environment variable, the problems
8594 # vanish in a puff of smoke.
8595 if test set != "${COLLECT_NAMES+set}"; then
8596 COLLECT_NAMES=
8597 export COLLECT_NAMES
8598 fi
8599 ;;
8600 esac
8601
8602 # Global variables:
8603 ofile=libtool
8604 can_build_shared=yes
8605
8606 # All known linkers require a '.a' archive for static linking (except MSVC and
8607 # ICC, which need '.lib').
8608 libext=a
8609
8610 with_gnu_ld=$lt_cv_prog_gnu_ld
8611
8612 old_CC=$CC
8613 old_CFLAGS=$CFLAGS
8614
8615 # Set sane defaults for various variables
8616 test -z "$CC" && CC=cc
8617 test -z "$LTCC" && LTCC=$CC
8618 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8619 test -z "$LD" && LD=ld
8620 test -z "$ac_objext" && ac_objext=o
8621
8622 func_cc_basename $compiler
8623 cc_basename=$func_cc_basename_result
8624
8625
8626 # Only perform the check for file, if the check method requires it
8627 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8628 case $deplibs_check_method in
8629 file_magic*)
8630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8632 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8633 if test ${lt_cv_path_MAGIC_CMD+y}
8634 then :
8635 printf %s "(cached) " >&6
8636 else $as_nop
8637 case $MAGIC_CMD in
8638 [\\/*] | ?:[\\/]*)
8639 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8640 ;;
8641 *)
8642 lt_save_MAGIC_CMD=$MAGIC_CMD
8643 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8645 for ac_dir in $ac_dummy; do
8646 IFS=$lt_save_ifs
8647 test -z "$ac_dir" && ac_dir=.
8648 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8649 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8650 if test -n "$file_magic_test_file"; then
8651 case $deplibs_check_method in
8652 "file_magic "*)
8653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8654 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8656 $EGREP "$file_magic_regex" > /dev/null; then
8657 :
8658 else
8659 cat <<_LT_EOF 1>&2
8660
8661 *** Warning: the command libtool uses to detect shared libraries,
8662 *** $file_magic_cmd, produces output that libtool cannot recognize.
8663 *** The result is that libtool may fail to recognize shared libraries
8664 *** as such. This will affect the creation of libtool libraries that
8665 *** depend on shared libraries, but programs linked with such libtool
8666 *** libraries will work regardless of this problem. Nevertheless, you
8667 *** may want to report the problem to your system manager and/or to
8668 *** bug-libtool@gnu.org
8669
8670 _LT_EOF
8671 fi ;;
8672 esac
8673 fi
8674 break
8675 fi
8676 done
8677 IFS=$lt_save_ifs
8678 MAGIC_CMD=$lt_save_MAGIC_CMD
8679 ;;
8680 esac
8681 fi
8682
8683 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8684 if test -n "$MAGIC_CMD"; then
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8686 printf "%s\n" "$MAGIC_CMD" >&6; }
8687 else
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 printf "%s\n" "no" >&6; }
8690 fi
8691
8692
8693
8694
8695
8696 if test -z "$lt_cv_path_MAGIC_CMD"; then
8697 if test -n "$ac_tool_prefix"; then
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8699 printf %s "checking for file... " >&6; }
8700 if test ${lt_cv_path_MAGIC_CMD+y}
8701 then :
8702 printf %s "(cached) " >&6
8703 else $as_nop
8704 case $MAGIC_CMD in
8705 [\\/*] | ?:[\\/]*)
8706 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8707 ;;
8708 *)
8709 lt_save_MAGIC_CMD=$MAGIC_CMD
8710 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8712 for ac_dir in $ac_dummy; do
8713 IFS=$lt_save_ifs
8714 test -z "$ac_dir" && ac_dir=.
8715 if test -f "$ac_dir/file"; then
8716 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8717 if test -n "$file_magic_test_file"; then
8718 case $deplibs_check_method in
8719 "file_magic "*)
8720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8721 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8723 $EGREP "$file_magic_regex" > /dev/null; then
8724 :
8725 else
8726 cat <<_LT_EOF 1>&2
8727
8728 *** Warning: the command libtool uses to detect shared libraries,
8729 *** $file_magic_cmd, produces output that libtool cannot recognize.
8730 *** The result is that libtool may fail to recognize shared libraries
8731 *** as such. This will affect the creation of libtool libraries that
8732 *** depend on shared libraries, but programs linked with such libtool
8733 *** libraries will work regardless of this problem. Nevertheless, you
8734 *** may want to report the problem to your system manager and/or to
8735 *** bug-libtool@gnu.org
8736
8737 _LT_EOF
8738 fi ;;
8739 esac
8740 fi
8741 break
8742 fi
8743 done
8744 IFS=$lt_save_ifs
8745 MAGIC_CMD=$lt_save_MAGIC_CMD
8746 ;;
8747 esac
8748 fi
8749
8750 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8751 if test -n "$MAGIC_CMD"; then
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8753 printf "%s\n" "$MAGIC_CMD" >&6; }
8754 else
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 printf "%s\n" "no" >&6; }
8757 fi
8758
8759
8760 else
8761 MAGIC_CMD=:
8762 fi
8763 fi
8764
8765 fi
8766 ;;
8767 esac
8768
8769 # Use C for the default configuration in the libtool script
8770
8771 lt_save_CC=$CC
8772 ac_ext=c
8773 ac_cpp='$CPP $CPPFLAGS'
8774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8777
8778
8779 # Source file extension for C test sources.
8780 ac_ext=c
8781
8782 # Object file extension for compiled C test sources.
8783 objext=o
8784 objext=$objext
8785
8786 # Code to be used in simple compile tests
8787 lt_simple_compile_test_code="int some_variable = 0;"
8788
8789 # Code to be used in simple link tests
8790 lt_simple_link_test_code='int main(){return(0);}'
8791
8792
8793
8794
8795
8796
8797
8798 # If no C compiler was specified, use CC.
8799 LTCC=${LTCC-"$CC"}
8800
8801 # If no C compiler flags were specified, use CFLAGS.
8802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8803
8804 # Allow CC to be a program name with arguments.
8805 compiler=$CC
8806
8807 # Save the default compiler, since it gets overwritten when the other
8808 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8809 compiler_DEFAULT=$CC
8810
8811 # save warnings/boilerplate of simple test code
8812 ac_outfile=conftest.$ac_objext
8813 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8815 _lt_compiler_boilerplate=`cat conftest.err`
8816 $RM conftest*
8817
8818 ac_outfile=conftest.$ac_objext
8819 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8821 _lt_linker_boilerplate=`cat conftest.err`
8822 $RM -r conftest*
8823
8824
8825 if test -n "$compiler"; then
8826
8827 lt_prog_compiler_no_builtin_flag=
8828
8829 if test yes = "$GCC"; then
8830 case $cc_basename in
8831 nvcc*)
8832 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8833 *)
8834 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8835 esac
8836
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8838 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8839 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8840 then :
8841 printf %s "(cached) " >&6
8842 else $as_nop
8843 lt_cv_prog_compiler_rtti_exceptions=no
8844 ac_outfile=conftest.$ac_objext
8845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 # The option is referenced via a variable to avoid confusing sed.
8852 lt_compile=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>conftest.err)
8858 ac_status=$?
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s "$ac_outfile"; then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings other than the usual output.
8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_rtti_exceptions=yes
8868 fi
8869 fi
8870 $RM conftest*
8871
8872 fi
8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8874 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8875
8876 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8877 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8878 else
8879 :
8880 fi
8881
8882 fi
8883
8884
8885
8886
8887
8888
8889 lt_prog_compiler_wl=
8890 lt_prog_compiler_pic=
8891 lt_prog_compiler_static=
8892
8893
8894 if test yes = "$GCC"; then
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_static='-static'
8897
8898 case $host_os in
8899 aix*)
8900 # All AIX code is PIC.
8901 if test ia64 = "$host_cpu"; then
8902 # AIX 5 now supports IA64 processor
8903 lt_prog_compiler_static='-Bstatic'
8904 fi
8905 lt_prog_compiler_pic='-fPIC'
8906 ;;
8907
8908 amigaos*)
8909 case $host_cpu in
8910 powerpc)
8911 # see comment about AmigaOS4 .so support
8912 lt_prog_compiler_pic='-fPIC'
8913 ;;
8914 m68k)
8915 # FIXME: we need at least 68020 code to build shared libraries, but
8916 # adding the '-m68020' flag to GCC prevents building anything better,
8917 # like '-m68040'.
8918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8919 ;;
8920 esac
8921 ;;
8922
8923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8924 # PIC is the default for these OSes.
8925 ;;
8926
8927 mingw* | cygwin* | pw32* | os2* | cegcc*)
8928 # This hack is so that the source file can tell whether it is being
8929 # built for inclusion in a dll (and should export symbols for example).
8930 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8931 # (--disable-auto-import) libraries
8932 lt_prog_compiler_pic='-DDLL_EXPORT'
8933 case $host_os in
8934 os2*)
8935 lt_prog_compiler_static='$wl-static'
8936 ;;
8937 esac
8938 ;;
8939
8940 darwin* | rhapsody*)
8941 # PIC is the default on this platform
8942 # Common symbols not allowed in MH_DYLIB files
8943 lt_prog_compiler_pic='-fno-common'
8944 ;;
8945
8946 haiku*)
8947 # PIC is the default for Haiku.
8948 # The "-static" flag exists, but is broken.
8949 lt_prog_compiler_static=
8950 ;;
8951
8952 hpux*)
8953 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8954 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8955 # sets the default TLS model and affects inlining.
8956 case $host_cpu in
8957 hppa*64*)
8958 # +Z the default
8959 ;;
8960 *)
8961 lt_prog_compiler_pic='-fPIC'
8962 ;;
8963 esac
8964 ;;
8965
8966 interix[3-9]*)
8967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8968 # Instead, we relocate shared libraries at runtime.
8969 ;;
8970
8971 msdosdjgpp*)
8972 # Just because we use GCC doesn't mean we suddenly get shared libraries
8973 # on systems that don't support them.
8974 lt_prog_compiler_can_build_shared=no
8975 enable_shared=no
8976 ;;
8977
8978 *nto* | *qnx*)
8979 # QNX uses GNU C++, but need to define -shared option too, otherwise
8980 # it will coredump.
8981 lt_prog_compiler_pic='-fPIC -shared'
8982 ;;
8983
8984 sysv4*MP*)
8985 if test -d /usr/nec; then
8986 lt_prog_compiler_pic=-Kconform_pic
8987 fi
8988 ;;
8989
8990 *)
8991 lt_prog_compiler_pic='-fPIC'
8992 ;;
8993 esac
8994
8995 case $cc_basename in
8996 nvcc*) # Cuda Compiler Driver 2.2
8997 lt_prog_compiler_wl='-Xlinker '
8998 if test -n "$lt_prog_compiler_pic"; then
8999 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9000 fi
9001 ;;
9002 esac
9003 else
9004 # PORTME Check for flag to pass linker flags through the system compiler.
9005 case $host_os in
9006 aix*)
9007 lt_prog_compiler_wl='-Wl,'
9008 if test ia64 = "$host_cpu"; then
9009 # AIX 5 now supports IA64 processor
9010 lt_prog_compiler_static='-Bstatic'
9011 else
9012 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9013 fi
9014 ;;
9015
9016 darwin* | rhapsody*)
9017 # PIC is the default on this platform
9018 # Common symbols not allowed in MH_DYLIB files
9019 lt_prog_compiler_pic='-fno-common'
9020 case $cc_basename in
9021 nagfor*)
9022 # NAG Fortran compiler
9023 lt_prog_compiler_wl='-Wl,-Wl,,'
9024 lt_prog_compiler_pic='-PIC'
9025 lt_prog_compiler_static='-Bstatic'
9026 ;;
9027 esac
9028 ;;
9029
9030 mingw* | cygwin* | pw32* | os2* | cegcc*)
9031 # This hack is so that the source file can tell whether it is being
9032 # built for inclusion in a dll (and should export symbols for example).
9033 lt_prog_compiler_pic='-DDLL_EXPORT'
9034 case $host_os in
9035 os2*)
9036 lt_prog_compiler_static='$wl-static'
9037 ;;
9038 esac
9039 ;;
9040
9041 hpux9* | hpux10* | hpux11*)
9042 lt_prog_compiler_wl='-Wl,'
9043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9044 # not for PA HP-UX.
9045 case $host_cpu in
9046 hppa*64*|ia64*)
9047 # +Z the default
9048 ;;
9049 *)
9050 lt_prog_compiler_pic='+Z'
9051 ;;
9052 esac
9053 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9054 lt_prog_compiler_static='$wl-a ${wl}archive'
9055 ;;
9056
9057 irix5* | irix6* | nonstopux*)
9058 lt_prog_compiler_wl='-Wl,'
9059 # PIC (with -KPIC) is the default.
9060 lt_prog_compiler_static='-non_shared'
9061 ;;
9062
9063 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9064 case $cc_basename in
9065 # old Intel for x86_64, which still supported -KPIC.
9066 ecc*)
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_pic='-KPIC'
9069 lt_prog_compiler_static='-static'
9070 ;;
9071 # icc used to be incompatible with GCC.
9072 # ICC 10 doesn't accept -KPIC any more.
9073 icc* | ifort*)
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_pic='-fPIC'
9076 lt_prog_compiler_static='-static'
9077 ;;
9078 # Lahey Fortran 8.1.
9079 lf95*)
9080 lt_prog_compiler_wl='-Wl,'
9081 lt_prog_compiler_pic='--shared'
9082 lt_prog_compiler_static='--static'
9083 ;;
9084 nagfor*)
9085 # NAG Fortran compiler
9086 lt_prog_compiler_wl='-Wl,-Wl,,'
9087 lt_prog_compiler_pic='-PIC'
9088 lt_prog_compiler_static='-Bstatic'
9089 ;;
9090 tcc*)
9091 # Fabrice Bellard et al's Tiny C Compiler
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-fPIC'
9094 lt_prog_compiler_static='-static'
9095 ;;
9096 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9097 # Portland Group compilers (*not* the Pentium gcc compiler,
9098 # which looks to be a dead project)
9099 lt_prog_compiler_wl='-Wl,'
9100 lt_prog_compiler_pic='-fpic'
9101 lt_prog_compiler_static='-Bstatic'
9102 ;;
9103 ccc*)
9104 lt_prog_compiler_wl='-Wl,'
9105 # All Alpha code is PIC.
9106 lt_prog_compiler_static='-non_shared'
9107 ;;
9108 xl* | bgxl* | bgf* | mpixl*)
9109 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9110 lt_prog_compiler_wl='-Wl,'
9111 lt_prog_compiler_pic='-qpic'
9112 lt_prog_compiler_static='-qstaticlink'
9113 ;;
9114 *)
9115 case `$CC -V 2>&1 | $SED 5q` in
9116 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9117 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9118 lt_prog_compiler_pic='-KPIC'
9119 lt_prog_compiler_static='-Bstatic'
9120 lt_prog_compiler_wl=''
9121 ;;
9122 *Sun\ F* | *Sun*Fortran*)
9123 lt_prog_compiler_pic='-KPIC'
9124 lt_prog_compiler_static='-Bstatic'
9125 lt_prog_compiler_wl='-Qoption ld '
9126 ;;
9127 *Sun\ C*)
9128 # Sun C 5.9
9129 lt_prog_compiler_pic='-KPIC'
9130 lt_prog_compiler_static='-Bstatic'
9131 lt_prog_compiler_wl='-Wl,'
9132 ;;
9133 *Intel*\ [CF]*Compiler*)
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-fPIC'
9136 lt_prog_compiler_static='-static'
9137 ;;
9138 *Portland\ Group*)
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-fpic'
9141 lt_prog_compiler_static='-Bstatic'
9142 ;;
9143 esac
9144 ;;
9145 esac
9146 ;;
9147
9148 newsos6)
9149 lt_prog_compiler_pic='-KPIC'
9150 lt_prog_compiler_static='-Bstatic'
9151 ;;
9152
9153 *nto* | *qnx*)
9154 # QNX uses GNU C++, but need to define -shared option too, otherwise
9155 # it will coredump.
9156 lt_prog_compiler_pic='-fPIC -shared'
9157 ;;
9158
9159 osf3* | osf4* | osf5*)
9160 lt_prog_compiler_wl='-Wl,'
9161 # All OSF/1 code is PIC.
9162 lt_prog_compiler_static='-non_shared'
9163 ;;
9164
9165 rdos*)
9166 lt_prog_compiler_static='-non_shared'
9167 ;;
9168
9169 solaris*)
9170 lt_prog_compiler_pic='-KPIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 case $cc_basename in
9173 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9174 lt_prog_compiler_wl='-Qoption ld ';;
9175 *)
9176 lt_prog_compiler_wl='-Wl,';;
9177 esac
9178 ;;
9179
9180 sunos4*)
9181 lt_prog_compiler_wl='-Qoption ld '
9182 lt_prog_compiler_pic='-PIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 ;;
9185
9186 sysv4 | sysv4.2uw2* | sysv4.3*)
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-Bstatic'
9190 ;;
9191
9192 sysv4*MP*)
9193 if test -d /usr/nec; then
9194 lt_prog_compiler_pic='-Kconform_pic'
9195 lt_prog_compiler_static='-Bstatic'
9196 fi
9197 ;;
9198
9199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9203 ;;
9204
9205 unicos*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_can_build_shared=no
9208 ;;
9209
9210 uts4*)
9211 lt_prog_compiler_pic='-pic'
9212 lt_prog_compiler_static='-Bstatic'
9213 ;;
9214
9215 *)
9216 lt_prog_compiler_can_build_shared=no
9217 ;;
9218 esac
9219 fi
9220
9221 case $host_os in
9222 # For platforms that do not support PIC, -DPIC is meaningless:
9223 *djgpp*)
9224 lt_prog_compiler_pic=
9225 ;;
9226 *)
9227 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9228 ;;
9229 esac
9230
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9232 printf %s "checking for $compiler option to produce PIC... " >&6; }
9233 if test ${lt_cv_prog_compiler_pic+y}
9234 then :
9235 printf %s "(cached) " >&6
9236 else $as_nop
9237 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9238 fi
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9240 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9241 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9242
9243 #
9244 # Check to make sure the PIC flag actually works.
9245 #
9246 if test -n "$lt_prog_compiler_pic"; then
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9248 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9249 if test ${lt_cv_prog_compiler_pic_works+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else $as_nop
9253 lt_cv_prog_compiler_pic_works=no
9254 ac_outfile=conftest.$ac_objext
9255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9257 # Insert the option either (1) after the last *FLAGS variable, or
9258 # (2) before a word containing "conftest.", or (3) at the end.
9259 # Note that $ac_compile itself does not contain backslashes and begins
9260 # with a dollar sign (not a hyphen), so the echo should work correctly.
9261 # The option is referenced via a variable to avoid confusing sed.
9262 lt_compile=`echo "$ac_compile" | $SED \
9263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9265 -e 's:$: $lt_compiler_flag:'`
9266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9267 (eval "$lt_compile" 2>conftest.err)
9268 ac_status=$?
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 if (exit $ac_status) && test -s "$ac_outfile"; then
9272 # The compiler can only warn and ignore the option if not recognized
9273 # So say no if there are warnings other than the usual output.
9274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9277 lt_cv_prog_compiler_pic_works=yes
9278 fi
9279 fi
9280 $RM conftest*
9281
9282 fi
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9284 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9285
9286 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9287 case $lt_prog_compiler_pic in
9288 "" | " "*) ;;
9289 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9290 esac
9291 else
9292 lt_prog_compiler_pic=
9293 lt_prog_compiler_can_build_shared=no
9294 fi
9295
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 #
9309 # Check to make sure the static flag actually works.
9310 #
9311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9313 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9314 if test ${lt_cv_prog_compiler_static_works+y}
9315 then :
9316 printf %s "(cached) " >&6
9317 else $as_nop
9318 lt_cv_prog_compiler_static_works=no
9319 save_LDFLAGS=$LDFLAGS
9320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9321 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9323 # The linker can only warn and ignore the option if not recognized
9324 # So say no if there are warnings
9325 if test -s conftest.err; then
9326 # Append any errors to the config.log.
9327 cat conftest.err 1>&5
9328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9330 if diff conftest.exp conftest.er2 >/dev/null; then
9331 lt_cv_prog_compiler_static_works=yes
9332 fi
9333 else
9334 lt_cv_prog_compiler_static_works=yes
9335 fi
9336 fi
9337 $RM -r conftest*
9338 LDFLAGS=$save_LDFLAGS
9339
9340 fi
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9342 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9343
9344 if test yes = "$lt_cv_prog_compiler_static_works"; then
9345 :
9346 else
9347 lt_prog_compiler_static=
9348 fi
9349
9350
9351
9352
9353
9354
9355
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9357 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9358 if test ${lt_cv_prog_compiler_c_o+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else $as_nop
9362 lt_cv_prog_compiler_c_o=no
9363 $RM -r conftest 2>/dev/null
9364 mkdir conftest
9365 cd conftest
9366 mkdir out
9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368
9369 lt_compiler_flag="-o out/conftest2.$ac_objext"
9370 # Insert the option either (1) after the last *FLAGS variable, or
9371 # (2) before a word containing "conftest.", or (3) at the end.
9372 # Note that $ac_compile itself does not contain backslashes and begins
9373 # with a dollar sign (not a hyphen), so the echo should work correctly.
9374 lt_compile=`echo "$ac_compile" | $SED \
9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377 -e 's:$: $lt_compiler_flag:'`
9378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379 (eval "$lt_compile" 2>out/conftest.err)
9380 ac_status=$?
9381 cat out/conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9384 then
9385 # The compiler can only warn and ignore the option if not recognized
9386 # So say no if there are warnings
9387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9390 lt_cv_prog_compiler_c_o=yes
9391 fi
9392 fi
9393 chmod u+w . 2>&5
9394 $RM conftest*
9395 # SGI C++ compiler will create directory out/ii_files/ for
9396 # template instantiation
9397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9398 $RM out/* && rmdir out
9399 cd ..
9400 $RM -r conftest
9401 $RM conftest*
9402
9403 fi
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9405 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9406
9407
9408
9409
9410
9411
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9413 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9414 if test ${lt_cv_prog_compiler_c_o+y}
9415 then :
9416 printf %s "(cached) " >&6
9417 else $as_nop
9418 lt_cv_prog_compiler_c_o=no
9419 $RM -r conftest 2>/dev/null
9420 mkdir conftest
9421 cd conftest
9422 mkdir out
9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424
9425 lt_compiler_flag="-o out/conftest2.$ac_objext"
9426 # Insert the option either (1) after the last *FLAGS variable, or
9427 # (2) before a word containing "conftest.", or (3) at the end.
9428 # Note that $ac_compile itself does not contain backslashes and begins
9429 # with a dollar sign (not a hyphen), so the echo should work correctly.
9430 lt_compile=`echo "$ac_compile" | $SED \
9431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433 -e 's:$: $lt_compiler_flag:'`
9434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9435 (eval "$lt_compile" 2>out/conftest.err)
9436 ac_status=$?
9437 cat out/conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9440 then
9441 # The compiler can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9446 lt_cv_prog_compiler_c_o=yes
9447 fi
9448 fi
9449 chmod u+w . 2>&5
9450 $RM conftest*
9451 # SGI C++ compiler will create directory out/ii_files/ for
9452 # template instantiation
9453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9454 $RM out/* && rmdir out
9455 cd ..
9456 $RM -r conftest
9457 $RM conftest*
9458
9459 fi
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9461 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9462
9463
9464
9465
9466 hard_links=nottested
9467 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9468 # do not overwrite the value of need_locks provided by the user
9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9470 printf %s "checking if we can lock with hard links... " >&6; }
9471 hard_links=yes
9472 $RM conftest*
9473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9474 touch conftest.a
9475 ln conftest.a conftest.b 2>&5 || hard_links=no
9476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9478 printf "%s\n" "$hard_links" >&6; }
9479 if test no = "$hard_links"; then
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9481 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9482 need_locks=warn
9483 fi
9484 else
9485 need_locks=no
9486 fi
9487
9488
9489
9490
9491
9492
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9494 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9495
9496 runpath_var=
9497 allow_undefined_flag=
9498 always_export_symbols=no
9499 archive_cmds=
9500 archive_expsym_cmds=
9501 compiler_needs_object=no
9502 enable_shared_with_static_runtimes=no
9503 export_dynamic_flag_spec=
9504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9505 hardcode_automatic=no
9506 hardcode_direct=no
9507 hardcode_direct_absolute=no
9508 hardcode_libdir_flag_spec=
9509 hardcode_libdir_separator=
9510 hardcode_minus_L=no
9511 hardcode_shlibpath_var=unsupported
9512 inherit_rpath=no
9513 link_all_deplibs=unknown
9514 module_cmds=
9515 module_expsym_cmds=
9516 old_archive_from_new_cmds=
9517 old_archive_from_expsyms_cmds=
9518 thread_safe_flag_spec=
9519 whole_archive_flag_spec=
9520 # include_expsyms should be a list of space-separated symbols to be *always*
9521 # included in the symbol list
9522 include_expsyms=
9523 # exclude_expsyms can be an extended regexp of symbols to exclude
9524 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9525 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9526 # as well as any symbol that contains 'd'.
9527 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9529 # platforms (ab)use it in PIC code, but their linkers get confused if
9530 # the symbol is explicitly referenced. Since portable code cannot
9531 # rely on this symbol name, it's probably fine to never include it in
9532 # preloaded symbol tables.
9533 # Exclude shared library initialization/finalization symbols.
9534 extract_expsyms_cmds=
9535
9536 case $host_os in
9537 cygwin* | mingw* | pw32* | cegcc*)
9538 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9539 # When not using gcc, we currently assume that we are using
9540 # Microsoft Visual C++ or Intel C++ Compiler.
9541 if test yes != "$GCC"; then
9542 with_gnu_ld=no
9543 fi
9544 ;;
9545 interix*)
9546 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9547 with_gnu_ld=yes
9548 ;;
9549 openbsd* | bitrig*)
9550 with_gnu_ld=no
9551 ;;
9552 esac
9553
9554 ld_shlibs=yes
9555
9556 # On some targets, GNU ld is compatible enough with the native linker
9557 # that we're better off using the native interface for both.
9558 lt_use_gnu_ld_interface=no
9559 if test yes = "$with_gnu_ld"; then
9560 case $host_os in
9561 aix*)
9562 # The AIX port of GNU ld has always aspired to compatibility
9563 # with the native linker. However, as the warning in the GNU ld
9564 # block says, versions before 2.19.5* couldn't really create working
9565 # shared libraries, regardless of the interface used.
9566 case `$LD -v 2>&1` in
9567 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9568 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9569 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9570 *)
9571 lt_use_gnu_ld_interface=yes
9572 ;;
9573 esac
9574 ;;
9575 *)
9576 lt_use_gnu_ld_interface=yes
9577 ;;
9578 esac
9579 fi
9580
9581 if test yes = "$lt_use_gnu_ld_interface"; then
9582 # If archive_cmds runs LD, not CC, wlarc should be empty
9583 wlarc='$wl'
9584
9585 # Set some defaults for GNU ld with shared library support. These
9586 # are reset later if shared libraries are not supported. Putting them
9587 # here allows them to be overridden if necessary.
9588 runpath_var=LD_RUN_PATH
9589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9590 export_dynamic_flag_spec='$wl--export-dynamic'
9591 # ancient GNU ld didn't support --whole-archive et. al.
9592 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9593 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9594 else
9595 whole_archive_flag_spec=
9596 fi
9597 supports_anon_versioning=no
9598 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9599 *GNU\ gold*) supports_anon_versioning=yes ;;
9600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9603 *\ 2.11.*) ;; # other 2.11 versions
9604 *) supports_anon_versioning=yes ;;
9605 esac
9606
9607 # See if GNU ld supports shared libraries.
9608 case $host_os in
9609 aix[3-9]*)
9610 # On AIX/PPC, the GNU linker is very broken
9611 if test ia64 != "$host_cpu"; then
9612 ld_shlibs=no
9613 cat <<_LT_EOF 1>&2
9614
9615 *** Warning: the GNU linker, at least up to release 2.19, is reported
9616 *** to be unable to reliably create shared libraries on AIX.
9617 *** Therefore, libtool is disabling shared libraries support. If you
9618 *** really care for shared libraries, you may want to install binutils
9619 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9620 *** You will then need to restart the configuration process.
9621
9622 _LT_EOF
9623 fi
9624 ;;
9625
9626 amigaos*)
9627 case $host_cpu in
9628 powerpc)
9629 # see comment about AmigaOS4 .so support
9630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9631 archive_expsym_cmds=''
9632 ;;
9633 m68k)
9634 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)'
9635 hardcode_libdir_flag_spec='-L$libdir'
9636 hardcode_minus_L=yes
9637 ;;
9638 esac
9639 ;;
9640
9641 beos*)
9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643 allow_undefined_flag=unsupported
9644 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9645 # support --undefined. This deserves some investigation. FIXME
9646 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9647 else
9648 ld_shlibs=no
9649 fi
9650 ;;
9651
9652 cygwin* | mingw* | pw32* | cegcc*)
9653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9654 # as there is no search path for DLLs.
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 export_dynamic_flag_spec='$wl--export-all-symbols'
9657 allow_undefined_flag=unsupported
9658 always_export_symbols=no
9659 enable_shared_with_static_runtimes=yes
9660 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'
9661 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9662
9663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9665 # If the export-symbols file already is a .def file, use it as
9666 # is; otherwise, prepend EXPORTS...
9667 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9668 cp $export_symbols $output_objdir/$soname.def;
9669 else
9670 echo EXPORTS > $output_objdir/$soname.def;
9671 cat $export_symbols >> $output_objdir/$soname.def;
9672 fi~
9673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674 else
9675 ld_shlibs=no
9676 fi
9677 ;;
9678
9679 haiku*)
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9681 link_all_deplibs=yes
9682 ;;
9683
9684 os2*)
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_minus_L=yes
9687 allow_undefined_flag=unsupported
9688 shrext_cmds=.dll
9689 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9690 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9691 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9692 $ECHO EXPORTS >> $output_objdir/$libname.def~
9693 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9694 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9695 emximp -o $lib $output_objdir/$libname.def'
9696 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9697 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9698 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9699 $ECHO EXPORTS >> $output_objdir/$libname.def~
9700 prefix_cmds="$SED"~
9701 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9702 prefix_cmds="$prefix_cmds -e 1d";
9703 fi~
9704 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9705 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9706 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9707 emximp -o $lib $output_objdir/$libname.def'
9708 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9709 enable_shared_with_static_runtimes=yes
9710 file_list_spec='@'
9711 ;;
9712
9713 interix[3-9]*)
9714 hardcode_direct=no
9715 hardcode_shlibpath_var=no
9716 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9717 export_dynamic_flag_spec='$wl-E'
9718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9719 # Instead, shared libraries are loaded at an image base (0x10000000 by
9720 # default) and relocated if they conflict, which is a slow very memory
9721 # consuming and fragmenting process. To avoid this, we pick a random,
9722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9723 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9725 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'
9726 ;;
9727
9728 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9729 tmp_diet=no
9730 if test linux-dietlibc = "$host_os"; then
9731 case $cc_basename in
9732 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9733 esac
9734 fi
9735 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9736 && test no = "$tmp_diet"
9737 then
9738 tmp_addflag=' $pic_flag'
9739 tmp_sharedflag='-shared'
9740 case $cc_basename,$host_cpu in
9741 pgcc*) # Portland Group C compiler
9742 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'
9743 tmp_addflag=' $pic_flag'
9744 ;;
9745 pgf77* | pgf90* | pgf95* | pgfortran*)
9746 # Portland Group f77 and f90 compilers
9747 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'
9748 tmp_addflag=' $pic_flag -Mnomain' ;;
9749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9750 tmp_addflag=' -i_dynamic' ;;
9751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9752 tmp_addflag=' -i_dynamic -nofor_main' ;;
9753 ifc* | ifort*) # Intel Fortran compiler
9754 tmp_addflag=' -nofor_main' ;;
9755 lf95*) # Lahey Fortran 8.1
9756 whole_archive_flag_spec=
9757 tmp_sharedflag='--shared' ;;
9758 nagfor*) # NAGFOR 5.3
9759 tmp_sharedflag='-Wl,-shared' ;;
9760 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9761 tmp_sharedflag='-qmkshrobj'
9762 tmp_addflag= ;;
9763 nvcc*) # Cuda Compiler Driver 2.2
9764 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'
9765 compiler_needs_object=yes
9766 ;;
9767 esac
9768 case `$CC -V 2>&1 | $SED 5q` in
9769 *Sun\ C*) # Sun C 5.9
9770 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'
9771 compiler_needs_object=yes
9772 tmp_sharedflag='-G' ;;
9773 *Sun\ F*) # Sun Fortran 8.3
9774 tmp_sharedflag='-G' ;;
9775 esac
9776 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9777
9778 if test yes = "$supports_anon_versioning"; then
9779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9780 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781 echo "local: *; };" >> $output_objdir/$libname.ver~
9782 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9783 fi
9784
9785 case $cc_basename in
9786 tcc*)
9787 export_dynamic_flag_spec='-rdynamic'
9788 ;;
9789 xlf* | bgf* | bgxlf* | mpixlf*)
9790 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9791 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9793 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9794 if test yes = "$supports_anon_versioning"; then
9795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9796 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9797 echo "local: *; };" >> $output_objdir/$libname.ver~
9798 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9799 fi
9800 ;;
9801 esac
9802 else
9803 ld_shlibs=no
9804 fi
9805 ;;
9806
9807 netbsd*)
9808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9809 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9810 wlarc=
9811 else
9812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9813 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9814 fi
9815 ;;
9816
9817 solaris*)
9818 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9819 ld_shlibs=no
9820 cat <<_LT_EOF 1>&2
9821
9822 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9823 *** create shared libraries on Solaris systems. Therefore, libtool
9824 *** is disabling shared libraries support. We urge you to upgrade GNU
9825 *** binutils to release 2.9.1 or newer. Another option is to modify
9826 *** your PATH or compiler configuration so that the native linker is
9827 *** used, and then restart.
9828
9829 _LT_EOF
9830 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9833 else
9834 ld_shlibs=no
9835 fi
9836 ;;
9837
9838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9839 case `$LD -v 2>&1` in
9840 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9841 ld_shlibs=no
9842 cat <<_LT_EOF 1>&2
9843
9844 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9845 *** reliably create shared libraries on SCO systems. Therefore, libtool
9846 *** is disabling shared libraries support. We urge you to upgrade GNU
9847 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9848 *** your PATH or compiler configuration so that the native linker is
9849 *** used, and then restart.
9850
9851 _LT_EOF
9852 ;;
9853 *)
9854 # For security reasons, it is highly recommended that you always
9855 # use absolute paths for naming shared libraries, and exclude the
9856 # DT_RUNPATH tag from executables and libraries. But doing so
9857 # requires that you compile everything twice, which is a pain.
9858 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9862 else
9863 ld_shlibs=no
9864 fi
9865 ;;
9866 esac
9867 ;;
9868
9869 sunos4*)
9870 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871 wlarc=
9872 hardcode_direct=yes
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 *)
9877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9879 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9880 else
9881 ld_shlibs=no
9882 fi
9883 ;;
9884 esac
9885
9886 if test no = "$ld_shlibs"; then
9887 runpath_var=
9888 hardcode_libdir_flag_spec=
9889 export_dynamic_flag_spec=
9890 whole_archive_flag_spec=
9891 fi
9892 else
9893 # PORTME fill in a description of your system's linker (not GNU ld)
9894 case $host_os in
9895 aix3*)
9896 allow_undefined_flag=unsupported
9897 always_export_symbols=yes
9898 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'
9899 # Note: this linker hardcodes the directories in LIBPATH if there
9900 # are no directories specified by -L.
9901 hardcode_minus_L=yes
9902 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9903 # Neither direct hardcoding nor static linking is supported with a
9904 # broken collect2.
9905 hardcode_direct=unsupported
9906 fi
9907 ;;
9908
9909 aix[4-9]*)
9910 if test ia64 = "$host_cpu"; then
9911 # On IA64, the linker does run time linking by default, so we don't
9912 # have to do anything special.
9913 aix_use_runtimelinking=no
9914 exp_sym_flag='-Bexport'
9915 no_entry_flag=
9916 else
9917 # If we're using GNU nm, then we don't want the "-C" option.
9918 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9919 # Without the "-l" option, or with the "-B" option, AIX nm treats
9920 # weak defined symbols like other global defined symbols, whereas
9921 # GNU nm marks them as "W".
9922 # While the 'weak' keyword is ignored in the Export File, we need
9923 # it in the Import File for the 'aix-soname' feature, so we have
9924 # to replace the "-B" option with "-P" for AIX nm.
9925 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9926 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'
9927 else
9928 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'
9929 fi
9930 aix_use_runtimelinking=no
9931
9932 # Test if we are trying to use run time linking or normal
9933 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934 # have runtime linking enabled, and use it for executables.
9935 # For shared libraries, we enable/disable runtime linking
9936 # depending on the kind of the shared library created -
9937 # when "with_aix_soname,aix_use_runtimelinking" is:
9938 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9939 # "aix,yes" lib.so shared, rtl:yes, for executables
9940 # lib.a static archive
9941 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9942 # lib.a(lib.so.V) shared, rtl:no, for executables
9943 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9944 # lib.a(lib.so.V) shared, rtl:no
9945 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9946 # lib.a static archive
9947 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9948 for ld_flag in $LDFLAGS; do
9949 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9950 aix_use_runtimelinking=yes
9951 break
9952 fi
9953 done
9954 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9955 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9956 # so we don't have lib.a shared libs to link our executables.
9957 # We have to force runtime linking in this case.
9958 aix_use_runtimelinking=yes
9959 LDFLAGS="$LDFLAGS -Wl,-brtl"
9960 fi
9961 ;;
9962 esac
9963
9964 exp_sym_flag='-bexport'
9965 no_entry_flag='-bnoentry'
9966 fi
9967
9968 # When large executables or shared objects are built, AIX ld can
9969 # have problems creating the table of contents. If linking a library
9970 # or program results in "error TOC overflow" add -mminimal-toc to
9971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9973
9974 archive_cmds=''
9975 hardcode_direct=yes
9976 hardcode_direct_absolute=yes
9977 hardcode_libdir_separator=':'
9978 link_all_deplibs=yes
9979 file_list_spec='$wl-f,'
9980 case $with_aix_soname,$aix_use_runtimelinking in
9981 aix,*) ;; # traditional, no import file
9982 svr4,* | *,yes) # use import file
9983 # The Import File defines what to hardcode.
9984 hardcode_direct=no
9985 hardcode_direct_absolute=no
9986 ;;
9987 esac
9988
9989 if test yes = "$GCC"; then
9990 case $host_os in aix4.[012]|aix4.[012].*)
9991 # We only want to do this on AIX 4.2 and lower, the check
9992 # below for broken collect2 doesn't work under 4.3+
9993 collect2name=`$CC -print-prog-name=collect2`
9994 if test -f "$collect2name" &&
9995 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9996 then
9997 # We have reworked collect2
9998 :
9999 else
10000 # We have old collect2
10001 hardcode_direct=unsupported
10002 # It fails to find uninstalled libraries when the uninstalled
10003 # path is not listed in the libpath. Setting hardcode_minus_L
10004 # to unsupported forces relinking
10005 hardcode_minus_L=yes
10006 hardcode_libdir_flag_spec='-L$libdir'
10007 hardcode_libdir_separator=
10008 fi
10009 ;;
10010 esac
10011 shared_flag='-shared'
10012 if test yes = "$aix_use_runtimelinking"; then
10013 shared_flag="$shared_flag "'$wl-G'
10014 fi
10015 # Need to ensure runtime linking is disabled for the traditional
10016 # shared library, or the linker may eventually find shared libraries
10017 # /with/ Import File - we do not want to mix them.
10018 shared_flag_aix='-shared'
10019 shared_flag_svr4='-shared $wl-G'
10020 else
10021 # not using gcc
10022 if test ia64 = "$host_cpu"; then
10023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10024 # chokes on -Wl,-G. The following line is correct:
10025 shared_flag='-G'
10026 else
10027 if test yes = "$aix_use_runtimelinking"; then
10028 shared_flag='$wl-G'
10029 else
10030 shared_flag='$wl-bM:SRE'
10031 fi
10032 shared_flag_aix='$wl-bM:SRE'
10033 shared_flag_svr4='$wl-G'
10034 fi
10035 fi
10036
10037 export_dynamic_flag_spec='$wl-bexpall'
10038 # It seems that -bexpall does not export symbols beginning with
10039 # underscore (_), so it is better to generate a list of symbols to export.
10040 always_export_symbols=yes
10041 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10042 # Warning - without using the other runtime loading flags (-brtl),
10043 # -berok will link without error, but may produce a broken library.
10044 allow_undefined_flag='-berok'
10045 # Determine the default libpath from the value encoded in an
10046 # empty executable.
10047 if test set = "${lt_cv_aix_libpath+set}"; then
10048 aix_libpath=$lt_cv_aix_libpath
10049 else
10050 if test ${lt_cv_aix_libpath_+y}
10051 then :
10052 printf %s "(cached) " >&6
10053 else $as_nop
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056
10057 int
10058 main (void)
10059 {
10060
10061 ;
10062 return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"
10066 then :
10067
10068 lt_aix_libpath_sed='
10069 /Import File Strings/,/^$/ {
10070 /^0/ {
10071 s/^0 *\([^ ]*\) *$/\1/
10072 p
10073 }
10074 }'
10075 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10076 # Check for a 64-bit object if we didn't find anything.
10077 if test -z "$lt_cv_aix_libpath_"; then
10078 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10079 fi
10080 fi
10081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10082 conftest$ac_exeext conftest.$ac_ext
10083 if test -z "$lt_cv_aix_libpath_"; then
10084 lt_cv_aix_libpath_=/usr/lib:/lib
10085 fi
10086
10087 fi
10088
10089 aix_libpath=$lt_cv_aix_libpath_
10090 fi
10091
10092 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10093 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
10094 else
10095 if test ia64 = "$host_cpu"; then
10096 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10097 allow_undefined_flag="-z nodefs"
10098 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"
10099 else
10100 # Determine the default libpath from the value encoded in an
10101 # empty executable.
10102 if test set = "${lt_cv_aix_libpath+set}"; then
10103 aix_libpath=$lt_cv_aix_libpath
10104 else
10105 if test ${lt_cv_aix_libpath_+y}
10106 then :
10107 printf %s "(cached) " >&6
10108 else $as_nop
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10111
10112 int
10113 main (void)
10114 {
10115
10116 ;
10117 return 0;
10118 }
10119 _ACEOF
10120 if ac_fn_c_try_link "$LINENO"
10121 then :
10122
10123 lt_aix_libpath_sed='
10124 /Import File Strings/,/^$/ {
10125 /^0/ {
10126 s/^0 *\([^ ]*\) *$/\1/
10127 p
10128 }
10129 }'
10130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10131 # Check for a 64-bit object if we didn't find anything.
10132 if test -z "$lt_cv_aix_libpath_"; then
10133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10134 fi
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10137 conftest$ac_exeext conftest.$ac_ext
10138 if test -z "$lt_cv_aix_libpath_"; then
10139 lt_cv_aix_libpath_=/usr/lib:/lib
10140 fi
10141
10142 fi
10143
10144 aix_libpath=$lt_cv_aix_libpath_
10145 fi
10146
10147 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10148 # Warning - without using the other run time loading flags,
10149 # -berok will link without error, but may produce a broken library.
10150 no_undefined_flag=' $wl-bernotok'
10151 allow_undefined_flag=' $wl-berok'
10152 if test yes = "$with_gnu_ld"; then
10153 # We only use this code for GNU lds that support --whole-archive.
10154 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10155 else
10156 # Exported symbols can be pulled into shared objects from archives
10157 whole_archive_flag_spec='$convenience'
10158 fi
10159 archive_cmds_need_lc=yes
10160 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10161 # -brtl affects multiple linker settings, -berok does not and is overridden later
10162 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10163 if test svr4 != "$with_aix_soname"; then
10164 # This is similar to how AIX traditionally builds its shared libraries.
10165 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'
10166 fi
10167 if test aix != "$with_aix_soname"; then
10168 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'
10169 else
10170 # used by -dlpreopen to get the symbols
10171 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10172 fi
10173 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10174 fi
10175 fi
10176 ;;
10177
10178 amigaos*)
10179 case $host_cpu in
10180 powerpc)
10181 # see comment about AmigaOS4 .so support
10182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183 archive_expsym_cmds=''
10184 ;;
10185 m68k)
10186 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)'
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_minus_L=yes
10189 ;;
10190 esac
10191 ;;
10192
10193 bsdi[45]*)
10194 export_dynamic_flag_spec=-rdynamic
10195 ;;
10196
10197 cygwin* | mingw* | pw32* | cegcc*)
10198 # When not using gcc, we currently assume that we are using
10199 # Microsoft Visual C++ or Intel C++ Compiler.
10200 # hardcode_libdir_flag_spec is actually meaningless, as there is
10201 # no search path for DLLs.
10202 case $cc_basename in
10203 cl* | icl*)
10204 # Native MSVC or ICC
10205 hardcode_libdir_flag_spec=' '
10206 allow_undefined_flag=unsupported
10207 always_export_symbols=yes
10208 file_list_spec='@'
10209 # Tell ltmain to make .lib files, not .a files.
10210 libext=lib
10211 # Tell ltmain to make .dll files, not .so files.
10212 shrext_cmds=.dll
10213 # FIXME: Setting linknames here is a bad hack.
10214 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10215 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10216 cp "$export_symbols" "$output_objdir/$soname.def";
10217 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10218 else
10219 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10220 fi~
10221 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10222 linknames='
10223 # The linker will not automatically build a static lib if we build a DLL.
10224 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10225 enable_shared_with_static_runtimes=yes
10226 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10228 # Don't use ranlib
10229 old_postinstall_cmds='chmod 644 $oldlib'
10230 postlink_cmds='lt_outputfile="@OUTPUT@"~
10231 lt_tool_outputfile="@TOOL_OUTPUT@"~
10232 case $lt_outputfile in
10233 *.exe|*.EXE) ;;
10234 *)
10235 lt_outputfile=$lt_outputfile.exe
10236 lt_tool_outputfile=$lt_tool_outputfile.exe
10237 ;;
10238 esac~
10239 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10240 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10241 $RM "$lt_outputfile.manifest";
10242 fi'
10243 ;;
10244 *)
10245 # Assume MSVC and ICC wrapper
10246 hardcode_libdir_flag_spec=' '
10247 allow_undefined_flag=unsupported
10248 # Tell ltmain to make .lib files, not .a files.
10249 libext=lib
10250 # Tell ltmain to make .dll files, not .so files.
10251 shrext_cmds=.dll
10252 # FIXME: Setting linknames here is a bad hack.
10253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10254 # The linker will automatically build a .lib file if we build a DLL.
10255 old_archive_from_new_cmds='true'
10256 # FIXME: Should let the user specify the lib program.
10257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10258 enable_shared_with_static_runtimes=yes
10259 ;;
10260 esac
10261 ;;
10262
10263 darwin* | rhapsody*)
10264
10265
10266 archive_cmds_need_lc=no
10267 hardcode_direct=no
10268 hardcode_automatic=yes
10269 hardcode_shlibpath_var=unsupported
10270 if test yes = "$lt_cv_ld_force_load"; then
10271 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\"`'
10272
10273 else
10274 whole_archive_flag_spec=''
10275 fi
10276 link_all_deplibs=yes
10277 allow_undefined_flag=$_lt_dar_allow_undefined
10278 case $cc_basename in
10279 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10280 *) _lt_dar_can_shared=$GCC ;;
10281 esac
10282 if test yes = "$_lt_dar_can_shared"; then
10283 output_verbose_link_cmd=func_echo_all
10284 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10285 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10286 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"
10287 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"
10288
10289 else
10290 ld_shlibs=no
10291 fi
10292
10293 ;;
10294
10295 dgux*)
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_libdir_flag_spec='-L$libdir'
10298 hardcode_shlibpath_var=no
10299 ;;
10300
10301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10302 # support. Future versions do this automatically, but an explicit c++rt0.o
10303 # does not break anything, and helps significantly (at the cost of a little
10304 # extra space).
10305 freebsd2.2*)
10306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10307 hardcode_libdir_flag_spec='-R$libdir'
10308 hardcode_direct=yes
10309 hardcode_shlibpath_var=no
10310 ;;
10311
10312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10313 freebsd2.*)
10314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct=yes
10316 hardcode_minus_L=yes
10317 hardcode_shlibpath_var=no
10318 ;;
10319
10320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10321 freebsd* | dragonfly* | midnightbsd*)
10322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10323 hardcode_libdir_flag_spec='-R$libdir'
10324 hardcode_direct=yes
10325 hardcode_shlibpath_var=no
10326 ;;
10327
10328 hpux9*)
10329 if test yes = "$GCC"; then
10330 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'
10331 else
10332 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'
10333 fi
10334 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10335 hardcode_libdir_separator=:
10336 hardcode_direct=yes
10337
10338 # hardcode_minus_L: Not really in the search PATH,
10339 # but as the default location of the library.
10340 hardcode_minus_L=yes
10341 export_dynamic_flag_spec='$wl-E'
10342 ;;
10343
10344 hpux10*)
10345 if test yes,no = "$GCC,$with_gnu_ld"; then
10346 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10347 else
10348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10349 fi
10350 if test no = "$with_gnu_ld"; then
10351 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10352 hardcode_libdir_separator=:
10353 hardcode_direct=yes
10354 hardcode_direct_absolute=yes
10355 export_dynamic_flag_spec='$wl-E'
10356 # hardcode_minus_L: Not really in the search PATH,
10357 # but as the default location of the library.
10358 hardcode_minus_L=yes
10359 fi
10360 ;;
10361
10362 hpux11*)
10363 if test yes,no = "$GCC,$with_gnu_ld"; then
10364 case $host_cpu in
10365 hppa*64*)
10366 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10367 ;;
10368 ia64*)
10369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10370 ;;
10371 *)
10372 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10373 ;;
10374 esac
10375 else
10376 case $host_cpu in
10377 hppa*64*)
10378 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 ;;
10380 ia64*)
10381 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10382 ;;
10383 *)
10384
10385 # Older versions of the 11.00 compiler do not understand -b yet
10386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10388 printf %s "checking if $CC understands -b... " >&6; }
10389 if test ${lt_cv_prog_compiler__b+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else $as_nop
10393 lt_cv_prog_compiler__b=no
10394 save_LDFLAGS=$LDFLAGS
10395 LDFLAGS="$LDFLAGS -b"
10396 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10398 # The linker can only warn and ignore the option if not recognized
10399 # So say no if there are warnings
10400 if test -s conftest.err; then
10401 # Append any errors to the config.log.
10402 cat conftest.err 1>&5
10403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10405 if diff conftest.exp conftest.er2 >/dev/null; then
10406 lt_cv_prog_compiler__b=yes
10407 fi
10408 else
10409 lt_cv_prog_compiler__b=yes
10410 fi
10411 fi
10412 $RM -r conftest*
10413 LDFLAGS=$save_LDFLAGS
10414
10415 fi
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10417 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10418
10419 if test yes = "$lt_cv_prog_compiler__b"; then
10420 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10421 else
10422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10423 fi
10424
10425 ;;
10426 esac
10427 fi
10428 if test no = "$with_gnu_ld"; then
10429 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10430 hardcode_libdir_separator=:
10431
10432 case $host_cpu in
10433 hppa*64*|ia64*)
10434 hardcode_direct=no
10435 hardcode_shlibpath_var=no
10436 ;;
10437 *)
10438 hardcode_direct=yes
10439 hardcode_direct_absolute=yes
10440 export_dynamic_flag_spec='$wl-E'
10441
10442 # hardcode_minus_L: Not really in the search PATH,
10443 # but as the default location of the library.
10444 hardcode_minus_L=yes
10445 ;;
10446 esac
10447 fi
10448 ;;
10449
10450 irix5* | irix6* | nonstopux*)
10451 if test yes = "$GCC"; then
10452 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'
10453 # Try to use the -exported_symbol ld option, if it does not
10454 # work, assume that -exports_file does not work either and
10455 # implicitly export all symbols.
10456 # This should be the same for all languages, so no per-tag cache variable.
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10458 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10459 if test ${lt_cv_irix_exported_symbol+y}
10460 then :
10461 printf %s "(cached) " >&6
10462 else $as_nop
10463 save_LDFLAGS=$LDFLAGS
10464 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467 int foo (void) { return 0; }
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"
10470 then :
10471 lt_cv_irix_exported_symbol=yes
10472 else $as_nop
10473 lt_cv_irix_exported_symbol=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LDFLAGS=$save_LDFLAGS
10478 fi
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10480 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10481 if test yes = "$lt_cv_irix_exported_symbol"; then
10482 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'
10483 fi
10484 else
10485 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'
10486 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'
10487 fi
10488 archive_cmds_need_lc='no'
10489 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10490 hardcode_libdir_separator=:
10491 inherit_rpath=yes
10492 link_all_deplibs=yes
10493 ;;
10494
10495 linux*)
10496 case $cc_basename in
10497 tcc*)
10498 # Fabrice Bellard et al's Tiny C Compiler
10499 ld_shlibs=yes
10500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10501 ;;
10502 esac
10503 ;;
10504
10505 netbsd*)
10506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10508 else
10509 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10510 fi
10511 hardcode_libdir_flag_spec='-R$libdir'
10512 hardcode_direct=yes
10513 hardcode_shlibpath_var=no
10514 ;;
10515
10516 newsos6)
10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_direct=yes
10519 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10520 hardcode_libdir_separator=:
10521 hardcode_shlibpath_var=no
10522 ;;
10523
10524 *nto* | *qnx*)
10525 ;;
10526
10527 openbsd* | bitrig*)
10528 if test -f /usr/libexec/ld.so; then
10529 hardcode_direct=yes
10530 hardcode_shlibpath_var=no
10531 hardcode_direct_absolute=yes
10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10535 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10536 export_dynamic_flag_spec='$wl-E'
10537 else
10538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10539 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10540 fi
10541 else
10542 ld_shlibs=no
10543 fi
10544 ;;
10545
10546 os2*)
10547 hardcode_libdir_flag_spec='-L$libdir'
10548 hardcode_minus_L=yes
10549 allow_undefined_flag=unsupported
10550 shrext_cmds=.dll
10551 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10552 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10553 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10554 $ECHO EXPORTS >> $output_objdir/$libname.def~
10555 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10556 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10557 emximp -o $lib $output_objdir/$libname.def'
10558 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10559 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10560 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10561 $ECHO EXPORTS >> $output_objdir/$libname.def~
10562 prefix_cmds="$SED"~
10563 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10564 prefix_cmds="$prefix_cmds -e 1d";
10565 fi~
10566 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10567 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10568 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10569 emximp -o $lib $output_objdir/$libname.def'
10570 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10571 enable_shared_with_static_runtimes=yes
10572 file_list_spec='@'
10573 ;;
10574
10575 osf3*)
10576 if test yes = "$GCC"; then
10577 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10578 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'
10579 else
10580 allow_undefined_flag=' -expect_unresolved \*'
10581 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'
10582 fi
10583 archive_cmds_need_lc='no'
10584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10585 hardcode_libdir_separator=:
10586 ;;
10587
10588 osf4* | osf5*) # as osf3* with the addition of -msym flag
10589 if test yes = "$GCC"; then
10590 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10591 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'
10592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10593 else
10594 allow_undefined_flag=' -expect_unresolved \*'
10595 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'
10596 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~
10597 $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'
10598
10599 # Both c and cxx compiler support -rpath directly
10600 hardcode_libdir_flag_spec='-rpath $libdir'
10601 fi
10602 archive_cmds_need_lc='no'
10603 hardcode_libdir_separator=:
10604 ;;
10605
10606 solaris*)
10607 no_undefined_flag=' -z defs'
10608 if test yes = "$GCC"; then
10609 wlarc='$wl'
10610 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10612 $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'
10613 else
10614 case `$CC -V 2>&1` in
10615 *"Compilers 5.0"*)
10616 wlarc=''
10617 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10619 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10620 ;;
10621 *)
10622 wlarc='$wl'
10623 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10625 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10626 ;;
10627 esac
10628 fi
10629 hardcode_libdir_flag_spec='-R$libdir'
10630 hardcode_shlibpath_var=no
10631 case $host_os in
10632 solaris2.[0-5] | solaris2.[0-5].*) ;;
10633 *)
10634 # The compiler driver will combine and reorder linker options,
10635 # but understands '-z linker_flag'. GCC discards it without '$wl',
10636 # but is careful enough not to reorder.
10637 # Supported since Solaris 2.6 (maybe 2.5.1?)
10638 if test yes = "$GCC"; then
10639 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10640 else
10641 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10642 fi
10643 ;;
10644 esac
10645 link_all_deplibs=yes
10646 ;;
10647
10648 sunos4*)
10649 if test sequent = "$host_vendor"; then
10650 # Use $CC to link under sequent, because it throws in some extra .o
10651 # files that make .init and .fini sections work.
10652 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10653 else
10654 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10655 fi
10656 hardcode_libdir_flag_spec='-L$libdir'
10657 hardcode_direct=yes
10658 hardcode_minus_L=yes
10659 hardcode_shlibpath_var=no
10660 ;;
10661
10662 sysv4)
10663 case $host_vendor in
10664 sni)
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes # is this really true???
10667 ;;
10668 siemens)
10669 ## LD is ld it makes a PLAMLIB
10670 ## CC just makes a GrossModule.
10671 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10672 reload_cmds='$CC -r -o $output$reload_objs'
10673 hardcode_direct=no
10674 ;;
10675 motorola)
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10678 ;;
10679 esac
10680 runpath_var='LD_RUN_PATH'
10681 hardcode_shlibpath_var=no
10682 ;;
10683
10684 sysv4.3*)
10685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686 hardcode_shlibpath_var=no
10687 export_dynamic_flag_spec='-Bexport'
10688 ;;
10689
10690 sysv4*MP*)
10691 if test -d /usr/nec; then
10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_shlibpath_var=no
10694 runpath_var=LD_RUN_PATH
10695 hardcode_runpath_var=yes
10696 ld_shlibs=yes
10697 fi
10698 ;;
10699
10700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10701 no_undefined_flag='$wl-z,text'
10702 archive_cmds_need_lc=no
10703 hardcode_shlibpath_var=no
10704 runpath_var='LD_RUN_PATH'
10705
10706 if test yes = "$GCC"; then
10707 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 else
10710 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 fi
10713 ;;
10714
10715 sysv5* | sco3.2v5* | sco5v6*)
10716 # Note: We CANNOT use -z defs as we might desire, because we do not
10717 # link with -lc, and that would cause any symbols used from libc to
10718 # always be unresolved, which means just about no library would
10719 # ever link correctly. If we're not using GNU ld we use -z text
10720 # though, which does catch some bad symbols but isn't as heavy-handed
10721 # as -z defs.
10722 no_undefined_flag='$wl-z,text'
10723 allow_undefined_flag='$wl-z,nodefs'
10724 archive_cmds_need_lc=no
10725 hardcode_shlibpath_var=no
10726 hardcode_libdir_flag_spec='$wl-R,$libdir'
10727 hardcode_libdir_separator=':'
10728 link_all_deplibs=yes
10729 export_dynamic_flag_spec='$wl-Bexport'
10730 runpath_var='LD_RUN_PATH'
10731
10732 if test yes = "$GCC"; then
10733 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 else
10736 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 fi
10739 ;;
10740
10741 uts4*)
10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743 hardcode_libdir_flag_spec='-L$libdir'
10744 hardcode_shlibpath_var=no
10745 ;;
10746
10747 *)
10748 ld_shlibs=no
10749 ;;
10750 esac
10751
10752 if test sni = "$host_vendor"; then
10753 case $host in
10754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10755 export_dynamic_flag_spec='$wl-Blargedynsym'
10756 ;;
10757 esac
10758 fi
10759 fi
10760
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10762 printf "%s\n" "$ld_shlibs" >&6; }
10763 test no = "$ld_shlibs" && can_build_shared=no
10764
10765 with_gnu_ld=$with_gnu_ld
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781 #
10782 # Do we need to explicitly link libc?
10783 #
10784 case "x$archive_cmds_need_lc" in
10785 x|xyes)
10786 # Assume -lc should be added
10787 archive_cmds_need_lc=yes
10788
10789 if test yes,yes = "$GCC,$enable_shared"; then
10790 case $archive_cmds in
10791 *'~'*)
10792 # FIXME: we may have to deal with multi-command sequences.
10793 ;;
10794 '$CC '*)
10795 # Test whether the compiler implicitly links with -lc since on some
10796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10797 # to ld, don't add -lc before -lgcc.
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10799 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10800 if test ${lt_cv_archive_cmds_need_lc+y}
10801 then :
10802 printf %s "(cached) " >&6
10803 else $as_nop
10804 $RM conftest*
10805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10806
10807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10808 (eval $ac_compile) 2>&5
10809 ac_status=$?
10810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10811 test $ac_status = 0; } 2>conftest.err; then
10812 soname=conftest
10813 lib=conftest
10814 libobjs=conftest.$ac_objext
10815 deplibs=
10816 wl=$lt_prog_compiler_wl
10817 pic_flag=$lt_prog_compiler_pic
10818 compiler_flags=-v
10819 linker_flags=-v
10820 verstring=
10821 output_objdir=.
10822 libname=conftest
10823 lt_save_allow_undefined_flag=$allow_undefined_flag
10824 allow_undefined_flag=
10825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10826 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10827 ac_status=$?
10828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10829 test $ac_status = 0; }
10830 then
10831 lt_cv_archive_cmds_need_lc=no
10832 else
10833 lt_cv_archive_cmds_need_lc=yes
10834 fi
10835 allow_undefined_flag=$lt_save_allow_undefined_flag
10836 else
10837 cat conftest.err 1>&5
10838 fi
10839 $RM conftest*
10840
10841 fi
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10843 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10844 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10845 ;;
10846 esac
10847 fi
10848 ;;
10849 esac
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
10997
10998
10999
11000
11001
11002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11003 printf %s "checking dynamic linker characteristics... " >&6; }
11004
11005 if test yes = "$GCC"; then
11006 case $host_os in
11007 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11008 *) lt_awk_arg='/^libraries:/' ;;
11009 esac
11010 case $host_os in
11011 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11012 *) lt_sed_strip_eq='s|=/|/|g' ;;
11013 esac
11014 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11015 case $lt_search_path_spec in
11016 *\;*)
11017 # if the path contains ";" then we assume it to be the separator
11018 # otherwise default to the standard path separator (i.e. ":") - it is
11019 # assumed that no part of a normal pathname contains ";" but that should
11020 # okay in the real world where ";" in dirpaths is itself problematic.
11021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11022 ;;
11023 *)
11024 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11025 ;;
11026 esac
11027 # Ok, now we have the path, separated by spaces, we can step through it
11028 # and add multilib dir if necessary...
11029 lt_tmp_lt_search_path_spec=
11030 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11031 # ...but if some path component already ends with the multilib dir we assume
11032 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11033 case "$lt_multi_os_dir; $lt_search_path_spec " in
11034 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11035 lt_multi_os_dir=
11036 ;;
11037 esac
11038 for lt_sys_path in $lt_search_path_spec; do
11039 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11040 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11041 elif test -n "$lt_multi_os_dir"; then
11042 test -d "$lt_sys_path" && \
11043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11044 fi
11045 done
11046 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11047 BEGIN {RS = " "; FS = "/|\n";} {
11048 lt_foo = "";
11049 lt_count = 0;
11050 for (lt_i = NF; lt_i > 0; lt_i--) {
11051 if ($lt_i != "" && $lt_i != ".") {
11052 if ($lt_i == "..") {
11053 lt_count++;
11054 } else {
11055 if (lt_count == 0) {
11056 lt_foo = "/" $lt_i lt_foo;
11057 } else {
11058 lt_count--;
11059 }
11060 }
11061 }
11062 }
11063 if (lt_foo != "") { lt_freq[lt_foo]++; }
11064 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11065 }'`
11066 # AWK program above erroneously prepends '/' to C:/dos/paths
11067 # for these hosts.
11068 case $host_os in
11069 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11070 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11071 esac
11072 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11073 else
11074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11075 fi
11076 library_names_spec=
11077 libname_spec='lib$name'
11078 soname_spec=
11079 shrext_cmds=.so
11080 postinstall_cmds=
11081 postuninstall_cmds=
11082 finish_cmds=
11083 finish_eval=
11084 shlibpath_var=
11085 shlibpath_overrides_runpath=unknown
11086 version_type=none
11087 dynamic_linker="$host_os ld.so"
11088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11089 need_lib_prefix=unknown
11090 hardcode_into_libs=no
11091
11092 # when you set need_version to no, make sure it does not cause -set_version
11093 # flags to be left without arguments
11094 need_version=unknown
11095
11096
11097
11098 case $host_os in
11099 aix3*)
11100 version_type=linux # correct to gnu/linux during the next big refactor
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11102 shlibpath_var=LIBPATH
11103
11104 # AIX 3 has no versioning support, so we append a major version to the name.
11105 soname_spec='$libname$release$shared_ext$major'
11106 ;;
11107
11108 aix[4-9]*)
11109 version_type=linux # correct to gnu/linux during the next big refactor
11110 need_lib_prefix=no
11111 need_version=no
11112 hardcode_into_libs=yes
11113 if test ia64 = "$host_cpu"; then
11114 # AIX 5 supports IA64
11115 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 else
11118 # With GCC up to 2.95.x, collect2 would create an import file
11119 # for dependence libraries. The import file would start with
11120 # the line '#! .'. This would cause the generated library to
11121 # depend on '.', always an invalid library. This was fixed in
11122 # development snapshots of GCC prior to 3.0.
11123 case $host_os in
11124 aix4 | aix4.[01] | aix4.[01].*)
11125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11126 echo ' yes '
11127 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11128 :
11129 else
11130 can_build_shared=no
11131 fi
11132 ;;
11133 esac
11134 # Using Import Files as archive members, it is possible to support
11135 # filename-based versioning of shared library archives on AIX. While
11136 # this would work for both with and without runtime linking, it will
11137 # prevent static linking of such archives. So we do filename-based
11138 # shared library versioning with .so extension only, which is used
11139 # when both runtime linking and shared linking is enabled.
11140 # Unfortunately, runtime linking may impact performance, so we do
11141 # not want this to be the default eventually. Also, we use the
11142 # versioned .so libs for executables only if there is the -brtl
11143 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11144 # To allow for filename-based versioning support, we need to create
11145 # libNAME.so.V as an archive file, containing:
11146 # *) an Import File, referring to the versioned filename of the
11147 # archive as well as the shared archive member, telling the
11148 # bitwidth (32 or 64) of that shared object, and providing the
11149 # list of exported symbols of that shared object, eventually
11150 # decorated with the 'weak' keyword
11151 # *) the shared object with the F_LOADONLY flag set, to really avoid
11152 # it being seen by the linker.
11153 # At run time we better use the real file rather than another symlink,
11154 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11155
11156 case $with_aix_soname,$aix_use_runtimelinking in
11157 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11158 # soname into executable. Probably we can add versioning support to
11159 # collect2, so additional links can be useful in future.
11160 aix,yes) # traditional libtool
11161 dynamic_linker='AIX unversionable lib.so'
11162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11163 # instead of lib<name>.a to let people know that these are not
11164 # typical AIX shared libraries.
11165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166 ;;
11167 aix,no) # traditional AIX only
11168 dynamic_linker='AIX lib.a(lib.so.V)'
11169 # We preserve .a as extension for shared libraries through AIX4.2
11170 # and later when we are not doing run time linking.
11171 library_names_spec='$libname$release.a $libname.a'
11172 soname_spec='$libname$release$shared_ext$major'
11173 ;;
11174 svr4,*) # full svr4 only
11175 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11176 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11177 # We do not specify a path in Import Files, so LIBPATH fires.
11178 shlibpath_overrides_runpath=yes
11179 ;;
11180 *,yes) # both, prefer svr4
11181 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11182 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11183 # unpreferred sharedlib libNAME.a needs extra handling
11184 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"'
11185 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"'
11186 # We do not specify a path in Import Files, so LIBPATH fires.
11187 shlibpath_overrides_runpath=yes
11188 ;;
11189 *,no) # both, prefer aix
11190 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11191 library_names_spec='$libname$release.a $libname.a'
11192 soname_spec='$libname$release$shared_ext$major'
11193 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11194 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)'
11195 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"'
11196 ;;
11197 esac
11198 shlibpath_var=LIBPATH
11199 fi
11200 ;;
11201
11202 amigaos*)
11203 case $host_cpu in
11204 powerpc)
11205 # Since July 2007 AmigaOS4 officially supports .so libraries.
11206 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208 ;;
11209 m68k)
11210 library_names_spec='$libname.ixlibrary $libname.a'
11211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11212 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'
11213 ;;
11214 esac
11215 ;;
11216
11217 beos*)
11218 library_names_spec='$libname$shared_ext'
11219 dynamic_linker="$host_os ld.so"
11220 shlibpath_var=LIBRARY_PATH
11221 ;;
11222
11223 bsdi[45]*)
11224 version_type=linux # correct to gnu/linux during the next big refactor
11225 need_version=no
11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227 soname_spec='$libname$release$shared_ext$major'
11228 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11231 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11232 # the default ld.so.conf also contains /usr/contrib/lib and
11233 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11234 # libtool to hard-code these into programs
11235 ;;
11236
11237 cygwin* | mingw* | pw32* | cegcc*)
11238 version_type=windows
11239 shrext_cmds=.dll
11240 need_version=no
11241 need_lib_prefix=no
11242
11243 case $GCC,$cc_basename in
11244 yes,*)
11245 # gcc
11246 library_names_spec='$libname.dll.a'
11247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11248 postinstall_cmds='base_file=`basename \$file`~
11249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11250 dldir=$destdir/`dirname \$dlpath`~
11251 test -d \$dldir || mkdir -p \$dldir~
11252 $install_prog $dir/$dlname \$dldir/$dlname~
11253 chmod a+x \$dldir/$dlname~
11254 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11255 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11256 fi'
11257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11258 dlpath=$dir/\$dldll~
11259 $RM \$dlpath'
11260 shlibpath_overrides_runpath=yes
11261
11262 case $host_os in
11263 cygwin*)
11264 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11265 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11266
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11268 ;;
11269 mingw* | cegcc*)
11270 # MinGW DLLs use traditional 'lib' prefix
11271 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11272 ;;
11273 pw32*)
11274 # pw32 DLLs use 'pw' prefix rather than 'lib'
11275 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11276 ;;
11277 esac
11278 dynamic_linker='Win32 ld.exe'
11279 ;;
11280
11281 *,cl* | *,icl*)
11282 # Native MSVC or ICC
11283 libname_spec='$name'
11284 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11285 library_names_spec='$libname.dll.lib'
11286
11287 case $build_os in
11288 mingw*)
11289 sys_lib_search_path_spec=
11290 lt_save_ifs=$IFS
11291 IFS=';'
11292 for lt_path in $LIB
11293 do
11294 IFS=$lt_save_ifs
11295 # Let DOS variable expansion print the short 8.3 style file name.
11296 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11297 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11298 done
11299 IFS=$lt_save_ifs
11300 # Convert to MSYS style.
11301 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11302 ;;
11303 cygwin*)
11304 # Convert to unix form, then to dos form, then back to unix form
11305 # but this time dos style (no spaces!) so that the unix form looks
11306 # like /cygdrive/c/PROGRA~1:/cygdr...
11307 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11308 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11309 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11310 ;;
11311 *)
11312 sys_lib_search_path_spec=$LIB
11313 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11314 # It is most probably a Windows format PATH.
11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11316 else
11317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11318 fi
11319 # FIXME: find the short name or the path components, as spaces are
11320 # common. (e.g. "Program Files" -> "PROGRA~1")
11321 ;;
11322 esac
11323
11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325 postinstall_cmds='base_file=`basename \$file`~
11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11327 dldir=$destdir/`dirname \$dlpath`~
11328 test -d \$dldir || mkdir -p \$dldir~
11329 $install_prog $dir/$dlname \$dldir/$dlname'
11330 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11331 dlpath=$dir/\$dldll~
11332 $RM \$dlpath'
11333 shlibpath_overrides_runpath=yes
11334 dynamic_linker='Win32 link.exe'
11335 ;;
11336
11337 *)
11338 # Assume MSVC and ICC wrapper
11339 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11340 dynamic_linker='Win32 ld.exe'
11341 ;;
11342 esac
11343 # FIXME: first we should search . and the directory the executable is in
11344 shlibpath_var=PATH
11345 ;;
11346
11347 darwin* | rhapsody*)
11348 dynamic_linker="$host_os dyld"
11349 version_type=darwin
11350 need_lib_prefix=no
11351 need_version=no
11352 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11353 soname_spec='$libname$release$major$shared_ext'
11354 shlibpath_overrides_runpath=yes
11355 shlibpath_var=DYLD_LIBRARY_PATH
11356 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11357
11358 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11360 ;;
11361
11362 dgux*)
11363 version_type=linux # correct to gnu/linux during the next big refactor
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 soname_spec='$libname$release$shared_ext$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 ;;
11370
11371 freebsd* | dragonfly* | midnightbsd*)
11372 # DragonFly does not have aout. When/if they implement a new
11373 # versioning mechanism, adjust this.
11374 if test -x /usr/bin/objformat; then
11375 objformat=`/usr/bin/objformat`
11376 else
11377 case $host_os in
11378 freebsd[23].*) objformat=aout ;;
11379 *) objformat=elf ;;
11380 esac
11381 fi
11382 # Handle Gentoo/FreeBSD as it was Linux
11383 case $host_vendor in
11384 gentoo)
11385 version_type=linux ;;
11386 *)
11387 version_type=freebsd-$objformat ;;
11388 esac
11389
11390 case $version_type in
11391 freebsd-elf*)
11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393 soname_spec='$libname$release$shared_ext$major'
11394 need_version=no
11395 need_lib_prefix=no
11396 ;;
11397 freebsd-*)
11398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11399 need_version=yes
11400 ;;
11401 linux)
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 need_lib_prefix=no
11405 need_version=no
11406 ;;
11407 esac
11408 shlibpath_var=LD_LIBRARY_PATH
11409 case $host_os in
11410 freebsd2.*)
11411 shlibpath_overrides_runpath=yes
11412 ;;
11413 freebsd3.[01]* | freebsdelf3.[01]*)
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11416 ;;
11417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11419 shlibpath_overrides_runpath=no
11420 hardcode_into_libs=yes
11421 ;;
11422 *) # from 4.6 on, and DragonFly
11423 shlibpath_overrides_runpath=yes
11424 hardcode_into_libs=yes
11425 ;;
11426 esac
11427 ;;
11428
11429 haiku*)
11430 version_type=linux # correct to gnu/linux during the next big refactor
11431 need_lib_prefix=no
11432 need_version=no
11433 dynamic_linker="$host_os runtime_loader"
11434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11435 soname_spec='$libname$release$shared_ext$major'
11436 shlibpath_var=LIBRARY_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11439 hardcode_into_libs=yes
11440 ;;
11441
11442 hpux9* | hpux10* | hpux11*)
11443 # Give a soname corresponding to the major version so that dld.sl refuses to
11444 # link against other versions.
11445 version_type=sunos
11446 need_lib_prefix=no
11447 need_version=no
11448 case $host_cpu in
11449 ia64*)
11450 shrext_cmds='.so'
11451 hardcode_into_libs=yes
11452 dynamic_linker="$host_os dld.so"
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11456 soname_spec='$libname$release$shared_ext$major'
11457 if test 32 = "$HPUX_IA64_MODE"; then
11458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11459 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11460 else
11461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11462 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11463 fi
11464 ;;
11465 hppa*64*)
11466 shrext_cmds='.sl'
11467 hardcode_into_libs=yes
11468 dynamic_linker="$host_os dld.sl"
11469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472 soname_spec='$libname$release$shared_ext$major'
11473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11475 ;;
11476 *)
11477 shrext_cmds='.sl'
11478 dynamic_linker="$host_os dld.sl"
11479 shlibpath_var=SHLIB_PATH
11480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11482 soname_spec='$libname$release$shared_ext$major'
11483 ;;
11484 esac
11485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11486 postinstall_cmds='chmod 555 $lib'
11487 # or fails outright, so override atomically:
11488 install_override_mode=555
11489 ;;
11490
11491 interix[3-9]*)
11492 version_type=linux # correct to gnu/linux during the next big refactor
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496 soname_spec='$libname$release$shared_ext$major'
11497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 shlibpath_overrides_runpath=no
11500 hardcode_into_libs=yes
11501 ;;
11502
11503 irix5* | irix6* | nonstopux*)
11504 case $host_os in
11505 nonstopux*) version_type=nonstopux ;;
11506 *)
11507 if test yes = "$lt_cv_prog_gnu_ld"; then
11508 version_type=linux # correct to gnu/linux during the next big refactor
11509 else
11510 version_type=irix
11511 fi ;;
11512 esac
11513 need_lib_prefix=no
11514 need_version=no
11515 soname_spec='$libname$release$shared_ext$major'
11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11517 case $host_os in
11518 irix5* | nonstopux*)
11519 libsuff= shlibsuff=
11520 ;;
11521 *)
11522 case $LD in # libtool.m4 will add one of these switches to LD
11523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11524 libsuff= shlibsuff= libmagic=32-bit;;
11525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11526 libsuff=32 shlibsuff=N32 libmagic=N32;;
11527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11529 *) libsuff= shlibsuff= libmagic=never-match;;
11530 esac
11531 ;;
11532 esac
11533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11534 shlibpath_overrides_runpath=no
11535 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11536 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11537 hardcode_into_libs=yes
11538 ;;
11539
11540 # No shared lib support for Linux oldld, aout, or coff.
11541 linux*oldld* | linux*aout* | linux*coff*)
11542 dynamic_linker=no
11543 ;;
11544
11545 linux*android*)
11546 version_type=none # Android doesn't support versioned libraries.
11547 need_lib_prefix=no
11548 need_version=no
11549 library_names_spec='$libname$release$shared_ext'
11550 soname_spec='$libname$release$shared_ext'
11551 finish_cmds=
11552 shlibpath_var=LD_LIBRARY_PATH
11553 shlibpath_overrides_runpath=yes
11554
11555 # This implies no fast_install, which is unacceptable.
11556 # Some rework will be needed to allow for fast_install
11557 # before this can be enabled.
11558 hardcode_into_libs=yes
11559
11560 dynamic_linker='Android linker'
11561 # Don't embed -rpath directories since the linker doesn't support them.
11562 hardcode_libdir_flag_spec='-L$libdir'
11563 ;;
11564
11565 # This must be glibc/ELF.
11566 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11567 version_type=linux # correct to gnu/linux during the next big refactor
11568 need_lib_prefix=no
11569 need_version=no
11570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11571 soname_spec='$libname$release$shared_ext$major'
11572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=no
11575
11576 # Some binutils ld are patched to set DT_RUNPATH
11577 if test ${lt_cv_shlibpath_overrides_runpath+y}
11578 then :
11579 printf %s "(cached) " >&6
11580 else $as_nop
11581 lt_cv_shlibpath_overrides_runpath=no
11582 save_LDFLAGS=$LDFLAGS
11583 save_libdir=$libdir
11584 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11585 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588
11589 int
11590 main (void)
11591 {
11592
11593 ;
11594 return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"
11598 then :
11599 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11600 then :
11601 lt_cv_shlibpath_overrides_runpath=yes
11602 fi
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11605 conftest$ac_exeext conftest.$ac_ext
11606 LDFLAGS=$save_LDFLAGS
11607 libdir=$save_libdir
11608
11609 fi
11610
11611 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11612
11613 # This implies no fast_install, which is unacceptable.
11614 # Some rework will be needed to allow for fast_install
11615 # before this can be enabled.
11616 hardcode_into_libs=yes
11617
11618 # Ideally, we could use ldconfig to report *all* directores which are
11619 # searched for libraries, however this is still not possible. Aside from not
11620 # being certain /sbin/ldconfig is available, command
11621 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11622 # even though it is searched at run-time. Try to do the best guess by
11623 # appending ld.so.conf contents (and includes) to the search path.
11624 if test -f /etc/ld.so.conf; then
11625 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' ' '`
11626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11627 fi
11628
11629 # We used to test for /lib/ld.so.1 and disable shared libraries on
11630 # powerpc, because MkLinux only supported shared libraries with the
11631 # GNU dynamic linker. Since this was broken with cross compilers,
11632 # most powerpc-linux boxes support dynamic linking these days and
11633 # people can always --disable-shared, the test was removed, and we
11634 # assume the GNU/Linux dynamic linker is in use.
11635 dynamic_linker='GNU/Linux ld.so'
11636 ;;
11637
11638 netbsd*)
11639 version_type=sunos
11640 need_lib_prefix=no
11641 need_version=no
11642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11643 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11645 dynamic_linker='NetBSD (a.out) ld.so'
11646 else
11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11648 soname_spec='$libname$release$shared_ext$major'
11649 dynamic_linker='NetBSD ld.elf_so'
11650 fi
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=yes
11653 hardcode_into_libs=yes
11654 ;;
11655
11656 newsos6)
11657 version_type=linux # correct to gnu/linux during the next big refactor
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=yes
11661 ;;
11662
11663 *nto* | *qnx*)
11664 version_type=qnx
11665 need_lib_prefix=no
11666 need_version=no
11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11668 soname_spec='$libname$release$shared_ext$major'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=no
11671 hardcode_into_libs=yes
11672 dynamic_linker='ldqnx.so'
11673 ;;
11674
11675 openbsd* | bitrig*)
11676 version_type=sunos
11677 sys_lib_dlsearch_path_spec=/usr/lib
11678 need_lib_prefix=no
11679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11680 need_version=no
11681 else
11682 need_version=yes
11683 fi
11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=yes
11688 ;;
11689
11690 os2*)
11691 libname_spec='$name'
11692 version_type=windows
11693 shrext_cmds=.dll
11694 need_version=no
11695 need_lib_prefix=no
11696 # OS/2 can only load a DLL with a base name of 8 characters or less.
11697 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11698 v=$($ECHO $release$versuffix | tr -d .-);
11699 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11700 $ECHO $n$v`$shared_ext'
11701 library_names_spec='${libname}_dll.$libext'
11702 dynamic_linker='OS/2 ld.exe'
11703 shlibpath_var=BEGINLIBPATH
11704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11706 postinstall_cmds='base_file=`basename \$file`~
11707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11708 dldir=$destdir/`dirname \$dlpath`~
11709 test -d \$dldir || mkdir -p \$dldir~
11710 $install_prog $dir/$dlname \$dldir/$dlname~
11711 chmod a+x \$dldir/$dlname~
11712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11714 fi'
11715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11716 dlpath=$dir/\$dldll~
11717 $RM \$dlpath'
11718 ;;
11719
11720 osf3* | osf4* | osf5*)
11721 version_type=osf
11722 need_lib_prefix=no
11723 need_version=no
11724 soname_spec='$libname$release$shared_ext$major'
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11729 ;;
11730
11731 rdos*)
11732 dynamic_linker=no
11733 ;;
11734
11735 solaris*)
11736 version_type=linux # correct to gnu/linux during the next big refactor
11737 need_lib_prefix=no
11738 need_version=no
11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11740 soname_spec='$libname$release$shared_ext$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11744 # ldd complains unless libraries are executable
11745 postinstall_cmds='chmod +x $lib'
11746 ;;
11747
11748 sunos4*)
11749 version_type=sunos
11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 if test yes = "$with_gnu_ld"; then
11755 need_lib_prefix=no
11756 fi
11757 need_version=yes
11758 ;;
11759
11760 sysv4 | sysv4.3*)
11761 version_type=linux # correct to gnu/linux during the next big refactor
11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763 soname_spec='$libname$release$shared_ext$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 case $host_vendor in
11766 sni)
11767 shlibpath_overrides_runpath=no
11768 need_lib_prefix=no
11769 runpath_var=LD_RUN_PATH
11770 ;;
11771 siemens)
11772 need_lib_prefix=no
11773 ;;
11774 motorola)
11775 need_lib_prefix=no
11776 need_version=no
11777 shlibpath_overrides_runpath=no
11778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11779 ;;
11780 esac
11781 ;;
11782
11783 sysv4*MP*)
11784 if test -d /usr/nec; then
11785 version_type=linux # correct to gnu/linux during the next big refactor
11786 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11787 soname_spec='$libname$shared_ext.$major'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 fi
11790 ;;
11791
11792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11793 version_type=sco
11794 need_lib_prefix=no
11795 need_version=no
11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11797 soname_spec='$libname$release$shared_ext$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11801 if test yes = "$with_gnu_ld"; then
11802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11803 else
11804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11805 case $host_os in
11806 sco3.2v5*)
11807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11808 ;;
11809 esac
11810 fi
11811 sys_lib_dlsearch_path_spec='/usr/lib'
11812 ;;
11813
11814 tpf*)
11815 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11816 version_type=linux # correct to gnu/linux during the next big refactor
11817 need_lib_prefix=no
11818 need_version=no
11819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822 hardcode_into_libs=yes
11823 ;;
11824
11825 uts4*)
11826 version_type=linux # correct to gnu/linux during the next big refactor
11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11828 soname_spec='$libname$release$shared_ext$major'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 ;;
11831
11832 *)
11833 dynamic_linker=no
11834 ;;
11835 esac
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11837 printf "%s\n" "$dynamic_linker" >&6; }
11838 test no = "$dynamic_linker" && can_build_shared=no
11839
11840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11841 if test yes = "$GCC"; then
11842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11843 fi
11844
11845 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11846 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11847 fi
11848
11849 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11850 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11851 fi
11852
11853 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11854 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11855
11856 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11857 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11858
11859 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11860 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11959 printf %s "checking how to hardcode library paths into programs... " >&6; }
11960 hardcode_action=
11961 if test -n "$hardcode_libdir_flag_spec" ||
11962 test -n "$runpath_var" ||
11963 test yes = "$hardcode_automatic"; then
11964
11965 # We can hardcode non-existent directories.
11966 if test no != "$hardcode_direct" &&
11967 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11968 # have to relink, otherwise we might link with an installed library
11969 # when we should be linking with a yet-to-be-installed one
11970 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11971 test no != "$hardcode_minus_L"; then
11972 # Linking always hardcodes the temporary library directory.
11973 hardcode_action=relink
11974 else
11975 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11976 hardcode_action=immediate
11977 fi
11978 else
11979 # We cannot hardcode anything, or else we can only hardcode existing
11980 # directories.
11981 hardcode_action=unsupported
11982 fi
11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11984 printf "%s\n" "$hardcode_action" >&6; }
11985
11986 if test relink = "$hardcode_action" ||
11987 test yes = "$inherit_rpath"; then
11988 # Fast installation is not supported
11989 enable_fast_install=no
11990 elif test yes = "$shlibpath_overrides_runpath" ||
11991 test no = "$enable_shared"; then
11992 # Fast installation is not necessary
11993 enable_fast_install=needless
11994 fi
11995
11996
11997
11998
11999
12000
12001 if test yes != "$enable_dlopen"; then
12002 enable_dlopen=unknown
12003 enable_dlopen_self=unknown
12004 enable_dlopen_self_static=unknown
12005 else
12006 lt_cv_dlopen=no
12007 lt_cv_dlopen_libs=
12008
12009 case $host_os in
12010 beos*)
12011 lt_cv_dlopen=load_add_on
12012 lt_cv_dlopen_libs=
12013 lt_cv_dlopen_self=yes
12014 ;;
12015
12016 mingw* | pw32* | cegcc*)
12017 lt_cv_dlopen=LoadLibrary
12018 lt_cv_dlopen_libs=
12019 ;;
12020
12021 cygwin*)
12022 lt_cv_dlopen=dlopen
12023 lt_cv_dlopen_libs=
12024 ;;
12025
12026 darwin*)
12027 # if libdl is installed we need to link against it
12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12029 printf %s "checking for dlopen in -ldl... " >&6; }
12030 if test ${ac_cv_lib_dl_dlopen+y}
12031 then :
12032 printf %s "(cached) " >&6
12033 else $as_nop
12034 ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-ldl $LIBS"
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038
12039 /* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply.
12042 The 'extern "C"' is for builds by C++ compilers;
12043 although this is not generally supported in C code supporting it here
12044 has little cost and some practical benefit (sr 110532). */
12045 #ifdef __cplusplus
12046 extern "C"
12047 #endif
12048 char dlopen (void);
12049 int
12050 main (void)
12051 {
12052 return dlopen ();
12053 ;
12054 return 0;
12055 }
12056 _ACEOF
12057 if ac_fn_c_try_link "$LINENO"
12058 then :
12059 ac_cv_lib_dl_dlopen=yes
12060 else $as_nop
12061 ac_cv_lib_dl_dlopen=no
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12066 fi
12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12068 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12069 if test "x$ac_cv_lib_dl_dlopen" = xyes
12070 then :
12071 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12072 else $as_nop
12073
12074 lt_cv_dlopen=dyld
12075 lt_cv_dlopen_libs=
12076 lt_cv_dlopen_self=yes
12077
12078 fi
12079
12080 ;;
12081
12082 tpf*)
12083 # Don't try to run any link tests for TPF. We know it's impossible
12084 # because TPF is a cross-compiler, and we know how we open DSOs.
12085 lt_cv_dlopen=dlopen
12086 lt_cv_dlopen_libs=
12087 lt_cv_dlopen_self=no
12088 ;;
12089
12090 *)
12091 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12092 if test "x$ac_cv_func_shl_load" = xyes
12093 then :
12094 lt_cv_dlopen=shl_load
12095 else $as_nop
12096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12097 printf %s "checking for shl_load in -ldld... " >&6; }
12098 if test ${ac_cv_lib_dld_shl_load+y}
12099 then :
12100 printf %s "(cached) " >&6
12101 else $as_nop
12102 ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-ldld $LIBS"
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply.
12110 The 'extern "C"' is for builds by C++ compilers;
12111 although this is not generally supported in C code supporting it here
12112 has little cost and some practical benefit (sr 110532). */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char shl_load (void);
12117 int
12118 main (void)
12119 {
12120 return shl_load ();
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_link "$LINENO"
12126 then :
12127 ac_cv_lib_dld_shl_load=yes
12128 else $as_nop
12129 ac_cv_lib_dld_shl_load=no
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12132 conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12134 fi
12135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12136 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12137 if test "x$ac_cv_lib_dld_shl_load" = xyes
12138 then :
12139 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12140 else $as_nop
12141 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12142 if test "x$ac_cv_func_dlopen" = xyes
12143 then :
12144 lt_cv_dlopen=dlopen
12145 else $as_nop
12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12147 printf %s "checking for dlopen in -ldl... " >&6; }
12148 if test ${ac_cv_lib_dl_dlopen+y}
12149 then :
12150 printf %s "(cached) " >&6
12151 else $as_nop
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ldl $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply.
12160 The 'extern "C"' is for builds by C++ compilers;
12161 although this is not generally supported in C code supporting it here
12162 has little cost and some practical benefit (sr 110532). */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char dlopen (void);
12167 int
12168 main (void)
12169 {
12170 return dlopen ();
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_c_try_link "$LINENO"
12176 then :
12177 ac_cv_lib_dl_dlopen=yes
12178 else $as_nop
12179 ac_cv_lib_dl_dlopen=no
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12182 conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12184 fi
12185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12186 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12187 if test "x$ac_cv_lib_dl_dlopen" = xyes
12188 then :
12189 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12190 else $as_nop
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12192 printf %s "checking for dlopen in -lsvld... " >&6; }
12193 if test ${ac_cv_lib_svld_dlopen+y}
12194 then :
12195 printf %s "(cached) " >&6
12196 else $as_nop
12197 ac_check_lib_save_LIBS=$LIBS
12198 LIBS="-lsvld $LIBS"
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12201
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply.
12205 The 'extern "C"' is for builds by C++ compilers;
12206 although this is not generally supported in C code supporting it here
12207 has little cost and some practical benefit (sr 110532). */
12208 #ifdef __cplusplus
12209 extern "C"
12210 #endif
12211 char dlopen (void);
12212 int
12213 main (void)
12214 {
12215 return dlopen ();
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"
12221 then :
12222 ac_cv_lib_svld_dlopen=yes
12223 else $as_nop
12224 ac_cv_lib_svld_dlopen=no
12225 fi
12226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12229 fi
12230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12231 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12232 if test "x$ac_cv_lib_svld_dlopen" = xyes
12233 then :
12234 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12235 else $as_nop
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12237 printf %s "checking for dld_link in -ldld... " >&6; }
12238 if test ${ac_cv_lib_dld_dld_link+y}
12239 then :
12240 printf %s "(cached) " >&6
12241 else $as_nop
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-ldld $LIBS"
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply.
12250 The 'extern "C"' is for builds by C++ compilers;
12251 although this is not generally supported in C code supporting it here
12252 has little cost and some practical benefit (sr 110532). */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 char dld_link (void);
12257 int
12258 main (void)
12259 {
12260 return dld_link ();
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"
12266 then :
12267 ac_cv_lib_dld_dld_link=yes
12268 else $as_nop
12269 ac_cv_lib_dld_dld_link=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12274 fi
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12276 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12277 if test "x$ac_cv_lib_dld_dld_link" = xyes
12278 then :
12279 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12280 fi
12281
12282
12283 fi
12284
12285
12286 fi
12287
12288
12289 fi
12290
12291
12292 fi
12293
12294
12295 fi
12296
12297 ;;
12298 esac
12299
12300 if test no = "$lt_cv_dlopen"; then
12301 enable_dlopen=no
12302 else
12303 enable_dlopen=yes
12304 fi
12305
12306 case $lt_cv_dlopen in
12307 dlopen)
12308 save_CPPFLAGS=$CPPFLAGS
12309 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12310
12311 save_LDFLAGS=$LDFLAGS
12312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12313
12314 save_LIBS=$LIBS
12315 LIBS="$lt_cv_dlopen_libs $LIBS"
12316
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12318 printf %s "checking whether a program can dlopen itself... " >&6; }
12319 if test ${lt_cv_dlopen_self+y}
12320 then :
12321 printf %s "(cached) " >&6
12322 else $as_nop
12323 if test yes = "$cross_compiling"; then :
12324 lt_cv_dlopen_self=cross
12325 else
12326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12327 lt_status=$lt_dlunknown
12328 cat > conftest.$ac_ext <<_LT_EOF
12329 #line $LINENO "configure"
12330 #include "confdefs.h"
12331
12332 #if HAVE_DLFCN_H
12333 #include <dlfcn.h>
12334 #endif
12335
12336 #include <stdio.h>
12337
12338 #ifdef RTLD_GLOBAL
12339 # define LT_DLGLOBAL RTLD_GLOBAL
12340 #else
12341 # ifdef DL_GLOBAL
12342 # define LT_DLGLOBAL DL_GLOBAL
12343 # else
12344 # define LT_DLGLOBAL 0
12345 # endif
12346 #endif
12347
12348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12349 find out it does not work in some platform. */
12350 #ifndef LT_DLLAZY_OR_NOW
12351 # ifdef RTLD_LAZY
12352 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12353 # else
12354 # ifdef DL_LAZY
12355 # define LT_DLLAZY_OR_NOW DL_LAZY
12356 # else
12357 # ifdef RTLD_NOW
12358 # define LT_DLLAZY_OR_NOW RTLD_NOW
12359 # else
12360 # ifdef DL_NOW
12361 # define LT_DLLAZY_OR_NOW DL_NOW
12362 # else
12363 # define LT_DLLAZY_OR_NOW 0
12364 # endif
12365 # endif
12366 # endif
12367 # endif
12368 #endif
12369
12370 /* When -fvisibility=hidden is used, assume the code has been annotated
12371 correspondingly for the symbols needed. */
12372 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12373 int fnord () __attribute__((visibility("default")));
12374 #endif
12375
12376 int fnord () { return 42; }
12377 int main ()
12378 {
12379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12380 int status = $lt_dlunknown;
12381
12382 if (self)
12383 {
12384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12385 else
12386 {
12387 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12388 else puts (dlerror ());
12389 }
12390 /* dlclose (self); */
12391 }
12392 else
12393 puts (dlerror ());
12394
12395 return status;
12396 }
12397 _LT_EOF
12398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12399 (eval $ac_link) 2>&5
12400 ac_status=$?
12401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12402 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12403 (./conftest; exit; ) >&5 2>/dev/null
12404 lt_status=$?
12405 case x$lt_status in
12406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12408 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12409 esac
12410 else :
12411 # compilation failed
12412 lt_cv_dlopen_self=no
12413 fi
12414 fi
12415 rm -fr conftest*
12416
12417
12418 fi
12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12420 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12421
12422 if test yes = "$lt_cv_dlopen_self"; then
12423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12425 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12426 if test ${lt_cv_dlopen_self_static+y}
12427 then :
12428 printf %s "(cached) " >&6
12429 else $as_nop
12430 if test yes = "$cross_compiling"; then :
12431 lt_cv_dlopen_self_static=cross
12432 else
12433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12434 lt_status=$lt_dlunknown
12435 cat > conftest.$ac_ext <<_LT_EOF
12436 #line $LINENO "configure"
12437 #include "confdefs.h"
12438
12439 #if HAVE_DLFCN_H
12440 #include <dlfcn.h>
12441 #endif
12442
12443 #include <stdio.h>
12444
12445 #ifdef RTLD_GLOBAL
12446 # define LT_DLGLOBAL RTLD_GLOBAL
12447 #else
12448 # ifdef DL_GLOBAL
12449 # define LT_DLGLOBAL DL_GLOBAL
12450 # else
12451 # define LT_DLGLOBAL 0
12452 # endif
12453 #endif
12454
12455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12456 find out it does not work in some platform. */
12457 #ifndef LT_DLLAZY_OR_NOW
12458 # ifdef RTLD_LAZY
12459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12460 # else
12461 # ifdef DL_LAZY
12462 # define LT_DLLAZY_OR_NOW DL_LAZY
12463 # else
12464 # ifdef RTLD_NOW
12465 # define LT_DLLAZY_OR_NOW RTLD_NOW
12466 # else
12467 # ifdef DL_NOW
12468 # define LT_DLLAZY_OR_NOW DL_NOW
12469 # else
12470 # define LT_DLLAZY_OR_NOW 0
12471 # endif
12472 # endif
12473 # endif
12474 # endif
12475 #endif
12476
12477 /* When -fvisibility=hidden is used, assume the code has been annotated
12478 correspondingly for the symbols needed. */
12479 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12480 int fnord () __attribute__((visibility("default")));
12481 #endif
12482
12483 int fnord () { return 42; }
12484 int main ()
12485 {
12486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12487 int status = $lt_dlunknown;
12488
12489 if (self)
12490 {
12491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12492 else
12493 {
12494 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12495 else puts (dlerror ());
12496 }
12497 /* dlclose (self); */
12498 }
12499 else
12500 puts (dlerror ());
12501
12502 return status;
12503 }
12504 _LT_EOF
12505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12506 (eval $ac_link) 2>&5
12507 ac_status=$?
12508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12509 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12510 (./conftest; exit; ) >&5 2>/dev/null
12511 lt_status=$?
12512 case x$lt_status in
12513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12515 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12516 esac
12517 else :
12518 # compilation failed
12519 lt_cv_dlopen_self_static=no
12520 fi
12521 fi
12522 rm -fr conftest*
12523
12524
12525 fi
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12527 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12528 fi
12529
12530 CPPFLAGS=$save_CPPFLAGS
12531 LDFLAGS=$save_LDFLAGS
12532 LIBS=$save_LIBS
12533 ;;
12534 esac
12535
12536 case $lt_cv_dlopen_self in
12537 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12538 *) enable_dlopen_self=unknown ;;
12539 esac
12540
12541 case $lt_cv_dlopen_self_static in
12542 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12543 *) enable_dlopen_self_static=unknown ;;
12544 esac
12545 fi
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563 striplib=
12564 old_striplib=
12565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12566 printf %s "checking whether stripping libraries is possible... " >&6; }
12567 if test -z "$STRIP"; then
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 printf "%s\n" "no" >&6; }
12570 else
12571 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12572 old_striplib="$STRIP --strip-debug"
12573 striplib="$STRIP --strip-unneeded"
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 printf "%s\n" "yes" >&6; }
12576 else
12577 case $host_os in
12578 darwin*)
12579 # FIXME - insert some real tests, host_os isn't really good enough
12580 striplib="$STRIP -x"
12581 old_striplib="$STRIP -S"
12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12583 printf "%s\n" "yes" >&6; }
12584 ;;
12585 freebsd*)
12586 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12587 old_striplib="$STRIP --strip-debug"
12588 striplib="$STRIP --strip-unneeded"
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12590 printf "%s\n" "yes" >&6; }
12591 else
12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 printf "%s\n" "no" >&6; }
12594 fi
12595 ;;
12596 *)
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 printf "%s\n" "no" >&6; }
12599 ;;
12600 esac
12601 fi
12602 fi
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615 # Report what library types will actually be built
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12617 printf %s "checking if libtool supports shared libraries... " >&6; }
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12619 printf "%s\n" "$can_build_shared" >&6; }
12620
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12622 printf %s "checking whether to build shared libraries... " >&6; }
12623 test no = "$can_build_shared" && enable_shared=no
12624
12625 # On AIX, shared libraries and static libraries use the same namespace, and
12626 # are all built from PIC.
12627 case $host_os in
12628 aix3*)
12629 test yes = "$enable_shared" && enable_static=no
12630 if test -n "$RANLIB"; then
12631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12632 postinstall_cmds='$RANLIB $lib'
12633 fi
12634 ;;
12635
12636 aix[4-9]*)
12637 if test ia64 != "$host_cpu"; then
12638 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12639 yes,aix,yes) ;; # shared object as lib.so file only
12640 yes,svr4,*) ;; # shared object as lib.so archive member only
12641 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12642 esac
12643 fi
12644 ;;
12645 esac
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12647 printf "%s\n" "$enable_shared" >&6; }
12648
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12650 printf %s "checking whether to build static libraries... " >&6; }
12651 # Make sure either enable_shared or enable_static is yes.
12652 test yes = "$enable_shared" || enable_static=yes
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12654 printf "%s\n" "$enable_static" >&6; }
12655
12656
12657
12658
12659 fi
12660 ac_ext=c
12661 ac_cpp='$CPP $CPPFLAGS'
12662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12665
12666 CC=$lt_save_CC
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682 ac_config_commands="$ac_config_commands libtool"
12683
12684
12685
12686
12687 # Only expand once:
12688
12689
12690
12691 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12705 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12706 if test ${ac_cv_c_undeclared_builtin_options+y}
12707 then :
12708 printf %s "(cached) " >&6
12709 else $as_nop
12710 ac_save_CFLAGS=$CFLAGS
12711 ac_cv_c_undeclared_builtin_options='cannot detect'
12712 for ac_arg in '' -fno-builtin; do
12713 CFLAGS="$ac_save_CFLAGS $ac_arg"
12714 # This test program should *not* compile successfully.
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717
12718 int
12719 main (void)
12720 {
12721 (void) strchr;
12722 ;
12723 return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_c_try_compile "$LINENO"
12727 then :
12728
12729 else $as_nop
12730 # This test program should compile successfully.
12731 # No library function is consistently available on
12732 # freestanding implementations, so test against a dummy
12733 # declaration. Include always-available headers on the
12734 # off chance that they somehow elicit warnings.
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737 #include <float.h>
12738 #include <limits.h>
12739 #include <stdarg.h>
12740 #include <stddef.h>
12741 extern void ac_decl (int, char *);
12742
12743 int
12744 main (void)
12745 {
12746 (void) ac_decl (0, (char *) 0);
12747 (void) ac_decl;
12748
12749 ;
12750 return 0;
12751 }
12752 _ACEOF
12753 if ac_fn_c_try_compile "$LINENO"
12754 then :
12755 if test x"$ac_arg" = x
12756 then :
12757 ac_cv_c_undeclared_builtin_options='none needed'
12758 else $as_nop
12759 ac_cv_c_undeclared_builtin_options=$ac_arg
12760 fi
12761 break
12762 fi
12763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12766 done
12767 CFLAGS=$ac_save_CFLAGS
12768
12769 fi
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12771 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12772 case $ac_cv_c_undeclared_builtin_options in #(
12773 'cannot detect') :
12774 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12775 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12776 as_fn_error $? "cannot make $CC report undeclared builtins
12777 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12778 'none needed') :
12779 ac_c_undeclared_builtin_options='' ;; #(
12780 *) :
12781 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12782 esac
12783
12784
12785
12786
12787
12788 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12789 if test "x$ac_cv_have_decl___clang__" = xyes
12790 then :
12791 CLANGCC="yes"
12792 else $as_nop
12793 CLANGCC="no"
12794 fi
12795 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12796 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12797 then :
12798 INTELCC="yes"
12799 else $as_nop
12800 INTELCC="no"
12801 fi
12802 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12803 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12804 then :
12805 SUNCC="yes"
12806 else $as_nop
12807 SUNCC="no"
12808 fi
12809
12810
12811
12812
12813
12814
12815
12816
12817 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12818 if test -n "$ac_tool_prefix"; then
12819 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12820 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 printf %s "checking for $ac_word... " >&6; }
12823 if test ${ac_cv_path_PKG_CONFIG+y}
12824 then :
12825 printf %s "(cached) " >&6
12826 else $as_nop
12827 case $PKG_CONFIG in
12828 [\\/]* | ?:[\\/]*)
12829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12830 ;;
12831 *)
12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12834 do
12835 IFS=$as_save_IFS
12836 case $as_dir in #(((
12837 '') as_dir=./ ;;
12838 */) ;;
12839 *) as_dir=$as_dir/ ;;
12840 esac
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12843 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847 done
12848 done
12849 IFS=$as_save_IFS
12850
12851 ;;
12852 esac
12853 fi
12854 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12855 if test -n "$PKG_CONFIG"; then
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12857 printf "%s\n" "$PKG_CONFIG" >&6; }
12858 else
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 printf "%s\n" "no" >&6; }
12861 fi
12862
12863
12864 fi
12865 if test -z "$ac_cv_path_PKG_CONFIG"; then
12866 ac_pt_PKG_CONFIG=$PKG_CONFIG
12867 # Extract the first word of "pkg-config", so it can be a program name with args.
12868 set dummy pkg-config; ac_word=$2
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 printf %s "checking for $ac_word... " >&6; }
12871 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12872 then :
12873 printf %s "(cached) " >&6
12874 else $as_nop
12875 case $ac_pt_PKG_CONFIG in
12876 [\\/]* | ?:[\\/]*)
12877 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12878 ;;
12879 *)
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883 IFS=$as_save_IFS
12884 case $as_dir in #(((
12885 '') as_dir=./ ;;
12886 */) ;;
12887 *) as_dir=$as_dir/ ;;
12888 esac
12889 for ac_exec_ext in '' $ac_executable_extensions; do
12890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12891 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12893 break 2
12894 fi
12895 done
12896 done
12897 IFS=$as_save_IFS
12898
12899 ;;
12900 esac
12901 fi
12902 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12903 if test -n "$ac_pt_PKG_CONFIG"; then
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12905 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12906 else
12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 printf "%s\n" "no" >&6; }
12909 fi
12910
12911 if test "x$ac_pt_PKG_CONFIG" = x; then
12912 PKG_CONFIG=""
12913 else
12914 case $cross_compiling:$ac_tool_warned in
12915 yes:)
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12918 ac_tool_warned=yes ;;
12919 esac
12920 PKG_CONFIG=$ac_pt_PKG_CONFIG
12921 fi
12922 else
12923 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12924 fi
12925
12926 fi
12927 if test -n "$PKG_CONFIG"; then
12928 _pkg_min_version=0.9.0
12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12930 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12931 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933 printf "%s\n" "yes" >&6; }
12934 else
12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 printf "%s\n" "no" >&6; }
12937 PKG_CONFIG=""
12938 fi
12939 fi
12940
12941
12942
12943
12944
12945 # Check whether --enable-selective-werror was given.
12946 if test ${enable_selective_werror+y}
12947 then :
12948 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12949 else $as_nop
12950 SELECTIVE_WERROR=yes
12951 fi
12952
12953
12954
12955
12956
12957 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12958 if test "x$SUNCC" = "xyes"; then
12959 BASE_CFLAGS="-v"
12960 else
12961 BASE_CFLAGS=""
12962 fi
12963
12964 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978 xorg_testset_save_CFLAGS="$CFLAGS"
12979
12980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12984 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12985 then :
12986 printf %s "(cached) " >&6
12987 else $as_nop
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12990 int i;
12991 _ACEOF
12992 if ac_fn_c_try_compile "$LINENO"
12993 then :
12994 xorg_cv_cc_flag_unknown_warning_option=yes
12995 else $as_nop
12996 xorg_cv_cc_flag_unknown_warning_option=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12999 fi
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13001 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13003 CFLAGS="$xorg_testset_save_CFLAGS"
13004 fi
13005
13006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13009 fi
13010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13012 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13013 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13014 then :
13015 printf %s "(cached) " >&6
13016 else $as_nop
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 int i;
13020 _ACEOF
13021 if ac_fn_c_try_compile "$LINENO"
13022 then :
13023 xorg_cv_cc_flag_unused_command_line_argument=yes
13024 else $as_nop
13025 xorg_cv_cc_flag_unused_command_line_argument=no
13026 fi
13027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13028 fi
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13030 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13032 CFLAGS="$xorg_testset_save_CFLAGS"
13033 fi
13034
13035 found="no"
13036
13037 if test $found = "no" ; then
13038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13040 fi
13041
13042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13044 fi
13045
13046 CFLAGS="$CFLAGS -Wall"
13047
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13049 printf %s "checking if $CC supports -Wall... " >&6; }
13050 cacheid=xorg_cv_cc_flag__Wall
13051 if eval test \${$cacheid+y}
13052 then :
13053 printf %s "(cached) " >&6
13054 else $as_nop
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 int i;
13058 int
13059 main (void)
13060 {
13061
13062 ;
13063 return 0;
13064 }
13065 _ACEOF
13066 if ac_fn_c_try_link "$LINENO"
13067 then :
13068 eval $cacheid=yes
13069 else $as_nop
13070 eval $cacheid=no
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13073 conftest$ac_exeext conftest.$ac_ext
13074 fi
13075
13076
13077 CFLAGS="$xorg_testset_save_CFLAGS"
13078
13079 eval supported=\$$cacheid
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13081 printf "%s\n" "$supported" >&6; }
13082 if test "$supported" = "yes" ; then
13083 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13084 found="yes"
13085 fi
13086 fi
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102 xorg_testset_save_CFLAGS="$CFLAGS"
13103
13104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13108 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13109 then :
13110 printf %s "(cached) " >&6
13111 else $as_nop
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 int i;
13115 _ACEOF
13116 if ac_fn_c_try_compile "$LINENO"
13117 then :
13118 xorg_cv_cc_flag_unknown_warning_option=yes
13119 else $as_nop
13120 xorg_cv_cc_flag_unknown_warning_option=no
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13123 fi
13124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13125 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13127 CFLAGS="$xorg_testset_save_CFLAGS"
13128 fi
13129
13130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13133 fi
13134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13136 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13137 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13138 then :
13139 printf %s "(cached) " >&6
13140 else $as_nop
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 int i;
13144 _ACEOF
13145 if ac_fn_c_try_compile "$LINENO"
13146 then :
13147 xorg_cv_cc_flag_unused_command_line_argument=yes
13148 else $as_nop
13149 xorg_cv_cc_flag_unused_command_line_argument=no
13150 fi
13151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13152 fi
13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13156 CFLAGS="$xorg_testset_save_CFLAGS"
13157 fi
13158
13159 found="no"
13160
13161 if test $found = "no" ; then
13162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13164 fi
13165
13166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13168 fi
13169
13170 CFLAGS="$CFLAGS -Wpointer-arith"
13171
13172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13173 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13174 cacheid=xorg_cv_cc_flag__Wpointer_arith
13175 if eval test \${$cacheid+y}
13176 then :
13177 printf %s "(cached) " >&6
13178 else $as_nop
13179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180 /* end confdefs.h. */
13181 int i;
13182 int
13183 main (void)
13184 {
13185
13186 ;
13187 return 0;
13188 }
13189 _ACEOF
13190 if ac_fn_c_try_link "$LINENO"
13191 then :
13192 eval $cacheid=yes
13193 else $as_nop
13194 eval $cacheid=no
13195 fi
13196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13197 conftest$ac_exeext conftest.$ac_ext
13198 fi
13199
13200
13201 CFLAGS="$xorg_testset_save_CFLAGS"
13202
13203 eval supported=\$$cacheid
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13205 printf "%s\n" "$supported" >&6; }
13206 if test "$supported" = "yes" ; then
13207 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13208 found="yes"
13209 fi
13210 fi
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226 xorg_testset_save_CFLAGS="$CFLAGS"
13227
13228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13232 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13233 then :
13234 printf %s "(cached) " >&6
13235 else $as_nop
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 int i;
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"
13241 then :
13242 xorg_cv_cc_flag_unknown_warning_option=yes
13243 else $as_nop
13244 xorg_cv_cc_flag_unknown_warning_option=no
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13247 fi
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13249 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13251 CFLAGS="$xorg_testset_save_CFLAGS"
13252 fi
13253
13254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13257 fi
13258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13260 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13261 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13262 then :
13263 printf %s "(cached) " >&6
13264 else $as_nop
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267 int i;
13268 _ACEOF
13269 if ac_fn_c_try_compile "$LINENO"
13270 then :
13271 xorg_cv_cc_flag_unused_command_line_argument=yes
13272 else $as_nop
13273 xorg_cv_cc_flag_unused_command_line_argument=no
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13276 fi
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13280 CFLAGS="$xorg_testset_save_CFLAGS"
13281 fi
13282
13283 found="no"
13284
13285 if test $found = "no" ; then
13286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13288 fi
13289
13290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13292 fi
13293
13294 CFLAGS="$CFLAGS -Wmissing-declarations"
13295
13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13297 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13298 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13299 if eval test \${$cacheid+y}
13300 then :
13301 printf %s "(cached) " >&6
13302 else $as_nop
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 int i;
13306 int
13307 main (void)
13308 {
13309
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"
13315 then :
13316 eval $cacheid=yes
13317 else $as_nop
13318 eval $cacheid=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13321 conftest$ac_exeext conftest.$ac_ext
13322 fi
13323
13324
13325 CFLAGS="$xorg_testset_save_CFLAGS"
13326
13327 eval supported=\$$cacheid
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13329 printf "%s\n" "$supported" >&6; }
13330 if test "$supported" = "yes" ; then
13331 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13332 found="yes"
13333 fi
13334 fi
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350 xorg_testset_save_CFLAGS="$CFLAGS"
13351
13352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13355 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13356 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13357 then :
13358 printf %s "(cached) " >&6
13359 else $as_nop
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 int i;
13363 _ACEOF
13364 if ac_fn_c_try_compile "$LINENO"
13365 then :
13366 xorg_cv_cc_flag_unknown_warning_option=yes
13367 else $as_nop
13368 xorg_cv_cc_flag_unknown_warning_option=no
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13371 fi
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13373 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13375 CFLAGS="$xorg_testset_save_CFLAGS"
13376 fi
13377
13378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13381 fi
13382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13384 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13385 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13386 then :
13387 printf %s "(cached) " >&6
13388 else $as_nop
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391 int i;
13392 _ACEOF
13393 if ac_fn_c_try_compile "$LINENO"
13394 then :
13395 xorg_cv_cc_flag_unused_command_line_argument=yes
13396 else $as_nop
13397 xorg_cv_cc_flag_unused_command_line_argument=no
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13400 fi
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13402 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13404 CFLAGS="$xorg_testset_save_CFLAGS"
13405 fi
13406
13407 found="no"
13408
13409 if test $found = "no" ; then
13410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13412 fi
13413
13414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13416 fi
13417
13418 CFLAGS="$CFLAGS -Wformat=2"
13419
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13421 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13422 cacheid=xorg_cv_cc_flag__Wformat_2
13423 if eval test \${$cacheid+y}
13424 then :
13425 printf %s "(cached) " >&6
13426 else $as_nop
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 int i;
13430 int
13431 main (void)
13432 {
13433
13434 ;
13435 return 0;
13436 }
13437 _ACEOF
13438 if ac_fn_c_try_link "$LINENO"
13439 then :
13440 eval $cacheid=yes
13441 else $as_nop
13442 eval $cacheid=no
13443 fi
13444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13445 conftest$ac_exeext conftest.$ac_ext
13446 fi
13447
13448
13449 CFLAGS="$xorg_testset_save_CFLAGS"
13450
13451 eval supported=\$$cacheid
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13453 printf "%s\n" "$supported" >&6; }
13454 if test "$supported" = "yes" ; then
13455 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13456 found="yes"
13457 fi
13458 fi
13459
13460 if test $found = "no" ; then
13461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13463 fi
13464
13465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13467 fi
13468
13469 CFLAGS="$CFLAGS -Wformat"
13470
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13472 printf %s "checking if $CC supports -Wformat... " >&6; }
13473 cacheid=xorg_cv_cc_flag__Wformat
13474 if eval test \${$cacheid+y}
13475 then :
13476 printf %s "(cached) " >&6
13477 else $as_nop
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 int i;
13481 int
13482 main (void)
13483 {
13484
13485 ;
13486 return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"
13490 then :
13491 eval $cacheid=yes
13492 else $as_nop
13493 eval $cacheid=no
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13496 conftest$ac_exeext conftest.$ac_ext
13497 fi
13498
13499
13500 CFLAGS="$xorg_testset_save_CFLAGS"
13501
13502 eval supported=\$$cacheid
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13504 printf "%s\n" "$supported" >&6; }
13505 if test "$supported" = "yes" ; then
13506 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13507 found="yes"
13508 fi
13509 fi
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527 xorg_testset_save_CFLAGS="$CFLAGS"
13528
13529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13532 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13533 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13534 then :
13535 printf %s "(cached) " >&6
13536 else $as_nop
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539 int i;
13540 _ACEOF
13541 if ac_fn_c_try_compile "$LINENO"
13542 then :
13543 xorg_cv_cc_flag_unknown_warning_option=yes
13544 else $as_nop
13545 xorg_cv_cc_flag_unknown_warning_option=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13548 fi
13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13550 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13552 CFLAGS="$xorg_testset_save_CFLAGS"
13553 fi
13554
13555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13558 fi
13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13563 then :
13564 printf %s "(cached) " >&6
13565 else $as_nop
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 int i;
13569 _ACEOF
13570 if ac_fn_c_try_compile "$LINENO"
13571 then :
13572 xorg_cv_cc_flag_unused_command_line_argument=yes
13573 else $as_nop
13574 xorg_cv_cc_flag_unused_command_line_argument=no
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13577 fi
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13581 CFLAGS="$xorg_testset_save_CFLAGS"
13582 fi
13583
13584 found="no"
13585
13586 if test $found = "no" ; then
13587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13589 fi
13590
13591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13593 fi
13594
13595 CFLAGS="$CFLAGS -Wstrict-prototypes"
13596
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13598 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13599 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13600 if eval test \${$cacheid+y}
13601 then :
13602 printf %s "(cached) " >&6
13603 else $as_nop
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 int i;
13607 int
13608 main (void)
13609 {
13610
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"
13616 then :
13617 eval $cacheid=yes
13618 else $as_nop
13619 eval $cacheid=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13622 conftest$ac_exeext conftest.$ac_ext
13623 fi
13624
13625
13626 CFLAGS="$xorg_testset_save_CFLAGS"
13627
13628 eval supported=\$$cacheid
13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13630 printf "%s\n" "$supported" >&6; }
13631 if test "$supported" = "yes" ; then
13632 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13633 found="yes"
13634 fi
13635 fi
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651 xorg_testset_save_CFLAGS="$CFLAGS"
13652
13653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13656 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13657 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13658 then :
13659 printf %s "(cached) " >&6
13660 else $as_nop
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 int i;
13664 _ACEOF
13665 if ac_fn_c_try_compile "$LINENO"
13666 then :
13667 xorg_cv_cc_flag_unknown_warning_option=yes
13668 else $as_nop
13669 xorg_cv_cc_flag_unknown_warning_option=no
13670 fi
13671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13672 fi
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13674 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13676 CFLAGS="$xorg_testset_save_CFLAGS"
13677 fi
13678
13679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13682 fi
13683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13685 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13686 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13687 then :
13688 printf %s "(cached) " >&6
13689 else $as_nop
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 int i;
13693 _ACEOF
13694 if ac_fn_c_try_compile "$LINENO"
13695 then :
13696 xorg_cv_cc_flag_unused_command_line_argument=yes
13697 else $as_nop
13698 xorg_cv_cc_flag_unused_command_line_argument=no
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13701 fi
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13703 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13705 CFLAGS="$xorg_testset_save_CFLAGS"
13706 fi
13707
13708 found="no"
13709
13710 if test $found = "no" ; then
13711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13713 fi
13714
13715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13717 fi
13718
13719 CFLAGS="$CFLAGS -Wmissing-prototypes"
13720
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13722 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13723 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13724 if eval test \${$cacheid+y}
13725 then :
13726 printf %s "(cached) " >&6
13727 else $as_nop
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 int i;
13731 int
13732 main (void)
13733 {
13734
13735 ;
13736 return 0;
13737 }
13738 _ACEOF
13739 if ac_fn_c_try_link "$LINENO"
13740 then :
13741 eval $cacheid=yes
13742 else $as_nop
13743 eval $cacheid=no
13744 fi
13745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13746 conftest$ac_exeext conftest.$ac_ext
13747 fi
13748
13749
13750 CFLAGS="$xorg_testset_save_CFLAGS"
13751
13752 eval supported=\$$cacheid
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13754 printf "%s\n" "$supported" >&6; }
13755 if test "$supported" = "yes" ; then
13756 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13757 found="yes"
13758 fi
13759 fi
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775 xorg_testset_save_CFLAGS="$CFLAGS"
13776
13777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13780 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13781 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13782 then :
13783 printf %s "(cached) " >&6
13784 else $as_nop
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 int i;
13788 _ACEOF
13789 if ac_fn_c_try_compile "$LINENO"
13790 then :
13791 xorg_cv_cc_flag_unknown_warning_option=yes
13792 else $as_nop
13793 xorg_cv_cc_flag_unknown_warning_option=no
13794 fi
13795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13796 fi
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13798 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13800 CFLAGS="$xorg_testset_save_CFLAGS"
13801 fi
13802
13803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13806 fi
13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13809 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13810 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13811 then :
13812 printf %s "(cached) " >&6
13813 else $as_nop
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 int i;
13817 _ACEOF
13818 if ac_fn_c_try_compile "$LINENO"
13819 then :
13820 xorg_cv_cc_flag_unused_command_line_argument=yes
13821 else $as_nop
13822 xorg_cv_cc_flag_unused_command_line_argument=no
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13825 fi
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13827 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13829 CFLAGS="$xorg_testset_save_CFLAGS"
13830 fi
13831
13832 found="no"
13833
13834 if test $found = "no" ; then
13835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837 fi
13838
13839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13841 fi
13842
13843 CFLAGS="$CFLAGS -Wnested-externs"
13844
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13846 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13847 cacheid=xorg_cv_cc_flag__Wnested_externs
13848 if eval test \${$cacheid+y}
13849 then :
13850 printf %s "(cached) " >&6
13851 else $as_nop
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 int i;
13855 int
13856 main (void)
13857 {
13858
13859 ;
13860 return 0;
13861 }
13862 _ACEOF
13863 if ac_fn_c_try_link "$LINENO"
13864 then :
13865 eval $cacheid=yes
13866 else $as_nop
13867 eval $cacheid=no
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13870 conftest$ac_exeext conftest.$ac_ext
13871 fi
13872
13873
13874 CFLAGS="$xorg_testset_save_CFLAGS"
13875
13876 eval supported=\$$cacheid
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13878 printf "%s\n" "$supported" >&6; }
13879 if test "$supported" = "yes" ; then
13880 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13881 found="yes"
13882 fi
13883 fi
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899 xorg_testset_save_CFLAGS="$CFLAGS"
13900
13901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13904 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13905 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13906 then :
13907 printf %s "(cached) " >&6
13908 else $as_nop
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 int i;
13912 _ACEOF
13913 if ac_fn_c_try_compile "$LINENO"
13914 then :
13915 xorg_cv_cc_flag_unknown_warning_option=yes
13916 else $as_nop
13917 xorg_cv_cc_flag_unknown_warning_option=no
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13920 fi
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13922 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13924 CFLAGS="$xorg_testset_save_CFLAGS"
13925 fi
13926
13927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930 fi
13931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13935 then :
13936 printf %s "(cached) " >&6
13937 else $as_nop
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 int i;
13941 _ACEOF
13942 if ac_fn_c_try_compile "$LINENO"
13943 then :
13944 xorg_cv_cc_flag_unused_command_line_argument=yes
13945 else $as_nop
13946 xorg_cv_cc_flag_unused_command_line_argument=no
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13949 fi
13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13953 CFLAGS="$xorg_testset_save_CFLAGS"
13954 fi
13955
13956 found="no"
13957
13958 if test $found = "no" ; then
13959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13961 fi
13962
13963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13965 fi
13966
13967 CFLAGS="$CFLAGS -Wbad-function-cast"
13968
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13970 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13971 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13972 if eval test \${$cacheid+y}
13973 then :
13974 printf %s "(cached) " >&6
13975 else $as_nop
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978 int i;
13979 int
13980 main (void)
13981 {
13982
13983 ;
13984 return 0;
13985 }
13986 _ACEOF
13987 if ac_fn_c_try_link "$LINENO"
13988 then :
13989 eval $cacheid=yes
13990 else $as_nop
13991 eval $cacheid=no
13992 fi
13993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13994 conftest$ac_exeext conftest.$ac_ext
13995 fi
13996
13997
13998 CFLAGS="$xorg_testset_save_CFLAGS"
13999
14000 eval supported=\$$cacheid
14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14002 printf "%s\n" "$supported" >&6; }
14003 if test "$supported" = "yes" ; then
14004 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14005 found="yes"
14006 fi
14007 fi
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023 xorg_testset_save_CFLAGS="$CFLAGS"
14024
14025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14028 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14029 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14030 then :
14031 printf %s "(cached) " >&6
14032 else $as_nop
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 int i;
14036 _ACEOF
14037 if ac_fn_c_try_compile "$LINENO"
14038 then :
14039 xorg_cv_cc_flag_unknown_warning_option=yes
14040 else $as_nop
14041 xorg_cv_cc_flag_unknown_warning_option=no
14042 fi
14043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14044 fi
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14046 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14048 CFLAGS="$xorg_testset_save_CFLAGS"
14049 fi
14050
14051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14054 fi
14055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14057 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14058 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14059 then :
14060 printf %s "(cached) " >&6
14061 else $as_nop
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14064 int i;
14065 _ACEOF
14066 if ac_fn_c_try_compile "$LINENO"
14067 then :
14068 xorg_cv_cc_flag_unused_command_line_argument=yes
14069 else $as_nop
14070 xorg_cv_cc_flag_unused_command_line_argument=no
14071 fi
14072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14073 fi
14074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14077 CFLAGS="$xorg_testset_save_CFLAGS"
14078 fi
14079
14080 found="no"
14081
14082 if test $found = "no" ; then
14083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14085 fi
14086
14087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14089 fi
14090
14091 CFLAGS="$CFLAGS -Wold-style-definition"
14092
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14094 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14095 cacheid=xorg_cv_cc_flag__Wold_style_definition
14096 if eval test \${$cacheid+y}
14097 then :
14098 printf %s "(cached) " >&6
14099 else $as_nop
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 int i;
14103 int
14104 main (void)
14105 {
14106
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_link "$LINENO"
14112 then :
14113 eval $cacheid=yes
14114 else $as_nop
14115 eval $cacheid=no
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14118 conftest$ac_exeext conftest.$ac_ext
14119 fi
14120
14121
14122 CFLAGS="$xorg_testset_save_CFLAGS"
14123
14124 eval supported=\$$cacheid
14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126 printf "%s\n" "$supported" >&6; }
14127 if test "$supported" = "yes" ; then
14128 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14129 found="yes"
14130 fi
14131 fi
14132
14133 if test $found = "no" ; then
14134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14136 fi
14137
14138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14140 fi
14141
14142 CFLAGS="$CFLAGS -fd"
14143
14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14145 printf %s "checking if $CC supports -fd... " >&6; }
14146 cacheid=xorg_cv_cc_flag__fd
14147 if eval test \${$cacheid+y}
14148 then :
14149 printf %s "(cached) " >&6
14150 else $as_nop
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 int i;
14154 int
14155 main (void)
14156 {
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_link "$LINENO"
14163 then :
14164 eval $cacheid=yes
14165 else $as_nop
14166 eval $cacheid=no
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14169 conftest$ac_exeext conftest.$ac_ext
14170 fi
14171
14172
14173 CFLAGS="$xorg_testset_save_CFLAGS"
14174
14175 eval supported=\$$cacheid
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14177 printf "%s\n" "$supported" >&6; }
14178 if test "$supported" = "yes" ; then
14179 BASE_CFLAGS="$BASE_CFLAGS -fd"
14180 found="yes"
14181 fi
14182 fi
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198 xorg_testset_save_CFLAGS="$CFLAGS"
14199
14200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14203 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14204 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14205 then :
14206 printf %s "(cached) " >&6
14207 else $as_nop
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 int i;
14211 _ACEOF
14212 if ac_fn_c_try_compile "$LINENO"
14213 then :
14214 xorg_cv_cc_flag_unknown_warning_option=yes
14215 else $as_nop
14216 xorg_cv_cc_flag_unknown_warning_option=no
14217 fi
14218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14219 fi
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14221 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14223 CFLAGS="$xorg_testset_save_CFLAGS"
14224 fi
14225
14226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14229 fi
14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14232 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14233 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14234 then :
14235 printf %s "(cached) " >&6
14236 else $as_nop
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239 int i;
14240 _ACEOF
14241 if ac_fn_c_try_compile "$LINENO"
14242 then :
14243 xorg_cv_cc_flag_unused_command_line_argument=yes
14244 else $as_nop
14245 xorg_cv_cc_flag_unused_command_line_argument=no
14246 fi
14247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14248 fi
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14250 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14252 CFLAGS="$xorg_testset_save_CFLAGS"
14253 fi
14254
14255 found="no"
14256
14257 if test $found = "no" ; then
14258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14260 fi
14261
14262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14264 fi
14265
14266 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14267
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14269 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14270 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14271 if eval test \${$cacheid+y}
14272 then :
14273 printf %s "(cached) " >&6
14274 else $as_nop
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 int i;
14278 int
14279 main (void)
14280 {
14281
14282 ;
14283 return 0;
14284 }
14285 _ACEOF
14286 if ac_fn_c_try_link "$LINENO"
14287 then :
14288 eval $cacheid=yes
14289 else $as_nop
14290 eval $cacheid=no
14291 fi
14292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14293 conftest$ac_exeext conftest.$ac_ext
14294 fi
14295
14296
14297 CFLAGS="$xorg_testset_save_CFLAGS"
14298
14299 eval supported=\$$cacheid
14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14301 printf "%s\n" "$supported" >&6; }
14302 if test "$supported" = "yes" ; then
14303 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14304 found="yes"
14305 fi
14306 fi
14307
14308
14309
14310
14311
14312 # This chunk adds additional warnings that could catch undesired effects.
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326 xorg_testset_save_CFLAGS="$CFLAGS"
14327
14328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14331 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14332 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14333 then :
14334 printf %s "(cached) " >&6
14335 else $as_nop
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 int i;
14339 _ACEOF
14340 if ac_fn_c_try_compile "$LINENO"
14341 then :
14342 xorg_cv_cc_flag_unknown_warning_option=yes
14343 else $as_nop
14344 xorg_cv_cc_flag_unknown_warning_option=no
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14347 fi
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14349 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14351 CFLAGS="$xorg_testset_save_CFLAGS"
14352 fi
14353
14354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14357 fi
14358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14360 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14361 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14362 then :
14363 printf %s "(cached) " >&6
14364 else $as_nop
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367 int i;
14368 _ACEOF
14369 if ac_fn_c_try_compile "$LINENO"
14370 then :
14371 xorg_cv_cc_flag_unused_command_line_argument=yes
14372 else $as_nop
14373 xorg_cv_cc_flag_unused_command_line_argument=no
14374 fi
14375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14376 fi
14377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14378 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14380 CFLAGS="$xorg_testset_save_CFLAGS"
14381 fi
14382
14383 found="no"
14384
14385 if test $found = "no" ; then
14386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14388 fi
14389
14390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14392 fi
14393
14394 CFLAGS="$CFLAGS -Wunused"
14395
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14397 printf %s "checking if $CC supports -Wunused... " >&6; }
14398 cacheid=xorg_cv_cc_flag__Wunused
14399 if eval test \${$cacheid+y}
14400 then :
14401 printf %s "(cached) " >&6
14402 else $as_nop
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 int i;
14406 int
14407 main (void)
14408 {
14409
14410 ;
14411 return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_link "$LINENO"
14415 then :
14416 eval $cacheid=yes
14417 else $as_nop
14418 eval $cacheid=no
14419 fi
14420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14421 conftest$ac_exeext conftest.$ac_ext
14422 fi
14423
14424
14425 CFLAGS="$xorg_testset_save_CFLAGS"
14426
14427 eval supported=\$$cacheid
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14429 printf "%s\n" "$supported" >&6; }
14430 if test "$supported" = "yes" ; then
14431 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14432 found="yes"
14433 fi
14434 fi
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450 xorg_testset_save_CFLAGS="$CFLAGS"
14451
14452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14455 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14456 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14457 then :
14458 printf %s "(cached) " >&6
14459 else $as_nop
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 int i;
14463 _ACEOF
14464 if ac_fn_c_try_compile "$LINENO"
14465 then :
14466 xorg_cv_cc_flag_unknown_warning_option=yes
14467 else $as_nop
14468 xorg_cv_cc_flag_unknown_warning_option=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14471 fi
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14473 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14475 CFLAGS="$xorg_testset_save_CFLAGS"
14476 fi
14477
14478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481 fi
14482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14484 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14485 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14486 then :
14487 printf %s "(cached) " >&6
14488 else $as_nop
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 int i;
14492 _ACEOF
14493 if ac_fn_c_try_compile "$LINENO"
14494 then :
14495 xorg_cv_cc_flag_unused_command_line_argument=yes
14496 else $as_nop
14497 xorg_cv_cc_flag_unused_command_line_argument=no
14498 fi
14499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14500 fi
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14502 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14504 CFLAGS="$xorg_testset_save_CFLAGS"
14505 fi
14506
14507 found="no"
14508
14509 if test $found = "no" ; then
14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512 fi
14513
14514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516 fi
14517
14518 CFLAGS="$CFLAGS -Wuninitialized"
14519
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14521 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14522 cacheid=xorg_cv_cc_flag__Wuninitialized
14523 if eval test \${$cacheid+y}
14524 then :
14525 printf %s "(cached) " >&6
14526 else $as_nop
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 int i;
14530 int
14531 main (void)
14532 {
14533
14534 ;
14535 return 0;
14536 }
14537 _ACEOF
14538 if ac_fn_c_try_link "$LINENO"
14539 then :
14540 eval $cacheid=yes
14541 else $as_nop
14542 eval $cacheid=no
14543 fi
14544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14545 conftest$ac_exeext conftest.$ac_ext
14546 fi
14547
14548
14549 CFLAGS="$xorg_testset_save_CFLAGS"
14550
14551 eval supported=\$$cacheid
14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14553 printf "%s\n" "$supported" >&6; }
14554 if test "$supported" = "yes" ; then
14555 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14556 found="yes"
14557 fi
14558 fi
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574 xorg_testset_save_CFLAGS="$CFLAGS"
14575
14576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14579 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14580 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14581 then :
14582 printf %s "(cached) " >&6
14583 else $as_nop
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586 int i;
14587 _ACEOF
14588 if ac_fn_c_try_compile "$LINENO"
14589 then :
14590 xorg_cv_cc_flag_unknown_warning_option=yes
14591 else $as_nop
14592 xorg_cv_cc_flag_unknown_warning_option=no
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14595 fi
14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14597 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14599 CFLAGS="$xorg_testset_save_CFLAGS"
14600 fi
14601
14602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14605 fi
14606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14608 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14609 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14610 then :
14611 printf %s "(cached) " >&6
14612 else $as_nop
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 int i;
14616 _ACEOF
14617 if ac_fn_c_try_compile "$LINENO"
14618 then :
14619 xorg_cv_cc_flag_unused_command_line_argument=yes
14620 else $as_nop
14621 xorg_cv_cc_flag_unused_command_line_argument=no
14622 fi
14623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14624 fi
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14626 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14628 CFLAGS="$xorg_testset_save_CFLAGS"
14629 fi
14630
14631 found="no"
14632
14633 if test $found = "no" ; then
14634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14636 fi
14637
14638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14640 fi
14641
14642 CFLAGS="$CFLAGS -Wshadow"
14643
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14645 printf %s "checking if $CC supports -Wshadow... " >&6; }
14646 cacheid=xorg_cv_cc_flag__Wshadow
14647 if eval test \${$cacheid+y}
14648 then :
14649 printf %s "(cached) " >&6
14650 else $as_nop
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653 int i;
14654 int
14655 main (void)
14656 {
14657
14658 ;
14659 return 0;
14660 }
14661 _ACEOF
14662 if ac_fn_c_try_link "$LINENO"
14663 then :
14664 eval $cacheid=yes
14665 else $as_nop
14666 eval $cacheid=no
14667 fi
14668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14669 conftest$ac_exeext conftest.$ac_ext
14670 fi
14671
14672
14673 CFLAGS="$xorg_testset_save_CFLAGS"
14674
14675 eval supported=\$$cacheid
14676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14677 printf "%s\n" "$supported" >&6; }
14678 if test "$supported" = "yes" ; then
14679 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14680 found="yes"
14681 fi
14682 fi
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698 xorg_testset_save_CFLAGS="$CFLAGS"
14699
14700 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14703 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14704 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14705 then :
14706 printf %s "(cached) " >&6
14707 else $as_nop
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 int i;
14711 _ACEOF
14712 if ac_fn_c_try_compile "$LINENO"
14713 then :
14714 xorg_cv_cc_flag_unknown_warning_option=yes
14715 else $as_nop
14716 xorg_cv_cc_flag_unknown_warning_option=no
14717 fi
14718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14719 fi
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14721 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14723 CFLAGS="$xorg_testset_save_CFLAGS"
14724 fi
14725
14726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14729 fi
14730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14732 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14733 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14734 then :
14735 printf %s "(cached) " >&6
14736 else $as_nop
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739 int i;
14740 _ACEOF
14741 if ac_fn_c_try_compile "$LINENO"
14742 then :
14743 xorg_cv_cc_flag_unused_command_line_argument=yes
14744 else $as_nop
14745 xorg_cv_cc_flag_unused_command_line_argument=no
14746 fi
14747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14748 fi
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14750 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14752 CFLAGS="$xorg_testset_save_CFLAGS"
14753 fi
14754
14755 found="no"
14756
14757 if test $found = "no" ; then
14758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14760 fi
14761
14762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14764 fi
14765
14766 CFLAGS="$CFLAGS -Wmissing-noreturn"
14767
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14769 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14770 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14771 if eval test \${$cacheid+y}
14772 then :
14773 printf %s "(cached) " >&6
14774 else $as_nop
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14777 int i;
14778 int
14779 main (void)
14780 {
14781
14782 ;
14783 return 0;
14784 }
14785 _ACEOF
14786 if ac_fn_c_try_link "$LINENO"
14787 then :
14788 eval $cacheid=yes
14789 else $as_nop
14790 eval $cacheid=no
14791 fi
14792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14793 conftest$ac_exeext conftest.$ac_ext
14794 fi
14795
14796
14797 CFLAGS="$xorg_testset_save_CFLAGS"
14798
14799 eval supported=\$$cacheid
14800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14801 printf "%s\n" "$supported" >&6; }
14802 if test "$supported" = "yes" ; then
14803 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14804 found="yes"
14805 fi
14806 fi
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822 xorg_testset_save_CFLAGS="$CFLAGS"
14823
14824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14828 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14829 then :
14830 printf %s "(cached) " >&6
14831 else $as_nop
14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14834 int i;
14835 _ACEOF
14836 if ac_fn_c_try_compile "$LINENO"
14837 then :
14838 xorg_cv_cc_flag_unknown_warning_option=yes
14839 else $as_nop
14840 xorg_cv_cc_flag_unknown_warning_option=no
14841 fi
14842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14843 fi
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14845 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14847 CFLAGS="$xorg_testset_save_CFLAGS"
14848 fi
14849
14850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14853 fi
14854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14856 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14857 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14858 then :
14859 printf %s "(cached) " >&6
14860 else $as_nop
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 int i;
14864 _ACEOF
14865 if ac_fn_c_try_compile "$LINENO"
14866 then :
14867 xorg_cv_cc_flag_unused_command_line_argument=yes
14868 else $as_nop
14869 xorg_cv_cc_flag_unused_command_line_argument=no
14870 fi
14871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14872 fi
14873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14874 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14876 CFLAGS="$xorg_testset_save_CFLAGS"
14877 fi
14878
14879 found="no"
14880
14881 if test $found = "no" ; then
14882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14884 fi
14885
14886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14888 fi
14889
14890 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14891
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14893 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14894 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14895 if eval test \${$cacheid+y}
14896 then :
14897 printf %s "(cached) " >&6
14898 else $as_nop
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901 int i;
14902 int
14903 main (void)
14904 {
14905
14906 ;
14907 return 0;
14908 }
14909 _ACEOF
14910 if ac_fn_c_try_link "$LINENO"
14911 then :
14912 eval $cacheid=yes
14913 else $as_nop
14914 eval $cacheid=no
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14917 conftest$ac_exeext conftest.$ac_ext
14918 fi
14919
14920
14921 CFLAGS="$xorg_testset_save_CFLAGS"
14922
14923 eval supported=\$$cacheid
14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14925 printf "%s\n" "$supported" >&6; }
14926 if test "$supported" = "yes" ; then
14927 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14928 found="yes"
14929 fi
14930 fi
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946 xorg_testset_save_CFLAGS="$CFLAGS"
14947
14948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14952 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14953 then :
14954 printf %s "(cached) " >&6
14955 else $as_nop
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 int i;
14959 _ACEOF
14960 if ac_fn_c_try_compile "$LINENO"
14961 then :
14962 xorg_cv_cc_flag_unknown_warning_option=yes
14963 else $as_nop
14964 xorg_cv_cc_flag_unknown_warning_option=no
14965 fi
14966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14967 fi
14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14969 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14971 CFLAGS="$xorg_testset_save_CFLAGS"
14972 fi
14973
14974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14977 fi
14978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14980 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14981 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14982 then :
14983 printf %s "(cached) " >&6
14984 else $as_nop
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 int i;
14988 _ACEOF
14989 if ac_fn_c_try_compile "$LINENO"
14990 then :
14991 xorg_cv_cc_flag_unused_command_line_argument=yes
14992 else $as_nop
14993 xorg_cv_cc_flag_unused_command_line_argument=no
14994 fi
14995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14996 fi
14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15000 CFLAGS="$xorg_testset_save_CFLAGS"
15001 fi
15002
15003 found="no"
15004
15005 if test $found = "no" ; then
15006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15008 fi
15009
15010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15012 fi
15013
15014 CFLAGS="$CFLAGS -Wredundant-decls"
15015
15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15017 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15018 cacheid=xorg_cv_cc_flag__Wredundant_decls
15019 if eval test \${$cacheid+y}
15020 then :
15021 printf %s "(cached) " >&6
15022 else $as_nop
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025 int i;
15026 int
15027 main (void)
15028 {
15029
15030 ;
15031 return 0;
15032 }
15033 _ACEOF
15034 if ac_fn_c_try_link "$LINENO"
15035 then :
15036 eval $cacheid=yes
15037 else $as_nop
15038 eval $cacheid=no
15039 fi
15040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15041 conftest$ac_exeext conftest.$ac_ext
15042 fi
15043
15044
15045 CFLAGS="$xorg_testset_save_CFLAGS"
15046
15047 eval supported=\$$cacheid
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15049 printf "%s\n" "$supported" >&6; }
15050 if test "$supported" = "yes" ; then
15051 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15052 found="yes"
15053 fi
15054 fi
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070 xorg_testset_save_CFLAGS="$CFLAGS"
15071
15072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15075 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15076 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15077 then :
15078 printf %s "(cached) " >&6
15079 else $as_nop
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082 int i;
15083 _ACEOF
15084 if ac_fn_c_try_compile "$LINENO"
15085 then :
15086 xorg_cv_cc_flag_unknown_warning_option=yes
15087 else $as_nop
15088 xorg_cv_cc_flag_unknown_warning_option=no
15089 fi
15090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15091 fi
15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15093 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15095 CFLAGS="$xorg_testset_save_CFLAGS"
15096 fi
15097
15098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15101 fi
15102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15104 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15105 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15106 then :
15107 printf %s "(cached) " >&6
15108 else $as_nop
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111 int i;
15112 _ACEOF
15113 if ac_fn_c_try_compile "$LINENO"
15114 then :
15115 xorg_cv_cc_flag_unused_command_line_argument=yes
15116 else $as_nop
15117 xorg_cv_cc_flag_unused_command_line_argument=no
15118 fi
15119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15120 fi
15121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15122 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15124 CFLAGS="$xorg_testset_save_CFLAGS"
15125 fi
15126
15127 found="no"
15128
15129 if test $found = "no" ; then
15130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15132 fi
15133
15134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15136 fi
15137
15138 CFLAGS="$CFLAGS -Wlogical-op"
15139
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15141 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15142 cacheid=xorg_cv_cc_flag__Wlogical_op
15143 if eval test \${$cacheid+y}
15144 then :
15145 printf %s "(cached) " >&6
15146 else $as_nop
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15149 int i;
15150 int
15151 main (void)
15152 {
15153
15154 ;
15155 return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_link "$LINENO"
15159 then :
15160 eval $cacheid=yes
15161 else $as_nop
15162 eval $cacheid=no
15163 fi
15164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15165 conftest$ac_exeext conftest.$ac_ext
15166 fi
15167
15168
15169 CFLAGS="$xorg_testset_save_CFLAGS"
15170
15171 eval supported=\$$cacheid
15172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15173 printf "%s\n" "$supported" >&6; }
15174 if test "$supported" = "yes" ; then
15175 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15176 found="yes"
15177 fi
15178 fi
15179
15180
15181
15182 # These are currently disabled because they are noisy. They will be enabled
15183 # in the future once the codebase is sufficiently modernized to silence
15184 # them. For now, I don't want them to drown out the other warnings.
15185 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15186 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15187 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15188
15189 # Turn some warnings into errors, so we don't accidently get successful builds
15190 # when there are problems that should be fixed.
15191
15192 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206 xorg_testset_save_CFLAGS="$CFLAGS"
15207
15208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15213 then :
15214 printf %s "(cached) " >&6
15215 else $as_nop
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15218 int i;
15219 _ACEOF
15220 if ac_fn_c_try_compile "$LINENO"
15221 then :
15222 xorg_cv_cc_flag_unknown_warning_option=yes
15223 else $as_nop
15224 xorg_cv_cc_flag_unknown_warning_option=no
15225 fi
15226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15227 fi
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15229 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15231 CFLAGS="$xorg_testset_save_CFLAGS"
15232 fi
15233
15234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15237 fi
15238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15240 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15241 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15242 then :
15243 printf %s "(cached) " >&6
15244 else $as_nop
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 int i;
15248 _ACEOF
15249 if ac_fn_c_try_compile "$LINENO"
15250 then :
15251 xorg_cv_cc_flag_unused_command_line_argument=yes
15252 else $as_nop
15253 xorg_cv_cc_flag_unused_command_line_argument=no
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15256 fi
15257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15258 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15260 CFLAGS="$xorg_testset_save_CFLAGS"
15261 fi
15262
15263 found="no"
15264
15265 if test $found = "no" ; then
15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268 fi
15269
15270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15272 fi
15273
15274 CFLAGS="$CFLAGS -Werror=implicit"
15275
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15277 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15278 cacheid=xorg_cv_cc_flag__Werror_implicit
15279 if eval test \${$cacheid+y}
15280 then :
15281 printf %s "(cached) " >&6
15282 else $as_nop
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15285 int i;
15286 int
15287 main (void)
15288 {
15289
15290 ;
15291 return 0;
15292 }
15293 _ACEOF
15294 if ac_fn_c_try_link "$LINENO"
15295 then :
15296 eval $cacheid=yes
15297 else $as_nop
15298 eval $cacheid=no
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15301 conftest$ac_exeext conftest.$ac_ext
15302 fi
15303
15304
15305 CFLAGS="$xorg_testset_save_CFLAGS"
15306
15307 eval supported=\$$cacheid
15308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15309 printf "%s\n" "$supported" >&6; }
15310 if test "$supported" = "yes" ; then
15311 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15312 found="yes"
15313 fi
15314 fi
15315
15316 if test $found = "no" ; then
15317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15319 fi
15320
15321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15323 fi
15324
15325 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15326
15327 { 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
15328 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15329 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15330 if eval test \${$cacheid+y}
15331 then :
15332 printf %s "(cached) " >&6
15333 else $as_nop
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335 /* end confdefs.h. */
15336 int i;
15337 int
15338 main (void)
15339 {
15340
15341 ;
15342 return 0;
15343 }
15344 _ACEOF
15345 if ac_fn_c_try_link "$LINENO"
15346 then :
15347 eval $cacheid=yes
15348 else $as_nop
15349 eval $cacheid=no
15350 fi
15351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15352 conftest$ac_exeext conftest.$ac_ext
15353 fi
15354
15355
15356 CFLAGS="$xorg_testset_save_CFLAGS"
15357
15358 eval supported=\$$cacheid
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15360 printf "%s\n" "$supported" >&6; }
15361 if test "$supported" = "yes" ; then
15362 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15363 found="yes"
15364 fi
15365 fi
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381 xorg_testset_save_CFLAGS="$CFLAGS"
15382
15383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15386 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15387 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15388 then :
15389 printf %s "(cached) " >&6
15390 else $as_nop
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 int i;
15394 _ACEOF
15395 if ac_fn_c_try_compile "$LINENO"
15396 then :
15397 xorg_cv_cc_flag_unknown_warning_option=yes
15398 else $as_nop
15399 xorg_cv_cc_flag_unknown_warning_option=no
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15402 fi
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15406 CFLAGS="$xorg_testset_save_CFLAGS"
15407 fi
15408
15409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15412 fi
15413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15417 then :
15418 printf %s "(cached) " >&6
15419 else $as_nop
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422 int i;
15423 _ACEOF
15424 if ac_fn_c_try_compile "$LINENO"
15425 then :
15426 xorg_cv_cc_flag_unused_command_line_argument=yes
15427 else $as_nop
15428 xorg_cv_cc_flag_unused_command_line_argument=no
15429 fi
15430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15431 fi
15432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15433 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15435 CFLAGS="$xorg_testset_save_CFLAGS"
15436 fi
15437
15438 found="no"
15439
15440 if test $found = "no" ; then
15441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15443 fi
15444
15445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15447 fi
15448
15449 CFLAGS="$CFLAGS -Werror=nonnull"
15450
15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15452 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15453 cacheid=xorg_cv_cc_flag__Werror_nonnull
15454 if eval test \${$cacheid+y}
15455 then :
15456 printf %s "(cached) " >&6
15457 else $as_nop
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15460 int i;
15461 int
15462 main (void)
15463 {
15464
15465 ;
15466 return 0;
15467 }
15468 _ACEOF
15469 if ac_fn_c_try_link "$LINENO"
15470 then :
15471 eval $cacheid=yes
15472 else $as_nop
15473 eval $cacheid=no
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15476 conftest$ac_exeext conftest.$ac_ext
15477 fi
15478
15479
15480 CFLAGS="$xorg_testset_save_CFLAGS"
15481
15482 eval supported=\$$cacheid
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15484 printf "%s\n" "$supported" >&6; }
15485 if test "$supported" = "yes" ; then
15486 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15487 found="yes"
15488 fi
15489 fi
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505 xorg_testset_save_CFLAGS="$CFLAGS"
15506
15507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15510 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15511 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15512 then :
15513 printf %s "(cached) " >&6
15514 else $as_nop
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517 int i;
15518 _ACEOF
15519 if ac_fn_c_try_compile "$LINENO"
15520 then :
15521 xorg_cv_cc_flag_unknown_warning_option=yes
15522 else $as_nop
15523 xorg_cv_cc_flag_unknown_warning_option=no
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15526 fi
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15528 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15530 CFLAGS="$xorg_testset_save_CFLAGS"
15531 fi
15532
15533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15536 fi
15537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15539 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15540 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15541 then :
15542 printf %s "(cached) " >&6
15543 else $as_nop
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15546 int i;
15547 _ACEOF
15548 if ac_fn_c_try_compile "$LINENO"
15549 then :
15550 xorg_cv_cc_flag_unused_command_line_argument=yes
15551 else $as_nop
15552 xorg_cv_cc_flag_unused_command_line_argument=no
15553 fi
15554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15555 fi
15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15557 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15559 CFLAGS="$xorg_testset_save_CFLAGS"
15560 fi
15561
15562 found="no"
15563
15564 if test $found = "no" ; then
15565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15567 fi
15568
15569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15571 fi
15572
15573 CFLAGS="$CFLAGS -Werror=init-self"
15574
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15576 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15577 cacheid=xorg_cv_cc_flag__Werror_init_self
15578 if eval test \${$cacheid+y}
15579 then :
15580 printf %s "(cached) " >&6
15581 else $as_nop
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15584 int i;
15585 int
15586 main (void)
15587 {
15588
15589 ;
15590 return 0;
15591 }
15592 _ACEOF
15593 if ac_fn_c_try_link "$LINENO"
15594 then :
15595 eval $cacheid=yes
15596 else $as_nop
15597 eval $cacheid=no
15598 fi
15599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15600 conftest$ac_exeext conftest.$ac_ext
15601 fi
15602
15603
15604 CFLAGS="$xorg_testset_save_CFLAGS"
15605
15606 eval supported=\$$cacheid
15607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15608 printf "%s\n" "$supported" >&6; }
15609 if test "$supported" = "yes" ; then
15610 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15611 found="yes"
15612 fi
15613 fi
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629 xorg_testset_save_CFLAGS="$CFLAGS"
15630
15631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15636 then :
15637 printf %s "(cached) " >&6
15638 else $as_nop
15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641 int i;
15642 _ACEOF
15643 if ac_fn_c_try_compile "$LINENO"
15644 then :
15645 xorg_cv_cc_flag_unknown_warning_option=yes
15646 else $as_nop
15647 xorg_cv_cc_flag_unknown_warning_option=no
15648 fi
15649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15650 fi
15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15652 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15654 CFLAGS="$xorg_testset_save_CFLAGS"
15655 fi
15656
15657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15660 fi
15661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15663 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15664 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15665 then :
15666 printf %s "(cached) " >&6
15667 else $as_nop
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 int i;
15671 _ACEOF
15672 if ac_fn_c_try_compile "$LINENO"
15673 then :
15674 xorg_cv_cc_flag_unused_command_line_argument=yes
15675 else $as_nop
15676 xorg_cv_cc_flag_unused_command_line_argument=no
15677 fi
15678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15679 fi
15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15681 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15683 CFLAGS="$xorg_testset_save_CFLAGS"
15684 fi
15685
15686 found="no"
15687
15688 if test $found = "no" ; then
15689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15691 fi
15692
15693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15695 fi
15696
15697 CFLAGS="$CFLAGS -Werror=main"
15698
15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15700 printf %s "checking if $CC supports -Werror=main... " >&6; }
15701 cacheid=xorg_cv_cc_flag__Werror_main
15702 if eval test \${$cacheid+y}
15703 then :
15704 printf %s "(cached) " >&6
15705 else $as_nop
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 int i;
15709 int
15710 main (void)
15711 {
15712
15713 ;
15714 return 0;
15715 }
15716 _ACEOF
15717 if ac_fn_c_try_link "$LINENO"
15718 then :
15719 eval $cacheid=yes
15720 else $as_nop
15721 eval $cacheid=no
15722 fi
15723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15724 conftest$ac_exeext conftest.$ac_ext
15725 fi
15726
15727
15728 CFLAGS="$xorg_testset_save_CFLAGS"
15729
15730 eval supported=\$$cacheid
15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15732 printf "%s\n" "$supported" >&6; }
15733 if test "$supported" = "yes" ; then
15734 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15735 found="yes"
15736 fi
15737 fi
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753 xorg_testset_save_CFLAGS="$CFLAGS"
15754
15755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15759 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15760 then :
15761 printf %s "(cached) " >&6
15762 else $as_nop
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 int i;
15766 _ACEOF
15767 if ac_fn_c_try_compile "$LINENO"
15768 then :
15769 xorg_cv_cc_flag_unknown_warning_option=yes
15770 else $as_nop
15771 xorg_cv_cc_flag_unknown_warning_option=no
15772 fi
15773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15774 fi
15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15776 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15778 CFLAGS="$xorg_testset_save_CFLAGS"
15779 fi
15780
15781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15784 fi
15785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15787 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15788 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15789 then :
15790 printf %s "(cached) " >&6
15791 else $as_nop
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15794 int i;
15795 _ACEOF
15796 if ac_fn_c_try_compile "$LINENO"
15797 then :
15798 xorg_cv_cc_flag_unused_command_line_argument=yes
15799 else $as_nop
15800 xorg_cv_cc_flag_unused_command_line_argument=no
15801 fi
15802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15803 fi
15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15805 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15807 CFLAGS="$xorg_testset_save_CFLAGS"
15808 fi
15809
15810 found="no"
15811
15812 if test $found = "no" ; then
15813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15815 fi
15816
15817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15819 fi
15820
15821 CFLAGS="$CFLAGS -Werror=missing-braces"
15822
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15824 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15825 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15826 if eval test \${$cacheid+y}
15827 then :
15828 printf %s "(cached) " >&6
15829 else $as_nop
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832 int i;
15833 int
15834 main (void)
15835 {
15836
15837 ;
15838 return 0;
15839 }
15840 _ACEOF
15841 if ac_fn_c_try_link "$LINENO"
15842 then :
15843 eval $cacheid=yes
15844 else $as_nop
15845 eval $cacheid=no
15846 fi
15847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15848 conftest$ac_exeext conftest.$ac_ext
15849 fi
15850
15851
15852 CFLAGS="$xorg_testset_save_CFLAGS"
15853
15854 eval supported=\$$cacheid
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15856 printf "%s\n" "$supported" >&6; }
15857 if test "$supported" = "yes" ; then
15858 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15859 found="yes"
15860 fi
15861 fi
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877 xorg_testset_save_CFLAGS="$CFLAGS"
15878
15879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15882 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15883 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15884 then :
15885 printf %s "(cached) " >&6
15886 else $as_nop
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 int i;
15890 _ACEOF
15891 if ac_fn_c_try_compile "$LINENO"
15892 then :
15893 xorg_cv_cc_flag_unknown_warning_option=yes
15894 else $as_nop
15895 xorg_cv_cc_flag_unknown_warning_option=no
15896 fi
15897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15898 fi
15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15900 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15902 CFLAGS="$xorg_testset_save_CFLAGS"
15903 fi
15904
15905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15908 fi
15909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15911 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15912 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15913 then :
15914 printf %s "(cached) " >&6
15915 else $as_nop
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 int i;
15919 _ACEOF
15920 if ac_fn_c_try_compile "$LINENO"
15921 then :
15922 xorg_cv_cc_flag_unused_command_line_argument=yes
15923 else $as_nop
15924 xorg_cv_cc_flag_unused_command_line_argument=no
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15927 fi
15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15929 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15931 CFLAGS="$xorg_testset_save_CFLAGS"
15932 fi
15933
15934 found="no"
15935
15936 if test $found = "no" ; then
15937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939 fi
15940
15941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15943 fi
15944
15945 CFLAGS="$CFLAGS -Werror=sequence-point"
15946
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15948 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15949 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15950 if eval test \${$cacheid+y}
15951 then :
15952 printf %s "(cached) " >&6
15953 else $as_nop
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 int i;
15957 int
15958 main (void)
15959 {
15960
15961 ;
15962 return 0;
15963 }
15964 _ACEOF
15965 if ac_fn_c_try_link "$LINENO"
15966 then :
15967 eval $cacheid=yes
15968 else $as_nop
15969 eval $cacheid=no
15970 fi
15971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15972 conftest$ac_exeext conftest.$ac_ext
15973 fi
15974
15975
15976 CFLAGS="$xorg_testset_save_CFLAGS"
15977
15978 eval supported=\$$cacheid
15979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15980 printf "%s\n" "$supported" >&6; }
15981 if test "$supported" = "yes" ; then
15982 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15983 found="yes"
15984 fi
15985 fi
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001 xorg_testset_save_CFLAGS="$CFLAGS"
16002
16003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16007 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16008 then :
16009 printf %s "(cached) " >&6
16010 else $as_nop
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 int i;
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"
16016 then :
16017 xorg_cv_cc_flag_unknown_warning_option=yes
16018 else $as_nop
16019 xorg_cv_cc_flag_unknown_warning_option=no
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16022 fi
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16024 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16026 CFLAGS="$xorg_testset_save_CFLAGS"
16027 fi
16028
16029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032 fi
16033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16035 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16036 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16037 then :
16038 printf %s "(cached) " >&6
16039 else $as_nop
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 int i;
16043 _ACEOF
16044 if ac_fn_c_try_compile "$LINENO"
16045 then :
16046 xorg_cv_cc_flag_unused_command_line_argument=yes
16047 else $as_nop
16048 xorg_cv_cc_flag_unused_command_line_argument=no
16049 fi
16050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16051 fi
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16053 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16055 CFLAGS="$xorg_testset_save_CFLAGS"
16056 fi
16057
16058 found="no"
16059
16060 if test $found = "no" ; then
16061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16063 fi
16064
16065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16067 fi
16068
16069 CFLAGS="$CFLAGS -Werror=return-type"
16070
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16072 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16073 cacheid=xorg_cv_cc_flag__Werror_return_type
16074 if eval test \${$cacheid+y}
16075 then :
16076 printf %s "(cached) " >&6
16077 else $as_nop
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080 int i;
16081 int
16082 main (void)
16083 {
16084
16085 ;
16086 return 0;
16087 }
16088 _ACEOF
16089 if ac_fn_c_try_link "$LINENO"
16090 then :
16091 eval $cacheid=yes
16092 else $as_nop
16093 eval $cacheid=no
16094 fi
16095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16096 conftest$ac_exeext conftest.$ac_ext
16097 fi
16098
16099
16100 CFLAGS="$xorg_testset_save_CFLAGS"
16101
16102 eval supported=\$$cacheid
16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16104 printf "%s\n" "$supported" >&6; }
16105 if test "$supported" = "yes" ; then
16106 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16107 found="yes"
16108 fi
16109 fi
16110
16111 if test $found = "no" ; then
16112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16114 fi
16115
16116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16118 fi
16119
16120 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16121
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16123 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16124 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16125 if eval test \${$cacheid+y}
16126 then :
16127 printf %s "(cached) " >&6
16128 else $as_nop
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 int i;
16132 int
16133 main (void)
16134 {
16135
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 if ac_fn_c_try_link "$LINENO"
16141 then :
16142 eval $cacheid=yes
16143 else $as_nop
16144 eval $cacheid=no
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16147 conftest$ac_exeext conftest.$ac_ext
16148 fi
16149
16150
16151 CFLAGS="$xorg_testset_save_CFLAGS"
16152
16153 eval supported=\$$cacheid
16154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16155 printf "%s\n" "$supported" >&6; }
16156 if test "$supported" = "yes" ; then
16157 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16158 found="yes"
16159 fi
16160 fi
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176 xorg_testset_save_CFLAGS="$CFLAGS"
16177
16178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16182 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16183 then :
16184 printf %s "(cached) " >&6
16185 else $as_nop
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 int i;
16189 _ACEOF
16190 if ac_fn_c_try_compile "$LINENO"
16191 then :
16192 xorg_cv_cc_flag_unknown_warning_option=yes
16193 else $as_nop
16194 xorg_cv_cc_flag_unknown_warning_option=no
16195 fi
16196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16197 fi
16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16199 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16201 CFLAGS="$xorg_testset_save_CFLAGS"
16202 fi
16203
16204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16207 fi
16208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16210 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16211 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16212 then :
16213 printf %s "(cached) " >&6
16214 else $as_nop
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16217 int i;
16218 _ACEOF
16219 if ac_fn_c_try_compile "$LINENO"
16220 then :
16221 xorg_cv_cc_flag_unused_command_line_argument=yes
16222 else $as_nop
16223 xorg_cv_cc_flag_unused_command_line_argument=no
16224 fi
16225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16226 fi
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16228 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16230 CFLAGS="$xorg_testset_save_CFLAGS"
16231 fi
16232
16233 found="no"
16234
16235 if test $found = "no" ; then
16236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16238 fi
16239
16240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16242 fi
16243
16244 CFLAGS="$CFLAGS -Werror=trigraphs"
16245
16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16247 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16248 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16249 if eval test \${$cacheid+y}
16250 then :
16251 printf %s "(cached) " >&6
16252 else $as_nop
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 int i;
16256 int
16257 main (void)
16258 {
16259
16260 ;
16261 return 0;
16262 }
16263 _ACEOF
16264 if ac_fn_c_try_link "$LINENO"
16265 then :
16266 eval $cacheid=yes
16267 else $as_nop
16268 eval $cacheid=no
16269 fi
16270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16271 conftest$ac_exeext conftest.$ac_ext
16272 fi
16273
16274
16275 CFLAGS="$xorg_testset_save_CFLAGS"
16276
16277 eval supported=\$$cacheid
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16279 printf "%s\n" "$supported" >&6; }
16280 if test "$supported" = "yes" ; then
16281 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16282 found="yes"
16283 fi
16284 fi
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300 xorg_testset_save_CFLAGS="$CFLAGS"
16301
16302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16306 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16307 then :
16308 printf %s "(cached) " >&6
16309 else $as_nop
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 int i;
16313 _ACEOF
16314 if ac_fn_c_try_compile "$LINENO"
16315 then :
16316 xorg_cv_cc_flag_unknown_warning_option=yes
16317 else $as_nop
16318 xorg_cv_cc_flag_unknown_warning_option=no
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16321 fi
16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16323 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16325 CFLAGS="$xorg_testset_save_CFLAGS"
16326 fi
16327
16328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16331 fi
16332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16334 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16335 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16336 then :
16337 printf %s "(cached) " >&6
16338 else $as_nop
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 int i;
16342 _ACEOF
16343 if ac_fn_c_try_compile "$LINENO"
16344 then :
16345 xorg_cv_cc_flag_unused_command_line_argument=yes
16346 else $as_nop
16347 xorg_cv_cc_flag_unused_command_line_argument=no
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16350 fi
16351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16354 CFLAGS="$xorg_testset_save_CFLAGS"
16355 fi
16356
16357 found="no"
16358
16359 if test $found = "no" ; then
16360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16362 fi
16363
16364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16366 fi
16367
16368 CFLAGS="$CFLAGS -Werror=array-bounds"
16369
16370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16371 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16372 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16373 if eval test \${$cacheid+y}
16374 then :
16375 printf %s "(cached) " >&6
16376 else $as_nop
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 int i;
16380 int
16381 main (void)
16382 {
16383
16384 ;
16385 return 0;
16386 }
16387 _ACEOF
16388 if ac_fn_c_try_link "$LINENO"
16389 then :
16390 eval $cacheid=yes
16391 else $as_nop
16392 eval $cacheid=no
16393 fi
16394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16395 conftest$ac_exeext conftest.$ac_ext
16396 fi
16397
16398
16399 CFLAGS="$xorg_testset_save_CFLAGS"
16400
16401 eval supported=\$$cacheid
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16403 printf "%s\n" "$supported" >&6; }
16404 if test "$supported" = "yes" ; then
16405 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16406 found="yes"
16407 fi
16408 fi
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424 xorg_testset_save_CFLAGS="$CFLAGS"
16425
16426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16429 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16430 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16431 then :
16432 printf %s "(cached) " >&6
16433 else $as_nop
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 int i;
16437 _ACEOF
16438 if ac_fn_c_try_compile "$LINENO"
16439 then :
16440 xorg_cv_cc_flag_unknown_warning_option=yes
16441 else $as_nop
16442 xorg_cv_cc_flag_unknown_warning_option=no
16443 fi
16444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16445 fi
16446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16449 CFLAGS="$xorg_testset_save_CFLAGS"
16450 fi
16451
16452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16455 fi
16456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16460 then :
16461 printf %s "(cached) " >&6
16462 else $as_nop
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16465 int i;
16466 _ACEOF
16467 if ac_fn_c_try_compile "$LINENO"
16468 then :
16469 xorg_cv_cc_flag_unused_command_line_argument=yes
16470 else $as_nop
16471 xorg_cv_cc_flag_unused_command_line_argument=no
16472 fi
16473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16474 fi
16475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16476 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16478 CFLAGS="$xorg_testset_save_CFLAGS"
16479 fi
16480
16481 found="no"
16482
16483 if test $found = "no" ; then
16484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16486 fi
16487
16488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16490 fi
16491
16492 CFLAGS="$CFLAGS -Werror=write-strings"
16493
16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16495 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16496 cacheid=xorg_cv_cc_flag__Werror_write_strings
16497 if eval test \${$cacheid+y}
16498 then :
16499 printf %s "(cached) " >&6
16500 else $as_nop
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 int i;
16504 int
16505 main (void)
16506 {
16507
16508 ;
16509 return 0;
16510 }
16511 _ACEOF
16512 if ac_fn_c_try_link "$LINENO"
16513 then :
16514 eval $cacheid=yes
16515 else $as_nop
16516 eval $cacheid=no
16517 fi
16518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16519 conftest$ac_exeext conftest.$ac_ext
16520 fi
16521
16522
16523 CFLAGS="$xorg_testset_save_CFLAGS"
16524
16525 eval supported=\$$cacheid
16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16527 printf "%s\n" "$supported" >&6; }
16528 if test "$supported" = "yes" ; then
16529 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16530 found="yes"
16531 fi
16532 fi
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548 xorg_testset_save_CFLAGS="$CFLAGS"
16549
16550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16553 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16554 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16555 then :
16556 printf %s "(cached) " >&6
16557 else $as_nop
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16560 int i;
16561 _ACEOF
16562 if ac_fn_c_try_compile "$LINENO"
16563 then :
16564 xorg_cv_cc_flag_unknown_warning_option=yes
16565 else $as_nop
16566 xorg_cv_cc_flag_unknown_warning_option=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16569 fi
16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16571 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16573 CFLAGS="$xorg_testset_save_CFLAGS"
16574 fi
16575
16576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16579 fi
16580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16582 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16583 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16584 then :
16585 printf %s "(cached) " >&6
16586 else $as_nop
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589 int i;
16590 _ACEOF
16591 if ac_fn_c_try_compile "$LINENO"
16592 then :
16593 xorg_cv_cc_flag_unused_command_line_argument=yes
16594 else $as_nop
16595 xorg_cv_cc_flag_unused_command_line_argument=no
16596 fi
16597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16598 fi
16599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16600 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16602 CFLAGS="$xorg_testset_save_CFLAGS"
16603 fi
16604
16605 found="no"
16606
16607 if test $found = "no" ; then
16608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16610 fi
16611
16612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16614 fi
16615
16616 CFLAGS="$CFLAGS -Werror=address"
16617
16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16619 printf %s "checking if $CC supports -Werror=address... " >&6; }
16620 cacheid=xorg_cv_cc_flag__Werror_address
16621 if eval test \${$cacheid+y}
16622 then :
16623 printf %s "(cached) " >&6
16624 else $as_nop
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16627 int i;
16628 int
16629 main (void)
16630 {
16631
16632 ;
16633 return 0;
16634 }
16635 _ACEOF
16636 if ac_fn_c_try_link "$LINENO"
16637 then :
16638 eval $cacheid=yes
16639 else $as_nop
16640 eval $cacheid=no
16641 fi
16642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16643 conftest$ac_exeext conftest.$ac_ext
16644 fi
16645
16646
16647 CFLAGS="$xorg_testset_save_CFLAGS"
16648
16649 eval supported=\$$cacheid
16650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16651 printf "%s\n" "$supported" >&6; }
16652 if test "$supported" = "yes" ; then
16653 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16654 found="yes"
16655 fi
16656 fi
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672 xorg_testset_save_CFLAGS="$CFLAGS"
16673
16674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16677 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16678 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16679 then :
16680 printf %s "(cached) " >&6
16681 else $as_nop
16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h. */
16684 int i;
16685 _ACEOF
16686 if ac_fn_c_try_compile "$LINENO"
16687 then :
16688 xorg_cv_cc_flag_unknown_warning_option=yes
16689 else $as_nop
16690 xorg_cv_cc_flag_unknown_warning_option=no
16691 fi
16692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16693 fi
16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16695 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16697 CFLAGS="$xorg_testset_save_CFLAGS"
16698 fi
16699
16700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16703 fi
16704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16708 then :
16709 printf %s "(cached) " >&6
16710 else $as_nop
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16713 int i;
16714 _ACEOF
16715 if ac_fn_c_try_compile "$LINENO"
16716 then :
16717 xorg_cv_cc_flag_unused_command_line_argument=yes
16718 else $as_nop
16719 xorg_cv_cc_flag_unused_command_line_argument=no
16720 fi
16721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16722 fi
16723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16724 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16726 CFLAGS="$xorg_testset_save_CFLAGS"
16727 fi
16728
16729 found="no"
16730
16731 if test $found = "no" ; then
16732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16734 fi
16735
16736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16738 fi
16739
16740 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16741
16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16743 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16744 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16745 if eval test \${$cacheid+y}
16746 then :
16747 printf %s "(cached) " >&6
16748 else $as_nop
16749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750 /* end confdefs.h. */
16751 int i;
16752 int
16753 main (void)
16754 {
16755
16756 ;
16757 return 0;
16758 }
16759 _ACEOF
16760 if ac_fn_c_try_link "$LINENO"
16761 then :
16762 eval $cacheid=yes
16763 else $as_nop
16764 eval $cacheid=no
16765 fi
16766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16767 conftest$ac_exeext conftest.$ac_ext
16768 fi
16769
16770
16771 CFLAGS="$xorg_testset_save_CFLAGS"
16772
16773 eval supported=\$$cacheid
16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16775 printf "%s\n" "$supported" >&6; }
16776 if test "$supported" = "yes" ; then
16777 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16778 found="yes"
16779 fi
16780 fi
16781
16782 if test $found = "no" ; then
16783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16785 fi
16786
16787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16789 fi
16790
16791 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16792
16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16794 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16795 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16796 if eval test \${$cacheid+y}
16797 then :
16798 printf %s "(cached) " >&6
16799 else $as_nop
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 int i;
16803 int
16804 main (void)
16805 {
16806
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 if ac_fn_c_try_link "$LINENO"
16812 then :
16813 eval $cacheid=yes
16814 else $as_nop
16815 eval $cacheid=no
16816 fi
16817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16818 conftest$ac_exeext conftest.$ac_ext
16819 fi
16820
16821
16822 CFLAGS="$xorg_testset_save_CFLAGS"
16823
16824 eval supported=\$$cacheid
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16826 printf "%s\n" "$supported" >&6; }
16827 if test "$supported" = "yes" ; then
16828 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16829 found="yes"
16830 fi
16831 fi
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847 xorg_testset_save_CFLAGS="$CFLAGS"
16848
16849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16852 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16853 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16854 then :
16855 printf %s "(cached) " >&6
16856 else $as_nop
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 int i;
16860 _ACEOF
16861 if ac_fn_c_try_compile "$LINENO"
16862 then :
16863 xorg_cv_cc_flag_unknown_warning_option=yes
16864 else $as_nop
16865 xorg_cv_cc_flag_unknown_warning_option=no
16866 fi
16867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16868 fi
16869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16870 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16872 CFLAGS="$xorg_testset_save_CFLAGS"
16873 fi
16874
16875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16878 fi
16879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16881 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16882 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16883 then :
16884 printf %s "(cached) " >&6
16885 else $as_nop
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888 int i;
16889 _ACEOF
16890 if ac_fn_c_try_compile "$LINENO"
16891 then :
16892 xorg_cv_cc_flag_unused_command_line_argument=yes
16893 else $as_nop
16894 xorg_cv_cc_flag_unused_command_line_argument=no
16895 fi
16896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16897 fi
16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16901 CFLAGS="$xorg_testset_save_CFLAGS"
16902 fi
16903
16904 found="no"
16905
16906 if test $found = "no" ; then
16907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909 fi
16910
16911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16913 fi
16914
16915 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16916
16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16918 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16919 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16920 if eval test \${$cacheid+y}
16921 then :
16922 printf %s "(cached) " >&6
16923 else $as_nop
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16926 int i;
16927 int
16928 main (void)
16929 {
16930
16931 ;
16932 return 0;
16933 }
16934 _ACEOF
16935 if ac_fn_c_try_link "$LINENO"
16936 then :
16937 eval $cacheid=yes
16938 else $as_nop
16939 eval $cacheid=no
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16942 conftest$ac_exeext conftest.$ac_ext
16943 fi
16944
16945
16946 CFLAGS="$xorg_testset_save_CFLAGS"
16947
16948 eval supported=\$$cacheid
16949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16950 printf "%s\n" "$supported" >&6; }
16951 if test "$supported" = "yes" ; then
16952 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16953 found="yes"
16954 fi
16955 fi
16956
16957 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16958 else
16959 { 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
16960 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;}
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974 xorg_testset_save_CFLAGS="$CFLAGS"
16975
16976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16981 then :
16982 printf %s "(cached) " >&6
16983 else $as_nop
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16986 int i;
16987 _ACEOF
16988 if ac_fn_c_try_compile "$LINENO"
16989 then :
16990 xorg_cv_cc_flag_unknown_warning_option=yes
16991 else $as_nop
16992 xorg_cv_cc_flag_unknown_warning_option=no
16993 fi
16994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16995 fi
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16999 CFLAGS="$xorg_testset_save_CFLAGS"
17000 fi
17001
17002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005 fi
17006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17010 then :
17011 printf %s "(cached) " >&6
17012 else $as_nop
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17015 int i;
17016 _ACEOF
17017 if ac_fn_c_try_compile "$LINENO"
17018 then :
17019 xorg_cv_cc_flag_unused_command_line_argument=yes
17020 else $as_nop
17021 xorg_cv_cc_flag_unused_command_line_argument=no
17022 fi
17023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17024 fi
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17028 CFLAGS="$xorg_testset_save_CFLAGS"
17029 fi
17030
17031 found="no"
17032
17033 if test $found = "no" ; then
17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17036 fi
17037
17038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17040 fi
17041
17042 CFLAGS="$CFLAGS -Wimplicit"
17043
17044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17045 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17046 cacheid=xorg_cv_cc_flag__Wimplicit
17047 if eval test \${$cacheid+y}
17048 then :
17049 printf %s "(cached) " >&6
17050 else $as_nop
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17053 int i;
17054 int
17055 main (void)
17056 {
17057
17058 ;
17059 return 0;
17060 }
17061 _ACEOF
17062 if ac_fn_c_try_link "$LINENO"
17063 then :
17064 eval $cacheid=yes
17065 else $as_nop
17066 eval $cacheid=no
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17069 conftest$ac_exeext conftest.$ac_ext
17070 fi
17071
17072
17073 CFLAGS="$xorg_testset_save_CFLAGS"
17074
17075 eval supported=\$$cacheid
17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17077 printf "%s\n" "$supported" >&6; }
17078 if test "$supported" = "yes" ; then
17079 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17080 found="yes"
17081 fi
17082 fi
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098 xorg_testset_save_CFLAGS="$CFLAGS"
17099
17100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17104 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17105 then :
17106 printf %s "(cached) " >&6
17107 else $as_nop
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17110 int i;
17111 _ACEOF
17112 if ac_fn_c_try_compile "$LINENO"
17113 then :
17114 xorg_cv_cc_flag_unknown_warning_option=yes
17115 else $as_nop
17116 xorg_cv_cc_flag_unknown_warning_option=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17119 fi
17120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17123 CFLAGS="$xorg_testset_save_CFLAGS"
17124 fi
17125
17126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17129 fi
17130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17134 then :
17135 printf %s "(cached) " >&6
17136 else $as_nop
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17139 int i;
17140 _ACEOF
17141 if ac_fn_c_try_compile "$LINENO"
17142 then :
17143 xorg_cv_cc_flag_unused_command_line_argument=yes
17144 else $as_nop
17145 xorg_cv_cc_flag_unused_command_line_argument=no
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17148 fi
17149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17152 CFLAGS="$xorg_testset_save_CFLAGS"
17153 fi
17154
17155 found="no"
17156
17157 if test $found = "no" ; then
17158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17160 fi
17161
17162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17164 fi
17165
17166 CFLAGS="$CFLAGS -Wnonnull"
17167
17168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17169 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17170 cacheid=xorg_cv_cc_flag__Wnonnull
17171 if eval test \${$cacheid+y}
17172 then :
17173 printf %s "(cached) " >&6
17174 else $as_nop
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17177 int i;
17178 int
17179 main (void)
17180 {
17181
17182 ;
17183 return 0;
17184 }
17185 _ACEOF
17186 if ac_fn_c_try_link "$LINENO"
17187 then :
17188 eval $cacheid=yes
17189 else $as_nop
17190 eval $cacheid=no
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17193 conftest$ac_exeext conftest.$ac_ext
17194 fi
17195
17196
17197 CFLAGS="$xorg_testset_save_CFLAGS"
17198
17199 eval supported=\$$cacheid
17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17201 printf "%s\n" "$supported" >&6; }
17202 if test "$supported" = "yes" ; then
17203 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17204 found="yes"
17205 fi
17206 fi
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222 xorg_testset_save_CFLAGS="$CFLAGS"
17223
17224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17228 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17229 then :
17230 printf %s "(cached) " >&6
17231 else $as_nop
17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233 /* end confdefs.h. */
17234 int i;
17235 _ACEOF
17236 if ac_fn_c_try_compile "$LINENO"
17237 then :
17238 xorg_cv_cc_flag_unknown_warning_option=yes
17239 else $as_nop
17240 xorg_cv_cc_flag_unknown_warning_option=no
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17243 fi
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17247 CFLAGS="$xorg_testset_save_CFLAGS"
17248 fi
17249
17250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17253 fi
17254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17258 then :
17259 printf %s "(cached) " >&6
17260 else $as_nop
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17263 int i;
17264 _ACEOF
17265 if ac_fn_c_try_compile "$LINENO"
17266 then :
17267 xorg_cv_cc_flag_unused_command_line_argument=yes
17268 else $as_nop
17269 xorg_cv_cc_flag_unused_command_line_argument=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17272 fi
17273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17276 CFLAGS="$xorg_testset_save_CFLAGS"
17277 fi
17278
17279 found="no"
17280
17281 if test $found = "no" ; then
17282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17284 fi
17285
17286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17288 fi
17289
17290 CFLAGS="$CFLAGS -Winit-self"
17291
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17293 printf %s "checking if $CC supports -Winit-self... " >&6; }
17294 cacheid=xorg_cv_cc_flag__Winit_self
17295 if eval test \${$cacheid+y}
17296 then :
17297 printf %s "(cached) " >&6
17298 else $as_nop
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17301 int i;
17302 int
17303 main (void)
17304 {
17305
17306 ;
17307 return 0;
17308 }
17309 _ACEOF
17310 if ac_fn_c_try_link "$LINENO"
17311 then :
17312 eval $cacheid=yes
17313 else $as_nop
17314 eval $cacheid=no
17315 fi
17316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17317 conftest$ac_exeext conftest.$ac_ext
17318 fi
17319
17320
17321 CFLAGS="$xorg_testset_save_CFLAGS"
17322
17323 eval supported=\$$cacheid
17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17325 printf "%s\n" "$supported" >&6; }
17326 if test "$supported" = "yes" ; then
17327 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17328 found="yes"
17329 fi
17330 fi
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346 xorg_testset_save_CFLAGS="$CFLAGS"
17347
17348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17352 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17353 then :
17354 printf %s "(cached) " >&6
17355 else $as_nop
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h. */
17358 int i;
17359 _ACEOF
17360 if ac_fn_c_try_compile "$LINENO"
17361 then :
17362 xorg_cv_cc_flag_unknown_warning_option=yes
17363 else $as_nop
17364 xorg_cv_cc_flag_unknown_warning_option=no
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17367 fi
17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17371 CFLAGS="$xorg_testset_save_CFLAGS"
17372 fi
17373
17374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17377 fi
17378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17382 then :
17383 printf %s "(cached) " >&6
17384 else $as_nop
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 int i;
17388 _ACEOF
17389 if ac_fn_c_try_compile "$LINENO"
17390 then :
17391 xorg_cv_cc_flag_unused_command_line_argument=yes
17392 else $as_nop
17393 xorg_cv_cc_flag_unused_command_line_argument=no
17394 fi
17395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17396 fi
17397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17400 CFLAGS="$xorg_testset_save_CFLAGS"
17401 fi
17402
17403 found="no"
17404
17405 if test $found = "no" ; then
17406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17408 fi
17409
17410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17412 fi
17413
17414 CFLAGS="$CFLAGS -Wmain"
17415
17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17417 printf %s "checking if $CC supports -Wmain... " >&6; }
17418 cacheid=xorg_cv_cc_flag__Wmain
17419 if eval test \${$cacheid+y}
17420 then :
17421 printf %s "(cached) " >&6
17422 else $as_nop
17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424 /* end confdefs.h. */
17425 int i;
17426 int
17427 main (void)
17428 {
17429
17430 ;
17431 return 0;
17432 }
17433 _ACEOF
17434 if ac_fn_c_try_link "$LINENO"
17435 then :
17436 eval $cacheid=yes
17437 else $as_nop
17438 eval $cacheid=no
17439 fi
17440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17441 conftest$ac_exeext conftest.$ac_ext
17442 fi
17443
17444
17445 CFLAGS="$xorg_testset_save_CFLAGS"
17446
17447 eval supported=\$$cacheid
17448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17449 printf "%s\n" "$supported" >&6; }
17450 if test "$supported" = "yes" ; then
17451 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17452 found="yes"
17453 fi
17454 fi
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470 xorg_testset_save_CFLAGS="$CFLAGS"
17471
17472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17477 then :
17478 printf %s "(cached) " >&6
17479 else $as_nop
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482 int i;
17483 _ACEOF
17484 if ac_fn_c_try_compile "$LINENO"
17485 then :
17486 xorg_cv_cc_flag_unknown_warning_option=yes
17487 else $as_nop
17488 xorg_cv_cc_flag_unknown_warning_option=no
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17491 fi
17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17493 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17495 CFLAGS="$xorg_testset_save_CFLAGS"
17496 fi
17497
17498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17501 fi
17502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17504 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17505 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17506 then :
17507 printf %s "(cached) " >&6
17508 else $as_nop
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511 int i;
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"
17514 then :
17515 xorg_cv_cc_flag_unused_command_line_argument=yes
17516 else $as_nop
17517 xorg_cv_cc_flag_unused_command_line_argument=no
17518 fi
17519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17520 fi
17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17524 CFLAGS="$xorg_testset_save_CFLAGS"
17525 fi
17526
17527 found="no"
17528
17529 if test $found = "no" ; then
17530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17532 fi
17533
17534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17536 fi
17537
17538 CFLAGS="$CFLAGS -Wmissing-braces"
17539
17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17541 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17542 cacheid=xorg_cv_cc_flag__Wmissing_braces
17543 if eval test \${$cacheid+y}
17544 then :
17545 printf %s "(cached) " >&6
17546 else $as_nop
17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17549 int i;
17550 int
17551 main (void)
17552 {
17553
17554 ;
17555 return 0;
17556 }
17557 _ACEOF
17558 if ac_fn_c_try_link "$LINENO"
17559 then :
17560 eval $cacheid=yes
17561 else $as_nop
17562 eval $cacheid=no
17563 fi
17564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17565 conftest$ac_exeext conftest.$ac_ext
17566 fi
17567
17568
17569 CFLAGS="$xorg_testset_save_CFLAGS"
17570
17571 eval supported=\$$cacheid
17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17573 printf "%s\n" "$supported" >&6; }
17574 if test "$supported" = "yes" ; then
17575 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17576 found="yes"
17577 fi
17578 fi
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594 xorg_testset_save_CFLAGS="$CFLAGS"
17595
17596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17600 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17601 then :
17602 printf %s "(cached) " >&6
17603 else $as_nop
17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605 /* end confdefs.h. */
17606 int i;
17607 _ACEOF
17608 if ac_fn_c_try_compile "$LINENO"
17609 then :
17610 xorg_cv_cc_flag_unknown_warning_option=yes
17611 else $as_nop
17612 xorg_cv_cc_flag_unknown_warning_option=no
17613 fi
17614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17615 fi
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17619 CFLAGS="$xorg_testset_save_CFLAGS"
17620 fi
17621
17622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17625 fi
17626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17630 then :
17631 printf %s "(cached) " >&6
17632 else $as_nop
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635 int i;
17636 _ACEOF
17637 if ac_fn_c_try_compile "$LINENO"
17638 then :
17639 xorg_cv_cc_flag_unused_command_line_argument=yes
17640 else $as_nop
17641 xorg_cv_cc_flag_unused_command_line_argument=no
17642 fi
17643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17644 fi
17645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17648 CFLAGS="$xorg_testset_save_CFLAGS"
17649 fi
17650
17651 found="no"
17652
17653 if test $found = "no" ; then
17654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17656 fi
17657
17658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17660 fi
17661
17662 CFLAGS="$CFLAGS -Wsequence-point"
17663
17664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17665 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17666 cacheid=xorg_cv_cc_flag__Wsequence_point
17667 if eval test \${$cacheid+y}
17668 then :
17669 printf %s "(cached) " >&6
17670 else $as_nop
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17673 int i;
17674 int
17675 main (void)
17676 {
17677
17678 ;
17679 return 0;
17680 }
17681 _ACEOF
17682 if ac_fn_c_try_link "$LINENO"
17683 then :
17684 eval $cacheid=yes
17685 else $as_nop
17686 eval $cacheid=no
17687 fi
17688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17689 conftest$ac_exeext conftest.$ac_ext
17690 fi
17691
17692
17693 CFLAGS="$xorg_testset_save_CFLAGS"
17694
17695 eval supported=\$$cacheid
17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17697 printf "%s\n" "$supported" >&6; }
17698 if test "$supported" = "yes" ; then
17699 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17700 found="yes"
17701 fi
17702 fi
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718 xorg_testset_save_CFLAGS="$CFLAGS"
17719
17720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17724 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17725 then :
17726 printf %s "(cached) " >&6
17727 else $as_nop
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17730 int i;
17731 _ACEOF
17732 if ac_fn_c_try_compile "$LINENO"
17733 then :
17734 xorg_cv_cc_flag_unknown_warning_option=yes
17735 else $as_nop
17736 xorg_cv_cc_flag_unknown_warning_option=no
17737 fi
17738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17739 fi
17740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17743 CFLAGS="$xorg_testset_save_CFLAGS"
17744 fi
17745
17746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17749 fi
17750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17754 then :
17755 printf %s "(cached) " >&6
17756 else $as_nop
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17759 int i;
17760 _ACEOF
17761 if ac_fn_c_try_compile "$LINENO"
17762 then :
17763 xorg_cv_cc_flag_unused_command_line_argument=yes
17764 else $as_nop
17765 xorg_cv_cc_flag_unused_command_line_argument=no
17766 fi
17767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17768 fi
17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17772 CFLAGS="$xorg_testset_save_CFLAGS"
17773 fi
17774
17775 found="no"
17776
17777 if test $found = "no" ; then
17778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17780 fi
17781
17782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17784 fi
17785
17786 CFLAGS="$CFLAGS -Wreturn-type"
17787
17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17789 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17790 cacheid=xorg_cv_cc_flag__Wreturn_type
17791 if eval test \${$cacheid+y}
17792 then :
17793 printf %s "(cached) " >&6
17794 else $as_nop
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17797 int i;
17798 int
17799 main (void)
17800 {
17801
17802 ;
17803 return 0;
17804 }
17805 _ACEOF
17806 if ac_fn_c_try_link "$LINENO"
17807 then :
17808 eval $cacheid=yes
17809 else $as_nop
17810 eval $cacheid=no
17811 fi
17812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17813 conftest$ac_exeext conftest.$ac_ext
17814 fi
17815
17816
17817 CFLAGS="$xorg_testset_save_CFLAGS"
17818
17819 eval supported=\$$cacheid
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17821 printf "%s\n" "$supported" >&6; }
17822 if test "$supported" = "yes" ; then
17823 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17824 found="yes"
17825 fi
17826 fi
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842 xorg_testset_save_CFLAGS="$CFLAGS"
17843
17844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17848 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17849 then :
17850 printf %s "(cached) " >&6
17851 else $as_nop
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17854 int i;
17855 _ACEOF
17856 if ac_fn_c_try_compile "$LINENO"
17857 then :
17858 xorg_cv_cc_flag_unknown_warning_option=yes
17859 else $as_nop
17860 xorg_cv_cc_flag_unknown_warning_option=no
17861 fi
17862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17863 fi
17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17865 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17867 CFLAGS="$xorg_testset_save_CFLAGS"
17868 fi
17869
17870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17873 fi
17874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17876 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17877 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17878 then :
17879 printf %s "(cached) " >&6
17880 else $as_nop
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h. */
17883 int i;
17884 _ACEOF
17885 if ac_fn_c_try_compile "$LINENO"
17886 then :
17887 xorg_cv_cc_flag_unused_command_line_argument=yes
17888 else $as_nop
17889 xorg_cv_cc_flag_unused_command_line_argument=no
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17892 fi
17893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17894 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17896 CFLAGS="$xorg_testset_save_CFLAGS"
17897 fi
17898
17899 found="no"
17900
17901 if test $found = "no" ; then
17902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17904 fi
17905
17906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17908 fi
17909
17910 CFLAGS="$CFLAGS -Wtrigraphs"
17911
17912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17913 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17914 cacheid=xorg_cv_cc_flag__Wtrigraphs
17915 if eval test \${$cacheid+y}
17916 then :
17917 printf %s "(cached) " >&6
17918 else $as_nop
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 int i;
17922 int
17923 main (void)
17924 {
17925
17926 ;
17927 return 0;
17928 }
17929 _ACEOF
17930 if ac_fn_c_try_link "$LINENO"
17931 then :
17932 eval $cacheid=yes
17933 else $as_nop
17934 eval $cacheid=no
17935 fi
17936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17937 conftest$ac_exeext conftest.$ac_ext
17938 fi
17939
17940
17941 CFLAGS="$xorg_testset_save_CFLAGS"
17942
17943 eval supported=\$$cacheid
17944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17945 printf "%s\n" "$supported" >&6; }
17946 if test "$supported" = "yes" ; then
17947 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17948 found="yes"
17949 fi
17950 fi
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966 xorg_testset_save_CFLAGS="$CFLAGS"
17967
17968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17973 then :
17974 printf %s "(cached) " >&6
17975 else $as_nop
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17978 int i;
17979 _ACEOF
17980 if ac_fn_c_try_compile "$LINENO"
17981 then :
17982 xorg_cv_cc_flag_unknown_warning_option=yes
17983 else $as_nop
17984 xorg_cv_cc_flag_unknown_warning_option=no
17985 fi
17986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17987 fi
17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17991 CFLAGS="$xorg_testset_save_CFLAGS"
17992 fi
17993
17994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17997 fi
17998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18002 then :
18003 printf %s "(cached) " >&6
18004 else $as_nop
18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h. */
18007 int i;
18008 _ACEOF
18009 if ac_fn_c_try_compile "$LINENO"
18010 then :
18011 xorg_cv_cc_flag_unused_command_line_argument=yes
18012 else $as_nop
18013 xorg_cv_cc_flag_unused_command_line_argument=no
18014 fi
18015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18016 fi
18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18020 CFLAGS="$xorg_testset_save_CFLAGS"
18021 fi
18022
18023 found="no"
18024
18025 if test $found = "no" ; then
18026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18028 fi
18029
18030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18032 fi
18033
18034 CFLAGS="$CFLAGS -Warray-bounds"
18035
18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18037 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18038 cacheid=xorg_cv_cc_flag__Warray_bounds
18039 if eval test \${$cacheid+y}
18040 then :
18041 printf %s "(cached) " >&6
18042 else $as_nop
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18045 int i;
18046 int
18047 main (void)
18048 {
18049
18050 ;
18051 return 0;
18052 }
18053 _ACEOF
18054 if ac_fn_c_try_link "$LINENO"
18055 then :
18056 eval $cacheid=yes
18057 else $as_nop
18058 eval $cacheid=no
18059 fi
18060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18061 conftest$ac_exeext conftest.$ac_ext
18062 fi
18063
18064
18065 CFLAGS="$xorg_testset_save_CFLAGS"
18066
18067 eval supported=\$$cacheid
18068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18069 printf "%s\n" "$supported" >&6; }
18070 if test "$supported" = "yes" ; then
18071 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18072 found="yes"
18073 fi
18074 fi
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090 xorg_testset_save_CFLAGS="$CFLAGS"
18091
18092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18097 then :
18098 printf %s "(cached) " >&6
18099 else $as_nop
18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101 /* end confdefs.h. */
18102 int i;
18103 _ACEOF
18104 if ac_fn_c_try_compile "$LINENO"
18105 then :
18106 xorg_cv_cc_flag_unknown_warning_option=yes
18107 else $as_nop
18108 xorg_cv_cc_flag_unknown_warning_option=no
18109 fi
18110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18111 fi
18112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18115 CFLAGS="$xorg_testset_save_CFLAGS"
18116 fi
18117
18118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18121 fi
18122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18126 then :
18127 printf %s "(cached) " >&6
18128 else $as_nop
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18131 int i;
18132 _ACEOF
18133 if ac_fn_c_try_compile "$LINENO"
18134 then :
18135 xorg_cv_cc_flag_unused_command_line_argument=yes
18136 else $as_nop
18137 xorg_cv_cc_flag_unused_command_line_argument=no
18138 fi
18139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18140 fi
18141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18144 CFLAGS="$xorg_testset_save_CFLAGS"
18145 fi
18146
18147 found="no"
18148
18149 if test $found = "no" ; then
18150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18152 fi
18153
18154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18156 fi
18157
18158 CFLAGS="$CFLAGS -Wwrite-strings"
18159
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18161 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18162 cacheid=xorg_cv_cc_flag__Wwrite_strings
18163 if eval test \${$cacheid+y}
18164 then :
18165 printf %s "(cached) " >&6
18166 else $as_nop
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18169 int i;
18170 int
18171 main (void)
18172 {
18173
18174 ;
18175 return 0;
18176 }
18177 _ACEOF
18178 if ac_fn_c_try_link "$LINENO"
18179 then :
18180 eval $cacheid=yes
18181 else $as_nop
18182 eval $cacheid=no
18183 fi
18184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18185 conftest$ac_exeext conftest.$ac_ext
18186 fi
18187
18188
18189 CFLAGS="$xorg_testset_save_CFLAGS"
18190
18191 eval supported=\$$cacheid
18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18193 printf "%s\n" "$supported" >&6; }
18194 if test "$supported" = "yes" ; then
18195 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18196 found="yes"
18197 fi
18198 fi
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214 xorg_testset_save_CFLAGS="$CFLAGS"
18215
18216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18221 then :
18222 printf %s "(cached) " >&6
18223 else $as_nop
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18226 int i;
18227 _ACEOF
18228 if ac_fn_c_try_compile "$LINENO"
18229 then :
18230 xorg_cv_cc_flag_unknown_warning_option=yes
18231 else $as_nop
18232 xorg_cv_cc_flag_unknown_warning_option=no
18233 fi
18234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18235 fi
18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18239 CFLAGS="$xorg_testset_save_CFLAGS"
18240 fi
18241
18242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18245 fi
18246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18250 then :
18251 printf %s "(cached) " >&6
18252 else $as_nop
18253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18254 /* end confdefs.h. */
18255 int i;
18256 _ACEOF
18257 if ac_fn_c_try_compile "$LINENO"
18258 then :
18259 xorg_cv_cc_flag_unused_command_line_argument=yes
18260 else $as_nop
18261 xorg_cv_cc_flag_unused_command_line_argument=no
18262 fi
18263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18264 fi
18265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18268 CFLAGS="$xorg_testset_save_CFLAGS"
18269 fi
18270
18271 found="no"
18272
18273 if test $found = "no" ; then
18274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18276 fi
18277
18278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18280 fi
18281
18282 CFLAGS="$CFLAGS -Waddress"
18283
18284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18285 printf %s "checking if $CC supports -Waddress... " >&6; }
18286 cacheid=xorg_cv_cc_flag__Waddress
18287 if eval test \${$cacheid+y}
18288 then :
18289 printf %s "(cached) " >&6
18290 else $as_nop
18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h. */
18293 int i;
18294 int
18295 main (void)
18296 {
18297
18298 ;
18299 return 0;
18300 }
18301 _ACEOF
18302 if ac_fn_c_try_link "$LINENO"
18303 then :
18304 eval $cacheid=yes
18305 else $as_nop
18306 eval $cacheid=no
18307 fi
18308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18309 conftest$ac_exeext conftest.$ac_ext
18310 fi
18311
18312
18313 CFLAGS="$xorg_testset_save_CFLAGS"
18314
18315 eval supported=\$$cacheid
18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18317 printf "%s\n" "$supported" >&6; }
18318 if test "$supported" = "yes" ; then
18319 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18320 found="yes"
18321 fi
18322 fi
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338 xorg_testset_save_CFLAGS="$CFLAGS"
18339
18340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18343 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18344 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18345 then :
18346 printf %s "(cached) " >&6
18347 else $as_nop
18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349 /* end confdefs.h. */
18350 int i;
18351 _ACEOF
18352 if ac_fn_c_try_compile "$LINENO"
18353 then :
18354 xorg_cv_cc_flag_unknown_warning_option=yes
18355 else $as_nop
18356 xorg_cv_cc_flag_unknown_warning_option=no
18357 fi
18358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18359 fi
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18363 CFLAGS="$xorg_testset_save_CFLAGS"
18364 fi
18365
18366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18369 fi
18370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18374 then :
18375 printf %s "(cached) " >&6
18376 else $as_nop
18377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h. */
18379 int i;
18380 _ACEOF
18381 if ac_fn_c_try_compile "$LINENO"
18382 then :
18383 xorg_cv_cc_flag_unused_command_line_argument=yes
18384 else $as_nop
18385 xorg_cv_cc_flag_unused_command_line_argument=no
18386 fi
18387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18388 fi
18389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18390 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18392 CFLAGS="$xorg_testset_save_CFLAGS"
18393 fi
18394
18395 found="no"
18396
18397 if test $found = "no" ; then
18398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18400 fi
18401
18402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18404 fi
18405
18406 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18407
18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18409 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18410 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18411 if eval test \${$cacheid+y}
18412 then :
18413 printf %s "(cached) " >&6
18414 else $as_nop
18415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h. */
18417 int i;
18418 int
18419 main (void)
18420 {
18421
18422 ;
18423 return 0;
18424 }
18425 _ACEOF
18426 if ac_fn_c_try_link "$LINENO"
18427 then :
18428 eval $cacheid=yes
18429 else $as_nop
18430 eval $cacheid=no
18431 fi
18432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18433 conftest$ac_exeext conftest.$ac_ext
18434 fi
18435
18436
18437 CFLAGS="$xorg_testset_save_CFLAGS"
18438
18439 eval supported=\$$cacheid
18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18441 printf "%s\n" "$supported" >&6; }
18442 if test "$supported" = "yes" ; then
18443 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18444 found="yes"
18445 fi
18446 fi
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462 xorg_testset_save_CFLAGS="$CFLAGS"
18463
18464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18468 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18469 then :
18470 printf %s "(cached) " >&6
18471 else $as_nop
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18474 int i;
18475 _ACEOF
18476 if ac_fn_c_try_compile "$LINENO"
18477 then :
18478 xorg_cv_cc_flag_unknown_warning_option=yes
18479 else $as_nop
18480 xorg_cv_cc_flag_unknown_warning_option=no
18481 fi
18482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18483 fi
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18487 CFLAGS="$xorg_testset_save_CFLAGS"
18488 fi
18489
18490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18493 fi
18494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18498 then :
18499 printf %s "(cached) " >&6
18500 else $as_nop
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18503 int i;
18504 _ACEOF
18505 if ac_fn_c_try_compile "$LINENO"
18506 then :
18507 xorg_cv_cc_flag_unused_command_line_argument=yes
18508 else $as_nop
18509 xorg_cv_cc_flag_unused_command_line_argument=no
18510 fi
18511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18512 fi
18513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18516 CFLAGS="$xorg_testset_save_CFLAGS"
18517 fi
18518
18519 found="no"
18520
18521 if test $found = "no" ; then
18522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18524 fi
18525
18526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18528 fi
18529
18530 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18531
18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18533 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18534 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18535 if eval test \${$cacheid+y}
18536 then :
18537 printf %s "(cached) " >&6
18538 else $as_nop
18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18541 int i;
18542 int
18543 main (void)
18544 {
18545
18546 ;
18547 return 0;
18548 }
18549 _ACEOF
18550 if ac_fn_c_try_link "$LINENO"
18551 then :
18552 eval $cacheid=yes
18553 else $as_nop
18554 eval $cacheid=no
18555 fi
18556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18557 conftest$ac_exeext conftest.$ac_ext
18558 fi
18559
18560
18561 CFLAGS="$xorg_testset_save_CFLAGS"
18562
18563 eval supported=\$$cacheid
18564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18565 printf "%s\n" "$supported" >&6; }
18566 if test "$supported" = "yes" ; then
18567 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18568 found="yes"
18569 fi
18570 fi
18571
18572
18573 fi
18574
18575
18576
18577
18578
18579
18580
18581 CWARNFLAGS="$BASE_CFLAGS"
18582 if test "x$GCC" = xyes ; then
18583 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18584 fi
18585
18586
18587
18588
18589
18590
18591
18592
18593 # Check whether --enable-strict-compilation was given.
18594 if test ${enable_strict_compilation+y}
18595 then :
18596 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18597 else $as_nop
18598 STRICT_COMPILE=no
18599 fi
18600
18601
18602
18603
18604
18605
18606 STRICT_CFLAGS=""
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620 xorg_testset_save_CFLAGS="$CFLAGS"
18621
18622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18625 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18626 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18627 then :
18628 printf %s "(cached) " >&6
18629 else $as_nop
18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18632 int i;
18633 _ACEOF
18634 if ac_fn_c_try_compile "$LINENO"
18635 then :
18636 xorg_cv_cc_flag_unknown_warning_option=yes
18637 else $as_nop
18638 xorg_cv_cc_flag_unknown_warning_option=no
18639 fi
18640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18641 fi
18642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18645 CFLAGS="$xorg_testset_save_CFLAGS"
18646 fi
18647
18648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18651 fi
18652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18656 then :
18657 printf %s "(cached) " >&6
18658 else $as_nop
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18661 int i;
18662 _ACEOF
18663 if ac_fn_c_try_compile "$LINENO"
18664 then :
18665 xorg_cv_cc_flag_unused_command_line_argument=yes
18666 else $as_nop
18667 xorg_cv_cc_flag_unused_command_line_argument=no
18668 fi
18669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18670 fi
18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18672 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18674 CFLAGS="$xorg_testset_save_CFLAGS"
18675 fi
18676
18677 found="no"
18678
18679 if test $found = "no" ; then
18680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18682 fi
18683
18684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18686 fi
18687
18688 CFLAGS="$CFLAGS -pedantic"
18689
18690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18691 printf %s "checking if $CC supports -pedantic... " >&6; }
18692 cacheid=xorg_cv_cc_flag__pedantic
18693 if eval test \${$cacheid+y}
18694 then :
18695 printf %s "(cached) " >&6
18696 else $as_nop
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h. */
18699 int i;
18700 int
18701 main (void)
18702 {
18703
18704 ;
18705 return 0;
18706 }
18707 _ACEOF
18708 if ac_fn_c_try_link "$LINENO"
18709 then :
18710 eval $cacheid=yes
18711 else $as_nop
18712 eval $cacheid=no
18713 fi
18714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18715 conftest$ac_exeext conftest.$ac_ext
18716 fi
18717
18718
18719 CFLAGS="$xorg_testset_save_CFLAGS"
18720
18721 eval supported=\$$cacheid
18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18723 printf "%s\n" "$supported" >&6; }
18724 if test "$supported" = "yes" ; then
18725 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18726 found="yes"
18727 fi
18728 fi
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744 xorg_testset_save_CFLAGS="$CFLAGS"
18745
18746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18749 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18750 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18751 then :
18752 printf %s "(cached) " >&6
18753 else $as_nop
18754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18755 /* end confdefs.h. */
18756 int i;
18757 _ACEOF
18758 if ac_fn_c_try_compile "$LINENO"
18759 then :
18760 xorg_cv_cc_flag_unknown_warning_option=yes
18761 else $as_nop
18762 xorg_cv_cc_flag_unknown_warning_option=no
18763 fi
18764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18765 fi
18766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18769 CFLAGS="$xorg_testset_save_CFLAGS"
18770 fi
18771
18772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18775 fi
18776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18780 then :
18781 printf %s "(cached) " >&6
18782 else $as_nop
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 int i;
18786 _ACEOF
18787 if ac_fn_c_try_compile "$LINENO"
18788 then :
18789 xorg_cv_cc_flag_unused_command_line_argument=yes
18790 else $as_nop
18791 xorg_cv_cc_flag_unused_command_line_argument=no
18792 fi
18793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18794 fi
18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18796 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18798 CFLAGS="$xorg_testset_save_CFLAGS"
18799 fi
18800
18801 found="no"
18802
18803 if test $found = "no" ; then
18804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18806 fi
18807
18808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18810 fi
18811
18812 CFLAGS="$CFLAGS -Werror"
18813
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18815 printf %s "checking if $CC supports -Werror... " >&6; }
18816 cacheid=xorg_cv_cc_flag__Werror
18817 if eval test \${$cacheid+y}
18818 then :
18819 printf %s "(cached) " >&6
18820 else $as_nop
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18823 int i;
18824 int
18825 main (void)
18826 {
18827
18828 ;
18829 return 0;
18830 }
18831 _ACEOF
18832 if ac_fn_c_try_link "$LINENO"
18833 then :
18834 eval $cacheid=yes
18835 else $as_nop
18836 eval $cacheid=no
18837 fi
18838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18839 conftest$ac_exeext conftest.$ac_ext
18840 fi
18841
18842
18843 CFLAGS="$xorg_testset_save_CFLAGS"
18844
18845 eval supported=\$$cacheid
18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18847 printf "%s\n" "$supported" >&6; }
18848 if test "$supported" = "yes" ; then
18849 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18850 found="yes"
18851 fi
18852 fi
18853
18854 if test $found = "no" ; then
18855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18857 fi
18858
18859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18861 fi
18862
18863 CFLAGS="$CFLAGS -errwarn"
18864
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18866 printf %s "checking if $CC supports -errwarn... " >&6; }
18867 cacheid=xorg_cv_cc_flag__errwarn
18868 if eval test \${$cacheid+y}
18869 then :
18870 printf %s "(cached) " >&6
18871 else $as_nop
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 int i;
18875 int
18876 main (void)
18877 {
18878
18879 ;
18880 return 0;
18881 }
18882 _ACEOF
18883 if ac_fn_c_try_link "$LINENO"
18884 then :
18885 eval $cacheid=yes
18886 else $as_nop
18887 eval $cacheid=no
18888 fi
18889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18890 conftest$ac_exeext conftest.$ac_ext
18891 fi
18892
18893
18894 CFLAGS="$xorg_testset_save_CFLAGS"
18895
18896 eval supported=\$$cacheid
18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18898 printf "%s\n" "$supported" >&6; }
18899 if test "$supported" = "yes" ; then
18900 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18901 found="yes"
18902 fi
18903 fi
18904
18905
18906
18907 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18908 # activate it with -Werror, so we add it here explicitly.
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922 xorg_testset_save_CFLAGS="$CFLAGS"
18923
18924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18927 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18928 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18929 then :
18930 printf %s "(cached) " >&6
18931 else $as_nop
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934 int i;
18935 _ACEOF
18936 if ac_fn_c_try_compile "$LINENO"
18937 then :
18938 xorg_cv_cc_flag_unknown_warning_option=yes
18939 else $as_nop
18940 xorg_cv_cc_flag_unknown_warning_option=no
18941 fi
18942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18943 fi
18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18945 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18947 CFLAGS="$xorg_testset_save_CFLAGS"
18948 fi
18949
18950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18953 fi
18954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18956 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18957 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18958 then :
18959 printf %s "(cached) " >&6
18960 else $as_nop
18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18963 int i;
18964 _ACEOF
18965 if ac_fn_c_try_compile "$LINENO"
18966 then :
18967 xorg_cv_cc_flag_unused_command_line_argument=yes
18968 else $as_nop
18969 xorg_cv_cc_flag_unused_command_line_argument=no
18970 fi
18971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18972 fi
18973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18974 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18976 CFLAGS="$xorg_testset_save_CFLAGS"
18977 fi
18978
18979 found="no"
18980
18981 if test $found = "no" ; then
18982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18984 fi
18985
18986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18988 fi
18989
18990 CFLAGS="$CFLAGS -Werror=attributes"
18991
18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18993 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18994 cacheid=xorg_cv_cc_flag__Werror_attributes
18995 if eval test \${$cacheid+y}
18996 then :
18997 printf %s "(cached) " >&6
18998 else $as_nop
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19001 int i;
19002 int
19003 main (void)
19004 {
19005
19006 ;
19007 return 0;
19008 }
19009 _ACEOF
19010 if ac_fn_c_try_link "$LINENO"
19011 then :
19012 eval $cacheid=yes
19013 else $as_nop
19014 eval $cacheid=no
19015 fi
19016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19017 conftest$ac_exeext conftest.$ac_ext
19018 fi
19019
19020
19021 CFLAGS="$xorg_testset_save_CFLAGS"
19022
19023 eval supported=\$$cacheid
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19025 printf "%s\n" "$supported" >&6; }
19026 if test "$supported" = "yes" ; then
19027 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19028 found="yes"
19029 fi
19030 fi
19031
19032
19033
19034 if test "x$STRICT_COMPILE" = "xyes"; then
19035 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19036 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19037 fi
19038
19039
19040
19041
19042
19043
19044 cat >>confdefs.h <<_ACEOF
19045 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19046 _ACEOF
19047
19048 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19049 if test "x$PVM" = "x"; then
19050 PVM="0"
19051 fi
19052
19053 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19054
19055 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19056 if test "x$PVP" = "x"; then
19057 PVP="0"
19058 fi
19059
19060 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19061
19062
19063
19064 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19065 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19066 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19067 touch \$(top_srcdir)/ChangeLog; \
19068 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19069
19070
19071
19072
19073 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19074 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19075 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19076 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19077 touch \$(top_srcdir)/INSTALL; \
19078 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19079
19080
19081
19082
19083
19084
19085 case $host_os in
19086 solaris*)
19087 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19088 # check for a man page file found in later versions that use
19089 # traditional section numbers instead
19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19091 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19092 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19093 then :
19094 printf %s "(cached) " >&6
19095 else $as_nop
19096 test "$cross_compiling" = yes &&
19097 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19098 if test -r "/usr/share/man/man7/attributes.7"; then
19099 ac_cv_file__usr_share_man_man7_attributes_7=yes
19100 else
19101 ac_cv_file__usr_share_man_man7_attributes_7=no
19102 fi
19103 fi
19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19105 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19106 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19107 then :
19108 SYSV_MAN_SECTIONS=false
19109 else $as_nop
19110 SYSV_MAN_SECTIONS=true
19111 fi
19112
19113 ;;
19114 *) SYSV_MAN_SECTIONS=false ;;
19115 esac
19116
19117 if test x$APP_MAN_SUFFIX = x ; then
19118 APP_MAN_SUFFIX=1
19119 fi
19120 if test x$APP_MAN_DIR = x ; then
19121 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19122 fi
19123
19124 if test x$LIB_MAN_SUFFIX = x ; then
19125 LIB_MAN_SUFFIX=3
19126 fi
19127 if test x$LIB_MAN_DIR = x ; then
19128 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19129 fi
19130
19131 if test x$FILE_MAN_SUFFIX = x ; then
19132 case $SYSV_MAN_SECTIONS in
19133 true) FILE_MAN_SUFFIX=4 ;;
19134 *) FILE_MAN_SUFFIX=5 ;;
19135 esac
19136 fi
19137 if test x$FILE_MAN_DIR = x ; then
19138 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19139 fi
19140
19141 if test x$MISC_MAN_SUFFIX = x ; then
19142 case $SYSV_MAN_SECTIONS in
19143 true) MISC_MAN_SUFFIX=5 ;;
19144 *) MISC_MAN_SUFFIX=7 ;;
19145 esac
19146 fi
19147 if test x$MISC_MAN_DIR = x ; then
19148 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19149 fi
19150
19151 if test x$DRIVER_MAN_SUFFIX = x ; then
19152 case $SYSV_MAN_SECTIONS in
19153 true) DRIVER_MAN_SUFFIX=7 ;;
19154 *) DRIVER_MAN_SUFFIX=4 ;;
19155 esac
19156 fi
19157 if test x$DRIVER_MAN_DIR = x ; then
19158 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19159 fi
19160
19161 if test x$ADMIN_MAN_SUFFIX = x ; then
19162 case $SYSV_MAN_SECTIONS in
19163 true) ADMIN_MAN_SUFFIX=1m ;;
19164 *) ADMIN_MAN_SUFFIX=8 ;;
19165 esac
19166 fi
19167 if test x$ADMIN_MAN_DIR = x ; then
19168 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19169 fi
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185 XORG_MAN_PAGE="X Version 11"
19186
19187 MAN_SUBSTS="\
19188 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19189 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19190 -e 's|__xservername__|Xorg|g' \
19191 -e 's|__xconfigfile__|xorg.conf|g' \
19192 -e 's|__projectroot__|\$(prefix)|g' \
19193 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19194 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19195 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19196 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19197 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19198 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19199 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19200
19201
19202
19203 # Check whether --enable-silent-rules was given.
19204 if test ${enable_silent_rules+y}
19205 then :
19206 enableval=$enable_silent_rules;
19207 fi
19208
19209 case $enable_silent_rules in # (((
19210 yes) AM_DEFAULT_VERBOSITY=0;;
19211 no) AM_DEFAULT_VERBOSITY=1;;
19212 *) AM_DEFAULT_VERBOSITY=0;;
19213 esac
19214 am_make=${MAKE-make}
19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19216 printf %s "checking whether $am_make supports nested variables... " >&6; }
19217 if test ${am_cv_make_support_nested_variables+y}
19218 then :
19219 printf %s "(cached) " >&6
19220 else $as_nop
19221 if printf "%s\n" 'TRUE=$(BAR$(V))
19222 BAR0=false
19223 BAR1=true
19224 V=1
19225 am__doit:
19226 @$(TRUE)
19227 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19228 am_cv_make_support_nested_variables=yes
19229 else
19230 am_cv_make_support_nested_variables=no
19231 fi
19232 fi
19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19234 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19235 if test $am_cv_make_support_nested_variables = yes; then
19236 AM_V='$(V)'
19237 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19238 else
19239 AM_V=$AM_DEFAULT_VERBOSITY
19240 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19241 fi
19242 AM_BACKSLASH='\'
19243
19244
19245
19246 # Checks for library functions.
19247 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19248 if test "x$ac_cv_func_strcasecmp" = xyes
19249 then :
19250 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
19251
19252 fi
19253 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
19254 if test "x$ac_cv_func_strndup" = xyes
19255 then :
19256 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
19257
19258 fi
19259
19260 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
19261 if test "x$ac_cv_func_getc_unlocked" = xyes
19262 then :
19263
19264 printf "%s\n" "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h
19265
19266 fi
19267
19268
19269 # Obtain compiler/linker options for dependencies
19270
19271 pkg_failed=no
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5
19273 printf %s "checking for XKBFILE... " >&6; }
19274
19275 if test -n "$XKBFILE_CFLAGS"; then
19276 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS"
19277 elif test -n "$PKG_CONFIG"; then
19278 if test -n "$PKG_CONFIG" && \
19279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
19280 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
19281 ac_status=$?
19282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19283 test $ac_status = 0; }; then
19284 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
19285 test "x$?" != "x0" && pkg_failed=yes
19286 else
19287 pkg_failed=yes
19288 fi
19289 else
19290 pkg_failed=untried
19291 fi
19292 if test -n "$XKBFILE_LIBS"; then
19293 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS"
19294 elif test -n "$PKG_CONFIG"; then
19295 if test -n "$PKG_CONFIG" && \
19296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
19297 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
19298 ac_status=$?
19299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19300 test $ac_status = 0; }; then
19301 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
19302 test "x$?" != "x0" && pkg_failed=yes
19303 else
19304 pkg_failed=yes
19305 fi
19306 else
19307 pkg_failed=untried
19308 fi
19309
19310
19311
19312 if test $pkg_failed = yes; then
19313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19314 printf "%s\n" "no" >&6; }
19315
19316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19317 _pkg_short_errors_supported=yes
19318 else
19319 _pkg_short_errors_supported=no
19320 fi
19321 if test $_pkg_short_errors_supported = yes; then
19322 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto" 2>&1`
19323 else
19324 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto" 2>&1`
19325 fi
19326 # Put the nasty error message in config.log where it belongs
19327 echo "$XKBFILE_PKG_ERRORS" >&5
19328
19329 as_fn_error $? "Package requirements (x11 kbproto) were not met:
19330
19331 $XKBFILE_PKG_ERRORS
19332
19333 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19334 installed software in a non-standard prefix.
19335
19336 Alternatively, you may set the environment variables XKBFILE_CFLAGS
19337 and XKBFILE_LIBS to avoid the need to call pkg-config.
19338 See the pkg-config man page for more details." "$LINENO" 5
19339 elif test $pkg_failed = untried; then
19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19341 printf "%s\n" "no" >&6; }
19342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19343 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19344 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19345 is in your PATH or set the PKG_CONFIG environment variable to the full
19346 path to pkg-config.
19347
19348 Alternatively, you may set the environment variables XKBFILE_CFLAGS
19349 and XKBFILE_LIBS to avoid the need to call pkg-config.
19350 See the pkg-config man page for more details.
19351
19352 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19353 See \`config.log' for more details" "$LINENO" 5; }
19354 else
19355 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS
19356 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS
19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19358 printf "%s\n" "yes" >&6; }
19359
19360 fi
19361
19362 # Checks for typedefs, structures, and compiler characteristics.
19363 # Check whether --enable-largefile was given.
19364 if test ${enable_largefile+y}
19365 then :
19366 enableval=$enable_largefile;
19367 fi
19368
19369 if test "$enable_largefile" != no; then
19370
19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19372 printf %s "checking for special C compiler options needed for large files... " >&6; }
19373 if test ${ac_cv_sys_largefile_CC+y}
19374 then :
19375 printf %s "(cached) " >&6
19376 else $as_nop
19377 ac_cv_sys_largefile_CC=no
19378 if test "$GCC" != yes; then
19379 ac_save_CC=$CC
19380 while :; do
19381 # IRIX 6.2 and later do not support large files by default,
19382 # so use the C compiler's -n32 option if that helps.
19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19385 #include <sys/types.h>
19386 /* Check that off_t can represent 2**63 - 1 correctly.
19387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19388 since some C++ compilers masquerading as C compilers
19389 incorrectly reject 9223372036854775807. */
19390 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19392 && LARGE_OFF_T % 2147483647 == 1)
19393 ? 1 : -1];
19394 int
19395 main (void)
19396 {
19397
19398 ;
19399 return 0;
19400 }
19401 _ACEOF
19402 if ac_fn_c_try_compile "$LINENO"
19403 then :
19404 break
19405 fi
19406 rm -f core conftest.err conftest.$ac_objext conftest.beam
19407 CC="$CC -n32"
19408 if ac_fn_c_try_compile "$LINENO"
19409 then :
19410 ac_cv_sys_largefile_CC=' -n32'; break
19411 fi
19412 rm -f core conftest.err conftest.$ac_objext conftest.beam
19413 break
19414 done
19415 CC=$ac_save_CC
19416 rm -f conftest.$ac_ext
19417 fi
19418 fi
19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19420 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
19421 if test "$ac_cv_sys_largefile_CC" != no; then
19422 CC=$CC$ac_cv_sys_largefile_CC
19423 fi
19424
19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19426 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19427 if test ${ac_cv_sys_file_offset_bits+y}
19428 then :
19429 printf %s "(cached) " >&6
19430 else $as_nop
19431 while :; do
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19434 #include <sys/types.h>
19435 /* Check that off_t can represent 2**63 - 1 correctly.
19436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19437 since some C++ compilers masquerading as C compilers
19438 incorrectly reject 9223372036854775807. */
19439 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19441 && LARGE_OFF_T % 2147483647 == 1)
19442 ? 1 : -1];
19443 int
19444 main (void)
19445 {
19446
19447 ;
19448 return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_compile "$LINENO"
19452 then :
19453 ac_cv_sys_file_offset_bits=no; break
19454 fi
19455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19458 #define _FILE_OFFSET_BITS 64
19459 #include <sys/types.h>
19460 /* Check that off_t can represent 2**63 - 1 correctly.
19461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19462 since some C++ compilers masquerading as C compilers
19463 incorrectly reject 9223372036854775807. */
19464 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19466 && LARGE_OFF_T % 2147483647 == 1)
19467 ? 1 : -1];
19468 int
19469 main (void)
19470 {
19471
19472 ;
19473 return 0;
19474 }
19475 _ACEOF
19476 if ac_fn_c_try_compile "$LINENO"
19477 then :
19478 ac_cv_sys_file_offset_bits=64; break
19479 fi
19480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19481 ac_cv_sys_file_offset_bits=unknown
19482 break
19483 done
19484 fi
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19486 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
19487 case $ac_cv_sys_file_offset_bits in #(
19488 no | unknown) ;;
19489 *)
19490 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
19491 ;;
19492 esac
19493 rm -rf conftest*
19494 if test $ac_cv_sys_file_offset_bits = unknown; then
19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19496 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
19497 if test ${ac_cv_sys_large_files+y}
19498 then :
19499 printf %s "(cached) " >&6
19500 else $as_nop
19501 while :; do
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19504 #include <sys/types.h>
19505 /* Check that off_t can represent 2**63 - 1 correctly.
19506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19507 since some C++ compilers masquerading as C compilers
19508 incorrectly reject 9223372036854775807. */
19509 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19511 && LARGE_OFF_T % 2147483647 == 1)
19512 ? 1 : -1];
19513 int
19514 main (void)
19515 {
19516
19517 ;
19518 return 0;
19519 }
19520 _ACEOF
19521 if ac_fn_c_try_compile "$LINENO"
19522 then :
19523 ac_cv_sys_large_files=no; break
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19528 #define _LARGE_FILES 1
19529 #include <sys/types.h>
19530 /* Check that off_t can represent 2**63 - 1 correctly.
19531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19532 since some C++ compilers masquerading as C compilers
19533 incorrectly reject 9223372036854775807. */
19534 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19536 && LARGE_OFF_T % 2147483647 == 1)
19537 ? 1 : -1];
19538 int
19539 main (void)
19540 {
19541
19542 ;
19543 return 0;
19544 }
19545 _ACEOF
19546 if ac_fn_c_try_compile "$LINENO"
19547 then :
19548 ac_cv_sys_large_files=1; break
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19551 ac_cv_sys_large_files=unknown
19552 break
19553 done
19554 fi
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19556 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
19557 case $ac_cv_sys_large_files in #(
19558 no | unknown) ;;
19559 *)
19560 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
19561 ;;
19562 esac
19563 rm -rf conftest*
19564 fi
19565 fi
19566
19567
19568 ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc"
19569
19570 cat >confcache <<\_ACEOF
19571 # This file is a shell script that caches the results of configure
19572 # tests run on this system so they can be shared between configure
19573 # scripts and configure runs, see configure's option --config-cache.
19574 # It is not useful on other systems. If it contains results you don't
19575 # want to keep, you may remove or edit it.
19576 #
19577 # config.status only pays attention to the cache file if you give it
19578 # the --recheck option to rerun configure.
19579 #
19580 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19581 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19582 # following values.
19583
19584 _ACEOF
19585
19586 # The following way of writing the cache mishandles newlines in values,
19587 # but we know of no workaround that is simple, portable, and efficient.
19588 # So, we kill variables containing newlines.
19589 # Ultrix sh set writes to stderr and can't be redirected directly,
19590 # and sets the high bit in the cache file unless we assign to the vars.
19591 (
19592 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19593 eval ac_val=\$$ac_var
19594 case $ac_val in #(
19595 *${as_nl}*)
19596 case $ac_var in #(
19597 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19598 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19599 esac
19600 case $ac_var in #(
19601 _ | IFS | as_nl) ;; #(
19602 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19603 *) { eval $ac_var=; unset $ac_var;} ;;
19604 esac ;;
19605 esac
19606 done
19607
19608 (set) 2>&1 |
19609 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19610 *${as_nl}ac_space=\ *)
19611 # `set' does not quote correctly, so add quotes: double-quote
19612 # substitution turns \\\\ into \\, and sed turns \\ into \.
19613 sed -n \
19614 "s/'/'\\\\''/g;
19615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19616 ;; #(
19617 *)
19618 # `set' quotes correctly as required by POSIX, so do not add quotes.
19619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19620 ;;
19621 esac |
19622 sort
19623 ) |
19624 sed '
19625 /^ac_cv_env_/b end
19626 t clear
19627 :clear
19628 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19629 t end
19630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19631 :end' >>confcache
19632 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19633 if test -w "$cache_file"; then
19634 if test "x$cache_file" != "x/dev/null"; then
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19636 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19637 if test ! -f "$cache_file" || test -h "$cache_file"; then
19638 cat confcache >"$cache_file"
19639 else
19640 case $cache_file in #(
19641 */* | ?:*)
19642 mv -f confcache "$cache_file"$$ &&
19643 mv -f "$cache_file"$$ "$cache_file" ;; #(
19644 *)
19645 mv -f confcache "$cache_file" ;;
19646 esac
19647 fi
19648 fi
19649 else
19650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19651 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19652 fi
19653 fi
19654 rm -f confcache
19655
19656 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19657 # Let make expand exec_prefix.
19658 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19659
19660 DEFS=-DHAVE_CONFIG_H
19661
19662 ac_libobjs=
19663 ac_ltlibobjs=
19664 U=
19665 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19666 # 1. Remove the extension, and $U if already installed.
19667 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19668 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19669 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19670 # will be set to the directory where LIBOBJS objects are built.
19671 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19672 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19673 done
19674 LIBOBJS=$ac_libobjs
19675
19676 LTLIBOBJS=$ac_ltlibobjs
19677
19678
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19680 printf %s "checking that generated files are newer than configure... " >&6; }
19681 if test -n "$am_sleep_pid"; then
19682 # Hide warnings about reused PIDs.
19683 wait $am_sleep_pid 2>/dev/null
19684 fi
19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19686 printf "%s\n" "done" >&6; }
19687 if test -n "$EXEEXT"; then
19688 am__EXEEXT_TRUE=
19689 am__EXEEXT_FALSE='#'
19690 else
19691 am__EXEEXT_TRUE='#'
19692 am__EXEEXT_FALSE=
19693 fi
19694
19695 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19696 as_fn_error $? "conditional \"AMDEP\" was never defined.
19697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19698 fi
19699 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19700 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19702 fi
19703
19704 : "${CONFIG_STATUS=./config.status}"
19705 ac_write_fail=0
19706 ac_clean_files_save=$ac_clean_files
19707 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19709 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19710 as_write_fail=0
19711 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19712 #! $SHELL
19713 # Generated by $as_me.
19714 # Run this file to recreate the current configuration.
19715 # Compiler output produced by configure, useful for debugging
19716 # configure, is in config.log if it exists.
19717
19718 debug=false
19719 ac_cs_recheck=false
19720 ac_cs_silent=false
19721
19722 SHELL=\${CONFIG_SHELL-$SHELL}
19723 export SHELL
19724 _ASEOF
19725 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19726 ## -------------------- ##
19727 ## M4sh Initialization. ##
19728 ## -------------------- ##
19729
19730 # Be more Bourne compatible
19731 DUALCASE=1; export DUALCASE # for MKS sh
19732 as_nop=:
19733 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19734 then :
19735 emulate sh
19736 NULLCMD=:
19737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19738 # is contrary to our usage. Disable this feature.
19739 alias -g '${1+"$@"}'='"$@"'
19740 setopt NO_GLOB_SUBST
19741 else $as_nop
19742 case `(set -o) 2>/dev/null` in #(
19743 *posix*) :
19744 set -o posix ;; #(
19745 *) :
19746 ;;
19747 esac
19748 fi
19749
19750
19751
19752 # Reset variables that may have inherited troublesome values from
19753 # the environment.
19754
19755 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19756 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19757 # side effect of setting IFS to empty, thus disabling word splitting.)
19758 # Quoting is to prevent editors from complaining about space-tab.
19759 as_nl='
19760 '
19761 export as_nl
19762 IFS=" "" $as_nl"
19763
19764 PS1='$ '
19765 PS2='> '
19766 PS4='+ '
19767
19768 # Ensure predictable behavior from utilities with locale-dependent output.
19769 LC_ALL=C
19770 export LC_ALL
19771 LANGUAGE=C
19772 export LANGUAGE
19773
19774 # We cannot yet rely on "unset" to work, but we need these variables
19775 # to be unset--not just set to an empty or harmless value--now, to
19776 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19777 # also avoids known problems related to "unset" and subshell syntax
19778 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19779 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19780 do eval test \${$as_var+y} \
19781 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19782 done
19783
19784 # Ensure that fds 0, 1, and 2 are open.
19785 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19786 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19787 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19788
19789 # The user is always right.
19790 if ${PATH_SEPARATOR+false} :; then
19791 PATH_SEPARATOR=:
19792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19794 PATH_SEPARATOR=';'
19795 }
19796 fi
19797
19798
19799 # Find who we are. Look in the path if we contain no directory separator.
19800 as_myself=
19801 case $0 in #((
19802 *[\\/]* ) as_myself=$0 ;;
19803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19804 for as_dir in $PATH
19805 do
19806 IFS=$as_save_IFS
19807 case $as_dir in #(((
19808 '') as_dir=./ ;;
19809 */) ;;
19810 *) as_dir=$as_dir/ ;;
19811 esac
19812 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19813 done
19814 IFS=$as_save_IFS
19815
19816 ;;
19817 esac
19818 # We did not find ourselves, most probably we were run as `sh COMMAND'
19819 # in which case we are not to be found in the path.
19820 if test "x$as_myself" = x; then
19821 as_myself=$0
19822 fi
19823 if test ! -f "$as_myself"; then
19824 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19825 exit 1
19826 fi
19827
19828
19829
19830 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19831 # ----------------------------------------
19832 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19833 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19834 # script with STATUS, using 1 if that was 0.
19835 as_fn_error ()
19836 {
19837 as_status=$1; test $as_status -eq 0 && as_status=1
19838 if test "$4"; then
19839 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19841 fi
19842 printf "%s\n" "$as_me: error: $2" >&2
19843 as_fn_exit $as_status
19844 } # as_fn_error
19845
19846
19847
19848 # as_fn_set_status STATUS
19849 # -----------------------
19850 # Set $? to STATUS, without forking.
19851 as_fn_set_status ()
19852 {
19853 return $1
19854 } # as_fn_set_status
19855
19856 # as_fn_exit STATUS
19857 # -----------------
19858 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19859 as_fn_exit ()
19860 {
19861 set +e
19862 as_fn_set_status $1
19863 exit $1
19864 } # as_fn_exit
19865
19866 # as_fn_unset VAR
19867 # ---------------
19868 # Portably unset VAR.
19869 as_fn_unset ()
19870 {
19871 { eval $1=; unset $1;}
19872 }
19873 as_unset=as_fn_unset
19874
19875 # as_fn_append VAR VALUE
19876 # ----------------------
19877 # Append the text in VALUE to the end of the definition contained in VAR. Take
19878 # advantage of any shell optimizations that allow amortized linear growth over
19879 # repeated appends, instead of the typical quadratic growth present in naive
19880 # implementations.
19881 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19882 then :
19883 eval 'as_fn_append ()
19884 {
19885 eval $1+=\$2
19886 }'
19887 else $as_nop
19888 as_fn_append ()
19889 {
19890 eval $1=\$$1\$2
19891 }
19892 fi # as_fn_append
19893
19894 # as_fn_arith ARG...
19895 # ------------------
19896 # Perform arithmetic evaluation on the ARGs, and store the result in the
19897 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19898 # must be portable across $(()) and expr.
19899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19900 then :
19901 eval 'as_fn_arith ()
19902 {
19903 as_val=$(( $* ))
19904 }'
19905 else $as_nop
19906 as_fn_arith ()
19907 {
19908 as_val=`expr "$@" || test $? -eq 1`
19909 }
19910 fi # as_fn_arith
19911
19912
19913 if expr a : '\(a\)' >/dev/null 2>&1 &&
19914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19915 as_expr=expr
19916 else
19917 as_expr=false
19918 fi
19919
19920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19921 as_basename=basename
19922 else
19923 as_basename=false
19924 fi
19925
19926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19927 as_dirname=dirname
19928 else
19929 as_dirname=false
19930 fi
19931
19932 as_me=`$as_basename -- "$0" ||
19933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19934 X"$0" : 'X\(//\)$' \| \
19935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19936 printf "%s\n" X/"$0" |
19937 sed '/^.*\/\([^/][^/]*\)\/*$/{
19938 s//\1/
19939 q
19940 }
19941 /^X\/\(\/\/\)$/{
19942 s//\1/
19943 q
19944 }
19945 /^X\/\(\/\).*/{
19946 s//\1/
19947 q
19948 }
19949 s/.*/./; q'`
19950
19951 # Avoid depending upon Character Ranges.
19952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19955 as_cr_digits='0123456789'
19956 as_cr_alnum=$as_cr_Letters$as_cr_digits
19957
19958
19959 # Determine whether it's possible to make 'echo' print without a newline.
19960 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19961 # for compatibility with existing Makefiles.
19962 ECHO_C= ECHO_N= ECHO_T=
19963 case `echo -n x` in #(((((
19964 -n*)
19965 case `echo 'xy\c'` in
19966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19967 xy) ECHO_C='\c';;
19968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19969 ECHO_T=' ';;
19970 esac;;
19971 *)
19972 ECHO_N='-n';;
19973 esac
19974
19975 # For backward compatibility with old third-party macros, we provide
19976 # the shell variables $as_echo and $as_echo_n. New code should use
19977 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19978 as_echo='printf %s\n'
19979 as_echo_n='printf %s'
19980
19981 rm -f conf$$ conf$$.exe conf$$.file
19982 if test -d conf$$.dir; then
19983 rm -f conf$$.dir/conf$$.file
19984 else
19985 rm -f conf$$.dir
19986 mkdir conf$$.dir 2>/dev/null
19987 fi
19988 if (echo >conf$$.file) 2>/dev/null; then
19989 if ln -s conf$$.file conf$$ 2>/dev/null; then
19990 as_ln_s='ln -s'
19991 # ... but there are two gotchas:
19992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19994 # In both cases, we have to default to `cp -pR'.
19995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19996 as_ln_s='cp -pR'
19997 elif ln conf$$.file conf$$ 2>/dev/null; then
19998 as_ln_s=ln
19999 else
20000 as_ln_s='cp -pR'
20001 fi
20002 else
20003 as_ln_s='cp -pR'
20004 fi
20005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20006 rmdir conf$$.dir 2>/dev/null
20007
20008
20009 # as_fn_mkdir_p
20010 # -------------
20011 # Create "$as_dir" as a directory, including parents if necessary.
20012 as_fn_mkdir_p ()
20013 {
20014
20015 case $as_dir in #(
20016 -*) as_dir=./$as_dir;;
20017 esac
20018 test -d "$as_dir" || eval $as_mkdir_p || {
20019 as_dirs=
20020 while :; do
20021 case $as_dir in #(
20022 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20023 *) as_qdir=$as_dir;;
20024 esac
20025 as_dirs="'$as_qdir' $as_dirs"
20026 as_dir=`$as_dirname -- "$as_dir" ||
20027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20028 X"$as_dir" : 'X\(//\)[^/]' \| \
20029 X"$as_dir" : 'X\(//\)$' \| \
20030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20031 printf "%s\n" X"$as_dir" |
20032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20033 s//\1/
20034 q
20035 }
20036 /^X\(\/\/\)[^/].*/{
20037 s//\1/
20038 q
20039 }
20040 /^X\(\/\/\)$/{
20041 s//\1/
20042 q
20043 }
20044 /^X\(\/\).*/{
20045 s//\1/
20046 q
20047 }
20048 s/.*/./; q'`
20049 test -d "$as_dir" && break
20050 done
20051 test -z "$as_dirs" || eval "mkdir $as_dirs"
20052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20053
20054
20055 } # as_fn_mkdir_p
20056 if mkdir -p . 2>/dev/null; then
20057 as_mkdir_p='mkdir -p "$as_dir"'
20058 else
20059 test -d ./-p && rmdir ./-p
20060 as_mkdir_p=false
20061 fi
20062
20063
20064 # as_fn_executable_p FILE
20065 # -----------------------
20066 # Test if FILE is an executable regular file.
20067 as_fn_executable_p ()
20068 {
20069 test -f "$1" && test -x "$1"
20070 } # as_fn_executable_p
20071 as_test_x='test -x'
20072 as_executable_p=as_fn_executable_p
20073
20074 # Sed expression to map a string onto a valid CPP name.
20075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20076
20077 # Sed expression to map a string onto a valid variable name.
20078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20079
20080
20081 exec 6>&1
20082 ## ----------------------------------- ##
20083 ## Main body of $CONFIG_STATUS script. ##
20084 ## ----------------------------------- ##
20085 _ASEOF
20086 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20087
20088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20089 # Save the log message, to keep $0 and so on meaningful, and to
20090 # report actual input values of CONFIG_FILES etc. instead of their
20091 # values after options handling.
20092 ac_log="
20093 This file was extended by libxkbfile $as_me 1.1.2, which was
20094 generated by GNU Autoconf 2.71. Invocation command line was
20095
20096 CONFIG_FILES = $CONFIG_FILES
20097 CONFIG_HEADERS = $CONFIG_HEADERS
20098 CONFIG_LINKS = $CONFIG_LINKS
20099 CONFIG_COMMANDS = $CONFIG_COMMANDS
20100 $ $0 $@
20101
20102 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20103 "
20104
20105 _ACEOF
20106
20107 case $ac_config_files in *"
20108 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20109 esac
20110
20111 case $ac_config_headers in *"
20112 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20113 esac
20114
20115
20116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20117 # Files that config.status was made for.
20118 config_files="$ac_config_files"
20119 config_headers="$ac_config_headers"
20120 config_commands="$ac_config_commands"
20121
20122 _ACEOF
20123
20124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20125 ac_cs_usage="\
20126 \`$as_me' instantiates files and other configuration actions
20127 from templates according to the current configuration. Unless the files
20128 and actions are specified as TAGs, all are instantiated by default.
20129
20130 Usage: $0 [OPTION]... [TAG]...
20131
20132 -h, --help print this help, then exit
20133 -V, --version print version number and configuration settings, then exit
20134 --config print configuration, then exit
20135 -q, --quiet, --silent
20136 do not print progress messages
20137 -d, --debug don't remove temporary files
20138 --recheck update $as_me by reconfiguring in the same conditions
20139 --file=FILE[:TEMPLATE]
20140 instantiate the configuration file FILE
20141 --header=FILE[:TEMPLATE]
20142 instantiate the configuration header FILE
20143
20144 Configuration files:
20145 $config_files
20146
20147 Configuration headers:
20148 $config_headers
20149
20150 Configuration commands:
20151 $config_commands
20152
20153 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>."
20154
20155 _ACEOF
20156 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20157 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20159 ac_cs_config='$ac_cs_config_escaped'
20160 ac_cs_version="\\
20161 libxkbfile config.status 1.1.2
20162 configured by $0, generated by GNU Autoconf 2.71,
20163 with options \\"\$ac_cs_config\\"
20164
20165 Copyright (C) 2021 Free Software Foundation, Inc.
20166 This config.status script is free software; the Free Software Foundation
20167 gives unlimited permission to copy, distribute and modify it."
20168
20169 ac_pwd='$ac_pwd'
20170 srcdir='$srcdir'
20171 INSTALL='$INSTALL'
20172 MKDIR_P='$MKDIR_P'
20173 AWK='$AWK'
20174 test -n "\$AWK" || AWK=awk
20175 _ACEOF
20176
20177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20178 # The default lists apply if the user does not specify any file.
20179 ac_need_defaults=:
20180 while test $# != 0
20181 do
20182 case $1 in
20183 --*=?*)
20184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20186 ac_shift=:
20187 ;;
20188 --*=)
20189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20190 ac_optarg=
20191 ac_shift=:
20192 ;;
20193 *)
20194 ac_option=$1
20195 ac_optarg=$2
20196 ac_shift=shift
20197 ;;
20198 esac
20199
20200 case $ac_option in
20201 # Handling of the options.
20202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20203 ac_cs_recheck=: ;;
20204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20205 printf "%s\n" "$ac_cs_version"; exit ;;
20206 --config | --confi | --conf | --con | --co | --c )
20207 printf "%s\n" "$ac_cs_config"; exit ;;
20208 --debug | --debu | --deb | --de | --d | -d )
20209 debug=: ;;
20210 --file | --fil | --fi | --f )
20211 $ac_shift
20212 case $ac_optarg in
20213 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20214 '') as_fn_error $? "missing file argument" ;;
20215 esac
20216 as_fn_append CONFIG_FILES " '$ac_optarg'"
20217 ac_need_defaults=false;;
20218 --header | --heade | --head | --hea )
20219 $ac_shift
20220 case $ac_optarg in
20221 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20222 esac
20223 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20224 ac_need_defaults=false;;
20225 --he | --h)
20226 # Conflict between --help and --header
20227 as_fn_error $? "ambiguous option: \`$1'
20228 Try \`$0 --help' for more information.";;
20229 --help | --hel | -h )
20230 printf "%s\n" "$ac_cs_usage"; exit ;;
20231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20233 ac_cs_silent=: ;;
20234
20235 # This is an error.
20236 -*) as_fn_error $? "unrecognized option: \`$1'
20237 Try \`$0 --help' for more information." ;;
20238
20239 *) as_fn_append ac_config_targets " $1"
20240 ac_need_defaults=false ;;
20241
20242 esac
20243 shift
20244 done
20245
20246 ac_configure_extra_args=
20247
20248 if $ac_cs_silent; then
20249 exec 6>/dev/null
20250 ac_configure_extra_args="$ac_configure_extra_args --silent"
20251 fi
20252
20253 _ACEOF
20254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255 if \$ac_cs_recheck; then
20256 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20257 shift
20258 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20259 CONFIG_SHELL='$SHELL'
20260 export CONFIG_SHELL
20261 exec "\$@"
20262 fi
20263
20264 _ACEOF
20265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20266 exec 5>>config.log
20267 {
20268 echo
20269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20270 ## Running $as_me. ##
20271 _ASBOX
20272 printf "%s\n" "$ac_log"
20273 } >&5
20274
20275 _ACEOF
20276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20277 #
20278 # INIT-COMMANDS
20279 #
20280 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20281
20282
20283 # The HP-UX ksh and POSIX shell print the target directory to stdout
20284 # if CDPATH is set.
20285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20286
20287 sed_quote_subst='$sed_quote_subst'
20288 double_quote_subst='$double_quote_subst'
20289 delay_variable_subst='$delay_variable_subst'
20290 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20291 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20292 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20293 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20294 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20295 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20296 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20297 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20298 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20299 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20300 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20301 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20302 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20303 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20304 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20305 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20311 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20312 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20313 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20314 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20315 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20316 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20317 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20318 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20319 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20320 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20321 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20322 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20323 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20324 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20325 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20326 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20327 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20328 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20329 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20330 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20331 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20332 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20333 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20334 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20335 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20336 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20337 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20338 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20339 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20340 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20341 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20342 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20343 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20344 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20345 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20346 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20347 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20348 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20349 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20350 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"`'
20351 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20352 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20353 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20354 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20355 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20356 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20357 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20358 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20359 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20360 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20361 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20362 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20363 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20364 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20365 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20366 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20367 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20368 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20369 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20370 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20371 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20372 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20373 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20374 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20375 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20376 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20377 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20378 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20379 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20380 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20381 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20382 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20383 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20384 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20385 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20386 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20387 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20388 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20389 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20390 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20391 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20392 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20393 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20394 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20395 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20396 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20397 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20398 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20399 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20400 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20401 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20402 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20403 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20404 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20405 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20406 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20407 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20408 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20409 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20410 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20411 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20412 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20413 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20414 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20415 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20416 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20417 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20418 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20419 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20420 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20421 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20422 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20423 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20424 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20425 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20426 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20427
20428 LTCC='$LTCC'
20429 LTCFLAGS='$LTCFLAGS'
20430 compiler='$compiler_DEFAULT'
20431
20432 # A function that is used when there is no print builtin or printf.
20433 func_fallback_echo ()
20434 {
20435 eval 'cat <<_LTECHO_EOF
20436 \$1
20437 _LTECHO_EOF'
20438 }
20439
20440 # Quote evaled strings.
20441 for var in SHELL \
20442 ECHO \
20443 PATH_SEPARATOR \
20444 SED \
20445 GREP \
20446 EGREP \
20447 FGREP \
20448 LD \
20449 NM \
20450 LN_S \
20451 lt_SP2NL \
20452 lt_NL2SP \
20453 reload_flag \
20454 FILECMD \
20455 OBJDUMP \
20456 deplibs_check_method \
20457 file_magic_cmd \
20458 file_magic_glob \
20459 want_nocaseglob \
20460 DLLTOOL \
20461 sharedlib_from_linklib_cmd \
20462 AR \
20463 archiver_list_spec \
20464 STRIP \
20465 RANLIB \
20466 CC \
20467 CFLAGS \
20468 compiler \
20469 lt_cv_sys_global_symbol_pipe \
20470 lt_cv_sys_global_symbol_to_cdecl \
20471 lt_cv_sys_global_symbol_to_import \
20472 lt_cv_sys_global_symbol_to_c_name_address \
20473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20474 lt_cv_nm_interface \
20475 nm_file_list_spec \
20476 lt_cv_truncate_bin \
20477 lt_prog_compiler_no_builtin_flag \
20478 lt_prog_compiler_pic \
20479 lt_prog_compiler_wl \
20480 lt_prog_compiler_static \
20481 lt_cv_prog_compiler_c_o \
20482 need_locks \
20483 MANIFEST_TOOL \
20484 DSYMUTIL \
20485 NMEDIT \
20486 LIPO \
20487 OTOOL \
20488 OTOOL64 \
20489 shrext_cmds \
20490 export_dynamic_flag_spec \
20491 whole_archive_flag_spec \
20492 compiler_needs_object \
20493 with_gnu_ld \
20494 allow_undefined_flag \
20495 no_undefined_flag \
20496 hardcode_libdir_flag_spec \
20497 hardcode_libdir_separator \
20498 exclude_expsyms \
20499 include_expsyms \
20500 file_list_spec \
20501 variables_saved_for_relink \
20502 libname_spec \
20503 library_names_spec \
20504 soname_spec \
20505 install_override_mode \
20506 finish_eval \
20507 old_striplib \
20508 striplib; do
20509 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20510 *[\\\\\\\`\\"\\\$]*)
20511 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20512 ;;
20513 *)
20514 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20515 ;;
20516 esac
20517 done
20518
20519 # Double-quote double-evaled strings.
20520 for var in reload_cmds \
20521 old_postinstall_cmds \
20522 old_postuninstall_cmds \
20523 old_archive_cmds \
20524 extract_expsyms_cmds \
20525 old_archive_from_new_cmds \
20526 old_archive_from_expsyms_cmds \
20527 archive_cmds \
20528 archive_expsym_cmds \
20529 module_cmds \
20530 module_expsym_cmds \
20531 export_symbols_cmds \
20532 prelink_cmds \
20533 postlink_cmds \
20534 postinstall_cmds \
20535 postuninstall_cmds \
20536 finish_cmds \
20537 sys_lib_search_path_spec \
20538 configure_time_dlsearch_path \
20539 configure_time_lt_sys_library_path; do
20540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20541 *[\\\\\\\`\\"\\\$]*)
20542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20543 ;;
20544 *)
20545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20546 ;;
20547 esac
20548 done
20549
20550 ac_aux_dir='$ac_aux_dir'
20551
20552 # See if we are running on zsh, and set the options that allow our
20553 # commands through without removal of \ escapes INIT.
20554 if test -n "\${ZSH_VERSION+set}"; then
20555 setopt NO_GLOB_SUBST
20556 fi
20557
20558
20559 PACKAGE='$PACKAGE'
20560 VERSION='$VERSION'
20561 RM='$RM'
20562 ofile='$ofile'
20563
20564
20565
20566
20567 _ACEOF
20568
20569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20570
20571 # Handling of arguments.
20572 for ac_config_target in $ac_config_targets
20573 do
20574 case $ac_config_target in
20575 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20576 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20577 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20578 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20579 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20580 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;;
20581
20582 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20583 esac
20584 done
20585
20586
20587 # If the user did not use the arguments to specify the items to instantiate,
20588 # then the envvar interface is used. Set only those that are not.
20589 # We use the long form for the default assignment because of an extremely
20590 # bizarre bug on SunOS 4.1.3.
20591 if $ac_need_defaults; then
20592 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20593 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20594 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20595 fi
20596
20597 # Have a temporary directory for convenience. Make it in the build tree
20598 # simply because there is no reason against having it here, and in addition,
20599 # creating and moving files from /tmp can sometimes cause problems.
20600 # Hook for its removal unless debugging.
20601 # Note that there is a small window in which the directory will not be cleaned:
20602 # after its creation but before its name has been assigned to `$tmp'.
20603 $debug ||
20604 {
20605 tmp= ac_tmp=
20606 trap 'exit_status=$?
20607 : "${ac_tmp:=$tmp}"
20608 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20609 ' 0
20610 trap 'as_fn_exit 1' 1 2 13 15
20611 }
20612 # Create a (secure) tmp directory for tmp files.
20613
20614 {
20615 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20616 test -d "$tmp"
20617 } ||
20618 {
20619 tmp=./conf$$-$RANDOM
20620 (umask 077 && mkdir "$tmp")
20621 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20622 ac_tmp=$tmp
20623
20624 # Set up the scripts for CONFIG_FILES section.
20625 # No need to generate them if there are no CONFIG_FILES.
20626 # This happens for instance with `./config.status config.h'.
20627 if test -n "$CONFIG_FILES"; then
20628
20629
20630 ac_cr=`echo X | tr X '\015'`
20631 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20632 # But we know of no other shell where ac_cr would be empty at this
20633 # point, so we can use a bashism as a fallback.
20634 if test "x$ac_cr" = x; then
20635 eval ac_cr=\$\'\\r\'
20636 fi
20637 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20638 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20639 ac_cs_awk_cr='\\r'
20640 else
20641 ac_cs_awk_cr=$ac_cr
20642 fi
20643
20644 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20645 _ACEOF
20646
20647
20648 {
20649 echo "cat >conf$$subs.awk <<_ACEOF" &&
20650 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20651 echo "_ACEOF"
20652 } >conf$$subs.sh ||
20653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20654 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20655 ac_delim='%!_!# '
20656 for ac_last_try in false false false false false :; do
20657 . ./conf$$subs.sh ||
20658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20659
20660 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20661 if test $ac_delim_n = $ac_delim_num; then
20662 break
20663 elif $ac_last_try; then
20664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20665 else
20666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20667 fi
20668 done
20669 rm -f conf$$subs.sh
20670
20671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20672 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20673 _ACEOF
20674 sed -n '
20675 h
20676 s/^/S["/; s/!.*/"]=/
20677 p
20678 g
20679 s/^[^!]*!//
20680 :repl
20681 t repl
20682 s/'"$ac_delim"'$//
20683 t delim
20684 :nl
20685 h
20686 s/\(.\{148\}\)..*/\1/
20687 t more1
20688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20689 p
20690 n
20691 b repl
20692 :more1
20693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20694 p
20695 g
20696 s/.\{148\}//
20697 t nl
20698 :delim
20699 h
20700 s/\(.\{148\}\)..*/\1/
20701 t more2
20702 s/["\\]/\\&/g; s/^/"/; s/$/"/
20703 p
20704 b
20705 :more2
20706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20707 p
20708 g
20709 s/.\{148\}//
20710 t delim
20711 ' <conf$$subs.awk | sed '
20712 /^[^""]/{
20713 N
20714 s/\n//
20715 }
20716 ' >>$CONFIG_STATUS || ac_write_fail=1
20717 rm -f conf$$subs.awk
20718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20719 _ACAWK
20720 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20721 for (key in S) S_is_set[key] = 1
20722 FS = ""
20723
20724 }
20725 {
20726 line = $ 0
20727 nfields = split(line, field, "@")
20728 substed = 0
20729 len = length(field[1])
20730 for (i = 2; i < nfields; i++) {
20731 key = field[i]
20732 keylen = length(key)
20733 if (S_is_set[key]) {
20734 value = S[key]
20735 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20736 len += length(value) + length(field[++i])
20737 substed = 1
20738 } else
20739 len += 1 + keylen
20740 }
20741
20742 print line
20743 }
20744
20745 _ACAWK
20746 _ACEOF
20747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20748 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20749 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20750 else
20751 cat
20752 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20753 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20754 _ACEOF
20755
20756 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20757 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20758 # trailing colons and then remove the whole line if VPATH becomes empty
20759 # (actually we leave an empty line to preserve line numbers).
20760 if test "x$srcdir" = x.; then
20761 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20762 h
20763 s///
20764 s/^/:/
20765 s/[ ]*$/:/
20766 s/:\$(srcdir):/:/g
20767 s/:\${srcdir}:/:/g
20768 s/:@srcdir@:/:/g
20769 s/^:*//
20770 s/:*$//
20771 x
20772 s/\(=[ ]*\).*/\1/
20773 G
20774 s/\n//
20775 s/^[^=]*=[ ]*$//
20776 }'
20777 fi
20778
20779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20780 fi # test -n "$CONFIG_FILES"
20781
20782 # Set up the scripts for CONFIG_HEADERS section.
20783 # No need to generate them if there are no CONFIG_HEADERS.
20784 # This happens for instance with `./config.status Makefile'.
20785 if test -n "$CONFIG_HEADERS"; then
20786 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20787 BEGIN {
20788 _ACEOF
20789
20790 # Transform confdefs.h into an awk script `defines.awk', embedded as
20791 # here-document in config.status, that substitutes the proper values into
20792 # config.h.in to produce config.h.
20793
20794 # Create a delimiter string that does not exist in confdefs.h, to ease
20795 # handling of long lines.
20796 ac_delim='%!_!# '
20797 for ac_last_try in false false :; do
20798 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20799 if test -z "$ac_tt"; then
20800 break
20801 elif $ac_last_try; then
20802 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20803 else
20804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20805 fi
20806 done
20807
20808 # For the awk script, D is an array of macro values keyed by name,
20809 # likewise P contains macro parameters if any. Preserve backslash
20810 # newline sequences.
20811
20812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20813 sed -n '
20814 s/.\{148\}/&'"$ac_delim"'/g
20815 t rset
20816 :rset
20817 s/^[ ]*#[ ]*define[ ][ ]*/ /
20818 t def
20819 d
20820 :def
20821 s/\\$//
20822 t bsnl
20823 s/["\\]/\\&/g
20824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20825 D["\1"]=" \3"/p
20826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20827 d
20828 :bsnl
20829 s/["\\]/\\&/g
20830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20831 D["\1"]=" \3\\\\\\n"\\/p
20832 t cont
20833 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20834 t cont
20835 d
20836 :cont
20837 n
20838 s/.\{148\}/&'"$ac_delim"'/g
20839 t clear
20840 :clear
20841 s/\\$//
20842 t bsnlc
20843 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20844 d
20845 :bsnlc
20846 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20847 b cont
20848 ' <confdefs.h | sed '
20849 s/'"$ac_delim"'/"\\\
20850 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20851
20852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20853 for (key in D) D_is_set[key] = 1
20854 FS = ""
20855 }
20856 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20857 line = \$ 0
20858 split(line, arg, " ")
20859 if (arg[1] == "#") {
20860 defundef = arg[2]
20861 mac1 = arg[3]
20862 } else {
20863 defundef = substr(arg[1], 2)
20864 mac1 = arg[2]
20865 }
20866 split(mac1, mac2, "(") #)
20867 macro = mac2[1]
20868 prefix = substr(line, 1, index(line, defundef) - 1)
20869 if (D_is_set[macro]) {
20870 # Preserve the white space surrounding the "#".
20871 print prefix "define", macro P[macro] D[macro]
20872 next
20873 } else {
20874 # Replace #undef with comments. This is necessary, for example,
20875 # in the case of _POSIX_SOURCE, which is predefined and required
20876 # on some systems where configure will not decide to define it.
20877 if (defundef == "undef") {
20878 print "/*", prefix defundef, macro, "*/"
20879 next
20880 }
20881 }
20882 }
20883 { print }
20884 _ACAWK
20885 _ACEOF
20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20887 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20888 fi # test -n "$CONFIG_HEADERS"
20889
20890
20891 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20892 shift
20893 for ac_tag
20894 do
20895 case $ac_tag in
20896 :[FHLC]) ac_mode=$ac_tag; continue;;
20897 esac
20898 case $ac_mode$ac_tag in
20899 :[FHL]*:*);;
20900 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20901 :[FH]-) ac_tag=-:-;;
20902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20903 esac
20904 ac_save_IFS=$IFS
20905 IFS=:
20906 set x $ac_tag
20907 IFS=$ac_save_IFS
20908 shift
20909 ac_file=$1
20910 shift
20911
20912 case $ac_mode in
20913 :L) ac_source=$1;;
20914 :[FH])
20915 ac_file_inputs=
20916 for ac_f
20917 do
20918 case $ac_f in
20919 -) ac_f="$ac_tmp/stdin";;
20920 *) # Look for the file first in the build tree, then in the source tree
20921 # (if the path is not absolute). The absolute path cannot be DOS-style,
20922 # because $ac_f cannot contain `:'.
20923 test -f "$ac_f" ||
20924 case $ac_f in
20925 [\\/$]*) false;;
20926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20927 esac ||
20928 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20929 esac
20930 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20931 as_fn_append ac_file_inputs " '$ac_f'"
20932 done
20933
20934 # Let's still pretend it is `configure' which instantiates (i.e., don't
20935 # use $as_me), people would be surprised to read:
20936 # /* config.h. Generated by config.status. */
20937 configure_input='Generated from '`
20938 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20939 `' by configure.'
20940 if test x"$ac_file" != x-; then
20941 configure_input="$ac_file. $configure_input"
20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20943 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20944 fi
20945 # Neutralize special characters interpreted by sed in replacement strings.
20946 case $configure_input in #(
20947 *\&* | *\|* | *\\* )
20948 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20950 *) ac_sed_conf_input=$configure_input;;
20951 esac
20952
20953 case $ac_tag in
20954 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20956 esac
20957 ;;
20958 esac
20959
20960 ac_dir=`$as_dirname -- "$ac_file" ||
20961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$ac_file" : 'X\(//\)[^/]' \| \
20963 X"$ac_file" : 'X\(//\)$' \| \
20964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20965 printf "%s\n" X"$ac_file" |
20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20967 s//\1/
20968 q
20969 }
20970 /^X\(\/\/\)[^/].*/{
20971 s//\1/
20972 q
20973 }
20974 /^X\(\/\/\)$/{
20975 s//\1/
20976 q
20977 }
20978 /^X\(\/\).*/{
20979 s//\1/
20980 q
20981 }
20982 s/.*/./; q'`
20983 as_dir="$ac_dir"; as_fn_mkdir_p
20984 ac_builddir=.
20985
20986 case "$ac_dir" in
20987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20988 *)
20989 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20990 # A ".." for each directory in $ac_dir_suffix.
20991 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20992 case $ac_top_builddir_sub in
20993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20995 esac ;;
20996 esac
20997 ac_abs_top_builddir=$ac_pwd
20998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20999 # for backward compatibility:
21000 ac_top_builddir=$ac_top_build_prefix
21001
21002 case $srcdir in
21003 .) # We are building in place.
21004 ac_srcdir=.
21005 ac_top_srcdir=$ac_top_builddir_sub
21006 ac_abs_top_srcdir=$ac_pwd ;;
21007 [\\/]* | ?:[\\/]* ) # Absolute name.
21008 ac_srcdir=$srcdir$ac_dir_suffix;
21009 ac_top_srcdir=$srcdir
21010 ac_abs_top_srcdir=$srcdir ;;
21011 *) # Relative name.
21012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21013 ac_top_srcdir=$ac_top_build_prefix$srcdir
21014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21015 esac
21016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21017
21018
21019 case $ac_mode in
21020 :F)
21021 #
21022 # CONFIG_FILE
21023 #
21024
21025 case $INSTALL in
21026 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21027 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21028 esac
21029 ac_MKDIR_P=$MKDIR_P
21030 case $MKDIR_P in
21031 [\\/$]* | ?:[\\/]* ) ;;
21032 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21033 esac
21034 _ACEOF
21035
21036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21037 # If the template does not know about datarootdir, expand it.
21038 # FIXME: This hack should be removed a few years after 2.60.
21039 ac_datarootdir_hack=; ac_datarootdir_seen=
21040 ac_sed_dataroot='
21041 /datarootdir/ {
21042 p
21043 q
21044 }
21045 /@datadir@/p
21046 /@docdir@/p
21047 /@infodir@/p
21048 /@localedir@/p
21049 /@mandir@/p'
21050 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21051 *datarootdir*) ac_datarootdir_seen=yes;;
21052 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21054 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21055 _ACEOF
21056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21057 ac_datarootdir_hack='
21058 s&@datadir@&$datadir&g
21059 s&@docdir@&$docdir&g
21060 s&@infodir@&$infodir&g
21061 s&@localedir@&$localedir&g
21062 s&@mandir@&$mandir&g
21063 s&\\\${datarootdir}&$datarootdir&g' ;;
21064 esac
21065 _ACEOF
21066
21067 # Neutralize VPATH when `$srcdir' = `.'.
21068 # Shell code in configure.ac might set extrasub.
21069 # FIXME: do we really want to maintain this feature?
21070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21071 ac_sed_extra="$ac_vpsub
21072 $extrasub
21073 _ACEOF
21074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21075 :t
21076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21077 s|@configure_input@|$ac_sed_conf_input|;t t
21078 s&@top_builddir@&$ac_top_builddir_sub&;t t
21079 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21080 s&@srcdir@&$ac_srcdir&;t t
21081 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21082 s&@top_srcdir@&$ac_top_srcdir&;t t
21083 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21084 s&@builddir@&$ac_builddir&;t t
21085 s&@abs_builddir@&$ac_abs_builddir&;t t
21086 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21087 s&@INSTALL@&$ac_INSTALL&;t t
21088 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21089 $ac_datarootdir_hack
21090 "
21091 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21092 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21093
21094 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21095 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21096 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21097 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21099 which seems to be undefined. Please make sure it is defined" >&5
21100 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21101 which seems to be undefined. Please make sure it is defined" >&2;}
21102
21103 rm -f "$ac_tmp/stdin"
21104 case $ac_file in
21105 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21106 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21107 esac \
21108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21109 ;;
21110 :H)
21111 #
21112 # CONFIG_HEADER
21113 #
21114 if test x"$ac_file" != x-; then
21115 {
21116 printf "%s\n" "/* $configure_input */" >&1 \
21117 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21118 } >"$ac_tmp/config.h" \
21119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21120 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21122 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21123 else
21124 rm -f "$ac_file"
21125 mv "$ac_tmp/config.h" "$ac_file" \
21126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21127 fi
21128 else
21129 printf "%s\n" "/* $configure_input */" >&1 \
21130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21131 || as_fn_error $? "could not create -" "$LINENO" 5
21132 fi
21133 # Compute "$ac_file"'s index in $config_headers.
21134 _am_arg="$ac_file"
21135 _am_stamp_count=1
21136 for _am_header in $config_headers :; do
21137 case $_am_header in
21138 $_am_arg | $_am_arg:* )
21139 break ;;
21140 * )
21141 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21142 esac
21143 done
21144 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21145 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21146 X"$_am_arg" : 'X\(//\)[^/]' \| \
21147 X"$_am_arg" : 'X\(//\)$' \| \
21148 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21149 printf "%s\n" X"$_am_arg" |
21150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21151 s//\1/
21152 q
21153 }
21154 /^X\(\/\/\)[^/].*/{
21155 s//\1/
21156 q
21157 }
21158 /^X\(\/\/\)$/{
21159 s//\1/
21160 q
21161 }
21162 /^X\(\/\).*/{
21163 s//\1/
21164 q
21165 }
21166 s/.*/./; q'`/stamp-h$_am_stamp_count
21167 ;;
21168
21169 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21170 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21171 ;;
21172 esac
21173
21174
21175 case $ac_file$ac_mode in
21176 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21177 # Older Autoconf quotes --file arguments for eval, but not when files
21178 # are listed without --file. Let's play safe and only enable the eval
21179 # if we detect the quoting.
21180 # TODO: see whether this extra hack can be removed once we start
21181 # requiring Autoconf 2.70 or later.
21182 case $CONFIG_FILES in #(
21183 *\'*) :
21184 eval set x "$CONFIG_FILES" ;; #(
21185 *) :
21186 set x $CONFIG_FILES ;; #(
21187 *) :
21188 ;;
21189 esac
21190 shift
21191 # Used to flag and report bootstrapping failures.
21192 am_rc=0
21193 for am_mf
21194 do
21195 # Strip MF so we end up with the name of the file.
21196 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21197 # Check whether this is an Automake generated Makefile which includes
21198 # dependency-tracking related rules and includes.
21199 # Grep'ing the whole file directly is not great: AIX grep has a line
21200 # limit of 2048, but all sed's we know have understand at least 4000.
21201 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21202 || continue
21203 am_dirpart=`$as_dirname -- "$am_mf" ||
21204 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21205 X"$am_mf" : 'X\(//\)[^/]' \| \
21206 X"$am_mf" : 'X\(//\)$' \| \
21207 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21208 printf "%s\n" X"$am_mf" |
21209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21210 s//\1/
21211 q
21212 }
21213 /^X\(\/\/\)[^/].*/{
21214 s//\1/
21215 q
21216 }
21217 /^X\(\/\/\)$/{
21218 s//\1/
21219 q
21220 }
21221 /^X\(\/\).*/{
21222 s//\1/
21223 q
21224 }
21225 s/.*/./; q'`
21226 am_filepart=`$as_basename -- "$am_mf" ||
21227 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21228 X"$am_mf" : 'X\(//\)$' \| \
21229 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21230 printf "%s\n" X/"$am_mf" |
21231 sed '/^.*\/\([^/][^/]*\)\/*$/{
21232 s//\1/
21233 q
21234 }
21235 /^X\/\(\/\/\)$/{
21236 s//\1/
21237 q
21238 }
21239 /^X\/\(\/\).*/{
21240 s//\1/
21241 q
21242 }
21243 s/.*/./; q'`
21244 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21245 && sed -e '/# am--include-marker/d' "$am_filepart" \
21246 | $MAKE -f - am--depfiles" >&5
21247 (cd "$am_dirpart" \
21248 && sed -e '/# am--include-marker/d' "$am_filepart" \
21249 | $MAKE -f - am--depfiles) >&5 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } || am_rc=$?
21253 done
21254 if test $am_rc -ne 0; then
21255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21257 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21258 for automatic dependency tracking. If GNU make was not used, consider
21259 re-running the configure script with MAKE=\"gmake\" (or whatever is
21260 necessary). You can also try re-running configure with the
21261 '--disable-dependency-tracking' option to at least be able to build
21262 the package (albeit without support for automatic dependency tracking).
21263 See \`config.log' for more details" "$LINENO" 5; }
21264 fi
21265 { am_dirpart=; unset am_dirpart;}
21266 { am_filepart=; unset am_filepart;}
21267 { am_mf=; unset am_mf;}
21268 { am_rc=; unset am_rc;}
21269 rm -f conftest-deps.mk
21270 }
21271 ;;
21272 "libtool":C)
21273
21274 # See if we are running on zsh, and set the options that allow our
21275 # commands through without removal of \ escapes.
21276 if test -n "${ZSH_VERSION+set}"; then
21277 setopt NO_GLOB_SUBST
21278 fi
21279
21280 cfgfile=${ofile}T
21281 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21282 $RM "$cfgfile"
21283
21284 cat <<_LT_EOF >> "$cfgfile"
21285 #! $SHELL
21286 # Generated automatically by $as_me ($PACKAGE) $VERSION
21287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21288 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21289
21290 # Provide generalized library-building support services.
21291 # Written by Gordon Matzigkeit, 1996
21292
21293 # Copyright (C) 2014 Free Software Foundation, Inc.
21294 # This is free software; see the source for copying conditions. There is NO
21295 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21296
21297 # GNU Libtool is free software; you can redistribute it and/or modify
21298 # it under the terms of the GNU General Public License as published by
21299 # the Free Software Foundation; either version 2 of of the License, or
21300 # (at your option) any later version.
21301 #
21302 # As a special exception to the GNU General Public License, if you
21303 # distribute this file as part of a program or library that is built
21304 # using GNU Libtool, you may include this file under the same
21305 # distribution terms that you use for the rest of that program.
21306 #
21307 # GNU Libtool is distributed in the hope that it will be useful, but
21308 # WITHOUT ANY WARRANTY; without even the implied warranty of
21309 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21310 # GNU General Public License for more details.
21311 #
21312 # You should have received a copy of the GNU General Public License
21313 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21314
21315
21316 # The names of the tagged configurations supported by this script.
21317 available_tags=''
21318
21319 # Configured defaults for sys_lib_dlsearch_path munging.
21320 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21321
21322 # ### BEGIN LIBTOOL CONFIG
21323
21324 # Which release of libtool.m4 was used?
21325 macro_version=$macro_version
21326 macro_revision=$macro_revision
21327
21328 # Whether or not to build shared libraries.
21329 build_libtool_libs=$enable_shared
21330
21331 # Whether or not to build static libraries.
21332 build_old_libs=$enable_static
21333
21334 # What type of objects to build.
21335 pic_mode=$pic_mode
21336
21337 # Whether or not to optimize for fast installation.
21338 fast_install=$enable_fast_install
21339
21340 # Shared archive member basename,for filename based shared library versioning on AIX.
21341 shared_archive_member_spec=$shared_archive_member_spec
21342
21343 # Shell to use when invoking shell scripts.
21344 SHELL=$lt_SHELL
21345
21346 # An echo program that protects backslashes.
21347 ECHO=$lt_ECHO
21348
21349 # The PATH separator for the build system.
21350 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21351
21352 # The host system.
21353 host_alias=$host_alias
21354 host=$host
21355 host_os=$host_os
21356
21357 # The build system.
21358 build_alias=$build_alias
21359 build=$build
21360 build_os=$build_os
21361
21362 # A sed program that does not truncate output.
21363 SED=$lt_SED
21364
21365 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21366 Xsed="\$SED -e 1s/^X//"
21367
21368 # A grep program that handles long lines.
21369 GREP=$lt_GREP
21370
21371 # An ERE matcher.
21372 EGREP=$lt_EGREP
21373
21374 # A literal string matcher.
21375 FGREP=$lt_FGREP
21376
21377 # A BSD- or MS-compatible name lister.
21378 NM=$lt_NM
21379
21380 # Whether we need soft or hard links.
21381 LN_S=$lt_LN_S
21382
21383 # What is the maximum length of a command?
21384 max_cmd_len=$max_cmd_len
21385
21386 # Object file suffix (normally "o").
21387 objext=$ac_objext
21388
21389 # Executable file suffix (normally "").
21390 exeext=$exeext
21391
21392 # whether the shell understands "unset".
21393 lt_unset=$lt_unset
21394
21395 # turn spaces into newlines.
21396 SP2NL=$lt_lt_SP2NL
21397
21398 # turn newlines into spaces.
21399 NL2SP=$lt_lt_NL2SP
21400
21401 # convert \$build file names to \$host format.
21402 to_host_file_cmd=$lt_cv_to_host_file_cmd
21403
21404 # convert \$build files to toolchain format.
21405 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21406
21407 # A file(cmd) program that detects file types.
21408 FILECMD=$lt_FILECMD
21409
21410 # An object symbol dumper.
21411 OBJDUMP=$lt_OBJDUMP
21412
21413 # Method to check whether dependent libraries are shared objects.
21414 deplibs_check_method=$lt_deplibs_check_method
21415
21416 # Command to use when deplibs_check_method = "file_magic".
21417 file_magic_cmd=$lt_file_magic_cmd
21418
21419 # How to find potential files when deplibs_check_method = "file_magic".
21420 file_magic_glob=$lt_file_magic_glob
21421
21422 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21423 want_nocaseglob=$lt_want_nocaseglob
21424
21425 # DLL creation program.
21426 DLLTOOL=$lt_DLLTOOL
21427
21428 # Command to associate shared and link libraries.
21429 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21430
21431 # The archiver.
21432 AR=$lt_AR
21433
21434 # Flags to create an archive (by configure).
21435 lt_ar_flags=$lt_ar_flags
21436
21437 # Flags to create an archive.
21438 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21439
21440 # How to feed a file listing to the archiver.
21441 archiver_list_spec=$lt_archiver_list_spec
21442
21443 # A symbol stripping program.
21444 STRIP=$lt_STRIP
21445
21446 # Commands used to install an old-style archive.
21447 RANLIB=$lt_RANLIB
21448 old_postinstall_cmds=$lt_old_postinstall_cmds
21449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21450
21451 # Whether to use a lock for old archive extraction.
21452 lock_old_archive_extraction=$lock_old_archive_extraction
21453
21454 # A C compiler.
21455 LTCC=$lt_CC
21456
21457 # LTCC compiler flags.
21458 LTCFLAGS=$lt_CFLAGS
21459
21460 # Take the output of nm and produce a listing of raw symbols and C names.
21461 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21462
21463 # Transform the output of nm in a proper C declaration.
21464 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21465
21466 # Transform the output of nm into a list of symbols to manually relocate.
21467 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21468
21469 # Transform the output of nm in a C name address pair.
21470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21471
21472 # Transform the output of nm in a C name address pair when lib prefix is needed.
21473 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21474
21475 # The name lister interface.
21476 nm_interface=$lt_lt_cv_nm_interface
21477
21478 # Specify filename containing input files for \$NM.
21479 nm_file_list_spec=$lt_nm_file_list_spec
21480
21481 # The root where to search for dependent libraries,and where our libraries should be installed.
21482 lt_sysroot=$lt_sysroot
21483
21484 # Command to truncate a binary pipe.
21485 lt_truncate_bin=$lt_lt_cv_truncate_bin
21486
21487 # The name of the directory that contains temporary libtool files.
21488 objdir=$objdir
21489
21490 # Used to examine libraries when file_magic_cmd begins with "file".
21491 MAGIC_CMD=$MAGIC_CMD
21492
21493 # Must we lock files when doing compilation?
21494 need_locks=$lt_need_locks
21495
21496 # Manifest tool.
21497 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21498
21499 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21500 DSYMUTIL=$lt_DSYMUTIL
21501
21502 # Tool to change global to local symbols on Mac OS X.
21503 NMEDIT=$lt_NMEDIT
21504
21505 # Tool to manipulate fat objects and archives on Mac OS X.
21506 LIPO=$lt_LIPO
21507
21508 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21509 OTOOL=$lt_OTOOL
21510
21511 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21512 OTOOL64=$lt_OTOOL64
21513
21514 # Old archive suffix (normally "a").
21515 libext=$libext
21516
21517 # Shared library suffix (normally ".so").
21518 shrext_cmds=$lt_shrext_cmds
21519
21520 # The commands to extract the exported symbol list from a shared archive.
21521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21522
21523 # Variables whose values should be saved in libtool wrapper scripts and
21524 # restored at link time.
21525 variables_saved_for_relink=$lt_variables_saved_for_relink
21526
21527 # Do we need the "lib" prefix for modules?
21528 need_lib_prefix=$need_lib_prefix
21529
21530 # Do we need a version for libraries?
21531 need_version=$need_version
21532
21533 # Library versioning type.
21534 version_type=$version_type
21535
21536 # Shared library runtime path variable.
21537 runpath_var=$runpath_var
21538
21539 # Shared library path variable.
21540 shlibpath_var=$shlibpath_var
21541
21542 # Is shlibpath searched before the hard-coded library search path?
21543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21544
21545 # Format of library name prefix.
21546 libname_spec=$lt_libname_spec
21547
21548 # List of archive names. First name is the real one, the rest are links.
21549 # The last name is the one that the linker finds with -lNAME
21550 library_names_spec=$lt_library_names_spec
21551
21552 # The coded name of the library, if different from the real name.
21553 soname_spec=$lt_soname_spec
21554
21555 # Permission mode override for installation of shared libraries.
21556 install_override_mode=$lt_install_override_mode
21557
21558 # Command to use after installation of a shared archive.
21559 postinstall_cmds=$lt_postinstall_cmds
21560
21561 # Command to use after uninstallation of a shared archive.
21562 postuninstall_cmds=$lt_postuninstall_cmds
21563
21564 # Commands used to finish a libtool library installation in a directory.
21565 finish_cmds=$lt_finish_cmds
21566
21567 # As "finish_cmds", except a single script fragment to be evaled but
21568 # not shown.
21569 finish_eval=$lt_finish_eval
21570
21571 # Whether we should hardcode library paths into libraries.
21572 hardcode_into_libs=$hardcode_into_libs
21573
21574 # Compile-time system search path for libraries.
21575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21576
21577 # Detected run-time system search path for libraries.
21578 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21579
21580 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21581 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21582
21583 # Whether dlopen is supported.
21584 dlopen_support=$enable_dlopen
21585
21586 # Whether dlopen of programs is supported.
21587 dlopen_self=$enable_dlopen_self
21588
21589 # Whether dlopen of statically linked programs is supported.
21590 dlopen_self_static=$enable_dlopen_self_static
21591
21592 # Commands to strip libraries.
21593 old_striplib=$lt_old_striplib
21594 striplib=$lt_striplib
21595
21596
21597 # The linker used to build libraries.
21598 LD=$lt_LD
21599
21600 # How to create reloadable object files.
21601 reload_flag=$lt_reload_flag
21602 reload_cmds=$lt_reload_cmds
21603
21604 # Commands used to build an old-style archive.
21605 old_archive_cmds=$lt_old_archive_cmds
21606
21607 # A language specific compiler.
21608 CC=$lt_compiler
21609
21610 # Is the compiler the GNU compiler?
21611 with_gcc=$GCC
21612
21613 # Compiler flag to turn off builtin functions.
21614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21615
21616 # Additional compiler flags for building library objects.
21617 pic_flag=$lt_lt_prog_compiler_pic
21618
21619 # How to pass a linker flag through the compiler.
21620 wl=$lt_lt_prog_compiler_wl
21621
21622 # Compiler flag to prevent dynamic linking.
21623 link_static_flag=$lt_lt_prog_compiler_static
21624
21625 # Does compiler simultaneously support -c and -o options?
21626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21627
21628 # Whether or not to add -lc for building shared libraries.
21629 build_libtool_need_lc=$archive_cmds_need_lc
21630
21631 # Whether or not to disallow shared libs when runtime libs are static.
21632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21633
21634 # Compiler flag to allow reflexive dlopens.
21635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21636
21637 # Compiler flag to generate shared objects directly from archives.
21638 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21639
21640 # Whether the compiler copes with passing no objects directly.
21641 compiler_needs_object=$lt_compiler_needs_object
21642
21643 # Create an old-style archive from a shared archive.
21644 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21645
21646 # Create a temporary old-style archive to link instead of a shared archive.
21647 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21648
21649 # Commands used to build a shared archive.
21650 archive_cmds=$lt_archive_cmds
21651 archive_expsym_cmds=$lt_archive_expsym_cmds
21652
21653 # Commands used to build a loadable module if different from building
21654 # a shared archive.
21655 module_cmds=$lt_module_cmds
21656 module_expsym_cmds=$lt_module_expsym_cmds
21657
21658 # Whether we are building with GNU ld or not.
21659 with_gnu_ld=$lt_with_gnu_ld
21660
21661 # Flag that allows shared libraries with undefined symbols to be built.
21662 allow_undefined_flag=$lt_allow_undefined_flag
21663
21664 # Flag that enforces no undefined symbols.
21665 no_undefined_flag=$lt_no_undefined_flag
21666
21667 # Flag to hardcode \$libdir into a binary during linking.
21668 # This must work even if \$libdir does not exist
21669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21670
21671 # Whether we need a single "-rpath" flag with a separated argument.
21672 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21673
21674 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21675 # DIR into the resulting binary.
21676 hardcode_direct=$hardcode_direct
21677
21678 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21679 # DIR into the resulting binary and the resulting library dependency is
21680 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21681 # library is relocated.
21682 hardcode_direct_absolute=$hardcode_direct_absolute
21683
21684 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21685 # into the resulting binary.
21686 hardcode_minus_L=$hardcode_minus_L
21687
21688 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21689 # into the resulting binary.
21690 hardcode_shlibpath_var=$hardcode_shlibpath_var
21691
21692 # Set to "yes" if building a shared library automatically hardcodes DIR
21693 # into the library and all subsequent libraries and executables linked
21694 # against it.
21695 hardcode_automatic=$hardcode_automatic
21696
21697 # Set to yes if linker adds runtime paths of dependent libraries
21698 # to runtime path list.
21699 inherit_rpath=$inherit_rpath
21700
21701 # Whether libtool must link a program against all its dependency libraries.
21702 link_all_deplibs=$link_all_deplibs
21703
21704 # Set to "yes" if exported symbols are required.
21705 always_export_symbols=$always_export_symbols
21706
21707 # The commands to list exported symbols.
21708 export_symbols_cmds=$lt_export_symbols_cmds
21709
21710 # Symbols that should not be listed in the preloaded symbols.
21711 exclude_expsyms=$lt_exclude_expsyms
21712
21713 # Symbols that must always be exported.
21714 include_expsyms=$lt_include_expsyms
21715
21716 # Commands necessary for linking programs (against libraries) with templates.
21717 prelink_cmds=$lt_prelink_cmds
21718
21719 # Commands necessary for finishing linking programs.
21720 postlink_cmds=$lt_postlink_cmds
21721
21722 # Specify filename containing input files.
21723 file_list_spec=$lt_file_list_spec
21724
21725 # How to hardcode a shared library path into an executable.
21726 hardcode_action=$hardcode_action
21727
21728 # ### END LIBTOOL CONFIG
21729
21730 _LT_EOF
21731
21732 cat <<'_LT_EOF' >> "$cfgfile"
21733
21734 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21735
21736 # func_munge_path_list VARIABLE PATH
21737 # -----------------------------------
21738 # VARIABLE is name of variable containing _space_ separated list of
21739 # directories to be munged by the contents of PATH, which is string
21740 # having a format:
21741 # "DIR[:DIR]:"
21742 # string "DIR[ DIR]" will be prepended to VARIABLE
21743 # ":DIR[:DIR]"
21744 # string "DIR[ DIR]" will be appended to VARIABLE
21745 # "DIRP[:DIRP]::[DIRA:]DIRA"
21746 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21747 # "DIRA[ DIRA]" will be appended to VARIABLE
21748 # "DIR[:DIR]"
21749 # VARIABLE will be replaced by "DIR[ DIR]"
21750 func_munge_path_list ()
21751 {
21752 case x$2 in
21753 x)
21754 ;;
21755 *:)
21756 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21757 ;;
21758 x:*)
21759 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21760 ;;
21761 *::*)
21762 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21763 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21764 ;;
21765 *)
21766 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21767 ;;
21768 esac
21769 }
21770
21771
21772 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21773 func_cc_basename ()
21774 {
21775 for cc_temp in $*""; do
21776 case $cc_temp in
21777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21779 \-*) ;;
21780 *) break;;
21781 esac
21782 done
21783 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21784 }
21785
21786
21787 # ### END FUNCTIONS SHARED WITH CONFIGURE
21788
21789 _LT_EOF
21790
21791 case $host_os in
21792 aix3*)
21793 cat <<\_LT_EOF >> "$cfgfile"
21794 # AIX sometimes has problems with the GCC collect2 program. For some
21795 # reason, if we set the COLLECT_NAMES environment variable, the problems
21796 # vanish in a puff of smoke.
21797 if test set != "${COLLECT_NAMES+set}"; then
21798 COLLECT_NAMES=
21799 export COLLECT_NAMES
21800 fi
21801 _LT_EOF
21802 ;;
21803 esac
21804
21805
21806
21807 ltmain=$ac_aux_dir/ltmain.sh
21808
21809
21810 # We use sed instead of cat because bash on DJGPP gets confused if
21811 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21812 # text mode, it properly converts lines to CR/LF. This bash problem
21813 # is reportedly fixed, but why not run on old versions too?
21814 $SED '$q' "$ltmain" >> "$cfgfile" \
21815 || (rm -f "$cfgfile"; exit 1)
21816
21817 mv -f "$cfgfile" "$ofile" ||
21818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21819 chmod +x "$ofile"
21820
21821 ;;
21822
21823 esac
21824 done # for ac_tag
21825
21826
21827 as_fn_exit 0
21828 _ACEOF
21829 ac_clean_files=$ac_clean_files_save
21830
21831 test $ac_write_fail = 0 ||
21832 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21833
21834
21835 # configure is writing to config.log, and then calls config.status.
21836 # config.status does its own redirection, appending to config.log.
21837 # Unfortunately, on DOS this fails, as config.log is still kept open
21838 # by configure, so config.status won't be able to write to it; its
21839 # output is simply discarded. So we exec the FD to /dev/null,
21840 # effectively closing config.log, so it can be properly (re)opened and
21841 # appended to by config.status. When coming back to configure, we
21842 # need to make the FD available again.
21843 if test "$no_create" != yes; then
21844 ac_cs_success=:
21845 ac_config_status_args=
21846 test "$silent" = yes &&
21847 ac_config_status_args="$ac_config_status_args --quiet"
21848 exec 5>/dev/null
21849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21850 exec 5>>config.log
21851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21852 # would make configure fail if this is the last instruction.
21853 $ac_cs_success || as_fn_exit 1
21854 fi
21855 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21857 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21858 fi
21859
21860
21861