Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-input-wacom 1.2.4.
4 #
5 # Report bugs to <https://github.com/linuxwacom/xf86-input-wacom/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 [email protected] and
279 $0: https://github.com/linuxwacom/xf86-input-wacom/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='xf86-input-wacom'
624 PACKAGE_TARNAME='xf86-input-wacom'
625 PACKAGE_VERSION='1.2.4'
626 PACKAGE_STRING='xf86-input-wacom 1.2.4'
627 PACKAGE_BUGREPORT='https://github.com/linuxwacom/xf86-input-wacom/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 HAVE_UDEV_RULES_DIR_FALSE
668 HAVE_UDEV_RULES_DIR_TRUE
669 UDEV_RULES_DIR
670 HAVE_SYSTEMD_UNIT_DIR_FALSE
671 HAVE_SYSTEMD_UNIT_DIR_TRUE
672 SYSTEMD_UNIT_DIR
673 UNITTESTS_FALSE
674 UNITTESTS_TRUE
675 FUZZINTERFACE_FALSE
676 FUZZINTERFACE_TRUE
677 USE_HAL_FDI_PREPROBE_QUIRK_FALSE
678 USE_HAL_FDI_PREPROBE_QUIRK_TRUE
679 HAL_SET_PROPERTY
680 LSHAL
681 HAS_XORG_CONF_DIR_FALSE
682 HAS_XORG_CONF_DIR_TRUE
683 configdir
684 inputdir
685 DRIVER_NAME
686 sdkdir
687 UDEV_LIBS
688 UDEV_CFLAGS
689 X11_LIBS
690 X11_CFLAGS
691 XORG_LIBS
692 XORG_CFLAGS
693 MAN_SUBSTS
694 XORG_MAN_PAGE
695 ADMIN_MAN_DIR
696 DRIVER_MAN_DIR
697 MISC_MAN_DIR
698 FILE_MAN_DIR
699 LIB_MAN_DIR
700 APP_MAN_DIR
701 ADMIN_MAN_SUFFIX
702 DRIVER_MAN_SUFFIX
703 MISC_MAN_SUFFIX
704 FILE_MAN_SUFFIX
705 LIB_MAN_SUFFIX
706 APP_MAN_SUFFIX
707 INSTALL_CMD
708 PKG_CONFIG_LIBDIR
709 PKG_CONFIG_PATH
710 PKG_CONFIG
711 CHANGELOG_CMD
712 STRICT_CFLAGS
713 CWARNFLAGS
714 BASE_CFLAGS
715 AM_CFLAGS
716 LT_SYS_LIBRARY_PATH
717 OTOOL64
718 OTOOL
719 LIPO
720 NMEDIT
721 DSYMUTIL
722 MANIFEST_TOOL
723 RANLIB
724 ac_ct_AR
725 AR
726 DLLTOOL
727 OBJDUMP
728 LN_S
729 NM
730 ac_ct_DUMPBIN
731 DUMPBIN
732 LD
733 FGREP
734 EGREP
735 GREP
736 SED
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 LIBTOOL
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__include
754 DEPDIR
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 MAINT
763 MAINTAINER_MODE_FALSE
764 MAINTAINER_MODE_TRUE
765 AM_BACKSLASH
766 AM_DEFAULT_VERBOSITY
767 AM_DEFAULT_V
768 AM_V
769 CSCOPE
770 ETAGS
771 CTAGS
772 am__untar
773 am__tar
774 AMTAR
775 am__leading_dot
776 SET_MAKE
777 AWK
778 mkdir_p
779 MKDIR_P
780 INSTALL_STRIP_PROGRAM
781 STRIP
782 install_sh
783 MAKEINFO
784 AUTOHEADER
785 AUTOMAKE
786 AUTOCONF
787 ACLOCAL
788 VERSION
789 PACKAGE
790 CYGPATH_W
791 am__isrc
792 INSTALL_DATA
793 INSTALL_SCRIPT
794 INSTALL_PROGRAM
795 target_alias
796 host_alias
797 build_alias
798 LIBS
799 ECHO_T
800 ECHO_N
801 ECHO_C
802 DEFS
803 mandir
804 localedir
805 libdir
806 psdir
807 pdfdir
808 dvidir
809 htmldir
810 infodir
811 docdir
812 oldincludedir
813 includedir
814 runstatedir
815 localstatedir
816 sharedstatedir
817 sysconfdir
818 datadir
819 datarootdir
820 libexecdir
821 sbindir
822 bindir
823 program_transform_name
824 prefix
825 exec_prefix
826 PACKAGE_URL
827 PACKAGE_BUGREPORT
828 PACKAGE_STRING
829 PACKAGE_VERSION
830 PACKAGE_TARNAME
831 PACKAGE_NAME
832 PATH_SEPARATOR
833 SHELL
834 am__quote'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_silent_rules
839 enable_maintainer_mode
840 enable_dependency_tracking
841 enable_static
842 enable_shared
843 with_pic
844 enable_fast_install
845 with_aix_soname
846 with_gnu_ld
847 with_sysroot
848 enable_libtool_lock
849 enable_selective_werror
850 enable_strict_compilation
851 with_sdkdir
852 enable_debug
853 with_xorg_module_dir
854 with_xorg_conf_dir
855 enable_hal_fdi_preprobe_quirk
856 enable_fuzz_interface
857 enable_unit_tests
858 with_systemd_unit_dir
859 with_udev_rules_dir
860 '
861 ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 LT_SYS_LIBRARY_PATH
870 PKG_CONFIG
871 PKG_CONFIG_PATH
872 PKG_CONFIG_LIBDIR
873 XORG_CFLAGS
874 XORG_LIBS
875 X11_CFLAGS
876 X11_LIBS
877 UDEV_CFLAGS
878 UDEV_LIBS'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 runstatedir='${localstatedir}/run'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
929
930 ac_prev=
931 ac_dashdash=
932 for ac_option
933 do
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
937 ac_prev=
938 continue
939 fi
940
941 case $ac_option in
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *=) ac_optarg= ;;
944 *) ac_optarg=yes ;;
945 esac
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: \`$ac_useropt'"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1008
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -runstatedir | --runstatedir | --runstatedi | --runstated \
1169 | --runstate | --runstat | --runsta | --runst | --runs \
1170 | --run | --ru | --r)
1171 ac_prev=runstatedir ;;
1172 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1173 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1174 | --run=* | --ru=* | --r=*)
1175 runstatedir=$ac_optarg ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: \`$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: \`$ac_useropt'"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1271
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1274 ;;
1275
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1285
1286 *)
1287 # FIXME: should be removed in autoconf 3.0.
1288 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 ;;
1293
1294 esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir runstatedir
1315 do
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345 fi
1346
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350 test "$silent" = yes && exec 6>/dev/null
1351
1352
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 printf "%s\n" X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1391 fi
1392 else
1393 ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures xf86-input-wacom 1.2.4 to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root
1477 [DATAROOTDIR/doc/xf86-input-wacom]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1482 _ACEOF
1483
1484 cat <<\_ACEOF
1485
1486 Program names:
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1490
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of xf86-input-wacom 1.2.4:";;
1500 esac
1501 cat <<\_ACEOF
1502
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-silent-rules less verbose build output (undo: "make V=1")
1508 --disable-silent-rules verbose build output (undo: "make V=0")
1509 --disable-maintainer-mode
1510 disable make rules and dependencies not useful (and
1511 sometimes confusing) to the casual installer
1512 --enable-dependency-tracking
1513 do not reject slow dependency extractors
1514 --disable-dependency-tracking
1515 speeds up one-time build
1516 --enable-static[=PKGS] build static libraries [default=no]
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --disable-selective-werror
1522 Turn off selective compiler errors. (default:
1523 enabled)
1524 --enable-strict-compilation
1525 Enable all warnings from compiler and make them
1526 errors (default: disabled)
1527 --disable-debug Disable debugging (default: enabled)
1528 --enable-hal-fdi-preprobe-quirk
1529 Install HAL workaround for devices with unsupported
1530 EV_SW events (default: auto)
1531 --enable-fuzz-interface Enable xsetwacom to take NUL-separated commands from
1532 stdin (default: no)
1533 --enable-unit-tests Enable unit-tests (default: auto)
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1539 both]
1540 --with-aix-soname=aix|svr4|both
1541 shared library versioning (aka "SONAME") variant to
1542 provide on AIX, [default=aix].
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1544 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1545 compiler's sysroot if not specified).
1546
1547 --with-xorg-module-dir=DIR
1548 Default xorg module directory
1549 [[default=$libdir/xorg/modules]]
1550 --with-xorg-conf-dir=DIR
1551 Default xorg.conf.d directory [[default=from
1552 $PKG_CONFIG xorg-server]]
1553 --with-systemd-unit-dir=DIR
1554 systemd unit directory
1555 [[default=$libdir/systemd/system]]
1556 --with-udev-rules-dir=DIR
1557 Directory where udev expects its rules files
1558 [[default=$libdir/udev/rules.d]]
1559
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 LT_SYS_LIBRARY_PATH
1569 User-defined run-time library search path.
1570 PKG_CONFIG path to pkg-config utility
1571 PKG_CONFIG_PATH
1572 directories to add to pkg-config's search path
1573 PKG_CONFIG_LIBDIR
1574 path overriding pkg-config's built-in search path
1575 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1576 XORG_LIBS linker flags for XORG, overriding pkg-config
1577 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1578 X11_LIBS linker flags for X11, overriding pkg-config
1579 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1580 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1581
1582 Use these variables to override the choices made by `configure' or to help
1583 it to find libraries and programs with nonstandard names/locations.
1584
1585 Report bugs to <https://github.com/linuxwacom/xf86-input-wacom/issues/>.
1586 _ACEOF
1587 ac_status=$?
1588 fi
1589
1590 if test "$ac_init_help" = "recursive"; then
1591 # If there are subdirs, report their specific --help.
1592 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1593 test -d "$ac_dir" ||
1594 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1595 continue
1596 ac_builddir=.
1597
1598 case "$ac_dir" in
1599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *)
1601 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1602 # A ".." for each directory in $ac_dir_suffix.
1603 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1604 case $ac_top_builddir_sub in
1605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 esac ;;
1608 esac
1609 ac_abs_top_builddir=$ac_pwd
1610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611 # for backward compatibility:
1612 ac_top_builddir=$ac_top_build_prefix
1613
1614 case $srcdir in
1615 .) # We are building in place.
1616 ac_srcdir=.
1617 ac_top_srcdir=$ac_top_builddir_sub
1618 ac_abs_top_srcdir=$ac_pwd ;;
1619 [\\/]* | ?:[\\/]* ) # Absolute name.
1620 ac_srcdir=$srcdir$ac_dir_suffix;
1621 ac_top_srcdir=$srcdir
1622 ac_abs_top_srcdir=$srcdir ;;
1623 *) # Relative name.
1624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1625 ac_top_srcdir=$ac_top_build_prefix$srcdir
1626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 esac
1628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629
1630 cd "$ac_dir" || { ac_status=$?; continue; }
1631 # Check for configure.gnu first; this name is used for a wrapper for
1632 # Metaconfig's "Configure" on case-insensitive file systems.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1639 else
1640 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
1643 done
1644 fi
1645
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648 cat <<\_ACEOF
1649 xf86-input-wacom configure 1.2.4
1650 generated by GNU Autoconf 2.71
1651
1652 Copyright (C) 2021 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1655 _ACEOF
1656 exit
1657 fi
1658
1659 ## ------------------------ ##
1660 ## Autoconf initialization. ##
1661 ## ------------------------ ##
1662
1663 # ac_fn_c_try_compile LINENO
1664 # --------------------------
1665 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext conftest.beam
1670 if { { ac_try="$ac_compile"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 printf "%s\n" "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext
1689 then :
1690 ac_retval=0
1691 else $as_nop
1692 printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_compile
1701
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 printf %s "checking for $2... " >&6; }
1711 if eval test \${$3+y}
1712 then :
1713 printf %s "(cached) " >&6
1714 else $as_nop
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"
1721 then :
1722 eval "$3=yes"
1723 else $as_nop
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1727 fi
1728 eval ac_res=\$$3
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 printf "%s\n" "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_compile
1734
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 printf "%s\n" "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 test -x conftest$ac_exeext
1763 }
1764 then :
1765 ac_retval=0
1766 else $as_nop
1767 printf "%s\n" "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_link
1781
1782 # ac_fn_c_check_func LINENO FUNC VAR
1783 # ----------------------------------
1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1785 ac_fn_c_check_func ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 printf %s "checking for $2... " >&6; }
1790 if eval test \${$3+y}
1791 then :
1792 printf %s "(cached) " >&6
1793 else $as_nop
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798 #define $2 innocuous_$2
1799
1800 /* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below. */
1802
1803 #include <limits.h>
1804 #undef $2
1805
1806 /* Override any GCC internal prototype to avoid an error.
1807 Use char because int might match the return type of a GCC
1808 builtin and then its argument prototype would still apply. */
1809 #ifdef __cplusplus
1810 extern "C"
1811 #endif
1812 char $2 ();
1813 /* The GNU C library defines this for functions which it implements
1814 to always fail with ENOSYS. Some functions are actually named
1815 something starting with __ and the normal name is an alias. */
1816 #if defined __stub_$2 || defined __stub___$2
1817 choke me
1818 #endif
1819
1820 int
1821 main (void)
1822 {
1823 return $2 ();
1824 ;
1825 return 0;
1826 }
1827 _ACEOF
1828 if ac_fn_c_try_link "$LINENO"
1829 then :
1830 eval "$3=yes"
1831 else $as_nop
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1835 conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 printf "%s\n" "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_func
1843
1844 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1845 # ------------------------------------------------------------------
1846 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1847 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1848 ac_fn_check_decl ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 as_decl_name=`echo $2|sed 's/ *(.*//'`
1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1853 printf %s "checking whether $as_decl_name is declared... " >&6; }
1854 if eval test \${$3+y}
1855 then :
1856 printf %s "(cached) " >&6
1857 else $as_nop
1858 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1859 eval ac_save_FLAGS=\$$6
1860 as_fn_append $6 " $5"
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 $4
1864 int
1865 main (void)
1866 {
1867 #ifndef $as_decl_name
1868 #ifdef __cplusplus
1869 (void) $as_decl_use;
1870 #else
1871 (void) $as_decl_name;
1872 #endif
1873 #endif
1874
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"
1880 then :
1881 eval "$3=yes"
1882 else $as_nop
1883 eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1886 eval $6=\$ac_save_FLAGS
1887
1888 fi
1889 eval ac_res=\$$3
1890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 printf "%s\n" "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_check_decl
1895 ac_configure_args_raw=
1896 for ac_arg
1897 do
1898 case $ac_arg in
1899 *\'*)
1900 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 esac
1902 as_fn_append ac_configure_args_raw " '$ac_arg'"
1903 done
1904
1905 case $ac_configure_args_raw in
1906 *$as_nl*)
1907 ac_safe_unquote= ;;
1908 *)
1909 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1910 ac_unsafe_a="$ac_unsafe_z#~"
1911 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1912 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1913 esac
1914
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1918
1919 It was created by xf86-input-wacom $as_me 1.2.4, which was
1920 generated by GNU Autoconf 2.71. Invocation command line was
1921
1922 $ $0$ac_configure_args_raw
1923
1924 _ACEOF
1925 exec 5>>config.log
1926 {
1927 cat <<_ASUNAME
1928 ## --------- ##
1929 ## Platform. ##
1930 ## --------- ##
1931
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948
1949 _ASUNAME
1950
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954 IFS=$as_save_IFS
1955 case $as_dir in #(((
1956 '') as_dir=./ ;;
1957 */) ;;
1958 *) as_dir=$as_dir/ ;;
1959 esac
1960 printf "%s\n" "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1963
1964 } >&5
1965
1966 cat >&5 <<_ACEOF
1967
1968
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1972
1973 _ACEOF
1974
1975
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1986 do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 2)
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
2016 as_fn_append ac_configure_args " '$ac_arg'"
2017 ;;
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2023
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Sanitize IFS.
2031 IFS=" "" $as_nl"
2032 # Save into config.log some information that might help in debugging.
2033 {
2034 echo
2035
2036 printf "%s\n" "## ---------------- ##
2037 ## Cache variables. ##
2038 ## ---------------- ##"
2039 echo
2040 # The following way of writing the cache mishandles newlines in values,
2041 (
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
2047 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 *) { eval $ac_var=; unset $ac_var;} ;;
2054 esac ;;
2055 esac
2056 done
2057 (set) 2>&1 |
2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
2060 sed -n \
2061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
2064 *)
2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066 ;;
2067 esac |
2068 sort
2069 )
2070 echo
2071
2072 printf "%s\n" "## ----------------- ##
2073 ## Output variables. ##
2074 ## ----------------- ##"
2075 echo
2076 for ac_var in $ac_subst_vars
2077 do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 printf "%s\n" "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2085
2086 if test -n "$ac_subst_files"; then
2087 printf "%s\n" "## ------------------- ##
2088 ## File substitutions. ##
2089 ## ------------------- ##"
2090 echo
2091 for ac_var in $ac_subst_files
2092 do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 printf "%s\n" "$ac_var='\''$ac_val'\''"
2098 done | sort
2099 echo
2100 fi
2101
2102 if test -s confdefs.h; then
2103 printf "%s\n" "## ----------- ##
2104 ## confdefs.h. ##
2105 ## ----------- ##"
2106 echo
2107 cat confdefs.h
2108 echo
2109 fi
2110 test "$ac_signal" != 0 &&
2111 printf "%s\n" "$as_me: caught signal $ac_signal"
2112 printf "%s\n" "$as_me: exit $exit_status"
2113 } >&5
2114 rm -f core *.core core.conftest.* &&
2115 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2116 exit $exit_status
2117 ' 0
2118 for ac_signal in 1 2 13 15; do
2119 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2120 done
2121 ac_signal=0
2122
2123 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2124 rm -f -r conftest* confdefs.h
2125
2126 printf "%s\n" "/* confdefs.h */" > confdefs.h
2127
2128 # Predefined preprocessor variables.
2129
2130 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2131
2132 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2133
2134 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2135
2136 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2137
2138 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2139
2140 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2141
2142
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2145 if test -n "$CONFIG_SITE"; then
2146 ac_site_files="$CONFIG_SITE"
2147 elif test "x$prefix" != xNONE; then
2148 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2149 else
2150 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2151 fi
2152
2153 for ac_site_file in $ac_site_files
2154 do
2155 case $ac_site_file in #(
2156 */*) :
2157 ;; #(
2158 *) :
2159 ac_site_file=./$ac_site_file ;;
2160 esac
2161 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2164 sed 's/^/| /' "$ac_site_file" >&5
2165 . "$ac_site_file" \
2166 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2168 as_fn_error $? "failed to load site script $ac_site_file
2169 See \`config.log' for more details" "$LINENO" 5; }
2170 fi
2171 done
2172
2173 if test -r "$cache_file"; then
2174 # Some versions of bash will fail to source /dev/null (special files
2175 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2179 case $cache_file in
2180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";;
2182 esac
2183 fi
2184 else
2185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2187 >$cache_file
2188 fi
2189
2190 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2191 # Test code for whether the C compiler supports C89 (global declarations)
2192 ac_c_conftest_c89_globals='
2193 /* Does the compiler advertise C89 conformance?
2194 Do not test the value of __STDC__, because some compilers set it to 0
2195 while being otherwise adequately conformant. */
2196 #if !defined __STDC__
2197 # error "Compiler does not advertise C89 conformance"
2198 #endif
2199
2200 #include <stddef.h>
2201 #include <stdarg.h>
2202 struct stat;
2203 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2204 struct buf { int x; };
2205 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2206 static char *e (p, i)
2207 char **p;
2208 int i;
2209 {
2210 return p[i];
2211 }
2212 static char *f (char * (*g) (char **, int), char **p, ...)
2213 {
2214 char *s;
2215 va_list v;
2216 va_start (v,p);
2217 s = g (p, va_arg (v,int));
2218 va_end (v);
2219 return s;
2220 }
2221
2222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2223 function prototypes and stuff, but not \xHH hex character constants.
2224 These do not provoke an error unfortunately, instead are silently treated
2225 as an "x". The following induces an error, until -std is added to get
2226 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2227 array size at least. It is necessary to write \x00 == 0 to get something
2228 that is true only with -std. */
2229 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2230
2231 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2232 inside strings and character constants. */
2233 #define FOO(x) '\''x'\''
2234 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2235
2236 int test (int i, double x);
2237 struct s1 {int (*f) (int a);};
2238 struct s2 {int (*f) (double a);};
2239 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2240 int, int);'
2241
2242 # Test code for whether the C compiler supports C89 (body of main).
2243 ac_c_conftest_c89_main='
2244 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2245 '
2246
2247 # Test code for whether the C compiler supports C99 (global declarations)
2248 ac_c_conftest_c99_globals='
2249 // Does the compiler advertise C99 conformance?
2250 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2251 # error "Compiler does not advertise C99 conformance"
2252 #endif
2253
2254 #include <stdbool.h>
2255 extern int puts (const char *);
2256 extern int printf (const char *, ...);
2257 extern int dprintf (int, const char *, ...);
2258 extern void *malloc (size_t);
2259
2260 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2261 // dprintf is used instead of fprintf to avoid needing to declare
2262 // FILE and stderr.
2263 #define debug(...) dprintf (2, __VA_ARGS__)
2264 #define showlist(...) puts (#__VA_ARGS__)
2265 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2266 static void
2267 test_varargs_macros (void)
2268 {
2269 int x = 1234;
2270 int y = 5678;
2271 debug ("Flag");
2272 debug ("X = %d\n", x);
2273 showlist (The first, second, and third items.);
2274 report (x>y, "x is %d but y is %d", x, y);
2275 }
2276
2277 // Check long long types.
2278 #define BIG64 18446744073709551615ull
2279 #define BIG32 4294967295ul
2280 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2281 #if !BIG_OK
2282 #error "your preprocessor is broken"
2283 #endif
2284 #if BIG_OK
2285 #else
2286 #error "your preprocessor is broken"
2287 #endif
2288 static long long int bignum = -9223372036854775807LL;
2289 static unsigned long long int ubignum = BIG64;
2290
2291 struct incomplete_array
2292 {
2293 int datasize;
2294 double data[];
2295 };
2296
2297 struct named_init {
2298 int number;
2299 const wchar_t *name;
2300 double average;
2301 };
2302
2303 typedef const char *ccp;
2304
2305 static inline int
2306 test_restrict (ccp restrict text)
2307 {
2308 // See if C++-style comments work.
2309 // Iterate through items via the restricted pointer.
2310 // Also check for declarations in for loops.
2311 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2312 continue;
2313 return 0;
2314 }
2315
2316 // Check varargs and va_copy.
2317 static bool
2318 test_varargs (const char *format, ...)
2319 {
2320 va_list args;
2321 va_start (args, format);
2322 va_list args_copy;
2323 va_copy (args_copy, args);
2324
2325 const char *str = "";
2326 int number = 0;
2327 float fnumber = 0;
2328
2329 while (*format)
2330 {
2331 switch (*format++)
2332 {
2333 case '\''s'\'': // string
2334 str = va_arg (args_copy, const char *);
2335 break;
2336 case '\''d'\'': // int
2337 number = va_arg (args_copy, int);
2338 break;
2339 case '\''f'\'': // float
2340 fnumber = va_arg (args_copy, double);
2341 break;
2342 default:
2343 break;
2344 }
2345 }
2346 va_end (args_copy);
2347 va_end (args);
2348
2349 return *str && number && fnumber;
2350 }
2351 '
2352
2353 # Test code for whether the C compiler supports C99 (body of main).
2354 ac_c_conftest_c99_main='
2355 // Check bool.
2356 _Bool success = false;
2357 success |= (argc != 0);
2358
2359 // Check restrict.
2360 if (test_restrict ("String literal") == 0)
2361 success = true;
2362 char *restrict newvar = "Another string";
2363
2364 // Check varargs.
2365 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2366 test_varargs_macros ();
2367
2368 // Check flexible array members.
2369 struct incomplete_array *ia =
2370 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2371 ia->datasize = 10;
2372 for (int i = 0; i < ia->datasize; ++i)
2373 ia->data[i] = i * 1.234;
2374
2375 // Check named initializers.
2376 struct named_init ni = {
2377 .number = 34,
2378 .name = L"Test wide string",
2379 .average = 543.34343,
2380 };
2381
2382 ni.number = 58;
2383
2384 int dynamic_array[ni.number];
2385 dynamic_array[0] = argv[0][0];
2386 dynamic_array[ni.number - 1] = 543;
2387
2388 // work around unused variable warnings
2389 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2390 || dynamic_array[ni.number - 1] != 543);
2391 '
2392
2393 # Test code for whether the C compiler supports C11 (global declarations)
2394 ac_c_conftest_c11_globals='
2395 // Does the compiler advertise C11 conformance?
2396 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2397 # error "Compiler does not advertise C11 conformance"
2398 #endif
2399
2400 // Check _Alignas.
2401 char _Alignas (double) aligned_as_double;
2402 char _Alignas (0) no_special_alignment;
2403 extern char aligned_as_int;
2404 char _Alignas (0) _Alignas (int) aligned_as_int;
2405
2406 // Check _Alignof.
2407 enum
2408 {
2409 int_alignment = _Alignof (int),
2410 int_array_alignment = _Alignof (int[100]),
2411 char_alignment = _Alignof (char)
2412 };
2413 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2414
2415 // Check _Noreturn.
2416 int _Noreturn does_not_return (void) { for (;;) continue; }
2417
2418 // Check _Static_assert.
2419 struct test_static_assert
2420 {
2421 int x;
2422 _Static_assert (sizeof (int) <= sizeof (long int),
2423 "_Static_assert does not work in struct");
2424 long int y;
2425 };
2426
2427 // Check UTF-8 literals.
2428 #define u8 syntax error!
2429 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2430
2431 // Check duplicate typedefs.
2432 typedef long *long_ptr;
2433 typedef long int *long_ptr;
2434 typedef long_ptr long_ptr;
2435
2436 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2437 struct anonymous
2438 {
2439 union {
2440 struct { int i; int j; };
2441 struct { int k; long int l; } w;
2442 };
2443 int m;
2444 } v1;
2445 '
2446
2447 # Test code for whether the C compiler supports C11 (body of main).
2448 ac_c_conftest_c11_main='
2449 _Static_assert ((offsetof (struct anonymous, i)
2450 == offsetof (struct anonymous, w.k)),
2451 "Anonymous union alignment botch");
2452 v1.i = 2;
2453 v1.w.k = 5;
2454 ok |= v1.i != 5;
2455 '
2456
2457 # Test code for whether the C compiler supports C11 (complete).
2458 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2459 ${ac_c_conftest_c99_globals}
2460 ${ac_c_conftest_c11_globals}
2461
2462 int
2463 main (int argc, char **argv)
2464 {
2465 int ok = 0;
2466 ${ac_c_conftest_c89_main}
2467 ${ac_c_conftest_c99_main}
2468 ${ac_c_conftest_c11_main}
2469 return ok;
2470 }
2471 "
2472
2473 # Test code for whether the C compiler supports C99 (complete).
2474 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2475 ${ac_c_conftest_c99_globals}
2476
2477 int
2478 main (int argc, char **argv)
2479 {
2480 int ok = 0;
2481 ${ac_c_conftest_c89_main}
2482 ${ac_c_conftest_c99_main}
2483 return ok;
2484 }
2485 "
2486
2487 # Test code for whether the C compiler supports C89 (complete).
2488 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2489
2490 int
2491 main (int argc, char **argv)
2492 {
2493 int ok = 0;
2494 ${ac_c_conftest_c89_main}
2495 return ok;
2496 }
2497 "
2498
2499 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2500 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2501 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2502 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2503 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2504 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2505 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2506 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2507 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2508 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2509
2510 # Auxiliary files required by this configure script.
2511 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2512
2513 # Locations in which to look for auxiliary files.
2514 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2515
2516 # Search for a directory containing all of the required auxiliary files,
2517 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2518 # If we don't find one directory that contains all the files we need,
2519 # we report the set of missing files from the *first* directory in
2520 # $ac_aux_dir_candidates and give up.
2521 ac_missing_aux_files=""
2522 ac_first_candidate=:
2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 as_found=false
2526 for as_dir in $ac_aux_dir_candidates
2527 do
2528 IFS=$as_save_IFS
2529 case $as_dir in #(((
2530 '') as_dir=./ ;;
2531 */) ;;
2532 *) as_dir=$as_dir/ ;;
2533 esac
2534 as_found=:
2535
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2537 ac_aux_dir_found=yes
2538 ac_install_sh=
2539 for ac_aux in $ac_aux_files
2540 do
2541 # As a special case, if "install-sh" is required, that requirement
2542 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2543 # and $ac_install_sh is set appropriately for whichever one is found.
2544 if test x"$ac_aux" = x"install-sh"
2545 then
2546 if test -f "${as_dir}install-sh"; then
2547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2548 ac_install_sh="${as_dir}install-sh -c"
2549 elif test -f "${as_dir}install.sh"; then
2550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2551 ac_install_sh="${as_dir}install.sh -c"
2552 elif test -f "${as_dir}shtool"; then
2553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2554 ac_install_sh="${as_dir}shtool install -c"
2555 else
2556 ac_aux_dir_found=no
2557 if $ac_first_candidate; then
2558 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2559 else
2560 break
2561 fi
2562 fi
2563 else
2564 if test -f "${as_dir}${ac_aux}"; then
2565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2566 else
2567 ac_aux_dir_found=no
2568 if $ac_first_candidate; then
2569 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2570 else
2571 break
2572 fi
2573 fi
2574 fi
2575 done
2576 if test "$ac_aux_dir_found" = yes; then
2577 ac_aux_dir="$as_dir"
2578 break
2579 fi
2580 ac_first_candidate=false
2581
2582 as_found=false
2583 done
2584 IFS=$as_save_IFS
2585 if $as_found
2586 then :
2587
2588 else $as_nop
2589 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2590 fi
2591
2592
2593 # These three variables are undocumented and unsupported,
2594 # and are intended to be withdrawn in a future Autoconf release.
2595 # They can cause serious problems if a builder's source tree is in a directory
2596 # whose full name contains unusual characters.
2597 if test -f "${ac_aux_dir}config.guess"; then
2598 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2599 fi
2600 if test -f "${ac_aux_dir}config.sub"; then
2601 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2602 fi
2603 if test -f "$ac_aux_dir/configure"; then
2604 ac_configure="$SHELL ${ac_aux_dir}configure"
2605 fi
2606
2607 # Check that the precious variables saved in the cache have kept the same
2608 # value.
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2616 set,)
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,set)
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2624 ,);;
2625 *)
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2634 else
2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2638 fi
2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2643 fi;;
2644 esac
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2647 case $ac_new_val in
2648 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2650 esac
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 esac
2655 fi
2656 done
2657 if $ac_cache_corrupted; then
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2663 and start over" "$LINENO" 5
2664 fi
2665 ## -------------------- ##
2666 ## Main body of script. ##
2667 ## -------------------- ##
2668
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674
2675
2676
2677
2678 ac_config_headers="$ac_config_headers config.h"
2679
2680
2681 # Initialize Automake
2682 am__api_version='1.16'
2683
2684
2685
2686 # Find a good install program. We prefer a C program (faster),
2687 # so one script is as good as another. But avoid the broken or
2688 # incompatible versions:
2689 # SysV /etc/install, /usr/sbin/install
2690 # SunOS /usr/etc/install
2691 # IRIX /sbin/install
2692 # AIX /bin/install
2693 # AmigaOS /C/install, which installs bootblocks on floppy discs
2694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2697 # OS/2's system install, which has a completely different semantic
2698 # ./install, which can be erroneously created by make from ./install.sh.
2699 # Reject install programs that cannot install multiple files.
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2701 printf %s "checking for a BSD-compatible install... " >&6; }
2702 if test -z "$INSTALL"; then
2703 if test ${ac_cv_path_install+y}
2704 then :
2705 printf %s "(cached) " >&6
2706 else $as_nop
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 case $as_dir in #(((
2712 '') as_dir=./ ;;
2713 */) ;;
2714 *) as_dir=$as_dir/ ;;
2715 esac
2716 # Account for fact that we put trailing slashes in our PATH walk.
2717 case $as_dir in #((
2718 ./ | /[cC]/* | \
2719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2720 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2721 /usr/ucb/* ) ;;
2722 *)
2723 # OSF1 and SCO ODT 3.0 have their own names for install.
2724 # Don't use installbsd from OSF since it installs stuff as root
2725 # by default.
2726 for ac_prog in ginstall scoinst install; do
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2729 if test $ac_prog = install &&
2730 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731 # AIX install. It has an incompatible calling convention.
2732 :
2733 elif test $ac_prog = install &&
2734 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735 # program-specific install script used by HP pwplus--don't use.
2736 :
2737 else
2738 rm -rf conftest.one conftest.two conftest.dir
2739 echo one > conftest.one
2740 echo two > conftest.two
2741 mkdir conftest.dir
2742 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2743 test -s conftest.one && test -s conftest.two &&
2744 test -s conftest.dir/conftest.one &&
2745 test -s conftest.dir/conftest.two
2746 then
2747 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2748 break 3
2749 fi
2750 fi
2751 fi
2752 done
2753 done
2754 ;;
2755 esac
2756
2757 done
2758 IFS=$as_save_IFS
2759
2760 rm -rf conftest.one conftest.two conftest.dir
2761
2762 fi
2763 if test ${ac_cv_path_install+y}; then
2764 INSTALL=$ac_cv_path_install
2765 else
2766 # As a last resort, use the slow shell script. Don't cache a
2767 # value for INSTALL within a source directory, because that will
2768 # break other packages using the cache if that directory is
2769 # removed, or if the value is a relative name.
2770 INSTALL=$ac_install_sh
2771 fi
2772 fi
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2774 printf "%s\n" "$INSTALL" >&6; }
2775
2776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2777 # It thinks the first close brace ends the variable substitution.
2778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2779
2780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2781
2782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2783
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2785 printf %s "checking whether build environment is sane... " >&6; }
2786 # Reject unsafe characters in $srcdir or the absolute working directory
2787 # name. Accept space and tab only in the latter.
2788 am_lf='
2789 '
2790 case `pwd` in
2791 *[\\\"\#\$\&\'\`$am_lf]*)
2792 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2793 esac
2794 case $srcdir in
2795 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2796 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2797 esac
2798
2799 # Do 'set' in a subshell so we don't clobber the current shell's
2800 # arguments. Must try -L first in case configure is actually a
2801 # symlink; some systems play weird games with the mod time of symlinks
2802 # (eg FreeBSD returns the mod time of the symlink's containing
2803 # directory).
2804 if (
2805 am_has_slept=no
2806 for am_try in 1 2; do
2807 echo "timestamp, slept: $am_has_slept" > conftest.file
2808 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2809 if test "$*" = "X"; then
2810 # -L didn't work.
2811 set X `ls -t "$srcdir/configure" conftest.file`
2812 fi
2813 if test "$*" != "X $srcdir/configure conftest.file" \
2814 && test "$*" != "X conftest.file $srcdir/configure"; then
2815
2816 # If neither matched, then we have a broken ls. This can happen
2817 # if, for instance, CONFIG_SHELL is bash and it inherits a
2818 # broken ls alias from the environment. This has actually
2819 # happened. Such a system could not be considered "sane".
2820 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2821 alias in your environment" "$LINENO" 5
2822 fi
2823 if test "$2" = conftest.file || test $am_try -eq 2; then
2824 break
2825 fi
2826 # Just in case.
2827 sleep 1
2828 am_has_slept=yes
2829 done
2830 test "$2" = conftest.file
2831 )
2832 then
2833 # Ok.
2834 :
2835 else
2836 as_fn_error $? "newly created file is older than distributed files!
2837 Check your system clock" "$LINENO" 5
2838 fi
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840 printf "%s\n" "yes" >&6; }
2841 # If we didn't sleep, we still need to ensure time stamps of config.status and
2842 # generated files are strictly newer.
2843 am_sleep_pid=
2844 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2845 ( sleep 1 ) &
2846 am_sleep_pid=$!
2847 fi
2848
2849 rm -f conftest.file
2850
2851 test "$program_prefix" != NONE &&
2852 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2853 # Use a double $ so make ignores it.
2854 test "$program_suffix" != NONE &&
2855 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2856 # Double any \ or $.
2857 # By default was `s,x,x', remove it if useless.
2858 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2859 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2860
2861
2862 # Expand $ac_aux_dir to an absolute path.
2863 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2864
2865
2866 if test x"${MISSING+set}" != xset; then
2867 MISSING="\${SHELL} '$am_aux_dir/missing'"
2868 fi
2869 # Use eval to expand $SHELL
2870 if eval "$MISSING --is-lightweight"; then
2871 am_missing_run="$MISSING "
2872 else
2873 am_missing_run=
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2875 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2876 fi
2877
2878 if test x"${install_sh+set}" != xset; then
2879 case $am_aux_dir in
2880 *\ * | *\ *)
2881 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2882 *)
2883 install_sh="\${SHELL} $am_aux_dir/install-sh"
2884 esac
2885 fi
2886
2887 # Installed binaries are usually stripped using 'strip' when the user
2888 # run "make install-strip". However 'strip' might not be the right
2889 # tool to use in cross-compilation environments, therefore Automake
2890 # will honor the 'STRIP' environment variable to overrule this program.
2891 if test "$cross_compiling" != no; then
2892 if test -n "$ac_tool_prefix"; then
2893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}strip; ac_word=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s "checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_STRIP+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else $as_nop
2901 if test -n "$STRIP"; then
2902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 STRIP=$ac_cv_prog_STRIP
2926 if test -n "$STRIP"; then
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928 printf "%s\n" "$STRIP" >&6; }
2929 else
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2932 fi
2933
2934
2935 fi
2936 if test -z "$ac_cv_prog_STRIP"; then
2937 ac_ct_STRIP=$STRIP
2938 # Extract the first word of "strip", so it can be a program name with args.
2939 set dummy strip; ac_word=$2
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 printf %s "checking for $ac_word... " >&6; }
2942 if test ${ac_cv_prog_ac_ct_STRIP+y}
2943 then :
2944 printf %s "(cached) " >&6
2945 else $as_nop
2946 if test -n "$ac_ct_STRIP"; then
2947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 case $as_dir in #(((
2954 '') as_dir=./ ;;
2955 */) ;;
2956 *) as_dir=$as_dir/ ;;
2957 esac
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_ac_ct_STRIP="strip"
2961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2971 if test -n "$ac_ct_STRIP"; then
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2973 printf "%s\n" "$ac_ct_STRIP" >&6; }
2974 else
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 printf "%s\n" "no" >&6; }
2977 fi
2978
2979 if test "x$ac_ct_STRIP" = x; then
2980 STRIP=":"
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 STRIP=$ac_ct_STRIP
2989 fi
2990 else
2991 STRIP="$ac_cv_prog_STRIP"
2992 fi
2993
2994 fi
2995 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2996
2997
2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2999 printf %s "checking for a race-free mkdir -p... " >&6; }
3000 if test -z "$MKDIR_P"; then
3001 if test ${ac_cv_path_mkdir+y}
3002 then :
3003 printf %s "(cached) " >&6
3004 else $as_nop
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3007 do
3008 IFS=$as_save_IFS
3009 case $as_dir in #(((
3010 '') as_dir=./ ;;
3011 */) ;;
3012 *) as_dir=$as_dir/ ;;
3013 esac
3014 for ac_prog in mkdir gmkdir; do
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3017 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3018 'mkdir ('*'coreutils) '* | \
3019 'BusyBox '* | \
3020 'mkdir (fileutils) '4.1*)
3021 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3022 break 3;;
3023 esac
3024 done
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030
3031 test -d ./--version && rmdir ./--version
3032 if test ${ac_cv_path_mkdir+y}; then
3033 MKDIR_P="$ac_cv_path_mkdir -p"
3034 else
3035 # As a last resort, use the slow shell script. Don't cache a
3036 # value for MKDIR_P within a source directory, because that will
3037 # break other packages using the cache if that directory is
3038 # removed, or if the value is a relative name.
3039 MKDIR_P="$ac_install_sh -d"
3040 fi
3041 fi
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3043 printf "%s\n" "$MKDIR_P" >&6; }
3044
3045 for ac_prog in gawk mawk nawk awk
3046 do
3047 # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 printf %s "checking for $ac_word... " >&6; }
3051 if test ${ac_cv_prog_AWK+y}
3052 then :
3053 printf %s "(cached) " >&6
3054 else $as_nop
3055 if test -n "$AWK"; then
3056 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 case $as_dir in #(((
3063 '') as_dir=./ ;;
3064 */) ;;
3065 *) as_dir=$as_dir/ ;;
3066 esac
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_AWK="$ac_prog"
3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 AWK=$ac_cv_prog_AWK
3080 if test -n "$AWK"; then
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3082 printf "%s\n" "$AWK" >&6; }
3083 else
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 printf "%s\n" "no" >&6; }
3086 fi
3087
3088
3089 test -n "$AWK" && break
3090 done
3091
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3093 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3094 set x ${MAKE-make}
3095 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3096 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3097 then :
3098 printf %s "(cached) " >&6
3099 else $as_nop
3100 cat >conftest.make <<\_ACEOF
3101 SHELL = /bin/sh
3102 all:
3103 @echo '@@@%%%=$(MAKE)=@@@%%%'
3104 _ACEOF
3105 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3106 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3107 *@@@%%%=?*=@@@%%%*)
3108 eval ac_cv_prog_make_${ac_make}_set=yes;;
3109 *)
3110 eval ac_cv_prog_make_${ac_make}_set=no;;
3111 esac
3112 rm -f conftest.make
3113 fi
3114 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116 printf "%s\n" "yes" >&6; }
3117 SET_MAKE=
3118 else
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 printf "%s\n" "no" >&6; }
3121 SET_MAKE="MAKE=${MAKE-make}"
3122 fi
3123
3124 rm -rf .tst 2>/dev/null
3125 mkdir .tst 2>/dev/null
3126 if test -d .tst; then
3127 am__leading_dot=.
3128 else
3129 am__leading_dot=_
3130 fi
3131 rmdir .tst 2>/dev/null
3132
3133 # Check whether --enable-silent-rules was given.
3134 if test ${enable_silent_rules+y}
3135 then :
3136 enableval=$enable_silent_rules;
3137 fi
3138
3139 case $enable_silent_rules in # (((
3140 yes) AM_DEFAULT_VERBOSITY=0;;
3141 no) AM_DEFAULT_VERBOSITY=1;;
3142 *) AM_DEFAULT_VERBOSITY=1;;
3143 esac
3144 am_make=${MAKE-make}
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3146 printf %s "checking whether $am_make supports nested variables... " >&6; }
3147 if test ${am_cv_make_support_nested_variables+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else $as_nop
3151 if printf "%s\n" 'TRUE=$(BAR$(V))
3152 BAR0=false
3153 BAR1=true
3154 V=1
3155 am__doit:
3156 @$(TRUE)
3157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3158 am_cv_make_support_nested_variables=yes
3159 else
3160 am_cv_make_support_nested_variables=no
3161 fi
3162 fi
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3165 if test $am_cv_make_support_nested_variables = yes; then
3166 AM_V='$(V)'
3167 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3168 else
3169 AM_V=$AM_DEFAULT_VERBOSITY
3170 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3171 fi
3172 AM_BACKSLASH='\'
3173
3174 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3175 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3176 # is not polluted with repeated "-I."
3177 am__isrc=' -I$(srcdir)'
3178 # test to see if srcdir already configured
3179 if test -f $srcdir/config.status; then
3180 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3181 fi
3182 fi
3183
3184 # test whether we have cygpath
3185 if test -z "$CYGPATH_W"; then
3186 if (cygpath --version) >/dev/null 2>/dev/null; then
3187 CYGPATH_W='cygpath -w'
3188 else
3189 CYGPATH_W=echo
3190 fi
3191 fi
3192
3193
3194 # Define the identity of the package.
3195 PACKAGE='xf86-input-wacom'
3196 VERSION='1.2.4'
3197
3198
3199 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3200
3201
3202 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3203
3204 # Some tools Automake needs.
3205
3206 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3207
3208
3209 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3210
3211
3212 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3213
3214
3215 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3216
3217
3218 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3219
3220 # For better backward compatibility. To be removed once Automake 1.9.x
3221 # dies out for good. For more background, see:
3222 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3223 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3224 mkdir_p='$(MKDIR_P)'
3225
3226 # We need awk for the "check" target (and possibly the TAP driver). The
3227 # system "awk" is bad on some platforms.
3228 # Always define AMTAR for backward compatibility. Yes, it's still used
3229 # in the wild :-( We should find a proper way to deprecate it ...
3230 AMTAR='$${TAR-tar}'
3231
3232
3233 # We'll loop over all known methods to create a tar archive until one works.
3234 _am_tools='gnutar pax cpio none'
3235
3236 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3237
3238
3239
3240
3241
3242 # Variables for tags utilities; see am/tags.am
3243 if test -z "$CTAGS"; then
3244 CTAGS=ctags
3245 fi
3246
3247 if test -z "$ETAGS"; then
3248 ETAGS=etags
3249 fi
3250
3251 if test -z "$CSCOPE"; then
3252 CSCOPE=cscope
3253 fi
3254
3255
3256
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes. So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK; else
3266 cat >&2 <<'END'
3267 Oops!
3268
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present. This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3273
3274 Please tell [email protected] about your system, including the value
3275 of your $PATH and any error possibly output before this message. This
3276 can help us improve future automake versions.
3277
3278 END
3279 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3280 echo 'Configuration will proceed anyway, since you have set the' >&2
3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282 echo >&2
3283 else
3284 cat >&2 <<'END'
3285 Aborting the configuration process, to ensure you take notice of the issue.
3286
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3289
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3293
3294 END
3295 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3296 fi
3297 fi
3298
3299
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3301 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3302 # Check whether --enable-maintainer-mode was given.
3303 if test ${enable_maintainer_mode+y}
3304 then :
3305 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3306 else $as_nop
3307 USE_MAINTAINER_MODE=yes
3308 fi
3309
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3311 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3312 if test $USE_MAINTAINER_MODE = yes; then
3313 MAINTAINER_MODE_TRUE=
3314 MAINTAINER_MODE_FALSE='#'
3315 else
3316 MAINTAINER_MODE_TRUE='#'
3317 MAINTAINER_MODE_FALSE=
3318 fi
3319
3320 MAINT=$MAINTAINER_MODE_TRUE
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332 DEPDIR="${am__leading_dot}deps"
3333
3334 ac_config_commands="$ac_config_commands depfiles"
3335
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3337 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3338 cat > confinc.mk << 'END'
3339 am__doit:
3340 @echo this is the am__doit target >confinc.out
3341 .PHONY: am__doit
3342 END
3343 am__include="#"
3344 am__quote=
3345 # BSD make does it like this.
3346 echo '.include "confinc.mk" # ignored' > confmf.BSD
3347 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3348 echo 'include confinc.mk # ignored' > confmf.GNU
3349 _am_result=no
3350 for s in GNU BSD; do
3351 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3352 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356 case $?:`cat confinc.out 2>/dev/null` in #(
3357 '0:this is the am__doit target') :
3358 case $s in #(
3359 BSD) :
3360 am__include='.include' am__quote='"' ;; #(
3361 *) :
3362 am__include='include' am__quote='' ;;
3363 esac ;; #(
3364 *) :
3365 ;;
3366 esac
3367 if test "$am__include" != "#"; then
3368 _am_result="yes ($s style)"
3369 break
3370 fi
3371 done
3372 rm -f confinc.* confmf.*
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3374 printf "%s\n" "${_am_result}" >&6; }
3375
3376 # Check whether --enable-dependency-tracking was given.
3377 if test ${enable_dependency_tracking+y}
3378 then :
3379 enableval=$enable_dependency_tracking;
3380 fi
3381
3382 if test "x$enable_dependency_tracking" != xno; then
3383 am_depcomp="$ac_aux_dir/depcomp"
3384 AMDEPBACKSLASH='\'
3385 am__nodep='_no'
3386 fi
3387 if test "x$enable_dependency_tracking" != xno; then
3388 AMDEP_TRUE=
3389 AMDEP_FALSE='#'
3390 else
3391 AMDEP_TRUE='#'
3392 AMDEP_FALSE=
3393 fi
3394
3395
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 printf %s "checking for $ac_word... " >&6; }
3406 if test ${ac_cv_prog_CC+y}
3407 then :
3408 printf %s "(cached) " >&6
3409 else $as_nop
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 case $as_dir in #(((
3418 '') as_dir=./ ;;
3419 */) ;;
3420 *) as_dir=$as_dir/ ;;
3421 esac
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 printf "%s\n" "$CC" >&6; }
3438 else
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 printf "%s\n" "no" >&6; }
3441 fi
3442
3443
3444 fi
3445 if test -z "$ac_cv_prog_CC"; then
3446 ac_ct_CC=$CC
3447 # Extract the first word of "gcc", so it can be a program name with args.
3448 set dummy gcc; ac_word=$2
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 printf %s "checking for $ac_word... " >&6; }
3451 if test ${ac_cv_prog_ac_ct_CC+y}
3452 then :
3453 printf %s "(cached) " >&6
3454 else $as_nop
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 case $as_dir in #(((
3463 '') as_dir=./ ;;
3464 */) ;;
3465 *) as_dir=$as_dir/ ;;
3466 esac
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_ac_ct_CC="gcc"
3470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 printf "%s\n" "$ac_ct_CC" >&6; }
3483 else
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 printf "%s\n" "no" >&6; }
3486 fi
3487
3488 if test "x$ac_ct_CC" = x; then
3489 CC=""
3490 else
3491 case $cross_compiling:$ac_tool_warned in
3492 yes:)
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495 ac_tool_warned=yes ;;
3496 esac
3497 CC=$ac_ct_CC
3498 fi
3499 else
3500 CC="$ac_cv_prog_CC"
3501 fi
3502
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}cc; ac_word=$2
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 printf %s "checking for $ac_word... " >&6; }
3509 if test ${ac_cv_prog_CC+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else $as_nop
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 case $as_dir in #(((
3521 '') as_dir=./ ;;
3522 */) ;;
3523 *) as_dir=$as_dir/ ;;
3524 esac
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_CC="${ac_tool_prefix}cc"
3528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531 done
3532 done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 CC=$ac_cv_prog_CC
3538 if test -n "$CC"; then
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 printf "%s\n" "$CC" >&6; }
3541 else
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 printf "%s\n" "no" >&6; }
3544 fi
3545
3546
3547 fi
3548 fi
3549 if test -z "$CC"; then
3550 # Extract the first word of "cc", so it can be a program name with args.
3551 set dummy cc; ac_word=$2
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 printf %s "checking for $ac_word... " >&6; }
3554 if test ${ac_cv_prog_CC+y}
3555 then :
3556 printf %s "(cached) " >&6
3557 else $as_nop
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 ac_prog_rejected=no
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 case $as_dir in #(((
3567 '') as_dir=./ ;;
3568 */) ;;
3569 *) as_dir=$as_dir/ ;;
3570 esac
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3573 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3574 ac_prog_rejected=yes
3575 continue
3576 fi
3577 ac_cv_prog_CC="cc"
3578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3579 break 2
3580 fi
3581 done
3582 done
3583 IFS=$as_save_IFS
3584
3585 if test $ac_prog_rejected = yes; then
3586 # We found a bogon in the path, so make sure we never use it.
3587 set dummy $ac_cv_prog_CC
3588 shift
3589 if test $# != 0; then
3590 # We chose a different compiler from the bogus one.
3591 # However, it has the same basename, so the bogon will be chosen
3592 # first if we set CC to just the basename; use the full file name.
3593 shift
3594 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3595 fi
3596 fi
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 printf "%s\n" "$CC" >&6; }
3603 else
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 printf "%s\n" "no" >&6; }
3606 fi
3607
3608
3609 fi
3610 if test -z "$CC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 for ac_prog in cl.exe
3613 do
3614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 printf %s "checking for $ac_word... " >&6; }
3618 if test ${ac_cv_prog_CC+y}
3619 then :
3620 printf %s "(cached) " >&6
3621 else $as_nop
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 case $as_dir in #(((
3630 '') as_dir=./ ;;
3631 */) ;;
3632 *) as_dir=$as_dir/ ;;
3633 esac
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640 done
3641 done
3642 IFS=$as_save_IFS
3643
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 printf "%s\n" "$CC" >&6; }
3650 else
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3653 fi
3654
3655
3656 test -n "$CC" && break
3657 done
3658 fi
3659 if test -z "$CC"; then
3660 ac_ct_CC=$CC
3661 for ac_prog in cl.exe
3662 do
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 printf %s "checking for $ac_word... " >&6; }
3667 if test ${ac_cv_prog_ac_ct_CC+y}
3668 then :
3669 printf %s "(cached) " >&6
3670 else $as_nop
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677 IFS=$as_save_IFS
3678 case $as_dir in #(((
3679 '') as_dir=./ ;;
3680 */) ;;
3681 *) as_dir=$as_dir/ ;;
3682 esac
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_ac_ct_CC="$ac_prog"
3686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696 if test -n "$ac_ct_CC"; then
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3698 printf "%s\n" "$ac_ct_CC" >&6; }
3699 else
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 printf "%s\n" "no" >&6; }
3702 fi
3703
3704
3705 test -n "$ac_ct_CC" && break
3706 done
3707
3708 if test "x$ac_ct_CC" = x; then
3709 CC=""
3710 else
3711 case $cross_compiling:$ac_tool_warned in
3712 yes:)
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3715 ac_tool_warned=yes ;;
3716 esac
3717 CC=$ac_ct_CC
3718 fi
3719 fi
3720
3721 fi
3722 if test -z "$CC"; then
3723 if test -n "$ac_tool_prefix"; then
3724 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}clang; ac_word=$2
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 printf %s "checking for $ac_word... " >&6; }
3728 if test ${ac_cv_prog_CC+y}
3729 then :
3730 printf %s "(cached) " >&6
3731 else $as_nop
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738 IFS=$as_save_IFS
3739 case $as_dir in #(((
3740 '') as_dir=./ ;;
3741 */) ;;
3742 *) as_dir=$as_dir/ ;;
3743 esac
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_CC="${ac_tool_prefix}clang"
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 CC=$ac_cv_prog_CC
3757 if test -n "$CC"; then
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3759 printf "%s\n" "$CC" >&6; }
3760 else
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 printf "%s\n" "no" >&6; }
3763 fi
3764
3765
3766 fi
3767 if test -z "$ac_cv_prog_CC"; then
3768 ac_ct_CC=$CC
3769 # Extract the first word of "clang", so it can be a program name with args.
3770 set dummy clang; ac_word=$2
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 printf %s "checking for $ac_word... " >&6; }
3773 if test ${ac_cv_prog_ac_ct_CC+y}
3774 then :
3775 printf %s "(cached) " >&6
3776 else $as_nop
3777 if test -n "$ac_ct_CC"; then
3778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783 IFS=$as_save_IFS
3784 case $as_dir in #(((
3785 '') as_dir=./ ;;
3786 */) ;;
3787 *) as_dir=$as_dir/ ;;
3788 esac
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_ac_ct_CC="clang"
3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3802 if test -n "$ac_ct_CC"; then
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3804 printf "%s\n" "$ac_ct_CC" >&6; }
3805 else
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 printf "%s\n" "no" >&6; }
3808 fi
3809
3810 if test "x$ac_ct_CC" = x; then
3811 CC=""
3812 else
3813 case $cross_compiling:$ac_tool_warned in
3814 yes:)
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3817 ac_tool_warned=yes ;;
3818 esac
3819 CC=$ac_ct_CC
3820 fi
3821 else
3822 CC="$ac_cv_prog_CC"
3823 fi
3824
3825 fi
3826
3827
3828 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "no acceptable C compiler found in \$PATH
3831 See \`config.log' for more details" "$LINENO" 5; }
3832
3833 # Provide some information about the compiler.
3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3835 set X $ac_compile
3836 ac_compiler=$2
3837 for ac_option in --version -v -V -qversion -version; do
3838 { { ac_try="$ac_compiler $ac_option >&5"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 printf "%s\n" "$ac_try_echo"; } >&5
3845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3846 ac_status=$?
3847 if test -s conftest.err; then
3848 sed '10a\
3849 ... rest of stderr output deleted ...
3850 10q' conftest.err >conftest.er1
3851 cat conftest.er1 >&5
3852 fi
3853 rm -f conftest.er1 conftest.err
3854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3856 done
3857
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860
3861 int
3862 main (void)
3863 {
3864
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3873 # of exeext.
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3875 printf %s "checking whether the C compiler works... " >&6; }
3876 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880
3881 ac_rmfiles=
3882 for ac_file in $ac_files
3883 do
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3887 esac
3888 done
3889 rm -f $ac_rmfiles
3890
3891 if { { ac_try="$ac_link_default"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 printf "%s\n" "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3899 ac_status=$?
3900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 then :
3903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3906 # so that the user can short-circuit this test for compilers unknown to
3907 # Autoconf.
3908 for ac_file in $ac_files ''
3909 do
3910 test -f "$ac_file" || continue
3911 case $ac_file in
3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3913 ;;
3914 [ab].out )
3915 # We found the default executable, but exeext='' is most
3916 # certainly right.
3917 break;;
3918 *.* )
3919 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3920 then :; else
3921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 fi
3923 # We set ac_cv_exeext here because the later test for it is not
3924 # safe: cross compilers may not add the suffix if given an `-o'
3925 # argument, so we may need to know it at that point already.
3926 # Even if this section looks crufty: it has the advantage of
3927 # actually working.
3928 break;;
3929 * )
3930 break;;
3931 esac
3932 done
3933 test "$ac_cv_exeext" = no && ac_cv_exeext=
3934
3935 else $as_nop
3936 ac_file=''
3937 fi
3938 if test -z "$ac_file"
3939 then :
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 printf "%s\n" "no" >&6; }
3942 printf "%s\n" "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error 77 "C compiler cannot create executables
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 else $as_nop
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951 printf "%s\n" "yes" >&6; }
3952 fi
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3954 printf %s "checking for C compiler default output file name... " >&6; }
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3956 printf "%s\n" "$ac_file" >&6; }
3957 ac_exeext=$ac_cv_exeext
3958
3959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3960 ac_clean_files=$ac_clean_files_save
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962 printf %s "checking for suffix of executables... " >&6; }
3963 if { { ac_try="$ac_link"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 printf "%s\n" "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3971 ac_status=$?
3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 then :
3975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3977 # work properly (i.e., refer to `conftest.exe'), while it won't with
3978 # `rm'.
3979 for ac_file in conftest.exe conftest conftest.*; do
3980 test -f "$ac_file" || continue
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3984 break;;
3985 * ) break;;
3986 esac
3987 done
3988 else $as_nop
3989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3992 See \`config.log' for more details" "$LINENO" 5; }
3993 fi
3994 rm -f conftest conftest$ac_cv_exeext
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3996 printf "%s\n" "$ac_cv_exeext" >&6; }
3997
3998 rm -f conftest.$ac_ext
3999 EXEEXT=$ac_cv_exeext
4000 ac_exeext=$EXEEXT
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003 #include <stdio.h>
4004 int
4005 main (void)
4006 {
4007 FILE *f = fopen ("conftest.out", "w");
4008 return ferror (f) || fclose (f) != 0;
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 ac_clean_files="$ac_clean_files conftest.out"
4015 # Check that the compiler produces executables we can run. If not, either
4016 # the compiler is broken, or we cross compile.
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4018 printf %s "checking whether we are cross compiling... " >&6; }
4019 if test "$cross_compiling" != yes; then
4020 { { ac_try="$ac_link"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 printf "%s\n" "$ac_try_echo"; } >&5
4027 (eval "$ac_link") 2>&5
4028 ac_status=$?
4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }
4031 if { ac_try='./conftest$ac_cv_exeext'
4032 { { case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 printf "%s\n" "$ac_try_echo"; } >&5
4038 (eval "$ac_try") 2>&5
4039 ac_status=$?
4040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; }; then
4042 cross_compiling=no
4043 else
4044 if test "$cross_compiling" = maybe; then
4045 cross_compiling=yes
4046 else
4047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error 77 "cannot run C compiled programs.
4050 If you meant to cross compile, use \`--host'.
4051 See \`config.log' for more details" "$LINENO" 5; }
4052 fi
4053 fi
4054 fi
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4056 printf "%s\n" "$cross_compiling" >&6; }
4057
4058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4059 ac_clean_files=$ac_clean_files_save
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4061 printf %s "checking for suffix of object files... " >&6; }
4062 if test ${ac_cv_objext+y}
4063 then :
4064 printf %s "(cached) " >&6
4065 else $as_nop
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068
4069 int
4070 main (void)
4071 {
4072
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.o conftest.obj
4078 if { { ac_try="$ac_compile"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 printf "%s\n" "$ac_try_echo"; } >&5
4085 (eval "$ac_compile") 2>&5
4086 ac_status=$?
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }
4089 then :
4090 for ac_file in conftest.o conftest.obj conftest.*; do
4091 test -f "$ac_file" || continue;
4092 case $ac_file in
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4095 break;;
4096 esac
4097 done
4098 else $as_nop
4099 printf "%s\n" "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error $? "cannot compute suffix of object files: cannot compile
4105 See \`config.log' for more details" "$LINENO" 5; }
4106 fi
4107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4108 fi
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4110 printf "%s\n" "$ac_cv_objext" >&6; }
4111 OBJEXT=$ac_cv_objext
4112 ac_objext=$OBJEXT
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4114 printf %s "checking whether the compiler supports GNU C... " >&6; }
4115 if test ${ac_cv_c_compiler_gnu+y}
4116 then :
4117 printf %s "(cached) " >&6
4118 else $as_nop
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main (void)
4124 {
4125 #ifndef __GNUC__
4126 choke me
4127 #endif
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"
4134 then :
4135 ac_compiler_gnu=yes
4136 else $as_nop
4137 ac_compiler_gnu=no
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4141
4142 fi
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4144 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147 if test $ac_compiler_gnu = yes; then
4148 GCC=yes
4149 else
4150 GCC=
4151 fi
4152 ac_test_CFLAGS=${CFLAGS+y}
4153 ac_save_CFLAGS=$CFLAGS
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4155 printf %s "checking whether $CC accepts -g... " >&6; }
4156 if test ${ac_cv_prog_cc_g+y}
4157 then :
4158 printf %s "(cached) " >&6
4159 else $as_nop
4160 ac_save_c_werror_flag=$ac_c_werror_flag
4161 ac_c_werror_flag=yes
4162 ac_cv_prog_cc_g=no
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166
4167 int
4168 main (void)
4169 {
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"
4176 then :
4177 ac_cv_prog_cc_g=yes
4178 else $as_nop
4179 CFLAGS=""
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main (void)
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"
4192 then :
4193
4194 else $as_nop
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4196 CFLAGS="-g"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main (void)
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"
4209 then :
4210 ac_cv_prog_cc_g=yes
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4217 ac_c_werror_flag=$ac_save_c_werror_flag
4218 fi
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4220 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4221 if test $ac_test_CFLAGS; then
4222 CFLAGS=$ac_save_CFLAGS
4223 elif test $ac_cv_prog_cc_g = yes; then
4224 if test "$GCC" = yes; then
4225 CFLAGS="-g -O2"
4226 else
4227 CFLAGS="-g"
4228 fi
4229 else
4230 if test "$GCC" = yes; then
4231 CFLAGS="-O2"
4232 else
4233 CFLAGS=
4234 fi
4235 fi
4236 ac_prog_cc_stdc=no
4237 if test x$ac_prog_cc_stdc = xno
4238 then :
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4240 printf %s "checking for $CC option to enable C11 features... " >&6; }
4241 if test ${ac_cv_prog_cc_c11+y}
4242 then :
4243 printf %s "(cached) " >&6
4244 else $as_nop
4245 ac_cv_prog_cc_c11=no
4246 ac_save_CC=$CC
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 $ac_c_conftest_c11_program
4250 _ACEOF
4251 for ac_arg in '' -std=gnu11
4252 do
4253 CC="$ac_save_CC $ac_arg"
4254 if ac_fn_c_try_compile "$LINENO"
4255 then :
4256 ac_cv_prog_cc_c11=$ac_arg
4257 fi
4258 rm -f core conftest.err conftest.$ac_objext conftest.beam
4259 test "x$ac_cv_prog_cc_c11" != "xno" && break
4260 done
4261 rm -f conftest.$ac_ext
4262 CC=$ac_save_CC
4263 fi
4264
4265 if test "x$ac_cv_prog_cc_c11" = xno
4266 then :
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4268 printf "%s\n" "unsupported" >&6; }
4269 else $as_nop
4270 if test "x$ac_cv_prog_cc_c11" = x
4271 then :
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273 printf "%s\n" "none needed" >&6; }
4274 else $as_nop
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4276 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4277 CC="$CC $ac_cv_prog_cc_c11"
4278 fi
4279 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4280 ac_prog_cc_stdc=c11
4281 fi
4282 fi
4283 if test x$ac_prog_cc_stdc = xno
4284 then :
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4286 printf %s "checking for $CC option to enable C99 features... " >&6; }
4287 if test ${ac_cv_prog_cc_c99+y}
4288 then :
4289 printf %s "(cached) " >&6
4290 else $as_nop
4291 ac_cv_prog_cc_c99=no
4292 ac_save_CC=$CC
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 $ac_c_conftest_c99_program
4296 _ACEOF
4297 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4298 do
4299 CC="$ac_save_CC $ac_arg"
4300 if ac_fn_c_try_compile "$LINENO"
4301 then :
4302 ac_cv_prog_cc_c99=$ac_arg
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.beam
4305 test "x$ac_cv_prog_cc_c99" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4309 fi
4310
4311 if test "x$ac_cv_prog_cc_c99" = xno
4312 then :
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 printf "%s\n" "unsupported" >&6; }
4315 else $as_nop
4316 if test "x$ac_cv_prog_cc_c99" = x
4317 then :
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4319 printf "%s\n" "none needed" >&6; }
4320 else $as_nop
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4322 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4323 CC="$CC $ac_cv_prog_cc_c99"
4324 fi
4325 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4326 ac_prog_cc_stdc=c99
4327 fi
4328 fi
4329 if test x$ac_prog_cc_stdc = xno
4330 then :
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4332 printf %s "checking for $CC option to enable C89 features... " >&6; }
4333 if test ${ac_cv_prog_cc_c89+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else $as_nop
4337 ac_cv_prog_cc_c89=no
4338 ac_save_CC=$CC
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 $ac_c_conftest_c89_program
4342 _ACEOF
4343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4344 do
4345 CC="$ac_save_CC $ac_arg"
4346 if ac_fn_c_try_compile "$LINENO"
4347 then :
4348 ac_cv_prog_cc_c89=$ac_arg
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.beam
4351 test "x$ac_cv_prog_cc_c89" != "xno" && break
4352 done
4353 rm -f conftest.$ac_ext
4354 CC=$ac_save_CC
4355 fi
4356
4357 if test "x$ac_cv_prog_cc_c89" = xno
4358 then :
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4360 printf "%s\n" "unsupported" >&6; }
4361 else $as_nop
4362 if test "x$ac_cv_prog_cc_c89" = x
4363 then :
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4365 printf "%s\n" "none needed" >&6; }
4366 else $as_nop
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4368 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4369 CC="$CC $ac_cv_prog_cc_c89"
4370 fi
4371 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4372 ac_prog_cc_stdc=c89
4373 fi
4374 fi
4375
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4389 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4390 if test ${am_cv_prog_cc_c_o+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else $as_nop
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 int
4398 main (void)
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 # Make sure it works both with $CC and with simple cc.
4406 # Following AC_PROG_CC_C_O, we do the test twice because some
4407 # compilers refuse to overwrite an existing .o file with -o,
4408 # though they will create one.
4409 am_cv_prog_cc_c_o=yes
4410 for am_i in 1 2; do
4411 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4412 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } \
4416 && test -f conftest2.$ac_objext; then
4417 : OK
4418 else
4419 am_cv_prog_cc_c_o=no
4420 break
4421 fi
4422 done
4423 rm -f core conftest*
4424 unset am_i
4425 fi
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4427 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4428 if test "$am_cv_prog_cc_c_o" != yes; then
4429 # Losing compiler, so override with the script.
4430 # FIXME: It is wrong to rewrite CC.
4431 # But if we don't then we get into trouble of one sort or another.
4432 # A longer-term fix would be to have automake use am__CC in this case,
4433 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4434 CC="$am_aux_dir/compile $CC"
4435 fi
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
4442
4443 depcc="$CC" am_compiler_list=
4444
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4446 printf %s "checking dependency style of $depcc... " >&6; }
4447 if test ${am_cv_CC_dependencies_compiler_type+y}
4448 then :
4449 printf %s "(cached) " >&6
4450 else $as_nop
4451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4452 # We make a subdir and do the tests there. Otherwise we can end up
4453 # making bogus files that we don't know about and never remove. For
4454 # instance it was reported that on HP-UX the gcc test will end up
4455 # making a dummy file named 'D' -- because '-MD' means "put the output
4456 # in D".
4457 rm -rf conftest.dir
4458 mkdir conftest.dir
4459 # Copy depcomp to subdir because otherwise we won't find it if we're
4460 # using a relative directory.
4461 cp "$am_depcomp" conftest.dir
4462 cd conftest.dir
4463 # We will build objects and dependencies in a subdirectory because
4464 # it helps to detect inapplicable dependency modes. For instance
4465 # both Tru64's cc and ICC support -MD to output dependencies as a
4466 # side effect of compilation, but ICC will put the dependencies in
4467 # the current directory while Tru64 will put them in the object
4468 # directory.
4469 mkdir sub
4470
4471 am_cv_CC_dependencies_compiler_type=none
4472 if test "$am_compiler_list" = ""; then
4473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4474 fi
4475 am__universal=false
4476 case " $depcc " in #(
4477 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4478 esac
4479
4480 for depmode in $am_compiler_list; do
4481 # Setup a source with many dependencies, because some compilers
4482 # like to wrap large dependency lists on column 80 (with \), and
4483 # we should not choose a depcomp mode which is confused by this.
4484 #
4485 # We need to recreate these files for each test, as the compiler may
4486 # overwrite some of them when testing with obscure command lines.
4487 # This happens at least with the AIX C compiler.
4488 : > sub/conftest.c
4489 for i in 1 2 3 4 5 6; do
4490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4491 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4492 # Solaris 10 /bin/sh.
4493 echo '/* dummy */' > sub/conftst$i.h
4494 done
4495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4496
4497 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4498 # mode. It turns out that the SunPro C++ compiler does not properly
4499 # handle '-M -o', and we need to detect this. Also, some Intel
4500 # versions had trouble with output in subdirs.
4501 am__obj=sub/conftest.${OBJEXT-o}
4502 am__minus_obj="-o $am__obj"
4503 case $depmode in
4504 gcc)
4505 # This depmode causes a compiler race in universal mode.
4506 test "$am__universal" = false || continue
4507 ;;
4508 nosideeffect)
4509 # After this tag, mechanisms are not by side-effect, so they'll
4510 # only be used when explicitly requested.
4511 if test "x$enable_dependency_tracking" = xyes; then
4512 continue
4513 else
4514 break
4515 fi
4516 ;;
4517 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4518 # This compiler won't grok '-c -o', but also, the minuso test has
4519 # not run yet. These depmodes are late enough in the game, and
4520 # so weak that their functioning should not be impacted.
4521 am__obj=conftest.${OBJEXT-o}
4522 am__minus_obj=
4523 ;;
4524 none) break ;;
4525 esac
4526 if depmode=$depmode \
4527 source=sub/conftest.c object=$am__obj \
4528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4529 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4530 >/dev/null 2>conftest.err &&
4531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4533 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4535 # icc doesn't choke on unknown options, it will just issue warnings
4536 # or remarks (even with -Werror). So we grep stderr for any message
4537 # that says an option was ignored or not supported.
4538 # When given -MP, icc 7.0 and 7.1 complain thusly:
4539 # icc: Command line warning: ignoring option '-M'; no argument required
4540 # The diagnosis changed in icc 8.0:
4541 # icc: Command line remark: option '-MP' not supported
4542 if (grep 'ignoring option' conftest.err ||
4543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4544 am_cv_CC_dependencies_compiler_type=$depmode
4545 break
4546 fi
4547 fi
4548 done
4549
4550 cd ..
4551 rm -rf conftest.dir
4552 else
4553 am_cv_CC_dependencies_compiler_type=none
4554 fi
4555
4556 fi
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4558 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4559 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4560
4561 if
4562 test "x$enable_dependency_tracking" != xno \
4563 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564 am__fastdepCC_TRUE=
4565 am__fastdepCC_FALSE='#'
4566 else
4567 am__fastdepCC_TRUE='#'
4568 am__fastdepCC_FALSE=
4569 fi
4570
4571
4572
4573 ac_header= ac_cache=
4574 for ac_item in $ac_header_c_list
4575 do
4576 if test $ac_cache; then
4577 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4578 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4579 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4580 fi
4581 ac_header= ac_cache=
4582 elif test $ac_header; then
4583 ac_cache=$ac_item
4584 else
4585 ac_header=$ac_item
4586 fi
4587 done
4588
4589
4590
4591
4592
4593
4594
4595
4596 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4597 then :
4598
4599 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4600
4601 fi
4602
4603
4604
4605
4606
4607
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4609 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4610 if test ${ac_cv_safe_to_define___extensions__+y}
4611 then :
4612 printf %s "(cached) " >&6
4613 else $as_nop
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 # define __EXTENSIONS__ 1
4618 $ac_includes_default
4619 int
4620 main (void)
4621 {
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"
4628 then :
4629 ac_cv_safe_to_define___extensions__=yes
4630 else $as_nop
4631 ac_cv_safe_to_define___extensions__=no
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4634 fi
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4636 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4637
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4639 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4640 if test ${ac_cv_should_define__xopen_source+y}
4641 then :
4642 printf %s "(cached) " >&6
4643 else $as_nop
4644 ac_cv_should_define__xopen_source=no
4645 if test $ac_cv_header_wchar_h = yes
4646 then :
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649
4650 #include <wchar.h>
4651 mbstate_t x;
4652 int
4653 main (void)
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"
4661 then :
4662
4663 else $as_nop
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 #define _XOPEN_SOURCE 500
4668 #include <wchar.h>
4669 mbstate_t x;
4670 int
4671 main (void)
4672 {
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"
4679 then :
4680 ac_cv_should_define__xopen_source=yes
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4685 fi
4686 fi
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4688 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4689
4690 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4691
4692 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4693
4694 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4695
4696 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4697
4698 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4699
4700 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4701
4702 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4703
4704 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4705
4706 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4707
4708 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4709
4710 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4711
4712 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4713
4714 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4715
4716 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4717
4718 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4719
4720 if test $ac_cv_header_minix_config_h = yes
4721 then :
4722 MINIX=yes
4723 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4724
4725 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4726
4727 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4728
4729 else $as_nop
4730 MINIX=
4731 fi
4732 if test $ac_cv_safe_to_define___extensions__ = yes
4733 then :
4734 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4735
4736 fi
4737 if test $ac_cv_should_define__xopen_source = yes
4738 then :
4739 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4740
4741 fi
4742
4743
4744
4745
4746 # ===========================================================================
4747 # https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
4748 # ===========================================================================
4749 #
4750 # SYNOPSIS
4751 #
4752 # AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
4753 #
4754 # DESCRIPTION
4755 #
4756 # Check whether the given FLAG works with the current language's compiler
4757 # or gives an error. (Warnings, however, are ignored)
4758 #
4759 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
4760 # success/failure.
4761 #
4762 # If EXTRA-FLAGS is defined, it is added to the current language's default
4763 # flags (e.g. CFLAGS) when the check is done. The check is thus made with
4764 # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
4765 # force the compiler to issue an error when a bad flag is given.
4766 #
4767 # INPUT gives an alternative input source to AC_COMPILE_IFELSE.
4768 #
4769 # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
4770 # macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
4771 #
4772 # LICENSE
4773 #
4774 # Copyright (c) 2008 Guido U. Draheim <[email protected]>
4775 # Copyright (c) 2011 Maarten Bosmans <[email protected]>
4776 #
4777 # Copying and distribution of this file, with or without modification, are
4778 # permitted in any medium without royalty provided the copyright notice
4779 # and this notice are preserved. This file is offered as-is, without any
4780 # warranty.
4781
4782 #serial 6
4783
4784
4785
4786 # Initialize libtool
4787 # Check whether --enable-static was given.
4788 if test ${enable_static+y}
4789 then :
4790 enableval=$enable_static; p=${PACKAGE-default}
4791 case $enableval in
4792 yes) enable_static=yes ;;
4793 no) enable_static=no ;;
4794 *)
4795 enable_static=no
4796 # Look at the argument we got. We use all the common list separators.
4797 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4798 for pkg in $enableval; do
4799 IFS=$lt_save_ifs
4800 if test "X$pkg" = "X$p"; then
4801 enable_static=yes
4802 fi
4803 done
4804 IFS=$lt_save_ifs
4805 ;;
4806 esac
4807 else $as_nop
4808 enable_static=no
4809 fi
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819 case `pwd` in
4820 *\ * | *\ *)
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4822 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4823 esac
4824
4825
4826
4827 macro_version='2.4.6'
4828 macro_revision='2.4.6'
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 ltmain=$ac_aux_dir/ltmain.sh
4844
4845
4846
4847 # Make sure we can run config.sub.
4848 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4849 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4850
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4852 printf %s "checking build system type... " >&6; }
4853 if test ${ac_cv_build+y}
4854 then :
4855 printf %s "(cached) " >&6
4856 else $as_nop
4857 ac_build_alias=$build_alias
4858 test "x$ac_build_alias" = x &&
4859 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4860 test "x$ac_build_alias" = x &&
4861 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4862 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4863 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4864
4865 fi
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4867 printf "%s\n" "$ac_cv_build" >&6; }
4868 case $ac_cv_build in
4869 *-*-*) ;;
4870 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4871 esac
4872 build=$ac_cv_build
4873 ac_save_IFS=$IFS; IFS='-'
4874 set x $ac_cv_build
4875 shift
4876 build_cpu=$1
4877 build_vendor=$2
4878 shift; shift
4879 # Remember, the first character of IFS is used to create $*,
4880 # except with old shells:
4881 build_os=$*
4882 IFS=$ac_save_IFS
4883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4884
4885
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4887 printf %s "checking host system type... " >&6; }
4888 if test ${ac_cv_host+y}
4889 then :
4890 printf %s "(cached) " >&6
4891 else $as_nop
4892 if test "x$host_alias" = x; then
4893 ac_cv_host=$ac_cv_build
4894 else
4895 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4896 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4897 fi
4898
4899 fi
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4901 printf "%s\n" "$ac_cv_host" >&6; }
4902 case $ac_cv_host in
4903 *-*-*) ;;
4904 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4905 esac
4906 host=$ac_cv_host
4907 ac_save_IFS=$IFS; IFS='-'
4908 set x $ac_cv_host
4909 shift
4910 host_cpu=$1
4911 host_vendor=$2
4912 shift; shift
4913 # Remember, the first character of IFS is used to create $*,
4914 # except with old shells:
4915 host_os=$*
4916 IFS=$ac_save_IFS
4917 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4918
4919
4920 # Backslashify metacharacters that are still active within
4921 # double-quoted strings.
4922 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4923
4924 # Same as above, but do not quote variable references.
4925 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4926
4927 # Sed substitution to delay expansion of an escaped shell variable in a
4928 # double_quote_subst'ed string.
4929 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4930
4931 # Sed substitution to delay expansion of an escaped single quote.
4932 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4933
4934 # Sed substitution to avoid accidental globbing in evaled expressions
4935 no_glob_subst='s/\*/\\\*/g'
4936
4937 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4938 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4939 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4940
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4942 printf %s "checking how to print strings... " >&6; }
4943 # Test print first, because it will be a builtin if present.
4944 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4945 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4946 ECHO='print -r --'
4947 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4948 ECHO='printf %s\n'
4949 else
4950 # Use this function as a fallback that always works.
4951 func_fallback_echo ()
4952 {
4953 eval 'cat <<_LTECHO_EOF
4954 $1
4955 _LTECHO_EOF'
4956 }
4957 ECHO='func_fallback_echo'
4958 fi
4959
4960 # func_echo_all arg...
4961 # Invoke $ECHO with all args, space-separated.
4962 func_echo_all ()
4963 {
4964 $ECHO ""
4965 }
4966
4967 case $ECHO in
4968 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4969 printf "%s\n" "printf" >&6; } ;;
4970 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4971 printf "%s\n" "print -r" >&6; } ;;
4972 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4973 printf "%s\n" "cat" >&6; } ;;
4974 esac
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4990 printf %s "checking for a sed that does not truncate output... " >&6; }
4991 if test ${ac_cv_path_SED+y}
4992 then :
4993 printf %s "(cached) " >&6
4994 else $as_nop
4995 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4996 for ac_i in 1 2 3 4 5 6 7; do
4997 ac_script="$ac_script$as_nl$ac_script"
4998 done
4999 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5000 { ac_script=; unset ac_script;}
5001 if test -z "$SED"; then
5002 ac_path_SED_found=false
5003 # Loop through the user's path and test for each of PROGNAME-LIST
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 case $as_dir in #(((
5009 '') as_dir=./ ;;
5010 */) ;;
5011 *) as_dir=$as_dir/ ;;
5012 esac
5013 for ac_prog in sed gsed
5014 do
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5017 as_fn_executable_p "$ac_path_SED" || continue
5018 # Check for GNU ac_path_SED and select it if it is found.
5019 # Check for GNU $ac_path_SED
5020 case `"$ac_path_SED" --version 2>&1` in
5021 *GNU*)
5022 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5023 *)
5024 ac_count=0
5025 printf %s 0123456789 >"conftest.in"
5026 while :
5027 do
5028 cat "conftest.in" "conftest.in" >"conftest.tmp"
5029 mv "conftest.tmp" "conftest.in"
5030 cp "conftest.in" "conftest.nl"
5031 printf "%s\n" '' >> "conftest.nl"
5032 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5034 as_fn_arith $ac_count + 1 && ac_count=$as_val
5035 if test $ac_count -gt ${ac_path_SED_max-0}; then
5036 # Best one so far, save it but keep looking for a better one
5037 ac_cv_path_SED="$ac_path_SED"
5038 ac_path_SED_max=$ac_count
5039 fi
5040 # 10*(2^10) chars as input seems more than enough
5041 test $ac_count -gt 10 && break
5042 done
5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5044 esac
5045
5046 $ac_path_SED_found && break 3
5047 done
5048 done
5049 done
5050 IFS=$as_save_IFS
5051 if test -z "$ac_cv_path_SED"; then
5052 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5053 fi
5054 else
5055 ac_cv_path_SED=$SED
5056 fi
5057
5058 fi
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5060 printf "%s\n" "$ac_cv_path_SED" >&6; }
5061 SED="$ac_cv_path_SED"
5062 rm -f conftest.sed
5063
5064 test -z "$SED" && SED=sed
5065 Xsed="$SED -e 1s/^X//"
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5078 printf %s "checking for grep that handles long lines and -e... " >&6; }
5079 if test ${ac_cv_path_GREP+y}
5080 then :
5081 printf %s "(cached) " >&6
5082 else $as_nop
5083 if test -z "$GREP"; then
5084 ac_path_GREP_found=false
5085 # Loop through the user's path and test for each of PROGNAME-LIST
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088 do
5089 IFS=$as_save_IFS
5090 case $as_dir in #(((
5091 '') as_dir=./ ;;
5092 */) ;;
5093 *) as_dir=$as_dir/ ;;
5094 esac
5095 for ac_prog in grep ggrep
5096 do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5099 as_fn_executable_p "$ac_path_GREP" || continue
5100 # Check for GNU ac_path_GREP and select it if it is found.
5101 # Check for GNU $ac_path_GREP
5102 case `"$ac_path_GREP" --version 2>&1` in
5103 *GNU*)
5104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5105 *)
5106 ac_count=0
5107 printf %s 0123456789 >"conftest.in"
5108 while :
5109 do
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 printf "%s\n" 'GREP' >> "conftest.nl"
5114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_GREP="$ac_path_GREP"
5120 ac_path_GREP_max=$ac_count
5121 fi
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5127
5128 $ac_path_GREP_found && break 3
5129 done
5130 done
5131 done
5132 IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_GREP"; then
5134 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5135 fi
5136 else
5137 ac_cv_path_GREP=$GREP
5138 fi
5139
5140 fi
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5142 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5143 GREP="$ac_cv_path_GREP"
5144
5145
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5147 printf %s "checking for egrep... " >&6; }
5148 if test ${ac_cv_path_EGREP+y}
5149 then :
5150 printf %s "(cached) " >&6
5151 else $as_nop
5152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5153 then ac_cv_path_EGREP="$GREP -E"
5154 else
5155 if test -z "$EGREP"; then
5156 ac_path_EGREP_found=false
5157 # Loop through the user's path and test for each of PROGNAME-LIST
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160 do
5161 IFS=$as_save_IFS
5162 case $as_dir in #(((
5163 '') as_dir=./ ;;
5164 */) ;;
5165 *) as_dir=$as_dir/ ;;
5166 esac
5167 for ac_prog in egrep
5168 do
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5171 as_fn_executable_p "$ac_path_EGREP" || continue
5172 # Check for GNU ac_path_EGREP and select it if it is found.
5173 # Check for GNU $ac_path_EGREP
5174 case `"$ac_path_EGREP" --version 2>&1` in
5175 *GNU*)
5176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5177 *)
5178 ac_count=0
5179 printf %s 0123456789 >"conftest.in"
5180 while :
5181 do
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 printf "%s\n" 'EGREP' >> "conftest.nl"
5186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_EGREP="$ac_path_EGREP"
5192 ac_path_EGREP_max=$ac_count
5193 fi
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5196 done
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 esac
5199
5200 $ac_path_EGREP_found && break 3
5201 done
5202 done
5203 done
5204 IFS=$as_save_IFS
5205 if test -z "$ac_cv_path_EGREP"; then
5206 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207 fi
5208 else
5209 ac_cv_path_EGREP=$EGREP
5210 fi
5211
5212 fi
5213 fi
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5215 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5216 EGREP="$ac_cv_path_EGREP"
5217
5218
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5220 printf %s "checking for fgrep... " >&6; }
5221 if test ${ac_cv_path_FGREP+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else $as_nop
5225 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5226 then ac_cv_path_FGREP="$GREP -F"
5227 else
5228 if test -z "$FGREP"; then
5229 ac_path_FGREP_found=false
5230 # Loop through the user's path and test for each of PROGNAME-LIST
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5233 do
5234 IFS=$as_save_IFS
5235 case $as_dir in #(((
5236 '') as_dir=./ ;;
5237 */) ;;
5238 *) as_dir=$as_dir/ ;;
5239 esac
5240 for ac_prog in fgrep
5241 do
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5244 as_fn_executable_p "$ac_path_FGREP" || continue
5245 # Check for GNU ac_path_FGREP and select it if it is found.
5246 # Check for GNU $ac_path_FGREP
5247 case `"$ac_path_FGREP" --version 2>&1` in
5248 *GNU*)
5249 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5250 *)
5251 ac_count=0
5252 printf %s 0123456789 >"conftest.in"
5253 while :
5254 do
5255 cat "conftest.in" "conftest.in" >"conftest.tmp"
5256 mv "conftest.tmp" "conftest.in"
5257 cp "conftest.in" "conftest.nl"
5258 printf "%s\n" 'FGREP' >> "conftest.nl"
5259 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5261 as_fn_arith $ac_count + 1 && ac_count=$as_val
5262 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5263 # Best one so far, save it but keep looking for a better one
5264 ac_cv_path_FGREP="$ac_path_FGREP"
5265 ac_path_FGREP_max=$ac_count
5266 fi
5267 # 10*(2^10) chars as input seems more than enough
5268 test $ac_count -gt 10 && break
5269 done
5270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5271 esac
5272
5273 $ac_path_FGREP_found && break 3
5274 done
5275 done
5276 done
5277 IFS=$as_save_IFS
5278 if test -z "$ac_cv_path_FGREP"; then
5279 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5280 fi
5281 else
5282 ac_cv_path_FGREP=$FGREP
5283 fi
5284
5285 fi
5286 fi
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5288 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5289 FGREP="$ac_cv_path_FGREP"
5290
5291
5292 test -z "$GREP" && GREP=grep
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 # Check whether --with-gnu-ld was given.
5313 if test ${with_gnu_ld+y}
5314 then :
5315 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5316 else $as_nop
5317 with_gnu_ld=no
5318 fi
5319
5320 ac_prog=ld
5321 if test yes = "$GCC"; then
5322 # Check if gcc -print-prog-name=ld gives a path.
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5324 printf %s "checking for ld used by $CC... " >&6; }
5325 case $host in
5326 *-*-mingw*)
5327 # gcc leaves a trailing carriage return, which upsets mingw
5328 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5329 *)
5330 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5331 esac
5332 case $ac_prog in
5333 # Accept absolute paths.
5334 [\\/]* | ?:[\\/]*)
5335 re_direlt='/[^/][^/]*/\.\./'
5336 # Canonicalize the pathname of ld
5337 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5338 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5339 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5340 done
5341 test -z "$LD" && LD=$ac_prog
5342 ;;
5343 "")
5344 # If it fails, then pretend we aren't using GCC.
5345 ac_prog=ld
5346 ;;
5347 *)
5348 # If it is relative, then search for the first ld in PATH.
5349 with_gnu_ld=unknown
5350 ;;
5351 esac
5352 elif test yes = "$with_gnu_ld"; then
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5354 printf %s "checking for GNU ld... " >&6; }
5355 else
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5357 printf %s "checking for non-GNU ld... " >&6; }
5358 fi
5359 if test ${lt_cv_path_LD+y}
5360 then :
5361 printf %s "(cached) " >&6
5362 else $as_nop
5363 if test -z "$LD"; then
5364 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5365 for ac_dir in $PATH; do
5366 IFS=$lt_save_ifs
5367 test -z "$ac_dir" && ac_dir=.
5368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5369 lt_cv_path_LD=$ac_dir/$ac_prog
5370 # Check to see if the program is GNU ld. I'd rather use --version,
5371 # but apparently some variants of GNU ld only accept -v.
5372 # Break only if it was the GNU/non-GNU ld that we prefer.
5373 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5374 *GNU* | *'with BFD'*)
5375 test no != "$with_gnu_ld" && break
5376 ;;
5377 *)
5378 test yes != "$with_gnu_ld" && break
5379 ;;
5380 esac
5381 fi
5382 done
5383 IFS=$lt_save_ifs
5384 else
5385 lt_cv_path_LD=$LD # Let the user override the test with a path.
5386 fi
5387 fi
5388
5389 LD=$lt_cv_path_LD
5390 if test -n "$LD"; then
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5392 printf "%s\n" "$LD" >&6; }
5393 else
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 printf "%s\n" "no" >&6; }
5396 fi
5397 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5399 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5400 if test ${lt_cv_prog_gnu_ld+y}
5401 then :
5402 printf %s "(cached) " >&6
5403 else $as_nop
5404 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5405 case `$LD -v 2>&1 </dev/null` in
5406 *GNU* | *'with BFD'*)
5407 lt_cv_prog_gnu_ld=yes
5408 ;;
5409 *)
5410 lt_cv_prog_gnu_ld=no
5411 ;;
5412 esac
5413 fi
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5415 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5416 with_gnu_ld=$lt_cv_prog_gnu_ld
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5427 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5428 if test ${lt_cv_path_NM+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else $as_nop
5432 if test -n "$NM"; then
5433 # Let the user override the test.
5434 lt_cv_path_NM=$NM
5435 else
5436 lt_nm_to_check=${ac_tool_prefix}nm
5437 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5438 lt_nm_to_check="$lt_nm_to_check nm"
5439 fi
5440 for lt_tmp_nm in $lt_nm_to_check; do
5441 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5442 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5443 IFS=$lt_save_ifs
5444 test -z "$ac_dir" && ac_dir=.
5445 tmp_nm=$ac_dir/$lt_tmp_nm
5446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5447 # Check to see if the nm accepts a BSD-compat flag.
5448 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5449 # nm: unknown option "B" ignored
5450 # Tru64's nm complains that /dev/null is an invalid object file
5451 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5452 case $build_os in
5453 mingw*) lt_bad_file=conftest.nm/nofile ;;
5454 *) lt_bad_file=/dev/null ;;
5455 esac
5456 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5457 *$lt_bad_file* | *'Invalid file or object type'*)
5458 lt_cv_path_NM="$tmp_nm -B"
5459 break 2
5460 ;;
5461 *)
5462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5463 */dev/null*)
5464 lt_cv_path_NM="$tmp_nm -p"
5465 break 2
5466 ;;
5467 *)
5468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5469 continue # so that we can try to find one that supports BSD flags
5470 ;;
5471 esac
5472 ;;
5473 esac
5474 fi
5475 done
5476 IFS=$lt_save_ifs
5477 done
5478 : ${lt_cv_path_NM=no}
5479 fi
5480 fi
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5482 printf "%s\n" "$lt_cv_path_NM" >&6; }
5483 if test no != "$lt_cv_path_NM"; then
5484 NM=$lt_cv_path_NM
5485 else
5486 # Didn't find any BSD compatible name lister, look for dumpbin.
5487 if test -n "$DUMPBIN"; then :
5488 # Let the user override the test.
5489 else
5490 if test -n "$ac_tool_prefix"; then
5491 for ac_prog in dumpbin "link -dump"
5492 do
5493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 printf %s "checking for $ac_word... " >&6; }
5497 if test ${ac_cv_prog_DUMPBIN+y}
5498 then :
5499 printf %s "(cached) " >&6
5500 else $as_nop
5501 if test -n "$DUMPBIN"; then
5502 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507 IFS=$as_save_IFS
5508 case $as_dir in #(((
5509 '') as_dir=./ ;;
5510 */) ;;
5511 *) as_dir=$as_dir/ ;;
5512 esac
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 DUMPBIN=$ac_cv_prog_DUMPBIN
5526 if test -n "$DUMPBIN"; then
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5528 printf "%s\n" "$DUMPBIN" >&6; }
5529 else
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 printf "%s\n" "no" >&6; }
5532 fi
5533
5534
5535 test -n "$DUMPBIN" && break
5536 done
5537 fi
5538 if test -z "$DUMPBIN"; then
5539 ac_ct_DUMPBIN=$DUMPBIN
5540 for ac_prog in dumpbin "link -dump"
5541 do
5542 # Extract the first word of "$ac_prog", so it can be a program name with args.
5543 set dummy $ac_prog; ac_word=$2
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 printf %s "checking for $ac_word... " >&6; }
5546 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5547 then :
5548 printf %s "(cached) " >&6
5549 else $as_nop
5550 if test -n "$ac_ct_DUMPBIN"; then
5551 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 case $as_dir in #(((
5558 '') as_dir=./ ;;
5559 */) ;;
5560 *) as_dir=$as_dir/ ;;
5561 esac
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5575 if test -n "$ac_ct_DUMPBIN"; then
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5577 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5578 else
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 printf "%s\n" "no" >&6; }
5581 fi
5582
5583
5584 test -n "$ac_ct_DUMPBIN" && break
5585 done
5586
5587 if test "x$ac_ct_DUMPBIN" = x; then
5588 DUMPBIN=":"
5589 else
5590 case $cross_compiling:$ac_tool_warned in
5591 yes:)
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594 ac_tool_warned=yes ;;
5595 esac
5596 DUMPBIN=$ac_ct_DUMPBIN
5597 fi
5598 fi
5599
5600 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5601 *COFF*)
5602 DUMPBIN="$DUMPBIN -symbols -headers"
5603 ;;
5604 *)
5605 DUMPBIN=:
5606 ;;
5607 esac
5608 fi
5609
5610 if test : != "$DUMPBIN"; then
5611 NM=$DUMPBIN
5612 fi
5613 fi
5614 test -z "$NM" && NM=nm
5615
5616
5617
5618
5619
5620
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5622 printf %s "checking the name lister ($NM) interface... " >&6; }
5623 if test ${lt_cv_nm_interface+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else $as_nop
5627 lt_cv_nm_interface="BSD nm"
5628 echo "int some_variable = 0;" > conftest.$ac_ext
5629 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5630 (eval "$ac_compile" 2>conftest.err)
5631 cat conftest.err >&5
5632 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5633 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5634 cat conftest.err >&5
5635 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5636 cat conftest.out >&5
5637 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5638 lt_cv_nm_interface="MS dumpbin"
5639 fi
5640 rm -f conftest*
5641 fi
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5643 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5644
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5646 printf %s "checking whether ln -s works... " >&6; }
5647 LN_S=$as_ln_s
5648 if test "$LN_S" = "ln -s"; then
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 printf "%s\n" "yes" >&6; }
5651 else
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5653 printf "%s\n" "no, using $LN_S" >&6; }
5654 fi
5655
5656 # find the maximum length of command line arguments
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5658 printf %s "checking the maximum length of command line arguments... " >&6; }
5659 if test ${lt_cv_sys_max_cmd_len+y}
5660 then :
5661 printf %s "(cached) " >&6
5662 else $as_nop
5663 i=0
5664 teststring=ABCD
5665
5666 case $build_os in
5667 msdosdjgpp*)
5668 # On DJGPP, this test can blow up pretty badly due to problems in libc
5669 # (any single argument exceeding 2000 bytes causes a buffer overrun
5670 # during glob expansion). Even if it were fixed, the result of this
5671 # check would be larger than it should be.
5672 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5673 ;;
5674
5675 gnu*)
5676 # Under GNU Hurd, this test is not required because there is
5677 # no limit to the length of command line arguments.
5678 # Libtool will interpret -1 as no limit whatsoever
5679 lt_cv_sys_max_cmd_len=-1;
5680 ;;
5681
5682 cygwin* | mingw* | cegcc*)
5683 # On Win9x/ME, this test blows up -- it succeeds, but takes
5684 # about 5 minutes as the teststring grows exponentially.
5685 # Worse, since 9x/ME are not pre-emptively multitasking,
5686 # you end up with a "frozen" computer, even though with patience
5687 # the test eventually succeeds (with a max line length of 256k).
5688 # Instead, let's just punt: use the minimum linelength reported by
5689 # all of the supported platforms: 8192 (on NT/2K/XP).
5690 lt_cv_sys_max_cmd_len=8192;
5691 ;;
5692
5693 mint*)
5694 # On MiNT this can take a long time and run out of memory.
5695 lt_cv_sys_max_cmd_len=8192;
5696 ;;
5697
5698 amigaos*)
5699 # On AmigaOS with pdksh, this test takes hours, literally.
5700 # So we just punt and use a minimum line length of 8192.
5701 lt_cv_sys_max_cmd_len=8192;
5702 ;;
5703
5704 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5705 # This has been around since 386BSD, at least. Likely further.
5706 if test -x /sbin/sysctl; then
5707 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5708 elif test -x /usr/sbin/sysctl; then
5709 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5710 else
5711 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5712 fi
5713 # And add a safety zone
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5716 ;;
5717
5718 interix*)
5719 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5720 lt_cv_sys_max_cmd_len=196608
5721 ;;
5722
5723 os2*)
5724 # The test takes a long time on OS/2.
5725 lt_cv_sys_max_cmd_len=8192
5726 ;;
5727
5728 osf*)
5729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5731 # nice to cause kernel panics so lets avoid the loop below.
5732 # First set a reasonable default.
5733 lt_cv_sys_max_cmd_len=16384
5734 #
5735 if test -x /sbin/sysconfig; then
5736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5738 esac
5739 fi
5740 ;;
5741 sco3.2v5*)
5742 lt_cv_sys_max_cmd_len=102400
5743 ;;
5744 sysv5* | sco5v6* | sysv4.2uw2*)
5745 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5746 if test -n "$kargmax"; then
5747 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5748 else
5749 lt_cv_sys_max_cmd_len=32768
5750 fi
5751 ;;
5752 *)
5753 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5754 if test -n "$lt_cv_sys_max_cmd_len" && \
5755 test undefined != "$lt_cv_sys_max_cmd_len"; then
5756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5758 else
5759 # Make teststring a little bigger before we do anything with it.
5760 # a 1K string should be a reasonable start.
5761 for i in 1 2 3 4 5 6 7 8; do
5762 teststring=$teststring$teststring
5763 done
5764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5765 # If test is not a shell built-in, we'll probably end up computing a
5766 # maximum length that is only half of the actual maximum length, but
5767 # we can't tell.
5768 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5769 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5770 test 17 != "$i" # 1/2 MB should be enough
5771 do
5772 i=`expr $i + 1`
5773 teststring=$teststring$teststring
5774 done
5775 # Only check the string length outside the loop.
5776 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5777 teststring=
5778 # Add a significant safety factor because C++ compilers can tack on
5779 # massive amounts of additional arguments before passing them to the
5780 # linker. It appears as though 1/2 is a usable value.
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5782 fi
5783 ;;
5784 esac
5785
5786 fi
5787
5788 if test -n "$lt_cv_sys_max_cmd_len"; then
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5790 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5791 else
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5793 printf "%s\n" "none" >&6; }
5794 fi
5795 max_cmd_len=$lt_cv_sys_max_cmd_len
5796
5797
5798
5799
5800
5801
5802 : ${CP="cp -f"}
5803 : ${MV="mv -f"}
5804 : ${RM="rm -f"}
5805
5806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5807 lt_unset=unset
5808 else
5809 lt_unset=false
5810 fi
5811
5812
5813
5814
5815
5816 # test EBCDIC or ASCII
5817 case `echo X|tr X '\101'` in
5818 A) # ASCII based system
5819 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5820 lt_SP2NL='tr \040 \012'
5821 lt_NL2SP='tr \015\012 \040\040'
5822 ;;
5823 *) # EBCDIC based system
5824 lt_SP2NL='tr \100 \n'
5825 lt_NL2SP='tr \r\n \100\100'
5826 ;;
5827 esac
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5838 printf %s "checking how to convert $build file names to $host format... " >&6; }
5839 if test ${lt_cv_to_host_file_cmd+y}
5840 then :
5841 printf %s "(cached) " >&6
5842 else $as_nop
5843 case $host in
5844 *-*-mingw* )
5845 case $build in
5846 *-*-mingw* ) # actually msys
5847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5848 ;;
5849 *-*-cygwin* )
5850 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5851 ;;
5852 * ) # otherwise, assume *nix
5853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5854 ;;
5855 esac
5856 ;;
5857 *-*-cygwin* )
5858 case $build in
5859 *-*-mingw* ) # actually msys
5860 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5861 ;;
5862 *-*-cygwin* )
5863 lt_cv_to_host_file_cmd=func_convert_file_noop
5864 ;;
5865 * ) # otherwise, assume *nix
5866 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5867 ;;
5868 esac
5869 ;;
5870 * ) # unhandled hosts (and "normal" native builds)
5871 lt_cv_to_host_file_cmd=func_convert_file_noop
5872 ;;
5873 esac
5874
5875 fi
5876
5877 to_host_file_cmd=$lt_cv_to_host_file_cmd
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5879 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5880
5881
5882
5883
5884
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5886 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5887 if test ${lt_cv_to_tool_file_cmd+y}
5888 then :
5889 printf %s "(cached) " >&6
5890 else $as_nop
5891 #assume ordinary cross tools, or native build.
5892 lt_cv_to_tool_file_cmd=func_convert_file_noop
5893 case $host in
5894 *-*-mingw* )
5895 case $build in
5896 *-*-mingw* ) # actually msys
5897 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5898 ;;
5899 esac
5900 ;;
5901 esac
5902
5903 fi
5904
5905 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5907 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5908
5909
5910
5911
5912
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5914 printf %s "checking for $LD option to reload object files... " >&6; }
5915 if test ${lt_cv_ld_reload_flag+y}
5916 then :
5917 printf %s "(cached) " >&6
5918 else $as_nop
5919 lt_cv_ld_reload_flag='-r'
5920 fi
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5922 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5923 reload_flag=$lt_cv_ld_reload_flag
5924 case $reload_flag in
5925 "" | " "*) ;;
5926 *) reload_flag=" $reload_flag" ;;
5927 esac
5928 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5929 case $host_os in
5930 cygwin* | mingw* | pw32* | cegcc*)
5931 if test yes != "$GCC"; then
5932 reload_cmds=false
5933 fi
5934 ;;
5935 darwin*)
5936 if test yes = "$GCC"; then
5937 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5938 else
5939 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5940 fi
5941 ;;
5942 esac
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 printf %s "checking for $ac_word... " >&6; }
5957 if test ${ac_cv_prog_OBJDUMP+y}
5958 then :
5959 printf %s "(cached) " >&6
5960 else $as_nop
5961 if test -n "$OBJDUMP"; then
5962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 case $as_dir in #(((
5969 '') as_dir=./ ;;
5970 */) ;;
5971 *) as_dir=$as_dir/ ;;
5972 esac
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 OBJDUMP=$ac_cv_prog_OBJDUMP
5986 if test -n "$OBJDUMP"; then
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5988 printf "%s\n" "$OBJDUMP" >&6; }
5989 else
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 printf "%s\n" "no" >&6; }
5992 fi
5993
5994
5995 fi
5996 if test -z "$ac_cv_prog_OBJDUMP"; then
5997 ac_ct_OBJDUMP=$OBJDUMP
5998 # Extract the first word of "objdump", so it can be a program name with args.
5999 set dummy objdump; ac_word=$2
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 printf %s "checking for $ac_word... " >&6; }
6002 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else $as_nop
6006 if test -n "$ac_ct_OBJDUMP"; then
6007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 case $as_dir in #(((
6014 '') as_dir=./ ;;
6015 */) ;;
6016 *) as_dir=$as_dir/ ;;
6017 esac
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6031 if test -n "$ac_ct_OBJDUMP"; then
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6033 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6034 else
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 printf "%s\n" "no" >&6; }
6037 fi
6038
6039 if test "x$ac_ct_OBJDUMP" = x; then
6040 OBJDUMP="false"
6041 else
6042 case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048 OBJDUMP=$ac_ct_OBJDUMP
6049 fi
6050 else
6051 OBJDUMP="$ac_cv_prog_OBJDUMP"
6052 fi
6053
6054 test -z "$OBJDUMP" && OBJDUMP=objdump
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6065 printf %s "checking how to recognize dependent libraries... " >&6; }
6066 if test ${lt_cv_deplibs_check_method+y}
6067 then :
6068 printf %s "(cached) " >&6
6069 else $as_nop
6070 lt_cv_file_magic_cmd='$MAGIC_CMD'
6071 lt_cv_file_magic_test_file=
6072 lt_cv_deplibs_check_method='unknown'
6073 # Need to set the preceding variable on all platforms that support
6074 # interlibrary dependencies.
6075 # 'none' -- dependencies not supported.
6076 # 'unknown' -- same as none, but documents that we really don't know.
6077 # 'pass_all' -- all dependencies passed with no checks.
6078 # 'test_compile' -- check by making test program.
6079 # 'file_magic [[regex]]' -- check by looking for files in library path
6080 # that responds to the $file_magic_cmd with a given extended regex.
6081 # If you have 'file' or equivalent on your system and you're not sure
6082 # whether 'pass_all' will *always* work, you probably want this one.
6083
6084 case $host_os in
6085 aix[4-9]*)
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088
6089 beos*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092
6093 bsdi[45]*)
6094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6095 lt_cv_file_magic_cmd='/usr/bin/file -L'
6096 lt_cv_file_magic_test_file=/shlib/libc.so
6097 ;;
6098
6099 cygwin*)
6100 # func_win32_libid is a shell function defined in ltmain.sh
6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102 lt_cv_file_magic_cmd='func_win32_libid'
6103 ;;
6104
6105 mingw* | pw32*)
6106 # Base MSYS/MinGW do not provide the 'file' command needed by
6107 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6108 # unless we find 'file', for example because we are cross-compiling.
6109 if ( file / ) >/dev/null 2>&1; then
6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111 lt_cv_file_magic_cmd='func_win32_libid'
6112 else
6113 # Keep this pattern in sync with the one in func_win32_libid.
6114 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6115 lt_cv_file_magic_cmd='$OBJDUMP -f'
6116 fi
6117 ;;
6118
6119 cegcc*)
6120 # use the weaker test based on 'objdump'. See mingw*.
6121 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6123 ;;
6124
6125 darwin* | rhapsody*)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
6129 freebsd* | dragonfly*)
6130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6131 case $host_cpu in
6132 i*86 )
6133 # Not sure whether the presence of OpenBSD here was a mistake.
6134 # Let's accept both of them until this is cleared up.
6135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6136 lt_cv_file_magic_cmd=/usr/bin/file
6137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6138 ;;
6139 esac
6140 else
6141 lt_cv_deplibs_check_method=pass_all
6142 fi
6143 ;;
6144
6145 haiku*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 hpux10.20* | hpux11*)
6150 lt_cv_file_magic_cmd=/usr/bin/file
6151 case $host_cpu in
6152 ia64*)
6153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6155 ;;
6156 hppa*64*)
6157 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]'
6158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6159 ;;
6160 *)
6161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6162 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6163 ;;
6164 esac
6165 ;;
6166
6167 interix[3-9]*)
6168 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6170 ;;
6171
6172 irix5* | irix6* | nonstopux*)
6173 case $LD in
6174 *-32|*"-32 ") libmagic=32-bit;;
6175 *-n32|*"-n32 ") libmagic=N32;;
6176 *-64|*"-64 ") libmagic=64-bit;;
6177 *) libmagic=never-match;;
6178 esac
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181
6182 # This must be glibc/ELF.
6183 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186
6187 netbsd* | netbsdelf*-gnu)
6188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6190 else
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6192 fi
6193 ;;
6194
6195 newos6*)
6196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6197 lt_cv_file_magic_cmd=/usr/bin/file
6198 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6199 ;;
6200
6201 *nto* | *qnx*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205 openbsd* | bitrig*)
6206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6208 else
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6210 fi
6211 ;;
6212
6213 osf3* | osf4* | osf5*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216
6217 rdos*)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221 solaris*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 sysv4 | sysv4.3*)
6230 case $host_vendor in
6231 motorola)
6232 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]'
6233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6234 ;;
6235 ncr)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238 sequent)
6239 lt_cv_file_magic_cmd='/bin/file'
6240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6241 ;;
6242 sni)
6243 lt_cv_file_magic_cmd='/bin/file'
6244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6245 lt_cv_file_magic_test_file=/lib/libc.so
6246 ;;
6247 siemens)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250 pc)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253 esac
6254 ;;
6255
6256 tpf*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259 os2*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262 esac
6263
6264 fi
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6266 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6267
6268 file_magic_glob=
6269 want_nocaseglob=no
6270 if test "$build" = "$host"; then
6271 case $host_os in
6272 mingw* | pw32*)
6273 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6274 want_nocaseglob=yes
6275 else
6276 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6277 fi
6278 ;;
6279 esac
6280 fi
6281
6282 file_magic_cmd=$lt_cv_file_magic_cmd
6283 deplibs_check_method=$lt_cv_deplibs_check_method
6284 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 printf %s "checking for $ac_word... " >&6; }
6312 if test ${ac_cv_prog_DLLTOOL+y}
6313 then :
6314 printf %s "(cached) " >&6
6315 else $as_nop
6316 if test -n "$DLLTOOL"; then
6317 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322 IFS=$as_save_IFS
6323 case $as_dir in #(((
6324 '') as_dir=./ ;;
6325 */) ;;
6326 *) as_dir=$as_dir/ ;;
6327 esac
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 DLLTOOL=$ac_cv_prog_DLLTOOL
6341 if test -n "$DLLTOOL"; then
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6343 printf "%s\n" "$DLLTOOL" >&6; }
6344 else
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 printf "%s\n" "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_DLLTOOL"; then
6352 ac_ct_DLLTOOL=$DLLTOOL
6353 # Extract the first word of "dlltool", so it can be a program name with args.
6354 set dummy dlltool; ac_word=$2
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 printf %s "checking for $ac_word... " >&6; }
6357 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6358 then :
6359 printf %s "(cached) " >&6
6360 else $as_nop
6361 if test -n "$ac_ct_DLLTOOL"; then
6362 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367 IFS=$as_save_IFS
6368 case $as_dir in #(((
6369 '') as_dir=./ ;;
6370 */) ;;
6371 *) as_dir=$as_dir/ ;;
6372 esac
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6386 if test -n "$ac_ct_DLLTOOL"; then
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6388 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6389 else
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 printf "%s\n" "no" >&6; }
6392 fi
6393
6394 if test "x$ac_ct_DLLTOOL" = x; then
6395 DLLTOOL="false"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403 DLLTOOL=$ac_ct_DLLTOOL
6404 fi
6405 else
6406 DLLTOOL="$ac_cv_prog_DLLTOOL"
6407 fi
6408
6409 test -z "$DLLTOOL" && DLLTOOL=dlltool
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6421 printf %s "checking how to associate runtime and link libraries... " >&6; }
6422 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6423 then :
6424 printf %s "(cached) " >&6
6425 else $as_nop
6426 lt_cv_sharedlib_from_linklib_cmd='unknown'
6427
6428 case $host_os in
6429 cygwin* | mingw* | pw32* | cegcc*)
6430 # two different shell functions defined in ltmain.sh;
6431 # decide which one to use based on capabilities of $DLLTOOL
6432 case `$DLLTOOL --help 2>&1` in
6433 *--identify-strict*)
6434 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6435 ;;
6436 *)
6437 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6438 ;;
6439 esac
6440 ;;
6441 *)
6442 # fallback: assume linklib IS sharedlib
6443 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6444 ;;
6445 esac
6446
6447 fi
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6449 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6450 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6451 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6452
6453
6454
6455
6456
6457
6458
6459 if test -n "$ac_tool_prefix"; then
6460 for ac_prog in ar
6461 do
6462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 printf %s "checking for $ac_word... " >&6; }
6466 if test ${ac_cv_prog_AR+y}
6467 then :
6468 printf %s "(cached) " >&6
6469 else $as_nop
6470 if test -n "$AR"; then
6471 ac_cv_prog_AR="$AR" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476 IFS=$as_save_IFS
6477 case $as_dir in #(((
6478 '') as_dir=./ ;;
6479 */) ;;
6480 *) as_dir=$as_dir/ ;;
6481 esac
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488 done
6489 done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 AR=$ac_cv_prog_AR
6495 if test -n "$AR"; then
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497 printf "%s\n" "$AR" >&6; }
6498 else
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 printf "%s\n" "no" >&6; }
6501 fi
6502
6503
6504 test -n "$AR" && break
6505 done
6506 fi
6507 if test -z "$AR"; then
6508 ac_ct_AR=$AR
6509 for ac_prog in ar
6510 do
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 printf %s "checking for $ac_word... " >&6; }
6515 if test ${ac_cv_prog_ac_ct_AR+y}
6516 then :
6517 printf %s "(cached) " >&6
6518 else $as_nop
6519 if test -n "$ac_ct_AR"; then
6520 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525 IFS=$as_save_IFS
6526 case $as_dir in #(((
6527 '') as_dir=./ ;;
6528 */) ;;
6529 *) as_dir=$as_dir/ ;;
6530 esac
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_ac_ct_AR="$ac_prog"
6534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6544 if test -n "$ac_ct_AR"; then
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6546 printf "%s\n" "$ac_ct_AR" >&6; }
6547 else
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 printf "%s\n" "no" >&6; }
6550 fi
6551
6552
6553 test -n "$ac_ct_AR" && break
6554 done
6555
6556 if test "x$ac_ct_AR" = x; then
6557 AR="false"
6558 else
6559 case $cross_compiling:$ac_tool_warned in
6560 yes:)
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565 AR=$ac_ct_AR
6566 fi
6567 fi
6568
6569 : ${AR=ar}
6570 : ${AR_FLAGS=cr}
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6583 printf %s "checking for archiver @FILE support... " >&6; }
6584 if test ${lt_cv_ar_at_file+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else $as_nop
6588 lt_cv_ar_at_file=no
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591
6592 int
6593 main (void)
6594 {
6595
6596 ;
6597 return 0;
6598 }
6599 _ACEOF
6600 if ac_fn_c_try_compile "$LINENO"
6601 then :
6602 echo conftest.$ac_objext > conftest.lst
6603 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6605 (eval $lt_ar_try) 2>&5
6606 ac_status=$?
6607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }
6609 if test 0 -eq "$ac_status"; then
6610 # Ensure the archiver fails upon bogus file names.
6611 rm -f conftest.$ac_objext libconftest.a
6612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6613 (eval $lt_ar_try) 2>&5
6614 ac_status=$?
6615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }
6617 if test 0 -ne "$ac_status"; then
6618 lt_cv_ar_at_file=@
6619 fi
6620 fi
6621 rm -f conftest.* libconftest.a
6622
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6625
6626 fi
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6628 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6629
6630 if test no = "$lt_cv_ar_at_file"; then
6631 archiver_list_spec=
6632 else
6633 archiver_list_spec=$lt_cv_ar_at_file
6634 fi
6635
6636
6637
6638
6639
6640
6641
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}strip; ac_word=$2
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 printf %s "checking for $ac_word... " >&6; }
6647 if test ${ac_cv_prog_STRIP+y}
6648 then :
6649 printf %s "(cached) " >&6
6650 else $as_nop
6651 if test -n "$STRIP"; then
6652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 case $as_dir in #(((
6659 '') as_dir=./ ;;
6660 */) ;;
6661 *) as_dir=$as_dir/ ;;
6662 esac
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 STRIP=$ac_cv_prog_STRIP
6676 if test -n "$STRIP"; then
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6678 printf "%s\n" "$STRIP" >&6; }
6679 else
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 printf "%s\n" "no" >&6; }
6682 fi
6683
6684
6685 fi
6686 if test -z "$ac_cv_prog_STRIP"; then
6687 ac_ct_STRIP=$STRIP
6688 # Extract the first word of "strip", so it can be a program name with args.
6689 set dummy strip; ac_word=$2
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 printf %s "checking for $ac_word... " >&6; }
6692 if test ${ac_cv_prog_ac_ct_STRIP+y}
6693 then :
6694 printf %s "(cached) " >&6
6695 else $as_nop
6696 if test -n "$ac_ct_STRIP"; then
6697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 case $as_dir in #(((
6704 '') as_dir=./ ;;
6705 */) ;;
6706 *) as_dir=$as_dir/ ;;
6707 esac
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_ac_ct_STRIP="strip"
6711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6721 if test -n "$ac_ct_STRIP"; then
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6723 printf "%s\n" "$ac_ct_STRIP" >&6; }
6724 else
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 printf "%s\n" "no" >&6; }
6727 fi
6728
6729 if test "x$ac_ct_STRIP" = x; then
6730 STRIP=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738 STRIP=$ac_ct_STRIP
6739 fi
6740 else
6741 STRIP="$ac_cv_prog_STRIP"
6742 fi
6743
6744 test -z "$STRIP" && STRIP=:
6745
6746
6747
6748
6749
6750
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 printf %s "checking for $ac_word... " >&6; }
6756 if test ${ac_cv_prog_RANLIB+y}
6757 then :
6758 printf %s "(cached) " >&6
6759 else $as_nop
6760 if test -n "$RANLIB"; then
6761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766 IFS=$as_save_IFS
6767 case $as_dir in #(((
6768 '') as_dir=./ ;;
6769 */) ;;
6770 *) as_dir=$as_dir/ ;;
6771 esac
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 RANLIB=$ac_cv_prog_RANLIB
6785 if test -n "$RANLIB"; then
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6787 printf "%s\n" "$RANLIB" >&6; }
6788 else
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 printf "%s\n" "no" >&6; }
6791 fi
6792
6793
6794 fi
6795 if test -z "$ac_cv_prog_RANLIB"; then
6796 ac_ct_RANLIB=$RANLIB
6797 # Extract the first word of "ranlib", so it can be a program name with args.
6798 set dummy ranlib; ac_word=$2
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 printf %s "checking for $ac_word... " >&6; }
6801 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else $as_nop
6805 if test -n "$ac_ct_RANLIB"; then
6806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 case $as_dir in #(((
6813 '') as_dir=./ ;;
6814 */) ;;
6815 *) as_dir=$as_dir/ ;;
6816 esac
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_RANLIB="ranlib"
6820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6830 if test -n "$ac_ct_RANLIB"; then
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6832 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6833 else
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 printf "%s\n" "no" >&6; }
6836 fi
6837
6838 if test "x$ac_ct_RANLIB" = x; then
6839 RANLIB=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 RANLIB=$ac_ct_RANLIB
6848 fi
6849 else
6850 RANLIB="$ac_cv_prog_RANLIB"
6851 fi
6852
6853 test -z "$RANLIB" && RANLIB=:
6854
6855
6856
6857
6858
6859
6860 # Determine commands to create old-style static archives.
6861 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6862 old_postinstall_cmds='chmod 644 $oldlib'
6863 old_postuninstall_cmds=
6864
6865 if test -n "$RANLIB"; then
6866 case $host_os in
6867 bitrig* | openbsd*)
6868 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6869 ;;
6870 *)
6871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6872 ;;
6873 esac
6874 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6875 fi
6876
6877 case $host_os in
6878 darwin*)
6879 lock_old_archive_extraction=yes ;;
6880 *)
6881 lock_old_archive_extraction=no ;;
6882 esac
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 # If no C compiler was specified, use CC.
6923 LTCC=${LTCC-"$CC"}
6924
6925 # If no C compiler flags were specified, use CFLAGS.
6926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6927
6928 # Allow CC to be a program name with arguments.
6929 compiler=$CC
6930
6931
6932 # Check for command to grab the raw symbol name followed by C symbol from nm.
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6934 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6935 if test ${lt_cv_sys_global_symbol_pipe+y}
6936 then :
6937 printf %s "(cached) " >&6
6938 else $as_nop
6939
6940 # These are sane defaults that work on at least a few old systems.
6941 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6942
6943 # Character class describing NM global symbol codes.
6944 symcode='[BCDEGRST]'
6945
6946 # Regexp to match symbols that can be accessed directly from C.
6947 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6948
6949 # Define system-specific variables.
6950 case $host_os in
6951 aix*)
6952 symcode='[BCDT]'
6953 ;;
6954 cygwin* | mingw* | pw32* | cegcc*)
6955 symcode='[ABCDGISTW]'
6956 ;;
6957 hpux*)
6958 if test ia64 = "$host_cpu"; then
6959 symcode='[ABCDEGRST]'
6960 fi
6961 ;;
6962 irix* | nonstopux*)
6963 symcode='[BCDEGRST]'
6964 ;;
6965 osf*)
6966 symcode='[BCDEGQRST]'
6967 ;;
6968 solaris*)
6969 symcode='[BDRT]'
6970 ;;
6971 sco3.2v5*)
6972 symcode='[DT]'
6973 ;;
6974 sysv4.2uw2*)
6975 symcode='[DT]'
6976 ;;
6977 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6978 symcode='[ABDT]'
6979 ;;
6980 sysv4)
6981 symcode='[DFNSTU]'
6982 ;;
6983 esac
6984
6985 # If we're using GNU nm, then use its standard symbol codes.
6986 case `$NM -V 2>&1` in
6987 *GNU* | *'with BFD'*)
6988 symcode='[ABCDGIRSTW]' ;;
6989 esac
6990
6991 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6992 # Gets list of data symbols to import.
6993 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6994 # Adjust the below global symbol transforms to fixup imported variables.
6995 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6996 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6997 lt_c_name_lib_hook="\
6998 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6999 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7000 else
7001 # Disable hooks by default.
7002 lt_cv_sys_global_symbol_to_import=
7003 lt_cdecl_hook=
7004 lt_c_name_hook=
7005 lt_c_name_lib_hook=
7006 fi
7007
7008 # Transform an extracted symbol line into a proper C declaration.
7009 # Some systems (esp. on ia64) link data and code symbols differently,
7010 # so use this general approach.
7011 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7012 $lt_cdecl_hook\
7013 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7014 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7015
7016 # Transform an extracted symbol line into symbol name and symbol address
7017 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7018 $lt_c_name_hook\
7019 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7020 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7021
7022 # Transform an extracted symbol line into symbol name with lib prefix and
7023 # symbol address.
7024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7025 $lt_c_name_lib_hook\
7026 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7027 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7028 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7029
7030 # Handle CRLF in mingw tool chain
7031 opt_cr=
7032 case $build_os in
7033 mingw*)
7034 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7035 ;;
7036 esac
7037
7038 # Try without a prefix underscore, then with it.
7039 for ac_symprfx in "" "_"; do
7040
7041 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7042 symxfrm="\\1 $ac_symprfx\\2 \\2"
7043
7044 # Write the raw and C identifiers.
7045 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7046 # Fake it for dumpbin and say T for any non-static function,
7047 # D for any global variable and I for any imported variable.
7048 # Also find C++ and __fastcall symbols from MSVC++,
7049 # which start with @ or ?.
7050 lt_cv_sys_global_symbol_pipe="$AWK '"\
7051 " {last_section=section; section=\$ 3};"\
7052 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7053 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7054 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7055 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7056 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7057 " \$ 0!~/External *\|/{next};"\
7058 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7059 " {if(hide[section]) next};"\
7060 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7061 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7062 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7063 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7064 " ' prfx=^$ac_symprfx"
7065 else
7066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7067 fi
7068 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7069
7070 # Check to see that the pipe works correctly.
7071 pipe_works=no
7072
7073 rm -f conftest*
7074 cat > conftest.$ac_ext <<_LT_EOF
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078 char nm_test_var;
7079 void nm_test_func(void);
7080 void nm_test_func(void){}
7081 #ifdef __cplusplus
7082 }
7083 #endif
7084 int main(){nm_test_var='a';nm_test_func();return(0);}
7085 _LT_EOF
7086
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088 (eval $ac_compile) 2>&5
7089 ac_status=$?
7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }; then
7092 # Now try to grab the symbols.
7093 nlist=conftest.nm
7094 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7095 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7096 # Try sorting and uniquifying the output.
7097 if sort "$nlist" | uniq > "$nlist"T; then
7098 mv -f "$nlist"T "$nlist"
7099 else
7100 rm -f "$nlist"T
7101 fi
7102
7103 # Make sure that we snagged all the symbols we need.
7104 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7105 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7106 cat <<_LT_EOF > conftest.$ac_ext
7107 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7108 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7109 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7110 relocations are performed -- see ld's documentation on pseudo-relocs. */
7111 # define LT_DLSYM_CONST
7112 #elif defined __osf__
7113 /* This system does not cope well with relocations in const data. */
7114 # define LT_DLSYM_CONST
7115 #else
7116 # define LT_DLSYM_CONST const
7117 #endif
7118
7119 #ifdef __cplusplus
7120 extern "C" {
7121 #endif
7122
7123 _LT_EOF
7124 # Now generate the symbol file.
7125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7126
7127 cat <<_LT_EOF >> conftest.$ac_ext
7128
7129 /* The mapping between symbol names and symbols. */
7130 LT_DLSYM_CONST struct {
7131 const char *name;
7132 void *address;
7133 }
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7135 {
7136 { "@PROGRAM@", (void *) 0 },
7137 _LT_EOF
7138 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139 cat <<\_LT_EOF >> conftest.$ac_ext
7140 {0, (void *) 0}
7141 };
7142
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146 return lt__PROGRAM__LTX_preloaded_symbols;
7147 }
7148 #endif
7149
7150 #ifdef __cplusplus
7151 }
7152 #endif
7153 _LT_EOF
7154 # Now try linking the two files.
7155 mv conftest.$ac_objext conftstm.$ac_objext
7156 lt_globsym_save_LIBS=$LIBS
7157 lt_globsym_save_CFLAGS=$CFLAGS
7158 LIBS=conftstm.$ac_objext
7159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161 (eval $ac_link) 2>&5
7162 ac_status=$?
7163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7165 pipe_works=yes
7166 fi
7167 LIBS=$lt_globsym_save_LIBS
7168 CFLAGS=$lt_globsym_save_CFLAGS
7169 else
7170 echo "cannot find nm_test_func in $nlist" >&5
7171 fi
7172 else
7173 echo "cannot find nm_test_var in $nlist" >&5
7174 fi
7175 else
7176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177 fi
7178 else
7179 echo "$progname: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 fi
7182 rm -rf conftest* conftst*
7183
7184 # Do not use the global_symbol_pipe unless it works.
7185 if test yes = "$pipe_works"; then
7186 break
7187 else
7188 lt_cv_sys_global_symbol_pipe=
7189 fi
7190 done
7191
7192 fi
7193
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195 lt_cv_sys_global_symbol_to_cdecl=
7196 fi
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199 printf "%s\n" "failed" >&6; }
7200 else
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202 printf "%s\n" "ok" >&6; }
7203 fi
7204
7205 # Response file support.
7206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7207 nm_file_list_spec='@'
7208 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7209 nm_file_list_spec='@'
7210 fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7249 printf %s "checking for sysroot... " >&6; }
7250
7251 # Check whether --with-sysroot was given.
7252 if test ${with_sysroot+y}
7253 then :
7254 withval=$with_sysroot;
7255 else $as_nop
7256 with_sysroot=no
7257 fi
7258
7259
7260 lt_sysroot=
7261 case $with_sysroot in #(
7262 yes)
7263 if test yes = "$GCC"; then
7264 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7265 fi
7266 ;; #(
7267 /*)
7268 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7269 ;; #(
7270 no|'')
7271 ;; #(
7272 *)
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7274 printf "%s\n" "$with_sysroot" >&6; }
7275 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7276 ;;
7277 esac
7278
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7280 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7281
7282
7283
7284
7285
7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7287 printf %s "checking for a working dd... " >&6; }
7288 if test ${ac_cv_path_lt_DD+y}
7289 then :
7290 printf %s "(cached) " >&6
7291 else $as_nop
7292 printf 0123456789abcdef0123456789abcdef >conftest.i
7293 cat conftest.i conftest.i >conftest2.i
7294 : ${lt_DD:=$DD}
7295 if test -z "$lt_DD"; then
7296 ac_path_lt_DD_found=false
7297 # Loop through the user's path and test for each of PROGNAME-LIST
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301 IFS=$as_save_IFS
7302 case $as_dir in #(((
7303 '') as_dir=./ ;;
7304 */) ;;
7305 *) as_dir=$as_dir/ ;;
7306 esac
7307 for ac_prog in dd
7308 do
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7311 as_fn_executable_p "$ac_path_lt_DD" || continue
7312 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7313 cmp -s conftest.i conftest.out \
7314 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7315 fi
7316 $ac_path_lt_DD_found && break 3
7317 done
7318 done
7319 done
7320 IFS=$as_save_IFS
7321 if test -z "$ac_cv_path_lt_DD"; then
7322 :
7323 fi
7324 else
7325 ac_cv_path_lt_DD=$lt_DD
7326 fi
7327
7328 rm -f conftest.i conftest2.i conftest.out
7329 fi
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7331 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7332
7333
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7335 printf %s "checking how to truncate binary pipes... " >&6; }
7336 if test ${lt_cv_truncate_bin+y}
7337 then :
7338 printf %s "(cached) " >&6
7339 else $as_nop
7340 printf 0123456789abcdef0123456789abcdef >conftest.i
7341 cat conftest.i conftest.i >conftest2.i
7342 lt_cv_truncate_bin=
7343 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7344 cmp -s conftest.i conftest.out \
7345 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7346 fi
7347 rm -f conftest.i conftest2.i conftest.out
7348 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7349 fi
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7351 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7352
7353
7354
7355
7356
7357
7358
7359 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7360 func_cc_basename ()
7361 {
7362 for cc_temp in $*""; do
7363 case $cc_temp in
7364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7366 \-*) ;;
7367 *) break;;
7368 esac
7369 done
7370 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7371 }
7372
7373 # Check whether --enable-libtool-lock was given.
7374 if test ${enable_libtool_lock+y}
7375 then :
7376 enableval=$enable_libtool_lock;
7377 fi
7378
7379 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7380
7381 # Some flags need to be propagated to the compiler or linker for good
7382 # libtool support.
7383 case $host in
7384 ia64-*-hpux*)
7385 # Find out what ABI is being produced by ac_compile, and set mode
7386 # options accordingly.
7387 echo 'int i;' > conftest.$ac_ext
7388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7389 (eval $ac_compile) 2>&5
7390 ac_status=$?
7391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7392 test $ac_status = 0; }; then
7393 case `/usr/bin/file conftest.$ac_objext` in
7394 *ELF-32*)
7395 HPUX_IA64_MODE=32
7396 ;;
7397 *ELF-64*)
7398 HPUX_IA64_MODE=64
7399 ;;
7400 esac
7401 fi
7402 rm -rf conftest*
7403 ;;
7404 *-*-irix6*)
7405 # Find out what ABI is being produced by ac_compile, and set linker
7406 # options accordingly.
7407 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7410 ac_status=$?
7411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 if test yes = "$lt_cv_prog_gnu_ld"; then
7414 case `/usr/bin/file conftest.$ac_objext` in
7415 *32-bit*)
7416 LD="${LD-ld} -melf32bsmip"
7417 ;;
7418 *N32*)
7419 LD="${LD-ld} -melf32bmipn32"
7420 ;;
7421 *64-bit*)
7422 LD="${LD-ld} -melf64bmip"
7423 ;;
7424 esac
7425 else
7426 case `/usr/bin/file conftest.$ac_objext` in
7427 *32-bit*)
7428 LD="${LD-ld} -32"
7429 ;;
7430 *N32*)
7431 LD="${LD-ld} -n32"
7432 ;;
7433 *64-bit*)
7434 LD="${LD-ld} -64"
7435 ;;
7436 esac
7437 fi
7438 fi
7439 rm -rf conftest*
7440 ;;
7441
7442 mips64*-*linux*)
7443 # Find out what ABI is being produced by ac_compile, and set linker
7444 # options accordingly.
7445 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7447 (eval $ac_compile) 2>&5
7448 ac_status=$?
7449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450 test $ac_status = 0; }; then
7451 emul=elf
7452 case `/usr/bin/file conftest.$ac_objext` in
7453 *32-bit*)
7454 emul="${emul}32"
7455 ;;
7456 *64-bit*)
7457 emul="${emul}64"
7458 ;;
7459 esac
7460 case `/usr/bin/file conftest.$ac_objext` in
7461 *MSB*)
7462 emul="${emul}btsmip"
7463 ;;
7464 *LSB*)
7465 emul="${emul}ltsmip"
7466 ;;
7467 esac
7468 case `/usr/bin/file conftest.$ac_objext` in
7469 *N32*)
7470 emul="${emul}n32"
7471 ;;
7472 esac
7473 LD="${LD-ld} -m $emul"
7474 fi
7475 rm -rf conftest*
7476 ;;
7477
7478 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7479 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7480 # Find out what ABI is being produced by ac_compile, and set linker
7481 # options accordingly. Note that the listed cases only cover the
7482 # situations where additional linker options are needed (such as when
7483 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7484 # vice versa); the common cases where no linker options are needed do
7485 # not appear in the list.
7486 echo 'int i;' > conftest.$ac_ext
7487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7488 (eval $ac_compile) 2>&5
7489 ac_status=$?
7490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7491 test $ac_status = 0; }; then
7492 case `/usr/bin/file conftest.o` in
7493 *32-bit*)
7494 case $host in
7495 x86_64-*kfreebsd*-gnu)
7496 LD="${LD-ld} -m elf_i386_fbsd"
7497 ;;
7498 x86_64-*linux*)
7499 case `/usr/bin/file conftest.o` in
7500 *x86-64*)
7501 LD="${LD-ld} -m elf32_x86_64"
7502 ;;
7503 *)
7504 LD="${LD-ld} -m elf_i386"
7505 ;;
7506 esac
7507 ;;
7508 powerpc64le-*linux*)
7509 LD="${LD-ld} -m elf32lppclinux"
7510 ;;
7511 powerpc64-*linux*)
7512 LD="${LD-ld} -m elf32ppclinux"
7513 ;;
7514 s390x-*linux*)
7515 LD="${LD-ld} -m elf_s390"
7516 ;;
7517 sparc64-*linux*)
7518 LD="${LD-ld} -m elf32_sparc"
7519 ;;
7520 esac
7521 ;;
7522 *64-bit*)
7523 case $host in
7524 x86_64-*kfreebsd*-gnu)
7525 LD="${LD-ld} -m elf_x86_64_fbsd"
7526 ;;
7527 x86_64-*linux*)
7528 LD="${LD-ld} -m elf_x86_64"
7529 ;;
7530 powerpcle-*linux*)
7531 LD="${LD-ld} -m elf64lppc"
7532 ;;
7533 powerpc-*linux*)
7534 LD="${LD-ld} -m elf64ppc"
7535 ;;
7536 s390*-*linux*|s390*-*tpf*)
7537 LD="${LD-ld} -m elf64_s390"
7538 ;;
7539 sparc*-*linux*)
7540 LD="${LD-ld} -m elf64_sparc"
7541 ;;
7542 esac
7543 ;;
7544 esac
7545 fi
7546 rm -rf conftest*
7547 ;;
7548
7549 *-*-sco3.2v5*)
7550 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7551 SAVE_CFLAGS=$CFLAGS
7552 CFLAGS="$CFLAGS -belf"
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7554 printf %s "checking whether the C compiler needs -belf... " >&6; }
7555 if test ${lt_cv_cc_needs_belf+y}
7556 then :
7557 printf %s "(cached) " >&6
7558 else $as_nop
7559 ac_ext=c
7560 ac_cpp='$CPP $CPPFLAGS'
7561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7564
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567
7568 int
7569 main (void)
7570 {
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_link "$LINENO"
7577 then :
7578 lt_cv_cc_needs_belf=yes
7579 else $as_nop
7580 lt_cv_cc_needs_belf=no
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7583 conftest$ac_exeext conftest.$ac_ext
7584 ac_ext=c
7585 ac_cpp='$CPP $CPPFLAGS'
7586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7589
7590 fi
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7592 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7593 if test yes != "$lt_cv_cc_needs_belf"; then
7594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7595 CFLAGS=$SAVE_CFLAGS
7596 fi
7597 ;;
7598 *-*solaris*)
7599 # Find out what ABI is being produced by ac_compile, and set linker
7600 # options accordingly.
7601 echo 'int i;' > conftest.$ac_ext
7602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7603 (eval $ac_compile) 2>&5
7604 ac_status=$?
7605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7606 test $ac_status = 0; }; then
7607 case `/usr/bin/file conftest.o` in
7608 *64-bit*)
7609 case $lt_cv_prog_gnu_ld in
7610 yes*)
7611 case $host in
7612 i?86-*-solaris*|x86_64-*-solaris*)
7613 LD="${LD-ld} -m elf_x86_64"
7614 ;;
7615 sparc*-*-solaris*)
7616 LD="${LD-ld} -m elf64_sparc"
7617 ;;
7618 esac
7619 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7620 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7621 LD=${LD-ld}_sol2
7622 fi
7623 ;;
7624 *)
7625 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7626 LD="${LD-ld} -64"
7627 fi
7628 ;;
7629 esac
7630 ;;
7631 esac
7632 fi
7633 rm -rf conftest*
7634 ;;
7635 esac
7636
7637 need_locks=$enable_libtool_lock
7638
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}mt; ac_word=$2
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 printf %s "checking for $ac_word... " >&6; }
7644 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7645 then :
7646 printf %s "(cached) " >&6
7647 else $as_nop
7648 if test -n "$MANIFEST_TOOL"; then
7649 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654 IFS=$as_save_IFS
7655 case $as_dir in #(((
7656 '') as_dir=./ ;;
7657 */) ;;
7658 *) as_dir=$as_dir/ ;;
7659 esac
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7662 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7673 if test -n "$MANIFEST_TOOL"; then
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7675 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7676 else
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 printf "%s\n" "no" >&6; }
7679 fi
7680
7681
7682 fi
7683 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7684 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7685 # Extract the first word of "mt", so it can be a program name with args.
7686 set dummy mt; ac_word=$2
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 printf %s "checking for $ac_word... " >&6; }
7689 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7690 then :
7691 printf %s "(cached) " >&6
7692 else $as_nop
7693 if test -n "$ac_ct_MANIFEST_TOOL"; then
7694 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699 IFS=$as_save_IFS
7700 case $as_dir in #(((
7701 '') as_dir=./ ;;
7702 */) ;;
7703 *) as_dir=$as_dir/ ;;
7704 esac
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7718 if test -n "$ac_ct_MANIFEST_TOOL"; then
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7720 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7721 else
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 printf "%s\n" "no" >&6; }
7724 fi
7725
7726 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7727 MANIFEST_TOOL=":"
7728 else
7729 case $cross_compiling:$ac_tool_warned in
7730 yes:)
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned=yes ;;
7734 esac
7735 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7736 fi
7737 else
7738 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7739 fi
7740
7741 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7743 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7744 if test ${lt_cv_path_mainfest_tool+y}
7745 then :
7746 printf %s "(cached) " >&6
7747 else $as_nop
7748 lt_cv_path_mainfest_tool=no
7749 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7750 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7751 cat conftest.err >&5
7752 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7753 lt_cv_path_mainfest_tool=yes
7754 fi
7755 rm -f conftest*
7756 fi
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7758 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7759 if test yes != "$lt_cv_path_mainfest_tool"; then
7760 MANIFEST_TOOL=:
7761 fi
7762
7763
7764
7765
7766
7767
7768 case $host_os in
7769 rhapsody* | darwin*)
7770 if test -n "$ac_tool_prefix"; then
7771 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7772 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 printf %s "checking for $ac_word... " >&6; }
7775 if test ${ac_cv_prog_DSYMUTIL+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else $as_nop
7779 if test -n "$DSYMUTIL"; then
7780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785 IFS=$as_save_IFS
7786 case $as_dir in #(((
7787 '') as_dir=./ ;;
7788 */) ;;
7789 *) as_dir=$as_dir/ ;;
7790 esac
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7795 break 2
7796 fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7804 if test -n "$DSYMUTIL"; then
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7806 printf "%s\n" "$DSYMUTIL" >&6; }
7807 else
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 printf "%s\n" "no" >&6; }
7810 fi
7811
7812
7813 fi
7814 if test -z "$ac_cv_prog_DSYMUTIL"; then
7815 ac_ct_DSYMUTIL=$DSYMUTIL
7816 # Extract the first word of "dsymutil", so it can be a program name with args.
7817 set dummy dsymutil; ac_word=$2
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 printf %s "checking for $ac_word... " >&6; }
7820 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7821 then :
7822 printf %s "(cached) " >&6
7823 else $as_nop
7824 if test -n "$ac_ct_DSYMUTIL"; then
7825 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 case $as_dir in #(((
7832 '') as_dir=./ ;;
7833 */) ;;
7834 *) as_dir=$as_dir/ ;;
7835 esac
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842 done
7843 done
7844 IFS=$as_save_IFS
7845
7846 fi
7847 fi
7848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7849 if test -n "$ac_ct_DSYMUTIL"; then
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7851 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7852 else
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 printf "%s\n" "no" >&6; }
7855 fi
7856
7857 if test "x$ac_ct_DSYMUTIL" = x; then
7858 DSYMUTIL=":"
7859 else
7860 case $cross_compiling:$ac_tool_warned in
7861 yes:)
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7863 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7864 ac_tool_warned=yes ;;
7865 esac
7866 DSYMUTIL=$ac_ct_DSYMUTIL
7867 fi
7868 else
7869 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7870 fi
7871
7872 if test -n "$ac_tool_prefix"; then
7873 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 printf %s "checking for $ac_word... " >&6; }
7877 if test ${ac_cv_prog_NMEDIT+y}
7878 then :
7879 printf %s "(cached) " >&6
7880 else $as_nop
7881 if test -n "$NMEDIT"; then
7882 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 case $as_dir in #(((
7889 '') as_dir=./ ;;
7890 */) ;;
7891 *) as_dir=$as_dir/ ;;
7892 esac
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 NMEDIT=$ac_cv_prog_NMEDIT
7906 if test -n "$NMEDIT"; then
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7908 printf "%s\n" "$NMEDIT" >&6; }
7909 else
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 printf "%s\n" "no" >&6; }
7912 fi
7913
7914
7915 fi
7916 if test -z "$ac_cv_prog_NMEDIT"; then
7917 ac_ct_NMEDIT=$NMEDIT
7918 # Extract the first word of "nmedit", so it can be a program name with args.
7919 set dummy nmedit; ac_word=$2
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 printf %s "checking for $ac_word... " >&6; }
7922 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7923 then :
7924 printf %s "(cached) " >&6
7925 else $as_nop
7926 if test -n "$ac_ct_NMEDIT"; then
7927 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 case $as_dir in #(((
7934 '') as_dir=./ ;;
7935 */) ;;
7936 *) as_dir=$as_dir/ ;;
7937 esac
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7951 if test -n "$ac_ct_NMEDIT"; then
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7953 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7954 else
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 printf "%s\n" "no" >&6; }
7957 fi
7958
7959 if test "x$ac_ct_NMEDIT" = x; then
7960 NMEDIT=":"
7961 else
7962 case $cross_compiling:$ac_tool_warned in
7963 yes:)
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7966 ac_tool_warned=yes ;;
7967 esac
7968 NMEDIT=$ac_ct_NMEDIT
7969 fi
7970 else
7971 NMEDIT="$ac_cv_prog_NMEDIT"
7972 fi
7973
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7976 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 printf %s "checking for $ac_word... " >&6; }
7979 if test ${ac_cv_prog_LIPO+y}
7980 then :
7981 printf %s "(cached) " >&6
7982 else $as_nop
7983 if test -n "$LIPO"; then
7984 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989 IFS=$as_save_IFS
7990 case $as_dir in #(((
7991 '') as_dir=./ ;;
7992 */) ;;
7993 *) as_dir=$as_dir/ ;;
7994 esac
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 LIPO=$ac_cv_prog_LIPO
8008 if test -n "$LIPO"; then
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8010 printf "%s\n" "$LIPO" >&6; }
8011 else
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 printf "%s\n" "no" >&6; }
8014 fi
8015
8016
8017 fi
8018 if test -z "$ac_cv_prog_LIPO"; then
8019 ac_ct_LIPO=$LIPO
8020 # Extract the first word of "lipo", so it can be a program name with args.
8021 set dummy lipo; ac_word=$2
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 printf %s "checking for $ac_word... " >&6; }
8024 if test ${ac_cv_prog_ac_ct_LIPO+y}
8025 then :
8026 printf %s "(cached) " >&6
8027 else $as_nop
8028 if test -n "$ac_ct_LIPO"; then
8029 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 case $as_dir in #(((
8036 '') as_dir=./ ;;
8037 */) ;;
8038 *) as_dir=$as_dir/ ;;
8039 esac
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_ac_ct_LIPO="lipo"
8043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8053 if test -n "$ac_ct_LIPO"; then
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8055 printf "%s\n" "$ac_ct_LIPO" >&6; }
8056 else
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 printf "%s\n" "no" >&6; }
8059 fi
8060
8061 if test "x$ac_ct_LIPO" = x; then
8062 LIPO=":"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065 yes:)
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8069 esac
8070 LIPO=$ac_ct_LIPO
8071 fi
8072 else
8073 LIPO="$ac_cv_prog_LIPO"
8074 fi
8075
8076 if test -n "$ac_tool_prefix"; then
8077 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8078 set dummy ${ac_tool_prefix}otool; ac_word=$2
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 printf %s "checking for $ac_word... " >&6; }
8081 if test ${ac_cv_prog_OTOOL+y}
8082 then :
8083 printf %s "(cached) " >&6
8084 else $as_nop
8085 if test -n "$OTOOL"; then
8086 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8087 else
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8090 do
8091 IFS=$as_save_IFS
8092 case $as_dir in #(((
8093 '') as_dir=./ ;;
8094 */) ;;
8095 *) as_dir=$as_dir/ ;;
8096 esac
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8099 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8101 break 2
8102 fi
8103 done
8104 done
8105 IFS=$as_save_IFS
8106
8107 fi
8108 fi
8109 OTOOL=$ac_cv_prog_OTOOL
8110 if test -n "$OTOOL"; then
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8112 printf "%s\n" "$OTOOL" >&6; }
8113 else
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 printf "%s\n" "no" >&6; }
8116 fi
8117
8118
8119 fi
8120 if test -z "$ac_cv_prog_OTOOL"; then
8121 ac_ct_OTOOL=$OTOOL
8122 # Extract the first word of "otool", so it can be a program name with args.
8123 set dummy otool; ac_word=$2
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 printf %s "checking for $ac_word... " >&6; }
8126 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8127 then :
8128 printf %s "(cached) " >&6
8129 else $as_nop
8130 if test -n "$ac_ct_OTOOL"; then
8131 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136 IFS=$as_save_IFS
8137 case $as_dir in #(((
8138 '') as_dir=./ ;;
8139 */) ;;
8140 *) as_dir=$as_dir/ ;;
8141 esac
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8144 ac_cv_prog_ac_ct_OTOOL="otool"
8145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8146 break 2
8147 fi
8148 done
8149 done
8150 IFS=$as_save_IFS
8151
8152 fi
8153 fi
8154 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8155 if test -n "$ac_ct_OTOOL"; then
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8157 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8158 else
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 printf "%s\n" "no" >&6; }
8161 fi
8162
8163 if test "x$ac_ct_OTOOL" = x; then
8164 OTOOL=":"
8165 else
8166 case $cross_compiling:$ac_tool_warned in
8167 yes:)
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8170 ac_tool_warned=yes ;;
8171 esac
8172 OTOOL=$ac_ct_OTOOL
8173 fi
8174 else
8175 OTOOL="$ac_cv_prog_OTOOL"
8176 fi
8177
8178 if test -n "$ac_tool_prefix"; then
8179 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 printf %s "checking for $ac_word... " >&6; }
8183 if test ${ac_cv_prog_OTOOL64+y}
8184 then :
8185 printf %s "(cached) " >&6
8186 else $as_nop
8187 if test -n "$OTOOL64"; then
8188 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8189 else
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8192 do
8193 IFS=$as_save_IFS
8194 case $as_dir in #(((
8195 '') as_dir=./ ;;
8196 */) ;;
8197 *) as_dir=$as_dir/ ;;
8198 esac
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8203 break 2
8204 fi
8205 done
8206 done
8207 IFS=$as_save_IFS
8208
8209 fi
8210 fi
8211 OTOOL64=$ac_cv_prog_OTOOL64
8212 if test -n "$OTOOL64"; then
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8214 printf "%s\n" "$OTOOL64" >&6; }
8215 else
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 printf "%s\n" "no" >&6; }
8218 fi
8219
8220
8221 fi
8222 if test -z "$ac_cv_prog_OTOOL64"; then
8223 ac_ct_OTOOL64=$OTOOL64
8224 # Extract the first word of "otool64", so it can be a program name with args.
8225 set dummy otool64; ac_word=$2
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 printf %s "checking for $ac_word... " >&6; }
8228 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else $as_nop
8232 if test -n "$ac_ct_OTOOL64"; then
8233 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238 IFS=$as_save_IFS
8239 case $as_dir in #(((
8240 '') as_dir=./ ;;
8241 */) ;;
8242 *) as_dir=$as_dir/ ;;
8243 esac
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8246 ac_cv_prog_ac_ct_OTOOL64="otool64"
8247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250 done
8251 done
8252 IFS=$as_save_IFS
8253
8254 fi
8255 fi
8256 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8257 if test -n "$ac_ct_OTOOL64"; then
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8259 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8260 else
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 printf "%s\n" "no" >&6; }
8263 fi
8264
8265 if test "x$ac_ct_OTOOL64" = x; then
8266 OTOOL64=":"
8267 else
8268 case $cross_compiling:$ac_tool_warned in
8269 yes:)
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8272 ac_tool_warned=yes ;;
8273 esac
8274 OTOOL64=$ac_ct_OTOOL64
8275 fi
8276 else
8277 OTOOL64="$ac_cv_prog_OTOOL64"
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8307 printf %s "checking for -single_module linker flag... " >&6; }
8308 if test ${lt_cv_apple_cc_single_mod+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else $as_nop
8312 lt_cv_apple_cc_single_mod=no
8313 if test -z "$LT_MULTI_MODULE"; then
8314 # By default we will add the -single_module flag. You can override
8315 # by either setting the environment variable LT_MULTI_MODULE
8316 # non-empty at configure time, or by adding -multi_module to the
8317 # link flags.
8318 rm -rf libconftest.dylib*
8319 echo "int foo(void){return 1;}" > conftest.c
8320 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8321 -dynamiclib -Wl,-single_module conftest.c" >&5
8322 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8323 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8324 _lt_result=$?
8325 # If there is a non-empty error log, and "single_module"
8326 # appears in it, assume the flag caused a linker warning
8327 if test -s conftest.err && $GREP single_module conftest.err; then
8328 cat conftest.err >&5
8329 # Otherwise, if the output was created with a 0 exit code from
8330 # the compiler, it worked.
8331 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8332 lt_cv_apple_cc_single_mod=yes
8333 else
8334 cat conftest.err >&5
8335 fi
8336 rm -rf libconftest.dylib*
8337 rm -f conftest.*
8338 fi
8339 fi
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8341 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8342
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8344 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8345 if test ${lt_cv_ld_exported_symbols_list+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else $as_nop
8349 lt_cv_ld_exported_symbols_list=no
8350 save_LDFLAGS=$LDFLAGS
8351 echo "_main" > conftest.sym
8352 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355
8356 int
8357 main (void)
8358 {
8359
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 if ac_fn_c_try_link "$LINENO"
8365 then :
8366 lt_cv_ld_exported_symbols_list=yes
8367 else $as_nop
8368 lt_cv_ld_exported_symbols_list=no
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8371 conftest$ac_exeext conftest.$ac_ext
8372 LDFLAGS=$save_LDFLAGS
8373
8374 fi
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8376 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8377
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8379 printf %s "checking for -force_load linker flag... " >&6; }
8380 if test ${lt_cv_ld_force_load+y}
8381 then :
8382 printf %s "(cached) " >&6
8383 else $as_nop
8384 lt_cv_ld_force_load=no
8385 cat > conftest.c << _LT_EOF
8386 int forced_loaded() { return 2;}
8387 _LT_EOF
8388 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8389 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8390 echo "$AR cr libconftest.a conftest.o" >&5
8391 $AR cr libconftest.a conftest.o 2>&5
8392 echo "$RANLIB libconftest.a" >&5
8393 $RANLIB libconftest.a 2>&5
8394 cat > conftest.c << _LT_EOF
8395 int main() { return 0;}
8396 _LT_EOF
8397 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8398 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8399 _lt_result=$?
8400 if test -s conftest.err && $GREP force_load conftest.err; then
8401 cat conftest.err >&5
8402 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8403 lt_cv_ld_force_load=yes
8404 else
8405 cat conftest.err >&5
8406 fi
8407 rm -f conftest.err libconftest.a conftest conftest.c
8408 rm -rf conftest.dSYM
8409
8410 fi
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8412 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8413 case $host_os in
8414 rhapsody* | darwin1.[012])
8415 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8416 darwin1.*)
8417 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8418 darwin*) # darwin 5.x on
8419 # if running on 10.5 or later, the deployment target defaults
8420 # to the OS version, if on x86, and 10.4, the deployment
8421 # target defaults to 10.4. Don't you love it?
8422 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8423 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8424 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8425 10.[012][,.]*)
8426 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8427 10.*|11.*)
8428 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8429 esac
8430 ;;
8431 esac
8432 if test yes = "$lt_cv_apple_cc_single_mod"; then
8433 _lt_dar_single_mod='$single_module'
8434 fi
8435 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8436 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8437 else
8438 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8439 fi
8440 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8441 _lt_dsymutil='~$DSYMUTIL $lib || :'
8442 else
8443 _lt_dsymutil=
8444 fi
8445 ;;
8446 esac
8447
8448 # func_munge_path_list VARIABLE PATH
8449 # -----------------------------------
8450 # VARIABLE is name of variable containing _space_ separated list of
8451 # directories to be munged by the contents of PATH, which is string
8452 # having a format:
8453 # "DIR[:DIR]:"
8454 # string "DIR[ DIR]" will be prepended to VARIABLE
8455 # ":DIR[:DIR]"
8456 # string "DIR[ DIR]" will be appended to VARIABLE
8457 # "DIRP[:DIRP]::[DIRA:]DIRA"
8458 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8459 # "DIRA[ DIRA]" will be appended to VARIABLE
8460 # "DIR[:DIR]"
8461 # VARIABLE will be replaced by "DIR[ DIR]"
8462 func_munge_path_list ()
8463 {
8464 case x$2 in
8465 x)
8466 ;;
8467 *:)
8468 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8469 ;;
8470 x:*)
8471 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8472 ;;
8473 *::*)
8474 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8475 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8476 ;;
8477 *)
8478 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8479 ;;
8480 esac
8481 }
8482
8483 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8484 "
8485 if test "x$ac_cv_header_dlfcn_h" = xyes
8486 then :
8487 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8488
8489 fi
8490
8491
8492
8493
8494
8495 # Set options
8496
8497
8498
8499 enable_dlopen=no
8500
8501
8502 enable_win32_dll=no
8503
8504
8505 # Check whether --enable-shared was given.
8506 if test ${enable_shared+y}
8507 then :
8508 enableval=$enable_shared; p=${PACKAGE-default}
8509 case $enableval in
8510 yes) enable_shared=yes ;;
8511 no) enable_shared=no ;;
8512 *)
8513 enable_shared=no
8514 # Look at the argument we got. We use all the common list separators.
8515 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8516 for pkg in $enableval; do
8517 IFS=$lt_save_ifs
8518 if test "X$pkg" = "X$p"; then
8519 enable_shared=yes
8520 fi
8521 done
8522 IFS=$lt_save_ifs
8523 ;;
8524 esac
8525 else $as_nop
8526 enable_shared=yes
8527 fi
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 # Check whether --with-pic was given.
8540 if test ${with_pic+y}
8541 then :
8542 withval=$with_pic; lt_p=${PACKAGE-default}
8543 case $withval in
8544 yes|no) pic_mode=$withval ;;
8545 *)
8546 pic_mode=default
8547 # Look at the argument we got. We use all the common list separators.
8548 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8549 for lt_pkg in $withval; do
8550 IFS=$lt_save_ifs
8551 if test "X$lt_pkg" = "X$lt_p"; then
8552 pic_mode=yes
8553 fi
8554 done
8555 IFS=$lt_save_ifs
8556 ;;
8557 esac
8558 else $as_nop
8559 pic_mode=default
8560 fi
8561
8562
8563
8564
8565
8566
8567
8568
8569 # Check whether --enable-fast-install was given.
8570 if test ${enable_fast_install+y}
8571 then :
8572 enableval=$enable_fast_install; p=${PACKAGE-default}
8573 case $enableval in
8574 yes) enable_fast_install=yes ;;
8575 no) enable_fast_install=no ;;
8576 *)
8577 enable_fast_install=no
8578 # Look at the argument we got. We use all the common list separators.
8579 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8580 for pkg in $enableval; do
8581 IFS=$lt_save_ifs
8582 if test "X$pkg" = "X$p"; then
8583 enable_fast_install=yes
8584 fi
8585 done
8586 IFS=$lt_save_ifs
8587 ;;
8588 esac
8589 else $as_nop
8590 enable_fast_install=yes
8591 fi
8592
8593
8594
8595
8596
8597
8598
8599
8600 shared_archive_member_spec=
8601 case $host,$enable_shared in
8602 power*-*-aix[5-9]*,yes)
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8604 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8605
8606 # Check whether --with-aix-soname was given.
8607 if test ${with_aix_soname+y}
8608 then :
8609 withval=$with_aix_soname; case $withval in
8610 aix|svr4|both)
8611 ;;
8612 *)
8613 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8614 ;;
8615 esac
8616 lt_cv_with_aix_soname=$with_aix_soname
8617 else $as_nop
8618 if test ${lt_cv_with_aix_soname+y}
8619 then :
8620 printf %s "(cached) " >&6
8621 else $as_nop
8622 lt_cv_with_aix_soname=aix
8623 fi
8624
8625 with_aix_soname=$lt_cv_with_aix_soname
8626 fi
8627
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8629 printf "%s\n" "$with_aix_soname" >&6; }
8630 if test aix != "$with_aix_soname"; then
8631 # For the AIX way of multilib, we name the shared archive member
8632 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8633 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8634 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8635 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8636 if test 64 = "${OBJECT_MODE-32}"; then
8637 shared_archive_member_spec=shr_64
8638 else
8639 shared_archive_member_spec=shr
8640 fi
8641 fi
8642 ;;
8643 *)
8644 with_aix_soname=aix
8645 ;;
8646 esac
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657 # This can be used to rebuild libtool when needed
8658 LIBTOOL_DEPS=$ltmain
8659
8660 # Always use our own libtool.
8661 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 test -z "$LN_S" && LN_S="ln -s"
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707 if test -n "${ZSH_VERSION+set}"; then
8708 setopt NO_GLOB_SUBST
8709 fi
8710
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8712 printf %s "checking for objdir... " >&6; }
8713 if test ${lt_cv_objdir+y}
8714 then :
8715 printf %s "(cached) " >&6
8716 else $as_nop
8717 rm -f .libs 2>/dev/null
8718 mkdir .libs 2>/dev/null
8719 if test -d .libs; then
8720 lt_cv_objdir=.libs
8721 else
8722 # MS-DOS does not allow filenames that begin with a dot.
8723 lt_cv_objdir=_libs
8724 fi
8725 rmdir .libs 2>/dev/null
8726 fi
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8728 printf "%s\n" "$lt_cv_objdir" >&6; }
8729 objdir=$lt_cv_objdir
8730
8731
8732
8733
8734
8735 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8736
8737
8738
8739
8740 case $host_os in
8741 aix3*)
8742 # AIX sometimes has problems with the GCC collect2 program. For some
8743 # reason, if we set the COLLECT_NAMES environment variable, the problems
8744 # vanish in a puff of smoke.
8745 if test set != "${COLLECT_NAMES+set}"; then
8746 COLLECT_NAMES=
8747 export COLLECT_NAMES
8748 fi
8749 ;;
8750 esac
8751
8752 # Global variables:
8753 ofile=libtool
8754 can_build_shared=yes
8755
8756 # All known linkers require a '.a' archive for static linking (except MSVC,
8757 # which needs '.lib').
8758 libext=a
8759
8760 with_gnu_ld=$lt_cv_prog_gnu_ld
8761
8762 old_CC=$CC
8763 old_CFLAGS=$CFLAGS
8764
8765 # Set sane defaults for various variables
8766 test -z "$CC" && CC=cc
8767 test -z "$LTCC" && LTCC=$CC
8768 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8769 test -z "$LD" && LD=ld
8770 test -z "$ac_objext" && ac_objext=o
8771
8772 func_cc_basename $compiler
8773 cc_basename=$func_cc_basename_result
8774
8775
8776 # Only perform the check for file, if the check method requires it
8777 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8778 case $deplibs_check_method in
8779 file_magic*)
8780 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8782 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8783 if test ${lt_cv_path_MAGIC_CMD+y}
8784 then :
8785 printf %s "(cached) " >&6
8786 else $as_nop
8787 case $MAGIC_CMD in
8788 [\\/*] | ?:[\\/]*)
8789 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8790 ;;
8791 *)
8792 lt_save_MAGIC_CMD=$MAGIC_CMD
8793 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8794 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8795 for ac_dir in $ac_dummy; do
8796 IFS=$lt_save_ifs
8797 test -z "$ac_dir" && ac_dir=.
8798 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8799 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8800 if test -n "$file_magic_test_file"; then
8801 case $deplibs_check_method in
8802 "file_magic "*)
8803 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8804 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8805 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8806 $EGREP "$file_magic_regex" > /dev/null; then
8807 :
8808 else
8809 cat <<_LT_EOF 1>&2
8810
8811 *** Warning: the command libtool uses to detect shared libraries,
8812 *** $file_magic_cmd, produces output that libtool cannot recognize.
8813 *** The result is that libtool may fail to recognize shared libraries
8814 *** as such. This will affect the creation of libtool libraries that
8815 *** depend on shared libraries, but programs linked with such libtool
8816 *** libraries will work regardless of this problem. Nevertheless, you
8817 *** may want to report the problem to your system manager and/or to
8818 *** [email protected]
8819
8820 _LT_EOF
8821 fi ;;
8822 esac
8823 fi
8824 break
8825 fi
8826 done
8827 IFS=$lt_save_ifs
8828 MAGIC_CMD=$lt_save_MAGIC_CMD
8829 ;;
8830 esac
8831 fi
8832
8833 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8834 if test -n "$MAGIC_CMD"; then
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8836 printf "%s\n" "$MAGIC_CMD" >&6; }
8837 else
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 printf "%s\n" "no" >&6; }
8840 fi
8841
8842
8843
8844
8845
8846 if test -z "$lt_cv_path_MAGIC_CMD"; then
8847 if test -n "$ac_tool_prefix"; then
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8849 printf %s "checking for file... " >&6; }
8850 if test ${lt_cv_path_MAGIC_CMD+y}
8851 then :
8852 printf %s "(cached) " >&6
8853 else $as_nop
8854 case $MAGIC_CMD in
8855 [\\/*] | ?:[\\/]*)
8856 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8857 ;;
8858 *)
8859 lt_save_MAGIC_CMD=$MAGIC_CMD
8860 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8862 for ac_dir in $ac_dummy; do
8863 IFS=$lt_save_ifs
8864 test -z "$ac_dir" && ac_dir=.
8865 if test -f "$ac_dir/file"; then
8866 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8867 if test -n "$file_magic_test_file"; then
8868 case $deplibs_check_method in
8869 "file_magic "*)
8870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8871 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8873 $EGREP "$file_magic_regex" > /dev/null; then
8874 :
8875 else
8876 cat <<_LT_EOF 1>&2
8877
8878 *** Warning: the command libtool uses to detect shared libraries,
8879 *** $file_magic_cmd, produces output that libtool cannot recognize.
8880 *** The result is that libtool may fail to recognize shared libraries
8881 *** as such. This will affect the creation of libtool libraries that
8882 *** depend on shared libraries, but programs linked with such libtool
8883 *** libraries will work regardless of this problem. Nevertheless, you
8884 *** may want to report the problem to your system manager and/or to
8885 *** [email protected]
8886
8887 _LT_EOF
8888 fi ;;
8889 esac
8890 fi
8891 break
8892 fi
8893 done
8894 IFS=$lt_save_ifs
8895 MAGIC_CMD=$lt_save_MAGIC_CMD
8896 ;;
8897 esac
8898 fi
8899
8900 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8901 if test -n "$MAGIC_CMD"; then
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8903 printf "%s\n" "$MAGIC_CMD" >&6; }
8904 else
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 printf "%s\n" "no" >&6; }
8907 fi
8908
8909
8910 else
8911 MAGIC_CMD=:
8912 fi
8913 fi
8914
8915 fi
8916 ;;
8917 esac
8918
8919 # Use C for the default configuration in the libtool script
8920
8921 lt_save_CC=$CC
8922 ac_ext=c
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927
8928
8929 # Source file extension for C test sources.
8930 ac_ext=c
8931
8932 # Object file extension for compiled C test sources.
8933 objext=o
8934 objext=$objext
8935
8936 # Code to be used in simple compile tests
8937 lt_simple_compile_test_code="int some_variable = 0;"
8938
8939 # Code to be used in simple link tests
8940 lt_simple_link_test_code='int main(){return(0);}'
8941
8942
8943
8944
8945
8946
8947
8948 # If no C compiler was specified, use CC.
8949 LTCC=${LTCC-"$CC"}
8950
8951 # If no C compiler flags were specified, use CFLAGS.
8952 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8953
8954 # Allow CC to be a program name with arguments.
8955 compiler=$CC
8956
8957 # Save the default compiler, since it gets overwritten when the other
8958 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8959 compiler_DEFAULT=$CC
8960
8961 # save warnings/boilerplate of simple test code
8962 ac_outfile=conftest.$ac_objext
8963 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8964 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8965 _lt_compiler_boilerplate=`cat conftest.err`
8966 $RM conftest*
8967
8968 ac_outfile=conftest.$ac_objext
8969 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8971 _lt_linker_boilerplate=`cat conftest.err`
8972 $RM -r conftest*
8973
8974
8975 ## CAVEAT EMPTOR:
8976 ## There is no encapsulation within the following macros, do not change
8977 ## the running order or otherwise move them around unless you know exactly
8978 ## what you are doing...
8979 if test -n "$compiler"; then
8980
8981 lt_prog_compiler_no_builtin_flag=
8982
8983 if test yes = "$GCC"; then
8984 case $cc_basename in
8985 nvcc*)
8986 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8987 *)
8988 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8989 esac
8990
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8992 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8993 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8994 then :
8995 printf %s "(cached) " >&6
8996 else $as_nop
8997 lt_cv_prog_compiler_rtti_exceptions=no
8998 ac_outfile=conftest.$ac_objext
8999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9001 # Insert the option either (1) after the last *FLAGS variable, or
9002 # (2) before a word containing "conftest.", or (3) at the end.
9003 # Note that $ac_compile itself does not contain backslashes and begins
9004 # with a dollar sign (not a hyphen), so the echo should work correctly.
9005 # The option is referenced via a variable to avoid confusing sed.
9006 lt_compile=`echo "$ac_compile" | $SED \
9007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9009 -e 's:$: $lt_compiler_flag:'`
9010 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9011 (eval "$lt_compile" 2>conftest.err)
9012 ac_status=$?
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 if (exit $ac_status) && test -s "$ac_outfile"; then
9016 # The compiler can only warn and ignore the option if not recognized
9017 # So say no if there are warnings other than the usual output.
9018 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9020 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9021 lt_cv_prog_compiler_rtti_exceptions=yes
9022 fi
9023 fi
9024 $RM conftest*
9025
9026 fi
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9028 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9029
9030 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9031 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9032 else
9033 :
9034 fi
9035
9036 fi
9037
9038
9039
9040
9041
9042
9043 lt_prog_compiler_wl=
9044 lt_prog_compiler_pic=
9045 lt_prog_compiler_static=
9046
9047
9048 if test yes = "$GCC"; then
9049 lt_prog_compiler_wl='-Wl,'
9050 lt_prog_compiler_static='-static'
9051
9052 case $host_os in
9053 aix*)
9054 # All AIX code is PIC.
9055 if test ia64 = "$host_cpu"; then
9056 # AIX 5 now supports IA64 processor
9057 lt_prog_compiler_static='-Bstatic'
9058 fi
9059 lt_prog_compiler_pic='-fPIC'
9060 ;;
9061
9062 amigaos*)
9063 case $host_cpu in
9064 powerpc)
9065 # see comment about AmigaOS4 .so support
9066 lt_prog_compiler_pic='-fPIC'
9067 ;;
9068 m68k)
9069 # FIXME: we need at least 68020 code to build shared libraries, but
9070 # adding the '-m68020' flag to GCC prevents building anything better,
9071 # like '-m68040'.
9072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9073 ;;
9074 esac
9075 ;;
9076
9077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9078 # PIC is the default for these OSes.
9079 ;;
9080
9081 mingw* | cygwin* | pw32* | os2* | cegcc*)
9082 # This hack is so that the source file can tell whether it is being
9083 # built for inclusion in a dll (and should export symbols for example).
9084 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9085 # (--disable-auto-import) libraries
9086 lt_prog_compiler_pic='-DDLL_EXPORT'
9087 case $host_os in
9088 os2*)
9089 lt_prog_compiler_static='$wl-static'
9090 ;;
9091 esac
9092 ;;
9093
9094 darwin* | rhapsody*)
9095 # PIC is the default on this platform
9096 # Common symbols not allowed in MH_DYLIB files
9097 lt_prog_compiler_pic='-fno-common'
9098 ;;
9099
9100 haiku*)
9101 # PIC is the default for Haiku.
9102 # The "-static" flag exists, but is broken.
9103 lt_prog_compiler_static=
9104 ;;
9105
9106 hpux*)
9107 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9108 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9109 # sets the default TLS model and affects inlining.
9110 case $host_cpu in
9111 hppa*64*)
9112 # +Z the default
9113 ;;
9114 *)
9115 lt_prog_compiler_pic='-fPIC'
9116 ;;
9117 esac
9118 ;;
9119
9120 interix[3-9]*)
9121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9122 # Instead, we relocate shared libraries at runtime.
9123 ;;
9124
9125 msdosdjgpp*)
9126 # Just because we use GCC doesn't mean we suddenly get shared libraries
9127 # on systems that don't support them.
9128 lt_prog_compiler_can_build_shared=no
9129 enable_shared=no
9130 ;;
9131
9132 *nto* | *qnx*)
9133 # QNX uses GNU C++, but need to define -shared option too, otherwise
9134 # it will coredump.
9135 lt_prog_compiler_pic='-fPIC -shared'
9136 ;;
9137
9138 sysv4*MP*)
9139 if test -d /usr/nec; then
9140 lt_prog_compiler_pic=-Kconform_pic
9141 fi
9142 ;;
9143
9144 *)
9145 lt_prog_compiler_pic='-fPIC'
9146 ;;
9147 esac
9148
9149 case $cc_basename in
9150 nvcc*) # Cuda Compiler Driver 2.2
9151 lt_prog_compiler_wl='-Xlinker '
9152 if test -n "$lt_prog_compiler_pic"; then
9153 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9154 fi
9155 ;;
9156 esac
9157 else
9158 # PORTME Check for flag to pass linker flags through the system compiler.
9159 case $host_os in
9160 aix*)
9161 lt_prog_compiler_wl='-Wl,'
9162 if test ia64 = "$host_cpu"; then
9163 # AIX 5 now supports IA64 processor
9164 lt_prog_compiler_static='-Bstatic'
9165 else
9166 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9167 fi
9168 ;;
9169
9170 darwin* | rhapsody*)
9171 # PIC is the default on this platform
9172 # Common symbols not allowed in MH_DYLIB files
9173 lt_prog_compiler_pic='-fno-common'
9174 case $cc_basename in
9175 nagfor*)
9176 # NAG Fortran compiler
9177 lt_prog_compiler_wl='-Wl,-Wl,,'
9178 lt_prog_compiler_pic='-PIC'
9179 lt_prog_compiler_static='-Bstatic'
9180 ;;
9181 esac
9182 ;;
9183
9184 mingw* | cygwin* | pw32* | os2* | cegcc*)
9185 # This hack is so that the source file can tell whether it is being
9186 # built for inclusion in a dll (and should export symbols for example).
9187 lt_prog_compiler_pic='-DDLL_EXPORT'
9188 case $host_os in
9189 os2*)
9190 lt_prog_compiler_static='$wl-static'
9191 ;;
9192 esac
9193 ;;
9194
9195 hpux9* | hpux10* | hpux11*)
9196 lt_prog_compiler_wl='-Wl,'
9197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9198 # not for PA HP-UX.
9199 case $host_cpu in
9200 hppa*64*|ia64*)
9201 # +Z the default
9202 ;;
9203 *)
9204 lt_prog_compiler_pic='+Z'
9205 ;;
9206 esac
9207 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9208 lt_prog_compiler_static='$wl-a ${wl}archive'
9209 ;;
9210
9211 irix5* | irix6* | nonstopux*)
9212 lt_prog_compiler_wl='-Wl,'
9213 # PIC (with -KPIC) is the default.
9214 lt_prog_compiler_static='-non_shared'
9215 ;;
9216
9217 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9218 case $cc_basename in
9219 # old Intel for x86_64, which still supported -KPIC.
9220 ecc*)
9221 lt_prog_compiler_wl='-Wl,'
9222 lt_prog_compiler_pic='-KPIC'
9223 lt_prog_compiler_static='-static'
9224 ;;
9225 # flang / f18. f95 an alias for gfortran or flang on Debian
9226 flang* | f18* | f95*)
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='-fPIC'
9229 lt_prog_compiler_static='-static'
9230 ;;
9231 # icc used to be incompatible with GCC.
9232 # ICC 10 doesn't accept -KPIC any more.
9233 icc* | ifort*)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-fPIC'
9236 lt_prog_compiler_static='-static'
9237 ;;
9238 # Lahey Fortran 8.1.
9239 lf95*)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='--shared'
9242 lt_prog_compiler_static='--static'
9243 ;;
9244 nagfor*)
9245 # NAG Fortran compiler
9246 lt_prog_compiler_wl='-Wl,-Wl,,'
9247 lt_prog_compiler_pic='-PIC'
9248 lt_prog_compiler_static='-Bstatic'
9249 ;;
9250 tcc*)
9251 # Fabrice Bellard et al's Tiny C Compiler
9252 lt_prog_compiler_wl='-Wl,'
9253 lt_prog_compiler_pic='-fPIC'
9254 lt_prog_compiler_static='-static'
9255 ;;
9256 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9257 # Portland Group compilers (*not* the Pentium gcc compiler,
9258 # which looks to be a dead project)
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_pic='-fpic'
9261 lt_prog_compiler_static='-Bstatic'
9262 ;;
9263 ccc*)
9264 lt_prog_compiler_wl='-Wl,'
9265 # All Alpha code is PIC.
9266 lt_prog_compiler_static='-non_shared'
9267 ;;
9268 xl* | bgxl* | bgf* | mpixl*)
9269 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9270 lt_prog_compiler_wl='-Wl,'
9271 lt_prog_compiler_pic='-qpic'
9272 lt_prog_compiler_static='-qstaticlink'
9273 ;;
9274 *)
9275 case `$CC -V 2>&1 | sed 5q` in
9276 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9277 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9278 lt_prog_compiler_pic='-KPIC'
9279 lt_prog_compiler_static='-Bstatic'
9280 lt_prog_compiler_wl=''
9281 ;;
9282 *Sun\ F* | *Sun*Fortran*)
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 lt_prog_compiler_wl='-Qoption ld '
9286 ;;
9287 *Sun\ C*)
9288 # Sun C 5.9
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-Bstatic'
9291 lt_prog_compiler_wl='-Wl,'
9292 ;;
9293 *Intel*\ [CF]*Compiler*)
9294 lt_prog_compiler_wl='-Wl,'
9295 lt_prog_compiler_pic='-fPIC'
9296 lt_prog_compiler_static='-static'
9297 ;;
9298 *Portland\ Group*)
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-fpic'
9301 lt_prog_compiler_static='-Bstatic'
9302 ;;
9303 esac
9304 ;;
9305 esac
9306 ;;
9307
9308 newsos6)
9309 lt_prog_compiler_pic='-KPIC'
9310 lt_prog_compiler_static='-Bstatic'
9311 ;;
9312
9313 *nto* | *qnx*)
9314 # QNX uses GNU C++, but need to define -shared option too, otherwise
9315 # it will coredump.
9316 lt_prog_compiler_pic='-fPIC -shared'
9317 ;;
9318
9319 osf3* | osf4* | osf5*)
9320 lt_prog_compiler_wl='-Wl,'
9321 # All OSF/1 code is PIC.
9322 lt_prog_compiler_static='-non_shared'
9323 ;;
9324
9325 rdos*)
9326 lt_prog_compiler_static='-non_shared'
9327 ;;
9328
9329 solaris*)
9330 lt_prog_compiler_pic='-KPIC'
9331 lt_prog_compiler_static='-Bstatic'
9332 case $cc_basename in
9333 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9334 lt_prog_compiler_wl='-Qoption ld ';;
9335 *)
9336 lt_prog_compiler_wl='-Wl,';;
9337 esac
9338 ;;
9339
9340 sunos4*)
9341 lt_prog_compiler_wl='-Qoption ld '
9342 lt_prog_compiler_pic='-PIC'
9343 lt_prog_compiler_static='-Bstatic'
9344 ;;
9345
9346 sysv4 | sysv4.2uw2* | sysv4.3*)
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_pic='-KPIC'
9349 lt_prog_compiler_static='-Bstatic'
9350 ;;
9351
9352 sysv4*MP*)
9353 if test -d /usr/nec; then
9354 lt_prog_compiler_pic='-Kconform_pic'
9355 lt_prog_compiler_static='-Bstatic'
9356 fi
9357 ;;
9358
9359 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9360 lt_prog_compiler_wl='-Wl,'
9361 lt_prog_compiler_pic='-KPIC'
9362 lt_prog_compiler_static='-Bstatic'
9363 ;;
9364
9365 unicos*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_can_build_shared=no
9368 ;;
9369
9370 uts4*)
9371 lt_prog_compiler_pic='-pic'
9372 lt_prog_compiler_static='-Bstatic'
9373 ;;
9374
9375 *)
9376 lt_prog_compiler_can_build_shared=no
9377 ;;
9378 esac
9379 fi
9380
9381 case $host_os in
9382 # For platforms that do not support PIC, -DPIC is meaningless:
9383 *djgpp*)
9384 lt_prog_compiler_pic=
9385 ;;
9386 *)
9387 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9388 ;;
9389 esac
9390
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9392 printf %s "checking for $compiler option to produce PIC... " >&6; }
9393 if test ${lt_cv_prog_compiler_pic+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else $as_nop
9397 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9398 fi
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9400 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9401 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9402
9403 #
9404 # Check to make sure the PIC flag actually works.
9405 #
9406 if test -n "$lt_prog_compiler_pic"; then
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9408 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9409 if test ${lt_cv_prog_compiler_pic_works+y}
9410 then :
9411 printf %s "(cached) " >&6
9412 else $as_nop
9413 lt_cv_prog_compiler_pic_works=no
9414 ac_outfile=conftest.$ac_objext
9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9417 # Insert the option either (1) after the last *FLAGS variable, or
9418 # (2) before a word containing "conftest.", or (3) at the end.
9419 # Note that $ac_compile itself does not contain backslashes and begins
9420 # with a dollar sign (not a hyphen), so the echo should work correctly.
9421 # The option is referenced via a variable to avoid confusing sed.
9422 lt_compile=`echo "$ac_compile" | $SED \
9423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9425 -e 's:$: $lt_compiler_flag:'`
9426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9427 (eval "$lt_compile" 2>conftest.err)
9428 ac_status=$?
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 if (exit $ac_status) && test -s "$ac_outfile"; then
9432 # The compiler can only warn and ignore the option if not recognized
9433 # So say no if there are warnings other than the usual output.
9434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler_pic_works=yes
9438 fi
9439 fi
9440 $RM conftest*
9441
9442 fi
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9444 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9445
9446 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9447 case $lt_prog_compiler_pic in
9448 "" | " "*) ;;
9449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9450 esac
9451 else
9452 lt_prog_compiler_pic=
9453 lt_prog_compiler_can_build_shared=no
9454 fi
9455
9456 fi
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468 #
9469 # Check to make sure the static flag actually works.
9470 #
9471 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9473 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9474 if test ${lt_cv_prog_compiler_static_works+y}
9475 then :
9476 printf %s "(cached) " >&6
9477 else $as_nop
9478 lt_cv_prog_compiler_static_works=no
9479 save_LDFLAGS=$LDFLAGS
9480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9483 # The linker can only warn and ignore the option if not recognized
9484 # So say no if there are warnings
9485 if test -s conftest.err; then
9486 # Append any errors to the config.log.
9487 cat conftest.err 1>&5
9488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9490 if diff conftest.exp conftest.er2 >/dev/null; then
9491 lt_cv_prog_compiler_static_works=yes
9492 fi
9493 else
9494 lt_cv_prog_compiler_static_works=yes
9495 fi
9496 fi
9497 $RM -r conftest*
9498 LDFLAGS=$save_LDFLAGS
9499
9500 fi
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9502 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9503
9504 if test yes = "$lt_cv_prog_compiler_static_works"; then
9505 :
9506 else
9507 lt_prog_compiler_static=
9508 fi
9509
9510
9511
9512
9513
9514
9515
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9517 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9518 if test ${lt_cv_prog_compiler_c_o+y}
9519 then :
9520 printf %s "(cached) " >&6
9521 else $as_nop
9522 lt_cv_prog_compiler_c_o=no
9523 $RM -r conftest 2>/dev/null
9524 mkdir conftest
9525 cd conftest
9526 mkdir out
9527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9528
9529 lt_compiler_flag="-o out/conftest2.$ac_objext"
9530 # Insert the option either (1) after the last *FLAGS variable, or
9531 # (2) before a word containing "conftest.", or (3) at the end.
9532 # Note that $ac_compile itself does not contain backslashes and begins
9533 # with a dollar sign (not a hyphen), so the echo should work correctly.
9534 lt_compile=`echo "$ac_compile" | $SED \
9535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9537 -e 's:$: $lt_compiler_flag:'`
9538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9539 (eval "$lt_compile" 2>out/conftest.err)
9540 ac_status=$?
9541 cat out/conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9544 then
9545 # The compiler can only warn and ignore the option if not recognized
9546 # So say no if there are warnings
9547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9550 lt_cv_prog_compiler_c_o=yes
9551 fi
9552 fi
9553 chmod u+w . 2>&5
9554 $RM conftest*
9555 # SGI C++ compiler will create directory out/ii_files/ for
9556 # template instantiation
9557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9558 $RM out/* && rmdir out
9559 cd ..
9560 $RM -r conftest
9561 $RM conftest*
9562
9563 fi
9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9565 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9566
9567
9568
9569
9570
9571
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9573 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9574 if test ${lt_cv_prog_compiler_c_o+y}
9575 then :
9576 printf %s "(cached) " >&6
9577 else $as_nop
9578 lt_cv_prog_compiler_c_o=no
9579 $RM -r conftest 2>/dev/null
9580 mkdir conftest
9581 cd conftest
9582 mkdir out
9583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584
9585 lt_compiler_flag="-o out/conftest2.$ac_objext"
9586 # Insert the option either (1) after the last *FLAGS variable, or
9587 # (2) before a word containing "conftest.", or (3) at the end.
9588 # Note that $ac_compile itself does not contain backslashes and begins
9589 # with a dollar sign (not a hyphen), so the echo should work correctly.
9590 lt_compile=`echo "$ac_compile" | $SED \
9591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9593 -e 's:$: $lt_compiler_flag:'`
9594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9595 (eval "$lt_compile" 2>out/conftest.err)
9596 ac_status=$?
9597 cat out/conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9600 then
9601 # The compiler can only warn and ignore the option if not recognized
9602 # So say no if there are warnings
9603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9606 lt_cv_prog_compiler_c_o=yes
9607 fi
9608 fi
9609 chmod u+w . 2>&5
9610 $RM conftest*
9611 # SGI C++ compiler will create directory out/ii_files/ for
9612 # template instantiation
9613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9614 $RM out/* && rmdir out
9615 cd ..
9616 $RM -r conftest
9617 $RM conftest*
9618
9619 fi
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9621 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9622
9623
9624
9625
9626 hard_links=nottested
9627 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9628 # do not overwrite the value of need_locks provided by the user
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9630 printf %s "checking if we can lock with hard links... " >&6; }
9631 hard_links=yes
9632 $RM conftest*
9633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9634 touch conftest.a
9635 ln conftest.a conftest.b 2>&5 || hard_links=no
9636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9638 printf "%s\n" "$hard_links" >&6; }
9639 if test no = "$hard_links"; then
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9641 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9642 need_locks=warn
9643 fi
9644 else
9645 need_locks=no
9646 fi
9647
9648
9649
9650
9651
9652
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9654 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9655
9656 runpath_var=
9657 allow_undefined_flag=
9658 always_export_symbols=no
9659 archive_cmds=
9660 archive_expsym_cmds=
9661 compiler_needs_object=no
9662 enable_shared_with_static_runtimes=no
9663 export_dynamic_flag_spec=
9664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9665 hardcode_automatic=no
9666 hardcode_direct=no
9667 hardcode_direct_absolute=no
9668 hardcode_libdir_flag_spec=
9669 hardcode_libdir_separator=
9670 hardcode_minus_L=no
9671 hardcode_shlibpath_var=unsupported
9672 inherit_rpath=no
9673 link_all_deplibs=unknown
9674 module_cmds=
9675 module_expsym_cmds=
9676 old_archive_from_new_cmds=
9677 old_archive_from_expsyms_cmds=
9678 thread_safe_flag_spec=
9679 whole_archive_flag_spec=
9680 # include_expsyms should be a list of space-separated symbols to be *always*
9681 # included in the symbol list
9682 include_expsyms=
9683 # exclude_expsyms can be an extended regexp of symbols to exclude
9684 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9685 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9686 # as well as any symbol that contains 'd'.
9687 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9689 # platforms (ab)use it in PIC code, but their linkers get confused if
9690 # the symbol is explicitly referenced. Since portable code cannot
9691 # rely on this symbol name, it's probably fine to never include it in
9692 # preloaded symbol tables.
9693 # Exclude shared library initialization/finalization symbols.
9694 extract_expsyms_cmds=
9695
9696 case $host_os in
9697 cygwin* | mingw* | pw32* | cegcc*)
9698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9699 # When not using gcc, we currently assume that we are using
9700 # Microsoft Visual C++.
9701 if test yes != "$GCC"; then
9702 with_gnu_ld=no
9703 fi
9704 ;;
9705 interix*)
9706 # we just hope/assume this is gcc and not c89 (= MSVC++)
9707 with_gnu_ld=yes
9708 ;;
9709 openbsd* | bitrig*)
9710 with_gnu_ld=no
9711 ;;
9712 linux* | k*bsd*-gnu | gnu*)
9713 link_all_deplibs=no
9714 ;;
9715 esac
9716
9717 ld_shlibs=yes
9718
9719 # On some targets, GNU ld is compatible enough with the native linker
9720 # that we're better off using the native interface for both.
9721 lt_use_gnu_ld_interface=no
9722 if test yes = "$with_gnu_ld"; then
9723 case $host_os in
9724 aix*)
9725 # The AIX port of GNU ld has always aspired to compatibility
9726 # with the native linker. However, as the warning in the GNU ld
9727 # block says, versions before 2.19.5* couldn't really create working
9728 # shared libraries, regardless of the interface used.
9729 case `$LD -v 2>&1` in
9730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9732 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9733 *)
9734 lt_use_gnu_ld_interface=yes
9735 ;;
9736 esac
9737 ;;
9738 *)
9739 lt_use_gnu_ld_interface=yes
9740 ;;
9741 esac
9742 fi
9743
9744 if test yes = "$lt_use_gnu_ld_interface"; then
9745 # If archive_cmds runs LD, not CC, wlarc should be empty
9746 wlarc='$wl'
9747
9748 # Set some defaults for GNU ld with shared library support. These
9749 # are reset later if shared libraries are not supported. Putting them
9750 # here allows them to be overridden if necessary.
9751 runpath_var=LD_RUN_PATH
9752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9753 export_dynamic_flag_spec='$wl--export-dynamic'
9754 # ancient GNU ld didn't support --whole-archive et. al.
9755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9756 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9757 else
9758 whole_archive_flag_spec=
9759 fi
9760 supports_anon_versioning=no
9761 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9762 *GNU\ gold*) supports_anon_versioning=yes ;;
9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9766 *\ 2.11.*) ;; # other 2.11 versions
9767 *) supports_anon_versioning=yes ;;
9768 esac
9769
9770 # See if GNU ld supports shared libraries.
9771 case $host_os in
9772 aix[3-9]*)
9773 # On AIX/PPC, the GNU linker is very broken
9774 if test ia64 != "$host_cpu"; then
9775 ld_shlibs=no
9776 cat <<_LT_EOF 1>&2
9777
9778 *** Warning: the GNU linker, at least up to release 2.19, is reported
9779 *** to be unable to reliably create shared libraries on AIX.
9780 *** Therefore, libtool is disabling shared libraries support. If you
9781 *** really care for shared libraries, you may want to install binutils
9782 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9783 *** You will then need to restart the configuration process.
9784
9785 _LT_EOF
9786 fi
9787 ;;
9788
9789 amigaos*)
9790 case $host_cpu in
9791 powerpc)
9792 # see comment about AmigaOS4 .so support
9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9794 archive_expsym_cmds=''
9795 ;;
9796 m68k)
9797 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)'
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 hardcode_minus_L=yes
9800 ;;
9801 esac
9802 ;;
9803
9804 beos*)
9805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9806 allow_undefined_flag=unsupported
9807 # Joseph Beckenbach <[email protected]> says some releases of gcc
9808 # support --undefined. This deserves some investigation. FIXME
9809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9810 else
9811 ld_shlibs=no
9812 fi
9813 ;;
9814
9815 cygwin* | mingw* | pw32* | cegcc*)
9816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9817 # as there is no search path for DLLs.
9818 hardcode_libdir_flag_spec='-L$libdir'
9819 export_dynamic_flag_spec='$wl--export-all-symbols'
9820 allow_undefined_flag=unsupported
9821 always_export_symbols=no
9822 enable_shared_with_static_runtimes=yes
9823 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'
9824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9825
9826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828 # If the export-symbols file already is a .def file, use it as
9829 # is; otherwise, prepend EXPORTS...
9830 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9831 cp $export_symbols $output_objdir/$soname.def;
9832 else
9833 echo EXPORTS > $output_objdir/$soname.def;
9834 cat $export_symbols >> $output_objdir/$soname.def;
9835 fi~
9836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9837 else
9838 ld_shlibs=no
9839 fi
9840 ;;
9841
9842 haiku*)
9843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9844 link_all_deplibs=yes
9845 ;;
9846
9847 os2*)
9848 hardcode_libdir_flag_spec='-L$libdir'
9849 hardcode_minus_L=yes
9850 allow_undefined_flag=unsupported
9851 shrext_cmds=.dll
9852 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9855 $ECHO EXPORTS >> $output_objdir/$libname.def~
9856 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9858 emximp -o $lib $output_objdir/$libname.def'
9859 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9862 $ECHO EXPORTS >> $output_objdir/$libname.def~
9863 prefix_cmds="$SED"~
9864 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9865 prefix_cmds="$prefix_cmds -e 1d";
9866 fi~
9867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9868 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9870 emximp -o $lib $output_objdir/$libname.def'
9871 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9872 enable_shared_with_static_runtimes=yes
9873 ;;
9874
9875 interix[3-9]*)
9876 hardcode_direct=no
9877 hardcode_shlibpath_var=no
9878 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9879 export_dynamic_flag_spec='$wl-E'
9880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9881 # Instead, shared libraries are loaded at an image base (0x10000000 by
9882 # default) and relocated if they conflict, which is a slow very memory
9883 # consuming and fragmenting process. To avoid this, we pick a random,
9884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9885 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9887 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'
9888 ;;
9889
9890 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9891 tmp_diet=no
9892 if test linux-dietlibc = "$host_os"; then
9893 case $cc_basename in
9894 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9895 esac
9896 fi
9897 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9898 && test no = "$tmp_diet"
9899 then
9900 tmp_addflag=' $pic_flag'
9901 tmp_sharedflag='-shared'
9902 case $cc_basename,$host_cpu in
9903 pgcc*) # Portland Group C compiler
9904 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'
9905 tmp_addflag=' $pic_flag'
9906 ;;
9907 pgf77* | pgf90* | pgf95* | pgfortran*)
9908 # Portland Group f77 and f90 compilers
9909 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'
9910 tmp_addflag=' $pic_flag -Mnomain' ;;
9911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9912 tmp_addflag=' -i_dynamic' ;;
9913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9914 tmp_addflag=' -i_dynamic -nofor_main' ;;
9915 ifc* | ifort*) # Intel Fortran compiler
9916 tmp_addflag=' -nofor_main' ;;
9917 lf95*) # Lahey Fortran 8.1
9918 whole_archive_flag_spec=
9919 tmp_sharedflag='--shared' ;;
9920 nagfor*) # NAGFOR 5.3
9921 tmp_sharedflag='-Wl,-shared' ;;
9922 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9923 tmp_sharedflag='-qmkshrobj'
9924 tmp_addflag= ;;
9925 nvcc*) # Cuda Compiler Driver 2.2
9926 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'
9927 compiler_needs_object=yes
9928 ;;
9929 esac
9930 case `$CC -V 2>&1 | sed 5q` in
9931 *Sun\ C*) # Sun C 5.9
9932 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'
9933 compiler_needs_object=yes
9934 tmp_sharedflag='-G' ;;
9935 *Sun\ F*) # Sun Fortran 8.3
9936 tmp_sharedflag='-G' ;;
9937 esac
9938 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9939
9940 if test yes = "$supports_anon_versioning"; then
9941 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9943 echo "local: *; };" >> $output_objdir/$libname.ver~
9944 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9945 fi
9946
9947 case $cc_basename in
9948 tcc*)
9949 export_dynamic_flag_spec='-rdynamic'
9950 ;;
9951 xlf* | bgf* | bgxlf* | mpixlf*)
9952 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9953 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9955 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9956 if test yes = "$supports_anon_versioning"; then
9957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9959 echo "local: *; };" >> $output_objdir/$libname.ver~
9960 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9961 fi
9962 ;;
9963 esac
9964 else
9965 ld_shlibs=no
9966 fi
9967 ;;
9968
9969 netbsd* | netbsdelf*-gnu)
9970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9972 wlarc=
9973 else
9974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9976 fi
9977 ;;
9978
9979 solaris*)
9980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9981 ld_shlibs=no
9982 cat <<_LT_EOF 1>&2
9983
9984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9985 *** create shared libraries on Solaris systems. Therefore, libtool
9986 *** is disabling shared libraries support. We urge you to upgrade GNU
9987 *** binutils to release 2.9.1 or newer. Another option is to modify
9988 *** your PATH or compiler configuration so that the native linker is
9989 *** used, and then restart.
9990
9991 _LT_EOF
9992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9994 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9995 else
9996 ld_shlibs=no
9997 fi
9998 ;;
9999
10000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10001 case `$LD -v 2>&1` in
10002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10003 ld_shlibs=no
10004 cat <<_LT_EOF 1>&2
10005
10006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10007 *** reliably create shared libraries on SCO systems. Therefore, libtool
10008 *** is disabling shared libraries support. We urge you to upgrade GNU
10009 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10010 *** your PATH or compiler configuration so that the native linker is
10011 *** used, and then restart.
10012
10013 _LT_EOF
10014 ;;
10015 *)
10016 # For security reasons, it is highly recommended that you always
10017 # use absolute paths for naming shared libraries, and exclude the
10018 # DT_RUNPATH tag from executables and libraries. But doing so
10019 # requires that you compile everything twice, which is a pain.
10020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10024 else
10025 ld_shlibs=no
10026 fi
10027 ;;
10028 esac
10029 ;;
10030
10031 sunos4*)
10032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10033 wlarc=
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10036 ;;
10037
10038 *)
10039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10042 else
10043 ld_shlibs=no
10044 fi
10045 ;;
10046 esac
10047
10048 if test no = "$ld_shlibs"; then
10049 runpath_var=
10050 hardcode_libdir_flag_spec=
10051 export_dynamic_flag_spec=
10052 whole_archive_flag_spec=
10053 fi
10054 else
10055 # PORTME fill in a description of your system's linker (not GNU ld)
10056 case $host_os in
10057 aix3*)
10058 allow_undefined_flag=unsupported
10059 always_export_symbols=yes
10060 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'
10061 # Note: this linker hardcodes the directories in LIBPATH if there
10062 # are no directories specified by -L.
10063 hardcode_minus_L=yes
10064 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10065 # Neither direct hardcoding nor static linking is supported with a
10066 # broken collect2.
10067 hardcode_direct=unsupported
10068 fi
10069 ;;
10070
10071 aix[4-9]*)
10072 if test ia64 = "$host_cpu"; then
10073 # On IA64, the linker does run time linking by default, so we don't
10074 # have to do anything special.
10075 aix_use_runtimelinking=no
10076 exp_sym_flag='-Bexport'
10077 no_entry_flag=
10078 else
10079 # If we're using GNU nm, then we don't want the "-C" option.
10080 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10081 # Without the "-l" option, or with the "-B" option, AIX nm treats
10082 # weak defined symbols like other global defined symbols, whereas
10083 # GNU nm marks them as "W".
10084 # While the 'weak' keyword is ignored in the Export File, we need
10085 # it in the Import File for the 'aix-soname' feature, so we have
10086 # to replace the "-B" option with "-P" for AIX nm.
10087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10088 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'
10089 else
10090 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10091 fi
10092 aix_use_runtimelinking=no
10093
10094 # Test if we are trying to use run time linking or normal
10095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10096 # have runtime linking enabled, and use it for executables.
10097 # For shared libraries, we enable/disable runtime linking
10098 # depending on the kind of the shared library created -
10099 # when "with_aix_soname,aix_use_runtimelinking" is:
10100 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10101 # "aix,yes" lib.so shared, rtl:yes, for executables
10102 # lib.a static archive
10103 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10104 # lib.a(lib.so.V) shared, rtl:no, for executables
10105 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10106 # lib.a(lib.so.V) shared, rtl:no
10107 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10108 # lib.a static archive
10109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10110 for ld_flag in $LDFLAGS; do
10111 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10112 aix_use_runtimelinking=yes
10113 break
10114 fi
10115 done
10116 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10117 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10118 # so we don't have lib.a shared libs to link our executables.
10119 # We have to force runtime linking in this case.
10120 aix_use_runtimelinking=yes
10121 LDFLAGS="$LDFLAGS -Wl,-brtl"
10122 fi
10123 ;;
10124 esac
10125
10126 exp_sym_flag='-bexport'
10127 no_entry_flag='-bnoentry'
10128 fi
10129
10130 # When large executables or shared objects are built, AIX ld can
10131 # have problems creating the table of contents. If linking a library
10132 # or program results in "error TOC overflow" add -mminimal-toc to
10133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10135
10136 archive_cmds=''
10137 hardcode_direct=yes
10138 hardcode_direct_absolute=yes
10139 hardcode_libdir_separator=':'
10140 link_all_deplibs=yes
10141 file_list_spec='$wl-f,'
10142 case $with_aix_soname,$aix_use_runtimelinking in
10143 aix,*) ;; # traditional, no import file
10144 svr4,* | *,yes) # use import file
10145 # The Import File defines what to hardcode.
10146 hardcode_direct=no
10147 hardcode_direct_absolute=no
10148 ;;
10149 esac
10150
10151 if test yes = "$GCC"; then
10152 case $host_os in aix4.[012]|aix4.[012].*)
10153 # We only want to do this on AIX 4.2 and lower, the check
10154 # below for broken collect2 doesn't work under 4.3+
10155 collect2name=`$CC -print-prog-name=collect2`
10156 if test -f "$collect2name" &&
10157 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10158 then
10159 # We have reworked collect2
10160 :
10161 else
10162 # We have old collect2
10163 hardcode_direct=unsupported
10164 # It fails to find uninstalled libraries when the uninstalled
10165 # path is not listed in the libpath. Setting hardcode_minus_L
10166 # to unsupported forces relinking
10167 hardcode_minus_L=yes
10168 hardcode_libdir_flag_spec='-L$libdir'
10169 hardcode_libdir_separator=
10170 fi
10171 ;;
10172 esac
10173 shared_flag='-shared'
10174 if test yes = "$aix_use_runtimelinking"; then
10175 shared_flag="$shared_flag "'$wl-G'
10176 fi
10177 # Need to ensure runtime linking is disabled for the traditional
10178 # shared library, or the linker may eventually find shared libraries
10179 # /with/ Import File - we do not want to mix them.
10180 shared_flag_aix='-shared'
10181 shared_flag_svr4='-shared $wl-G'
10182 else
10183 # not using gcc
10184 if test ia64 = "$host_cpu"; then
10185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10186 # chokes on -Wl,-G. The following line is correct:
10187 shared_flag='-G'
10188 else
10189 if test yes = "$aix_use_runtimelinking"; then
10190 shared_flag='$wl-G'
10191 else
10192 shared_flag='$wl-bM:SRE'
10193 fi
10194 shared_flag_aix='$wl-bM:SRE'
10195 shared_flag_svr4='$wl-G'
10196 fi
10197 fi
10198
10199 export_dynamic_flag_spec='$wl-bexpall'
10200 # It seems that -bexpall does not export symbols beginning with
10201 # underscore (_), so it is better to generate a list of symbols to export.
10202 always_export_symbols=yes
10203 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10204 # Warning - without using the other runtime loading flags (-brtl),
10205 # -berok will link without error, but may produce a broken library.
10206 allow_undefined_flag='-berok'
10207 # Determine the default libpath from the value encoded in an
10208 # empty executable.
10209 if test set = "${lt_cv_aix_libpath+set}"; then
10210 aix_libpath=$lt_cv_aix_libpath
10211 else
10212 if test ${lt_cv_aix_libpath_+y}
10213 then :
10214 printf %s "(cached) " >&6
10215 else $as_nop
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218
10219 int
10220 main (void)
10221 {
10222
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"
10228 then :
10229
10230 lt_aix_libpath_sed='
10231 /Import File Strings/,/^$/ {
10232 /^0/ {
10233 s/^0 *\([^ ]*\) *$/\1/
10234 p
10235 }
10236 }'
10237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10238 # Check for a 64-bit object if we didn't find anything.
10239 if test -z "$lt_cv_aix_libpath_"; then
10240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241 fi
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10244 conftest$ac_exeext conftest.$ac_ext
10245 if test -z "$lt_cv_aix_libpath_"; then
10246 lt_cv_aix_libpath_=/usr/lib:/lib
10247 fi
10248
10249 fi
10250
10251 aix_libpath=$lt_cv_aix_libpath_
10252 fi
10253
10254 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10255 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
10256 else
10257 if test ia64 = "$host_cpu"; then
10258 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10259 allow_undefined_flag="-z nodefs"
10260 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"
10261 else
10262 # Determine the default libpath from the value encoded in an
10263 # empty executable.
10264 if test set = "${lt_cv_aix_libpath+set}"; then
10265 aix_libpath=$lt_cv_aix_libpath
10266 else
10267 if test ${lt_cv_aix_libpath_+y}
10268 then :
10269 printf %s "(cached) " >&6
10270 else $as_nop
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273
10274 int
10275 main (void)
10276 {
10277
10278 ;
10279 return 0;
10280 }
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"
10283 then :
10284
10285 lt_aix_libpath_sed='
10286 /Import File Strings/,/^$/ {
10287 /^0/ {
10288 s/^0 *\([^ ]*\) *$/\1/
10289 p
10290 }
10291 }'
10292 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10293 # Check for a 64-bit object if we didn't find anything.
10294 if test -z "$lt_cv_aix_libpath_"; then
10295 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10296 fi
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10299 conftest$ac_exeext conftest.$ac_ext
10300 if test -z "$lt_cv_aix_libpath_"; then
10301 lt_cv_aix_libpath_=/usr/lib:/lib
10302 fi
10303
10304 fi
10305
10306 aix_libpath=$lt_cv_aix_libpath_
10307 fi
10308
10309 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10310 # Warning - without using the other run time loading flags,
10311 # -berok will link without error, but may produce a broken library.
10312 no_undefined_flag=' $wl-bernotok'
10313 allow_undefined_flag=' $wl-berok'
10314 if test yes = "$with_gnu_ld"; then
10315 # We only use this code for GNU lds that support --whole-archive.
10316 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10317 else
10318 # Exported symbols can be pulled into shared objects from archives
10319 whole_archive_flag_spec='$convenience'
10320 fi
10321 archive_cmds_need_lc=yes
10322 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10323 # -brtl affects multiple linker settings, -berok does not and is overridden later
10324 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10325 if test svr4 != "$with_aix_soname"; then
10326 # This is similar to how AIX traditionally builds its shared libraries.
10327 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'
10328 fi
10329 if test aix != "$with_aix_soname"; then
10330 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'
10331 else
10332 # used by -dlpreopen to get the symbols
10333 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10334 fi
10335 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10336 fi
10337 fi
10338 ;;
10339
10340 amigaos*)
10341 case $host_cpu in
10342 powerpc)
10343 # see comment about AmigaOS4 .so support
10344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10345 archive_expsym_cmds=''
10346 ;;
10347 m68k)
10348 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)'
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_minus_L=yes
10351 ;;
10352 esac
10353 ;;
10354
10355 bsdi[45]*)
10356 export_dynamic_flag_spec=-rdynamic
10357 ;;
10358
10359 cygwin* | mingw* | pw32* | cegcc*)
10360 # When not using gcc, we currently assume that we are using
10361 # Microsoft Visual C++.
10362 # hardcode_libdir_flag_spec is actually meaningless, as there is
10363 # no search path for DLLs.
10364 case $cc_basename in
10365 cl*)
10366 # Native MSVC
10367 hardcode_libdir_flag_spec=' '
10368 allow_undefined_flag=unsupported
10369 always_export_symbols=yes
10370 file_list_spec='@'
10371 # Tell ltmain to make .lib files, not .a files.
10372 libext=lib
10373 # Tell ltmain to make .dll files, not .so files.
10374 shrext_cmds=.dll
10375 # FIXME: Setting linknames here is a bad hack.
10376 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10377 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10378 cp "$export_symbols" "$output_objdir/$soname.def";
10379 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10380 else
10381 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10382 fi~
10383 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10384 linknames='
10385 # The linker will not automatically build a static lib if we build a DLL.
10386 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10387 enable_shared_with_static_runtimes=yes
10388 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10390 # Don't use ranlib
10391 old_postinstall_cmds='chmod 644 $oldlib'
10392 postlink_cmds='lt_outputfile="@OUTPUT@"~
10393 lt_tool_outputfile="@TOOL_OUTPUT@"~
10394 case $lt_outputfile in
10395 *.exe|*.EXE) ;;
10396 *)
10397 lt_outputfile=$lt_outputfile.exe
10398 lt_tool_outputfile=$lt_tool_outputfile.exe
10399 ;;
10400 esac~
10401 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10402 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10403 $RM "$lt_outputfile.manifest";
10404 fi'
10405 ;;
10406 *)
10407 # Assume MSVC wrapper
10408 hardcode_libdir_flag_spec=' '
10409 allow_undefined_flag=unsupported
10410 # Tell ltmain to make .lib files, not .a files.
10411 libext=lib
10412 # Tell ltmain to make .dll files, not .so files.
10413 shrext_cmds=.dll
10414 # FIXME: Setting linknames here is a bad hack.
10415 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10416 # The linker will automatically build a .lib file if we build a DLL.
10417 old_archive_from_new_cmds='true'
10418 # FIXME: Should let the user specify the lib program.
10419 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10420 enable_shared_with_static_runtimes=yes
10421 ;;
10422 esac
10423 ;;
10424
10425 darwin* | rhapsody*)
10426
10427
10428 archive_cmds_need_lc=no
10429 hardcode_direct=no
10430 hardcode_automatic=yes
10431 hardcode_shlibpath_var=unsupported
10432 if test yes = "$lt_cv_ld_force_load"; then
10433 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\"`'
10434
10435 else
10436 whole_archive_flag_spec=''
10437 fi
10438 link_all_deplibs=yes
10439 allow_undefined_flag=$_lt_dar_allow_undefined
10440 case $cc_basename in
10441 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10442 *) _lt_dar_can_shared=$GCC ;;
10443 esac
10444 if test yes = "$_lt_dar_can_shared"; then
10445 output_verbose_link_cmd=func_echo_all
10446 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10447 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10448 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"
10449 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"
10450
10451 else
10452 ld_shlibs=no
10453 fi
10454
10455 ;;
10456
10457 dgux*)
10458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_libdir_flag_spec='-L$libdir'
10460 hardcode_shlibpath_var=no
10461 ;;
10462
10463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10464 # support. Future versions do this automatically, but an explicit c++rt0.o
10465 # does not break anything, and helps significantly (at the cost of a little
10466 # extra space).
10467 freebsd2.2*)
10468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10469 hardcode_libdir_flag_spec='-R$libdir'
10470 hardcode_direct=yes
10471 hardcode_shlibpath_var=no
10472 ;;
10473
10474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10475 freebsd2.*)
10476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10477 hardcode_direct=yes
10478 hardcode_minus_L=yes
10479 hardcode_shlibpath_var=no
10480 ;;
10481
10482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10483 freebsd* | dragonfly*)
10484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10485 hardcode_libdir_flag_spec='-R$libdir'
10486 hardcode_direct=yes
10487 hardcode_shlibpath_var=no
10488 ;;
10489
10490 hpux9*)
10491 if test yes = "$GCC"; then
10492 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'
10493 else
10494 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'
10495 fi
10496 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10497 hardcode_libdir_separator=:
10498 hardcode_direct=yes
10499
10500 # hardcode_minus_L: Not really in the search PATH,
10501 # but as the default location of the library.
10502 hardcode_minus_L=yes
10503 export_dynamic_flag_spec='$wl-E'
10504 ;;
10505
10506 hpux10*)
10507 if test yes,no = "$GCC,$with_gnu_ld"; then
10508 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10509 else
10510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10511 fi
10512 if test no = "$with_gnu_ld"; then
10513 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10514 hardcode_libdir_separator=:
10515 hardcode_direct=yes
10516 hardcode_direct_absolute=yes
10517 export_dynamic_flag_spec='$wl-E'
10518 # hardcode_minus_L: Not really in the search PATH,
10519 # but as the default location of the library.
10520 hardcode_minus_L=yes
10521 fi
10522 ;;
10523
10524 hpux11*)
10525 if test yes,no = "$GCC,$with_gnu_ld"; then
10526 case $host_cpu in
10527 hppa*64*)
10528 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10529 ;;
10530 ia64*)
10531 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10532 ;;
10533 *)
10534 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10535 ;;
10536 esac
10537 else
10538 case $host_cpu in
10539 hppa*64*)
10540 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10541 ;;
10542 ia64*)
10543 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10544 ;;
10545 *)
10546
10547 # Older versions of the 11.00 compiler do not understand -b yet
10548 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10550 printf %s "checking if $CC understands -b... " >&6; }
10551 if test ${lt_cv_prog_compiler__b+y}
10552 then :
10553 printf %s "(cached) " >&6
10554 else $as_nop
10555 lt_cv_prog_compiler__b=no
10556 save_LDFLAGS=$LDFLAGS
10557 LDFLAGS="$LDFLAGS -b"
10558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10560 # The linker can only warn and ignore the option if not recognized
10561 # So say no if there are warnings
10562 if test -s conftest.err; then
10563 # Append any errors to the config.log.
10564 cat conftest.err 1>&5
10565 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10567 if diff conftest.exp conftest.er2 >/dev/null; then
10568 lt_cv_prog_compiler__b=yes
10569 fi
10570 else
10571 lt_cv_prog_compiler__b=yes
10572 fi
10573 fi
10574 $RM -r conftest*
10575 LDFLAGS=$save_LDFLAGS
10576
10577 fi
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10579 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10580
10581 if test yes = "$lt_cv_prog_compiler__b"; then
10582 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10583 else
10584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10585 fi
10586
10587 ;;
10588 esac
10589 fi
10590 if test no = "$with_gnu_ld"; then
10591 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10592 hardcode_libdir_separator=:
10593
10594 case $host_cpu in
10595 hppa*64*|ia64*)
10596 hardcode_direct=no
10597 hardcode_shlibpath_var=no
10598 ;;
10599 *)
10600 hardcode_direct=yes
10601 hardcode_direct_absolute=yes
10602 export_dynamic_flag_spec='$wl-E'
10603
10604 # hardcode_minus_L: Not really in the search PATH,
10605 # but as the default location of the library.
10606 hardcode_minus_L=yes
10607 ;;
10608 esac
10609 fi
10610 ;;
10611
10612 irix5* | irix6* | nonstopux*)
10613 if test yes = "$GCC"; then
10614 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'
10615 # Try to use the -exported_symbol ld option, if it does not
10616 # work, assume that -exports_file does not work either and
10617 # implicitly export all symbols.
10618 # This should be the same for all languages, so no per-tag cache variable.
10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10620 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10621 if test ${lt_cv_irix_exported_symbol+y}
10622 then :
10623 printf %s "(cached) " >&6
10624 else $as_nop
10625 save_LDFLAGS=$LDFLAGS
10626 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 int foo (void) { return 0; }
10630 _ACEOF
10631 if ac_fn_c_try_link "$LINENO"
10632 then :
10633 lt_cv_irix_exported_symbol=yes
10634 else $as_nop
10635 lt_cv_irix_exported_symbol=no
10636 fi
10637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LDFLAGS=$save_LDFLAGS
10640 fi
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10642 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10643 if test yes = "$lt_cv_irix_exported_symbol"; then
10644 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'
10645 fi
10646 link_all_deplibs=no
10647 else
10648 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'
10649 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'
10650 fi
10651 archive_cmds_need_lc='no'
10652 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10653 hardcode_libdir_separator=:
10654 inherit_rpath=yes
10655 link_all_deplibs=yes
10656 ;;
10657
10658 linux*)
10659 case $cc_basename in
10660 tcc*)
10661 # Fabrice Bellard et al's Tiny C Compiler
10662 ld_shlibs=yes
10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10664 ;;
10665 esac
10666 ;;
10667
10668 netbsd* | netbsdelf*-gnu)
10669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10671 else
10672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10673 fi
10674 hardcode_libdir_flag_spec='-R$libdir'
10675 hardcode_direct=yes
10676 hardcode_shlibpath_var=no
10677 ;;
10678
10679 newsos6)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_direct=yes
10682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10683 hardcode_libdir_separator=:
10684 hardcode_shlibpath_var=no
10685 ;;
10686
10687 *nto* | *qnx*)
10688 ;;
10689
10690 openbsd* | bitrig*)
10691 if test -f /usr/libexec/ld.so; then
10692 hardcode_direct=yes
10693 hardcode_shlibpath_var=no
10694 hardcode_direct_absolute=yes
10695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10698 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10699 export_dynamic_flag_spec='$wl-E'
10700 else
10701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10702 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10703 fi
10704 else
10705 ld_shlibs=no
10706 fi
10707 ;;
10708
10709 os2*)
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_minus_L=yes
10712 allow_undefined_flag=unsupported
10713 shrext_cmds=.dll
10714 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10717 $ECHO EXPORTS >> $output_objdir/$libname.def~
10718 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10720 emximp -o $lib $output_objdir/$libname.def'
10721 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10724 $ECHO EXPORTS >> $output_objdir/$libname.def~
10725 prefix_cmds="$SED"~
10726 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10727 prefix_cmds="$prefix_cmds -e 1d";
10728 fi~
10729 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10730 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10732 emximp -o $lib $output_objdir/$libname.def'
10733 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10734 enable_shared_with_static_runtimes=yes
10735 ;;
10736
10737 osf3*)
10738 if test yes = "$GCC"; then
10739 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10740 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'
10741 else
10742 allow_undefined_flag=' -expect_unresolved \*'
10743 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'
10744 fi
10745 archive_cmds_need_lc='no'
10746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10747 hardcode_libdir_separator=:
10748 ;;
10749
10750 osf4* | osf5*) # as osf3* with the addition of -msym flag
10751 if test yes = "$GCC"; then
10752 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10753 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'
10754 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10755 else
10756 allow_undefined_flag=' -expect_unresolved \*'
10757 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'
10758 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~
10759 $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'
10760
10761 # Both c and cxx compiler support -rpath directly
10762 hardcode_libdir_flag_spec='-rpath $libdir'
10763 fi
10764 archive_cmds_need_lc='no'
10765 hardcode_libdir_separator=:
10766 ;;
10767
10768 solaris*)
10769 no_undefined_flag=' -z defs'
10770 if test yes = "$GCC"; then
10771 wlarc='$wl'
10772 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10774 $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'
10775 else
10776 case `$CC -V 2>&1` in
10777 *"Compilers 5.0"*)
10778 wlarc=''
10779 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10781 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10782 ;;
10783 *)
10784 wlarc='$wl'
10785 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10787 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10788 ;;
10789 esac
10790 fi
10791 hardcode_libdir_flag_spec='-R$libdir'
10792 hardcode_shlibpath_var=no
10793 case $host_os in
10794 solaris2.[0-5] | solaris2.[0-5].*) ;;
10795 *)
10796 # The compiler driver will combine and reorder linker options,
10797 # but understands '-z linker_flag'. GCC discards it without '$wl',
10798 # but is careful enough not to reorder.
10799 # Supported since Solaris 2.6 (maybe 2.5.1?)
10800 if test yes = "$GCC"; then
10801 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10802 else
10803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10804 fi
10805 ;;
10806 esac
10807 link_all_deplibs=yes
10808 ;;
10809
10810 sunos4*)
10811 if test sequent = "$host_vendor"; then
10812 # Use $CC to link under sequent, because it throws in some extra .o
10813 # files that make .init and .fini sections work.
10814 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10815 else
10816 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10817 fi
10818 hardcode_libdir_flag_spec='-L$libdir'
10819 hardcode_direct=yes
10820 hardcode_minus_L=yes
10821 hardcode_shlibpath_var=no
10822 ;;
10823
10824 sysv4)
10825 case $host_vendor in
10826 sni)
10827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 hardcode_direct=yes # is this really true???
10829 ;;
10830 siemens)
10831 ## LD is ld it makes a PLAMLIB
10832 ## CC just makes a GrossModule.
10833 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10834 reload_cmds='$CC -r -o $output$reload_objs'
10835 hardcode_direct=no
10836 ;;
10837 motorola)
10838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10839 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10840 ;;
10841 esac
10842 runpath_var='LD_RUN_PATH'
10843 hardcode_shlibpath_var=no
10844 ;;
10845
10846 sysv4.3*)
10847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10848 hardcode_shlibpath_var=no
10849 export_dynamic_flag_spec='-Bexport'
10850 ;;
10851
10852 sysv4*MP*)
10853 if test -d /usr/nec; then
10854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855 hardcode_shlibpath_var=no
10856 runpath_var=LD_RUN_PATH
10857 hardcode_runpath_var=yes
10858 ld_shlibs=yes
10859 fi
10860 ;;
10861
10862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10863 no_undefined_flag='$wl-z,text'
10864 archive_cmds_need_lc=no
10865 hardcode_shlibpath_var=no
10866 runpath_var='LD_RUN_PATH'
10867
10868 if test yes = "$GCC"; then
10869 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 else
10872 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10873 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10874 fi
10875 ;;
10876
10877 sysv5* | sco3.2v5* | sco5v6*)
10878 # Note: We CANNOT use -z defs as we might desire, because we do not
10879 # link with -lc, and that would cause any symbols used from libc to
10880 # always be unresolved, which means just about no library would
10881 # ever link correctly. If we're not using GNU ld we use -z text
10882 # though, which does catch some bad symbols but isn't as heavy-handed
10883 # as -z defs.
10884 no_undefined_flag='$wl-z,text'
10885 allow_undefined_flag='$wl-z,nodefs'
10886 archive_cmds_need_lc=no
10887 hardcode_shlibpath_var=no
10888 hardcode_libdir_flag_spec='$wl-R,$libdir'
10889 hardcode_libdir_separator=':'
10890 link_all_deplibs=yes
10891 export_dynamic_flag_spec='$wl-Bexport'
10892 runpath_var='LD_RUN_PATH'
10893
10894 if test yes = "$GCC"; then
10895 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 else
10898 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10900 fi
10901 ;;
10902
10903 uts4*)
10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 hardcode_libdir_flag_spec='-L$libdir'
10906 hardcode_shlibpath_var=no
10907 ;;
10908
10909 *)
10910 ld_shlibs=no
10911 ;;
10912 esac
10913
10914 if test sni = "$host_vendor"; then
10915 case $host in
10916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10917 export_dynamic_flag_spec='$wl-Blargedynsym'
10918 ;;
10919 esac
10920 fi
10921 fi
10922
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10924 printf "%s\n" "$ld_shlibs" >&6; }
10925 test no = "$ld_shlibs" && can_build_shared=no
10926
10927 with_gnu_ld=$with_gnu_ld
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943 #
10944 # Do we need to explicitly link libc?
10945 #
10946 case "x$archive_cmds_need_lc" in
10947 x|xyes)
10948 # Assume -lc should be added
10949 archive_cmds_need_lc=yes
10950
10951 if test yes,yes = "$GCC,$enable_shared"; then
10952 case $archive_cmds in
10953 *'~'*)
10954 # FIXME: we may have to deal with multi-command sequences.
10955 ;;
10956 '$CC '*)
10957 # Test whether the compiler implicitly links with -lc since on some
10958 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10959 # to ld, don't add -lc before -lgcc.
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10961 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10962 if test ${lt_cv_archive_cmds_need_lc+y}
10963 then :
10964 printf %s "(cached) " >&6
10965 else $as_nop
10966 $RM conftest*
10967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10968
10969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10970 (eval $ac_compile) 2>&5
10971 ac_status=$?
10972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10973 test $ac_status = 0; } 2>conftest.err; then
10974 soname=conftest
10975 lib=conftest
10976 libobjs=conftest.$ac_objext
10977 deplibs=
10978 wl=$lt_prog_compiler_wl
10979 pic_flag=$lt_prog_compiler_pic
10980 compiler_flags=-v
10981 linker_flags=-v
10982 verstring=
10983 output_objdir=.
10984 libname=conftest
10985 lt_save_allow_undefined_flag=$allow_undefined_flag
10986 allow_undefined_flag=
10987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10988 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10989 ac_status=$?
10990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991 test $ac_status = 0; }
10992 then
10993 lt_cv_archive_cmds_need_lc=no
10994 else
10995 lt_cv_archive_cmds_need_lc=yes
10996 fi
10997 allow_undefined_flag=$lt_save_allow_undefined_flag
10998 else
10999 cat conftest.err 1>&5
11000 fi
11001 $RM conftest*
11002
11003 fi
11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11005 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11006 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11007 ;;
11008 esac
11009 fi
11010 ;;
11011 esac
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11165 printf %s "checking dynamic linker characteristics... " >&6; }
11166
11167 if test yes = "$GCC"; then
11168 case $host_os in
11169 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11170 *) lt_awk_arg='/^libraries:/' ;;
11171 esac
11172 case $host_os in
11173 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11174 *) lt_sed_strip_eq='s|=/|/|g' ;;
11175 esac
11176 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11177 case $lt_search_path_spec in
11178 *\;*)
11179 # if the path contains ";" then we assume it to be the separator
11180 # otherwise default to the standard path separator (i.e. ":") - it is
11181 # assumed that no part of a normal pathname contains ";" but that should
11182 # okay in the real world where ";" in dirpaths is itself problematic.
11183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11184 ;;
11185 *)
11186 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11187 ;;
11188 esac
11189 # Ok, now we have the path, separated by spaces, we can step through it
11190 # and add multilib dir if necessary...
11191 lt_tmp_lt_search_path_spec=
11192 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11193 # ...but if some path component already ends with the multilib dir we assume
11194 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11195 case "$lt_multi_os_dir; $lt_search_path_spec " in
11196 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11197 lt_multi_os_dir=
11198 ;;
11199 esac
11200 for lt_sys_path in $lt_search_path_spec; do
11201 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11203 elif test -n "$lt_multi_os_dir"; then
11204 test -d "$lt_sys_path" && \
11205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11206 fi
11207 done
11208 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11209 BEGIN {RS = " "; FS = "/|\n";} {
11210 lt_foo = "";
11211 lt_count = 0;
11212 for (lt_i = NF; lt_i > 0; lt_i--) {
11213 if ($lt_i != "" && $lt_i != ".") {
11214 if ($lt_i == "..") {
11215 lt_count++;
11216 } else {
11217 if (lt_count == 0) {
11218 lt_foo = "/" $lt_i lt_foo;
11219 } else {
11220 lt_count--;
11221 }
11222 }
11223 }
11224 }
11225 if (lt_foo != "") { lt_freq[lt_foo]++; }
11226 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11227 }'`
11228 # AWK program above erroneously prepends '/' to C:/dos/paths
11229 # for these hosts.
11230 case $host_os in
11231 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11232 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11233 esac
11234 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11235 else
11236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11237 fi
11238 library_names_spec=
11239 libname_spec='lib$name'
11240 soname_spec=
11241 shrext_cmds=.so
11242 postinstall_cmds=
11243 postuninstall_cmds=
11244 finish_cmds=
11245 finish_eval=
11246 shlibpath_var=
11247 shlibpath_overrides_runpath=unknown
11248 version_type=none
11249 dynamic_linker="$host_os ld.so"
11250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11251 need_lib_prefix=unknown
11252 hardcode_into_libs=no
11253
11254 # when you set need_version to no, make sure it does not cause -set_version
11255 # flags to be left without arguments
11256 need_version=unknown
11257
11258
11259
11260 case $host_os in
11261 aix3*)
11262 version_type=linux # correct to gnu/linux during the next big refactor
11263 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11264 shlibpath_var=LIBPATH
11265
11266 # AIX 3 has no versioning support, so we append a major version to the name.
11267 soname_spec='$libname$release$shared_ext$major'
11268 ;;
11269
11270 aix[4-9]*)
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 need_lib_prefix=no
11273 need_version=no
11274 hardcode_into_libs=yes
11275 if test ia64 = "$host_cpu"; then
11276 # AIX 5 supports IA64
11277 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 else
11280 # With GCC up to 2.95.x, collect2 would create an import file
11281 # for dependence libraries. The import file would start with
11282 # the line '#! .'. This would cause the generated library to
11283 # depend on '.', always an invalid library. This was fixed in
11284 # development snapshots of GCC prior to 3.0.
11285 case $host_os in
11286 aix4 | aix4.[01] | aix4.[01].*)
11287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11288 echo ' yes '
11289 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11290 :
11291 else
11292 can_build_shared=no
11293 fi
11294 ;;
11295 esac
11296 # Using Import Files as archive members, it is possible to support
11297 # filename-based versioning of shared library archives on AIX. While
11298 # this would work for both with and without runtime linking, it will
11299 # prevent static linking of such archives. So we do filename-based
11300 # shared library versioning with .so extension only, which is used
11301 # when both runtime linking and shared linking is enabled.
11302 # Unfortunately, runtime linking may impact performance, so we do
11303 # not want this to be the default eventually. Also, we use the
11304 # versioned .so libs for executables only if there is the -brtl
11305 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11306 # To allow for filename-based versioning support, we need to create
11307 # libNAME.so.V as an archive file, containing:
11308 # *) an Import File, referring to the versioned filename of the
11309 # archive as well as the shared archive member, telling the
11310 # bitwidth (32 or 64) of that shared object, and providing the
11311 # list of exported symbols of that shared object, eventually
11312 # decorated with the 'weak' keyword
11313 # *) the shared object with the F_LOADONLY flag set, to really avoid
11314 # it being seen by the linker.
11315 # At run time we better use the real file rather than another symlink,
11316 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11317
11318 case $with_aix_soname,$aix_use_runtimelinking in
11319 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11320 # soname into executable. Probably we can add versioning support to
11321 # collect2, so additional links can be useful in future.
11322 aix,yes) # traditional libtool
11323 dynamic_linker='AIX unversionable lib.so'
11324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11325 # instead of lib<name>.a to let people know that these are not
11326 # typical AIX shared libraries.
11327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11328 ;;
11329 aix,no) # traditional AIX only
11330 dynamic_linker='AIX lib.a(lib.so.V)'
11331 # We preserve .a as extension for shared libraries through AIX4.2
11332 # and later when we are not doing run time linking.
11333 library_names_spec='$libname$release.a $libname.a'
11334 soname_spec='$libname$release$shared_ext$major'
11335 ;;
11336 svr4,*) # full svr4 only
11337 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11338 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11339 # We do not specify a path in Import Files, so LIBPATH fires.
11340 shlibpath_overrides_runpath=yes
11341 ;;
11342 *,yes) # both, prefer svr4
11343 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11344 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11345 # unpreferred sharedlib libNAME.a needs extra handling
11346 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"'
11347 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"'
11348 # We do not specify a path in Import Files, so LIBPATH fires.
11349 shlibpath_overrides_runpath=yes
11350 ;;
11351 *,no) # both, prefer aix
11352 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11353 library_names_spec='$libname$release.a $libname.a'
11354 soname_spec='$libname$release$shared_ext$major'
11355 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11356 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)'
11357 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"'
11358 ;;
11359 esac
11360 shlibpath_var=LIBPATH
11361 fi
11362 ;;
11363
11364 amigaos*)
11365 case $host_cpu in
11366 powerpc)
11367 # Since July 2007 AmigaOS4 officially supports .so libraries.
11368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370 ;;
11371 m68k)
11372 library_names_spec='$libname.ixlibrary $libname.a'
11373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11374 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'
11375 ;;
11376 esac
11377 ;;
11378
11379 beos*)
11380 library_names_spec='$libname$shared_ext'
11381 dynamic_linker="$host_os ld.so"
11382 shlibpath_var=LIBRARY_PATH
11383 ;;
11384
11385 bsdi[45]*)
11386 version_type=linux # correct to gnu/linux during the next big refactor
11387 need_version=no
11388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11389 soname_spec='$libname$release$shared_ext$major'
11390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11394 # the default ld.so.conf also contains /usr/contrib/lib and
11395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11396 # libtool to hard-code these into programs
11397 ;;
11398
11399 cygwin* | mingw* | pw32* | cegcc*)
11400 version_type=windows
11401 shrext_cmds=.dll
11402 need_version=no
11403 need_lib_prefix=no
11404
11405 case $GCC,$cc_basename in
11406 yes,*)
11407 # gcc
11408 library_names_spec='$libname.dll.a'
11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \$file`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11412 dldir=$destdir/`dirname \$dlpath`~
11413 test -d \$dldir || mkdir -p \$dldir~
11414 $install_prog $dir/$dlname \$dldir/$dlname~
11415 chmod a+x \$dldir/$dlname~
11416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11418 fi'
11419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11420 dlpath=$dir/\$dldll~
11421 $RM \$dlpath'
11422 shlibpath_overrides_runpath=yes
11423
11424 case $host_os in
11425 cygwin*)
11426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11428
11429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11430 ;;
11431 mingw* | cegcc*)
11432 # MinGW DLLs use traditional 'lib' prefix
11433 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11434 ;;
11435 pw32*)
11436 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11438 ;;
11439 esac
11440 dynamic_linker='Win32 ld.exe'
11441 ;;
11442
11443 *,cl*)
11444 # Native MSVC
11445 libname_spec='$name'
11446 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11447 library_names_spec='$libname.dll.lib'
11448
11449 case $build_os in
11450 mingw*)
11451 sys_lib_search_path_spec=
11452 lt_save_ifs=$IFS
11453 IFS=';'
11454 for lt_path in $LIB
11455 do
11456 IFS=$lt_save_ifs
11457 # Let DOS variable expansion print the short 8.3 style file name.
11458 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11459 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11460 done
11461 IFS=$lt_save_ifs
11462 # Convert to MSYS style.
11463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11464 ;;
11465 cygwin*)
11466 # Convert to unix form, then to dos form, then back to unix form
11467 # but this time dos style (no spaces!) so that the unix form looks
11468 # like /cygdrive/c/PROGRA~1:/cygdr...
11469 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11470 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11471 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11472 ;;
11473 *)
11474 sys_lib_search_path_spec=$LIB
11475 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11476 # It is most probably a Windows format PATH.
11477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11478 else
11479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11480 fi
11481 # FIXME: find the short name or the path components, as spaces are
11482 # common. (e.g. "Program Files" -> "PROGRA~1")
11483 ;;
11484 esac
11485
11486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11487 postinstall_cmds='base_file=`basename \$file`~
11488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11489 dldir=$destdir/`dirname \$dlpath`~
11490 test -d \$dldir || mkdir -p \$dldir~
11491 $install_prog $dir/$dlname \$dldir/$dlname'
11492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11493 dlpath=$dir/\$dldll~
11494 $RM \$dlpath'
11495 shlibpath_overrides_runpath=yes
11496 dynamic_linker='Win32 link.exe'
11497 ;;
11498
11499 *)
11500 # Assume MSVC wrapper
11501 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11502 dynamic_linker='Win32 ld.exe'
11503 ;;
11504 esac
11505 # FIXME: first we should search . and the directory the executable is in
11506 shlibpath_var=PATH
11507 ;;
11508
11509 darwin* | rhapsody*)
11510 dynamic_linker="$host_os dyld"
11511 version_type=darwin
11512 need_lib_prefix=no
11513 need_version=no
11514 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11515 soname_spec='$libname$release$major$shared_ext'
11516 shlibpath_overrides_runpath=yes
11517 shlibpath_var=DYLD_LIBRARY_PATH
11518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11519
11520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11522 ;;
11523
11524 dgux*)
11525 version_type=linux # correct to gnu/linux during the next big refactor
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11529 soname_spec='$libname$release$shared_ext$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 ;;
11532
11533 freebsd* | dragonfly*)
11534 # DragonFly does not have aout. When/if they implement a new
11535 # versioning mechanism, adjust this.
11536 if test -x /usr/bin/objformat; then
11537 objformat=`/usr/bin/objformat`
11538 else
11539 case $host_os in
11540 freebsd[23].*) objformat=aout ;;
11541 *) objformat=elf ;;
11542 esac
11543 fi
11544 version_type=freebsd-$objformat
11545 case $version_type in
11546 freebsd-elf*)
11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548 soname_spec='$libname$release$shared_ext$major'
11549 need_version=no
11550 need_lib_prefix=no
11551 ;;
11552 freebsd-*)
11553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11554 need_version=yes
11555 ;;
11556 esac
11557 shlibpath_var=LD_LIBRARY_PATH
11558 case $host_os in
11559 freebsd2.*)
11560 shlibpath_overrides_runpath=yes
11561 ;;
11562 freebsd3.[01]* | freebsdelf3.[01]*)
11563 shlibpath_overrides_runpath=yes
11564 hardcode_into_libs=yes
11565 ;;
11566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11568 shlibpath_overrides_runpath=no
11569 hardcode_into_libs=yes
11570 ;;
11571 *) # from 4.6 on, and DragonFly
11572 shlibpath_overrides_runpath=yes
11573 hardcode_into_libs=yes
11574 ;;
11575 esac
11576 ;;
11577
11578 haiku*)
11579 version_type=linux # correct to gnu/linux during the next big refactor
11580 need_lib_prefix=no
11581 need_version=no
11582 dynamic_linker="$host_os runtime_loader"
11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11584 soname_spec='$libname$release$shared_ext$major'
11585 shlibpath_var=LIBRARY_PATH
11586 shlibpath_overrides_runpath=no
11587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11588 hardcode_into_libs=yes
11589 ;;
11590
11591 hpux9* | hpux10* | hpux11*)
11592 # Give a soname corresponding to the major version so that dld.sl refuses to
11593 # link against other versions.
11594 version_type=sunos
11595 need_lib_prefix=no
11596 need_version=no
11597 case $host_cpu in
11598 ia64*)
11599 shrext_cmds='.so'
11600 hardcode_into_libs=yes
11601 dynamic_linker="$host_os dld.so"
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11605 soname_spec='$libname$release$shared_ext$major'
11606 if test 32 = "$HPUX_IA64_MODE"; then
11607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11608 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11609 else
11610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11611 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11612 fi
11613 ;;
11614 hppa*64*)
11615 shrext_cmds='.sl'
11616 hardcode_into_libs=yes
11617 dynamic_linker="$host_os dld.sl"
11618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11621 soname_spec='$libname$release$shared_ext$major'
11622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11624 ;;
11625 *)
11626 shrext_cmds='.sl'
11627 dynamic_linker="$host_os dld.sl"
11628 shlibpath_var=SHLIB_PATH
11629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11631 soname_spec='$libname$release$shared_ext$major'
11632 ;;
11633 esac
11634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11635 postinstall_cmds='chmod 555 $lib'
11636 # or fails outright, so override atomically:
11637 install_override_mode=555
11638 ;;
11639
11640 interix[3-9]*)
11641 version_type=linux # correct to gnu/linux during the next big refactor
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645 soname_spec='$libname$release$shared_ext$major'
11646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11650 ;;
11651
11652 irix5* | irix6* | nonstopux*)
11653 case $host_os in
11654 nonstopux*) version_type=nonstopux ;;
11655 *)
11656 if test yes = "$lt_cv_prog_gnu_ld"; then
11657 version_type=linux # correct to gnu/linux during the next big refactor
11658 else
11659 version_type=irix
11660 fi ;;
11661 esac
11662 need_lib_prefix=no
11663 need_version=no
11664 soname_spec='$libname$release$shared_ext$major'
11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11666 case $host_os in
11667 irix5* | nonstopux*)
11668 libsuff= shlibsuff=
11669 ;;
11670 *)
11671 case $LD in # libtool.m4 will add one of these switches to LD
11672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11673 libsuff= shlibsuff= libmagic=32-bit;;
11674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11675 libsuff=32 shlibsuff=N32 libmagic=N32;;
11676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11678 *) libsuff= shlibsuff= libmagic=never-match;;
11679 esac
11680 ;;
11681 esac
11682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11683 shlibpath_overrides_runpath=no
11684 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11685 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11686 hardcode_into_libs=yes
11687 ;;
11688
11689 # No shared lib support for Linux oldld, aout, or coff.
11690 linux*oldld* | linux*aout* | linux*coff*)
11691 dynamic_linker=no
11692 ;;
11693
11694 linux*android*)
11695 version_type=none # Android doesn't support versioned libraries.
11696 need_lib_prefix=no
11697 need_version=no
11698 library_names_spec='$libname$release$shared_ext'
11699 soname_spec='$libname$release$shared_ext'
11700 finish_cmds=
11701 shlibpath_var=LD_LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11703
11704 # This implies no fast_install, which is unacceptable.
11705 # Some rework will be needed to allow for fast_install
11706 # before this can be enabled.
11707 hardcode_into_libs=yes
11708
11709 dynamic_linker='Android linker'
11710 # Don't embed -rpath directories since the linker doesn't support them.
11711 hardcode_libdir_flag_spec='-L$libdir'
11712 ;;
11713
11714 # This must be glibc/ELF.
11715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11716 version_type=linux # correct to gnu/linux during the next big refactor
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 soname_spec='$libname$release$shared_ext$major'
11721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=no
11724
11725 # Some binutils ld are patched to set DT_RUNPATH
11726 if test ${lt_cv_shlibpath_overrides_runpath+y}
11727 then :
11728 printf %s "(cached) " >&6
11729 else $as_nop
11730 lt_cv_shlibpath_overrides_runpath=no
11731 save_LDFLAGS=$LDFLAGS
11732 save_libdir=$libdir
11733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737
11738 int
11739 main (void)
11740 {
11741
11742 ;
11743 return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"
11747 then :
11748 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11749 then :
11750 lt_cv_shlibpath_overrides_runpath=yes
11751 fi
11752 fi
11753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11754 conftest$ac_exeext conftest.$ac_ext
11755 LDFLAGS=$save_LDFLAGS
11756 libdir=$save_libdir
11757
11758 fi
11759
11760 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11761
11762 # This implies no fast_install, which is unacceptable.
11763 # Some rework will be needed to allow for fast_install
11764 # before this can be enabled.
11765 hardcode_into_libs=yes
11766
11767 # Ideally, we could use ldconfig to report *all* directores which are
11768 # searched for libraries, however this is still not possible. Aside from not
11769 # being certain /sbin/ldconfig is available, command
11770 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11771 # even though it is searched at run-time. Try to do the best guess by
11772 # appending ld.so.conf contents (and includes) to the search path.
11773 if test -f /etc/ld.so.conf; then
11774 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' ' '`
11775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11776 fi
11777
11778 # We used to test for /lib/ld.so.1 and disable shared libraries on
11779 # powerpc, because MkLinux only supported shared libraries with the
11780 # GNU dynamic linker. Since this was broken with cross compilers,
11781 # most powerpc-linux boxes support dynamic linking these days and
11782 # people can always --disable-shared, the test was removed, and we
11783 # assume the GNU/Linux dynamic linker is in use.
11784 dynamic_linker='GNU/Linux ld.so'
11785 ;;
11786
11787 netbsdelf*-gnu)
11788 version_type=linux
11789 need_lib_prefix=no
11790 need_version=no
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11792 soname_spec='${libname}${release}${shared_ext}$major'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=no
11795 hardcode_into_libs=yes
11796 dynamic_linker='NetBSD ld.elf_so'
11797 ;;
11798
11799 netbsd*)
11800 version_type=sunos
11801 need_lib_prefix=no
11802 need_version=no
11803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11806 dynamic_linker='NetBSD (a.out) ld.so'
11807 else
11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11809 soname_spec='$libname$release$shared_ext$major'
11810 dynamic_linker='NetBSD ld.elf_so'
11811 fi
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=yes
11814 hardcode_into_libs=yes
11815 ;;
11816
11817 newsos6)
11818 version_type=linux # correct to gnu/linux during the next big refactor
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=yes
11822 ;;
11823
11824 *nto* | *qnx*)
11825 version_type=qnx
11826 need_lib_prefix=no
11827 need_version=no
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11829 soname_spec='$libname$release$shared_ext$major'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=no
11832 hardcode_into_libs=yes
11833 dynamic_linker='ldqnx.so'
11834 ;;
11835
11836 openbsd* | bitrig*)
11837 version_type=sunos
11838 sys_lib_dlsearch_path_spec=/usr/lib
11839 need_lib_prefix=no
11840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11841 need_version=no
11842 else
11843 need_version=yes
11844 fi
11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 shlibpath_overrides_runpath=yes
11849 ;;
11850
11851 os2*)
11852 libname_spec='$name'
11853 version_type=windows
11854 shrext_cmds=.dll
11855 need_version=no
11856 need_lib_prefix=no
11857 # OS/2 can only load a DLL with a base name of 8 characters or less.
11858 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11859 v=$($ECHO $release$versuffix | tr -d .-);
11860 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11861 $ECHO $n$v`$shared_ext'
11862 library_names_spec='${libname}_dll.$libext'
11863 dynamic_linker='OS/2 ld.exe'
11864 shlibpath_var=BEGINLIBPATH
11865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11867 postinstall_cmds='base_file=`basename \$file`~
11868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11869 dldir=$destdir/`dirname \$dlpath`~
11870 test -d \$dldir || mkdir -p \$dldir~
11871 $install_prog $dir/$dlname \$dldir/$dlname~
11872 chmod a+x \$dldir/$dlname~
11873 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11874 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11875 fi'
11876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11877 dlpath=$dir/\$dldll~
11878 $RM \$dlpath'
11879 ;;
11880
11881 osf3* | osf4* | osf5*)
11882 version_type=osf
11883 need_lib_prefix=no
11884 need_version=no
11885 soname_spec='$libname$release$shared_ext$major'
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11890 ;;
11891
11892 rdos*)
11893 dynamic_linker=no
11894 ;;
11895
11896 solaris*)
11897 version_type=linux # correct to gnu/linux during the next big refactor
11898 need_lib_prefix=no
11899 need_version=no
11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901 soname_spec='$libname$release$shared_ext$major'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 shlibpath_overrides_runpath=yes
11904 hardcode_into_libs=yes
11905 # ldd complains unless libraries are executable
11906 postinstall_cmds='chmod +x $lib'
11907 ;;
11908
11909 sunos4*)
11910 version_type=sunos
11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=yes
11915 if test yes = "$with_gnu_ld"; then
11916 need_lib_prefix=no
11917 fi
11918 need_version=yes
11919 ;;
11920
11921 sysv4 | sysv4.3*)
11922 version_type=linux # correct to gnu/linux during the next big refactor
11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11924 soname_spec='$libname$release$shared_ext$major'
11925 shlibpath_var=LD_LIBRARY_PATH
11926 case $host_vendor in
11927 sni)
11928 shlibpath_overrides_runpath=no
11929 need_lib_prefix=no
11930 runpath_var=LD_RUN_PATH
11931 ;;
11932 siemens)
11933 need_lib_prefix=no
11934 ;;
11935 motorola)
11936 need_lib_prefix=no
11937 need_version=no
11938 shlibpath_overrides_runpath=no
11939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11940 ;;
11941 esac
11942 ;;
11943
11944 sysv4*MP*)
11945 if test -d /usr/nec; then
11946 version_type=linux # correct to gnu/linux during the next big refactor
11947 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11948 soname_spec='$libname$shared_ext.$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 fi
11951 ;;
11952
11953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11954 version_type=sco
11955 need_lib_prefix=no
11956 need_version=no
11957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11958 soname_spec='$libname$release$shared_ext$major'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=yes
11961 hardcode_into_libs=yes
11962 if test yes = "$with_gnu_ld"; then
11963 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11964 else
11965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11966 case $host_os in
11967 sco3.2v5*)
11968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11969 ;;
11970 esac
11971 fi
11972 sys_lib_dlsearch_path_spec='/usr/lib'
11973 ;;
11974
11975 tpf*)
11976 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11977 version_type=linux # correct to gnu/linux during the next big refactor
11978 need_lib_prefix=no
11979 need_version=no
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=no
11983 hardcode_into_libs=yes
11984 ;;
11985
11986 uts4*)
11987 version_type=linux # correct to gnu/linux during the next big refactor
11988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11989 soname_spec='$libname$release$shared_ext$major'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 ;;
11992
11993 *)
11994 dynamic_linker=no
11995 ;;
11996 esac
11997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11998 printf "%s\n" "$dynamic_linker" >&6; }
11999 test no = "$dynamic_linker" && can_build_shared=no
12000
12001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12002 if test yes = "$GCC"; then
12003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12004 fi
12005
12006 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12007 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12008 fi
12009
12010 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12011 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12012 fi
12013
12014 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12015 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12016
12017 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12018 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12019
12020 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12021 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12120 printf %s "checking how to hardcode library paths into programs... " >&6; }
12121 hardcode_action=
12122 if test -n "$hardcode_libdir_flag_spec" ||
12123 test -n "$runpath_var" ||
12124 test yes = "$hardcode_automatic"; then
12125
12126 # We can hardcode non-existent directories.
12127 if test no != "$hardcode_direct" &&
12128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12129 # have to relink, otherwise we might link with an installed library
12130 # when we should be linking with a yet-to-be-installed one
12131 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12132 test no != "$hardcode_minus_L"; then
12133 # Linking always hardcodes the temporary library directory.
12134 hardcode_action=relink
12135 else
12136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12137 hardcode_action=immediate
12138 fi
12139 else
12140 # We cannot hardcode anything, or else we can only hardcode existing
12141 # directories.
12142 hardcode_action=unsupported
12143 fi
12144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12145 printf "%s\n" "$hardcode_action" >&6; }
12146
12147 if test relink = "$hardcode_action" ||
12148 test yes = "$inherit_rpath"; then
12149 # Fast installation is not supported
12150 enable_fast_install=no
12151 elif test yes = "$shlibpath_overrides_runpath" ||
12152 test no = "$enable_shared"; then
12153 # Fast installation is not necessary
12154 enable_fast_install=needless
12155 fi
12156
12157
12158
12159
12160
12161
12162 if test yes != "$enable_dlopen"; then
12163 enable_dlopen=unknown
12164 enable_dlopen_self=unknown
12165 enable_dlopen_self_static=unknown
12166 else
12167 lt_cv_dlopen=no
12168 lt_cv_dlopen_libs=
12169
12170 case $host_os in
12171 beos*)
12172 lt_cv_dlopen=load_add_on
12173 lt_cv_dlopen_libs=
12174 lt_cv_dlopen_self=yes
12175 ;;
12176
12177 mingw* | pw32* | cegcc*)
12178 lt_cv_dlopen=LoadLibrary
12179 lt_cv_dlopen_libs=
12180 ;;
12181
12182 cygwin*)
12183 lt_cv_dlopen=dlopen
12184 lt_cv_dlopen_libs=
12185 ;;
12186
12187 darwin*)
12188 # if libdl is installed we need to link against it
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12190 printf %s "checking for dlopen in -ldl... " >&6; }
12191 if test ${ac_cv_lib_dl_dlopen+y}
12192 then :
12193 printf %s "(cached) " >&6
12194 else $as_nop
12195 ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-ldl $LIBS"
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12199
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12203 char dlopen ();
12204 int
12205 main (void)
12206 {
12207 return dlopen ();
12208 ;
12209 return 0;
12210 }
12211 _ACEOF
12212 if ac_fn_c_try_link "$LINENO"
12213 then :
12214 ac_cv_lib_dl_dlopen=yes
12215 else $as_nop
12216 ac_cv_lib_dl_dlopen=no
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12221 fi
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12223 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12224 if test "x$ac_cv_lib_dl_dlopen" = xyes
12225 then :
12226 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12227 else $as_nop
12228
12229 lt_cv_dlopen=dyld
12230 lt_cv_dlopen_libs=
12231 lt_cv_dlopen_self=yes
12232
12233 fi
12234
12235 ;;
12236
12237 tpf*)
12238 # Don't try to run any link tests for TPF. We know it's impossible
12239 # because TPF is a cross-compiler, and we know how we open DSOs.
12240 lt_cv_dlopen=dlopen
12241 lt_cv_dlopen_libs=
12242 lt_cv_dlopen_self=no
12243 ;;
12244
12245 *)
12246 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12247 if test "x$ac_cv_func_shl_load" = xyes
12248 then :
12249 lt_cv_dlopen=shl_load
12250 else $as_nop
12251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12252 printf %s "checking for shl_load in -ldld... " >&6; }
12253 if test ${ac_cv_lib_dld_shl_load+y}
12254 then :
12255 printf %s "(cached) " >&6
12256 else $as_nop
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-ldld $LIBS"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12265 char shl_load ();
12266 int
12267 main (void)
12268 {
12269 return shl_load ();
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"
12275 then :
12276 ac_cv_lib_dld_shl_load=yes
12277 else $as_nop
12278 ac_cv_lib_dld_shl_load=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12285 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12286 if test "x$ac_cv_lib_dld_shl_load" = xyes
12287 then :
12288 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12289 else $as_nop
12290 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12291 if test "x$ac_cv_func_dlopen" = xyes
12292 then :
12293 lt_cv_dlopen=dlopen
12294 else $as_nop
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12296 printf %s "checking for dlopen in -ldl... " >&6; }
12297 if test ${ac_cv_lib_dl_dlopen+y}
12298 then :
12299 printf %s "(cached) " >&6
12300 else $as_nop
12301 ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-ldl $LIBS"
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12309 char dlopen ();
12310 int
12311 main (void)
12312 {
12313 return dlopen ();
12314 ;
12315 return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"
12319 then :
12320 ac_cv_lib_dl_dlopen=yes
12321 else $as_nop
12322 ac_cv_lib_dl_dlopen=no
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12327 fi
12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12329 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12330 if test "x$ac_cv_lib_dl_dlopen" = xyes
12331 then :
12332 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12333 else $as_nop
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12335 printf %s "checking for dlopen in -lsvld... " >&6; }
12336 if test ${ac_cv_lib_svld_dlopen+y}
12337 then :
12338 printf %s "(cached) " >&6
12339 else $as_nop
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lsvld $LIBS"
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344
12345 /* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12348 char dlopen ();
12349 int
12350 main (void)
12351 {
12352 return dlopen ();
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"
12358 then :
12359 ac_cv_lib_svld_dlopen=yes
12360 else $as_nop
12361 ac_cv_lib_svld_dlopen=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12368 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12369 if test "x$ac_cv_lib_svld_dlopen" = xyes
12370 then :
12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12372 else $as_nop
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12374 printf %s "checking for dld_link in -ldld... " >&6; }
12375 if test ${ac_cv_lib_dld_dld_link+y}
12376 then :
12377 printf %s "(cached) " >&6
12378 else $as_nop
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-ldld $LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12387 char dld_link ();
12388 int
12389 main (void)
12390 {
12391 return dld_link ();
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"
12397 then :
12398 ac_cv_lib_dld_dld_link=yes
12399 else $as_nop
12400 ac_cv_lib_dld_dld_link=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12405 fi
12406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12407 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12408 if test "x$ac_cv_lib_dld_dld_link" = xyes
12409 then :
12410 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12411 fi
12412
12413
12414 fi
12415
12416
12417 fi
12418
12419
12420 fi
12421
12422
12423 fi
12424
12425
12426 fi
12427
12428 ;;
12429 esac
12430
12431 if test no = "$lt_cv_dlopen"; then
12432 enable_dlopen=no
12433 else
12434 enable_dlopen=yes
12435 fi
12436
12437 case $lt_cv_dlopen in
12438 dlopen)
12439 save_CPPFLAGS=$CPPFLAGS
12440 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12441
12442 save_LDFLAGS=$LDFLAGS
12443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12444
12445 save_LIBS=$LIBS
12446 LIBS="$lt_cv_dlopen_libs $LIBS"
12447
12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12449 printf %s "checking whether a program can dlopen itself... " >&6; }
12450 if test ${lt_cv_dlopen_self+y}
12451 then :
12452 printf %s "(cached) " >&6
12453 else $as_nop
12454 if test yes = "$cross_compiling"; then :
12455 lt_cv_dlopen_self=cross
12456 else
12457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12458 lt_status=$lt_dlunknown
12459 cat > conftest.$ac_ext <<_LT_EOF
12460 #line $LINENO "configure"
12461 #include "confdefs.h"
12462
12463 #if HAVE_DLFCN_H
12464 #include <dlfcn.h>
12465 #endif
12466
12467 #include <stdio.h>
12468
12469 #ifdef RTLD_GLOBAL
12470 # define LT_DLGLOBAL RTLD_GLOBAL
12471 #else
12472 # ifdef DL_GLOBAL
12473 # define LT_DLGLOBAL DL_GLOBAL
12474 # else
12475 # define LT_DLGLOBAL 0
12476 # endif
12477 #endif
12478
12479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12480 find out it does not work in some platform. */
12481 #ifndef LT_DLLAZY_OR_NOW
12482 # ifdef RTLD_LAZY
12483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12484 # else
12485 # ifdef DL_LAZY
12486 # define LT_DLLAZY_OR_NOW DL_LAZY
12487 # else
12488 # ifdef RTLD_NOW
12489 # define LT_DLLAZY_OR_NOW RTLD_NOW
12490 # else
12491 # ifdef DL_NOW
12492 # define LT_DLLAZY_OR_NOW DL_NOW
12493 # else
12494 # define LT_DLLAZY_OR_NOW 0
12495 # endif
12496 # endif
12497 # endif
12498 # endif
12499 #endif
12500
12501 /* When -fvisibility=hidden is used, assume the code has been annotated
12502 correspondingly for the symbols needed. */
12503 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12504 int fnord () __attribute__((visibility("default")));
12505 #endif
12506
12507 int fnord () { return 42; }
12508 int main ()
12509 {
12510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12511 int status = $lt_dlunknown;
12512
12513 if (self)
12514 {
12515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12516 else
12517 {
12518 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12519 else puts (dlerror ());
12520 }
12521 /* dlclose (self); */
12522 }
12523 else
12524 puts (dlerror ());
12525
12526 return status;
12527 }
12528 _LT_EOF
12529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12530 (eval $ac_link) 2>&5
12531 ac_status=$?
12532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12533 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12534 (./conftest; exit; ) >&5 2>/dev/null
12535 lt_status=$?
12536 case x$lt_status in
12537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12539 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12540 esac
12541 else :
12542 # compilation failed
12543 lt_cv_dlopen_self=no
12544 fi
12545 fi
12546 rm -fr conftest*
12547
12548
12549 fi
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12551 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12552
12553 if test yes = "$lt_cv_dlopen_self"; then
12554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12556 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12557 if test ${lt_cv_dlopen_self_static+y}
12558 then :
12559 printf %s "(cached) " >&6
12560 else $as_nop
12561 if test yes = "$cross_compiling"; then :
12562 lt_cv_dlopen_self_static=cross
12563 else
12564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12565 lt_status=$lt_dlunknown
12566 cat > conftest.$ac_ext <<_LT_EOF
12567 #line $LINENO "configure"
12568 #include "confdefs.h"
12569
12570 #if HAVE_DLFCN_H
12571 #include <dlfcn.h>
12572 #endif
12573
12574 #include <stdio.h>
12575
12576 #ifdef RTLD_GLOBAL
12577 # define LT_DLGLOBAL RTLD_GLOBAL
12578 #else
12579 # ifdef DL_GLOBAL
12580 # define LT_DLGLOBAL DL_GLOBAL
12581 # else
12582 # define LT_DLGLOBAL 0
12583 # endif
12584 #endif
12585
12586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12587 find out it does not work in some platform. */
12588 #ifndef LT_DLLAZY_OR_NOW
12589 # ifdef RTLD_LAZY
12590 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12591 # else
12592 # ifdef DL_LAZY
12593 # define LT_DLLAZY_OR_NOW DL_LAZY
12594 # else
12595 # ifdef RTLD_NOW
12596 # define LT_DLLAZY_OR_NOW RTLD_NOW
12597 # else
12598 # ifdef DL_NOW
12599 # define LT_DLLAZY_OR_NOW DL_NOW
12600 # else
12601 # define LT_DLLAZY_OR_NOW 0
12602 # endif
12603 # endif
12604 # endif
12605 # endif
12606 #endif
12607
12608 /* When -fvisibility=hidden is used, assume the code has been annotated
12609 correspondingly for the symbols needed. */
12610 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12611 int fnord () __attribute__((visibility("default")));
12612 #endif
12613
12614 int fnord () { return 42; }
12615 int main ()
12616 {
12617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12618 int status = $lt_dlunknown;
12619
12620 if (self)
12621 {
12622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12623 else
12624 {
12625 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12626 else puts (dlerror ());
12627 }
12628 /* dlclose (self); */
12629 }
12630 else
12631 puts (dlerror ());
12632
12633 return status;
12634 }
12635 _LT_EOF
12636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12637 (eval $ac_link) 2>&5
12638 ac_status=$?
12639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12641 (./conftest; exit; ) >&5 2>/dev/null
12642 lt_status=$?
12643 case x$lt_status in
12644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12647 esac
12648 else :
12649 # compilation failed
12650 lt_cv_dlopen_self_static=no
12651 fi
12652 fi
12653 rm -fr conftest*
12654
12655
12656 fi
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12658 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12659 fi
12660
12661 CPPFLAGS=$save_CPPFLAGS
12662 LDFLAGS=$save_LDFLAGS
12663 LIBS=$save_LIBS
12664 ;;
12665 esac
12666
12667 case $lt_cv_dlopen_self in
12668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12669 *) enable_dlopen_self=unknown ;;
12670 esac
12671
12672 case $lt_cv_dlopen_self_static in
12673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12674 *) enable_dlopen_self_static=unknown ;;
12675 esac
12676 fi
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694 striplib=
12695 old_striplib=
12696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12697 printf %s "checking whether stripping libraries is possible... " >&6; }
12698 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12700 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12702 printf "%s\n" "yes" >&6; }
12703 else
12704 # FIXME - insert some real tests, host_os isn't really good enough
12705 case $host_os in
12706 darwin*)
12707 if test -n "$STRIP"; then
12708 striplib="$STRIP -x"
12709 old_striplib="$STRIP -S"
12710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12711 printf "%s\n" "yes" >&6; }
12712 else
12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 printf "%s\n" "no" >&6; }
12715 fi
12716 ;;
12717 *)
12718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 printf "%s\n" "no" >&6; }
12720 ;;
12721 esac
12722 fi
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735 # Report what library types will actually be built
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12737 printf %s "checking if libtool supports shared libraries... " >&6; }
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12739 printf "%s\n" "$can_build_shared" >&6; }
12740
12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12742 printf %s "checking whether to build shared libraries... " >&6; }
12743 test no = "$can_build_shared" && enable_shared=no
12744
12745 # On AIX, shared libraries and static libraries use the same namespace, and
12746 # are all built from PIC.
12747 case $host_os in
12748 aix3*)
12749 test yes = "$enable_shared" && enable_static=no
12750 if test -n "$RANLIB"; then
12751 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12752 postinstall_cmds='$RANLIB $lib'
12753 fi
12754 ;;
12755
12756 aix[4-9]*)
12757 if test ia64 != "$host_cpu"; then
12758 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12759 yes,aix,yes) ;; # shared object as lib.so file only
12760 yes,svr4,*) ;; # shared object as lib.so archive member only
12761 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12762 esac
12763 fi
12764 ;;
12765 esac
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12767 printf "%s\n" "$enable_shared" >&6; }
12768
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12770 printf %s "checking whether to build static libraries... " >&6; }
12771 # Make sure either enable_shared or enable_static is yes.
12772 test yes = "$enable_shared" || enable_static=yes
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12774 printf "%s\n" "$enable_static" >&6; }
12775
12776
12777
12778
12779 fi
12780 ac_ext=c
12781 ac_cpp='$CPP $CPPFLAGS'
12782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12785
12786 CC=$lt_save_CC
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802 ac_config_commands="$ac_config_commands libtool"
12803
12804
12805
12806
12807 # Only expand once:
12808
12809
12810
12811 # -----------------------------------------------------------------------------
12812 # Compiler Flags / Libraries
12813 # -----------------------------------------------------------------------------
12814
12815
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
12817 printf %s "checking whether C compiler accepts -Wall... " >&6; }
12818 if test ${ax_cv_check_cflags__Werror__Wall+y}
12819 then :
12820 printf %s "(cached) " >&6
12821 else $as_nop
12822
12823 ax_check_save_flags=$CFLAGS
12824 CFLAGS="$CFLAGS -Werror -Wall"
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827
12828 int
12829 main (void)
12830 {
12831
12832 ;
12833 return 0;
12834 }
12835 _ACEOF
12836 if ac_fn_c_try_compile "$LINENO"
12837 then :
12838 ax_cv_check_cflags__Werror__Wall=yes
12839 else $as_nop
12840 ax_cv_check_cflags__Werror__Wall=no
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12843 CFLAGS=$ax_check_save_flags
12844 fi
12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wall" >&5
12846 printf "%s\n" "$ax_cv_check_cflags__Werror__Wall" >&6; }
12847 if test "x$ax_cv_check_cflags__Werror__Wall" = xyes
12848 then :
12849 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wall"
12850 else $as_nop
12851 :
12852 fi
12853
12854
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
12856 printf %s "checking whether C compiler accepts -Wextra... " >&6; }
12857 if test ${ax_cv_check_cflags__Werror__Wextra+y}
12858 then :
12859 printf %s "(cached) " >&6
12860 else $as_nop
12861
12862 ax_check_save_flags=$CFLAGS
12863 CFLAGS="$CFLAGS -Werror -Wextra"
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12866
12867 int
12868 main (void)
12869 {
12870
12871 ;
12872 return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_compile "$LINENO"
12876 then :
12877 ax_cv_check_cflags__Werror__Wextra=yes
12878 else $as_nop
12879 ax_cv_check_cflags__Werror__Wextra=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12882 CFLAGS=$ax_check_save_flags
12883 fi
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wextra" >&5
12885 printf "%s\n" "$ax_cv_check_cflags__Werror__Wextra" >&6; }
12886 if test "x$ax_cv_check_cflags__Werror__Wextra" = xyes
12887 then :
12888 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wextra"
12889 else $as_nop
12890 :
12891 fi
12892
12893
12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused-parameter" >&5
12895 printf %s "checking whether C compiler accepts -Wno-unused-parameter... " >&6; }
12896 if test ${ax_cv_check_cflags__Werror__Wno_unused_parameter+y}
12897 then :
12898 printf %s "(cached) " >&6
12899 else $as_nop
12900
12901 ax_check_save_flags=$CFLAGS
12902 CFLAGS="$CFLAGS -Werror -Wno-unused-parameter"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905
12906 int
12907 main (void)
12908 {
12909
12910 ;
12911 return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_c_try_compile "$LINENO"
12915 then :
12916 ax_cv_check_cflags__Werror__Wno_unused_parameter=yes
12917 else $as_nop
12918 ax_cv_check_cflags__Werror__Wno_unused_parameter=no
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12921 CFLAGS=$ax_check_save_flags
12922 fi
12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_unused_parameter" >&5
12924 printf "%s\n" "$ax_cv_check_cflags__Werror__Wno_unused_parameter" >&6; }
12925 if test "x$ax_cv_check_cflags__Werror__Wno_unused_parameter" = xyes
12926 then :
12927 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wno-unused-parameter"
12928 else $as_nop
12929 :
12930 fi
12931
12932
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
12934 printf %s "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
12935 if test ${ax_cv_check_cflags__Werror__Wmissing_prototypes+y}
12936 then :
12937 printf %s "(cached) " >&6
12938 else $as_nop
12939
12940 ax_check_save_flags=$CFLAGS
12941 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944
12945 int
12946 main (void)
12947 {
12948
12949 ;
12950 return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_c_try_compile "$LINENO"
12954 then :
12955 ax_cv_check_cflags__Werror__Wmissing_prototypes=yes
12956 else $as_nop
12957 ax_cv_check_cflags__Werror__Wmissing_prototypes=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12960 CFLAGS=$ax_check_save_flags
12961 fi
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wmissing_prototypes" >&5
12963 printf "%s\n" "$ax_cv_check_cflags__Werror__Wmissing_prototypes" >&6; }
12964 if test "x$ax_cv_check_cflags__Werror__Wmissing_prototypes" = xyes
12965 then :
12966 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wmissing-prototypes"
12967 else $as_nop
12968 :
12969 fi
12970
12971
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
12973 printf %s "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
12974 if test ${ax_cv_check_cflags__Werror__Wstrict_prototypes+y}
12975 then :
12976 printf %s "(cached) " >&6
12977 else $as_nop
12978
12979 ax_check_save_flags=$CFLAGS
12980 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983
12984 int
12985 main (void)
12986 {
12987
12988 ;
12989 return 0;
12990 }
12991 _ACEOF
12992 if ac_fn_c_try_compile "$LINENO"
12993 then :
12994 ax_cv_check_cflags__Werror__Wstrict_prototypes=yes
12995 else $as_nop
12996 ax_cv_check_cflags__Werror__Wstrict_prototypes=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12999 CFLAGS=$ax_check_save_flags
13000 fi
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstrict_prototypes" >&5
13002 printf "%s\n" "$ax_cv_check_cflags__Werror__Wstrict_prototypes" >&6; }
13003 if test "x$ax_cv_check_cflags__Werror__Wstrict_prototypes" = xyes
13004 then :
13005 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wstrict-prototypes"
13006 else $as_nop
13007 :
13008 fi
13009
13010
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlogical-op" >&5
13012 printf %s "checking whether C compiler accepts -Wlogical-op... " >&6; }
13013 if test ${ax_cv_check_cflags__Werror__Wlogical_op+y}
13014 then :
13015 printf %s "(cached) " >&6
13016 else $as_nop
13017
13018 ax_check_save_flags=$CFLAGS
13019 CFLAGS="$CFLAGS -Werror -Wlogical-op"
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022
13023 int
13024 main (void)
13025 {
13026
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_compile "$LINENO"
13032 then :
13033 ax_cv_check_cflags__Werror__Wlogical_op=yes
13034 else $as_nop
13035 ax_cv_check_cflags__Werror__Wlogical_op=no
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13038 CFLAGS=$ax_check_save_flags
13039 fi
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wlogical_op" >&5
13041 printf "%s\n" "$ax_cv_check_cflags__Werror__Wlogical_op" >&6; }
13042 if test "x$ax_cv_check_cflags__Werror__Wlogical_op" = xyes
13043 then :
13044 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wlogical-op"
13045 else $as_nop
13046 :
13047 fi
13048
13049
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
13051 printf %s "checking whether C compiler accepts -Wpointer-arith... " >&6; }
13052 if test ${ax_cv_check_cflags__Werror__Wpointer_arith+y}
13053 then :
13054 printf %s "(cached) " >&6
13055 else $as_nop
13056
13057 ax_check_save_flags=$CFLAGS
13058 CFLAGS="$CFLAGS -Werror -Wpointer-arith"
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061
13062 int
13063 main (void)
13064 {
13065
13066 ;
13067 return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"
13071 then :
13072 ax_cv_check_cflags__Werror__Wpointer_arith=yes
13073 else $as_nop
13074 ax_cv_check_cflags__Werror__Wpointer_arith=no
13075 fi
13076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13077 CFLAGS=$ax_check_save_flags
13078 fi
13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wpointer_arith" >&5
13080 printf "%s\n" "$ax_cv_check_cflags__Werror__Wpointer_arith" >&6; }
13081 if test "x$ax_cv_check_cflags__Werror__Wpointer_arith" = xyes
13082 then :
13083 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wpointer-arith"
13084 else $as_nop
13085 :
13086 fi
13087
13088
13089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wuninitialized" >&5
13090 printf %s "checking whether C compiler accepts -Wuninitialized... " >&6; }
13091 if test ${ax_cv_check_cflags__Werror__Wuninitialized+y}
13092 then :
13093 printf %s "(cached) " >&6
13094 else $as_nop
13095
13096 ax_check_save_flags=$CFLAGS
13097 CFLAGS="$CFLAGS -Werror -Wuninitialized"
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100
13101 int
13102 main (void)
13103 {
13104
13105 ;
13106 return 0;
13107 }
13108 _ACEOF
13109 if ac_fn_c_try_compile "$LINENO"
13110 then :
13111 ax_cv_check_cflags__Werror__Wuninitialized=yes
13112 else $as_nop
13113 ax_cv_check_cflags__Werror__Wuninitialized=no
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13116 CFLAGS=$ax_check_save_flags
13117 fi
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wuninitialized" >&5
13119 printf "%s\n" "$ax_cv_check_cflags__Werror__Wuninitialized" >&6; }
13120 if test "x$ax_cv_check_cflags__Werror__Wuninitialized" = xyes
13121 then :
13122 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wuninitialized"
13123 else $as_nop
13124 :
13125 fi
13126
13127
13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winit-self" >&5
13129 printf %s "checking whether C compiler accepts -Winit-self... " >&6; }
13130 if test ${ax_cv_check_cflags__Werror__Winit_self+y}
13131 then :
13132 printf %s "(cached) " >&6
13133 else $as_nop
13134
13135 ax_check_save_flags=$CFLAGS
13136 CFLAGS="$CFLAGS -Werror -Winit-self"
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139
13140 int
13141 main (void)
13142 {
13143
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_compile "$LINENO"
13149 then :
13150 ax_cv_check_cflags__Werror__Winit_self=yes
13151 else $as_nop
13152 ax_cv_check_cflags__Werror__Winit_self=no
13153 fi
13154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13155 CFLAGS=$ax_check_save_flags
13156 fi
13157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Winit_self" >&5
13158 printf "%s\n" "$ax_cv_check_cflags__Werror__Winit_self" >&6; }
13159 if test "x$ax_cv_check_cflags__Werror__Winit_self" = xyes
13160 then :
13161 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Winit-self"
13162 else $as_nop
13163 :
13164 fi
13165
13166
13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
13168 printf %s "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
13169 if test ${ax_cv_check_cflags__Werror__Wstrict_prototypes+y}
13170 then :
13171 printf %s "(cached) " >&6
13172 else $as_nop
13173
13174 ax_check_save_flags=$CFLAGS
13175 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13178
13179 int
13180 main (void)
13181 {
13182
13183 ;
13184 return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_compile "$LINENO"
13188 then :
13189 ax_cv_check_cflags__Werror__Wstrict_prototypes=yes
13190 else $as_nop
13191 ax_cv_check_cflags__Werror__Wstrict_prototypes=no
13192 fi
13193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13194 CFLAGS=$ax_check_save_flags
13195 fi
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstrict_prototypes" >&5
13197 printf "%s\n" "$ax_cv_check_cflags__Werror__Wstrict_prototypes" >&6; }
13198 if test "x$ax_cv_check_cflags__Werror__Wstrict_prototypes" = xyes
13199 then :
13200 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wstrict-prototypes"
13201 else $as_nop
13202 :
13203 fi
13204
13205
13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
13207 printf %s "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
13208 if test ${ax_cv_check_cflags__Werror__Wimplicit_fallthrough+y}
13209 then :
13210 printf %s "(cached) " >&6
13211 else $as_nop
13212
13213 ax_check_save_flags=$CFLAGS
13214 CFLAGS="$CFLAGS -Werror -Wimplicit-fallthrough"
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217
13218 int
13219 main (void)
13220 {
13221
13222 ;
13223 return 0;
13224 }
13225 _ACEOF
13226 if ac_fn_c_try_compile "$LINENO"
13227 then :
13228 ax_cv_check_cflags__Werror__Wimplicit_fallthrough=yes
13229 else $as_nop
13230 ax_cv_check_cflags__Werror__Wimplicit_fallthrough=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13233 CFLAGS=$ax_check_save_flags
13234 fi
13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wimplicit_fallthrough" >&5
13236 printf "%s\n" "$ax_cv_check_cflags__Werror__Wimplicit_fallthrough" >&6; }
13237 if test "x$ax_cv_check_cflags__Werror__Wimplicit_fallthrough" = xyes
13238 then :
13239 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wimplicit-fallthrough"
13240 else $as_nop
13241 :
13242 fi
13243
13244
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wredundant-decls" >&5
13246 printf %s "checking whether C compiler accepts -Wredundant-decls... " >&6; }
13247 if test ${ax_cv_check_cflags__Werror__Wredundant_decls+y}
13248 then :
13249 printf %s "(cached) " >&6
13250 else $as_nop
13251
13252 ax_check_save_flags=$CFLAGS
13253 CFLAGS="$CFLAGS -Werror -Wredundant-decls"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13256
13257 int
13258 main (void)
13259 {
13260
13261 ;
13262 return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_c_try_compile "$LINENO"
13266 then :
13267 ax_cv_check_cflags__Werror__Wredundant_decls=yes
13268 else $as_nop
13269 ax_cv_check_cflags__Werror__Wredundant_decls=no
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13272 CFLAGS=$ax_check_save_flags
13273 fi
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wredundant_decls" >&5
13275 printf "%s\n" "$ax_cv_check_cflags__Werror__Wredundant_decls" >&6; }
13276 if test "x$ax_cv_check_cflags__Werror__Wredundant_decls" = xyes
13277 then :
13278 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wredundant-decls"
13279 else $as_nop
13280 :
13281 fi
13282
13283
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wincompatible-pointer-types" >&5
13285 printf %s "checking whether C compiler accepts -Wincompatible-pointer-types... " >&6; }
13286 if test ${ax_cv_check_cflags__Werror__Wincompatible_pointer_types+y}
13287 then :
13288 printf %s "(cached) " >&6
13289 else $as_nop
13290
13291 ax_check_save_flags=$CFLAGS
13292 CFLAGS="$CFLAGS -Werror -Wincompatible-pointer-types"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295
13296 int
13297 main (void)
13298 {
13299
13300 ;
13301 return 0;
13302 }
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"
13305 then :
13306 ax_cv_check_cflags__Werror__Wincompatible_pointer_types=yes
13307 else $as_nop
13308 ax_cv_check_cflags__Werror__Wincompatible_pointer_types=no
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13311 CFLAGS=$ax_check_save_flags
13312 fi
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wincompatible_pointer_types" >&5
13314 printf "%s\n" "$ax_cv_check_cflags__Werror__Wincompatible_pointer_types" >&6; }
13315 if test "x$ax_cv_check_cflags__Werror__Wincompatible_pointer_types" = xyes
13316 then :
13317 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wincompatible-pointer-types"
13318 else $as_nop
13319 :
13320 fi
13321
13322
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat=2" >&5
13324 printf %s "checking whether C compiler accepts -Wformat=2... " >&6; }
13325 if test ${ax_cv_check_cflags__Werror__Wformat_2+y}
13326 then :
13327 printf %s "(cached) " >&6
13328 else $as_nop
13329
13330 ax_check_save_flags=$CFLAGS
13331 CFLAGS="$CFLAGS -Werror -Wformat=2"
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334
13335 int
13336 main (void)
13337 {
13338
13339 ;
13340 return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_compile "$LINENO"
13344 then :
13345 ax_cv_check_cflags__Werror__Wformat_2=yes
13346 else $as_nop
13347 ax_cv_check_cflags__Werror__Wformat_2=no
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13350 CFLAGS=$ax_check_save_flags
13351 fi
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wformat_2" >&5
13353 printf "%s\n" "$ax_cv_check_cflags__Werror__Wformat_2" >&6; }
13354 if test "x$ax_cv_check_cflags__Werror__Wformat_2" = xyes
13355 then :
13356 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wformat=2"
13357 else $as_nop
13358 :
13359 fi
13360
13361
13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow=2" >&5
13363 printf %s "checking whether C compiler accepts -Wformat-overflow=2... " >&6; }
13364 if test ${ax_cv_check_cflags__Werror__Wformat_overflow_2+y}
13365 then :
13366 printf %s "(cached) " >&6
13367 else $as_nop
13368
13369 ax_check_save_flags=$CFLAGS
13370 CFLAGS="$CFLAGS -Werror -Wformat-overflow=2"
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373
13374 int
13375 main (void)
13376 {
13377
13378 ;
13379 return 0;
13380 }
13381 _ACEOF
13382 if ac_fn_c_try_compile "$LINENO"
13383 then :
13384 ax_cv_check_cflags__Werror__Wformat_overflow_2=yes
13385 else $as_nop
13386 ax_cv_check_cflags__Werror__Wformat_overflow_2=no
13387 fi
13388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13389 CFLAGS=$ax_check_save_flags
13390 fi
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wformat_overflow_2" >&5
13392 printf "%s\n" "$ax_cv_check_cflags__Werror__Wformat_overflow_2" >&6; }
13393 if test "x$ax_cv_check_cflags__Werror__Wformat_overflow_2" = xyes
13394 then :
13395 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wformat-overflow=2"
13396 else $as_nop
13397 :
13398 fi
13399
13400
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-signedness" >&5
13402 printf %s "checking whether C compiler accepts -Wformat-signedness... " >&6; }
13403 if test ${ax_cv_check_cflags__Werror__Wformat_signedness+y}
13404 then :
13405 printf %s "(cached) " >&6
13406 else $as_nop
13407
13408 ax_check_save_flags=$CFLAGS
13409 CFLAGS="$CFLAGS -Werror -Wformat-signedness"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412
13413 int
13414 main (void)
13415 {
13416
13417 ;
13418 return 0;
13419 }
13420 _ACEOF
13421 if ac_fn_c_try_compile "$LINENO"
13422 then :
13423 ax_cv_check_cflags__Werror__Wformat_signedness=yes
13424 else $as_nop
13425 ax_cv_check_cflags__Werror__Wformat_signedness=no
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13428 CFLAGS=$ax_check_save_flags
13429 fi
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wformat_signedness" >&5
13431 printf "%s\n" "$ax_cv_check_cflags__Werror__Wformat_signedness" >&6; }
13432 if test "x$ax_cv_check_cflags__Werror__Wformat_signedness" = xyes
13433 then :
13434 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wformat-signedness"
13435 else $as_nop
13436 :
13437 fi
13438
13439
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation=2" >&5
13441 printf %s "checking whether C compiler accepts -Wformat-truncation=2... " >&6; }
13442 if test ${ax_cv_check_cflags__Werror__Wformat_truncation_2+y}
13443 then :
13444 printf %s "(cached) " >&6
13445 else $as_nop
13446
13447 ax_check_save_flags=$CFLAGS
13448 CFLAGS="$CFLAGS -Werror -Wformat-truncation=2"
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451
13452 int
13453 main (void)
13454 {
13455
13456 ;
13457 return 0;
13458 }
13459 _ACEOF
13460 if ac_fn_c_try_compile "$LINENO"
13461 then :
13462 ax_cv_check_cflags__Werror__Wformat_truncation_2=yes
13463 else $as_nop
13464 ax_cv_check_cflags__Werror__Wformat_truncation_2=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13467 CFLAGS=$ax_check_save_flags
13468 fi
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wformat_truncation_2" >&5
13470 printf "%s\n" "$ax_cv_check_cflags__Werror__Wformat_truncation_2" >&6; }
13471 if test "x$ax_cv_check_cflags__Werror__Wformat_truncation_2" = xyes
13472 then :
13473 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wformat-truncation=2"
13474 else $as_nop
13475 :
13476 fi
13477
13478
13479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
13480 printf %s "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
13481 if test ${ax_cv_check_cflags__Werror__Wmissing_declarations+y}
13482 then :
13483 printf %s "(cached) " >&6
13484 else $as_nop
13485
13486 ax_check_save_flags=$CFLAGS
13487 CFLAGS="$CFLAGS -Werror -Wmissing-declarations"
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13490
13491 int
13492 main (void)
13493 {
13494
13495 ;
13496 return 0;
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"
13500 then :
13501 ax_cv_check_cflags__Werror__Wmissing_declarations=yes
13502 else $as_nop
13503 ax_cv_check_cflags__Werror__Wmissing_declarations=no
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13506 CFLAGS=$ax_check_save_flags
13507 fi
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wmissing_declarations" >&5
13509 printf "%s\n" "$ax_cv_check_cflags__Werror__Wmissing_declarations" >&6; }
13510 if test "x$ax_cv_check_cflags__Werror__Wmissing_declarations" = xyes
13511 then :
13512 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wmissing-declarations"
13513 else $as_nop
13514 :
13515 fi
13516
13517
13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshift-overflow=2" >&5
13519 printf %s "checking whether C compiler accepts -Wshift-overflow=2... " >&6; }
13520 if test ${ax_cv_check_cflags__Werror__Wshift_overflow_2+y}
13521 then :
13522 printf %s "(cached) " >&6
13523 else $as_nop
13524
13525 ax_check_save_flags=$CFLAGS
13526 CFLAGS="$CFLAGS -Werror -Wshift-overflow=2"
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529
13530 int
13531 main (void)
13532 {
13533
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 if ac_fn_c_try_compile "$LINENO"
13539 then :
13540 ax_cv_check_cflags__Werror__Wshift_overflow_2=yes
13541 else $as_nop
13542 ax_cv_check_cflags__Werror__Wshift_overflow_2=no
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13545 CFLAGS=$ax_check_save_flags
13546 fi
13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wshift_overflow_2" >&5
13548 printf "%s\n" "$ax_cv_check_cflags__Werror__Wshift_overflow_2" >&6; }
13549 if test "x$ax_cv_check_cflags__Werror__Wshift_overflow_2" = xyes
13550 then :
13551 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wshift-overflow=2"
13552 else $as_nop
13553 :
13554 fi
13555
13556
13557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-overflow=2" >&5
13558 printf %s "checking whether C compiler accepts -Wstrict-overflow=2... " >&6; }
13559 if test ${ax_cv_check_cflags__Werror__Wstrict_overflow_2+y}
13560 then :
13561 printf %s "(cached) " >&6
13562 else $as_nop
13563
13564 ax_check_save_flags=$CFLAGS
13565 CFLAGS="$CFLAGS -Werror -Wstrict-overflow=2"
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568
13569 int
13570 main (void)
13571 {
13572
13573 ;
13574 return 0;
13575 }
13576 _ACEOF
13577 if ac_fn_c_try_compile "$LINENO"
13578 then :
13579 ax_cv_check_cflags__Werror__Wstrict_overflow_2=yes
13580 else $as_nop
13581 ax_cv_check_cflags__Werror__Wstrict_overflow_2=no
13582 fi
13583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13584 CFLAGS=$ax_check_save_flags
13585 fi
13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstrict_overflow_2" >&5
13587 printf "%s\n" "$ax_cv_check_cflags__Werror__Wstrict_overflow_2" >&6; }
13588 if test "x$ax_cv_check_cflags__Werror__Wstrict_overflow_2" = xyes
13589 then :
13590 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wstrict-overflow=2"
13591 else $as_nop
13592 :
13593 fi
13594
13595
13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wswitch-enum" >&5
13597 printf %s "checking whether C compiler accepts -Wswitch-enum... " >&6; }
13598 if test ${ax_cv_check_cflags__Werror__Wswitch_enum+y}
13599 then :
13600 printf %s "(cached) " >&6
13601 else $as_nop
13602
13603 ax_check_save_flags=$CFLAGS
13604 CFLAGS="$CFLAGS -Werror -Wswitch-enum"
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607
13608 int
13609 main (void)
13610 {
13611
13612 ;
13613 return 0;
13614 }
13615 _ACEOF
13616 if ac_fn_c_try_compile "$LINENO"
13617 then :
13618 ax_cv_check_cflags__Werror__Wswitch_enum=yes
13619 else $as_nop
13620 ax_cv_check_cflags__Werror__Wswitch_enum=no
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13623 CFLAGS=$ax_check_save_flags
13624 fi
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wswitch_enum" >&5
13626 printf "%s\n" "$ax_cv_check_cflags__Werror__Wswitch_enum" >&6; }
13627 if test "x$ax_cv_check_cflags__Werror__Wswitch_enum" = xyes
13628 then :
13629 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -Wswitch-enum"
13630 else $as_nop
13631 :
13632 fi
13633
13634
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
13636 printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
13637 if test ${ax_cv_check_cflags__Werror__fvisibility_hidden+y}
13638 then :
13639 printf %s "(cached) " >&6
13640 else $as_nop
13641
13642 ax_check_save_flags=$CFLAGS
13643 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646
13647 int
13648 main (void)
13649 {
13650
13651 ;
13652 return 0;
13653 }
13654 _ACEOF
13655 if ac_fn_c_try_compile "$LINENO"
13656 then :
13657 ax_cv_check_cflags__Werror__fvisibility_hidden=yes
13658 else $as_nop
13659 ax_cv_check_cflags__Werror__fvisibility_hidden=no
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13662 CFLAGS=$ax_check_save_flags
13663 fi
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fvisibility_hidden" >&5
13665 printf "%s\n" "$ax_cv_check_cflags__Werror__fvisibility_hidden" >&6; }
13666 if test "x$ax_cv_check_cflags__Werror__fvisibility_hidden" = xyes
13667 then :
13668 AVAILABLE_FLAGS="$AVAILABLE_FLAGS -fvisibility=hidden"
13669 else $as_nop
13670 :
13671 fi
13672
13673
13674 AM_CFLAGS="$AM_CFLAGS $AVAILABLE_FLAGS"
13675 AM_CFLAGS="$AM_CFLAGS -D_GNU_SOURCE"
13676
13677
13678 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13692 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13693 if test ${ac_cv_c_undeclared_builtin_options+y}
13694 then :
13695 printf %s "(cached) " >&6
13696 else $as_nop
13697 ac_save_CFLAGS=$CFLAGS
13698 ac_cv_c_undeclared_builtin_options='cannot detect'
13699 for ac_arg in '' -fno-builtin; do
13700 CFLAGS="$ac_save_CFLAGS $ac_arg"
13701 # This test program should *not* compile successfully.
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704
13705 int
13706 main (void)
13707 {
13708 (void) strchr;
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_compile "$LINENO"
13714 then :
13715
13716 else $as_nop
13717 # This test program should compile successfully.
13718 # No library function is consistently available on
13719 # freestanding implementations, so test against a dummy
13720 # declaration. Include always-available headers on the
13721 # off chance that they somehow elicit warnings.
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13724 #include <float.h>
13725 #include <limits.h>
13726 #include <stdarg.h>
13727 #include <stddef.h>
13728 extern void ac_decl (int, char *);
13729
13730 int
13731 main (void)
13732 {
13733 (void) ac_decl (0, (char *) 0);
13734 (void) ac_decl;
13735
13736 ;
13737 return 0;
13738 }
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"
13741 then :
13742 if test x"$ac_arg" = x
13743 then :
13744 ac_cv_c_undeclared_builtin_options='none needed'
13745 else $as_nop
13746 ac_cv_c_undeclared_builtin_options=$ac_arg
13747 fi
13748 break
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13751 fi
13752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13753 done
13754 CFLAGS=$ac_save_CFLAGS
13755
13756 fi
13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13758 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13759 case $ac_cv_c_undeclared_builtin_options in #(
13760 'cannot detect') :
13761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13762 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13763 as_fn_error $? "cannot make $CC report undeclared builtins
13764 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13765 'none needed') :
13766 ac_c_undeclared_builtin_options='' ;; #(
13767 *) :
13768 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13769 esac
13770
13771
13772
13773
13774
13775 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13776 if test "x$ac_cv_have_decl___clang__" = xyes
13777 then :
13778 CLANGCC="yes"
13779 else $as_nop
13780 CLANGCC="no"
13781 fi
13782 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13783 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13784 then :
13785 INTELCC="yes"
13786 else $as_nop
13787 INTELCC="no"
13788 fi
13789 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13790 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13791 then :
13792 SUNCC="yes"
13793 else $as_nop
13794 SUNCC="no"
13795 fi
13796
13797
13798
13799
13800
13801
13802
13803
13804 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13805 if test -n "$ac_tool_prefix"; then
13806 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13807 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13809 printf %s "checking for $ac_word... " >&6; }
13810 if test ${ac_cv_path_PKG_CONFIG+y}
13811 then :
13812 printf %s "(cached) " >&6
13813 else $as_nop
13814 case $PKG_CONFIG in
13815 [\\/]* | ?:[\\/]*)
13816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13817 ;;
13818 *)
13819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13821 do
13822 IFS=$as_save_IFS
13823 case $as_dir in #(((
13824 '') as_dir=./ ;;
13825 */) ;;
13826 *) as_dir=$as_dir/ ;;
13827 esac
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13830 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13832 break 2
13833 fi
13834 done
13835 done
13836 IFS=$as_save_IFS
13837
13838 ;;
13839 esac
13840 fi
13841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13842 if test -n "$PKG_CONFIG"; then
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13844 printf "%s\n" "$PKG_CONFIG" >&6; }
13845 else
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 printf "%s\n" "no" >&6; }
13848 fi
13849
13850
13851 fi
13852 if test -z "$ac_cv_path_PKG_CONFIG"; then
13853 ac_pt_PKG_CONFIG=$PKG_CONFIG
13854 # Extract the first word of "pkg-config", so it can be a program name with args.
13855 set dummy pkg-config; ac_word=$2
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 printf %s "checking for $ac_word... " >&6; }
13858 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13859 then :
13860 printf %s "(cached) " >&6
13861 else $as_nop
13862 case $ac_pt_PKG_CONFIG in
13863 [\\/]* | ?:[\\/]*)
13864 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13865 ;;
13866 *)
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13869 do
13870 IFS=$as_save_IFS
13871 case $as_dir in #(((
13872 '') as_dir=./ ;;
13873 */) ;;
13874 *) as_dir=$as_dir/ ;;
13875 esac
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13878 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13880 break 2
13881 fi
13882 done
13883 done
13884 IFS=$as_save_IFS
13885
13886 ;;
13887 esac
13888 fi
13889 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13890 if test -n "$ac_pt_PKG_CONFIG"; then
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13892 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13893 else
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 printf "%s\n" "no" >&6; }
13896 fi
13897
13898 if test "x$ac_pt_PKG_CONFIG" = x; then
13899 PKG_CONFIG=""
13900 else
13901 case $cross_compiling:$ac_tool_warned in
13902 yes:)
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13904 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13905 ac_tool_warned=yes ;;
13906 esac
13907 PKG_CONFIG=$ac_pt_PKG_CONFIG
13908 fi
13909 else
13910 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13911 fi
13912
13913 fi
13914 if test -n "$PKG_CONFIG"; then
13915 _pkg_min_version=0.9.0
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13917 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13918 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13920 printf "%s\n" "yes" >&6; }
13921 else
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 printf "%s\n" "no" >&6; }
13924 PKG_CONFIG=""
13925 fi
13926 fi
13927
13928
13929
13930
13931
13932 # Check whether --enable-selective-werror was given.
13933 if test ${enable_selective_werror+y}
13934 then :
13935 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13936 else $as_nop
13937 SELECTIVE_WERROR=yes
13938 fi
13939
13940
13941
13942
13943
13944 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13945 if test "x$SUNCC" = "xyes"; then
13946 BASE_CFLAGS="-v"
13947 else
13948 BASE_CFLAGS=""
13949 fi
13950
13951 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965 xorg_testset_save_CFLAGS="$CFLAGS"
13966
13967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13970 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13971 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13972 then :
13973 printf %s "(cached) " >&6
13974 else $as_nop
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 int i;
13978 _ACEOF
13979 if ac_fn_c_try_compile "$LINENO"
13980 then :
13981 xorg_cv_cc_flag_unknown_warning_option=yes
13982 else $as_nop
13983 xorg_cv_cc_flag_unknown_warning_option=no
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13986 fi
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13988 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13990 CFLAGS="$xorg_testset_save_CFLAGS"
13991 fi
13992
13993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13996 fi
13997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14001 then :
14002 printf %s "(cached) " >&6
14003 else $as_nop
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 int i;
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"
14009 then :
14010 xorg_cv_cc_flag_unused_command_line_argument=yes
14011 else $as_nop
14012 xorg_cv_cc_flag_unused_command_line_argument=no
14013 fi
14014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14015 fi
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14017 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14019 CFLAGS="$xorg_testset_save_CFLAGS"
14020 fi
14021
14022 found="no"
14023
14024 if test $found = "no" ; then
14025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14027 fi
14028
14029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14031 fi
14032
14033 CFLAGS="$CFLAGS -Wall"
14034
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14036 printf %s "checking if $CC supports -Wall... " >&6; }
14037 cacheid=xorg_cv_cc_flag__Wall
14038 if eval test \${$cacheid+y}
14039 then :
14040 printf %s "(cached) " >&6
14041 else $as_nop
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 int i;
14045 int
14046 main (void)
14047 {
14048
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"
14054 then :
14055 eval $cacheid=yes
14056 else $as_nop
14057 eval $cacheid=no
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14060 conftest$ac_exeext conftest.$ac_ext
14061 fi
14062
14063
14064 CFLAGS="$xorg_testset_save_CFLAGS"
14065
14066 eval supported=\$$cacheid
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14068 printf "%s\n" "$supported" >&6; }
14069 if test "$supported" = "yes" ; then
14070 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14071 found="yes"
14072 fi
14073 fi
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089 xorg_testset_save_CFLAGS="$CFLAGS"
14090
14091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14094 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14095 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14096 then :
14097 printf %s "(cached) " >&6
14098 else $as_nop
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 int i;
14102 _ACEOF
14103 if ac_fn_c_try_compile "$LINENO"
14104 then :
14105 xorg_cv_cc_flag_unknown_warning_option=yes
14106 else $as_nop
14107 xorg_cv_cc_flag_unknown_warning_option=no
14108 fi
14109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14110 fi
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14114 CFLAGS="$xorg_testset_save_CFLAGS"
14115 fi
14116
14117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120 fi
14121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14125 then :
14126 printf %s "(cached) " >&6
14127 else $as_nop
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130 int i;
14131 _ACEOF
14132 if ac_fn_c_try_compile "$LINENO"
14133 then :
14134 xorg_cv_cc_flag_unused_command_line_argument=yes
14135 else $as_nop
14136 xorg_cv_cc_flag_unused_command_line_argument=no
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14139 fi
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14143 CFLAGS="$xorg_testset_save_CFLAGS"
14144 fi
14145
14146 found="no"
14147
14148 if test $found = "no" ; then
14149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151 fi
14152
14153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14155 fi
14156
14157 CFLAGS="$CFLAGS -Wpointer-arith"
14158
14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14160 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14161 cacheid=xorg_cv_cc_flag__Wpointer_arith
14162 if eval test \${$cacheid+y}
14163 then :
14164 printf %s "(cached) " >&6
14165 else $as_nop
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14168 int i;
14169 int
14170 main (void)
14171 {
14172
14173 ;
14174 return 0;
14175 }
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"
14178 then :
14179 eval $cacheid=yes
14180 else $as_nop
14181 eval $cacheid=no
14182 fi
14183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14184 conftest$ac_exeext conftest.$ac_ext
14185 fi
14186
14187
14188 CFLAGS="$xorg_testset_save_CFLAGS"
14189
14190 eval supported=\$$cacheid
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14192 printf "%s\n" "$supported" >&6; }
14193 if test "$supported" = "yes" ; then
14194 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14195 found="yes"
14196 fi
14197 fi
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213 xorg_testset_save_CFLAGS="$CFLAGS"
14214
14215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14219 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14220 then :
14221 printf %s "(cached) " >&6
14222 else $as_nop
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 int i;
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"
14228 then :
14229 xorg_cv_cc_flag_unknown_warning_option=yes
14230 else $as_nop
14231 xorg_cv_cc_flag_unknown_warning_option=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14234 fi
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14236 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14238 CFLAGS="$xorg_testset_save_CFLAGS"
14239 fi
14240
14241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14244 fi
14245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14247 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14248 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14249 then :
14250 printf %s "(cached) " >&6
14251 else $as_nop
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254 int i;
14255 _ACEOF
14256 if ac_fn_c_try_compile "$LINENO"
14257 then :
14258 xorg_cv_cc_flag_unused_command_line_argument=yes
14259 else $as_nop
14260 xorg_cv_cc_flag_unused_command_line_argument=no
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14263 fi
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14265 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14267 CFLAGS="$xorg_testset_save_CFLAGS"
14268 fi
14269
14270 found="no"
14271
14272 if test $found = "no" ; then
14273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14275 fi
14276
14277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14279 fi
14280
14281 CFLAGS="$CFLAGS -Wmissing-declarations"
14282
14283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14284 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14285 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14286 if eval test \${$cacheid+y}
14287 then :
14288 printf %s "(cached) " >&6
14289 else $as_nop
14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h. */
14292 int i;
14293 int
14294 main (void)
14295 {
14296
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"
14302 then :
14303 eval $cacheid=yes
14304 else $as_nop
14305 eval $cacheid=no
14306 fi
14307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14308 conftest$ac_exeext conftest.$ac_ext
14309 fi
14310
14311
14312 CFLAGS="$xorg_testset_save_CFLAGS"
14313
14314 eval supported=\$$cacheid
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14316 printf "%s\n" "$supported" >&6; }
14317 if test "$supported" = "yes" ; then
14318 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14319 found="yes"
14320 fi
14321 fi
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337 xorg_testset_save_CFLAGS="$CFLAGS"
14338
14339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14342 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14343 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14344 then :
14345 printf %s "(cached) " >&6
14346 else $as_nop
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 int i;
14350 _ACEOF
14351 if ac_fn_c_try_compile "$LINENO"
14352 then :
14353 xorg_cv_cc_flag_unknown_warning_option=yes
14354 else $as_nop
14355 xorg_cv_cc_flag_unknown_warning_option=no
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14358 fi
14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14362 CFLAGS="$xorg_testset_save_CFLAGS"
14363 fi
14364
14365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14368 fi
14369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14373 then :
14374 printf %s "(cached) " >&6
14375 else $as_nop
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 int i;
14379 _ACEOF
14380 if ac_fn_c_try_compile "$LINENO"
14381 then :
14382 xorg_cv_cc_flag_unused_command_line_argument=yes
14383 else $as_nop
14384 xorg_cv_cc_flag_unused_command_line_argument=no
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14387 fi
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14389 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14391 CFLAGS="$xorg_testset_save_CFLAGS"
14392 fi
14393
14394 found="no"
14395
14396 if test $found = "no" ; then
14397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14399 fi
14400
14401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14403 fi
14404
14405 CFLAGS="$CFLAGS -Wformat=2"
14406
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14408 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14409 cacheid=xorg_cv_cc_flag__Wformat_2
14410 if eval test \${$cacheid+y}
14411 then :
14412 printf %s "(cached) " >&6
14413 else $as_nop
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416 int i;
14417 int
14418 main (void)
14419 {
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_link "$LINENO"
14426 then :
14427 eval $cacheid=yes
14428 else $as_nop
14429 eval $cacheid=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14432 conftest$ac_exeext conftest.$ac_ext
14433 fi
14434
14435
14436 CFLAGS="$xorg_testset_save_CFLAGS"
14437
14438 eval supported=\$$cacheid
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14440 printf "%s\n" "$supported" >&6; }
14441 if test "$supported" = "yes" ; then
14442 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14443 found="yes"
14444 fi
14445 fi
14446
14447 if test $found = "no" ; then
14448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14450 fi
14451
14452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14454 fi
14455
14456 CFLAGS="$CFLAGS -Wformat"
14457
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14459 printf %s "checking if $CC supports -Wformat... " >&6; }
14460 cacheid=xorg_cv_cc_flag__Wformat
14461 if eval test \${$cacheid+y}
14462 then :
14463 printf %s "(cached) " >&6
14464 else $as_nop
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467 int i;
14468 int
14469 main (void)
14470 {
14471
14472 ;
14473 return 0;
14474 }
14475 _ACEOF
14476 if ac_fn_c_try_link "$LINENO"
14477 then :
14478 eval $cacheid=yes
14479 else $as_nop
14480 eval $cacheid=no
14481 fi
14482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14483 conftest$ac_exeext conftest.$ac_ext
14484 fi
14485
14486
14487 CFLAGS="$xorg_testset_save_CFLAGS"
14488
14489 eval supported=\$$cacheid
14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14491 printf "%s\n" "$supported" >&6; }
14492 if test "$supported" = "yes" ; then
14493 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14494 found="yes"
14495 fi
14496 fi
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514 xorg_testset_save_CFLAGS="$CFLAGS"
14515
14516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14519 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14520 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14521 then :
14522 printf %s "(cached) " >&6
14523 else $as_nop
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 int i;
14527 _ACEOF
14528 if ac_fn_c_try_compile "$LINENO"
14529 then :
14530 xorg_cv_cc_flag_unknown_warning_option=yes
14531 else $as_nop
14532 xorg_cv_cc_flag_unknown_warning_option=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14535 fi
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14537 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14539 CFLAGS="$xorg_testset_save_CFLAGS"
14540 fi
14541
14542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14545 fi
14546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14548 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14549 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14550 then :
14551 printf %s "(cached) " >&6
14552 else $as_nop
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14555 int i;
14556 _ACEOF
14557 if ac_fn_c_try_compile "$LINENO"
14558 then :
14559 xorg_cv_cc_flag_unused_command_line_argument=yes
14560 else $as_nop
14561 xorg_cv_cc_flag_unused_command_line_argument=no
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14564 fi
14565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14566 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14568 CFLAGS="$xorg_testset_save_CFLAGS"
14569 fi
14570
14571 found="no"
14572
14573 if test $found = "no" ; then
14574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576 fi
14577
14578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14580 fi
14581
14582 CFLAGS="$CFLAGS -Wstrict-prototypes"
14583
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14585 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14586 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14587 if eval test \${$cacheid+y}
14588 then :
14589 printf %s "(cached) " >&6
14590 else $as_nop
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 int i;
14594 int
14595 main (void)
14596 {
14597
14598 ;
14599 return 0;
14600 }
14601 _ACEOF
14602 if ac_fn_c_try_link "$LINENO"
14603 then :
14604 eval $cacheid=yes
14605 else $as_nop
14606 eval $cacheid=no
14607 fi
14608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14609 conftest$ac_exeext conftest.$ac_ext
14610 fi
14611
14612
14613 CFLAGS="$xorg_testset_save_CFLAGS"
14614
14615 eval supported=\$$cacheid
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14617 printf "%s\n" "$supported" >&6; }
14618 if test "$supported" = "yes" ; then
14619 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14620 found="yes"
14621 fi
14622 fi
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638 xorg_testset_save_CFLAGS="$CFLAGS"
14639
14640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14643 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14644 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14645 then :
14646 printf %s "(cached) " >&6
14647 else $as_nop
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650 int i;
14651 _ACEOF
14652 if ac_fn_c_try_compile "$LINENO"
14653 then :
14654 xorg_cv_cc_flag_unknown_warning_option=yes
14655 else $as_nop
14656 xorg_cv_cc_flag_unknown_warning_option=no
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14659 fi
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14661 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14663 CFLAGS="$xorg_testset_save_CFLAGS"
14664 fi
14665
14666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14669 fi
14670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14672 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14673 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14674 then :
14675 printf %s "(cached) " >&6
14676 else $as_nop
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679 int i;
14680 _ACEOF
14681 if ac_fn_c_try_compile "$LINENO"
14682 then :
14683 xorg_cv_cc_flag_unused_command_line_argument=yes
14684 else $as_nop
14685 xorg_cv_cc_flag_unused_command_line_argument=no
14686 fi
14687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14688 fi
14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14690 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14692 CFLAGS="$xorg_testset_save_CFLAGS"
14693 fi
14694
14695 found="no"
14696
14697 if test $found = "no" ; then
14698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700 fi
14701
14702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14704 fi
14705
14706 CFLAGS="$CFLAGS -Wmissing-prototypes"
14707
14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14709 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14710 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14711 if eval test \${$cacheid+y}
14712 then :
14713 printf %s "(cached) " >&6
14714 else $as_nop
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14717 int i;
14718 int
14719 main (void)
14720 {
14721
14722 ;
14723 return 0;
14724 }
14725 _ACEOF
14726 if ac_fn_c_try_link "$LINENO"
14727 then :
14728 eval $cacheid=yes
14729 else $as_nop
14730 eval $cacheid=no
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14733 conftest$ac_exeext conftest.$ac_ext
14734 fi
14735
14736
14737 CFLAGS="$xorg_testset_save_CFLAGS"
14738
14739 eval supported=\$$cacheid
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14741 printf "%s\n" "$supported" >&6; }
14742 if test "$supported" = "yes" ; then
14743 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14744 found="yes"
14745 fi
14746 fi
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762 xorg_testset_save_CFLAGS="$CFLAGS"
14763
14764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14767 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14768 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14769 then :
14770 printf %s "(cached) " >&6
14771 else $as_nop
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 int i;
14775 _ACEOF
14776 if ac_fn_c_try_compile "$LINENO"
14777 then :
14778 xorg_cv_cc_flag_unknown_warning_option=yes
14779 else $as_nop
14780 xorg_cv_cc_flag_unknown_warning_option=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14783 fi
14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14785 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14787 CFLAGS="$xorg_testset_save_CFLAGS"
14788 fi
14789
14790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14793 fi
14794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14796 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14797 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14798 then :
14799 printf %s "(cached) " >&6
14800 else $as_nop
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14803 int i;
14804 _ACEOF
14805 if ac_fn_c_try_compile "$LINENO"
14806 then :
14807 xorg_cv_cc_flag_unused_command_line_argument=yes
14808 else $as_nop
14809 xorg_cv_cc_flag_unused_command_line_argument=no
14810 fi
14811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14812 fi
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14814 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14816 CFLAGS="$xorg_testset_save_CFLAGS"
14817 fi
14818
14819 found="no"
14820
14821 if test $found = "no" ; then
14822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14824 fi
14825
14826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14828 fi
14829
14830 CFLAGS="$CFLAGS -Wnested-externs"
14831
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14833 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14834 cacheid=xorg_cv_cc_flag__Wnested_externs
14835 if eval test \${$cacheid+y}
14836 then :
14837 printf %s "(cached) " >&6
14838 else $as_nop
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 int i;
14842 int
14843 main (void)
14844 {
14845
14846 ;
14847 return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"
14851 then :
14852 eval $cacheid=yes
14853 else $as_nop
14854 eval $cacheid=no
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14857 conftest$ac_exeext conftest.$ac_ext
14858 fi
14859
14860
14861 CFLAGS="$xorg_testset_save_CFLAGS"
14862
14863 eval supported=\$$cacheid
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14865 printf "%s\n" "$supported" >&6; }
14866 if test "$supported" = "yes" ; then
14867 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14868 found="yes"
14869 fi
14870 fi
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886 xorg_testset_save_CFLAGS="$CFLAGS"
14887
14888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14891 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14892 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14893 then :
14894 printf %s "(cached) " >&6
14895 else $as_nop
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14898 int i;
14899 _ACEOF
14900 if ac_fn_c_try_compile "$LINENO"
14901 then :
14902 xorg_cv_cc_flag_unknown_warning_option=yes
14903 else $as_nop
14904 xorg_cv_cc_flag_unknown_warning_option=no
14905 fi
14906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14907 fi
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14909 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14911 CFLAGS="$xorg_testset_save_CFLAGS"
14912 fi
14913
14914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14917 fi
14918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14922 then :
14923 printf %s "(cached) " >&6
14924 else $as_nop
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 int i;
14928 _ACEOF
14929 if ac_fn_c_try_compile "$LINENO"
14930 then :
14931 xorg_cv_cc_flag_unused_command_line_argument=yes
14932 else $as_nop
14933 xorg_cv_cc_flag_unused_command_line_argument=no
14934 fi
14935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14936 fi
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14940 CFLAGS="$xorg_testset_save_CFLAGS"
14941 fi
14942
14943 found="no"
14944
14945 if test $found = "no" ; then
14946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948 fi
14949
14950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14952 fi
14953
14954 CFLAGS="$CFLAGS -Wbad-function-cast"
14955
14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14957 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14958 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14959 if eval test \${$cacheid+y}
14960 then :
14961 printf %s "(cached) " >&6
14962 else $as_nop
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14965 int i;
14966 int
14967 main (void)
14968 {
14969
14970 ;
14971 return 0;
14972 }
14973 _ACEOF
14974 if ac_fn_c_try_link "$LINENO"
14975 then :
14976 eval $cacheid=yes
14977 else $as_nop
14978 eval $cacheid=no
14979 fi
14980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14981 conftest$ac_exeext conftest.$ac_ext
14982 fi
14983
14984
14985 CFLAGS="$xorg_testset_save_CFLAGS"
14986
14987 eval supported=\$$cacheid
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14989 printf "%s\n" "$supported" >&6; }
14990 if test "$supported" = "yes" ; then
14991 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14992 found="yes"
14993 fi
14994 fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010 xorg_testset_save_CFLAGS="$CFLAGS"
15011
15012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15015 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15016 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15017 then :
15018 printf %s "(cached) " >&6
15019 else $as_nop
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 int i;
15023 _ACEOF
15024 if ac_fn_c_try_compile "$LINENO"
15025 then :
15026 xorg_cv_cc_flag_unknown_warning_option=yes
15027 else $as_nop
15028 xorg_cv_cc_flag_unknown_warning_option=no
15029 fi
15030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15031 fi
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15035 CFLAGS="$xorg_testset_save_CFLAGS"
15036 fi
15037
15038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15041 fi
15042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15046 then :
15047 printf %s "(cached) " >&6
15048 else $as_nop
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15051 int i;
15052 _ACEOF
15053 if ac_fn_c_try_compile "$LINENO"
15054 then :
15055 xorg_cv_cc_flag_unused_command_line_argument=yes
15056 else $as_nop
15057 xorg_cv_cc_flag_unused_command_line_argument=no
15058 fi
15059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15060 fi
15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15062 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15064 CFLAGS="$xorg_testset_save_CFLAGS"
15065 fi
15066
15067 found="no"
15068
15069 if test $found = "no" ; then
15070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072 fi
15073
15074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15076 fi
15077
15078 CFLAGS="$CFLAGS -Wold-style-definition"
15079
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15081 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15082 cacheid=xorg_cv_cc_flag__Wold_style_definition
15083 if eval test \${$cacheid+y}
15084 then :
15085 printf %s "(cached) " >&6
15086 else $as_nop
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 int i;
15090 int
15091 main (void)
15092 {
15093
15094 ;
15095 return 0;
15096 }
15097 _ACEOF
15098 if ac_fn_c_try_link "$LINENO"
15099 then :
15100 eval $cacheid=yes
15101 else $as_nop
15102 eval $cacheid=no
15103 fi
15104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15105 conftest$ac_exeext conftest.$ac_ext
15106 fi
15107
15108
15109 CFLAGS="$xorg_testset_save_CFLAGS"
15110
15111 eval supported=\$$cacheid
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15113 printf "%s\n" "$supported" >&6; }
15114 if test "$supported" = "yes" ; then
15115 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15116 found="yes"
15117 fi
15118 fi
15119
15120 if test $found = "no" ; then
15121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15123 fi
15124
15125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15127 fi
15128
15129 CFLAGS="$CFLAGS -fd"
15130
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15132 printf %s "checking if $CC supports -fd... " >&6; }
15133 cacheid=xorg_cv_cc_flag__fd
15134 if eval test \${$cacheid+y}
15135 then :
15136 printf %s "(cached) " >&6
15137 else $as_nop
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 int i;
15141 int
15142 main (void)
15143 {
15144
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"
15150 then :
15151 eval $cacheid=yes
15152 else $as_nop
15153 eval $cacheid=no
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15156 conftest$ac_exeext conftest.$ac_ext
15157 fi
15158
15159
15160 CFLAGS="$xorg_testset_save_CFLAGS"
15161
15162 eval supported=\$$cacheid
15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15164 printf "%s\n" "$supported" >&6; }
15165 if test "$supported" = "yes" ; then
15166 BASE_CFLAGS="$BASE_CFLAGS -fd"
15167 found="yes"
15168 fi
15169 fi
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185 xorg_testset_save_CFLAGS="$CFLAGS"
15186
15187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15190 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15191 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15192 then :
15193 printf %s "(cached) " >&6
15194 else $as_nop
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 int i;
15198 _ACEOF
15199 if ac_fn_c_try_compile "$LINENO"
15200 then :
15201 xorg_cv_cc_flag_unknown_warning_option=yes
15202 else $as_nop
15203 xorg_cv_cc_flag_unknown_warning_option=no
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15206 fi
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15210 CFLAGS="$xorg_testset_save_CFLAGS"
15211 fi
15212
15213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15216 fi
15217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15221 then :
15222 printf %s "(cached) " >&6
15223 else $as_nop
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15226 int i;
15227 _ACEOF
15228 if ac_fn_c_try_compile "$LINENO"
15229 then :
15230 xorg_cv_cc_flag_unused_command_line_argument=yes
15231 else $as_nop
15232 xorg_cv_cc_flag_unused_command_line_argument=no
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15235 fi
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15239 CFLAGS="$xorg_testset_save_CFLAGS"
15240 fi
15241
15242 found="no"
15243
15244 if test $found = "no" ; then
15245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247 fi
15248
15249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15251 fi
15252
15253 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15254
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
15256 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
15257 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
15258 if eval test \${$cacheid+y}
15259 then :
15260 printf %s "(cached) " >&6
15261 else $as_nop
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264 int i;
15265 int
15266 main (void)
15267 {
15268
15269 ;
15270 return 0;
15271 }
15272 _ACEOF
15273 if ac_fn_c_try_link "$LINENO"
15274 then :
15275 eval $cacheid=yes
15276 else $as_nop
15277 eval $cacheid=no
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15280 conftest$ac_exeext conftest.$ac_ext
15281 fi
15282
15283
15284 CFLAGS="$xorg_testset_save_CFLAGS"
15285
15286 eval supported=\$$cacheid
15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15288 printf "%s\n" "$supported" >&6; }
15289 if test "$supported" = "yes" ; then
15290 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15291 found="yes"
15292 fi
15293 fi
15294
15295
15296
15297
15298
15299 # This chunk adds additional warnings that could catch undesired effects.
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313 xorg_testset_save_CFLAGS="$CFLAGS"
15314
15315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15320 then :
15321 printf %s "(cached) " >&6
15322 else $as_nop
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15325 int i;
15326 _ACEOF
15327 if ac_fn_c_try_compile "$LINENO"
15328 then :
15329 xorg_cv_cc_flag_unknown_warning_option=yes
15330 else $as_nop
15331 xorg_cv_cc_flag_unknown_warning_option=no
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15334 fi
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15338 CFLAGS="$xorg_testset_save_CFLAGS"
15339 fi
15340
15341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15344 fi
15345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15349 then :
15350 printf %s "(cached) " >&6
15351 else $as_nop
15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15353 /* end confdefs.h. */
15354 int i;
15355 _ACEOF
15356 if ac_fn_c_try_compile "$LINENO"
15357 then :
15358 xorg_cv_cc_flag_unused_command_line_argument=yes
15359 else $as_nop
15360 xorg_cv_cc_flag_unused_command_line_argument=no
15361 fi
15362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15363 fi
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15365 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15367 CFLAGS="$xorg_testset_save_CFLAGS"
15368 fi
15369
15370 found="no"
15371
15372 if test $found = "no" ; then
15373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15375 fi
15376
15377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15379 fi
15380
15381 CFLAGS="$CFLAGS -Wunused"
15382
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15384 printf %s "checking if $CC supports -Wunused... " >&6; }
15385 cacheid=xorg_cv_cc_flag__Wunused
15386 if eval test \${$cacheid+y}
15387 then :
15388 printf %s "(cached) " >&6
15389 else $as_nop
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392 int i;
15393 int
15394 main (void)
15395 {
15396
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"
15402 then :
15403 eval $cacheid=yes
15404 else $as_nop
15405 eval $cacheid=no
15406 fi
15407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15408 conftest$ac_exeext conftest.$ac_ext
15409 fi
15410
15411
15412 CFLAGS="$xorg_testset_save_CFLAGS"
15413
15414 eval supported=\$$cacheid
15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15416 printf "%s\n" "$supported" >&6; }
15417 if test "$supported" = "yes" ; then
15418 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15419 found="yes"
15420 fi
15421 fi
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437 xorg_testset_save_CFLAGS="$CFLAGS"
15438
15439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15444 then :
15445 printf %s "(cached) " >&6
15446 else $as_nop
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 int i;
15450 _ACEOF
15451 if ac_fn_c_try_compile "$LINENO"
15452 then :
15453 xorg_cv_cc_flag_unknown_warning_option=yes
15454 else $as_nop
15455 xorg_cv_cc_flag_unknown_warning_option=no
15456 fi
15457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15458 fi
15459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15460 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15462 CFLAGS="$xorg_testset_save_CFLAGS"
15463 fi
15464
15465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15468 fi
15469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15473 then :
15474 printf %s "(cached) " >&6
15475 else $as_nop
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15478 int i;
15479 _ACEOF
15480 if ac_fn_c_try_compile "$LINENO"
15481 then :
15482 xorg_cv_cc_flag_unused_command_line_argument=yes
15483 else $as_nop
15484 xorg_cv_cc_flag_unused_command_line_argument=no
15485 fi
15486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15487 fi
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15489 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15491 CFLAGS="$xorg_testset_save_CFLAGS"
15492 fi
15493
15494 found="no"
15495
15496 if test $found = "no" ; then
15497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499 fi
15500
15501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15503 fi
15504
15505 CFLAGS="$CFLAGS -Wuninitialized"
15506
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15508 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15509 cacheid=xorg_cv_cc_flag__Wuninitialized
15510 if eval test \${$cacheid+y}
15511 then :
15512 printf %s "(cached) " >&6
15513 else $as_nop
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 int i;
15517 int
15518 main (void)
15519 {
15520
15521 ;
15522 return 0;
15523 }
15524 _ACEOF
15525 if ac_fn_c_try_link "$LINENO"
15526 then :
15527 eval $cacheid=yes
15528 else $as_nop
15529 eval $cacheid=no
15530 fi
15531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15532 conftest$ac_exeext conftest.$ac_ext
15533 fi
15534
15535
15536 CFLAGS="$xorg_testset_save_CFLAGS"
15537
15538 eval supported=\$$cacheid
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15540 printf "%s\n" "$supported" >&6; }
15541 if test "$supported" = "yes" ; then
15542 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15543 found="yes"
15544 fi
15545 fi
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561 xorg_testset_save_CFLAGS="$CFLAGS"
15562
15563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15567 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15568 then :
15569 printf %s "(cached) " >&6
15570 else $as_nop
15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572 /* end confdefs.h. */
15573 int i;
15574 _ACEOF
15575 if ac_fn_c_try_compile "$LINENO"
15576 then :
15577 xorg_cv_cc_flag_unknown_warning_option=yes
15578 else $as_nop
15579 xorg_cv_cc_flag_unknown_warning_option=no
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15582 fi
15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15584 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15586 CFLAGS="$xorg_testset_save_CFLAGS"
15587 fi
15588
15589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15592 fi
15593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15595 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15596 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15597 then :
15598 printf %s "(cached) " >&6
15599 else $as_nop
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 int i;
15603 _ACEOF
15604 if ac_fn_c_try_compile "$LINENO"
15605 then :
15606 xorg_cv_cc_flag_unused_command_line_argument=yes
15607 else $as_nop
15608 xorg_cv_cc_flag_unused_command_line_argument=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15611 fi
15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15613 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15615 CFLAGS="$xorg_testset_save_CFLAGS"
15616 fi
15617
15618 found="no"
15619
15620 if test $found = "no" ; then
15621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15623 fi
15624
15625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15627 fi
15628
15629 CFLAGS="$CFLAGS -Wshadow"
15630
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15632 printf %s "checking if $CC supports -Wshadow... " >&6; }
15633 cacheid=xorg_cv_cc_flag__Wshadow
15634 if eval test \${$cacheid+y}
15635 then :
15636 printf %s "(cached) " >&6
15637 else $as_nop
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 int i;
15641 int
15642 main (void)
15643 {
15644
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"
15650 then :
15651 eval $cacheid=yes
15652 else $as_nop
15653 eval $cacheid=no
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15656 conftest$ac_exeext conftest.$ac_ext
15657 fi
15658
15659
15660 CFLAGS="$xorg_testset_save_CFLAGS"
15661
15662 eval supported=\$$cacheid
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15664 printf "%s\n" "$supported" >&6; }
15665 if test "$supported" = "yes" ; then
15666 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15667 found="yes"
15668 fi
15669 fi
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685 xorg_testset_save_CFLAGS="$CFLAGS"
15686
15687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15691 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15692 then :
15693 printf %s "(cached) " >&6
15694 else $as_nop
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 int i;
15698 _ACEOF
15699 if ac_fn_c_try_compile "$LINENO"
15700 then :
15701 xorg_cv_cc_flag_unknown_warning_option=yes
15702 else $as_nop
15703 xorg_cv_cc_flag_unknown_warning_option=no
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15706 fi
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15710 CFLAGS="$xorg_testset_save_CFLAGS"
15711 fi
15712
15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15716 fi
15717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15721 then :
15722 printf %s "(cached) " >&6
15723 else $as_nop
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 int i;
15727 _ACEOF
15728 if ac_fn_c_try_compile "$LINENO"
15729 then :
15730 xorg_cv_cc_flag_unused_command_line_argument=yes
15731 else $as_nop
15732 xorg_cv_cc_flag_unused_command_line_argument=no
15733 fi
15734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15735 fi
15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15737 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15739 CFLAGS="$xorg_testset_save_CFLAGS"
15740 fi
15741
15742 found="no"
15743
15744 if test $found = "no" ; then
15745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15747 fi
15748
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751 fi
15752
15753 CFLAGS="$CFLAGS -Wmissing-noreturn"
15754
15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15756 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15757 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15758 if eval test \${$cacheid+y}
15759 then :
15760 printf %s "(cached) " >&6
15761 else $as_nop
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 int i;
15765 int
15766 main (void)
15767 {
15768
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 if ac_fn_c_try_link "$LINENO"
15774 then :
15775 eval $cacheid=yes
15776 else $as_nop
15777 eval $cacheid=no
15778 fi
15779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15780 conftest$ac_exeext conftest.$ac_ext
15781 fi
15782
15783
15784 CFLAGS="$xorg_testset_save_CFLAGS"
15785
15786 eval supported=\$$cacheid
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15788 printf "%s\n" "$supported" >&6; }
15789 if test "$supported" = "yes" ; then
15790 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15791 found="yes"
15792 fi
15793 fi
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809 xorg_testset_save_CFLAGS="$CFLAGS"
15810
15811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15814 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15815 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15816 then :
15817 printf %s "(cached) " >&6
15818 else $as_nop
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 int i;
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"
15824 then :
15825 xorg_cv_cc_flag_unknown_warning_option=yes
15826 else $as_nop
15827 xorg_cv_cc_flag_unknown_warning_option=no
15828 fi
15829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15830 fi
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15832 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15834 CFLAGS="$xorg_testset_save_CFLAGS"
15835 fi
15836
15837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15840 fi
15841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15843 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15844 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15845 then :
15846 printf %s "(cached) " >&6
15847 else $as_nop
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 int i;
15851 _ACEOF
15852 if ac_fn_c_try_compile "$LINENO"
15853 then :
15854 xorg_cv_cc_flag_unused_command_line_argument=yes
15855 else $as_nop
15856 xorg_cv_cc_flag_unused_command_line_argument=no
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15859 fi
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15861 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15863 CFLAGS="$xorg_testset_save_CFLAGS"
15864 fi
15865
15866 found="no"
15867
15868 if test $found = "no" ; then
15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15871 fi
15872
15873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15875 fi
15876
15877 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15878
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15880 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15881 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15882 if eval test \${$cacheid+y}
15883 then :
15884 printf %s "(cached) " >&6
15885 else $as_nop
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 int i;
15889 int
15890 main (void)
15891 {
15892
15893 ;
15894 return 0;
15895 }
15896 _ACEOF
15897 if ac_fn_c_try_link "$LINENO"
15898 then :
15899 eval $cacheid=yes
15900 else $as_nop
15901 eval $cacheid=no
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15904 conftest$ac_exeext conftest.$ac_ext
15905 fi
15906
15907
15908 CFLAGS="$xorg_testset_save_CFLAGS"
15909
15910 eval supported=\$$cacheid
15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15912 printf "%s\n" "$supported" >&6; }
15913 if test "$supported" = "yes" ; then
15914 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15915 found="yes"
15916 fi
15917 fi
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933 xorg_testset_save_CFLAGS="$CFLAGS"
15934
15935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15938 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15939 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15940 then :
15941 printf %s "(cached) " >&6
15942 else $as_nop
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 int i;
15946 _ACEOF
15947 if ac_fn_c_try_compile "$LINENO"
15948 then :
15949 xorg_cv_cc_flag_unknown_warning_option=yes
15950 else $as_nop
15951 xorg_cv_cc_flag_unknown_warning_option=no
15952 fi
15953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15954 fi
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15956 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15958 CFLAGS="$xorg_testset_save_CFLAGS"
15959 fi
15960
15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15964 fi
15965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15969 then :
15970 printf %s "(cached) " >&6
15971 else $as_nop
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 int i;
15975 _ACEOF
15976 if ac_fn_c_try_compile "$LINENO"
15977 then :
15978 xorg_cv_cc_flag_unused_command_line_argument=yes
15979 else $as_nop
15980 xorg_cv_cc_flag_unused_command_line_argument=no
15981 fi
15982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15983 fi
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15987 CFLAGS="$xorg_testset_save_CFLAGS"
15988 fi
15989
15990 found="no"
15991
15992 if test $found = "no" ; then
15993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15995 fi
15996
15997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15999 fi
16000
16001 CFLAGS="$CFLAGS -Wredundant-decls"
16002
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16004 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16005 cacheid=xorg_cv_cc_flag__Wredundant_decls
16006 if eval test \${$cacheid+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else $as_nop
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16012 int i;
16013 int
16014 main (void)
16015 {
16016
16017 ;
16018 return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_link "$LINENO"
16022 then :
16023 eval $cacheid=yes
16024 else $as_nop
16025 eval $cacheid=no
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16028 conftest$ac_exeext conftest.$ac_ext
16029 fi
16030
16031
16032 CFLAGS="$xorg_testset_save_CFLAGS"
16033
16034 eval supported=\$$cacheid
16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16036 printf "%s\n" "$supported" >&6; }
16037 if test "$supported" = "yes" ; then
16038 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16039 found="yes"
16040 fi
16041 fi
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057 xorg_testset_save_CFLAGS="$CFLAGS"
16058
16059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16062 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16063 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16064 then :
16065 printf %s "(cached) " >&6
16066 else $as_nop
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 int i;
16070 _ACEOF
16071 if ac_fn_c_try_compile "$LINENO"
16072 then :
16073 xorg_cv_cc_flag_unknown_warning_option=yes
16074 else $as_nop
16075 xorg_cv_cc_flag_unknown_warning_option=no
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16078 fi
16079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16080 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16082 CFLAGS="$xorg_testset_save_CFLAGS"
16083 fi
16084
16085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16088 fi
16089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16091 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16092 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16093 then :
16094 printf %s "(cached) " >&6
16095 else $as_nop
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h. */
16098 int i;
16099 _ACEOF
16100 if ac_fn_c_try_compile "$LINENO"
16101 then :
16102 xorg_cv_cc_flag_unused_command_line_argument=yes
16103 else $as_nop
16104 xorg_cv_cc_flag_unused_command_line_argument=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16107 fi
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16109 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16111 CFLAGS="$xorg_testset_save_CFLAGS"
16112 fi
16113
16114 found="no"
16115
16116 if test $found = "no" ; then
16117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119 fi
16120
16121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16123 fi
16124
16125 CFLAGS="$CFLAGS -Wlogical-op"
16126
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16128 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16129 cacheid=xorg_cv_cc_flag__Wlogical_op
16130 if eval test \${$cacheid+y}
16131 then :
16132 printf %s "(cached) " >&6
16133 else $as_nop
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136 int i;
16137 int
16138 main (void)
16139 {
16140
16141 ;
16142 return 0;
16143 }
16144 _ACEOF
16145 if ac_fn_c_try_link "$LINENO"
16146 then :
16147 eval $cacheid=yes
16148 else $as_nop
16149 eval $cacheid=no
16150 fi
16151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16152 conftest$ac_exeext conftest.$ac_ext
16153 fi
16154
16155
16156 CFLAGS="$xorg_testset_save_CFLAGS"
16157
16158 eval supported=\$$cacheid
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16160 printf "%s\n" "$supported" >&6; }
16161 if test "$supported" = "yes" ; then
16162 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16163 found="yes"
16164 fi
16165 fi
16166
16167
16168
16169 # These are currently disabled because they are noisy. They will be enabled
16170 # in the future once the codebase is sufficiently modernized to silence
16171 # them. For now, I don't want them to drown out the other warnings.
16172 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16173 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16174 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16175
16176 # Turn some warnings into errors, so we don't accidently get successful builds
16177 # when there are problems that should be fixed.
16178
16179 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193 xorg_testset_save_CFLAGS="$CFLAGS"
16194
16195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16198 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16199 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16200 then :
16201 printf %s "(cached) " >&6
16202 else $as_nop
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 int i;
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"
16208 then :
16209 xorg_cv_cc_flag_unknown_warning_option=yes
16210 else $as_nop
16211 xorg_cv_cc_flag_unknown_warning_option=no
16212 fi
16213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16214 fi
16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16216 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16218 CFLAGS="$xorg_testset_save_CFLAGS"
16219 fi
16220
16221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16224 fi
16225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16227 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16228 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16229 then :
16230 printf %s "(cached) " >&6
16231 else $as_nop
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16234 int i;
16235 _ACEOF
16236 if ac_fn_c_try_compile "$LINENO"
16237 then :
16238 xorg_cv_cc_flag_unused_command_line_argument=yes
16239 else $as_nop
16240 xorg_cv_cc_flag_unused_command_line_argument=no
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16243 fi
16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16245 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16247 CFLAGS="$xorg_testset_save_CFLAGS"
16248 fi
16249
16250 found="no"
16251
16252 if test $found = "no" ; then
16253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255 fi
16256
16257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16259 fi
16260
16261 CFLAGS="$CFLAGS -Werror=implicit"
16262
16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16264 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16265 cacheid=xorg_cv_cc_flag__Werror_implicit
16266 if eval test \${$cacheid+y}
16267 then :
16268 printf %s "(cached) " >&6
16269 else $as_nop
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16272 int i;
16273 int
16274 main (void)
16275 {
16276
16277 ;
16278 return 0;
16279 }
16280 _ACEOF
16281 if ac_fn_c_try_link "$LINENO"
16282 then :
16283 eval $cacheid=yes
16284 else $as_nop
16285 eval $cacheid=no
16286 fi
16287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16288 conftest$ac_exeext conftest.$ac_ext
16289 fi
16290
16291
16292 CFLAGS="$xorg_testset_save_CFLAGS"
16293
16294 eval supported=\$$cacheid
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16296 printf "%s\n" "$supported" >&6; }
16297 if test "$supported" = "yes" ; then
16298 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16299 found="yes"
16300 fi
16301 fi
16302
16303 if test $found = "no" ; then
16304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306 fi
16307
16308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16310 fi
16311
16312 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16313
16314 { 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
16315 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16316 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16317 if eval test \${$cacheid+y}
16318 then :
16319 printf %s "(cached) " >&6
16320 else $as_nop
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16323 int i;
16324 int
16325 main (void)
16326 {
16327
16328 ;
16329 return 0;
16330 }
16331 _ACEOF
16332 if ac_fn_c_try_link "$LINENO"
16333 then :
16334 eval $cacheid=yes
16335 else $as_nop
16336 eval $cacheid=no
16337 fi
16338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16339 conftest$ac_exeext conftest.$ac_ext
16340 fi
16341
16342
16343 CFLAGS="$xorg_testset_save_CFLAGS"
16344
16345 eval supported=\$$cacheid
16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16347 printf "%s\n" "$supported" >&6; }
16348 if test "$supported" = "yes" ; then
16349 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16350 found="yes"
16351 fi
16352 fi
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368 xorg_testset_save_CFLAGS="$CFLAGS"
16369
16370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16374 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16375 then :
16376 printf %s "(cached) " >&6
16377 else $as_nop
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16380 int i;
16381 _ACEOF
16382 if ac_fn_c_try_compile "$LINENO"
16383 then :
16384 xorg_cv_cc_flag_unknown_warning_option=yes
16385 else $as_nop
16386 xorg_cv_cc_flag_unknown_warning_option=no
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16389 fi
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16391 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16393 CFLAGS="$xorg_testset_save_CFLAGS"
16394 fi
16395
16396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16399 fi
16400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16404 then :
16405 printf %s "(cached) " >&6
16406 else $as_nop
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 int i;
16410 _ACEOF
16411 if ac_fn_c_try_compile "$LINENO"
16412 then :
16413 xorg_cv_cc_flag_unused_command_line_argument=yes
16414 else $as_nop
16415 xorg_cv_cc_flag_unused_command_line_argument=no
16416 fi
16417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16418 fi
16419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16422 CFLAGS="$xorg_testset_save_CFLAGS"
16423 fi
16424
16425 found="no"
16426
16427 if test $found = "no" ; then
16428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16430 fi
16431
16432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16434 fi
16435
16436 CFLAGS="$CFLAGS -Werror=nonnull"
16437
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16439 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16440 cacheid=xorg_cv_cc_flag__Werror_nonnull
16441 if eval test \${$cacheid+y}
16442 then :
16443 printf %s "(cached) " >&6
16444 else $as_nop
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16447 int i;
16448 int
16449 main (void)
16450 {
16451
16452 ;
16453 return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_c_try_link "$LINENO"
16457 then :
16458 eval $cacheid=yes
16459 else $as_nop
16460 eval $cacheid=no
16461 fi
16462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16463 conftest$ac_exeext conftest.$ac_ext
16464 fi
16465
16466
16467 CFLAGS="$xorg_testset_save_CFLAGS"
16468
16469 eval supported=\$$cacheid
16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16471 printf "%s\n" "$supported" >&6; }
16472 if test "$supported" = "yes" ; then
16473 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16474 found="yes"
16475 fi
16476 fi
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492 xorg_testset_save_CFLAGS="$CFLAGS"
16493
16494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16498 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16499 then :
16500 printf %s "(cached) " >&6
16501 else $as_nop
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 int i;
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"
16507 then :
16508 xorg_cv_cc_flag_unknown_warning_option=yes
16509 else $as_nop
16510 xorg_cv_cc_flag_unknown_warning_option=no
16511 fi
16512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16513 fi
16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16515 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16517 CFLAGS="$xorg_testset_save_CFLAGS"
16518 fi
16519
16520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16523 fi
16524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16526 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16527 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16528 then :
16529 printf %s "(cached) " >&6
16530 else $as_nop
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 int i;
16534 _ACEOF
16535 if ac_fn_c_try_compile "$LINENO"
16536 then :
16537 xorg_cv_cc_flag_unused_command_line_argument=yes
16538 else $as_nop
16539 xorg_cv_cc_flag_unused_command_line_argument=no
16540 fi
16541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16542 fi
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16546 CFLAGS="$xorg_testset_save_CFLAGS"
16547 fi
16548
16549 found="no"
16550
16551 if test $found = "no" ; then
16552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16554 fi
16555
16556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16558 fi
16559
16560 CFLAGS="$CFLAGS -Werror=init-self"
16561
16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16563 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16564 cacheid=xorg_cv_cc_flag__Werror_init_self
16565 if eval test \${$cacheid+y}
16566 then :
16567 printf %s "(cached) " >&6
16568 else $as_nop
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571 int i;
16572 int
16573 main (void)
16574 {
16575
16576 ;
16577 return 0;
16578 }
16579 _ACEOF
16580 if ac_fn_c_try_link "$LINENO"
16581 then :
16582 eval $cacheid=yes
16583 else $as_nop
16584 eval $cacheid=no
16585 fi
16586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16587 conftest$ac_exeext conftest.$ac_ext
16588 fi
16589
16590
16591 CFLAGS="$xorg_testset_save_CFLAGS"
16592
16593 eval supported=\$$cacheid
16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16595 printf "%s\n" "$supported" >&6; }
16596 if test "$supported" = "yes" ; then
16597 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16598 found="yes"
16599 fi
16600 fi
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616 xorg_testset_save_CFLAGS="$CFLAGS"
16617
16618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16622 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16623 then :
16624 printf %s "(cached) " >&6
16625 else $as_nop
16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16628 int i;
16629 _ACEOF
16630 if ac_fn_c_try_compile "$LINENO"
16631 then :
16632 xorg_cv_cc_flag_unknown_warning_option=yes
16633 else $as_nop
16634 xorg_cv_cc_flag_unknown_warning_option=no
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16637 fi
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16641 CFLAGS="$xorg_testset_save_CFLAGS"
16642 fi
16643
16644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16647 fi
16648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16651 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16652 then :
16653 printf %s "(cached) " >&6
16654 else $as_nop
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657 int i;
16658 _ACEOF
16659 if ac_fn_c_try_compile "$LINENO"
16660 then :
16661 xorg_cv_cc_flag_unused_command_line_argument=yes
16662 else $as_nop
16663 xorg_cv_cc_flag_unused_command_line_argument=no
16664 fi
16665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16666 fi
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16670 CFLAGS="$xorg_testset_save_CFLAGS"
16671 fi
16672
16673 found="no"
16674
16675 if test $found = "no" ; then
16676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16678 fi
16679
16680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16682 fi
16683
16684 CFLAGS="$CFLAGS -Werror=main"
16685
16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16687 printf %s "checking if $CC supports -Werror=main... " >&6; }
16688 cacheid=xorg_cv_cc_flag__Werror_main
16689 if eval test \${$cacheid+y}
16690 then :
16691 printf %s "(cached) " >&6
16692 else $as_nop
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16695 int i;
16696 int
16697 main (void)
16698 {
16699
16700 ;
16701 return 0;
16702 }
16703 _ACEOF
16704 if ac_fn_c_try_link "$LINENO"
16705 then :
16706 eval $cacheid=yes
16707 else $as_nop
16708 eval $cacheid=no
16709 fi
16710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16711 conftest$ac_exeext conftest.$ac_ext
16712 fi
16713
16714
16715 CFLAGS="$xorg_testset_save_CFLAGS"
16716
16717 eval supported=\$$cacheid
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16719 printf "%s\n" "$supported" >&6; }
16720 if test "$supported" = "yes" ; then
16721 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16722 found="yes"
16723 fi
16724 fi
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740 xorg_testset_save_CFLAGS="$CFLAGS"
16741
16742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16747 then :
16748 printf %s "(cached) " >&6
16749 else $as_nop
16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16752 int i;
16753 _ACEOF
16754 if ac_fn_c_try_compile "$LINENO"
16755 then :
16756 xorg_cv_cc_flag_unknown_warning_option=yes
16757 else $as_nop
16758 xorg_cv_cc_flag_unknown_warning_option=no
16759 fi
16760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16761 fi
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16765 CFLAGS="$xorg_testset_save_CFLAGS"
16766 fi
16767
16768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16771 fi
16772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16776 then :
16777 printf %s "(cached) " >&6
16778 else $as_nop
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 int i;
16782 _ACEOF
16783 if ac_fn_c_try_compile "$LINENO"
16784 then :
16785 xorg_cv_cc_flag_unused_command_line_argument=yes
16786 else $as_nop
16787 xorg_cv_cc_flag_unused_command_line_argument=no
16788 fi
16789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16790 fi
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16794 CFLAGS="$xorg_testset_save_CFLAGS"
16795 fi
16796
16797 found="no"
16798
16799 if test $found = "no" ; then
16800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16802 fi
16803
16804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16806 fi
16807
16808 CFLAGS="$CFLAGS -Werror=missing-braces"
16809
16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16811 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16812 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16813 if eval test \${$cacheid+y}
16814 then :
16815 printf %s "(cached) " >&6
16816 else $as_nop
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819 int i;
16820 int
16821 main (void)
16822 {
16823
16824 ;
16825 return 0;
16826 }
16827 _ACEOF
16828 if ac_fn_c_try_link "$LINENO"
16829 then :
16830 eval $cacheid=yes
16831 else $as_nop
16832 eval $cacheid=no
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16835 conftest$ac_exeext conftest.$ac_ext
16836 fi
16837
16838
16839 CFLAGS="$xorg_testset_save_CFLAGS"
16840
16841 eval supported=\$$cacheid
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16843 printf "%s\n" "$supported" >&6; }
16844 if test "$supported" = "yes" ; then
16845 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16846 found="yes"
16847 fi
16848 fi
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864 xorg_testset_save_CFLAGS="$CFLAGS"
16865
16866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16870 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16871 then :
16872 printf %s "(cached) " >&6
16873 else $as_nop
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 int i;
16877 _ACEOF
16878 if ac_fn_c_try_compile "$LINENO"
16879 then :
16880 xorg_cv_cc_flag_unknown_warning_option=yes
16881 else $as_nop
16882 xorg_cv_cc_flag_unknown_warning_option=no
16883 fi
16884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16885 fi
16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16887 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16889 CFLAGS="$xorg_testset_save_CFLAGS"
16890 fi
16891
16892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16895 fi
16896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16900 then :
16901 printf %s "(cached) " >&6
16902 else $as_nop
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16905 int i;
16906 _ACEOF
16907 if ac_fn_c_try_compile "$LINENO"
16908 then :
16909 xorg_cv_cc_flag_unused_command_line_argument=yes
16910 else $as_nop
16911 xorg_cv_cc_flag_unused_command_line_argument=no
16912 fi
16913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16914 fi
16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16918 CFLAGS="$xorg_testset_save_CFLAGS"
16919 fi
16920
16921 found="no"
16922
16923 if test $found = "no" ; then
16924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16926 fi
16927
16928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16930 fi
16931
16932 CFLAGS="$CFLAGS -Werror=sequence-point"
16933
16934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16935 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16936 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16937 if eval test \${$cacheid+y}
16938 then :
16939 printf %s "(cached) " >&6
16940 else $as_nop
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16943 int i;
16944 int
16945 main (void)
16946 {
16947
16948 ;
16949 return 0;
16950 }
16951 _ACEOF
16952 if ac_fn_c_try_link "$LINENO"
16953 then :
16954 eval $cacheid=yes
16955 else $as_nop
16956 eval $cacheid=no
16957 fi
16958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16959 conftest$ac_exeext conftest.$ac_ext
16960 fi
16961
16962
16963 CFLAGS="$xorg_testset_save_CFLAGS"
16964
16965 eval supported=\$$cacheid
16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16967 printf "%s\n" "$supported" >&6; }
16968 if test "$supported" = "yes" ; then
16969 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16970 found="yes"
16971 fi
16972 fi
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988 xorg_testset_save_CFLAGS="$CFLAGS"
16989
16990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16993 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16994 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16995 then :
16996 printf %s "(cached) " >&6
16997 else $as_nop
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 int i;
17001 _ACEOF
17002 if ac_fn_c_try_compile "$LINENO"
17003 then :
17004 xorg_cv_cc_flag_unknown_warning_option=yes
17005 else $as_nop
17006 xorg_cv_cc_flag_unknown_warning_option=no
17007 fi
17008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17009 fi
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17011 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17013 CFLAGS="$xorg_testset_save_CFLAGS"
17014 fi
17015
17016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17019 fi
17020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17022 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17023 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17024 then :
17025 printf %s "(cached) " >&6
17026 else $as_nop
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 int i;
17030 _ACEOF
17031 if ac_fn_c_try_compile "$LINENO"
17032 then :
17033 xorg_cv_cc_flag_unused_command_line_argument=yes
17034 else $as_nop
17035 xorg_cv_cc_flag_unused_command_line_argument=no
17036 fi
17037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17038 fi
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17040 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17042 CFLAGS="$xorg_testset_save_CFLAGS"
17043 fi
17044
17045 found="no"
17046
17047 if test $found = "no" ; then
17048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17050 fi
17051
17052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054 fi
17055
17056 CFLAGS="$CFLAGS -Werror=return-type"
17057
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17059 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17060 cacheid=xorg_cv_cc_flag__Werror_return_type
17061 if eval test \${$cacheid+y}
17062 then :
17063 printf %s "(cached) " >&6
17064 else $as_nop
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067 int i;
17068 int
17069 main (void)
17070 {
17071
17072 ;
17073 return 0;
17074 }
17075 _ACEOF
17076 if ac_fn_c_try_link "$LINENO"
17077 then :
17078 eval $cacheid=yes
17079 else $as_nop
17080 eval $cacheid=no
17081 fi
17082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17083 conftest$ac_exeext conftest.$ac_ext
17084 fi
17085
17086
17087 CFLAGS="$xorg_testset_save_CFLAGS"
17088
17089 eval supported=\$$cacheid
17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17091 printf "%s\n" "$supported" >&6; }
17092 if test "$supported" = "yes" ; then
17093 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17094 found="yes"
17095 fi
17096 fi
17097
17098 if test $found = "no" ; then
17099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17101 fi
17102
17103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17105 fi
17106
17107 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17108
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17110 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17111 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17112 if eval test \${$cacheid+y}
17113 then :
17114 printf %s "(cached) " >&6
17115 else $as_nop
17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h. */
17118 int i;
17119 int
17120 main (void)
17121 {
17122
17123 ;
17124 return 0;
17125 }
17126 _ACEOF
17127 if ac_fn_c_try_link "$LINENO"
17128 then :
17129 eval $cacheid=yes
17130 else $as_nop
17131 eval $cacheid=no
17132 fi
17133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17134 conftest$ac_exeext conftest.$ac_ext
17135 fi
17136
17137
17138 CFLAGS="$xorg_testset_save_CFLAGS"
17139
17140 eval supported=\$$cacheid
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17142 printf "%s\n" "$supported" >&6; }
17143 if test "$supported" = "yes" ; then
17144 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17145 found="yes"
17146 fi
17147 fi
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163 xorg_testset_save_CFLAGS="$CFLAGS"
17164
17165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17168 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17169 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17170 then :
17171 printf %s "(cached) " >&6
17172 else $as_nop
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 int i;
17176 _ACEOF
17177 if ac_fn_c_try_compile "$LINENO"
17178 then :
17179 xorg_cv_cc_flag_unknown_warning_option=yes
17180 else $as_nop
17181 xorg_cv_cc_flag_unknown_warning_option=no
17182 fi
17183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17184 fi
17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17188 CFLAGS="$xorg_testset_save_CFLAGS"
17189 fi
17190
17191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17194 fi
17195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17199 then :
17200 printf %s "(cached) " >&6
17201 else $as_nop
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17204 int i;
17205 _ACEOF
17206 if ac_fn_c_try_compile "$LINENO"
17207 then :
17208 xorg_cv_cc_flag_unused_command_line_argument=yes
17209 else $as_nop
17210 xorg_cv_cc_flag_unused_command_line_argument=no
17211 fi
17212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17213 fi
17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17215 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17217 CFLAGS="$xorg_testset_save_CFLAGS"
17218 fi
17219
17220 found="no"
17221
17222 if test $found = "no" ; then
17223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17225 fi
17226
17227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17229 fi
17230
17231 CFLAGS="$CFLAGS -Werror=trigraphs"
17232
17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17234 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17235 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17236 if eval test \${$cacheid+y}
17237 then :
17238 printf %s "(cached) " >&6
17239 else $as_nop
17240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241 /* end confdefs.h. */
17242 int i;
17243 int
17244 main (void)
17245 {
17246
17247 ;
17248 return 0;
17249 }
17250 _ACEOF
17251 if ac_fn_c_try_link "$LINENO"
17252 then :
17253 eval $cacheid=yes
17254 else $as_nop
17255 eval $cacheid=no
17256 fi
17257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17258 conftest$ac_exeext conftest.$ac_ext
17259 fi
17260
17261
17262 CFLAGS="$xorg_testset_save_CFLAGS"
17263
17264 eval supported=\$$cacheid
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17266 printf "%s\n" "$supported" >&6; }
17267 if test "$supported" = "yes" ; then
17268 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17269 found="yes"
17270 fi
17271 fi
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287 xorg_testset_save_CFLAGS="$CFLAGS"
17288
17289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17292 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17293 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17294 then :
17295 printf %s "(cached) " >&6
17296 else $as_nop
17297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h. */
17299 int i;
17300 _ACEOF
17301 if ac_fn_c_try_compile "$LINENO"
17302 then :
17303 xorg_cv_cc_flag_unknown_warning_option=yes
17304 else $as_nop
17305 xorg_cv_cc_flag_unknown_warning_option=no
17306 fi
17307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17308 fi
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17310 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17312 CFLAGS="$xorg_testset_save_CFLAGS"
17313 fi
17314
17315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17318 fi
17319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17321 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17322 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17323 then :
17324 printf %s "(cached) " >&6
17325 else $as_nop
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 int i;
17329 _ACEOF
17330 if ac_fn_c_try_compile "$LINENO"
17331 then :
17332 xorg_cv_cc_flag_unused_command_line_argument=yes
17333 else $as_nop
17334 xorg_cv_cc_flag_unused_command_line_argument=no
17335 fi
17336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17337 fi
17338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17339 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17341 CFLAGS="$xorg_testset_save_CFLAGS"
17342 fi
17343
17344 found="no"
17345
17346 if test $found = "no" ; then
17347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349 fi
17350
17351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17353 fi
17354
17355 CFLAGS="$CFLAGS -Werror=array-bounds"
17356
17357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17358 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17359 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17360 if eval test \${$cacheid+y}
17361 then :
17362 printf %s "(cached) " >&6
17363 else $as_nop
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17366 int i;
17367 int
17368 main (void)
17369 {
17370
17371 ;
17372 return 0;
17373 }
17374 _ACEOF
17375 if ac_fn_c_try_link "$LINENO"
17376 then :
17377 eval $cacheid=yes
17378 else $as_nop
17379 eval $cacheid=no
17380 fi
17381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17382 conftest$ac_exeext conftest.$ac_ext
17383 fi
17384
17385
17386 CFLAGS="$xorg_testset_save_CFLAGS"
17387
17388 eval supported=\$$cacheid
17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17390 printf "%s\n" "$supported" >&6; }
17391 if test "$supported" = "yes" ; then
17392 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17393 found="yes"
17394 fi
17395 fi
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411 xorg_testset_save_CFLAGS="$CFLAGS"
17412
17413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17416 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17417 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17418 then :
17419 printf %s "(cached) " >&6
17420 else $as_nop
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423 int i;
17424 _ACEOF
17425 if ac_fn_c_try_compile "$LINENO"
17426 then :
17427 xorg_cv_cc_flag_unknown_warning_option=yes
17428 else $as_nop
17429 xorg_cv_cc_flag_unknown_warning_option=no
17430 fi
17431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17432 fi
17433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17434 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17436 CFLAGS="$xorg_testset_save_CFLAGS"
17437 fi
17438
17439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17442 fi
17443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17445 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17446 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17447 then :
17448 printf %s "(cached) " >&6
17449 else $as_nop
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 int i;
17453 _ACEOF
17454 if ac_fn_c_try_compile "$LINENO"
17455 then :
17456 xorg_cv_cc_flag_unused_command_line_argument=yes
17457 else $as_nop
17458 xorg_cv_cc_flag_unused_command_line_argument=no
17459 fi
17460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17461 fi
17462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17463 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17465 CFLAGS="$xorg_testset_save_CFLAGS"
17466 fi
17467
17468 found="no"
17469
17470 if test $found = "no" ; then
17471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17473 fi
17474
17475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17477 fi
17478
17479 CFLAGS="$CFLAGS -Werror=write-strings"
17480
17481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17482 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17483 cacheid=xorg_cv_cc_flag__Werror_write_strings
17484 if eval test \${$cacheid+y}
17485 then :
17486 printf %s "(cached) " >&6
17487 else $as_nop
17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490 int i;
17491 int
17492 main (void)
17493 {
17494
17495 ;
17496 return 0;
17497 }
17498 _ACEOF
17499 if ac_fn_c_try_link "$LINENO"
17500 then :
17501 eval $cacheid=yes
17502 else $as_nop
17503 eval $cacheid=no
17504 fi
17505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17506 conftest$ac_exeext conftest.$ac_ext
17507 fi
17508
17509
17510 CFLAGS="$xorg_testset_save_CFLAGS"
17511
17512 eval supported=\$$cacheid
17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17514 printf "%s\n" "$supported" >&6; }
17515 if test "$supported" = "yes" ; then
17516 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17517 found="yes"
17518 fi
17519 fi
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535 xorg_testset_save_CFLAGS="$CFLAGS"
17536
17537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17540 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17541 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17542 then :
17543 printf %s "(cached) " >&6
17544 else $as_nop
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 int i;
17548 _ACEOF
17549 if ac_fn_c_try_compile "$LINENO"
17550 then :
17551 xorg_cv_cc_flag_unknown_warning_option=yes
17552 else $as_nop
17553 xorg_cv_cc_flag_unknown_warning_option=no
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17556 fi
17557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17560 CFLAGS="$xorg_testset_save_CFLAGS"
17561 fi
17562
17563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17566 fi
17567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17571 then :
17572 printf %s "(cached) " >&6
17573 else $as_nop
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17576 int i;
17577 _ACEOF
17578 if ac_fn_c_try_compile "$LINENO"
17579 then :
17580 xorg_cv_cc_flag_unused_command_line_argument=yes
17581 else $as_nop
17582 xorg_cv_cc_flag_unused_command_line_argument=no
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17585 fi
17586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17587 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17589 CFLAGS="$xorg_testset_save_CFLAGS"
17590 fi
17591
17592 found="no"
17593
17594 if test $found = "no" ; then
17595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17597 fi
17598
17599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17601 fi
17602
17603 CFLAGS="$CFLAGS -Werror=address"
17604
17605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17606 printf %s "checking if $CC supports -Werror=address... " >&6; }
17607 cacheid=xorg_cv_cc_flag__Werror_address
17608 if eval test \${$cacheid+y}
17609 then :
17610 printf %s "(cached) " >&6
17611 else $as_nop
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17614 int i;
17615 int
17616 main (void)
17617 {
17618
17619 ;
17620 return 0;
17621 }
17622 _ACEOF
17623 if ac_fn_c_try_link "$LINENO"
17624 then :
17625 eval $cacheid=yes
17626 else $as_nop
17627 eval $cacheid=no
17628 fi
17629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17630 conftest$ac_exeext conftest.$ac_ext
17631 fi
17632
17633
17634 CFLAGS="$xorg_testset_save_CFLAGS"
17635
17636 eval supported=\$$cacheid
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17638 printf "%s\n" "$supported" >&6; }
17639 if test "$supported" = "yes" ; then
17640 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17641 found="yes"
17642 fi
17643 fi
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659 xorg_testset_save_CFLAGS="$CFLAGS"
17660
17661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17665 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17666 then :
17667 printf %s "(cached) " >&6
17668 else $as_nop
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671 int i;
17672 _ACEOF
17673 if ac_fn_c_try_compile "$LINENO"
17674 then :
17675 xorg_cv_cc_flag_unknown_warning_option=yes
17676 else $as_nop
17677 xorg_cv_cc_flag_unknown_warning_option=no
17678 fi
17679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17680 fi
17681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17682 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17684 CFLAGS="$xorg_testset_save_CFLAGS"
17685 fi
17686
17687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17690 fi
17691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17693 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17694 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17695 then :
17696 printf %s "(cached) " >&6
17697 else $as_nop
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 int i;
17701 _ACEOF
17702 if ac_fn_c_try_compile "$LINENO"
17703 then :
17704 xorg_cv_cc_flag_unused_command_line_argument=yes
17705 else $as_nop
17706 xorg_cv_cc_flag_unused_command_line_argument=no
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17709 fi
17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17711 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17713 CFLAGS="$xorg_testset_save_CFLAGS"
17714 fi
17715
17716 found="no"
17717
17718 if test $found = "no" ; then
17719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17721 fi
17722
17723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17725 fi
17726
17727 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17728
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17730 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17731 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17732 if eval test \${$cacheid+y}
17733 then :
17734 printf %s "(cached) " >&6
17735 else $as_nop
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17738 int i;
17739 int
17740 main (void)
17741 {
17742
17743 ;
17744 return 0;
17745 }
17746 _ACEOF
17747 if ac_fn_c_try_link "$LINENO"
17748 then :
17749 eval $cacheid=yes
17750 else $as_nop
17751 eval $cacheid=no
17752 fi
17753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17754 conftest$ac_exeext conftest.$ac_ext
17755 fi
17756
17757
17758 CFLAGS="$xorg_testset_save_CFLAGS"
17759
17760 eval supported=\$$cacheid
17761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17762 printf "%s\n" "$supported" >&6; }
17763 if test "$supported" = "yes" ; then
17764 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17765 found="yes"
17766 fi
17767 fi
17768
17769 if test $found = "no" ; then
17770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17772 fi
17773
17774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17776 fi
17777
17778 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17779
17780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17781 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17782 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17783 if eval test \${$cacheid+y}
17784 then :
17785 printf %s "(cached) " >&6
17786 else $as_nop
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 int i;
17790 int
17791 main (void)
17792 {
17793
17794 ;
17795 return 0;
17796 }
17797 _ACEOF
17798 if ac_fn_c_try_link "$LINENO"
17799 then :
17800 eval $cacheid=yes
17801 else $as_nop
17802 eval $cacheid=no
17803 fi
17804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17805 conftest$ac_exeext conftest.$ac_ext
17806 fi
17807
17808
17809 CFLAGS="$xorg_testset_save_CFLAGS"
17810
17811 eval supported=\$$cacheid
17812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17813 printf "%s\n" "$supported" >&6; }
17814 if test "$supported" = "yes" ; then
17815 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17816 found="yes"
17817 fi
17818 fi
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834 xorg_testset_save_CFLAGS="$CFLAGS"
17835
17836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17839 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17840 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17841 then :
17842 printf %s "(cached) " >&6
17843 else $as_nop
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846 int i;
17847 _ACEOF
17848 if ac_fn_c_try_compile "$LINENO"
17849 then :
17850 xorg_cv_cc_flag_unknown_warning_option=yes
17851 else $as_nop
17852 xorg_cv_cc_flag_unknown_warning_option=no
17853 fi
17854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17855 fi
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17857 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17859 CFLAGS="$xorg_testset_save_CFLAGS"
17860 fi
17861
17862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17865 fi
17866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17868 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17869 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17870 then :
17871 printf %s "(cached) " >&6
17872 else $as_nop
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875 int i;
17876 _ACEOF
17877 if ac_fn_c_try_compile "$LINENO"
17878 then :
17879 xorg_cv_cc_flag_unused_command_line_argument=yes
17880 else $as_nop
17881 xorg_cv_cc_flag_unused_command_line_argument=no
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17884 fi
17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17888 CFLAGS="$xorg_testset_save_CFLAGS"
17889 fi
17890
17891 found="no"
17892
17893 if test $found = "no" ; then
17894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17896 fi
17897
17898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17900 fi
17901
17902 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17903
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17905 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17906 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17907 if eval test \${$cacheid+y}
17908 then :
17909 printf %s "(cached) " >&6
17910 else $as_nop
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17913 int i;
17914 int
17915 main (void)
17916 {
17917
17918 ;
17919 return 0;
17920 }
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"
17923 then :
17924 eval $cacheid=yes
17925 else $as_nop
17926 eval $cacheid=no
17927 fi
17928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17929 conftest$ac_exeext conftest.$ac_ext
17930 fi
17931
17932
17933 CFLAGS="$xorg_testset_save_CFLAGS"
17934
17935 eval supported=\$$cacheid
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17937 printf "%s\n" "$supported" >&6; }
17938 if test "$supported" = "yes" ; then
17939 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17940 found="yes"
17941 fi
17942 fi
17943
17944 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17945 else
17946 { 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
17947 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;}
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961 xorg_testset_save_CFLAGS="$CFLAGS"
17962
17963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17966 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17967 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17968 then :
17969 printf %s "(cached) " >&6
17970 else $as_nop
17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972 /* end confdefs.h. */
17973 int i;
17974 _ACEOF
17975 if ac_fn_c_try_compile "$LINENO"
17976 then :
17977 xorg_cv_cc_flag_unknown_warning_option=yes
17978 else $as_nop
17979 xorg_cv_cc_flag_unknown_warning_option=no
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17982 fi
17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17984 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17986 CFLAGS="$xorg_testset_save_CFLAGS"
17987 fi
17988
17989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17992 fi
17993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17995 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17996 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17997 then :
17998 printf %s "(cached) " >&6
17999 else $as_nop
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18002 int i;
18003 _ACEOF
18004 if ac_fn_c_try_compile "$LINENO"
18005 then :
18006 xorg_cv_cc_flag_unused_command_line_argument=yes
18007 else $as_nop
18008 xorg_cv_cc_flag_unused_command_line_argument=no
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18011 fi
18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18015 CFLAGS="$xorg_testset_save_CFLAGS"
18016 fi
18017
18018 found="no"
18019
18020 if test $found = "no" ; then
18021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18023 fi
18024
18025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18027 fi
18028
18029 CFLAGS="$CFLAGS -Wimplicit"
18030
18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18032 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18033 cacheid=xorg_cv_cc_flag__Wimplicit
18034 if eval test \${$cacheid+y}
18035 then :
18036 printf %s "(cached) " >&6
18037 else $as_nop
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18040 int i;
18041 int
18042 main (void)
18043 {
18044
18045 ;
18046 return 0;
18047 }
18048 _ACEOF
18049 if ac_fn_c_try_link "$LINENO"
18050 then :
18051 eval $cacheid=yes
18052 else $as_nop
18053 eval $cacheid=no
18054 fi
18055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18056 conftest$ac_exeext conftest.$ac_ext
18057 fi
18058
18059
18060 CFLAGS="$xorg_testset_save_CFLAGS"
18061
18062 eval supported=\$$cacheid
18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18064 printf "%s\n" "$supported" >&6; }
18065 if test "$supported" = "yes" ; then
18066 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18067 found="yes"
18068 fi
18069 fi
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085 xorg_testset_save_CFLAGS="$CFLAGS"
18086
18087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18092 then :
18093 printf %s "(cached) " >&6
18094 else $as_nop
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097 int i;
18098 _ACEOF
18099 if ac_fn_c_try_compile "$LINENO"
18100 then :
18101 xorg_cv_cc_flag_unknown_warning_option=yes
18102 else $as_nop
18103 xorg_cv_cc_flag_unknown_warning_option=no
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18106 fi
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18110 CFLAGS="$xorg_testset_save_CFLAGS"
18111 fi
18112
18113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18116 fi
18117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18121 then :
18122 printf %s "(cached) " >&6
18123 else $as_nop
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h. */
18126 int i;
18127 _ACEOF
18128 if ac_fn_c_try_compile "$LINENO"
18129 then :
18130 xorg_cv_cc_flag_unused_command_line_argument=yes
18131 else $as_nop
18132 xorg_cv_cc_flag_unused_command_line_argument=no
18133 fi
18134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18135 fi
18136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18139 CFLAGS="$xorg_testset_save_CFLAGS"
18140 fi
18141
18142 found="no"
18143
18144 if test $found = "no" ; then
18145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18147 fi
18148
18149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18151 fi
18152
18153 CFLAGS="$CFLAGS -Wnonnull"
18154
18155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18156 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18157 cacheid=xorg_cv_cc_flag__Wnonnull
18158 if eval test \${$cacheid+y}
18159 then :
18160 printf %s "(cached) " >&6
18161 else $as_nop
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18164 int i;
18165 int
18166 main (void)
18167 {
18168
18169 ;
18170 return 0;
18171 }
18172 _ACEOF
18173 if ac_fn_c_try_link "$LINENO"
18174 then :
18175 eval $cacheid=yes
18176 else $as_nop
18177 eval $cacheid=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18180 conftest$ac_exeext conftest.$ac_ext
18181 fi
18182
18183
18184 CFLAGS="$xorg_testset_save_CFLAGS"
18185
18186 eval supported=\$$cacheid
18187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18188 printf "%s\n" "$supported" >&6; }
18189 if test "$supported" = "yes" ; then
18190 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18191 found="yes"
18192 fi
18193 fi
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209 xorg_testset_save_CFLAGS="$CFLAGS"
18210
18211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18215 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18216 then :
18217 printf %s "(cached) " >&6
18218 else $as_nop
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18221 int i;
18222 _ACEOF
18223 if ac_fn_c_try_compile "$LINENO"
18224 then :
18225 xorg_cv_cc_flag_unknown_warning_option=yes
18226 else $as_nop
18227 xorg_cv_cc_flag_unknown_warning_option=no
18228 fi
18229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18230 fi
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18234 CFLAGS="$xorg_testset_save_CFLAGS"
18235 fi
18236
18237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18240 fi
18241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18245 then :
18246 printf %s "(cached) " >&6
18247 else $as_nop
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250 int i;
18251 _ACEOF
18252 if ac_fn_c_try_compile "$LINENO"
18253 then :
18254 xorg_cv_cc_flag_unused_command_line_argument=yes
18255 else $as_nop
18256 xorg_cv_cc_flag_unused_command_line_argument=no
18257 fi
18258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18259 fi
18260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18263 CFLAGS="$xorg_testset_save_CFLAGS"
18264 fi
18265
18266 found="no"
18267
18268 if test $found = "no" ; then
18269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18271 fi
18272
18273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18275 fi
18276
18277 CFLAGS="$CFLAGS -Winit-self"
18278
18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18280 printf %s "checking if $CC supports -Winit-self... " >&6; }
18281 cacheid=xorg_cv_cc_flag__Winit_self
18282 if eval test \${$cacheid+y}
18283 then :
18284 printf %s "(cached) " >&6
18285 else $as_nop
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 int i;
18289 int
18290 main (void)
18291 {
18292
18293 ;
18294 return 0;
18295 }
18296 _ACEOF
18297 if ac_fn_c_try_link "$LINENO"
18298 then :
18299 eval $cacheid=yes
18300 else $as_nop
18301 eval $cacheid=no
18302 fi
18303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18304 conftest$ac_exeext conftest.$ac_ext
18305 fi
18306
18307
18308 CFLAGS="$xorg_testset_save_CFLAGS"
18309
18310 eval supported=\$$cacheid
18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18312 printf "%s\n" "$supported" >&6; }
18313 if test "$supported" = "yes" ; then
18314 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18315 found="yes"
18316 fi
18317 fi
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333 xorg_testset_save_CFLAGS="$CFLAGS"
18334
18335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18338 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18339 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18340 then :
18341 printf %s "(cached) " >&6
18342 else $as_nop
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 int i;
18346 _ACEOF
18347 if ac_fn_c_try_compile "$LINENO"
18348 then :
18349 xorg_cv_cc_flag_unknown_warning_option=yes
18350 else $as_nop
18351 xorg_cv_cc_flag_unknown_warning_option=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18354 fi
18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18356 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18358 CFLAGS="$xorg_testset_save_CFLAGS"
18359 fi
18360
18361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18364 fi
18365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18367 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18368 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18369 then :
18370 printf %s "(cached) " >&6
18371 else $as_nop
18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h. */
18374 int i;
18375 _ACEOF
18376 if ac_fn_c_try_compile "$LINENO"
18377 then :
18378 xorg_cv_cc_flag_unused_command_line_argument=yes
18379 else $as_nop
18380 xorg_cv_cc_flag_unused_command_line_argument=no
18381 fi
18382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18383 fi
18384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18385 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18387 CFLAGS="$xorg_testset_save_CFLAGS"
18388 fi
18389
18390 found="no"
18391
18392 if test $found = "no" ; then
18393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18395 fi
18396
18397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18399 fi
18400
18401 CFLAGS="$CFLAGS -Wmain"
18402
18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18404 printf %s "checking if $CC supports -Wmain... " >&6; }
18405 cacheid=xorg_cv_cc_flag__Wmain
18406 if eval test \${$cacheid+y}
18407 then :
18408 printf %s "(cached) " >&6
18409 else $as_nop
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 int i;
18413 int
18414 main (void)
18415 {
18416
18417 ;
18418 return 0;
18419 }
18420 _ACEOF
18421 if ac_fn_c_try_link "$LINENO"
18422 then :
18423 eval $cacheid=yes
18424 else $as_nop
18425 eval $cacheid=no
18426 fi
18427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18428 conftest$ac_exeext conftest.$ac_ext
18429 fi
18430
18431
18432 CFLAGS="$xorg_testset_save_CFLAGS"
18433
18434 eval supported=\$$cacheid
18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18436 printf "%s\n" "$supported" >&6; }
18437 if test "$supported" = "yes" ; then
18438 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18439 found="yes"
18440 fi
18441 fi
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457 xorg_testset_save_CFLAGS="$CFLAGS"
18458
18459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18463 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18464 then :
18465 printf %s "(cached) " >&6
18466 else $as_nop
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18469 int i;
18470 _ACEOF
18471 if ac_fn_c_try_compile "$LINENO"
18472 then :
18473 xorg_cv_cc_flag_unknown_warning_option=yes
18474 else $as_nop
18475 xorg_cv_cc_flag_unknown_warning_option=no
18476 fi
18477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18478 fi
18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18480 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18482 CFLAGS="$xorg_testset_save_CFLAGS"
18483 fi
18484
18485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18488 fi
18489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18493 then :
18494 printf %s "(cached) " >&6
18495 else $as_nop
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498 int i;
18499 _ACEOF
18500 if ac_fn_c_try_compile "$LINENO"
18501 then :
18502 xorg_cv_cc_flag_unused_command_line_argument=yes
18503 else $as_nop
18504 xorg_cv_cc_flag_unused_command_line_argument=no
18505 fi
18506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18507 fi
18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18509 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18511 CFLAGS="$xorg_testset_save_CFLAGS"
18512 fi
18513
18514 found="no"
18515
18516 if test $found = "no" ; then
18517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18519 fi
18520
18521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18523 fi
18524
18525 CFLAGS="$CFLAGS -Wmissing-braces"
18526
18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18528 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18529 cacheid=xorg_cv_cc_flag__Wmissing_braces
18530 if eval test \${$cacheid+y}
18531 then :
18532 printf %s "(cached) " >&6
18533 else $as_nop
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536 int i;
18537 int
18538 main (void)
18539 {
18540
18541 ;
18542 return 0;
18543 }
18544 _ACEOF
18545 if ac_fn_c_try_link "$LINENO"
18546 then :
18547 eval $cacheid=yes
18548 else $as_nop
18549 eval $cacheid=no
18550 fi
18551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18552 conftest$ac_exeext conftest.$ac_ext
18553 fi
18554
18555
18556 CFLAGS="$xorg_testset_save_CFLAGS"
18557
18558 eval supported=\$$cacheid
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18560 printf "%s\n" "$supported" >&6; }
18561 if test "$supported" = "yes" ; then
18562 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18563 found="yes"
18564 fi
18565 fi
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581 xorg_testset_save_CFLAGS="$CFLAGS"
18582
18583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18586 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18587 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18588 then :
18589 printf %s "(cached) " >&6
18590 else $as_nop
18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18593 int i;
18594 _ACEOF
18595 if ac_fn_c_try_compile "$LINENO"
18596 then :
18597 xorg_cv_cc_flag_unknown_warning_option=yes
18598 else $as_nop
18599 xorg_cv_cc_flag_unknown_warning_option=no
18600 fi
18601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18602 fi
18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18606 CFLAGS="$xorg_testset_save_CFLAGS"
18607 fi
18608
18609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18612 fi
18613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18616 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18617 then :
18618 printf %s "(cached) " >&6
18619 else $as_nop
18620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621 /* end confdefs.h. */
18622 int i;
18623 _ACEOF
18624 if ac_fn_c_try_compile "$LINENO"
18625 then :
18626 xorg_cv_cc_flag_unused_command_line_argument=yes
18627 else $as_nop
18628 xorg_cv_cc_flag_unused_command_line_argument=no
18629 fi
18630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18631 fi
18632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18633 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18635 CFLAGS="$xorg_testset_save_CFLAGS"
18636 fi
18637
18638 found="no"
18639
18640 if test $found = "no" ; then
18641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18643 fi
18644
18645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18647 fi
18648
18649 CFLAGS="$CFLAGS -Wsequence-point"
18650
18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18652 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18653 cacheid=xorg_cv_cc_flag__Wsequence_point
18654 if eval test \${$cacheid+y}
18655 then :
18656 printf %s "(cached) " >&6
18657 else $as_nop
18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18660 int i;
18661 int
18662 main (void)
18663 {
18664
18665 ;
18666 return 0;
18667 }
18668 _ACEOF
18669 if ac_fn_c_try_link "$LINENO"
18670 then :
18671 eval $cacheid=yes
18672 else $as_nop
18673 eval $cacheid=no
18674 fi
18675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18676 conftest$ac_exeext conftest.$ac_ext
18677 fi
18678
18679
18680 CFLAGS="$xorg_testset_save_CFLAGS"
18681
18682 eval supported=\$$cacheid
18683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18684 printf "%s\n" "$supported" >&6; }
18685 if test "$supported" = "yes" ; then
18686 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18687 found="yes"
18688 fi
18689 fi
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705 xorg_testset_save_CFLAGS="$CFLAGS"
18706
18707 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18710 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18711 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18712 then :
18713 printf %s "(cached) " >&6
18714 else $as_nop
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717 int i;
18718 _ACEOF
18719 if ac_fn_c_try_compile "$LINENO"
18720 then :
18721 xorg_cv_cc_flag_unknown_warning_option=yes
18722 else $as_nop
18723 xorg_cv_cc_flag_unknown_warning_option=no
18724 fi
18725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18726 fi
18727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18728 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18730 CFLAGS="$xorg_testset_save_CFLAGS"
18731 fi
18732
18733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18736 fi
18737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18739 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18740 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18741 then :
18742 printf %s "(cached) " >&6
18743 else $as_nop
18744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745 /* end confdefs.h. */
18746 int i;
18747 _ACEOF
18748 if ac_fn_c_try_compile "$LINENO"
18749 then :
18750 xorg_cv_cc_flag_unused_command_line_argument=yes
18751 else $as_nop
18752 xorg_cv_cc_flag_unused_command_line_argument=no
18753 fi
18754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18755 fi
18756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18757 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18759 CFLAGS="$xorg_testset_save_CFLAGS"
18760 fi
18761
18762 found="no"
18763
18764 if test $found = "no" ; then
18765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18767 fi
18768
18769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18771 fi
18772
18773 CFLAGS="$CFLAGS -Wreturn-type"
18774
18775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18776 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18777 cacheid=xorg_cv_cc_flag__Wreturn_type
18778 if eval test \${$cacheid+y}
18779 then :
18780 printf %s "(cached) " >&6
18781 else $as_nop
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 int i;
18785 int
18786 main (void)
18787 {
18788
18789 ;
18790 return 0;
18791 }
18792 _ACEOF
18793 if ac_fn_c_try_link "$LINENO"
18794 then :
18795 eval $cacheid=yes
18796 else $as_nop
18797 eval $cacheid=no
18798 fi
18799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18800 conftest$ac_exeext conftest.$ac_ext
18801 fi
18802
18803
18804 CFLAGS="$xorg_testset_save_CFLAGS"
18805
18806 eval supported=\$$cacheid
18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18808 printf "%s\n" "$supported" >&6; }
18809 if test "$supported" = "yes" ; then
18810 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18811 found="yes"
18812 fi
18813 fi
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829 xorg_testset_save_CFLAGS="$CFLAGS"
18830
18831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18834 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18835 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18836 then :
18837 printf %s "(cached) " >&6
18838 else $as_nop
18839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18840 /* end confdefs.h. */
18841 int i;
18842 _ACEOF
18843 if ac_fn_c_try_compile "$LINENO"
18844 then :
18845 xorg_cv_cc_flag_unknown_warning_option=yes
18846 else $as_nop
18847 xorg_cv_cc_flag_unknown_warning_option=no
18848 fi
18849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18850 fi
18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18854 CFLAGS="$xorg_testset_save_CFLAGS"
18855 fi
18856
18857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18860 fi
18861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18865 then :
18866 printf %s "(cached) " >&6
18867 else $as_nop
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h. */
18870 int i;
18871 _ACEOF
18872 if ac_fn_c_try_compile "$LINENO"
18873 then :
18874 xorg_cv_cc_flag_unused_command_line_argument=yes
18875 else $as_nop
18876 xorg_cv_cc_flag_unused_command_line_argument=no
18877 fi
18878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18879 fi
18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18883 CFLAGS="$xorg_testset_save_CFLAGS"
18884 fi
18885
18886 found="no"
18887
18888 if test $found = "no" ; then
18889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18891 fi
18892
18893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18895 fi
18896
18897 CFLAGS="$CFLAGS -Wtrigraphs"
18898
18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18900 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18901 cacheid=xorg_cv_cc_flag__Wtrigraphs
18902 if eval test \${$cacheid+y}
18903 then :
18904 printf %s "(cached) " >&6
18905 else $as_nop
18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18908 int i;
18909 int
18910 main (void)
18911 {
18912
18913 ;
18914 return 0;
18915 }
18916 _ACEOF
18917 if ac_fn_c_try_link "$LINENO"
18918 then :
18919 eval $cacheid=yes
18920 else $as_nop
18921 eval $cacheid=no
18922 fi
18923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18924 conftest$ac_exeext conftest.$ac_ext
18925 fi
18926
18927
18928 CFLAGS="$xorg_testset_save_CFLAGS"
18929
18930 eval supported=\$$cacheid
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18932 printf "%s\n" "$supported" >&6; }
18933 if test "$supported" = "yes" ; then
18934 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18935 found="yes"
18936 fi
18937 fi
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953 xorg_testset_save_CFLAGS="$CFLAGS"
18954
18955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18959 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18960 then :
18961 printf %s "(cached) " >&6
18962 else $as_nop
18963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18964 /* end confdefs.h. */
18965 int i;
18966 _ACEOF
18967 if ac_fn_c_try_compile "$LINENO"
18968 then :
18969 xorg_cv_cc_flag_unknown_warning_option=yes
18970 else $as_nop
18971 xorg_cv_cc_flag_unknown_warning_option=no
18972 fi
18973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18974 fi
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18978 CFLAGS="$xorg_testset_save_CFLAGS"
18979 fi
18980
18981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18984 fi
18985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18988 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18989 then :
18990 printf %s "(cached) " >&6
18991 else $as_nop
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h. */
18994 int i;
18995 _ACEOF
18996 if ac_fn_c_try_compile "$LINENO"
18997 then :
18998 xorg_cv_cc_flag_unused_command_line_argument=yes
18999 else $as_nop
19000 xorg_cv_cc_flag_unused_command_line_argument=no
19001 fi
19002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19003 fi
19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19005 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19007 CFLAGS="$xorg_testset_save_CFLAGS"
19008 fi
19009
19010 found="no"
19011
19012 if test $found = "no" ; then
19013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19015 fi
19016
19017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19019 fi
19020
19021 CFLAGS="$CFLAGS -Warray-bounds"
19022
19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19024 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19025 cacheid=xorg_cv_cc_flag__Warray_bounds
19026 if eval test \${$cacheid+y}
19027 then :
19028 printf %s "(cached) " >&6
19029 else $as_nop
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19032 int i;
19033 int
19034 main (void)
19035 {
19036
19037 ;
19038 return 0;
19039 }
19040 _ACEOF
19041 if ac_fn_c_try_link "$LINENO"
19042 then :
19043 eval $cacheid=yes
19044 else $as_nop
19045 eval $cacheid=no
19046 fi
19047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19048 conftest$ac_exeext conftest.$ac_ext
19049 fi
19050
19051
19052 CFLAGS="$xorg_testset_save_CFLAGS"
19053
19054 eval supported=\$$cacheid
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19056 printf "%s\n" "$supported" >&6; }
19057 if test "$supported" = "yes" ; then
19058 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19059 found="yes"
19060 fi
19061 fi
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077 xorg_testset_save_CFLAGS="$CFLAGS"
19078
19079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19082 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19083 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19084 then :
19085 printf %s "(cached) " >&6
19086 else $as_nop
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19089 int i;
19090 _ACEOF
19091 if ac_fn_c_try_compile "$LINENO"
19092 then :
19093 xorg_cv_cc_flag_unknown_warning_option=yes
19094 else $as_nop
19095 xorg_cv_cc_flag_unknown_warning_option=no
19096 fi
19097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19098 fi
19099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19100 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19102 CFLAGS="$xorg_testset_save_CFLAGS"
19103 fi
19104
19105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19108 fi
19109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19111 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19112 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19113 then :
19114 printf %s "(cached) " >&6
19115 else $as_nop
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118 int i;
19119 _ACEOF
19120 if ac_fn_c_try_compile "$LINENO"
19121 then :
19122 xorg_cv_cc_flag_unused_command_line_argument=yes
19123 else $as_nop
19124 xorg_cv_cc_flag_unused_command_line_argument=no
19125 fi
19126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19127 fi
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19129 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19131 CFLAGS="$xorg_testset_save_CFLAGS"
19132 fi
19133
19134 found="no"
19135
19136 if test $found = "no" ; then
19137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19139 fi
19140
19141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19143 fi
19144
19145 CFLAGS="$CFLAGS -Wwrite-strings"
19146
19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19148 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19149 cacheid=xorg_cv_cc_flag__Wwrite_strings
19150 if eval test \${$cacheid+y}
19151 then :
19152 printf %s "(cached) " >&6
19153 else $as_nop
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19156 int i;
19157 int
19158 main (void)
19159 {
19160
19161 ;
19162 return 0;
19163 }
19164 _ACEOF
19165 if ac_fn_c_try_link "$LINENO"
19166 then :
19167 eval $cacheid=yes
19168 else $as_nop
19169 eval $cacheid=no
19170 fi
19171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19172 conftest$ac_exeext conftest.$ac_ext
19173 fi
19174
19175
19176 CFLAGS="$xorg_testset_save_CFLAGS"
19177
19178 eval supported=\$$cacheid
19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19180 printf "%s\n" "$supported" >&6; }
19181 if test "$supported" = "yes" ; then
19182 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19183 found="yes"
19184 fi
19185 fi
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201 xorg_testset_save_CFLAGS="$CFLAGS"
19202
19203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19206 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19207 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19208 then :
19209 printf %s "(cached) " >&6
19210 else $as_nop
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213 int i;
19214 _ACEOF
19215 if ac_fn_c_try_compile "$LINENO"
19216 then :
19217 xorg_cv_cc_flag_unknown_warning_option=yes
19218 else $as_nop
19219 xorg_cv_cc_flag_unknown_warning_option=no
19220 fi
19221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19222 fi
19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19224 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19226 CFLAGS="$xorg_testset_save_CFLAGS"
19227 fi
19228
19229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19232 fi
19233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19235 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19236 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19237 then :
19238 printf %s "(cached) " >&6
19239 else $as_nop
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19242 int i;
19243 _ACEOF
19244 if ac_fn_c_try_compile "$LINENO"
19245 then :
19246 xorg_cv_cc_flag_unused_command_line_argument=yes
19247 else $as_nop
19248 xorg_cv_cc_flag_unused_command_line_argument=no
19249 fi
19250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19251 fi
19252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19253 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19255 CFLAGS="$xorg_testset_save_CFLAGS"
19256 fi
19257
19258 found="no"
19259
19260 if test $found = "no" ; then
19261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19263 fi
19264
19265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19267 fi
19268
19269 CFLAGS="$CFLAGS -Waddress"
19270
19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19272 printf %s "checking if $CC supports -Waddress... " >&6; }
19273 cacheid=xorg_cv_cc_flag__Waddress
19274 if eval test \${$cacheid+y}
19275 then :
19276 printf %s "(cached) " >&6
19277 else $as_nop
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280 int i;
19281 int
19282 main (void)
19283 {
19284
19285 ;
19286 return 0;
19287 }
19288 _ACEOF
19289 if ac_fn_c_try_link "$LINENO"
19290 then :
19291 eval $cacheid=yes
19292 else $as_nop
19293 eval $cacheid=no
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19296 conftest$ac_exeext conftest.$ac_ext
19297 fi
19298
19299
19300 CFLAGS="$xorg_testset_save_CFLAGS"
19301
19302 eval supported=\$$cacheid
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19304 printf "%s\n" "$supported" >&6; }
19305 if test "$supported" = "yes" ; then
19306 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19307 found="yes"
19308 fi
19309 fi
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325 xorg_testset_save_CFLAGS="$CFLAGS"
19326
19327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19330 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19331 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19332 then :
19333 printf %s "(cached) " >&6
19334 else $as_nop
19335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19337 int i;
19338 _ACEOF
19339 if ac_fn_c_try_compile "$LINENO"
19340 then :
19341 xorg_cv_cc_flag_unknown_warning_option=yes
19342 else $as_nop
19343 xorg_cv_cc_flag_unknown_warning_option=no
19344 fi
19345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19346 fi
19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19348 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19350 CFLAGS="$xorg_testset_save_CFLAGS"
19351 fi
19352
19353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19356 fi
19357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19359 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19360 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19361 then :
19362 printf %s "(cached) " >&6
19363 else $as_nop
19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19366 int i;
19367 _ACEOF
19368 if ac_fn_c_try_compile "$LINENO"
19369 then :
19370 xorg_cv_cc_flag_unused_command_line_argument=yes
19371 else $as_nop
19372 xorg_cv_cc_flag_unused_command_line_argument=no
19373 fi
19374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19375 fi
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19377 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19379 CFLAGS="$xorg_testset_save_CFLAGS"
19380 fi
19381
19382 found="no"
19383
19384 if test $found = "no" ; then
19385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19387 fi
19388
19389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19391 fi
19392
19393 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19394
19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19396 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19397 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19398 if eval test \${$cacheid+y}
19399 then :
19400 printf %s "(cached) " >&6
19401 else $as_nop
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19404 int i;
19405 int
19406 main (void)
19407 {
19408
19409 ;
19410 return 0;
19411 }
19412 _ACEOF
19413 if ac_fn_c_try_link "$LINENO"
19414 then :
19415 eval $cacheid=yes
19416 else $as_nop
19417 eval $cacheid=no
19418 fi
19419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19420 conftest$ac_exeext conftest.$ac_ext
19421 fi
19422
19423
19424 CFLAGS="$xorg_testset_save_CFLAGS"
19425
19426 eval supported=\$$cacheid
19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19428 printf "%s\n" "$supported" >&6; }
19429 if test "$supported" = "yes" ; then
19430 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19431 found="yes"
19432 fi
19433 fi
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449 xorg_testset_save_CFLAGS="$CFLAGS"
19450
19451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19454 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19455 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19456 then :
19457 printf %s "(cached) " >&6
19458 else $as_nop
19459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19460 /* end confdefs.h. */
19461 int i;
19462 _ACEOF
19463 if ac_fn_c_try_compile "$LINENO"
19464 then :
19465 xorg_cv_cc_flag_unknown_warning_option=yes
19466 else $as_nop
19467 xorg_cv_cc_flag_unknown_warning_option=no
19468 fi
19469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19470 fi
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19472 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19474 CFLAGS="$xorg_testset_save_CFLAGS"
19475 fi
19476
19477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19480 fi
19481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19483 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19484 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19485 then :
19486 printf %s "(cached) " >&6
19487 else $as_nop
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19490 int i;
19491 _ACEOF
19492 if ac_fn_c_try_compile "$LINENO"
19493 then :
19494 xorg_cv_cc_flag_unused_command_line_argument=yes
19495 else $as_nop
19496 xorg_cv_cc_flag_unused_command_line_argument=no
19497 fi
19498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19499 fi
19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19501 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19503 CFLAGS="$xorg_testset_save_CFLAGS"
19504 fi
19505
19506 found="no"
19507
19508 if test $found = "no" ; then
19509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19511 fi
19512
19513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19515 fi
19516
19517 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19518
19519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19520 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19521 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19522 if eval test \${$cacheid+y}
19523 then :
19524 printf %s "(cached) " >&6
19525 else $as_nop
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19528 int i;
19529 int
19530 main (void)
19531 {
19532
19533 ;
19534 return 0;
19535 }
19536 _ACEOF
19537 if ac_fn_c_try_link "$LINENO"
19538 then :
19539 eval $cacheid=yes
19540 else $as_nop
19541 eval $cacheid=no
19542 fi
19543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19544 conftest$ac_exeext conftest.$ac_ext
19545 fi
19546
19547
19548 CFLAGS="$xorg_testset_save_CFLAGS"
19549
19550 eval supported=\$$cacheid
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19552 printf "%s\n" "$supported" >&6; }
19553 if test "$supported" = "yes" ; then
19554 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19555 found="yes"
19556 fi
19557 fi
19558
19559
19560 fi
19561
19562
19563
19564
19565
19566
19567
19568 CWARNFLAGS="$BASE_CFLAGS"
19569 if test "x$GCC" = xyes ; then
19570 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19571 fi
19572
19573
19574
19575
19576
19577
19578
19579
19580 # Check whether --enable-strict-compilation was given.
19581 if test ${enable_strict_compilation+y}
19582 then :
19583 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19584 else $as_nop
19585 STRICT_COMPILE=no
19586 fi
19587
19588
19589
19590
19591
19592
19593 STRICT_CFLAGS=""
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607 xorg_testset_save_CFLAGS="$CFLAGS"
19608
19609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19614 then :
19615 printf %s "(cached) " >&6
19616 else $as_nop
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19619 int i;
19620 _ACEOF
19621 if ac_fn_c_try_compile "$LINENO"
19622 then :
19623 xorg_cv_cc_flag_unknown_warning_option=yes
19624 else $as_nop
19625 xorg_cv_cc_flag_unknown_warning_option=no
19626 fi
19627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19628 fi
19629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19632 CFLAGS="$xorg_testset_save_CFLAGS"
19633 fi
19634
19635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19638 fi
19639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19643 then :
19644 printf %s "(cached) " >&6
19645 else $as_nop
19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19647 /* end confdefs.h. */
19648 int i;
19649 _ACEOF
19650 if ac_fn_c_try_compile "$LINENO"
19651 then :
19652 xorg_cv_cc_flag_unused_command_line_argument=yes
19653 else $as_nop
19654 xorg_cv_cc_flag_unused_command_line_argument=no
19655 fi
19656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19657 fi
19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19661 CFLAGS="$xorg_testset_save_CFLAGS"
19662 fi
19663
19664 found="no"
19665
19666 if test $found = "no" ; then
19667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19669 fi
19670
19671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19673 fi
19674
19675 CFLAGS="$CFLAGS -pedantic"
19676
19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19678 printf %s "checking if $CC supports -pedantic... " >&6; }
19679 cacheid=xorg_cv_cc_flag__pedantic
19680 if eval test \${$cacheid+y}
19681 then :
19682 printf %s "(cached) " >&6
19683 else $as_nop
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686 int i;
19687 int
19688 main (void)
19689 {
19690
19691 ;
19692 return 0;
19693 }
19694 _ACEOF
19695 if ac_fn_c_try_link "$LINENO"
19696 then :
19697 eval $cacheid=yes
19698 else $as_nop
19699 eval $cacheid=no
19700 fi
19701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19702 conftest$ac_exeext conftest.$ac_ext
19703 fi
19704
19705
19706 CFLAGS="$xorg_testset_save_CFLAGS"
19707
19708 eval supported=\$$cacheid
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19710 printf "%s\n" "$supported" >&6; }
19711 if test "$supported" = "yes" ; then
19712 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19713 found="yes"
19714 fi
19715 fi
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731 xorg_testset_save_CFLAGS="$CFLAGS"
19732
19733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19737 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19738 then :
19739 printf %s "(cached) " >&6
19740 else $as_nop
19741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19742 /* end confdefs.h. */
19743 int i;
19744 _ACEOF
19745 if ac_fn_c_try_compile "$LINENO"
19746 then :
19747 xorg_cv_cc_flag_unknown_warning_option=yes
19748 else $as_nop
19749 xorg_cv_cc_flag_unknown_warning_option=no
19750 fi
19751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19752 fi
19753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19756 CFLAGS="$xorg_testset_save_CFLAGS"
19757 fi
19758
19759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19762 fi
19763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19767 then :
19768 printf %s "(cached) " >&6
19769 else $as_nop
19770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19772 int i;
19773 _ACEOF
19774 if ac_fn_c_try_compile "$LINENO"
19775 then :
19776 xorg_cv_cc_flag_unused_command_line_argument=yes
19777 else $as_nop
19778 xorg_cv_cc_flag_unused_command_line_argument=no
19779 fi
19780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19781 fi
19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19785 CFLAGS="$xorg_testset_save_CFLAGS"
19786 fi
19787
19788 found="no"
19789
19790 if test $found = "no" ; then
19791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19793 fi
19794
19795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19797 fi
19798
19799 CFLAGS="$CFLAGS -Werror"
19800
19801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19802 printf %s "checking if $CC supports -Werror... " >&6; }
19803 cacheid=xorg_cv_cc_flag__Werror
19804 if eval test \${$cacheid+y}
19805 then :
19806 printf %s "(cached) " >&6
19807 else $as_nop
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19810 int i;
19811 int
19812 main (void)
19813 {
19814
19815 ;
19816 return 0;
19817 }
19818 _ACEOF
19819 if ac_fn_c_try_link "$LINENO"
19820 then :
19821 eval $cacheid=yes
19822 else $as_nop
19823 eval $cacheid=no
19824 fi
19825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19826 conftest$ac_exeext conftest.$ac_ext
19827 fi
19828
19829
19830 CFLAGS="$xorg_testset_save_CFLAGS"
19831
19832 eval supported=\$$cacheid
19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19834 printf "%s\n" "$supported" >&6; }
19835 if test "$supported" = "yes" ; then
19836 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19837 found="yes"
19838 fi
19839 fi
19840
19841 if test $found = "no" ; then
19842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19844 fi
19845
19846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19848 fi
19849
19850 CFLAGS="$CFLAGS -errwarn"
19851
19852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19853 printf %s "checking if $CC supports -errwarn... " >&6; }
19854 cacheid=xorg_cv_cc_flag__errwarn
19855 if eval test \${$cacheid+y}
19856 then :
19857 printf %s "(cached) " >&6
19858 else $as_nop
19859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19860 /* end confdefs.h. */
19861 int i;
19862 int
19863 main (void)
19864 {
19865
19866 ;
19867 return 0;
19868 }
19869 _ACEOF
19870 if ac_fn_c_try_link "$LINENO"
19871 then :
19872 eval $cacheid=yes
19873 else $as_nop
19874 eval $cacheid=no
19875 fi
19876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19877 conftest$ac_exeext conftest.$ac_ext
19878 fi
19879
19880
19881 CFLAGS="$xorg_testset_save_CFLAGS"
19882
19883 eval supported=\$$cacheid
19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19885 printf "%s\n" "$supported" >&6; }
19886 if test "$supported" = "yes" ; then
19887 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19888 found="yes"
19889 fi
19890 fi
19891
19892
19893
19894 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19895 # activate it with -Werror, so we add it here explicitly.
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909 xorg_testset_save_CFLAGS="$CFLAGS"
19910
19911 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19914 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19915 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19916 then :
19917 printf %s "(cached) " >&6
19918 else $as_nop
19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h. */
19921 int i;
19922 _ACEOF
19923 if ac_fn_c_try_compile "$LINENO"
19924 then :
19925 xorg_cv_cc_flag_unknown_warning_option=yes
19926 else $as_nop
19927 xorg_cv_cc_flag_unknown_warning_option=no
19928 fi
19929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19930 fi
19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19932 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19934 CFLAGS="$xorg_testset_save_CFLAGS"
19935 fi
19936
19937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19940 fi
19941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19943 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19944 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19945 then :
19946 printf %s "(cached) " >&6
19947 else $as_nop
19948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949 /* end confdefs.h. */
19950 int i;
19951 _ACEOF
19952 if ac_fn_c_try_compile "$LINENO"
19953 then :
19954 xorg_cv_cc_flag_unused_command_line_argument=yes
19955 else $as_nop
19956 xorg_cv_cc_flag_unused_command_line_argument=no
19957 fi
19958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19959 fi
19960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19961 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19963 CFLAGS="$xorg_testset_save_CFLAGS"
19964 fi
19965
19966 found="no"
19967
19968 if test $found = "no" ; then
19969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19971 fi
19972
19973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19975 fi
19976
19977 CFLAGS="$CFLAGS -Werror=attributes"
19978
19979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19980 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19981 cacheid=xorg_cv_cc_flag__Werror_attributes
19982 if eval test \${$cacheid+y}
19983 then :
19984 printf %s "(cached) " >&6
19985 else $as_nop
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19988 int i;
19989 int
19990 main (void)
19991 {
19992
19993 ;
19994 return 0;
19995 }
19996 _ACEOF
19997 if ac_fn_c_try_link "$LINENO"
19998 then :
19999 eval $cacheid=yes
20000 else $as_nop
20001 eval $cacheid=no
20002 fi
20003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20004 conftest$ac_exeext conftest.$ac_ext
20005 fi
20006
20007
20008 CFLAGS="$xorg_testset_save_CFLAGS"
20009
20010 eval supported=\$$cacheid
20011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20012 printf "%s\n" "$supported" >&6; }
20013 if test "$supported" = "yes" ; then
20014 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20015 found="yes"
20016 fi
20017 fi
20018
20019
20020
20021 if test "x$STRICT_COMPILE" = "xyes"; then
20022 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20023 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20024 fi
20025
20026
20027
20028
20029
20030
20031 cat >>confdefs.h <<_ACEOF
20032 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20033 _ACEOF
20034
20035 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20036 if test "x$PVM" = "x"; then
20037 PVM="0"
20038 fi
20039
20040 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20041
20042 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20043 if test "x$PVP" = "x"; then
20044 PVP="0"
20045 fi
20046
20047 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20048
20049
20050
20051 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20052 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20053 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20054 touch \$(top_srcdir)/ChangeLog; \
20055 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20056
20057
20058
20059
20060 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20061 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20062 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20063 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20064 touch \$(top_srcdir)/INSTALL; \
20065 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20066
20067
20068
20069
20070
20071
20072 case $host_os in
20073 solaris*)
20074 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20075 # check for a man page file found in later versions that use
20076 # traditional section numbers instead
20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20078 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20079 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20080 then :
20081 printf %s "(cached) " >&6
20082 else $as_nop
20083 test "$cross_compiling" = yes &&
20084 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20085 if test -r "/usr/share/man/man7/attributes.7"; then
20086 ac_cv_file__usr_share_man_man7_attributes_7=yes
20087 else
20088 ac_cv_file__usr_share_man_man7_attributes_7=no
20089 fi
20090 fi
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20092 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20093 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20094 then :
20095 SYSV_MAN_SECTIONS=false
20096 else $as_nop
20097 SYSV_MAN_SECTIONS=true
20098 fi
20099
20100 ;;
20101 *) SYSV_MAN_SECTIONS=false ;;
20102 esac
20103
20104 if test x$APP_MAN_SUFFIX = x ; then
20105 APP_MAN_SUFFIX=1
20106 fi
20107 if test x$APP_MAN_DIR = x ; then
20108 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20109 fi
20110
20111 if test x$LIB_MAN_SUFFIX = x ; then
20112 LIB_MAN_SUFFIX=3
20113 fi
20114 if test x$LIB_MAN_DIR = x ; then
20115 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20116 fi
20117
20118 if test x$FILE_MAN_SUFFIX = x ; then
20119 case $SYSV_MAN_SECTIONS in
20120 true) FILE_MAN_SUFFIX=4 ;;
20121 *) FILE_MAN_SUFFIX=5 ;;
20122 esac
20123 fi
20124 if test x$FILE_MAN_DIR = x ; then
20125 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20126 fi
20127
20128 if test x$MISC_MAN_SUFFIX = x ; then
20129 case $SYSV_MAN_SECTIONS in
20130 true) MISC_MAN_SUFFIX=5 ;;
20131 *) MISC_MAN_SUFFIX=7 ;;
20132 esac
20133 fi
20134 if test x$MISC_MAN_DIR = x ; then
20135 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20136 fi
20137
20138 if test x$DRIVER_MAN_SUFFIX = x ; then
20139 case $SYSV_MAN_SECTIONS in
20140 true) DRIVER_MAN_SUFFIX=7 ;;
20141 *) DRIVER_MAN_SUFFIX=4 ;;
20142 esac
20143 fi
20144 if test x$DRIVER_MAN_DIR = x ; then
20145 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20146 fi
20147
20148 if test x$ADMIN_MAN_SUFFIX = x ; then
20149 case $SYSV_MAN_SECTIONS in
20150 true) ADMIN_MAN_SUFFIX=1m ;;
20151 *) ADMIN_MAN_SUFFIX=8 ;;
20152 esac
20153 fi
20154 if test x$ADMIN_MAN_DIR = x ; then
20155 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20156 fi
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172 XORG_MAN_PAGE="X Version 11"
20173
20174 MAN_SUBSTS="\
20175 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20176 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20177 -e 's|__xservername__|Xorg|g' \
20178 -e 's|__xconfigfile__|xorg.conf|g' \
20179 -e 's|__projectroot__|\$(prefix)|g' \
20180 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20181 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20182 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20183 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20184 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20185 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20186 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20187
20188
20189
20190 # Check whether --enable-silent-rules was given.
20191 if test ${enable_silent_rules+y}
20192 then :
20193 enableval=$enable_silent_rules;
20194 fi
20195
20196 case $enable_silent_rules in # (((
20197 yes) AM_DEFAULT_VERBOSITY=0;;
20198 no) AM_DEFAULT_VERBOSITY=1;;
20199 *) AM_DEFAULT_VERBOSITY=0;;
20200 esac
20201 am_make=${MAKE-make}
20202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
20203 printf %s "checking whether $am_make supports nested variables... " >&6; }
20204 if test ${am_cv_make_support_nested_variables+y}
20205 then :
20206 printf %s "(cached) " >&6
20207 else $as_nop
20208 if printf "%s\n" 'TRUE=$(BAR$(V))
20209 BAR0=false
20210 BAR1=true
20211 V=1
20212 am__doit:
20213 @$(TRUE)
20214 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
20215 am_cv_make_support_nested_variables=yes
20216 else
20217 am_cv_make_support_nested_variables=no
20218 fi
20219 fi
20220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
20221 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
20222 if test $am_cv_make_support_nested_variables = yes; then
20223 AM_V='$(V)'
20224 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20225 else
20226 AM_V=$AM_DEFAULT_VERBOSITY
20227 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20228 fi
20229 AM_BACKSLASH='\'
20230
20231
20232
20233 # Checks for libraries.
20234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
20235 printf %s "checking for rint in -lm... " >&6; }
20236 if test ${ac_cv_lib_m_rint+y}
20237 then :
20238 printf %s "(cached) " >&6
20239 else $as_nop
20240 ac_check_lib_save_LIBS=$LIBS
20241 LIBS="-lm $LIBS"
20242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h. */
20244
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248 char rint ();
20249 int
20250 main (void)
20251 {
20252 return rint ();
20253 ;
20254 return 0;
20255 }
20256 _ACEOF
20257 if ac_fn_c_try_link "$LINENO"
20258 then :
20259 ac_cv_lib_m_rint=yes
20260 else $as_nop
20261 ac_cv_lib_m_rint=no
20262 fi
20263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20264 conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_check_lib_save_LIBS
20266 fi
20267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
20268 printf "%s\n" "$ac_cv_lib_m_rint" >&6; }
20269 if test "x$ac_cv_lib_m_rint" = xyes
20270 then :
20271 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
20272
20273 LIBS="-lm $LIBS"
20274
20275 fi
20276
20277
20278 XPROTOS="xproto xext kbproto inputproto randrproto"
20279
20280 # Obtain compiler/linker options from server and required extensions
20281
20282 pkg_failed=no
20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.13.0 $XPROTOS" >&5
20284 printf %s "checking for xorg-server >= 1.13.0 $XPROTOS... " >&6; }
20285
20286 if test -n "$XORG_CFLAGS"; then
20287 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20288 elif test -n "$PKG_CONFIG"; then
20289 if test -n "$PKG_CONFIG" && \
20290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13.0 \$XPROTOS\""; } >&5
20291 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13.0 $XPROTOS") 2>&5
20292 ac_status=$?
20293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20294 test $ac_status = 0; }; then
20295 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13.0 $XPROTOS" 2>/dev/null`
20296 test "x$?" != "x0" && pkg_failed=yes
20297 else
20298 pkg_failed=yes
20299 fi
20300 else
20301 pkg_failed=untried
20302 fi
20303 if test -n "$XORG_LIBS"; then
20304 pkg_cv_XORG_LIBS="$XORG_LIBS"
20305 elif test -n "$PKG_CONFIG"; then
20306 if test -n "$PKG_CONFIG" && \
20307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13.0 \$XPROTOS\""; } >&5
20308 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13.0 $XPROTOS") 2>&5
20309 ac_status=$?
20310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20311 test $ac_status = 0; }; then
20312 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13.0 $XPROTOS" 2>/dev/null`
20313 test "x$?" != "x0" && pkg_failed=yes
20314 else
20315 pkg_failed=yes
20316 fi
20317 else
20318 pkg_failed=untried
20319 fi
20320
20321
20322
20323 if test $pkg_failed = yes; then
20324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20325 printf "%s\n" "no" >&6; }
20326
20327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20328 _pkg_short_errors_supported=yes
20329 else
20330 _pkg_short_errors_supported=no
20331 fi
20332 if test $_pkg_short_errors_supported = yes; then
20333 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13.0 $XPROTOS" 2>&1`
20334 else
20335 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13.0 $XPROTOS" 2>&1`
20336 fi
20337 # Put the nasty error message in config.log where it belongs
20338 echo "$XORG_PKG_ERRORS" >&5
20339
20340 as_fn_error $? "Package requirements (xorg-server >= 1.13.0 $XPROTOS) were not met:
20341
20342 $XORG_PKG_ERRORS
20343
20344 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20345 installed software in a non-standard prefix.
20346
20347 Alternatively, you may set the environment variables XORG_CFLAGS
20348 and XORG_LIBS to avoid the need to call pkg-config.
20349 See the pkg-config man page for more details." "$LINENO" 5
20350 elif test $pkg_failed = untried; then
20351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20352 printf "%s\n" "no" >&6; }
20353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20354 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20355 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20356 is in your PATH or set the PKG_CONFIG environment variable to the full
20357 path to pkg-config.
20358
20359 Alternatively, you may set the environment variables XORG_CFLAGS
20360 and XORG_LIBS to avoid the need to call pkg-config.
20361 See the pkg-config man page for more details.
20362
20363 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20364 See \`config.log' for more details" "$LINENO" 5; }
20365 else
20366 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20367 XORG_LIBS=$pkg_cv_XORG_LIBS
20368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369 printf "%s\n" "yes" >&6; }
20370
20371 fi
20372
20373 # Obtain compiler/linker options for the xsetwacom tool
20374
20375 pkg_failed=no
20376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11 xi xrandr xinerama $XPROTOS" >&5
20377 printf %s "checking for x11 xi xrandr xinerama $XPROTOS... " >&6; }
20378
20379 if test -n "$X11_CFLAGS"; then
20380 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
20381 elif test -n "$PKG_CONFIG"; then
20382 if test -n "$PKG_CONFIG" && \
20383 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama \$XPROTOS\""; } >&5
20384 ($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama $XPROTOS") 2>&5
20385 ac_status=$?
20386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20387 test $ac_status = 0; }; then
20388 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xi xrandr xinerama $XPROTOS" 2>/dev/null`
20389 test "x$?" != "x0" && pkg_failed=yes
20390 else
20391 pkg_failed=yes
20392 fi
20393 else
20394 pkg_failed=untried
20395 fi
20396 if test -n "$X11_LIBS"; then
20397 pkg_cv_X11_LIBS="$X11_LIBS"
20398 elif test -n "$PKG_CONFIG"; then
20399 if test -n "$PKG_CONFIG" && \
20400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama \$XPROTOS\""; } >&5
20401 ($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama $XPROTOS") 2>&5
20402 ac_status=$?
20403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20404 test $ac_status = 0; }; then
20405 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xi xrandr xinerama $XPROTOS" 2>/dev/null`
20406 test "x$?" != "x0" && pkg_failed=yes
20407 else
20408 pkg_failed=yes
20409 fi
20410 else
20411 pkg_failed=untried
20412 fi
20413
20414
20415
20416 if test $pkg_failed = yes; then
20417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20418 printf "%s\n" "no" >&6; }
20419
20420 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20421 _pkg_short_errors_supported=yes
20422 else
20423 _pkg_short_errors_supported=no
20424 fi
20425 if test $_pkg_short_errors_supported = yes; then
20426 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xi xrandr xinerama $XPROTOS" 2>&1`
20427 else
20428 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xi xrandr xinerama $XPROTOS" 2>&1`
20429 fi
20430 # Put the nasty error message in config.log where it belongs
20431 echo "$X11_PKG_ERRORS" >&5
20432
20433 as_fn_error $? "Package requirements (x11 xi xrandr xinerama $XPROTOS) were not met:
20434
20435 $X11_PKG_ERRORS
20436
20437 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20438 installed software in a non-standard prefix.
20439
20440 Alternatively, you may set the environment variables X11_CFLAGS
20441 and X11_LIBS to avoid the need to call pkg-config.
20442 See the pkg-config man page for more details." "$LINENO" 5
20443 elif test $pkg_failed = untried; then
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20445 printf "%s\n" "no" >&6; }
20446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20448 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20449 is in your PATH or set the PKG_CONFIG environment variable to the full
20450 path to pkg-config.
20451
20452 Alternatively, you may set the environment variables X11_CFLAGS
20453 and X11_LIBS to avoid the need to call pkg-config.
20454 See the pkg-config man page for more details.
20455
20456 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20457 See \`config.log' for more details" "$LINENO" 5; }
20458 else
20459 X11_CFLAGS=$pkg_cv_X11_CFLAGS
20460 X11_LIBS=$pkg_cv_X11_LIBS
20461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20462 printf "%s\n" "yes" >&6; }
20463
20464 fi
20465
20466 # Obtain compiler/linker options for libudev used by ISDV4 code
20467
20468 pkg_failed=no
20469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5
20470 printf %s "checking for libudev... " >&6; }
20471
20472 if test -n "$UDEV_CFLAGS"; then
20473 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
20474 elif test -n "$PKG_CONFIG"; then
20475 if test -n "$PKG_CONFIG" && \
20476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20477 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20478 ac_status=$?
20479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20480 test $ac_status = 0; }; then
20481 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
20482 test "x$?" != "x0" && pkg_failed=yes
20483 else
20484 pkg_failed=yes
20485 fi
20486 else
20487 pkg_failed=untried
20488 fi
20489 if test -n "$UDEV_LIBS"; then
20490 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
20491 elif test -n "$PKG_CONFIG"; then
20492 if test -n "$PKG_CONFIG" && \
20493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20494 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20495 ac_status=$?
20496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20497 test $ac_status = 0; }; then
20498 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
20499 test "x$?" != "x0" && pkg_failed=yes
20500 else
20501 pkg_failed=yes
20502 fi
20503 else
20504 pkg_failed=untried
20505 fi
20506
20507
20508
20509 if test $pkg_failed = yes; then
20510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20511 printf "%s\n" "no" >&6; }
20512
20513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20514 _pkg_short_errors_supported=yes
20515 else
20516 _pkg_short_errors_supported=no
20517 fi
20518 if test $_pkg_short_errors_supported = yes; then
20519 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
20520 else
20521 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
20522 fi
20523 # Put the nasty error message in config.log where it belongs
20524 echo "$UDEV_PKG_ERRORS" >&5
20525
20526 as_fn_error $? "Package requirements (libudev) were not met:
20527
20528 $UDEV_PKG_ERRORS
20529
20530 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20531 installed software in a non-standard prefix.
20532
20533 Alternatively, you may set the environment variables UDEV_CFLAGS
20534 and UDEV_LIBS to avoid the need to call pkg-config.
20535 See the pkg-config man page for more details." "$LINENO" 5
20536 elif test $pkg_failed = untried; then
20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20538 printf "%s\n" "no" >&6; }
20539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20540 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20541 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20542 is in your PATH or set the PKG_CONFIG environment variable to the full
20543 path to pkg-config.
20544
20545 Alternatively, you may set the environment variables UDEV_CFLAGS
20546 and UDEV_LIBS to avoid the need to call pkg-config.
20547 See the pkg-config man page for more details.
20548
20549 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20550 See \`config.log' for more details" "$LINENO" 5; }
20551 else
20552 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
20553 UDEV_LIBS=$pkg_cv_UDEV_LIBS
20554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20555 printf "%s\n" "yes" >&6; }
20556
20557 fi
20558
20559 # X Server SDK location is required to install wacom header files
20560 # This location is also relayed in the xorg-wacom.pc file
20561 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
20562
20563 # Workaround overriding sdkdir to be able to create a tarball when user has no
20564 # write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
20565
20566 # Check whether --with-sdkdir was given.
20567 if test ${with_sdkdir+y}
20568 then :
20569 withval=$with_sdkdir; sdkdir="$withval"
20570 fi
20571
20572
20573
20574 DRIVER_NAME=wacom
20575
20576
20577 # -----------------------------------------------------------------------------
20578 # Configuration options
20579 # -----------------------------------------------------------------------------
20580 # Define a configure option for code debugging
20581 # Check whether --enable-debug was given.
20582 if test ${enable_debug+y}
20583 then :
20584 enableval=$enable_debug; DEBUGGING=$enableval
20585 else $as_nop
20586 DEBUGGING=yes
20587 fi
20588
20589
20590 # Define the C preprocessor macro DEBUG in config.h
20591 if test "x$DEBUGGING" = xyes; then
20592
20593 printf "%s\n" "#define DEBUG 1" >>confdefs.h
20594
20595 fi
20596
20597 # Define a configure option for an alternate input module directory
20598
20599 # Check whether --with-xorg-module-dir was given.
20600 if test ${with_xorg_module_dir+y}
20601 then :
20602 withval=$with_xorg_module_dir; moduledir="$withval"
20603 else $as_nop
20604 moduledir="$libdir/xorg/modules"
20605 fi
20606
20607 inputdir=${moduledir}/input
20608
20609
20610 # Define a configure option for an alternate X Server configuration directory
20611 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
20612
20613 # Check whether --with-xorg-conf-dir was given.
20614 if test ${with_xorg_conf_dir+y}
20615 then :
20616 withval=$with_xorg_conf_dir; configdir="$withval"
20617 else $as_nop
20618 configdir="$sysconfigdir"
20619 fi
20620
20621
20622 if test "x$configdir" != "x"; then
20623 HAS_XORG_CONF_DIR_TRUE=
20624 HAS_XORG_CONF_DIR_FALSE='#'
20625 else
20626 HAS_XORG_CONF_DIR_TRUE='#'
20627 HAS_XORG_CONF_DIR_FALSE=
20628 fi
20629
20630
20631 # Check whether --enable-hal-fdi-preprobe-quirk was given.
20632 if test ${enable_hal_fdi_preprobe_quirk+y}
20633 then :
20634 enableval=$enable_hal_fdi_preprobe_quirk; USE_HAL_FDI_PREPROBE_QUIRK=$enableval
20635 else $as_nop
20636 USE_HAL_FDI_PREPROBE_QUIRK=auto
20637 fi
20638
20639 if test "x$USE_HAL_FDI_PREPROBE_QUIRK" = xauto ; then
20640 # Extract the first word of "lshal", so it can be a program name with args.
20641 set dummy lshal; ac_word=$2
20642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20643 printf %s "checking for $ac_word... " >&6; }
20644 if test ${ac_cv_prog_LSHAL+y}
20645 then :
20646 printf %s "(cached) " >&6
20647 else $as_nop
20648 if test -n "$LSHAL"; then
20649 ac_cv_prog_LSHAL="$LSHAL" # Let the user override the test.
20650 else
20651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20652 for as_dir in $PATH
20653 do
20654 IFS=$as_save_IFS
20655 case $as_dir in #(((
20656 '') as_dir=./ ;;
20657 */) ;;
20658 *) as_dir=$as_dir/ ;;
20659 esac
20660 for ac_exec_ext in '' $ac_executable_extensions; do
20661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20662 ac_cv_prog_LSHAL="yes"
20663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20664 break 2
20665 fi
20666 done
20667 done
20668 IFS=$as_save_IFS
20669
20670 test -z "$ac_cv_prog_LSHAL" && ac_cv_prog_LSHAL="no"
20671 fi
20672 fi
20673 LSHAL=$ac_cv_prog_LSHAL
20674 if test -n "$LSHAL"; then
20675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LSHAL" >&5
20676 printf "%s\n" "$LSHAL" >&6; }
20677 else
20678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20679 printf "%s\n" "no" >&6; }
20680 fi
20681
20682
20683 # Extract the first word of "hal-set-property", so it can be a program name with args.
20684 set dummy hal-set-property; ac_word=$2
20685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20686 printf %s "checking for $ac_word... " >&6; }
20687 if test ${ac_cv_prog_HAL_SET_PROPERTY+y}
20688 then :
20689 printf %s "(cached) " >&6
20690 else $as_nop
20691 if test -n "$HAL_SET_PROPERTY"; then
20692 ac_cv_prog_HAL_SET_PROPERTY="$HAL_SET_PROPERTY" # Let the user override the test.
20693 else
20694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20695 for as_dir in $PATH
20696 do
20697 IFS=$as_save_IFS
20698 case $as_dir in #(((
20699 '') as_dir=./ ;;
20700 */) ;;
20701 *) as_dir=$as_dir/ ;;
20702 esac
20703 for ac_exec_ext in '' $ac_executable_extensions; do
20704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20705 ac_cv_prog_HAL_SET_PROPERTY="yes"
20706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20707 break 2
20708 fi
20709 done
20710 done
20711 IFS=$as_save_IFS
20712
20713 test -z "$ac_cv_prog_HAL_SET_PROPERTY" && ac_cv_prog_HAL_SET_PROPERTY="no"
20714 fi
20715 fi
20716 HAL_SET_PROPERTY=$ac_cv_prog_HAL_SET_PROPERTY
20717 if test -n "$HAL_SET_PROPERTY"; then
20718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAL_SET_PROPERTY" >&5
20719 printf "%s\n" "$HAL_SET_PROPERTY" >&6; }
20720 else
20721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20722 printf "%s\n" "no" >&6; }
20723 fi
20724
20725
20726 if test "x$LSHAL" = "xyes" -a "x$HAL_SET_PROPERTY" = "xyes"
20727 then :
20728 USE_HAL_FDI_PREPROBE_QUIRK=yes
20729 else $as_nop
20730 USE_HAL_FDI_PREPROBE_QUIRK=no
20731 fi
20732 fi
20733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if HAL preprobe quirk should be installed" >&5
20734 printf %s "checking if HAL preprobe quirk should be installed... " >&6; }
20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_HAL_FDI_PREPROBE_QUIRK" >&5
20736 printf "%s\n" "$USE_HAL_FDI_PREPROBE_QUIRK" >&6; }
20737 if test "x$USE_HAL_FDI_PREPROBE_QUIRK" = xyes; then
20738 USE_HAL_FDI_PREPROBE_QUIRK_TRUE=
20739 USE_HAL_FDI_PREPROBE_QUIRK_FALSE='#'
20740 else
20741 USE_HAL_FDI_PREPROBE_QUIRK_TRUE='#'
20742 USE_HAL_FDI_PREPROBE_QUIRK_FALSE=
20743 fi
20744
20745
20746 # Check whether --enable-fuzz-interface was given.
20747 if test ${enable_fuzz_interface+y}
20748 then :
20749 enableval=$enable_fuzz_interface; FUZZINTERFACE=$enableval
20750 else $as_nop
20751 FUZZINTERFACE=no
20752 fi
20753
20754 if test "x$FUZZINTERFACE" = xyes; then
20755 FUZZINTERFACE_TRUE=
20756 FUZZINTERFACE_FALSE='#'
20757 else
20758 FUZZINTERFACE_TRUE='#'
20759 FUZZINTERFACE_FALSE=
20760 fi
20761
20762
20763 # Check whether --enable-unit-tests was given.
20764 if test ${enable_unit_tests+y}
20765 then :
20766 enableval=$enable_unit_tests; UNITTESTS=$enableval
20767 else $as_nop
20768 UNITTESTS=auto
20769 fi
20770
20771
20772 # Check for the availability of dlsym and friends
20773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
20774 printf %s "checking for dlsym in -ldl... " >&6; }
20775 if test ${ac_cv_lib_dl_dlsym+y}
20776 then :
20777 printf %s "(cached) " >&6
20778 else $as_nop
20779 ac_check_lib_save_LIBS=$LIBS
20780 LIBS="-ldl $LIBS"
20781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20782 /* end confdefs.h. */
20783
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20787 char dlsym ();
20788 int
20789 main (void)
20790 {
20791 return dlsym ();
20792 ;
20793 return 0;
20794 }
20795 _ACEOF
20796 if ac_fn_c_try_link "$LINENO"
20797 then :
20798 ac_cv_lib_dl_dlsym=yes
20799 else $as_nop
20800 ac_cv_lib_dl_dlsym=no
20801 fi
20802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20803 conftest$ac_exeext conftest.$ac_ext
20804 LIBS=$ac_check_lib_save_LIBS
20805 fi
20806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
20807 printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; }
20808 if test "x$ac_cv_lib_dl_dlsym" = xyes
20809 then :
20810 libdl_available="yes"
20811 else $as_nop
20812 libdl_available="no"
20813
20814 fi
20815
20816
20817 # If unittests aren't explicitly enabled, check for required support
20818 if test "x$UNITTESTS" = xauto; then
20819 UNITTESTS=$libdl_available
20820 fi
20821
20822 if test "x$UNITTESTS" = xyes; then
20823 if test "x$libdl_available" = xno; then
20824 as_fn_error $? "dlsym required to build unit tests" "$LINENO" 5
20825 fi
20826
20827 printf "%s\n" "#define UNITTESTS 1" >>confdefs.h
20828
20829 fi
20830 if test "x$UNITTESTS" = xyes; then
20831 UNITTESTS_TRUE=
20832 UNITTESTS_FALSE='#'
20833 else
20834 UNITTESTS_TRUE='#'
20835 UNITTESTS_FALSE=
20836 fi
20837
20838
20839
20840 # Check whether --with-systemd-unit-dir was given.
20841 if test ${with_systemd_unit_dir+y}
20842 then :
20843 withval=$with_systemd_unit_dir; unitdir="$withval"
20844 else $as_nop
20845 unitdir="$libdir/systemd/system"
20846 fi
20847
20848 SYSTEMD_UNIT_DIR=${unitdir}
20849
20850 if test "x$SYSTEMD_UNIT_DIR" != "xno"; then
20851 HAVE_SYSTEMD_UNIT_DIR_TRUE=
20852 HAVE_SYSTEMD_UNIT_DIR_FALSE='#'
20853 else
20854 HAVE_SYSTEMD_UNIT_DIR_TRUE='#'
20855 HAVE_SYSTEMD_UNIT_DIR_FALSE=
20856 fi
20857
20858
20859
20860 # Check whether --with-udev-rules-dir was given.
20861 if test ${with_udev_rules_dir+y}
20862 then :
20863 withval=$with_udev_rules_dir; udevdir="$withval"
20864 else $as_nop
20865 udevdir="$libdir/udev/rules.d"
20866 fi
20867
20868 UDEV_RULES_DIR=${udevdir}
20869
20870 if test "x$UDEV_RULES_DIR" != "xno"; then
20871 HAVE_UDEV_RULES_DIR_TRUE=
20872 HAVE_UDEV_RULES_DIR_FALSE='#'
20873 else
20874 HAVE_UDEV_RULES_DIR_TRUE='#'
20875 HAVE_UDEV_RULES_DIR_FALSE=
20876 fi
20877
20878
20879
20880 # -----------------------------------------------------------------------------
20881
20882 ac_config_files="$ac_config_files Makefile conf/Makefile src/Makefile man/Makefile include/Makefile tools/Makefile test/Makefile xorg-wacom.pc"
20883
20884 cat >confcache <<\_ACEOF
20885 # This file is a shell script that caches the results of configure
20886 # tests run on this system so they can be shared between configure
20887 # scripts and configure runs, see configure's option --config-cache.
20888 # It is not useful on other systems. If it contains results you don't
20889 # want to keep, you may remove or edit it.
20890 #
20891 # config.status only pays attention to the cache file if you give it
20892 # the --recheck option to rerun configure.
20893 #
20894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20896 # following values.
20897
20898 _ACEOF
20899
20900 # The following way of writing the cache mishandles newlines in values,
20901 # but we know of no workaround that is simple, portable, and efficient.
20902 # So, we kill variables containing newlines.
20903 # Ultrix sh set writes to stderr and can't be redirected directly,
20904 # and sets the high bit in the cache file unless we assign to the vars.
20905 (
20906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20907 eval ac_val=\$$ac_var
20908 case $ac_val in #(
20909 *${as_nl}*)
20910 case $ac_var in #(
20911 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20912 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20913 esac
20914 case $ac_var in #(
20915 _ | IFS | as_nl) ;; #(
20916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20917 *) { eval $ac_var=; unset $ac_var;} ;;
20918 esac ;;
20919 esac
20920 done
20921
20922 (set) 2>&1 |
20923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20924 *${as_nl}ac_space=\ *)
20925 # `set' does not quote correctly, so add quotes: double-quote
20926 # substitution turns \\\\ into \\, and sed turns \\ into \.
20927 sed -n \
20928 "s/'/'\\\\''/g;
20929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20930 ;; #(
20931 *)
20932 # `set' quotes correctly as required by POSIX, so do not add quotes.
20933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20934 ;;
20935 esac |
20936 sort
20937 ) |
20938 sed '
20939 /^ac_cv_env_/b end
20940 t clear
20941 :clear
20942 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20943 t end
20944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20945 :end' >>confcache
20946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20947 if test -w "$cache_file"; then
20948 if test "x$cache_file" != "x/dev/null"; then
20949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20950 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20951 if test ! -f "$cache_file" || test -h "$cache_file"; then
20952 cat confcache >"$cache_file"
20953 else
20954 case $cache_file in #(
20955 */* | ?:*)
20956 mv -f confcache "$cache_file"$$ &&
20957 mv -f "$cache_file"$$ "$cache_file" ;; #(
20958 *)
20959 mv -f confcache "$cache_file" ;;
20960 esac
20961 fi
20962 fi
20963 else
20964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20965 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20966 fi
20967 fi
20968 rm -f confcache
20969
20970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20971 # Let make expand exec_prefix.
20972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20973
20974 DEFS=-DHAVE_CONFIG_H
20975
20976 ac_libobjs=
20977 ac_ltlibobjs=
20978 U=
20979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20980 # 1. Remove the extension, and $U if already installed.
20981 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20982 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20984 # will be set to the directory where LIBOBJS objects are built.
20985 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20986 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20987 done
20988 LIBOBJS=$ac_libobjs
20989
20990 LTLIBOBJS=$ac_ltlibobjs
20991
20992
20993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20994 printf %s "checking that generated files are newer than configure... " >&6; }
20995 if test -n "$am_sleep_pid"; then
20996 # Hide warnings about reused PIDs.
20997 wait $am_sleep_pid 2>/dev/null
20998 fi
20999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21000 printf "%s\n" "done" >&6; }
21001 if test -n "$EXEEXT"; then
21002 am__EXEEXT_TRUE=
21003 am__EXEEXT_FALSE='#'
21004 else
21005 am__EXEEXT_TRUE='#'
21006 am__EXEEXT_FALSE=
21007 fi
21008
21009 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21010 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21012 fi
21013 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21014 as_fn_error $? "conditional \"AMDEP\" was never defined.
21015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21016 fi
21017 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21018 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21020 fi
21021 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
21022 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
21023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21024 fi
21025 if test -z "${USE_HAL_FDI_PREPROBE_QUIRK_TRUE}" && test -z "${USE_HAL_FDI_PREPROBE_QUIRK_FALSE}"; then
21026 as_fn_error $? "conditional \"USE_HAL_FDI_PREPROBE_QUIRK\" was never defined.
21027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21028 fi
21029 if test -z "${FUZZINTERFACE_TRUE}" && test -z "${FUZZINTERFACE_FALSE}"; then
21030 as_fn_error $? "conditional \"FUZZINTERFACE\" was never defined.
21031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21032 fi
21033 if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then
21034 as_fn_error $? "conditional \"UNITTESTS\" was never defined.
21035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21036 fi
21037 if test -z "${HAVE_SYSTEMD_UNIT_DIR_TRUE}" && test -z "${HAVE_SYSTEMD_UNIT_DIR_FALSE}"; then
21038 as_fn_error $? "conditional \"HAVE_SYSTEMD_UNIT_DIR\" was never defined.
21039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21040 fi
21041 if test -z "${HAVE_UDEV_RULES_DIR_TRUE}" && test -z "${HAVE_UDEV_RULES_DIR_FALSE}"; then
21042 as_fn_error $? "conditional \"HAVE_UDEV_RULES_DIR\" was never defined.
21043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21044 fi
21045
21046 : "${CONFIG_STATUS=./config.status}"
21047 ac_write_fail=0
21048 ac_clean_files_save=$ac_clean_files
21049 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21051 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21052 as_write_fail=0
21053 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21054 #! $SHELL
21055 # Generated by $as_me.
21056 # Run this file to recreate the current configuration.
21057 # Compiler output produced by configure, useful for debugging
21058 # configure, is in config.log if it exists.
21059
21060 debug=false
21061 ac_cs_recheck=false
21062 ac_cs_silent=false
21063
21064 SHELL=\${CONFIG_SHELL-$SHELL}
21065 export SHELL
21066 _ASEOF
21067 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21068 ## -------------------- ##
21069 ## M4sh Initialization. ##
21070 ## -------------------- ##
21071
21072 # Be more Bourne compatible
21073 DUALCASE=1; export DUALCASE # for MKS sh
21074 as_nop=:
21075 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21076 then :
21077 emulate sh
21078 NULLCMD=:
21079 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21080 # is contrary to our usage. Disable this feature.
21081 alias -g '${1+"$@"}'='"$@"'
21082 setopt NO_GLOB_SUBST
21083 else $as_nop
21084 case `(set -o) 2>/dev/null` in #(
21085 *posix*) :
21086 set -o posix ;; #(
21087 *) :
21088 ;;
21089 esac
21090 fi
21091
21092
21093
21094 # Reset variables that may have inherited troublesome values from
21095 # the environment.
21096
21097 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21098 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21099 # side effect of setting IFS to empty, thus disabling word splitting.)
21100 # Quoting is to prevent editors from complaining about space-tab.
21101 as_nl='
21102 '
21103 export as_nl
21104 IFS=" "" $as_nl"
21105
21106 PS1='$ '
21107 PS2='> '
21108 PS4='+ '
21109
21110 # Ensure predictable behavior from utilities with locale-dependent output.
21111 LC_ALL=C
21112 export LC_ALL
21113 LANGUAGE=C
21114 export LANGUAGE
21115
21116 # We cannot yet rely on "unset" to work, but we need these variables
21117 # to be unset--not just set to an empty or harmless value--now, to
21118 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21119 # also avoids known problems related to "unset" and subshell syntax
21120 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21121 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21122 do eval test \${$as_var+y} \
21123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21124 done
21125
21126 # Ensure that fds 0, 1, and 2 are open.
21127 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21128 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21129 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21130
21131 # The user is always right.
21132 if ${PATH_SEPARATOR+false} :; then
21133 PATH_SEPARATOR=:
21134 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21135 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21136 PATH_SEPARATOR=';'
21137 }
21138 fi
21139
21140
21141 # Find who we are. Look in the path if we contain no directory separator.
21142 as_myself=
21143 case $0 in #((
21144 *[\\/]* ) as_myself=$0 ;;
21145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21146 for as_dir in $PATH
21147 do
21148 IFS=$as_save_IFS
21149 case $as_dir in #(((
21150 '') as_dir=./ ;;
21151 */) ;;
21152 *) as_dir=$as_dir/ ;;
21153 esac
21154 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21155 done
21156 IFS=$as_save_IFS
21157
21158 ;;
21159 esac
21160 # We did not find ourselves, most probably we were run as `sh COMMAND'
21161 # in which case we are not to be found in the path.
21162 if test "x$as_myself" = x; then
21163 as_myself=$0
21164 fi
21165 if test ! -f "$as_myself"; then
21166 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21167 exit 1
21168 fi
21169
21170
21171
21172 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21173 # ----------------------------------------
21174 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21175 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21176 # script with STATUS, using 1 if that was 0.
21177 as_fn_error ()
21178 {
21179 as_status=$1; test $as_status -eq 0 && as_status=1
21180 if test "$4"; then
21181 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21183 fi
21184 printf "%s\n" "$as_me: error: $2" >&2
21185 as_fn_exit $as_status
21186 } # as_fn_error
21187
21188
21189
21190 # as_fn_set_status STATUS
21191 # -----------------------
21192 # Set $? to STATUS, without forking.
21193 as_fn_set_status ()
21194 {
21195 return $1
21196 } # as_fn_set_status
21197
21198 # as_fn_exit STATUS
21199 # -----------------
21200 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21201 as_fn_exit ()
21202 {
21203 set +e
21204 as_fn_set_status $1
21205 exit $1
21206 } # as_fn_exit
21207
21208 # as_fn_unset VAR
21209 # ---------------
21210 # Portably unset VAR.
21211 as_fn_unset ()
21212 {
21213 { eval $1=; unset $1;}
21214 }
21215 as_unset=as_fn_unset
21216
21217 # as_fn_append VAR VALUE
21218 # ----------------------
21219 # Append the text in VALUE to the end of the definition contained in VAR. Take
21220 # advantage of any shell optimizations that allow amortized linear growth over
21221 # repeated appends, instead of the typical quadratic growth present in naive
21222 # implementations.
21223 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21224 then :
21225 eval 'as_fn_append ()
21226 {
21227 eval $1+=\$2
21228 }'
21229 else $as_nop
21230 as_fn_append ()
21231 {
21232 eval $1=\$$1\$2
21233 }
21234 fi # as_fn_append
21235
21236 # as_fn_arith ARG...
21237 # ------------------
21238 # Perform arithmetic evaluation on the ARGs, and store the result in the
21239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21240 # must be portable across $(()) and expr.
21241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21242 then :
21243 eval 'as_fn_arith ()
21244 {
21245 as_val=$(( $* ))
21246 }'
21247 else $as_nop
21248 as_fn_arith ()
21249 {
21250 as_val=`expr "$@" || test $? -eq 1`
21251 }
21252 fi # as_fn_arith
21253
21254
21255 if expr a : '\(a\)' >/dev/null 2>&1 &&
21256 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21257 as_expr=expr
21258 else
21259 as_expr=false
21260 fi
21261
21262 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21263 as_basename=basename
21264 else
21265 as_basename=false
21266 fi
21267
21268 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21269 as_dirname=dirname
21270 else
21271 as_dirname=false
21272 fi
21273
21274 as_me=`$as_basename -- "$0" ||
21275 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21276 X"$0" : 'X\(//\)$' \| \
21277 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21278 printf "%s\n" X/"$0" |
21279 sed '/^.*\/\([^/][^/]*\)\/*$/{
21280 s//\1/
21281 q
21282 }
21283 /^X\/\(\/\/\)$/{
21284 s//\1/
21285 q
21286 }
21287 /^X\/\(\/\).*/{
21288 s//\1/
21289 q
21290 }
21291 s/.*/./; q'`
21292
21293 # Avoid depending upon Character Ranges.
21294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21297 as_cr_digits='0123456789'
21298 as_cr_alnum=$as_cr_Letters$as_cr_digits
21299
21300
21301 # Determine whether it's possible to make 'echo' print without a newline.
21302 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21303 # for compatibility with existing Makefiles.
21304 ECHO_C= ECHO_N= ECHO_T=
21305 case `echo -n x` in #(((((
21306 -n*)
21307 case `echo 'xy\c'` in
21308 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21309 xy) ECHO_C='\c';;
21310 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21311 ECHO_T=' ';;
21312 esac;;
21313 *)
21314 ECHO_N='-n';;
21315 esac
21316
21317 # For backward compatibility with old third-party macros, we provide
21318 # the shell variables $as_echo and $as_echo_n. New code should use
21319 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21320 as_echo='printf %s\n'
21321 as_echo_n='printf %s'
21322
21323 rm -f conf$$ conf$$.exe conf$$.file
21324 if test -d conf$$.dir; then
21325 rm -f conf$$.dir/conf$$.file
21326 else
21327 rm -f conf$$.dir
21328 mkdir conf$$.dir 2>/dev/null
21329 fi
21330 if (echo >conf$$.file) 2>/dev/null; then
21331 if ln -s conf$$.file conf$$ 2>/dev/null; then
21332 as_ln_s='ln -s'
21333 # ... but there are two gotchas:
21334 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21335 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21336 # In both cases, we have to default to `cp -pR'.
21337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21338 as_ln_s='cp -pR'
21339 elif ln conf$$.file conf$$ 2>/dev/null; then
21340 as_ln_s=ln
21341 else
21342 as_ln_s='cp -pR'
21343 fi
21344 else
21345 as_ln_s='cp -pR'
21346 fi
21347 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21348 rmdir conf$$.dir 2>/dev/null
21349
21350
21351 # as_fn_mkdir_p
21352 # -------------
21353 # Create "$as_dir" as a directory, including parents if necessary.
21354 as_fn_mkdir_p ()
21355 {
21356
21357 case $as_dir in #(
21358 -*) as_dir=./$as_dir;;
21359 esac
21360 test -d "$as_dir" || eval $as_mkdir_p || {
21361 as_dirs=
21362 while :; do
21363 case $as_dir in #(
21364 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21365 *) as_qdir=$as_dir;;
21366 esac
21367 as_dirs="'$as_qdir' $as_dirs"
21368 as_dir=`$as_dirname -- "$as_dir" ||
21369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21370 X"$as_dir" : 'X\(//\)[^/]' \| \
21371 X"$as_dir" : 'X\(//\)$' \| \
21372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21373 printf "%s\n" X"$as_dir" |
21374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21375 s//\1/
21376 q
21377 }
21378 /^X\(\/\/\)[^/].*/{
21379 s//\1/
21380 q
21381 }
21382 /^X\(\/\/\)$/{
21383 s//\1/
21384 q
21385 }
21386 /^X\(\/\).*/{
21387 s//\1/
21388 q
21389 }
21390 s/.*/./; q'`
21391 test -d "$as_dir" && break
21392 done
21393 test -z "$as_dirs" || eval "mkdir $as_dirs"
21394 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21395
21396
21397 } # as_fn_mkdir_p
21398 if mkdir -p . 2>/dev/null; then
21399 as_mkdir_p='mkdir -p "$as_dir"'
21400 else
21401 test -d ./-p && rmdir ./-p
21402 as_mkdir_p=false
21403 fi
21404
21405
21406 # as_fn_executable_p FILE
21407 # -----------------------
21408 # Test if FILE is an executable regular file.
21409 as_fn_executable_p ()
21410 {
21411 test -f "$1" && test -x "$1"
21412 } # as_fn_executable_p
21413 as_test_x='test -x'
21414 as_executable_p=as_fn_executable_p
21415
21416 # Sed expression to map a string onto a valid CPP name.
21417 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21418
21419 # Sed expression to map a string onto a valid variable name.
21420 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21421
21422
21423 exec 6>&1
21424 ## ----------------------------------- ##
21425 ## Main body of $CONFIG_STATUS script. ##
21426 ## ----------------------------------- ##
21427 _ASEOF
21428 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21429
21430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21431 # Save the log message, to keep $0 and so on meaningful, and to
21432 # report actual input values of CONFIG_FILES etc. instead of their
21433 # values after options handling.
21434 ac_log="
21435 This file was extended by xf86-input-wacom $as_me 1.2.4, which was
21436 generated by GNU Autoconf 2.71. Invocation command line was
21437
21438 CONFIG_FILES = $CONFIG_FILES
21439 CONFIG_HEADERS = $CONFIG_HEADERS
21440 CONFIG_LINKS = $CONFIG_LINKS
21441 CONFIG_COMMANDS = $CONFIG_COMMANDS
21442 $ $0 $@
21443
21444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21445 "
21446
21447 _ACEOF
21448
21449 case $ac_config_files in *"
21450 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21451 esac
21452
21453 case $ac_config_headers in *"
21454 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21455 esac
21456
21457
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 # Files that config.status was made for.
21460 config_files="$ac_config_files"
21461 config_headers="$ac_config_headers"
21462 config_commands="$ac_config_commands"
21463
21464 _ACEOF
21465
21466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21467 ac_cs_usage="\
21468 \`$as_me' instantiates files and other configuration actions
21469 from templates according to the current configuration. Unless the files
21470 and actions are specified as TAGs, all are instantiated by default.
21471
21472 Usage: $0 [OPTION]... [TAG]...
21473
21474 -h, --help print this help, then exit
21475 -V, --version print version number and configuration settings, then exit
21476 --config print configuration, then exit
21477 -q, --quiet, --silent
21478 do not print progress messages
21479 -d, --debug don't remove temporary files
21480 --recheck update $as_me by reconfiguring in the same conditions
21481 --file=FILE[:TEMPLATE]
21482 instantiate the configuration file FILE
21483 --header=FILE[:TEMPLATE]
21484 instantiate the configuration header FILE
21485
21486 Configuration files:
21487 $config_files
21488
21489 Configuration headers:
21490 $config_headers
21491
21492 Configuration commands:
21493 $config_commands
21494
21495 Report bugs to <https://github.com/linuxwacom/xf86-input-wacom/issues/>."
21496
21497 _ACEOF
21498 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21499 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21501 ac_cs_config='$ac_cs_config_escaped'
21502 ac_cs_version="\\
21503 xf86-input-wacom config.status 1.2.4
21504 configured by $0, generated by GNU Autoconf 2.71,
21505 with options \\"\$ac_cs_config\\"
21506
21507 Copyright (C) 2021 Free Software Foundation, Inc.
21508 This config.status script is free software; the Free Software Foundation
21509 gives unlimited permission to copy, distribute and modify it."
21510
21511 ac_pwd='$ac_pwd'
21512 srcdir='$srcdir'
21513 INSTALL='$INSTALL'
21514 MKDIR_P='$MKDIR_P'
21515 AWK='$AWK'
21516 test -n "\$AWK" || AWK=awk
21517 _ACEOF
21518
21519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21520 # The default lists apply if the user does not specify any file.
21521 ac_need_defaults=:
21522 while test $# != 0
21523 do
21524 case $1 in
21525 --*=?*)
21526 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21527 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21528 ac_shift=:
21529 ;;
21530 --*=)
21531 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21532 ac_optarg=
21533 ac_shift=:
21534 ;;
21535 *)
21536 ac_option=$1
21537 ac_optarg=$2
21538 ac_shift=shift
21539 ;;
21540 esac
21541
21542 case $ac_option in
21543 # Handling of the options.
21544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21545 ac_cs_recheck=: ;;
21546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21547 printf "%s\n" "$ac_cs_version"; exit ;;
21548 --config | --confi | --conf | --con | --co | --c )
21549 printf "%s\n" "$ac_cs_config"; exit ;;
21550 --debug | --debu | --deb | --de | --d | -d )
21551 debug=: ;;
21552 --file | --fil | --fi | --f )
21553 $ac_shift
21554 case $ac_optarg in
21555 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21556 '') as_fn_error $? "missing file argument" ;;
21557 esac
21558 as_fn_append CONFIG_FILES " '$ac_optarg'"
21559 ac_need_defaults=false;;
21560 --header | --heade | --head | --hea )
21561 $ac_shift
21562 case $ac_optarg in
21563 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21564 esac
21565 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21566 ac_need_defaults=false;;
21567 --he | --h)
21568 # Conflict between --help and --header
21569 as_fn_error $? "ambiguous option: \`$1'
21570 Try \`$0 --help' for more information.";;
21571 --help | --hel | -h )
21572 printf "%s\n" "$ac_cs_usage"; exit ;;
21573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21575 ac_cs_silent=: ;;
21576
21577 # This is an error.
21578 -*) as_fn_error $? "unrecognized option: \`$1'
21579 Try \`$0 --help' for more information." ;;
21580
21581 *) as_fn_append ac_config_targets " $1"
21582 ac_need_defaults=false ;;
21583
21584 esac
21585 shift
21586 done
21587
21588 ac_configure_extra_args=
21589
21590 if $ac_cs_silent; then
21591 exec 6>/dev/null
21592 ac_configure_extra_args="$ac_configure_extra_args --silent"
21593 fi
21594
21595 _ACEOF
21596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21597 if \$ac_cs_recheck; then
21598 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21599 shift
21600 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21601 CONFIG_SHELL='$SHELL'
21602 export CONFIG_SHELL
21603 exec "\$@"
21604 fi
21605
21606 _ACEOF
21607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21608 exec 5>>config.log
21609 {
21610 echo
21611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21612 ## Running $as_me. ##
21613 _ASBOX
21614 printf "%s\n" "$ac_log"
21615 } >&5
21616
21617 _ACEOF
21618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21619 #
21620 # INIT-COMMANDS
21621 #
21622 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21623
21624
21625 # The HP-UX ksh and POSIX shell print the target directory to stdout
21626 # if CDPATH is set.
21627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21628
21629 sed_quote_subst='$sed_quote_subst'
21630 double_quote_subst='$double_quote_subst'
21631 delay_variable_subst='$delay_variable_subst'
21632 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21635 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21636 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21637 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21638 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21639 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21640 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21641 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21648 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21649 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21650 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21651 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21652 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21653 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21654 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21655 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21656 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21657 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21658 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21659 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21660 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21661 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21662 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21663 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21664 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21665 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21666 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21667 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21668 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21669 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21670 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21671 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21672 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21673 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21674 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21675 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21676 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21677 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21678 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21679 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21680 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21681 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21682 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21683 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21684 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21685 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21686 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21687 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21688 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21689 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21690 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"`'
21691 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21692 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21693 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21694 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21695 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21696 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21697 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21698 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21699 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21700 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21701 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21702 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21703 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21704 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21705 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21706 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21707 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21708 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21709 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21710 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21711 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21712 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21713 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21714 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21715 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21716 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21717 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21718 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21719 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21720 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21721 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21722 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21723 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21724 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21725 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21726 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21727 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21728 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21729 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21730 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21731 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21732 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21733 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21734 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21735 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21736 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21737 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21738 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21739 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21740 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21741 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21742 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21743 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21744 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21745 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21746 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21747 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21748 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21749 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21750 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21751 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21752 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21753 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21754 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21755 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21756 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21757 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21758 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21759 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21760 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21761 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21762 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21763 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21764 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21765 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21766 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21767
21768 LTCC='$LTCC'
21769 LTCFLAGS='$LTCFLAGS'
21770 compiler='$compiler_DEFAULT'
21771
21772 # A function that is used when there is no print builtin or printf.
21773 func_fallback_echo ()
21774 {
21775 eval 'cat <<_LTECHO_EOF
21776 \$1
21777 _LTECHO_EOF'
21778 }
21779
21780 # Quote evaled strings.
21781 for var in SHELL \
21782 ECHO \
21783 PATH_SEPARATOR \
21784 SED \
21785 GREP \
21786 EGREP \
21787 FGREP \
21788 LD \
21789 NM \
21790 LN_S \
21791 lt_SP2NL \
21792 lt_NL2SP \
21793 reload_flag \
21794 OBJDUMP \
21795 deplibs_check_method \
21796 file_magic_cmd \
21797 file_magic_glob \
21798 want_nocaseglob \
21799 DLLTOOL \
21800 sharedlib_from_linklib_cmd \
21801 AR \
21802 AR_FLAGS \
21803 archiver_list_spec \
21804 STRIP \
21805 RANLIB \
21806 CC \
21807 CFLAGS \
21808 compiler \
21809 lt_cv_sys_global_symbol_pipe \
21810 lt_cv_sys_global_symbol_to_cdecl \
21811 lt_cv_sys_global_symbol_to_import \
21812 lt_cv_sys_global_symbol_to_c_name_address \
21813 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21814 lt_cv_nm_interface \
21815 nm_file_list_spec \
21816 lt_cv_truncate_bin \
21817 lt_prog_compiler_no_builtin_flag \
21818 lt_prog_compiler_pic \
21819 lt_prog_compiler_wl \
21820 lt_prog_compiler_static \
21821 lt_cv_prog_compiler_c_o \
21822 need_locks \
21823 MANIFEST_TOOL \
21824 DSYMUTIL \
21825 NMEDIT \
21826 LIPO \
21827 OTOOL \
21828 OTOOL64 \
21829 shrext_cmds \
21830 export_dynamic_flag_spec \
21831 whole_archive_flag_spec \
21832 compiler_needs_object \
21833 with_gnu_ld \
21834 allow_undefined_flag \
21835 no_undefined_flag \
21836 hardcode_libdir_flag_spec \
21837 hardcode_libdir_separator \
21838 exclude_expsyms \
21839 include_expsyms \
21840 file_list_spec \
21841 variables_saved_for_relink \
21842 libname_spec \
21843 library_names_spec \
21844 soname_spec \
21845 install_override_mode \
21846 finish_eval \
21847 old_striplib \
21848 striplib; do
21849 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21850 *[\\\\\\\`\\"\\\$]*)
21851 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21852 ;;
21853 *)
21854 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21855 ;;
21856 esac
21857 done
21858
21859 # Double-quote double-evaled strings.
21860 for var in reload_cmds \
21861 old_postinstall_cmds \
21862 old_postuninstall_cmds \
21863 old_archive_cmds \
21864 extract_expsyms_cmds \
21865 old_archive_from_new_cmds \
21866 old_archive_from_expsyms_cmds \
21867 archive_cmds \
21868 archive_expsym_cmds \
21869 module_cmds \
21870 module_expsym_cmds \
21871 export_symbols_cmds \
21872 prelink_cmds \
21873 postlink_cmds \
21874 postinstall_cmds \
21875 postuninstall_cmds \
21876 finish_cmds \
21877 sys_lib_search_path_spec \
21878 configure_time_dlsearch_path \
21879 configure_time_lt_sys_library_path; do
21880 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21881 *[\\\\\\\`\\"\\\$]*)
21882 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21883 ;;
21884 *)
21885 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21886 ;;
21887 esac
21888 done
21889
21890 ac_aux_dir='$ac_aux_dir'
21891
21892 # See if we are running on zsh, and set the options that allow our
21893 # commands through without removal of \ escapes INIT.
21894 if test -n "\${ZSH_VERSION+set}"; then
21895 setopt NO_GLOB_SUBST
21896 fi
21897
21898
21899 PACKAGE='$PACKAGE'
21900 VERSION='$VERSION'
21901 RM='$RM'
21902 ofile='$ofile'
21903
21904
21905
21906
21907 _ACEOF
21908
21909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21910
21911 # Handling of arguments.
21912 for ac_config_target in $ac_config_targets
21913 do
21914 case $ac_config_target in
21915 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21916 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21917 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21918 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21919 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
21920 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21921 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21922 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21923 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21924 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21925 "xorg-wacom.pc") CONFIG_FILES="$CONFIG_FILES xorg-wacom.pc" ;;
21926
21927 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21928 esac
21929 done
21930
21931
21932 # If the user did not use the arguments to specify the items to instantiate,
21933 # then the envvar interface is used. Set only those that are not.
21934 # We use the long form for the default assignment because of an extremely
21935 # bizarre bug on SunOS 4.1.3.
21936 if $ac_need_defaults; then
21937 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21938 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21939 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21940 fi
21941
21942 # Have a temporary directory for convenience. Make it in the build tree
21943 # simply because there is no reason against having it here, and in addition,
21944 # creating and moving files from /tmp can sometimes cause problems.
21945 # Hook for its removal unless debugging.
21946 # Note that there is a small window in which the directory will not be cleaned:
21947 # after its creation but before its name has been assigned to `$tmp'.
21948 $debug ||
21949 {
21950 tmp= ac_tmp=
21951 trap 'exit_status=$?
21952 : "${ac_tmp:=$tmp}"
21953 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21954 ' 0
21955 trap 'as_fn_exit 1' 1 2 13 15
21956 }
21957 # Create a (secure) tmp directory for tmp files.
21958
21959 {
21960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21961 test -d "$tmp"
21962 } ||
21963 {
21964 tmp=./conf$$-$RANDOM
21965 (umask 077 && mkdir "$tmp")
21966 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21967 ac_tmp=$tmp
21968
21969 # Set up the scripts for CONFIG_FILES section.
21970 # No need to generate them if there are no CONFIG_FILES.
21971 # This happens for instance with `./config.status config.h'.
21972 if test -n "$CONFIG_FILES"; then
21973
21974
21975 ac_cr=`echo X | tr X '\015'`
21976 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21977 # But we know of no other shell where ac_cr would be empty at this
21978 # point, so we can use a bashism as a fallback.
21979 if test "x$ac_cr" = x; then
21980 eval ac_cr=\$\'\\r\'
21981 fi
21982 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21983 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21984 ac_cs_awk_cr='\\r'
21985 else
21986 ac_cs_awk_cr=$ac_cr
21987 fi
21988
21989 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21990 _ACEOF
21991
21992
21993 {
21994 echo "cat >conf$$subs.awk <<_ACEOF" &&
21995 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21996 echo "_ACEOF"
21997 } >conf$$subs.sh ||
21998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21999 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22000 ac_delim='%!_!# '
22001 for ac_last_try in false false false false false :; do
22002 . ./conf$$subs.sh ||
22003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22004
22005 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22006 if test $ac_delim_n = $ac_delim_num; then
22007 break
22008 elif $ac_last_try; then
22009 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22010 else
22011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22012 fi
22013 done
22014 rm -f conf$$subs.sh
22015
22016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22017 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22018 _ACEOF
22019 sed -n '
22020 h
22021 s/^/S["/; s/!.*/"]=/
22022 p
22023 g
22024 s/^[^!]*!//
22025 :repl
22026 t repl
22027 s/'"$ac_delim"'$//
22028 t delim
22029 :nl
22030 h
22031 s/\(.\{148\}\)..*/\1/
22032 t more1
22033 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22034 p
22035 n
22036 b repl
22037 :more1
22038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22039 p
22040 g
22041 s/.\{148\}//
22042 t nl
22043 :delim
22044 h
22045 s/\(.\{148\}\)..*/\1/
22046 t more2
22047 s/["\\]/\\&/g; s/^/"/; s/$/"/
22048 p
22049 b
22050 :more2
22051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22052 p
22053 g
22054 s/.\{148\}//
22055 t delim
22056 ' <conf$$subs.awk | sed '
22057 /^[^""]/{
22058 N
22059 s/\n//
22060 }
22061 ' >>$CONFIG_STATUS || ac_write_fail=1
22062 rm -f conf$$subs.awk
22063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22064 _ACAWK
22065 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22066 for (key in S) S_is_set[key] = 1
22067 FS = ""
22068
22069 }
22070 {
22071 line = $ 0
22072 nfields = split(line, field, "@")
22073 substed = 0
22074 len = length(field[1])
22075 for (i = 2; i < nfields; i++) {
22076 key = field[i]
22077 keylen = length(key)
22078 if (S_is_set[key]) {
22079 value = S[key]
22080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22081 len += length(value) + length(field[++i])
22082 substed = 1
22083 } else
22084 len += 1 + keylen
22085 }
22086
22087 print line
22088 }
22089
22090 _ACAWK
22091 _ACEOF
22092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22093 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22094 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22095 else
22096 cat
22097 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22098 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22099 _ACEOF
22100
22101 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22102 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22103 # trailing colons and then remove the whole line if VPATH becomes empty
22104 # (actually we leave an empty line to preserve line numbers).
22105 if test "x$srcdir" = x.; then
22106 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22107 h
22108 s///
22109 s/^/:/
22110 s/[ ]*$/:/
22111 s/:\$(srcdir):/:/g
22112 s/:\${srcdir}:/:/g
22113 s/:@srcdir@:/:/g
22114 s/^:*//
22115 s/:*$//
22116 x
22117 s/\(=[ ]*\).*/\1/
22118 G
22119 s/\n//
22120 s/^[^=]*=[ ]*$//
22121 }'
22122 fi
22123
22124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22125 fi # test -n "$CONFIG_FILES"
22126
22127 # Set up the scripts for CONFIG_HEADERS section.
22128 # No need to generate them if there are no CONFIG_HEADERS.
22129 # This happens for instance with `./config.status Makefile'.
22130 if test -n "$CONFIG_HEADERS"; then
22131 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22132 BEGIN {
22133 _ACEOF
22134
22135 # Transform confdefs.h into an awk script `defines.awk', embedded as
22136 # here-document in config.status, that substitutes the proper values into
22137 # config.h.in to produce config.h.
22138
22139 # Create a delimiter string that does not exist in confdefs.h, to ease
22140 # handling of long lines.
22141 ac_delim='%!_!# '
22142 for ac_last_try in false false :; do
22143 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22144 if test -z "$ac_tt"; then
22145 break
22146 elif $ac_last_try; then
22147 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22148 else
22149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22150 fi
22151 done
22152
22153 # For the awk script, D is an array of macro values keyed by name,
22154 # likewise P contains macro parameters if any. Preserve backslash
22155 # newline sequences.
22156
22157 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22158 sed -n '
22159 s/.\{148\}/&'"$ac_delim"'/g
22160 t rset
22161 :rset
22162 s/^[ ]*#[ ]*define[ ][ ]*/ /
22163 t def
22164 d
22165 :def
22166 s/\\$//
22167 t bsnl
22168 s/["\\]/\\&/g
22169 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22170 D["\1"]=" \3"/p
22171 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22172 d
22173 :bsnl
22174 s/["\\]/\\&/g
22175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22176 D["\1"]=" \3\\\\\\n"\\/p
22177 t cont
22178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22179 t cont
22180 d
22181 :cont
22182 n
22183 s/.\{148\}/&'"$ac_delim"'/g
22184 t clear
22185 :clear
22186 s/\\$//
22187 t bsnlc
22188 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22189 d
22190 :bsnlc
22191 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22192 b cont
22193 ' <confdefs.h | sed '
22194 s/'"$ac_delim"'/"\\\
22195 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22196
22197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22198 for (key in D) D_is_set[key] = 1
22199 FS = ""
22200 }
22201 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22202 line = \$ 0
22203 split(line, arg, " ")
22204 if (arg[1] == "#") {
22205 defundef = arg[2]
22206 mac1 = arg[3]
22207 } else {
22208 defundef = substr(arg[1], 2)
22209 mac1 = arg[2]
22210 }
22211 split(mac1, mac2, "(") #)
22212 macro = mac2[1]
22213 prefix = substr(line, 1, index(line, defundef) - 1)
22214 if (D_is_set[macro]) {
22215 # Preserve the white space surrounding the "#".
22216 print prefix "define", macro P[macro] D[macro]
22217 next
22218 } else {
22219 # Replace #undef with comments. This is necessary, for example,
22220 # in the case of _POSIX_SOURCE, which is predefined and required
22221 # on some systems where configure will not decide to define it.
22222 if (defundef == "undef") {
22223 print "/*", prefix defundef, macro, "*/"
22224 next
22225 }
22226 }
22227 }
22228 { print }
22229 _ACAWK
22230 _ACEOF
22231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22232 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22233 fi # test -n "$CONFIG_HEADERS"
22234
22235
22236 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22237 shift
22238 for ac_tag
22239 do
22240 case $ac_tag in
22241 :[FHLC]) ac_mode=$ac_tag; continue;;
22242 esac
22243 case $ac_mode$ac_tag in
22244 :[FHL]*:*);;
22245 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22246 :[FH]-) ac_tag=-:-;;
22247 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22248 esac
22249 ac_save_IFS=$IFS
22250 IFS=:
22251 set x $ac_tag
22252 IFS=$ac_save_IFS
22253 shift
22254 ac_file=$1
22255 shift
22256
22257 case $ac_mode in
22258 :L) ac_source=$1;;
22259 :[FH])
22260 ac_file_inputs=
22261 for ac_f
22262 do
22263 case $ac_f in
22264 -) ac_f="$ac_tmp/stdin";;
22265 *) # Look for the file first in the build tree, then in the source tree
22266 # (if the path is not absolute). The absolute path cannot be DOS-style,
22267 # because $ac_f cannot contain `:'.
22268 test -f "$ac_f" ||
22269 case $ac_f in
22270 [\\/$]*) false;;
22271 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22272 esac ||
22273 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22274 esac
22275 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22276 as_fn_append ac_file_inputs " '$ac_f'"
22277 done
22278
22279 # Let's still pretend it is `configure' which instantiates (i.e., don't
22280 # use $as_me), people would be surprised to read:
22281 # /* config.h. Generated by config.status. */
22282 configure_input='Generated from '`
22283 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22284 `' by configure.'
22285 if test x"$ac_file" != x-; then
22286 configure_input="$ac_file. $configure_input"
22287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22288 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22289 fi
22290 # Neutralize special characters interpreted by sed in replacement strings.
22291 case $configure_input in #(
22292 *\&* | *\|* | *\\* )
22293 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22294 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22295 *) ac_sed_conf_input=$configure_input;;
22296 esac
22297
22298 case $ac_tag in
22299 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22301 esac
22302 ;;
22303 esac
22304
22305 ac_dir=`$as_dirname -- "$ac_file" ||
22306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22307 X"$ac_file" : 'X\(//\)[^/]' \| \
22308 X"$ac_file" : 'X\(//\)$' \| \
22309 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22310 printf "%s\n" X"$ac_file" |
22311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22312 s//\1/
22313 q
22314 }
22315 /^X\(\/\/\)[^/].*/{
22316 s//\1/
22317 q
22318 }
22319 /^X\(\/\/\)$/{
22320 s//\1/
22321 q
22322 }
22323 /^X\(\/\).*/{
22324 s//\1/
22325 q
22326 }
22327 s/.*/./; q'`
22328 as_dir="$ac_dir"; as_fn_mkdir_p
22329 ac_builddir=.
22330
22331 case "$ac_dir" in
22332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22333 *)
22334 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22335 # A ".." for each directory in $ac_dir_suffix.
22336 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22337 case $ac_top_builddir_sub in
22338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22340 esac ;;
22341 esac
22342 ac_abs_top_builddir=$ac_pwd
22343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22344 # for backward compatibility:
22345 ac_top_builddir=$ac_top_build_prefix
22346
22347 case $srcdir in
22348 .) # We are building in place.
22349 ac_srcdir=.
22350 ac_top_srcdir=$ac_top_builddir_sub
22351 ac_abs_top_srcdir=$ac_pwd ;;
22352 [\\/]* | ?:[\\/]* ) # Absolute name.
22353 ac_srcdir=$srcdir$ac_dir_suffix;
22354 ac_top_srcdir=$srcdir
22355 ac_abs_top_srcdir=$srcdir ;;
22356 *) # Relative name.
22357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22358 ac_top_srcdir=$ac_top_build_prefix$srcdir
22359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22360 esac
22361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22362
22363
22364 case $ac_mode in
22365 :F)
22366 #
22367 # CONFIG_FILE
22368 #
22369
22370 case $INSTALL in
22371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22372 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22373 esac
22374 ac_MKDIR_P=$MKDIR_P
22375 case $MKDIR_P in
22376 [\\/$]* | ?:[\\/]* ) ;;
22377 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22378 esac
22379 _ACEOF
22380
22381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22382 # If the template does not know about datarootdir, expand it.
22383 # FIXME: This hack should be removed a few years after 2.60.
22384 ac_datarootdir_hack=; ac_datarootdir_seen=
22385 ac_sed_dataroot='
22386 /datarootdir/ {
22387 p
22388 q
22389 }
22390 /@datadir@/p
22391 /@docdir@/p
22392 /@infodir@/p
22393 /@localedir@/p
22394 /@mandir@/p'
22395 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22396 *datarootdir*) ac_datarootdir_seen=yes;;
22397 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22399 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22400 _ACEOF
22401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22402 ac_datarootdir_hack='
22403 s&@datadir@&$datadir&g
22404 s&@docdir@&$docdir&g
22405 s&@infodir@&$infodir&g
22406 s&@localedir@&$localedir&g
22407 s&@mandir@&$mandir&g
22408 s&\\\${datarootdir}&$datarootdir&g' ;;
22409 esac
22410 _ACEOF
22411
22412 # Neutralize VPATH when `$srcdir' = `.'.
22413 # Shell code in configure.ac might set extrasub.
22414 # FIXME: do we really want to maintain this feature?
22415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22416 ac_sed_extra="$ac_vpsub
22417 $extrasub
22418 _ACEOF
22419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22420 :t
22421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22422 s|@configure_input@|$ac_sed_conf_input|;t t
22423 s&@top_builddir@&$ac_top_builddir_sub&;t t
22424 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22425 s&@srcdir@&$ac_srcdir&;t t
22426 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22427 s&@top_srcdir@&$ac_top_srcdir&;t t
22428 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22429 s&@builddir@&$ac_builddir&;t t
22430 s&@abs_builddir@&$ac_abs_builddir&;t t
22431 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22432 s&@INSTALL@&$ac_INSTALL&;t t
22433 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22434 $ac_datarootdir_hack
22435 "
22436 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22437 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22438
22439 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22440 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22441 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22442 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22444 which seems to be undefined. Please make sure it is defined" >&5
22445 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22446 which seems to be undefined. Please make sure it is defined" >&2;}
22447
22448 rm -f "$ac_tmp/stdin"
22449 case $ac_file in
22450 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22451 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22452 esac \
22453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22454 ;;
22455 :H)
22456 #
22457 # CONFIG_HEADER
22458 #
22459 if test x"$ac_file" != x-; then
22460 {
22461 printf "%s\n" "/* $configure_input */" >&1 \
22462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22463 } >"$ac_tmp/config.h" \
22464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22465 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22467 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22468 else
22469 rm -f "$ac_file"
22470 mv "$ac_tmp/config.h" "$ac_file" \
22471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22472 fi
22473 else
22474 printf "%s\n" "/* $configure_input */" >&1 \
22475 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22476 || as_fn_error $? "could not create -" "$LINENO" 5
22477 fi
22478 # Compute "$ac_file"'s index in $config_headers.
22479 _am_arg="$ac_file"
22480 _am_stamp_count=1
22481 for _am_header in $config_headers :; do
22482 case $_am_header in
22483 $_am_arg | $_am_arg:* )
22484 break ;;
22485 * )
22486 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22487 esac
22488 done
22489 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22490 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$_am_arg" : 'X\(//\)[^/]' \| \
22492 X"$_am_arg" : 'X\(//\)$' \| \
22493 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22494 printf "%s\n" X"$_am_arg" |
22495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22496 s//\1/
22497 q
22498 }
22499 /^X\(\/\/\)[^/].*/{
22500 s//\1/
22501 q
22502 }
22503 /^X\(\/\/\)$/{
22504 s//\1/
22505 q
22506 }
22507 /^X\(\/\).*/{
22508 s//\1/
22509 q
22510 }
22511 s/.*/./; q'`/stamp-h$_am_stamp_count
22512 ;;
22513
22514 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22515 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22516 ;;
22517 esac
22518
22519
22520 case $ac_file$ac_mode in
22521 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22522 # Older Autoconf quotes --file arguments for eval, but not when files
22523 # are listed without --file. Let's play safe and only enable the eval
22524 # if we detect the quoting.
22525 # TODO: see whether this extra hack can be removed once we start
22526 # requiring Autoconf 2.70 or later.
22527 case $CONFIG_FILES in #(
22528 *\'*) :
22529 eval set x "$CONFIG_FILES" ;; #(
22530 *) :
22531 set x $CONFIG_FILES ;; #(
22532 *) :
22533 ;;
22534 esac
22535 shift
22536 # Used to flag and report bootstrapping failures.
22537 am_rc=0
22538 for am_mf
22539 do
22540 # Strip MF so we end up with the name of the file.
22541 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22542 # Check whether this is an Automake generated Makefile which includes
22543 # dependency-tracking related rules and includes.
22544 # Grep'ing the whole file directly is not great: AIX grep has a line
22545 # limit of 2048, but all sed's we know have understand at least 4000.
22546 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22547 || continue
22548 am_dirpart=`$as_dirname -- "$am_mf" ||
22549 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22550 X"$am_mf" : 'X\(//\)[^/]' \| \
22551 X"$am_mf" : 'X\(//\)$' \| \
22552 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22553 printf "%s\n" X"$am_mf" |
22554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22555 s//\1/
22556 q
22557 }
22558 /^X\(\/\/\)[^/].*/{
22559 s//\1/
22560 q
22561 }
22562 /^X\(\/\/\)$/{
22563 s//\1/
22564 q
22565 }
22566 /^X\(\/\).*/{
22567 s//\1/
22568 q
22569 }
22570 s/.*/./; q'`
22571 am_filepart=`$as_basename -- "$am_mf" ||
22572 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22573 X"$am_mf" : 'X\(//\)$' \| \
22574 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22575 printf "%s\n" X/"$am_mf" |
22576 sed '/^.*\/\([^/][^/]*\)\/*$/{
22577 s//\1/
22578 q
22579 }
22580 /^X\/\(\/\/\)$/{
22581 s//\1/
22582 q
22583 }
22584 /^X\/\(\/\).*/{
22585 s//\1/
22586 q
22587 }
22588 s/.*/./; q'`
22589 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22590 && sed -e '/# am--include-marker/d' "$am_filepart" \
22591 | $MAKE -f - am--depfiles" >&5
22592 (cd "$am_dirpart" \
22593 && sed -e '/# am--include-marker/d' "$am_filepart" \
22594 | $MAKE -f - am--depfiles) >&5 2>&5
22595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } || am_rc=$?
22598 done
22599 if test $am_rc -ne 0; then
22600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22601 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22602 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22603 for automatic dependency tracking. If GNU make was not used, consider
22604 re-running the configure script with MAKE=\"gmake\" (or whatever is
22605 necessary). You can also try re-running configure with the
22606 '--disable-dependency-tracking' option to at least be able to build
22607 the package (albeit without support for automatic dependency tracking).
22608 See \`config.log' for more details" "$LINENO" 5; }
22609 fi
22610 { am_dirpart=; unset am_dirpart;}
22611 { am_filepart=; unset am_filepart;}
22612 { am_mf=; unset am_mf;}
22613 { am_rc=; unset am_rc;}
22614 rm -f conftest-deps.mk
22615 }
22616 ;;
22617 "libtool":C)
22618
22619 # See if we are running on zsh, and set the options that allow our
22620 # commands through without removal of \ escapes.
22621 if test -n "${ZSH_VERSION+set}"; then
22622 setopt NO_GLOB_SUBST
22623 fi
22624
22625 cfgfile=${ofile}T
22626 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22627 $RM "$cfgfile"
22628
22629 cat <<_LT_EOF >> "$cfgfile"
22630 #! $SHELL
22631 # Generated automatically by $as_me ($PACKAGE) $VERSION
22632 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22633
22634 # Provide generalized library-building support services.
22635 # Written by Gordon Matzigkeit, 1996
22636
22637 # Copyright (C) 2014 Free Software Foundation, Inc.
22638 # This is free software; see the source for copying conditions. There is NO
22639 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22640
22641 # GNU Libtool is free software; you can redistribute it and/or modify
22642 # it under the terms of the GNU General Public License as published by
22643 # the Free Software Foundation; either version 2 of of the License, or
22644 # (at your option) any later version.
22645 #
22646 # As a special exception to the GNU General Public License, if you
22647 # distribute this file as part of a program or library that is built
22648 # using GNU Libtool, you may include this file under the same
22649 # distribution terms that you use for the rest of that program.
22650 #
22651 # GNU Libtool is distributed in the hope that it will be useful, but
22652 # WITHOUT ANY WARRANTY; without even the implied warranty of
22653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22654 # GNU General Public License for more details.
22655 #
22656 # You should have received a copy of the GNU General Public License
22657 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22658
22659
22660 # The names of the tagged configurations supported by this script.
22661 available_tags=''
22662
22663 # Configured defaults for sys_lib_dlsearch_path munging.
22664 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22665
22666 # ### BEGIN LIBTOOL CONFIG
22667
22668 # Whether or not to build static libraries.
22669 build_old_libs=$enable_static
22670
22671 # Which release of libtool.m4 was used?
22672 macro_version=$macro_version
22673 macro_revision=$macro_revision
22674
22675 # Whether or not to build shared libraries.
22676 build_libtool_libs=$enable_shared
22677
22678 # What type of objects to build.
22679 pic_mode=$pic_mode
22680
22681 # Whether or not to optimize for fast installation.
22682 fast_install=$enable_fast_install
22683
22684 # Shared archive member basename,for filename based shared library versioning on AIX.
22685 shared_archive_member_spec=$shared_archive_member_spec
22686
22687 # Shell to use when invoking shell scripts.
22688 SHELL=$lt_SHELL
22689
22690 # An echo program that protects backslashes.
22691 ECHO=$lt_ECHO
22692
22693 # The PATH separator for the build system.
22694 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22695
22696 # The host system.
22697 host_alias=$host_alias
22698 host=$host
22699 host_os=$host_os
22700
22701 # The build system.
22702 build_alias=$build_alias
22703 build=$build
22704 build_os=$build_os
22705
22706 # A sed program that does not truncate output.
22707 SED=$lt_SED
22708
22709 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22710 Xsed="\$SED -e 1s/^X//"
22711
22712 # A grep program that handles long lines.
22713 GREP=$lt_GREP
22714
22715 # An ERE matcher.
22716 EGREP=$lt_EGREP
22717
22718 # A literal string matcher.
22719 FGREP=$lt_FGREP
22720
22721 # A BSD- or MS-compatible name lister.
22722 NM=$lt_NM
22723
22724 # Whether we need soft or hard links.
22725 LN_S=$lt_LN_S
22726
22727 # What is the maximum length of a command?
22728 max_cmd_len=$max_cmd_len
22729
22730 # Object file suffix (normally "o").
22731 objext=$ac_objext
22732
22733 # Executable file suffix (normally "").
22734 exeext=$exeext
22735
22736 # whether the shell understands "unset".
22737 lt_unset=$lt_unset
22738
22739 # turn spaces into newlines.
22740 SP2NL=$lt_lt_SP2NL
22741
22742 # turn newlines into spaces.
22743 NL2SP=$lt_lt_NL2SP
22744
22745 # convert \$build file names to \$host format.
22746 to_host_file_cmd=$lt_cv_to_host_file_cmd
22747
22748 # convert \$build files to toolchain format.
22749 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22750
22751 # An object symbol dumper.
22752 OBJDUMP=$lt_OBJDUMP
22753
22754 # Method to check whether dependent libraries are shared objects.
22755 deplibs_check_method=$lt_deplibs_check_method
22756
22757 # Command to use when deplibs_check_method = "file_magic".
22758 file_magic_cmd=$lt_file_magic_cmd
22759
22760 # How to find potential files when deplibs_check_method = "file_magic".
22761 file_magic_glob=$lt_file_magic_glob
22762
22763 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22764 want_nocaseglob=$lt_want_nocaseglob
22765
22766 # DLL creation program.
22767 DLLTOOL=$lt_DLLTOOL
22768
22769 # Command to associate shared and link libraries.
22770 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22771
22772 # The archiver.
22773 AR=$lt_AR
22774
22775 # Flags to create an archive.
22776 AR_FLAGS=$lt_AR_FLAGS
22777
22778 # How to feed a file listing to the archiver.
22779 archiver_list_spec=$lt_archiver_list_spec
22780
22781 # A symbol stripping program.
22782 STRIP=$lt_STRIP
22783
22784 # Commands used to install an old-style archive.
22785 RANLIB=$lt_RANLIB
22786 old_postinstall_cmds=$lt_old_postinstall_cmds
22787 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22788
22789 # Whether to use a lock for old archive extraction.
22790 lock_old_archive_extraction=$lock_old_archive_extraction
22791
22792 # A C compiler.
22793 LTCC=$lt_CC
22794
22795 # LTCC compiler flags.
22796 LTCFLAGS=$lt_CFLAGS
22797
22798 # Take the output of nm and produce a listing of raw symbols and C names.
22799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22800
22801 # Transform the output of nm in a proper C declaration.
22802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22803
22804 # Transform the output of nm into a list of symbols to manually relocate.
22805 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22806
22807 # Transform the output of nm in a C name address pair.
22808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22809
22810 # Transform the output of nm in a C name address pair when lib prefix is needed.
22811 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22812
22813 # The name lister interface.
22814 nm_interface=$lt_lt_cv_nm_interface
22815
22816 # Specify filename containing input files for \$NM.
22817 nm_file_list_spec=$lt_nm_file_list_spec
22818
22819 # The root where to search for dependent libraries,and where our libraries should be installed.
22820 lt_sysroot=$lt_sysroot
22821
22822 # Command to truncate a binary pipe.
22823 lt_truncate_bin=$lt_lt_cv_truncate_bin
22824
22825 # The name of the directory that contains temporary libtool files.
22826 objdir=$objdir
22827
22828 # Used to examine libraries when file_magic_cmd begins with "file".
22829 MAGIC_CMD=$MAGIC_CMD
22830
22831 # Must we lock files when doing compilation?
22832 need_locks=$lt_need_locks
22833
22834 # Manifest tool.
22835 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22836
22837 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22838 DSYMUTIL=$lt_DSYMUTIL
22839
22840 # Tool to change global to local symbols on Mac OS X.
22841 NMEDIT=$lt_NMEDIT
22842
22843 # Tool to manipulate fat objects and archives on Mac OS X.
22844 LIPO=$lt_LIPO
22845
22846 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22847 OTOOL=$lt_OTOOL
22848
22849 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22850 OTOOL64=$lt_OTOOL64
22851
22852 # Old archive suffix (normally "a").
22853 libext=$libext
22854
22855 # Shared library suffix (normally ".so").
22856 shrext_cmds=$lt_shrext_cmds
22857
22858 # The commands to extract the exported symbol list from a shared archive.
22859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22860
22861 # Variables whose values should be saved in libtool wrapper scripts and
22862 # restored at link time.
22863 variables_saved_for_relink=$lt_variables_saved_for_relink
22864
22865 # Do we need the "lib" prefix for modules?
22866 need_lib_prefix=$need_lib_prefix
22867
22868 # Do we need a version for libraries?
22869 need_version=$need_version
22870
22871 # Library versioning type.
22872 version_type=$version_type
22873
22874 # Shared library runtime path variable.
22875 runpath_var=$runpath_var
22876
22877 # Shared library path variable.
22878 shlibpath_var=$shlibpath_var
22879
22880 # Is shlibpath searched before the hard-coded library search path?
22881 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22882
22883 # Format of library name prefix.
22884 libname_spec=$lt_libname_spec
22885
22886 # List of archive names. First name is the real one, the rest are links.
22887 # The last name is the one that the linker finds with -lNAME
22888 library_names_spec=$lt_library_names_spec
22889
22890 # The coded name of the library, if different from the real name.
22891 soname_spec=$lt_soname_spec
22892
22893 # Permission mode override for installation of shared libraries.
22894 install_override_mode=$lt_install_override_mode
22895
22896 # Command to use after installation of a shared archive.
22897 postinstall_cmds=$lt_postinstall_cmds
22898
22899 # Command to use after uninstallation of a shared archive.
22900 postuninstall_cmds=$lt_postuninstall_cmds
22901
22902 # Commands used to finish a libtool library installation in a directory.
22903 finish_cmds=$lt_finish_cmds
22904
22905 # As "finish_cmds", except a single script fragment to be evaled but
22906 # not shown.
22907 finish_eval=$lt_finish_eval
22908
22909 # Whether we should hardcode library paths into libraries.
22910 hardcode_into_libs=$hardcode_into_libs
22911
22912 # Compile-time system search path for libraries.
22913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22914
22915 # Detected run-time system search path for libraries.
22916 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22917
22918 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22919 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22920
22921 # Whether dlopen is supported.
22922 dlopen_support=$enable_dlopen
22923
22924 # Whether dlopen of programs is supported.
22925 dlopen_self=$enable_dlopen_self
22926
22927 # Whether dlopen of statically linked programs is supported.
22928 dlopen_self_static=$enable_dlopen_self_static
22929
22930 # Commands to strip libraries.
22931 old_striplib=$lt_old_striplib
22932 striplib=$lt_striplib
22933
22934
22935 # The linker used to build libraries.
22936 LD=$lt_LD
22937
22938 # How to create reloadable object files.
22939 reload_flag=$lt_reload_flag
22940 reload_cmds=$lt_reload_cmds
22941
22942 # Commands used to build an old-style archive.
22943 old_archive_cmds=$lt_old_archive_cmds
22944
22945 # A language specific compiler.
22946 CC=$lt_compiler
22947
22948 # Is the compiler the GNU compiler?
22949 with_gcc=$GCC
22950
22951 # Compiler flag to turn off builtin functions.
22952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22953
22954 # Additional compiler flags for building library objects.
22955 pic_flag=$lt_lt_prog_compiler_pic
22956
22957 # How to pass a linker flag through the compiler.
22958 wl=$lt_lt_prog_compiler_wl
22959
22960 # Compiler flag to prevent dynamic linking.
22961 link_static_flag=$lt_lt_prog_compiler_static
22962
22963 # Does compiler simultaneously support -c and -o options?
22964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22965
22966 # Whether or not to add -lc for building shared libraries.
22967 build_libtool_need_lc=$archive_cmds_need_lc
22968
22969 # Whether or not to disallow shared libs when runtime libs are static.
22970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22971
22972 # Compiler flag to allow reflexive dlopens.
22973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22974
22975 # Compiler flag to generate shared objects directly from archives.
22976 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22977
22978 # Whether the compiler copes with passing no objects directly.
22979 compiler_needs_object=$lt_compiler_needs_object
22980
22981 # Create an old-style archive from a shared archive.
22982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22983
22984 # Create a temporary old-style archive to link instead of a shared archive.
22985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22986
22987 # Commands used to build a shared archive.
22988 archive_cmds=$lt_archive_cmds
22989 archive_expsym_cmds=$lt_archive_expsym_cmds
22990
22991 # Commands used to build a loadable module if different from building
22992 # a shared archive.
22993 module_cmds=$lt_module_cmds
22994 module_expsym_cmds=$lt_module_expsym_cmds
22995
22996 # Whether we are building with GNU ld or not.
22997 with_gnu_ld=$lt_with_gnu_ld
22998
22999 # Flag that allows shared libraries with undefined symbols to be built.
23000 allow_undefined_flag=$lt_allow_undefined_flag
23001
23002 # Flag that enforces no undefined symbols.
23003 no_undefined_flag=$lt_no_undefined_flag
23004
23005 # Flag to hardcode \$libdir into a binary during linking.
23006 # This must work even if \$libdir does not exist
23007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23008
23009 # Whether we need a single "-rpath" flag with a separated argument.
23010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23011
23012 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23013 # DIR into the resulting binary.
23014 hardcode_direct=$hardcode_direct
23015
23016 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23017 # DIR into the resulting binary and the resulting library dependency is
23018 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23019 # library is relocated.
23020 hardcode_direct_absolute=$hardcode_direct_absolute
23021
23022 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23023 # into the resulting binary.
23024 hardcode_minus_L=$hardcode_minus_L
23025
23026 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23027 # into the resulting binary.
23028 hardcode_shlibpath_var=$hardcode_shlibpath_var
23029
23030 # Set to "yes" if building a shared library automatically hardcodes DIR
23031 # into the library and all subsequent libraries and executables linked
23032 # against it.
23033 hardcode_automatic=$hardcode_automatic
23034
23035 # Set to yes if linker adds runtime paths of dependent libraries
23036 # to runtime path list.
23037 inherit_rpath=$inherit_rpath
23038
23039 # Whether libtool must link a program against all its dependency libraries.
23040 link_all_deplibs=$link_all_deplibs
23041
23042 # Set to "yes" if exported symbols are required.
23043 always_export_symbols=$always_export_symbols
23044
23045 # The commands to list exported symbols.
23046 export_symbols_cmds=$lt_export_symbols_cmds
23047
23048 # Symbols that should not be listed in the preloaded symbols.
23049 exclude_expsyms=$lt_exclude_expsyms
23050
23051 # Symbols that must always be exported.
23052 include_expsyms=$lt_include_expsyms
23053
23054 # Commands necessary for linking programs (against libraries) with templates.
23055 prelink_cmds=$lt_prelink_cmds
23056
23057 # Commands necessary for finishing linking programs.
23058 postlink_cmds=$lt_postlink_cmds
23059
23060 # Specify filename containing input files.
23061 file_list_spec=$lt_file_list_spec
23062
23063 # How to hardcode a shared library path into an executable.
23064 hardcode_action=$hardcode_action
23065
23066 # ### END LIBTOOL CONFIG
23067
23068 _LT_EOF
23069
23070 cat <<'_LT_EOF' >> "$cfgfile"
23071
23072 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23073
23074 # func_munge_path_list VARIABLE PATH
23075 # -----------------------------------
23076 # VARIABLE is name of variable containing _space_ separated list of
23077 # directories to be munged by the contents of PATH, which is string
23078 # having a format:
23079 # "DIR[:DIR]:"
23080 # string "DIR[ DIR]" will be prepended to VARIABLE
23081 # ":DIR[:DIR]"
23082 # string "DIR[ DIR]" will be appended to VARIABLE
23083 # "DIRP[:DIRP]::[DIRA:]DIRA"
23084 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23085 # "DIRA[ DIRA]" will be appended to VARIABLE
23086 # "DIR[:DIR]"
23087 # VARIABLE will be replaced by "DIR[ DIR]"
23088 func_munge_path_list ()
23089 {
23090 case x$2 in
23091 x)
23092 ;;
23093 *:)
23094 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23095 ;;
23096 x:*)
23097 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23098 ;;
23099 *::*)
23100 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23101 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23102 ;;
23103 *)
23104 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23105 ;;
23106 esac
23107 }
23108
23109
23110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23111 func_cc_basename ()
23112 {
23113 for cc_temp in $*""; do
23114 case $cc_temp in
23115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23117 \-*) ;;
23118 *) break;;
23119 esac
23120 done
23121 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23122 }
23123
23124
23125 # ### END FUNCTIONS SHARED WITH CONFIGURE
23126
23127 _LT_EOF
23128
23129 case $host_os in
23130 aix3*)
23131 cat <<\_LT_EOF >> "$cfgfile"
23132 # AIX sometimes has problems with the GCC collect2 program. For some
23133 # reason, if we set the COLLECT_NAMES environment variable, the problems
23134 # vanish in a puff of smoke.
23135 if test set != "${COLLECT_NAMES+set}"; then
23136 COLLECT_NAMES=
23137 export COLLECT_NAMES
23138 fi
23139 _LT_EOF
23140 ;;
23141 esac
23142
23143
23144
23145 ltmain=$ac_aux_dir/ltmain.sh
23146
23147
23148 # We use sed instead of cat because bash on DJGPP gets confused if
23149 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23150 # text mode, it properly converts lines to CR/LF. This bash problem
23151 # is reportedly fixed, but why not run on old versions too?
23152 sed '$q' "$ltmain" >> "$cfgfile" \
23153 || (rm -f "$cfgfile"; exit 1)
23154
23155 mv -f "$cfgfile" "$ofile" ||
23156 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23157 chmod +x "$ofile"
23158
23159 ;;
23160
23161 esac
23162 done # for ac_tag
23163
23164
23165 as_fn_exit 0
23166 _ACEOF
23167 ac_clean_files=$ac_clean_files_save
23168
23169 test $ac_write_fail = 0 ||
23170 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23171
23172
23173 # configure is writing to config.log, and then calls config.status.
23174 # config.status does its own redirection, appending to config.log.
23175 # Unfortunately, on DOS this fails, as config.log is still kept open
23176 # by configure, so config.status won't be able to write to it; its
23177 # output is simply discarded. So we exec the FD to /dev/null,
23178 # effectively closing config.log, so it can be properly (re)opened and
23179 # appended to by config.status. When coming back to configure, we
23180 # need to make the FD available again.
23181 if test "$no_create" != yes; then
23182 ac_cs_success=:
23183 ac_config_status_args=
23184 test "$silent" = yes &&
23185 ac_config_status_args="$ac_config_status_args --quiet"
23186 exec 5>/dev/null
23187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23188 exec 5>>config.log
23189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23190 # would make configure fail if this is the last instruction.
23191 $ac_cs_success || as_fn_exit 1
23192 fi
23193 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23195 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23196 fi
23197
23198