configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXpresent 1.0.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/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='libXpresent'
624 PACKAGE_TARNAME='libXpresent'
625 PACKAGE_VERSION='1.0.1'
626 PACKAGE_STRING='libXpresent 1.0.1'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/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 PRESENTEXT_LIBS
668 PRESENTEXT_CFLAGS
669 PRESENTEXT_VERSION
670 MAN_SUBSTS
671 XORG_MAN_PAGE
672 ADMIN_MAN_DIR
673 DRIVER_MAN_DIR
674 MISC_MAN_DIR
675 FILE_MAN_DIR
676 LIB_MAN_DIR
677 APP_MAN_DIR
678 ADMIN_MAN_SUFFIX
679 DRIVER_MAN_SUFFIX
680 MISC_MAN_SUFFIX
681 FILE_MAN_SUFFIX
682 LIB_MAN_SUFFIX
683 APP_MAN_SUFFIX
684 INSTALL_CMD
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 CHANGELOG_CMD
689 STRICT_CFLAGS
690 CWARNFLAGS
691 BASE_CFLAGS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 DLLTOOL
703 OBJDUMP
704 FILECMD
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 LIBTOOL
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 CSCOPE
744 ETAGS
745 CTAGS
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 runstatedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL
808 am__quote'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_silent_rules
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 enable_dependency_tracking
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 enable_selective_werror
823 enable_strict_compilation
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 LT_SYS_LIBRARY_PATH
834 PKG_CONFIG
835 PKG_CONFIG_PATH
836 PKG_CONFIG_LIBDIR
837 PRESENTEXT_CFLAGS
838 PRESENTEXT_LIBS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 runstatedir='${localstatedir}/run'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: \`$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: \`$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -runstatedir | --runstatedir | --runstatedi | --runstated \
1129 | --runstate | --runstat | --runsta | --runst | --runs \
1130 | --run | --ru | --r)
1131 ac_prev=runstatedir ;;
1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134 | --run=* | --ru=* | --r=*)
1135 runstatedir=$ac_optarg ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: \`$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1197
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 ;;
1253
1254 esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir runstatedir
1275 do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 printf "%s\n" X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352 else
1353 ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures libXpresent 1.0.1 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpresent]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of libXpresent 1.0.1:";;
1459 esac
1460 cat <<\_ACEOF
1461
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --enable-dependency-tracking
1473 do not reject slow dependency extractors
1474 --disable-dependency-tracking
1475 speeds up one-time build
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --disable-selective-werror
1478 Turn off selective compiler errors. (default:
1479 enabled)
1480 --enable-strict-compilation
1481 Enable all warnings from compiler and make them
1482 errors (default: disabled)
1483
1484 Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-aix-soname=aix|svr4|both
1490 shared library versioning (aka "SONAME") variant to
1491 provide on AIX, [default=aix].
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1494 compiler's sysroot if not specified).
1495
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 LT_SYS_LIBRARY_PATH
1505 User-defined run-time library search path.
1506 PKG_CONFIG path to pkg-config utility
1507 PKG_CONFIG_PATH
1508 directories to add to pkg-config's search path
1509 PKG_CONFIG_LIBDIR
1510 path overriding pkg-config's built-in search path
1511 PRESENTEXT_CFLAGS
1512 C compiler flags for PRESENTEXT, overriding pkg-config
1513 PRESENTEXT_LIBS
1514 linker flags for PRESENTEXT, overriding pkg-config
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for configure.gnu first; this name is used for a wrapper for
1566 # Metaconfig's "Configure" on case-insensitive file systems.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 libXpresent configure 1.0.1
1584 generated by GNU Autoconf 2.71
1585
1586 Copyright (C) 2021 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest.beam
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 printf "%s\n" "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext
1623 then :
1624 ac_retval=0
1625 else $as_nop
1626 printf "%s\n" "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }
1665 then :
1666 ac_retval=0
1667 else $as_nop
1668 printf "%s\n" "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_link
1682
1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 printf %s "checking for $2... " >&6; }
1692 if eval test \${$3+y}
1693 then :
1694 printf %s "(cached) " >&6
1695 else $as_nop
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"
1702 then :
1703 eval "$3=yes"
1704 else $as_nop
1705 eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 printf "%s\n" "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_c_check_header_compile
1715
1716 # ac_fn_c_check_func LINENO FUNC VAR
1717 # ----------------------------------
1718 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 printf %s "checking for $2... " >&6; }
1724 if eval test \${$3+y}
1725 then :
1726 printf %s "(cached) " >&6
1727 else $as_nop
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below. */
1736
1737 #include <limits.h>
1738 #undef $2
1739
1740 /* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743 #ifdef __cplusplus
1744 extern "C"
1745 #endif
1746 char $2 ();
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined __stub_$2 || defined __stub___$2
1751 choke me
1752 #endif
1753
1754 int
1755 main (void)
1756 {
1757 return $2 ();
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_link "$LINENO"
1763 then :
1764 eval "$3=yes"
1765 else $as_nop
1766 eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1769 conftest$ac_exeext conftest.$ac_ext
1770 fi
1771 eval ac_res=\$$3
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 printf "%s\n" "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776 } # ac_fn_c_check_func
1777
1778 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1779 # ------------------------------------------------------------------
1780 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1781 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1782 ac_fn_check_decl ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 as_decl_name=`echo $2|sed 's/ *(.*//'`
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1787 printf %s "checking whether $as_decl_name is declared... " >&6; }
1788 if eval test \${$3+y}
1789 then :
1790 printf %s "(cached) " >&6
1791 else $as_nop
1792 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1793 eval ac_save_FLAGS=\$$6
1794 as_fn_append $6 " $5"
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 int
1799 main (void)
1800 {
1801 #ifndef $as_decl_name
1802 #ifdef __cplusplus
1803 (void) $as_decl_use;
1804 #else
1805 (void) $as_decl_name;
1806 #endif
1807 #endif
1808
1809 ;
1810 return 0;
1811 }
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"
1814 then :
1815 eval "$3=yes"
1816 else $as_nop
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820 eval $6=\$ac_save_FLAGS
1821
1822 fi
1823 eval ac_res=\$$3
1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 printf "%s\n" "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_check_decl
1829 ac_configure_args_raw=
1830 for ac_arg
1831 do
1832 case $ac_arg in
1833 *\'*)
1834 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 esac
1836 as_fn_append ac_configure_args_raw " '$ac_arg'"
1837 done
1838
1839 case $ac_configure_args_raw in
1840 *$as_nl*)
1841 ac_safe_unquote= ;;
1842 *)
1843 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1844 ac_unsafe_a="$ac_unsafe_z#~"
1845 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1846 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1847 esac
1848
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1852
1853 It was created by libXpresent $as_me 1.0.1, which was
1854 generated by GNU Autoconf 2.71. Invocation command line was
1855
1856 $ $0$ac_configure_args_raw
1857
1858 _ACEOF
1859 exec 5>>config.log
1860 {
1861 cat <<_ASUNAME
1862 ## --------- ##
1863 ## Platform. ##
1864 ## --------- ##
1865
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882
1883 _ASUNAME
1884
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888 IFS=$as_save_IFS
1889 case $as_dir in #(((
1890 '') as_dir=./ ;;
1891 */) ;;
1892 *) as_dir=$as_dir/ ;;
1893 esac
1894 printf "%s\n" "PATH: $as_dir"
1895 done
1896 IFS=$as_save_IFS
1897
1898 } >&5
1899
1900 cat >&5 <<_ACEOF
1901
1902
1903 ## ----------- ##
1904 ## Core tests. ##
1905 ## ----------- ##
1906
1907 _ACEOF
1908
1909
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_configure_args=
1916 ac_configure_args0=
1917 ac_configure_args1=
1918 ac_must_keep_next=false
1919 for ac_pass in 1 2
1920 do
1921 for ac_arg
1922 do
1923 case $ac_arg in
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1927 continue ;;
1928 *\'*)
1929 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 esac
1931 case $ac_pass in
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933 2)
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1937 else
1938 case $ac_arg in
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945 esac
1946 ;;
1947 -* ) ac_must_keep_next=true ;;
1948 esac
1949 fi
1950 as_fn_append ac_configure_args " '$ac_arg'"
1951 ;;
1952 esac
1953 done
1954 done
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1957
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964 # Sanitize IFS.
1965 IFS=" "" $as_nl"
1966 # Save into config.log some information that might help in debugging.
1967 {
1968 echo
1969
1970 printf "%s\n" "## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##"
1973 echo
1974 # The following way of writing the cache mishandles newlines in values,
1975 (
1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in #(
1979 *${as_nl}*)
1980 case $ac_var in #(
1981 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 esac
1984 case $ac_var in #(
1985 _ | IFS | as_nl) ;; #(
1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1987 *) { eval $ac_var=; unset $ac_var;} ;;
1988 esac ;;
1989 esac
1990 done
1991 (set) 2>&1 |
1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993 *${as_nl}ac_space=\ *)
1994 sed -n \
1995 "s/'\''/'\''\\\\'\'''\''/g;
1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 ;; #(
1998 *)
1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2000 ;;
2001 esac |
2002 sort
2003 )
2004 echo
2005
2006 printf "%s\n" "## ----------------- ##
2007 ## Output variables. ##
2008 ## ----------------- ##"
2009 echo
2010 for ac_var in $ac_subst_vars
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 printf "%s\n" "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019
2020 if test -n "$ac_subst_files"; then
2021 printf "%s\n" "## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##"
2024 echo
2025 for ac_var in $ac_subst_files
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 printf "%s\n" "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034 fi
2035
2036 if test -s confdefs.h; then
2037 printf "%s\n" "## ----------- ##
2038 ## confdefs.h. ##
2039 ## ----------- ##"
2040 echo
2041 cat confdefs.h
2042 echo
2043 fi
2044 test "$ac_signal" != 0 &&
2045 printf "%s\n" "$as_me: caught signal $ac_signal"
2046 printf "%s\n" "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2051 ' 0
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054 done
2055 ac_signal=0
2056
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2059
2060 printf "%s\n" "/* confdefs.h */" > confdefs.h
2061
2062 # Predefined preprocessor variables.
2063
2064 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2065
2066 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2067
2068 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2069
2070 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2073
2074 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2075
2076
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer an explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080 ac_site_files="$CONFIG_SITE"
2081 elif test "x$prefix" != xNONE; then
2082 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2083 else
2084 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2085 fi
2086
2087 for ac_site_file in $ac_site_files
2088 do
2089 case $ac_site_file in #(
2090 */*) :
2091 ;; #(
2092 *) :
2093 ac_site_file=./$ac_site_file ;;
2094 esac
2095 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2099 . "$ac_site_file" \
2100 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2102 as_fn_error $? "failed to load site script $ac_site_file
2103 See \`config.log' for more details" "$LINENO" 5; }
2104 fi
2105 done
2106
2107 if test -r "$cache_file"; then
2108 # Some versions of bash will fail to source /dev/null (special files
2109 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2110 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2112 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2113 case $cache_file in
2114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115 *) . "./$cache_file";;
2116 esac
2117 fi
2118 else
2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2120 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2121 >$cache_file
2122 fi
2123
2124 # Test code for whether the C compiler supports C89 (global declarations)
2125 ac_c_conftest_c89_globals='
2126 /* Does the compiler advertise C89 conformance?
2127 Do not test the value of __STDC__, because some compilers set it to 0
2128 while being otherwise adequately conformant. */
2129 #if !defined __STDC__
2130 # error "Compiler does not advertise C89 conformance"
2131 #endif
2132
2133 #include <stddef.h>
2134 #include <stdarg.h>
2135 struct stat;
2136 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2137 struct buf { int x; };
2138 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140 char **p;
2141 int i;
2142 {
2143 return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147 char *s;
2148 va_list v;
2149 va_start (v,p);
2150 s = g (p, va_arg (v,int));
2151 va_end (v);
2152 return s;
2153 }
2154
2155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2156 function prototypes and stuff, but not \xHH hex character constants.
2157 These do not provoke an error unfortunately, instead are silently treated
2158 as an "x". The following induces an error, until -std is added to get
2159 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2160 array size at least. It is necessary to write \x00 == 0 to get something
2161 that is true only with -std. */
2162 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2163
2164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2165 inside strings and character constants. */
2166 #define FOO(x) '\''x'\''
2167 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2168
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2173 int, int);'
2174
2175 # Test code for whether the C compiler supports C89 (body of main).
2176 ac_c_conftest_c89_main='
2177 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2178 '
2179
2180 # Test code for whether the C compiler supports C99 (global declarations)
2181 ac_c_conftest_c99_globals='
2182 // Does the compiler advertise C99 conformance?
2183 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2184 # error "Compiler does not advertise C99 conformance"
2185 #endif
2186
2187 #include <stdbool.h>
2188 extern int puts (const char *);
2189 extern int printf (const char *, ...);
2190 extern int dprintf (int, const char *, ...);
2191 extern void *malloc (size_t);
2192
2193 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2194 // dprintf is used instead of fprintf to avoid needing to declare
2195 // FILE and stderr.
2196 #define debug(...) dprintf (2, __VA_ARGS__)
2197 #define showlist(...) puts (#__VA_ARGS__)
2198 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2199 static void
2200 test_varargs_macros (void)
2201 {
2202 int x = 1234;
2203 int y = 5678;
2204 debug ("Flag");
2205 debug ("X = %d\n", x);
2206 showlist (The first, second, and third items.);
2207 report (x>y, "x is %d but y is %d", x, y);
2208 }
2209
2210 // Check long long types.
2211 #define BIG64 18446744073709551615ull
2212 #define BIG32 4294967295ul
2213 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2214 #if !BIG_OK
2215 #error "your preprocessor is broken"
2216 #endif
2217 #if BIG_OK
2218 #else
2219 #error "your preprocessor is broken"
2220 #endif
2221 static long long int bignum = -9223372036854775807LL;
2222 static unsigned long long int ubignum = BIG64;
2223
2224 struct incomplete_array
2225 {
2226 int datasize;
2227 double data[];
2228 };
2229
2230 struct named_init {
2231 int number;
2232 const wchar_t *name;
2233 double average;
2234 };
2235
2236 typedef const char *ccp;
2237
2238 static inline int
2239 test_restrict (ccp restrict text)
2240 {
2241 // See if C++-style comments work.
2242 // Iterate through items via the restricted pointer.
2243 // Also check for declarations in for loops.
2244 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2245 continue;
2246 return 0;
2247 }
2248
2249 // Check varargs and va_copy.
2250 static bool
2251 test_varargs (const char *format, ...)
2252 {
2253 va_list args;
2254 va_start (args, format);
2255 va_list args_copy;
2256 va_copy (args_copy, args);
2257
2258 const char *str = "";
2259 int number = 0;
2260 float fnumber = 0;
2261
2262 while (*format)
2263 {
2264 switch (*format++)
2265 {
2266 case '\''s'\'': // string
2267 str = va_arg (args_copy, const char *);
2268 break;
2269 case '\''d'\'': // int
2270 number = va_arg (args_copy, int);
2271 break;
2272 case '\''f'\'': // float
2273 fnumber = va_arg (args_copy, double);
2274 break;
2275 default:
2276 break;
2277 }
2278 }
2279 va_end (args_copy);
2280 va_end (args);
2281
2282 return *str && number && fnumber;
2283 }
2284 '
2285
2286 # Test code for whether the C compiler supports C99 (body of main).
2287 ac_c_conftest_c99_main='
2288 // Check bool.
2289 _Bool success = false;
2290 success |= (argc != 0);
2291
2292 // Check restrict.
2293 if (test_restrict ("String literal") == 0)
2294 success = true;
2295 char *restrict newvar = "Another string";
2296
2297 // Check varargs.
2298 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2299 test_varargs_macros ();
2300
2301 // Check flexible array members.
2302 struct incomplete_array *ia =
2303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2304 ia->datasize = 10;
2305 for (int i = 0; i < ia->datasize; ++i)
2306 ia->data[i] = i * 1.234;
2307
2308 // Check named initializers.
2309 struct named_init ni = {
2310 .number = 34,
2311 .name = L"Test wide string",
2312 .average = 543.34343,
2313 };
2314
2315 ni.number = 58;
2316
2317 int dynamic_array[ni.number];
2318 dynamic_array[0] = argv[0][0];
2319 dynamic_array[ni.number - 1] = 543;
2320
2321 // work around unused variable warnings
2322 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2323 || dynamic_array[ni.number - 1] != 543);
2324 '
2325
2326 # Test code for whether the C compiler supports C11 (global declarations)
2327 ac_c_conftest_c11_globals='
2328 // Does the compiler advertise C11 conformance?
2329 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2330 # error "Compiler does not advertise C11 conformance"
2331 #endif
2332
2333 // Check _Alignas.
2334 char _Alignas (double) aligned_as_double;
2335 char _Alignas (0) no_special_alignment;
2336 extern char aligned_as_int;
2337 char _Alignas (0) _Alignas (int) aligned_as_int;
2338
2339 // Check _Alignof.
2340 enum
2341 {
2342 int_alignment = _Alignof (int),
2343 int_array_alignment = _Alignof (int[100]),
2344 char_alignment = _Alignof (char)
2345 };
2346 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2347
2348 // Check _Noreturn.
2349 int _Noreturn does_not_return (void) { for (;;) continue; }
2350
2351 // Check _Static_assert.
2352 struct test_static_assert
2353 {
2354 int x;
2355 _Static_assert (sizeof (int) <= sizeof (long int),
2356 "_Static_assert does not work in struct");
2357 long int y;
2358 };
2359
2360 // Check UTF-8 literals.
2361 #define u8 syntax error!
2362 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2363
2364 // Check duplicate typedefs.
2365 typedef long *long_ptr;
2366 typedef long int *long_ptr;
2367 typedef long_ptr long_ptr;
2368
2369 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2370 struct anonymous
2371 {
2372 union {
2373 struct { int i; int j; };
2374 struct { int k; long int l; } w;
2375 };
2376 int m;
2377 } v1;
2378 '
2379
2380 # Test code for whether the C compiler supports C11 (body of main).
2381 ac_c_conftest_c11_main='
2382 _Static_assert ((offsetof (struct anonymous, i)
2383 == offsetof (struct anonymous, w.k)),
2384 "Anonymous union alignment botch");
2385 v1.i = 2;
2386 v1.w.k = 5;
2387 ok |= v1.i != 5;
2388 '
2389
2390 # Test code for whether the C compiler supports C11 (complete).
2391 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2392 ${ac_c_conftest_c99_globals}
2393 ${ac_c_conftest_c11_globals}
2394
2395 int
2396 main (int argc, char **argv)
2397 {
2398 int ok = 0;
2399 ${ac_c_conftest_c89_main}
2400 ${ac_c_conftest_c99_main}
2401 ${ac_c_conftest_c11_main}
2402 return ok;
2403 }
2404 "
2405
2406 # Test code for whether the C compiler supports C99 (complete).
2407 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2408 ${ac_c_conftest_c99_globals}
2409
2410 int
2411 main (int argc, char **argv)
2412 {
2413 int ok = 0;
2414 ${ac_c_conftest_c89_main}
2415 ${ac_c_conftest_c99_main}
2416 return ok;
2417 }
2418 "
2419
2420 # Test code for whether the C compiler supports C89 (complete).
2421 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2422
2423 int
2424 main (int argc, char **argv)
2425 {
2426 int ok = 0;
2427 ${ac_c_conftest_c89_main}
2428 return ok;
2429 }
2430 "
2431
2432 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2433 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2434 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2435 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2436 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2437 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2438 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2439 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2440 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2441
2442 # Auxiliary files required by this configure script.
2443 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2444
2445 # Locations in which to look for auxiliary files.
2446 ac_aux_dir_candidates="${srcdir}/."
2447
2448 # Search for a directory containing all of the required auxiliary files,
2449 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2450 # If we don't find one directory that contains all the files we need,
2451 # we report the set of missing files from the *first* directory in
2452 # $ac_aux_dir_candidates and give up.
2453 ac_missing_aux_files=""
2454 ac_first_candidate=:
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 as_found=false
2458 for as_dir in $ac_aux_dir_candidates
2459 do
2460 IFS=$as_save_IFS
2461 case $as_dir in #(((
2462 '') as_dir=./ ;;
2463 */) ;;
2464 *) as_dir=$as_dir/ ;;
2465 esac
2466 as_found=:
2467
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2469 ac_aux_dir_found=yes
2470 ac_install_sh=
2471 for ac_aux in $ac_aux_files
2472 do
2473 # As a special case, if "install-sh" is required, that requirement
2474 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2475 # and $ac_install_sh is set appropriately for whichever one is found.
2476 if test x"$ac_aux" = x"install-sh"
2477 then
2478 if test -f "${as_dir}install-sh"; then
2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2480 ac_install_sh="${as_dir}install-sh -c"
2481 elif test -f "${as_dir}install.sh"; then
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2483 ac_install_sh="${as_dir}install.sh -c"
2484 elif test -f "${as_dir}shtool"; then
2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2486 ac_install_sh="${as_dir}shtool install -c"
2487 else
2488 ac_aux_dir_found=no
2489 if $ac_first_candidate; then
2490 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2491 else
2492 break
2493 fi
2494 fi
2495 else
2496 if test -f "${as_dir}${ac_aux}"; then
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2498 else
2499 ac_aux_dir_found=no
2500 if $ac_first_candidate; then
2501 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2502 else
2503 break
2504 fi
2505 fi
2506 fi
2507 done
2508 if test "$ac_aux_dir_found" = yes; then
2509 ac_aux_dir="$as_dir"
2510 break
2511 fi
2512 ac_first_candidate=false
2513
2514 as_found=false
2515 done
2516 IFS=$as_save_IFS
2517 if $as_found
2518 then :
2519
2520 else $as_nop
2521 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2522 fi
2523
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 if test -f "${ac_aux_dir}config.guess"; then
2530 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2531 fi
2532 if test -f "${ac_aux_dir}config.sub"; then
2533 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2534 fi
2535 if test -f "$ac_aux_dir/configure"; then
2536 ac_configure="$SHELL ${ac_aux_dir}configure"
2537 fi
2538
2539 # Check that the precious variables saved in the cache have kept the same
2540 # value.
2541 ac_cache_corrupted=false
2542 for ac_var in $ac_precious_vars; do
2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2544 eval ac_new_set=\$ac_env_${ac_var}_set
2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2546 eval ac_new_val=\$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2548 set,)
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,set)
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,);;
2557 *)
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w=`echo x $ac_old_val`
2561 ac_new_val_w=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted=:
2566 else
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\$ac_old_val
2570 fi
2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2575 fi;;
2576 esac
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2579 case $ac_new_val in
2580 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg=$ac_var=$ac_new_val ;;
2582 esac
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 esac
2587 fi
2588 done
2589 if $ac_cache_corrupted; then
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2595 and start over" "$LINENO" 5
2596 fi
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609 ac_config_headers="$ac_config_headers config.h"
2610
2611
2612
2613
2614 # Initialize Automake
2615 am__api_version='1.16'
2616
2617
2618
2619 # Find a good install program. We prefer a C program (faster),
2620 # so one script is as good as another. But avoid the broken or
2621 # incompatible versions:
2622 # SysV /etc/install, /usr/sbin/install
2623 # SunOS /usr/etc/install
2624 # IRIX /sbin/install
2625 # AIX /bin/install
2626 # AmigaOS /C/install, which installs bootblocks on floppy discs
2627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2630 # OS/2's system install, which has a completely different semantic
2631 # ./install, which can be erroneously created by make from ./install.sh.
2632 # Reject install programs that cannot install multiple files.
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2634 printf %s "checking for a BSD-compatible install... " >&6; }
2635 if test -z "$INSTALL"; then
2636 if test ${ac_cv_path_install+y}
2637 then :
2638 printf %s "(cached) " >&6
2639 else $as_nop
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643 IFS=$as_save_IFS
2644 case $as_dir in #(((
2645 '') as_dir=./ ;;
2646 */) ;;
2647 *) as_dir=$as_dir/ ;;
2648 esac
2649 # Account for fact that we put trailing slashes in our PATH walk.
2650 case $as_dir in #((
2651 ./ | /[cC]/* | \
2652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2654 /usr/ucb/* ) ;;
2655 *)
2656 # OSF1 and SCO ODT 3.0 have their own names for install.
2657 # Don't use installbsd from OSF since it installs stuff as root
2658 # by default.
2659 for ac_prog in ginstall scoinst install; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2662 if test $ac_prog = install &&
2663 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 # AIX install. It has an incompatible calling convention.
2665 :
2666 elif test $ac_prog = install &&
2667 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # program-specific install script used by HP pwplus--don't use.
2669 :
2670 else
2671 rm -rf conftest.one conftest.two conftest.dir
2672 echo one > conftest.one
2673 echo two > conftest.two
2674 mkdir conftest.dir
2675 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2676 test -s conftest.one && test -s conftest.two &&
2677 test -s conftest.dir/conftest.one &&
2678 test -s conftest.dir/conftest.two
2679 then
2680 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2681 break 3
2682 fi
2683 fi
2684 fi
2685 done
2686 done
2687 ;;
2688 esac
2689
2690 done
2691 IFS=$as_save_IFS
2692
2693 rm -rf conftest.one conftest.two conftest.dir
2694
2695 fi
2696 if test ${ac_cv_path_install+y}; then
2697 INSTALL=$ac_cv_path_install
2698 else
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for INSTALL within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 INSTALL=$ac_install_sh
2704 fi
2705 fi
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2707 printf "%s\n" "$INSTALL" >&6; }
2708
2709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2710 # It thinks the first close brace ends the variable substitution.
2711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2712
2713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2714
2715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2716
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2718 printf %s "checking whether build environment is sane... " >&6; }
2719 # Reject unsafe characters in $srcdir or the absolute working directory
2720 # name. Accept space and tab only in the latter.
2721 am_lf='
2722 '
2723 case `pwd` in
2724 *[\\\"\#\$\&\'\`$am_lf]*)
2725 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2726 esac
2727 case $srcdir in
2728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2729 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2730 esac
2731
2732 # Do 'set' in a subshell so we don't clobber the current shell's
2733 # arguments. Must try -L first in case configure is actually a
2734 # symlink; some systems play weird games with the mod time of symlinks
2735 # (eg FreeBSD returns the mod time of the symlink's containing
2736 # directory).
2737 if (
2738 am_has_slept=no
2739 for am_try in 1 2; do
2740 echo "timestamp, slept: $am_has_slept" > conftest.file
2741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2742 if test "$*" = "X"; then
2743 # -L didn't work.
2744 set X `ls -t "$srcdir/configure" conftest.file`
2745 fi
2746 if test "$*" != "X $srcdir/configure conftest.file" \
2747 && test "$*" != "X conftest.file $srcdir/configure"; then
2748
2749 # If neither matched, then we have a broken ls. This can happen
2750 # if, for instance, CONFIG_SHELL is bash and it inherits a
2751 # broken ls alias from the environment. This has actually
2752 # happened. Such a system could not be considered "sane".
2753 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2755 fi
2756 if test "$2" = conftest.file || test $am_try -eq 2; then
2757 break
2758 fi
2759 # Just in case.
2760 sleep 1
2761 am_has_slept=yes
2762 done
2763 test "$2" = conftest.file
2764 )
2765 then
2766 # Ok.
2767 :
2768 else
2769 as_fn_error $? "newly created file is older than distributed files!
2770 Check your system clock" "$LINENO" 5
2771 fi
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 printf "%s\n" "yes" >&6; }
2774 # If we didn't sleep, we still need to ensure time stamps of config.status and
2775 # generated files are strictly newer.
2776 am_sleep_pid=
2777 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2778 ( sleep 1 ) &
2779 am_sleep_pid=$!
2780 fi
2781
2782 rm -f conftest.file
2783
2784 test "$program_prefix" != NONE &&
2785 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2786 # Use a double $ so make ignores it.
2787 test "$program_suffix" != NONE &&
2788 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2789 # Double any \ or $.
2790 # By default was `s,x,x', remove it if useless.
2791 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2792 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2793
2794
2795 # Expand $ac_aux_dir to an absolute path.
2796 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2797
2798
2799 if test x"${MISSING+set}" != xset; then
2800 MISSING="\${SHELL} '$am_aux_dir/missing'"
2801 fi
2802 # Use eval to expand $SHELL
2803 if eval "$MISSING --is-lightweight"; then
2804 am_missing_run="$MISSING "
2805 else
2806 am_missing_run=
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2808 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2809 fi
2810
2811 if test x"${install_sh+set}" != xset; then
2812 case $am_aux_dir in
2813 *\ * | *\ *)
2814 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2815 *)
2816 install_sh="\${SHELL} $am_aux_dir/install-sh"
2817 esac
2818 fi
2819
2820 # Installed binaries are usually stripped using 'strip' when the user
2821 # run "make install-strip". However 'strip' might not be the right
2822 # tool to use in cross-compilation environments, therefore Automake
2823 # will honor the 'STRIP' environment variable to overrule this program.
2824 if test "$cross_compiling" != no; then
2825 if test -n "$ac_tool_prefix"; then
2826 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2827 set dummy ${ac_tool_prefix}strip; ac_word=$2
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 printf %s "checking for $ac_word... " >&6; }
2830 if test ${ac_cv_prog_STRIP+y}
2831 then :
2832 printf %s "(cached) " >&6
2833 else $as_nop
2834 if test -n "$STRIP"; then
2835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 case $as_dir in #(((
2842 '') as_dir=./ ;;
2843 */) ;;
2844 *) as_dir=$as_dir/ ;;
2845 esac
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 STRIP=$ac_cv_prog_STRIP
2859 if test -n "$STRIP"; then
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2861 printf "%s\n" "$STRIP" >&6; }
2862 else
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 printf "%s\n" "no" >&6; }
2865 fi
2866
2867
2868 fi
2869 if test -z "$ac_cv_prog_STRIP"; then
2870 ac_ct_STRIP=$STRIP
2871 # Extract the first word of "strip", so it can be a program name with args.
2872 set dummy strip; ac_word=$2
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 printf %s "checking for $ac_word... " >&6; }
2875 if test ${ac_cv_prog_ac_ct_STRIP+y}
2876 then :
2877 printf %s "(cached) " >&6
2878 else $as_nop
2879 if test -n "$ac_ct_STRIP"; then
2880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 case $as_dir in #(((
2887 '') as_dir=./ ;;
2888 */) ;;
2889 *) as_dir=$as_dir/ ;;
2890 esac
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_ac_ct_STRIP="strip"
2894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2904 if test -n "$ac_ct_STRIP"; then
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2906 printf "%s\n" "$ac_ct_STRIP" >&6; }
2907 else
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 printf "%s\n" "no" >&6; }
2910 fi
2911
2912 if test "x$ac_ct_STRIP" = x; then
2913 STRIP=":"
2914 else
2915 case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921 STRIP=$ac_ct_STRIP
2922 fi
2923 else
2924 STRIP="$ac_cv_prog_STRIP"
2925 fi
2926
2927 fi
2928 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2929
2930
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2932 printf %s "checking for a race-free mkdir -p... " >&6; }
2933 if test -z "$MKDIR_P"; then
2934 if test ${ac_cv_path_mkdir+y}
2935 then :
2936 printf %s "(cached) " >&6
2937 else $as_nop
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2940 do
2941 IFS=$as_save_IFS
2942 case $as_dir in #(((
2943 '') as_dir=./ ;;
2944 */) ;;
2945 *) as_dir=$as_dir/ ;;
2946 esac
2947 for ac_prog in mkdir gmkdir; do
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2950 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2951 'mkdir ('*'coreutils) '* | \
2952 'BusyBox '* | \
2953 'mkdir (fileutils) '4.1*)
2954 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2955 break 3;;
2956 esac
2957 done
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963
2964 test -d ./--version && rmdir ./--version
2965 if test ${ac_cv_path_mkdir+y}; then
2966 MKDIR_P="$ac_cv_path_mkdir -p"
2967 else
2968 # As a last resort, use the slow shell script. Don't cache a
2969 # value for MKDIR_P within a source directory, because that will
2970 # break other packages using the cache if that directory is
2971 # removed, or if the value is a relative name.
2972 MKDIR_P="$ac_install_sh -d"
2973 fi
2974 fi
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2976 printf "%s\n" "$MKDIR_P" >&6; }
2977
2978 for ac_prog in gawk mawk nawk awk
2979 do
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 printf %s "checking for $ac_word... " >&6; }
2984 if test ${ac_cv_prog_AWK+y}
2985 then :
2986 printf %s "(cached) " >&6
2987 else $as_nop
2988 if test -n "$AWK"; then
2989 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 case $as_dir in #(((
2996 '') as_dir=./ ;;
2997 */) ;;
2998 *) as_dir=$as_dir/ ;;
2999 esac
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_AWK="$ac_prog"
3003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 AWK=$ac_cv_prog_AWK
3013 if test -n "$AWK"; then
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3015 printf "%s\n" "$AWK" >&6; }
3016 else
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 printf "%s\n" "no" >&6; }
3019 fi
3020
3021
3022 test -n "$AWK" && break
3023 done
3024
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3027 set x ${MAKE-make}
3028 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3029 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3030 then :
3031 printf %s "(cached) " >&6
3032 else $as_nop
3033 cat >conftest.make <<\_ACEOF
3034 SHELL = /bin/sh
3035 all:
3036 @echo '@@@%%%=$(MAKE)=@@@%%%'
3037 _ACEOF
3038 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3039 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3040 *@@@%%%=?*=@@@%%%*)
3041 eval ac_cv_prog_make_${ac_make}_set=yes;;
3042 *)
3043 eval ac_cv_prog_make_${ac_make}_set=no;;
3044 esac
3045 rm -f conftest.make
3046 fi
3047 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049 printf "%s\n" "yes" >&6; }
3050 SET_MAKE=
3051 else
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 printf "%s\n" "no" >&6; }
3054 SET_MAKE="MAKE=${MAKE-make}"
3055 fi
3056
3057 rm -rf .tst 2>/dev/null
3058 mkdir .tst 2>/dev/null
3059 if test -d .tst; then
3060 am__leading_dot=.
3061 else
3062 am__leading_dot=_
3063 fi
3064 rmdir .tst 2>/dev/null
3065
3066 # Check whether --enable-silent-rules was given.
3067 if test ${enable_silent_rules+y}
3068 then :
3069 enableval=$enable_silent_rules;
3070 fi
3071
3072 case $enable_silent_rules in # (((
3073 yes) AM_DEFAULT_VERBOSITY=0;;
3074 no) AM_DEFAULT_VERBOSITY=1;;
3075 *) AM_DEFAULT_VERBOSITY=1;;
3076 esac
3077 am_make=${MAKE-make}
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079 printf %s "checking whether $am_make supports nested variables... " >&6; }
3080 if test ${am_cv_make_support_nested_variables+y}
3081 then :
3082 printf %s "(cached) " >&6
3083 else $as_nop
3084 if printf "%s\n" 'TRUE=$(BAR$(V))
3085 BAR0=false
3086 BAR1=true
3087 V=1
3088 am__doit:
3089 @$(TRUE)
3090 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3091 am_cv_make_support_nested_variables=yes
3092 else
3093 am_cv_make_support_nested_variables=no
3094 fi
3095 fi
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3097 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3098 if test $am_cv_make_support_nested_variables = yes; then
3099 AM_V='$(V)'
3100 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3101 else
3102 AM_V=$AM_DEFAULT_VERBOSITY
3103 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3104 fi
3105 AM_BACKSLASH='\'
3106
3107 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3108 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3109 # is not polluted with repeated "-I."
3110 am__isrc=' -I$(srcdir)'
3111 # test to see if srcdir already configured
3112 if test -f $srcdir/config.status; then
3113 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3114 fi
3115 fi
3116
3117 # test whether we have cygpath
3118 if test -z "$CYGPATH_W"; then
3119 if (cygpath --version) >/dev/null 2>/dev/null; then
3120 CYGPATH_W='cygpath -w'
3121 else
3122 CYGPATH_W=echo
3123 fi
3124 fi
3125
3126
3127 # Define the identity of the package.
3128 PACKAGE='libXpresent'
3129 VERSION='1.0.1'
3130
3131
3132 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3133
3134
3135 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3136
3137 # Some tools Automake needs.
3138
3139 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3140
3141
3142 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3143
3144
3145 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3146
3147
3148 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3149
3150
3151 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3152
3153 # For better backward compatibility. To be removed once Automake 1.9.x
3154 # dies out for good. For more background, see:
3155 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3156 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3157 mkdir_p='$(MKDIR_P)'
3158
3159 # We need awk for the "check" target (and possibly the TAP driver). The
3160 # system "awk" is bad on some platforms.
3161 # Always define AMTAR for backward compatibility. Yes, it's still used
3162 # in the wild :-( We should find a proper way to deprecate it ...
3163 AMTAR='$${TAR-tar}'
3164
3165
3166 # We'll loop over all known methods to create a tar archive until one works.
3167 _am_tools='gnutar pax cpio none'
3168
3169 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3170
3171
3172
3173
3174
3175 # Variables for tags utilities; see am/tags.am
3176 if test -z "$CTAGS"; then
3177 CTAGS=ctags
3178 fi
3179
3180 if test -z "$ETAGS"; then
3181 ETAGS=etags
3182 fi
3183
3184 if test -z "$CSCOPE"; then
3185 CSCOPE=cscope
3186 fi
3187
3188
3189
3190 # POSIX will say in a future version that running "rm -f" with no argument
3191 # is OK; and we want to be able to make that assumption in our Makefile
3192 # recipes. So use an aggressive probe to check that the usage we want is
3193 # actually supported "in the wild" to an acceptable degree.
3194 # See automake bug#10828.
3195 # To make any issue more visible, cause the running configure to be aborted
3196 # by default if the 'rm' program in use doesn't match our expectations; the
3197 # user can still override this though.
3198 if rm -f && rm -fr && rm -rf; then : OK; else
3199 cat >&2 <<'END'
3200 Oops!
3201
3202 Your 'rm' program seems unable to run without file operands specified
3203 on the command line, even when the '-f' option is present. This is contrary
3204 to the behaviour of most rm programs out there, and not conforming with
3205 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3206
3207 Please tell bug-automake@gnu.org about your system, including the value
3208 of your $PATH and any error possibly output before this message. This
3209 can help us improve future automake versions.
3210
3211 END
3212 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3213 echo 'Configuration will proceed anyway, since you have set the' >&2
3214 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3215 echo >&2
3216 else
3217 cat >&2 <<'END'
3218 Aborting the configuration process, to ensure you take notice of the issue.
3219
3220 You can download and install GNU coreutils to get an 'rm' implementation
3221 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3222
3223 If you want to complete the configuration process using your problematic
3224 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3225 to "yes", and re-run configure.
3226
3227 END
3228 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3229 fi
3230 fi
3231
3232
3233 # Initialize libtool
3234 case `pwd` in
3235 *\ * | *\ *)
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3237 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3238 esac
3239
3240
3241
3242 macro_version='2.4.7'
3243 macro_revision='2.4.7'
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258 ltmain=$ac_aux_dir/ltmain.sh
3259
3260
3261
3262 # Make sure we can run config.sub.
3263 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3264 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3265
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3267 printf %s "checking build system type... " >&6; }
3268 if test ${ac_cv_build+y}
3269 then :
3270 printf %s "(cached) " >&6
3271 else $as_nop
3272 ac_build_alias=$build_alias
3273 test "x$ac_build_alias" = x &&
3274 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3275 test "x$ac_build_alias" = x &&
3276 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3277 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3278 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3279
3280 fi
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3282 printf "%s\n" "$ac_cv_build" >&6; }
3283 case $ac_cv_build in
3284 *-*-*) ;;
3285 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3286 esac
3287 build=$ac_cv_build
3288 ac_save_IFS=$IFS; IFS='-'
3289 set x $ac_cv_build
3290 shift
3291 build_cpu=$1
3292 build_vendor=$2
3293 shift; shift
3294 # Remember, the first character of IFS is used to create $*,
3295 # except with old shells:
3296 build_os=$*
3297 IFS=$ac_save_IFS
3298 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3299
3300
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3302 printf %s "checking host system type... " >&6; }
3303 if test ${ac_cv_host+y}
3304 then :
3305 printf %s "(cached) " >&6
3306 else $as_nop
3307 if test "x$host_alias" = x; then
3308 ac_cv_host=$ac_cv_build
3309 else
3310 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3311 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3312 fi
3313
3314 fi
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3316 printf "%s\n" "$ac_cv_host" >&6; }
3317 case $ac_cv_host in
3318 *-*-*) ;;
3319 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3320 esac
3321 host=$ac_cv_host
3322 ac_save_IFS=$IFS; IFS='-'
3323 set x $ac_cv_host
3324 shift
3325 host_cpu=$1
3326 host_vendor=$2
3327 shift; shift
3328 # Remember, the first character of IFS is used to create $*,
3329 # except with old shells:
3330 host_os=$*
3331 IFS=$ac_save_IFS
3332 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3333
3334
3335 # Backslashify metacharacters that are still active within
3336 # double-quoted strings.
3337 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3338
3339 # Same as above, but do not quote variable references.
3340 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3341
3342 # Sed substitution to delay expansion of an escaped shell variable in a
3343 # double_quote_subst'ed string.
3344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3345
3346 # Sed substitution to delay expansion of an escaped single quote.
3347 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3348
3349 # Sed substitution to avoid accidental globbing in evaled expressions
3350 no_glob_subst='s/\*/\\\*/g'
3351
3352 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3355
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3357 printf %s "checking how to print strings... " >&6; }
3358 # Test print first, because it will be a builtin if present.
3359 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3360 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3361 ECHO='print -r --'
3362 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3363 ECHO='printf %s\n'
3364 else
3365 # Use this function as a fallback that always works.
3366 func_fallback_echo ()
3367 {
3368 eval 'cat <<_LTECHO_EOF
3369 $1
3370 _LTECHO_EOF'
3371 }
3372 ECHO='func_fallback_echo'
3373 fi
3374
3375 # func_echo_all arg...
3376 # Invoke $ECHO with all args, space-separated.
3377 func_echo_all ()
3378 {
3379 $ECHO ""
3380 }
3381
3382 case $ECHO in
3383 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3384 printf "%s\n" "printf" >&6; } ;;
3385 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3386 printf "%s\n" "print -r" >&6; } ;;
3387 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3388 printf "%s\n" "cat" >&6; } ;;
3389 esac
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413 DEPDIR="${am__leading_dot}deps"
3414
3415 ac_config_commands="$ac_config_commands depfiles"
3416
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3418 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3419 cat > confinc.mk << 'END'
3420 am__doit:
3421 @echo this is the am__doit target >confinc.out
3422 .PHONY: am__doit
3423 END
3424 am__include="#"
3425 am__quote=
3426 # BSD make does it like this.
3427 echo '.include "confinc.mk" # ignored' > confmf.BSD
3428 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3429 echo 'include confinc.mk # ignored' > confmf.GNU
3430 _am_result=no
3431 for s in GNU BSD; do
3432 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3433 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }
3437 case $?:`cat confinc.out 2>/dev/null` in #(
3438 '0:this is the am__doit target') :
3439 case $s in #(
3440 BSD) :
3441 am__include='.include' am__quote='"' ;; #(
3442 *) :
3443 am__include='include' am__quote='' ;;
3444 esac ;; #(
3445 *) :
3446 ;;
3447 esac
3448 if test "$am__include" != "#"; then
3449 _am_result="yes ($s style)"
3450 break
3451 fi
3452 done
3453 rm -f confinc.* confmf.*
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3455 printf "%s\n" "${_am_result}" >&6; }
3456
3457 # Check whether --enable-dependency-tracking was given.
3458 if test ${enable_dependency_tracking+y}
3459 then :
3460 enableval=$enable_dependency_tracking;
3461 fi
3462
3463 if test "x$enable_dependency_tracking" != xno; then
3464 am_depcomp="$ac_aux_dir/depcomp"
3465 AMDEPBACKSLASH='\'
3466 am__nodep='_no'
3467 fi
3468 if test "x$enable_dependency_tracking" != xno; then
3469 AMDEP_TRUE=
3470 AMDEP_FALSE='#'
3471 else
3472 AMDEP_TRUE='#'
3473 AMDEP_FALSE=
3474 fi
3475
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 printf %s "checking for $ac_word... " >&6; }
3487 if test ${ac_cv_prog_CC+y}
3488 then :
3489 printf %s "(cached) " >&6
3490 else $as_nop
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 case $as_dir in #(((
3499 '') as_dir=./ ;;
3500 */) ;;
3501 *) as_dir=$as_dir/ ;;
3502 esac
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 printf "%s\n" "$CC" >&6; }
3519 else
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 printf "%s\n" "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$ac_cv_prog_CC"; then
3527 ac_ct_CC=$CC
3528 # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc; ac_word=$2
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 printf %s "checking for $ac_word... " >&6; }
3532 if test ${ac_cv_prog_ac_ct_CC+y}
3533 then :
3534 printf %s "(cached) " >&6
3535 else $as_nop
3536 if test -n "$ac_ct_CC"; then
3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 case $as_dir in #(((
3544 '') as_dir=./ ;;
3545 */) ;;
3546 *) as_dir=$as_dir/ ;;
3547 esac
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_CC="gcc"
3551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 printf "%s\n" "$ac_ct_CC" >&6; }
3564 else
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 printf "%s\n" "no" >&6; }
3567 fi
3568
3569 if test "x$ac_ct_CC" = x; then
3570 CC=""
3571 else
3572 case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3577 esac
3578 CC=$ac_ct_CC
3579 fi
3580 else
3581 CC="$ac_cv_prog_CC"
3582 fi
3583
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}cc; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_CC+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else $as_nop
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 case $as_dir in #(((
3602 '') as_dir=./ ;;
3603 */) ;;
3604 *) as_dir=$as_dir/ ;;
3605 esac
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_CC="${ac_tool_prefix}cc"
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 printf "%s\n" "$CC" >&6; }
3622 else
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 printf "%s\n" "no" >&6; }
3625 fi
3626
3627
3628 fi
3629 fi
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc; ac_word=$2
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 printf %s "checking for $ac_word... " >&6; }
3635 if test ${ac_cv_prog_CC+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 ac_prog_rejected=no
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 case $as_dir in #(((
3648 '') as_dir=./ ;;
3649 */) ;;
3650 *) as_dir=$as_dir/ ;;
3651 esac
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected=yes
3656 continue
3657 fi
3658 ac_cv_prog_CC="cc"
3659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy $ac_cv_prog_CC
3669 shift
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3674 shift
3675 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3676 fi
3677 fi
3678 fi
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 printf "%s\n" "$CC" >&6; }
3684 else
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 printf "%s\n" "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3694 do
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s "checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_CC+y}
3700 then :
3701 printf %s "(cached) " >&6
3702 else $as_nop
3703 if test -n "$CC"; then
3704 ac_cv_prog_CC="$CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 case $as_dir in #(((
3711 '') as_dir=./ ;;
3712 */) ;;
3713 *) as_dir=$as_dir/ ;;
3714 esac
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 printf "%s\n" "$CC" >&6; }
3731 else
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 printf "%s\n" "no" >&6; }
3734 fi
3735
3736
3737 test -n "$CC" && break
3738 done
3739 fi
3740 if test -z "$CC"; then
3741 ac_ct_CC=$CC
3742 for ac_prog in cl.exe
3743 do
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 printf %s "checking for $ac_word... " >&6; }
3748 if test ${ac_cv_prog_ac_ct_CC+y}
3749 then :
3750 printf %s "(cached) " >&6
3751 else $as_nop
3752 if test -n "$ac_ct_CC"; then
3753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 case $as_dir in #(((
3760 '') as_dir=./ ;;
3761 */) ;;
3762 *) as_dir=$as_dir/ ;;
3763 esac
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_ac_ct_CC="$ac_prog"
3767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770 done
3771 done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3777 if test -n "$ac_ct_CC"; then
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3779 printf "%s\n" "$ac_ct_CC" >&6; }
3780 else
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 printf "%s\n" "no" >&6; }
3783 fi
3784
3785
3786 test -n "$ac_ct_CC" && break
3787 done
3788
3789 if test "x$ac_ct_CC" = x; then
3790 CC=""
3791 else
3792 case $cross_compiling:$ac_tool_warned in
3793 yes:)
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3797 esac
3798 CC=$ac_ct_CC
3799 fi
3800 fi
3801
3802 fi
3803 if test -z "$CC"; then
3804 if test -n "$ac_tool_prefix"; then
3805 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3806 set dummy ${ac_tool_prefix}clang; ac_word=$2
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 printf %s "checking for $ac_word... " >&6; }
3809 if test ${ac_cv_prog_CC+y}
3810 then :
3811 printf %s "(cached) " >&6
3812 else $as_nop
3813 if test -n "$CC"; then
3814 ac_cv_prog_CC="$CC" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819 IFS=$as_save_IFS
3820 case $as_dir in #(((
3821 '') as_dir=./ ;;
3822 */) ;;
3823 *) as_dir=$as_dir/ ;;
3824 esac
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_CC="${ac_tool_prefix}clang"
3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 printf "%s\n" "$CC" >&6; }
3841 else
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 printf "%s\n" "no" >&6; }
3844 fi
3845
3846
3847 fi
3848 if test -z "$ac_cv_prog_CC"; then
3849 ac_ct_CC=$CC
3850 # Extract the first word of "clang", so it can be a program name with args.
3851 set dummy clang; ac_word=$2
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 printf %s "checking for $ac_word... " >&6; }
3854 if test ${ac_cv_prog_ac_ct_CC+y}
3855 then :
3856 printf %s "(cached) " >&6
3857 else $as_nop
3858 if test -n "$ac_ct_CC"; then
3859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864 IFS=$as_save_IFS
3865 case $as_dir in #(((
3866 '') as_dir=./ ;;
3867 */) ;;
3868 *) as_dir=$as_dir/ ;;
3869 esac
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_ac_ct_CC="clang"
3873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876 done
3877 done
3878 IFS=$as_save_IFS
3879
3880 fi
3881 fi
3882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3883 if test -n "$ac_ct_CC"; then
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3885 printf "%s\n" "$ac_ct_CC" >&6; }
3886 else
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 printf "%s\n" "no" >&6; }
3889 fi
3890
3891 if test "x$ac_ct_CC" = x; then
3892 CC=""
3893 else
3894 case $cross_compiling:$ac_tool_warned in
3895 yes:)
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3898 ac_tool_warned=yes ;;
3899 esac
3900 CC=$ac_ct_CC
3901 fi
3902 else
3903 CC="$ac_cv_prog_CC"
3904 fi
3905
3906 fi
3907
3908
3909 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "no acceptable C compiler found in \$PATH
3912 See \`config.log' for more details" "$LINENO" 5; }
3913
3914 # Provide some information about the compiler.
3915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3916 set X $ac_compile
3917 ac_compiler=$2
3918 for ac_option in --version -v -V -qversion -version; do
3919 { { ac_try="$ac_compiler $ac_option >&5"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 printf "%s\n" "$ac_try_echo"; } >&5
3926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3927 ac_status=$?
3928 if test -s conftest.err; then
3929 sed '10a\
3930 ... rest of stderr output deleted ...
3931 10q' conftest.err >conftest.er1
3932 cat conftest.er1 >&5
3933 fi
3934 rm -f conftest.er1 conftest.err
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }
3937 done
3938
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942 int
3943 main (void)
3944 {
3945
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 ac_clean_files_save=$ac_clean_files
3951 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3952 # Try to create an executable without -o first, disregard a.out.
3953 # It will help us diagnose broken compilers, and finding out an intuition
3954 # of exeext.
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3956 printf %s "checking whether the C compiler works... " >&6; }
3957 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3958
3959 # The possible output files:
3960 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3961
3962 ac_rmfiles=
3963 for ac_file in $ac_files
3964 do
3965 case $ac_file in
3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3967 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3968 esac
3969 done
3970 rm -f $ac_rmfiles
3971
3972 if { { ac_try="$ac_link_default"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 printf "%s\n" "$ac_try_echo"; } >&5
3979 (eval "$ac_link_default") 2>&5
3980 ac_status=$?
3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }
3983 then :
3984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3987 # so that the user can short-circuit this test for compilers unknown to
3988 # Autoconf.
3989 for ac_file in $ac_files ''
3990 do
3991 test -f "$ac_file" || continue
3992 case $ac_file in
3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3994 ;;
3995 [ab].out )
3996 # We found the default executable, but exeext='' is most
3997 # certainly right.
3998 break;;
3999 *.* )
4000 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4001 then :; else
4002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4003 fi
4004 # We set ac_cv_exeext here because the later test for it is not
4005 # safe: cross compilers may not add the suffix if given an `-o'
4006 # argument, so we may need to know it at that point already.
4007 # Even if this section looks crufty: it has the advantage of
4008 # actually working.
4009 break;;
4010 * )
4011 break;;
4012 esac
4013 done
4014 test "$ac_cv_exeext" = no && ac_cv_exeext=
4015
4016 else $as_nop
4017 ac_file=''
4018 fi
4019 if test -z "$ac_file"
4020 then :
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4023 printf "%s\n" "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error 77 "C compiler cannot create executables
4029 See \`config.log' for more details" "$LINENO" 5; }
4030 else $as_nop
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4032 printf "%s\n" "yes" >&6; }
4033 fi
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4035 printf %s "checking for C compiler default output file name... " >&6; }
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4037 printf "%s\n" "$ac_file" >&6; }
4038 ac_exeext=$ac_cv_exeext
4039
4040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4041 ac_clean_files=$ac_clean_files_save
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 printf %s "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 printf "%s\n" "$ac_try_echo"; } >&5
4051 (eval "$ac_link") 2>&5
4052 ac_status=$?
4053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }
4055 then :
4056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4058 # work properly (i.e., refer to `conftest.exe'), while it won't with
4059 # `rm'.
4060 for ac_file in conftest.exe conftest conftest.*; do
4061 test -f "$ac_file" || continue
4062 case $ac_file in
4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4065 break;;
4066 * ) break;;
4067 esac
4068 done
4069 else $as_nop
4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4073 See \`config.log' for more details" "$LINENO" 5; }
4074 fi
4075 rm -f conftest conftest$ac_cv_exeext
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4077 printf "%s\n" "$ac_cv_exeext" >&6; }
4078
4079 rm -f conftest.$ac_ext
4080 EXEEXT=$ac_cv_exeext
4081 ac_exeext=$EXEEXT
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <stdio.h>
4085 int
4086 main (void)
4087 {
4088 FILE *f = fopen ("conftest.out", "w");
4089 return ferror (f) || fclose (f) != 0;
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 ac_clean_files="$ac_clean_files conftest.out"
4096 # Check that the compiler produces executables we can run. If not, either
4097 # the compiler is broken, or we cross compile.
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4099 printf %s "checking whether we are cross compiling... " >&6; }
4100 if test "$cross_compiling" != yes; then
4101 { { ac_try="$ac_link"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 printf "%s\n" "$ac_try_echo"; } >&5
4108 (eval "$ac_link") 2>&5
4109 ac_status=$?
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4112 if { ac_try='./conftest$ac_cv_exeext'
4113 { { case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 printf "%s\n" "$ac_try_echo"; } >&5
4119 (eval "$ac_try") 2>&5
4120 ac_status=$?
4121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; }; then
4123 cross_compiling=no
4124 else
4125 if test "$cross_compiling" = maybe; then
4126 cross_compiling=yes
4127 else
4128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4130 as_fn_error 77 "cannot run C compiled programs.
4131 If you meant to cross compile, use \`--host'.
4132 See \`config.log' for more details" "$LINENO" 5; }
4133 fi
4134 fi
4135 fi
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4137 printf "%s\n" "$cross_compiling" >&6; }
4138
4139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4140 ac_clean_files=$ac_clean_files_save
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4142 printf %s "checking for suffix of object files... " >&6; }
4143 if test ${ac_cv_objext+y}
4144 then :
4145 printf %s "(cached) " >&6
4146 else $as_nop
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main (void)
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 rm -f conftest.o conftest.obj
4159 if { { ac_try="$ac_compile"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 printf "%s\n" "$ac_try_echo"; } >&5
4166 (eval "$ac_compile") 2>&5
4167 ac_status=$?
4168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4169 test $ac_status = 0; }
4170 then :
4171 for ac_file in conftest.o conftest.obj conftest.*; do
4172 test -f "$ac_file" || continue;
4173 case $ac_file in
4174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4176 break;;
4177 esac
4178 done
4179 else $as_nop
4180 printf "%s\n" "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error $? "cannot compute suffix of object files: cannot compile
4186 See \`config.log' for more details" "$LINENO" 5; }
4187 fi
4188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4189 fi
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4191 printf "%s\n" "$ac_cv_objext" >&6; }
4192 OBJEXT=$ac_cv_objext
4193 ac_objext=$OBJEXT
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4195 printf %s "checking whether the compiler supports GNU C... " >&6; }
4196 if test ${ac_cv_c_compiler_gnu+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else $as_nop
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202
4203 int
4204 main (void)
4205 {
4206 #ifndef __GNUC__
4207 choke me
4208 #endif
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 if ac_fn_c_try_compile "$LINENO"
4215 then :
4216 ac_compiler_gnu=yes
4217 else $as_nop
4218 ac_compiler_gnu=no
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4222
4223 fi
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4225 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228 if test $ac_compiler_gnu = yes; then
4229 GCC=yes
4230 else
4231 GCC=
4232 fi
4233 ac_test_CFLAGS=${CFLAGS+y}
4234 ac_save_CFLAGS=$CFLAGS
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4236 printf %s "checking whether $CC accepts -g... " >&6; }
4237 if test ${ac_cv_prog_cc_g+y}
4238 then :
4239 printf %s "(cached) " >&6
4240 else $as_nop
4241 ac_save_c_werror_flag=$ac_c_werror_flag
4242 ac_c_werror_flag=yes
4243 ac_cv_prog_cc_g=no
4244 CFLAGS="-g"
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247
4248 int
4249 main (void)
4250 {
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cc_g=yes
4259 else $as_nop
4260 CFLAGS=""
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263
4264 int
4265 main (void)
4266 {
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"
4273 then :
4274
4275 else $as_nop
4276 ac_c_werror_flag=$ac_save_c_werror_flag
4277 CFLAGS="-g"
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280
4281 int
4282 main (void)
4283 {
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"
4290 then :
4291 ac_cv_prog_cc_g=yes
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4298 ac_c_werror_flag=$ac_save_c_werror_flag
4299 fi
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4301 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4302 if test $ac_test_CFLAGS; then
4303 CFLAGS=$ac_save_CFLAGS
4304 elif test $ac_cv_prog_cc_g = yes; then
4305 if test "$GCC" = yes; then
4306 CFLAGS="-g -O2"
4307 else
4308 CFLAGS="-g"
4309 fi
4310 else
4311 if test "$GCC" = yes; then
4312 CFLAGS="-O2"
4313 else
4314 CFLAGS=
4315 fi
4316 fi
4317 ac_prog_cc_stdc=no
4318 if test x$ac_prog_cc_stdc = xno
4319 then :
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4321 printf %s "checking for $CC option to enable C11 features... " >&6; }
4322 if test ${ac_cv_prog_cc_c11+y}
4323 then :
4324 printf %s "(cached) " >&6
4325 else $as_nop
4326 ac_cv_prog_cc_c11=no
4327 ac_save_CC=$CC
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 $ac_c_conftest_c11_program
4331 _ACEOF
4332 for ac_arg in '' -std=gnu11
4333 do
4334 CC="$ac_save_CC $ac_arg"
4335 if ac_fn_c_try_compile "$LINENO"
4336 then :
4337 ac_cv_prog_cc_c11=$ac_arg
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam
4340 test "x$ac_cv_prog_cc_c11" != "xno" && break
4341 done
4342 rm -f conftest.$ac_ext
4343 CC=$ac_save_CC
4344 fi
4345
4346 if test "x$ac_cv_prog_cc_c11" = xno
4347 then :
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 printf "%s\n" "unsupported" >&6; }
4350 else $as_nop
4351 if test "x$ac_cv_prog_cc_c11" = x
4352 then :
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354 printf "%s\n" "none needed" >&6; }
4355 else $as_nop
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4357 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4358 CC="$CC $ac_cv_prog_cc_c11"
4359 fi
4360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4361 ac_prog_cc_stdc=c11
4362 fi
4363 fi
4364 if test x$ac_prog_cc_stdc = xno
4365 then :
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4367 printf %s "checking for $CC option to enable C99 features... " >&6; }
4368 if test ${ac_cv_prog_cc_c99+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else $as_nop
4372 ac_cv_prog_cc_c99=no
4373 ac_save_CC=$CC
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 $ac_c_conftest_c99_program
4377 _ACEOF
4378 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4379 do
4380 CC="$ac_save_CC $ac_arg"
4381 if ac_fn_c_try_compile "$LINENO"
4382 then :
4383 ac_cv_prog_cc_c99=$ac_arg
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.beam
4386 test "x$ac_cv_prog_cc_c99" != "xno" && break
4387 done
4388 rm -f conftest.$ac_ext
4389 CC=$ac_save_CC
4390 fi
4391
4392 if test "x$ac_cv_prog_cc_c99" = xno
4393 then :
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395 printf "%s\n" "unsupported" >&6; }
4396 else $as_nop
4397 if test "x$ac_cv_prog_cc_c99" = x
4398 then :
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4400 printf "%s\n" "none needed" >&6; }
4401 else $as_nop
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4403 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4404 CC="$CC $ac_cv_prog_cc_c99"
4405 fi
4406 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4407 ac_prog_cc_stdc=c99
4408 fi
4409 fi
4410 if test x$ac_prog_cc_stdc = xno
4411 then :
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4413 printf %s "checking for $CC option to enable C89 features... " >&6; }
4414 if test ${ac_cv_prog_cc_c89+y}
4415 then :
4416 printf %s "(cached) " >&6
4417 else $as_nop
4418 ac_cv_prog_cc_c89=no
4419 ac_save_CC=$CC
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422 $ac_c_conftest_c89_program
4423 _ACEOF
4424 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4425 do
4426 CC="$ac_save_CC $ac_arg"
4427 if ac_fn_c_try_compile "$LINENO"
4428 then :
4429 ac_cv_prog_cc_c89=$ac_arg
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext conftest.beam
4432 test "x$ac_cv_prog_cc_c89" != "xno" && break
4433 done
4434 rm -f conftest.$ac_ext
4435 CC=$ac_save_CC
4436 fi
4437
4438 if test "x$ac_cv_prog_cc_c89" = xno
4439 then :
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4441 printf "%s\n" "unsupported" >&6; }
4442 else $as_nop
4443 if test "x$ac_cv_prog_cc_c89" = x
4444 then :
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4446 printf "%s\n" "none needed" >&6; }
4447 else $as_nop
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4449 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4450 CC="$CC $ac_cv_prog_cc_c89"
4451 fi
4452 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4453 ac_prog_cc_stdc=c89
4454 fi
4455 fi
4456
4457 ac_ext=c
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
4463
4464 ac_ext=c
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4470 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4471 if test ${am_cv_prog_cc_c_o+y}
4472 then :
4473 printf %s "(cached) " >&6
4474 else $as_nop
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477
4478 int
4479 main (void)
4480 {
4481
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 # Make sure it works both with $CC and with simple cc.
4487 # Following AC_PROG_CC_C_O, we do the test twice because some
4488 # compilers refuse to overwrite an existing .o file with -o,
4489 # though they will create one.
4490 am_cv_prog_cc_c_o=yes
4491 for am_i in 1 2; do
4492 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4493 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } \
4497 && test -f conftest2.$ac_objext; then
4498 : OK
4499 else
4500 am_cv_prog_cc_c_o=no
4501 break
4502 fi
4503 done
4504 rm -f core conftest*
4505 unset am_i
4506 fi
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4508 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4509 if test "$am_cv_prog_cc_c_o" != yes; then
4510 # Losing compiler, so override with the script.
4511 # FIXME: It is wrong to rewrite CC.
4512 # But if we don't then we get into trouble of one sort or another.
4513 # A longer-term fix would be to have automake use am__CC in this case,
4514 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4515 CC="$am_aux_dir/compile $CC"
4516 fi
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523
4524 depcc="$CC" am_compiler_list=
4525
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4527 printf %s "checking dependency style of $depcc... " >&6; }
4528 if test ${am_cv_CC_dependencies_compiler_type+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else $as_nop
4532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4533 # We make a subdir and do the tests there. Otherwise we can end up
4534 # making bogus files that we don't know about and never remove. For
4535 # instance it was reported that on HP-UX the gcc test will end up
4536 # making a dummy file named 'D' -- because '-MD' means "put the output
4537 # in D".
4538 rm -rf conftest.dir
4539 mkdir conftest.dir
4540 # Copy depcomp to subdir because otherwise we won't find it if we're
4541 # using a relative directory.
4542 cp "$am_depcomp" conftest.dir
4543 cd conftest.dir
4544 # We will build objects and dependencies in a subdirectory because
4545 # it helps to detect inapplicable dependency modes. For instance
4546 # both Tru64's cc and ICC support -MD to output dependencies as a
4547 # side effect of compilation, but ICC will put the dependencies in
4548 # the current directory while Tru64 will put them in the object
4549 # directory.
4550 mkdir sub
4551
4552 am_cv_CC_dependencies_compiler_type=none
4553 if test "$am_compiler_list" = ""; then
4554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4555 fi
4556 am__universal=false
4557 case " $depcc " in #(
4558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4559 esac
4560
4561 for depmode in $am_compiler_list; do
4562 # Setup a source with many dependencies, because some compilers
4563 # like to wrap large dependency lists on column 80 (with \), and
4564 # we should not choose a depcomp mode which is confused by this.
4565 #
4566 # We need to recreate these files for each test, as the compiler may
4567 # overwrite some of them when testing with obscure command lines.
4568 # This happens at least with the AIX C compiler.
4569 : > sub/conftest.c
4570 for i in 1 2 3 4 5 6; do
4571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4573 # Solaris 10 /bin/sh.
4574 echo '/* dummy */' > sub/conftst$i.h
4575 done
4576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4577
4578 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4579 # mode. It turns out that the SunPro C++ compiler does not properly
4580 # handle '-M -o', and we need to detect this. Also, some Intel
4581 # versions had trouble with output in subdirs.
4582 am__obj=sub/conftest.${OBJEXT-o}
4583 am__minus_obj="-o $am__obj"
4584 case $depmode in
4585 gcc)
4586 # This depmode causes a compiler race in universal mode.
4587 test "$am__universal" = false || continue
4588 ;;
4589 nosideeffect)
4590 # After this tag, mechanisms are not by side-effect, so they'll
4591 # only be used when explicitly requested.
4592 if test "x$enable_dependency_tracking" = xyes; then
4593 continue
4594 else
4595 break
4596 fi
4597 ;;
4598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4599 # This compiler won't grok '-c -o', but also, the minuso test has
4600 # not run yet. These depmodes are late enough in the game, and
4601 # so weak that their functioning should not be impacted.
4602 am__obj=conftest.${OBJEXT-o}
4603 am__minus_obj=
4604 ;;
4605 none) break ;;
4606 esac
4607 if depmode=$depmode \
4608 source=sub/conftest.c object=$am__obj \
4609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4611 >/dev/null 2>conftest.err &&
4612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4616 # icc doesn't choke on unknown options, it will just issue warnings
4617 # or remarks (even with -Werror). So we grep stderr for any message
4618 # that says an option was ignored or not supported.
4619 # When given -MP, icc 7.0 and 7.1 complain thusly:
4620 # icc: Command line warning: ignoring option '-M'; no argument required
4621 # The diagnosis changed in icc 8.0:
4622 # icc: Command line remark: option '-MP' not supported
4623 if (grep 'ignoring option' conftest.err ||
4624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4625 am_cv_CC_dependencies_compiler_type=$depmode
4626 break
4627 fi
4628 fi
4629 done
4630
4631 cd ..
4632 rm -rf conftest.dir
4633 else
4634 am_cv_CC_dependencies_compiler_type=none
4635 fi
4636
4637 fi
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4639 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4640 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4641
4642 if
4643 test "x$enable_dependency_tracking" != xno \
4644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4645 am__fastdepCC_TRUE=
4646 am__fastdepCC_FALSE='#'
4647 else
4648 am__fastdepCC_TRUE='#'
4649 am__fastdepCC_FALSE=
4650 fi
4651
4652
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4654 printf %s "checking for a sed that does not truncate output... " >&6; }
4655 if test ${ac_cv_path_SED+y}
4656 then :
4657 printf %s "(cached) " >&6
4658 else $as_nop
4659 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4660 for ac_i in 1 2 3 4 5 6 7; do
4661 ac_script="$ac_script$as_nl$ac_script"
4662 done
4663 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4664 { ac_script=; unset ac_script;}
4665 if test -z "$SED"; then
4666 ac_path_SED_found=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 case $as_dir in #(((
4673 '') as_dir=./ ;;
4674 */) ;;
4675 *) as_dir=$as_dir/ ;;
4676 esac
4677 for ac_prog in sed gsed
4678 do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4681 as_fn_executable_p "$ac_path_SED" || continue
4682 # Check for GNU ac_path_SED and select it if it is found.
4683 # Check for GNU $ac_path_SED
4684 case `"$ac_path_SED" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4687 *)
4688 ac_count=0
4689 printf %s 0123456789 >"conftest.in"
4690 while :
4691 do
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 printf "%s\n" '' >> "conftest.nl"
4696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 as_fn_arith $ac_count + 1 && ac_count=$as_val
4699 if test $ac_count -gt ${ac_path_SED_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_SED="$ac_path_SED"
4702 ac_path_SED_max=$ac_count
4703 fi
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4709
4710 $ac_path_SED_found && break 3
4711 done
4712 done
4713 done
4714 IFS=$as_save_IFS
4715 if test -z "$ac_cv_path_SED"; then
4716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4717 fi
4718 else
4719 ac_cv_path_SED=$SED
4720 fi
4721
4722 fi
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4724 printf "%s\n" "$ac_cv_path_SED" >&6; }
4725 SED="$ac_cv_path_SED"
4726 rm -f conftest.sed
4727
4728 test -z "$SED" && SED=sed
4729 Xsed="$SED -e 1s/^X//"
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4742 printf %s "checking for grep that handles long lines and -e... " >&6; }
4743 if test ${ac_cv_path_GREP+y}
4744 then :
4745 printf %s "(cached) " >&6
4746 else $as_nop
4747 if test -z "$GREP"; then
4748 ac_path_GREP_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4752 do
4753 IFS=$as_save_IFS
4754 case $as_dir in #(((
4755 '') as_dir=./ ;;
4756 */) ;;
4757 *) as_dir=$as_dir/ ;;
4758 esac
4759 for ac_prog in grep ggrep
4760 do
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4763 as_fn_executable_p "$ac_path_GREP" || continue
4764 # Check for GNU ac_path_GREP and select it if it is found.
4765 # Check for GNU $ac_path_GREP
4766 case `"$ac_path_GREP" --version 2>&1` in
4767 *GNU*)
4768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4769 *)
4770 ac_count=0
4771 printf %s 0123456789 >"conftest.in"
4772 while :
4773 do
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
4777 printf "%s\n" 'GREP' >> "conftest.nl"
4778 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780 as_fn_arith $ac_count + 1 && ac_count=$as_val
4781 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_GREP="$ac_path_GREP"
4784 ac_path_GREP_max=$ac_count
4785 fi
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4788 done
4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790 esac
4791
4792 $ac_path_GREP_found && break 3
4793 done
4794 done
4795 done
4796 IFS=$as_save_IFS
4797 if test -z "$ac_cv_path_GREP"; then
4798 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4799 fi
4800 else
4801 ac_cv_path_GREP=$GREP
4802 fi
4803
4804 fi
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4806 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4807 GREP="$ac_cv_path_GREP"
4808
4809
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4811 printf %s "checking for egrep... " >&6; }
4812 if test ${ac_cv_path_EGREP+y}
4813 then :
4814 printf %s "(cached) " >&6
4815 else $as_nop
4816 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4817 then ac_cv_path_EGREP="$GREP -E"
4818 else
4819 if test -z "$EGREP"; then
4820 ac_path_EGREP_found=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4824 do
4825 IFS=$as_save_IFS
4826 case $as_dir in #(((
4827 '') as_dir=./ ;;
4828 */) ;;
4829 *) as_dir=$as_dir/ ;;
4830 esac
4831 for ac_prog in egrep
4832 do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4835 as_fn_executable_p "$ac_path_EGREP" || continue
4836 # Check for GNU ac_path_EGREP and select it if it is found.
4837 # Check for GNU $ac_path_EGREP
4838 case `"$ac_path_EGREP" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4841 *)
4842 ac_count=0
4843 printf %s 0123456789 >"conftest.in"
4844 while :
4845 do
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 printf "%s\n" 'EGREP' >> "conftest.nl"
4850 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_EGREP="$ac_path_EGREP"
4856 ac_path_EGREP_max=$ac_count
4857 fi
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864 $ac_path_EGREP_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_EGREP"; then
4870 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4871 fi
4872 else
4873 ac_cv_path_EGREP=$EGREP
4874 fi
4875
4876 fi
4877 fi
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4879 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4880 EGREP="$ac_cv_path_EGREP"
4881
4882
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4884 printf %s "checking for fgrep... " >&6; }
4885 if test ${ac_cv_path_FGREP+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else $as_nop
4889 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4890 then ac_cv_path_FGREP="$GREP -F"
4891 else
4892 if test -z "$FGREP"; then
4893 ac_path_FGREP_found=false
4894 # Loop through the user's path and test for each of PROGNAME-LIST
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4897 do
4898 IFS=$as_save_IFS
4899 case $as_dir in #(((
4900 '') as_dir=./ ;;
4901 */) ;;
4902 *) as_dir=$as_dir/ ;;
4903 esac
4904 for ac_prog in fgrep
4905 do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_FGREP" || continue
4909 # Check for GNU ac_path_FGREP and select it if it is found.
4910 # Check for GNU $ac_path_FGREP
4911 case `"$ac_path_FGREP" --version 2>&1` in
4912 *GNU*)
4913 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4914 *)
4915 ac_count=0
4916 printf %s 0123456789 >"conftest.in"
4917 while :
4918 do
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 printf "%s\n" 'FGREP' >> "conftest.nl"
4923 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_FGREP="$ac_path_FGREP"
4929 ac_path_FGREP_max=$ac_count
4930 fi
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4933 done
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937 $ac_path_FGREP_found && break 3
4938 done
4939 done
4940 done
4941 IFS=$as_save_IFS
4942 if test -z "$ac_cv_path_FGREP"; then
4943 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944 fi
4945 else
4946 ac_cv_path_FGREP=$FGREP
4947 fi
4948
4949 fi
4950 fi
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4952 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4953 FGREP="$ac_cv_path_FGREP"
4954
4955
4956 test -z "$GREP" && GREP=grep
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976 # Check whether --with-gnu-ld was given.
4977 if test ${with_gnu_ld+y}
4978 then :
4979 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4980 else $as_nop
4981 with_gnu_ld=no
4982 fi
4983
4984 ac_prog=ld
4985 if test yes = "$GCC"; then
4986 # Check if gcc -print-prog-name=ld gives a path.
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4988 printf %s "checking for ld used by $CC... " >&6; }
4989 case $host in
4990 *-*-mingw*)
4991 # gcc leaves a trailing carriage return, which upsets mingw
4992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4993 *)
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4995 esac
4996 case $ac_prog in
4997 # Accept absolute paths.
4998 [\\/]* | ?:[\\/]*)
4999 re_direlt='/[^/][^/]*/\.\./'
5000 # Canonicalize the pathname of ld
5001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5004 done
5005 test -z "$LD" && LD=$ac_prog
5006 ;;
5007 "")
5008 # If it fails, then pretend we aren't using GCC.
5009 ac_prog=ld
5010 ;;
5011 *)
5012 # If it is relative, then search for the first ld in PATH.
5013 with_gnu_ld=unknown
5014 ;;
5015 esac
5016 elif test yes = "$with_gnu_ld"; then
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5018 printf %s "checking for GNU ld... " >&6; }
5019 else
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5021 printf %s "checking for non-GNU ld... " >&6; }
5022 fi
5023 if test ${lt_cv_path_LD+y}
5024 then :
5025 printf %s "(cached) " >&6
5026 else $as_nop
5027 if test -z "$LD"; then
5028 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5029 for ac_dir in $PATH; do
5030 IFS=$lt_save_ifs
5031 test -z "$ac_dir" && ac_dir=.
5032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5033 lt_cv_path_LD=$ac_dir/$ac_prog
5034 # Check to see if the program is GNU ld. I'd rather use --version,
5035 # but apparently some variants of GNU ld only accept -v.
5036 # Break only if it was the GNU/non-GNU ld that we prefer.
5037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5038 *GNU* | *'with BFD'*)
5039 test no != "$with_gnu_ld" && break
5040 ;;
5041 *)
5042 test yes != "$with_gnu_ld" && break
5043 ;;
5044 esac
5045 fi
5046 done
5047 IFS=$lt_save_ifs
5048 else
5049 lt_cv_path_LD=$LD # Let the user override the test with a path.
5050 fi
5051 fi
5052
5053 LD=$lt_cv_path_LD
5054 if test -n "$LD"; then
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5056 printf "%s\n" "$LD" >&6; }
5057 else
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 printf "%s\n" "no" >&6; }
5060 fi
5061 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5063 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5064 if test ${lt_cv_prog_gnu_ld+y}
5065 then :
5066 printf %s "(cached) " >&6
5067 else $as_nop
5068 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5069 case `$LD -v 2>&1 </dev/null` in
5070 *GNU* | *'with BFD'*)
5071 lt_cv_prog_gnu_ld=yes
5072 ;;
5073 *)
5074 lt_cv_prog_gnu_ld=no
5075 ;;
5076 esac
5077 fi
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5079 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5080 with_gnu_ld=$lt_cv_prog_gnu_ld
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5091 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5092 if test ${lt_cv_path_NM+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else $as_nop
5096 if test -n "$NM"; then
5097 # Let the user override the test.
5098 lt_cv_path_NM=$NM
5099 else
5100 lt_nm_to_check=${ac_tool_prefix}nm
5101 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5102 lt_nm_to_check="$lt_nm_to_check nm"
5103 fi
5104 for lt_tmp_nm in $lt_nm_to_check; do
5105 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5106 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5107 IFS=$lt_save_ifs
5108 test -z "$ac_dir" && ac_dir=.
5109 tmp_nm=$ac_dir/$lt_tmp_nm
5110 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5111 # Check to see if the nm accepts a BSD-compat flag.
5112 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5113 # nm: unknown option "B" ignored
5114 # Tru64's nm complains that /dev/null is an invalid object file
5115 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5116 case $build_os in
5117 mingw*) lt_bad_file=conftest.nm/nofile ;;
5118 *) lt_bad_file=/dev/null ;;
5119 esac
5120 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5121 *$lt_bad_file* | *'Invalid file or object type'*)
5122 lt_cv_path_NM="$tmp_nm -B"
5123 break 2
5124 ;;
5125 *)
5126 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5127 */dev/null*)
5128 lt_cv_path_NM="$tmp_nm -p"
5129 break 2
5130 ;;
5131 *)
5132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5133 continue # so that we can try to find one that supports BSD flags
5134 ;;
5135 esac
5136 ;;
5137 esac
5138 fi
5139 done
5140 IFS=$lt_save_ifs
5141 done
5142 : ${lt_cv_path_NM=no}
5143 fi
5144 fi
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5146 printf "%s\n" "$lt_cv_path_NM" >&6; }
5147 if test no != "$lt_cv_path_NM"; then
5148 NM=$lt_cv_path_NM
5149 else
5150 # Didn't find any BSD compatible name lister, look for dumpbin.
5151 if test -n "$DUMPBIN"; then :
5152 # Let the user override the test.
5153 else
5154 if test -n "$ac_tool_prefix"; then
5155 for ac_prog in dumpbin "link -dump"
5156 do
5157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 printf %s "checking for $ac_word... " >&6; }
5161 if test ${ac_cv_prog_DUMPBIN+y}
5162 then :
5163 printf %s "(cached) " >&6
5164 else $as_nop
5165 if test -n "$DUMPBIN"; then
5166 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 case $as_dir in #(((
5173 '') as_dir=./ ;;
5174 */) ;;
5175 *) as_dir=$as_dir/ ;;
5176 esac
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187 fi
5188 fi
5189 DUMPBIN=$ac_cv_prog_DUMPBIN
5190 if test -n "$DUMPBIN"; then
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5192 printf "%s\n" "$DUMPBIN" >&6; }
5193 else
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 printf "%s\n" "no" >&6; }
5196 fi
5197
5198
5199 test -n "$DUMPBIN" && break
5200 done
5201 fi
5202 if test -z "$DUMPBIN"; then
5203 ac_ct_DUMPBIN=$DUMPBIN
5204 for ac_prog in dumpbin "link -dump"
5205 do
5206 # Extract the first word of "$ac_prog", so it can be a program name with args.
5207 set dummy $ac_prog; ac_word=$2
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 printf %s "checking for $ac_word... " >&6; }
5210 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5211 then :
5212 printf %s "(cached) " >&6
5213 else $as_nop
5214 if test -n "$ac_ct_DUMPBIN"; then
5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220 IFS=$as_save_IFS
5221 case $as_dir in #(((
5222 '') as_dir=./ ;;
5223 */) ;;
5224 *) as_dir=$as_dir/ ;;
5225 esac
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5239 if test -n "$ac_ct_DUMPBIN"; then
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5241 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5242 else
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 printf "%s\n" "no" >&6; }
5245 fi
5246
5247
5248 test -n "$ac_ct_DUMPBIN" && break
5249 done
5250
5251 if test "x$ac_ct_DUMPBIN" = x; then
5252 DUMPBIN=":"
5253 else
5254 case $cross_compiling:$ac_tool_warned in
5255 yes:)
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258 ac_tool_warned=yes ;;
5259 esac
5260 DUMPBIN=$ac_ct_DUMPBIN
5261 fi
5262 fi
5263
5264 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5265 *COFF*)
5266 DUMPBIN="$DUMPBIN -symbols -headers"
5267 ;;
5268 *)
5269 DUMPBIN=:
5270 ;;
5271 esac
5272 fi
5273
5274 if test : != "$DUMPBIN"; then
5275 NM=$DUMPBIN
5276 fi
5277 fi
5278 test -z "$NM" && NM=nm
5279
5280
5281
5282
5283
5284
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5286 printf %s "checking the name lister ($NM) interface... " >&6; }
5287 if test ${lt_cv_nm_interface+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else $as_nop
5291 lt_cv_nm_interface="BSD nm"
5292 echo "int some_variable = 0;" > conftest.$ac_ext
5293 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5294 (eval "$ac_compile" 2>conftest.err)
5295 cat conftest.err >&5
5296 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5297 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5298 cat conftest.err >&5
5299 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5300 cat conftest.out >&5
5301 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5302 lt_cv_nm_interface="MS dumpbin"
5303 fi
5304 rm -f conftest*
5305 fi
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5307 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5308
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5310 printf %s "checking whether ln -s works... " >&6; }
5311 LN_S=$as_ln_s
5312 if test "$LN_S" = "ln -s"; then
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5314 printf "%s\n" "yes" >&6; }
5315 else
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5317 printf "%s\n" "no, using $LN_S" >&6; }
5318 fi
5319
5320 # find the maximum length of command line arguments
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5322 printf %s "checking the maximum length of command line arguments... " >&6; }
5323 if test ${lt_cv_sys_max_cmd_len+y}
5324 then :
5325 printf %s "(cached) " >&6
5326 else $as_nop
5327 i=0
5328 teststring=ABCD
5329
5330 case $build_os in
5331 msdosdjgpp*)
5332 # On DJGPP, this test can blow up pretty badly due to problems in libc
5333 # (any single argument exceeding 2000 bytes causes a buffer overrun
5334 # during glob expansion). Even if it were fixed, the result of this
5335 # check would be larger than it should be.
5336 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5337 ;;
5338
5339 gnu*)
5340 # Under GNU Hurd, this test is not required because there is
5341 # no limit to the length of command line arguments.
5342 # Libtool will interpret -1 as no limit whatsoever
5343 lt_cv_sys_max_cmd_len=-1;
5344 ;;
5345
5346 cygwin* | mingw* | cegcc*)
5347 # On Win9x/ME, this test blows up -- it succeeds, but takes
5348 # about 5 minutes as the teststring grows exponentially.
5349 # Worse, since 9x/ME are not pre-emptively multitasking,
5350 # you end up with a "frozen" computer, even though with patience
5351 # the test eventually succeeds (with a max line length of 256k).
5352 # Instead, let's just punt: use the minimum linelength reported by
5353 # all of the supported platforms: 8192 (on NT/2K/XP).
5354 lt_cv_sys_max_cmd_len=8192;
5355 ;;
5356
5357 mint*)
5358 # On MiNT this can take a long time and run out of memory.
5359 lt_cv_sys_max_cmd_len=8192;
5360 ;;
5361
5362 amigaos*)
5363 # On AmigaOS with pdksh, this test takes hours, literally.
5364 # So we just punt and use a minimum line length of 8192.
5365 lt_cv_sys_max_cmd_len=8192;
5366 ;;
5367
5368 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5369 # This has been around since 386BSD, at least. Likely further.
5370 if test -x /sbin/sysctl; then
5371 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5372 elif test -x /usr/sbin/sysctl; then
5373 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5374 else
5375 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5376 fi
5377 # And add a safety zone
5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5380 ;;
5381
5382 interix*)
5383 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5384 lt_cv_sys_max_cmd_len=196608
5385 ;;
5386
5387 os2*)
5388 # The test takes a long time on OS/2.
5389 lt_cv_sys_max_cmd_len=8192
5390 ;;
5391
5392 osf*)
5393 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5394 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5395 # nice to cause kernel panics so lets avoid the loop below.
5396 # First set a reasonable default.
5397 lt_cv_sys_max_cmd_len=16384
5398 #
5399 if test -x /sbin/sysconfig; then
5400 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5401 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5402 esac
5403 fi
5404 ;;
5405 sco3.2v5*)
5406 lt_cv_sys_max_cmd_len=102400
5407 ;;
5408 sysv5* | sco5v6* | sysv4.2uw2*)
5409 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5410 if test -n "$kargmax"; then
5411 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5412 else
5413 lt_cv_sys_max_cmd_len=32768
5414 fi
5415 ;;
5416 *)
5417 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5418 if test -n "$lt_cv_sys_max_cmd_len" && \
5419 test undefined != "$lt_cv_sys_max_cmd_len"; then
5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5422 else
5423 # Make teststring a little bigger before we do anything with it.
5424 # a 1K string should be a reasonable start.
5425 for i in 1 2 3 4 5 6 7 8; do
5426 teststring=$teststring$teststring
5427 done
5428 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5429 # If test is not a shell built-in, we'll probably end up computing a
5430 # maximum length that is only half of the actual maximum length, but
5431 # we can't tell.
5432 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5433 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5434 test 17 != "$i" # 1/2 MB should be enough
5435 do
5436 i=`expr $i + 1`
5437 teststring=$teststring$teststring
5438 done
5439 # Only check the string length outside the loop.
5440 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5441 teststring=
5442 # Add a significant safety factor because C++ compilers can tack on
5443 # massive amounts of additional arguments before passing them to the
5444 # linker. It appears as though 1/2 is a usable value.
5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5446 fi
5447 ;;
5448 esac
5449
5450 fi
5451
5452 if test -n "$lt_cv_sys_max_cmd_len"; then
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5454 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5455 else
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5457 printf "%s\n" "none" >&6; }
5458 fi
5459 max_cmd_len=$lt_cv_sys_max_cmd_len
5460
5461
5462
5463
5464
5465
5466 : ${CP="cp -f"}
5467 : ${MV="mv -f"}
5468 : ${RM="rm -f"}
5469
5470 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5471 lt_unset=unset
5472 else
5473 lt_unset=false
5474 fi
5475
5476
5477
5478
5479
5480 # test EBCDIC or ASCII
5481 case `echo X|tr X '\101'` in
5482 A) # ASCII based system
5483 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5484 lt_SP2NL='tr \040 \012'
5485 lt_NL2SP='tr \015\012 \040\040'
5486 ;;
5487 *) # EBCDIC based system
5488 lt_SP2NL='tr \100 \n'
5489 lt_NL2SP='tr \r\n \100\100'
5490 ;;
5491 esac
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5502 printf %s "checking how to convert $build file names to $host format... " >&6; }
5503 if test ${lt_cv_to_host_file_cmd+y}
5504 then :
5505 printf %s "(cached) " >&6
5506 else $as_nop
5507 case $host in
5508 *-*-mingw* )
5509 case $build in
5510 *-*-mingw* ) # actually msys
5511 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5512 ;;
5513 *-*-cygwin* )
5514 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5515 ;;
5516 * ) # otherwise, assume *nix
5517 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5518 ;;
5519 esac
5520 ;;
5521 *-*-cygwin* )
5522 case $build in
5523 *-*-mingw* ) # actually msys
5524 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5525 ;;
5526 *-*-cygwin* )
5527 lt_cv_to_host_file_cmd=func_convert_file_noop
5528 ;;
5529 * ) # otherwise, assume *nix
5530 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5531 ;;
5532 esac
5533 ;;
5534 * ) # unhandled hosts (and "normal" native builds)
5535 lt_cv_to_host_file_cmd=func_convert_file_noop
5536 ;;
5537 esac
5538
5539 fi
5540
5541 to_host_file_cmd=$lt_cv_to_host_file_cmd
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5543 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5544
5545
5546
5547
5548
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5550 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5551 if test ${lt_cv_to_tool_file_cmd+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else $as_nop
5555 #assume ordinary cross tools, or native build.
5556 lt_cv_to_tool_file_cmd=func_convert_file_noop
5557 case $host in
5558 *-*-mingw* )
5559 case $build in
5560 *-*-mingw* ) # actually msys
5561 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5562 ;;
5563 esac
5564 ;;
5565 esac
5566
5567 fi
5568
5569 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5571 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5572
5573
5574
5575
5576
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5578 printf %s "checking for $LD option to reload object files... " >&6; }
5579 if test ${lt_cv_ld_reload_flag+y}
5580 then :
5581 printf %s "(cached) " >&6
5582 else $as_nop
5583 lt_cv_ld_reload_flag='-r'
5584 fi
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5586 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5587 reload_flag=$lt_cv_ld_reload_flag
5588 case $reload_flag in
5589 "" | " "*) ;;
5590 *) reload_flag=" $reload_flag" ;;
5591 esac
5592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5593 case $host_os in
5594 cygwin* | mingw* | pw32* | cegcc*)
5595 if test yes != "$GCC"; then
5596 reload_cmds=false
5597 fi
5598 ;;
5599 darwin*)
5600 if test yes = "$GCC"; then
5601 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5602 else
5603 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5604 fi
5605 ;;
5606 esac
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616 if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5618 set dummy ${ac_tool_prefix}file; ac_word=$2
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 printf %s "checking for $ac_word... " >&6; }
5621 if test ${ac_cv_prog_FILECMD+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else $as_nop
5625 if test -n "$FILECMD"; then
5626 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 case $as_dir in #(((
5633 '') as_dir=./ ;;
5634 */) ;;
5635 *) as_dir=$as_dir/ ;;
5636 esac
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 FILECMD=$ac_cv_prog_FILECMD
5650 if test -n "$FILECMD"; then
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5652 printf "%s\n" "$FILECMD" >&6; }
5653 else
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 printf "%s\n" "no" >&6; }
5656 fi
5657
5658
5659 fi
5660 if test -z "$ac_cv_prog_FILECMD"; then
5661 ac_ct_FILECMD=$FILECMD
5662 # Extract the first word of "file", so it can be a program name with args.
5663 set dummy file; ac_word=$2
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 printf %s "checking for $ac_word... " >&6; }
5666 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5667 then :
5668 printf %s "(cached) " >&6
5669 else $as_nop
5670 if test -n "$ac_ct_FILECMD"; then
5671 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 case $as_dir in #(((
5678 '') as_dir=./ ;;
5679 */) ;;
5680 *) as_dir=$as_dir/ ;;
5681 esac
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_ac_ct_FILECMD="file"
5685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688 done
5689 done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5695 if test -n "$ac_ct_FILECMD"; then
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5697 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5698 else
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 printf "%s\n" "no" >&6; }
5701 fi
5702
5703 if test "x$ac_ct_FILECMD" = x; then
5704 FILECMD=":"
5705 else
5706 case $cross_compiling:$ac_tool_warned in
5707 yes:)
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710 ac_tool_warned=yes ;;
5711 esac
5712 FILECMD=$ac_ct_FILECMD
5713 fi
5714 else
5715 FILECMD="$ac_cv_prog_FILECMD"
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724 if test -n "$ac_tool_prefix"; then
5725 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 printf %s "checking for $ac_word... " >&6; }
5729 if test ${ac_cv_prog_OBJDUMP+y}
5730 then :
5731 printf %s "(cached) " >&6
5732 else $as_nop
5733 if test -n "$OBJDUMP"; then
5734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739 IFS=$as_save_IFS
5740 case $as_dir in #(((
5741 '') as_dir=./ ;;
5742 */) ;;
5743 *) as_dir=$as_dir/ ;;
5744 esac
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751 done
5752 done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 OBJDUMP=$ac_cv_prog_OBJDUMP
5758 if test -n "$OBJDUMP"; then
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5760 printf "%s\n" "$OBJDUMP" >&6; }
5761 else
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 printf "%s\n" "no" >&6; }
5764 fi
5765
5766
5767 fi
5768 if test -z "$ac_cv_prog_OBJDUMP"; then
5769 ac_ct_OBJDUMP=$OBJDUMP
5770 # Extract the first word of "objdump", so it can be a program name with args.
5771 set dummy objdump; ac_word=$2
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 printf %s "checking for $ac_word... " >&6; }
5774 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else $as_nop
5778 if test -n "$ac_ct_OBJDUMP"; then
5779 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784 IFS=$as_save_IFS
5785 case $as_dir in #(((
5786 '') as_dir=./ ;;
5787 */) ;;
5788 *) as_dir=$as_dir/ ;;
5789 esac
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796 done
5797 done
5798 IFS=$as_save_IFS
5799
5800 fi
5801 fi
5802 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5803 if test -n "$ac_ct_OBJDUMP"; then
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5805 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5806 else
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 printf "%s\n" "no" >&6; }
5809 fi
5810
5811 if test "x$ac_ct_OBJDUMP" = x; then
5812 OBJDUMP="false"
5813 else
5814 case $cross_compiling:$ac_tool_warned in
5815 yes:)
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818 ac_tool_warned=yes ;;
5819 esac
5820 OBJDUMP=$ac_ct_OBJDUMP
5821 fi
5822 else
5823 OBJDUMP="$ac_cv_prog_OBJDUMP"
5824 fi
5825
5826 test -z "$OBJDUMP" && OBJDUMP=objdump
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5837 printf %s "checking how to recognize dependent libraries... " >&6; }
5838 if test ${lt_cv_deplibs_check_method+y}
5839 then :
5840 printf %s "(cached) " >&6
5841 else $as_nop
5842 lt_cv_file_magic_cmd='$MAGIC_CMD'
5843 lt_cv_file_magic_test_file=
5844 lt_cv_deplibs_check_method='unknown'
5845 # Need to set the preceding variable on all platforms that support
5846 # interlibrary dependencies.
5847 # 'none' -- dependencies not supported.
5848 # 'unknown' -- same as none, but documents that we really don't know.
5849 # 'pass_all' -- all dependencies passed with no checks.
5850 # 'test_compile' -- check by making test program.
5851 # 'file_magic [[regex]]' -- check by looking for files in library path
5852 # that responds to the $file_magic_cmd with a given extended regex.
5853 # If you have 'file' or equivalent on your system and you're not sure
5854 # whether 'pass_all' will *always* work, you probably want this one.
5855
5856 case $host_os in
5857 aix[4-9]*)
5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860
5861 beos*)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864
5865 bsdi[45]*)
5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5867 lt_cv_file_magic_cmd='$FILECMD -L'
5868 lt_cv_file_magic_test_file=/shlib/libc.so
5869 ;;
5870
5871 cygwin*)
5872 # func_win32_libid is a shell function defined in ltmain.sh
5873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5874 lt_cv_file_magic_cmd='func_win32_libid'
5875 ;;
5876
5877 mingw* | pw32*)
5878 # Base MSYS/MinGW do not provide the 'file' command needed by
5879 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5880 # unless we find 'file', for example because we are cross-compiling.
5881 if ( file / ) >/dev/null 2>&1; then
5882 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5883 lt_cv_file_magic_cmd='func_win32_libid'
5884 else
5885 # Keep this pattern in sync with the one in func_win32_libid.
5886 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5887 lt_cv_file_magic_cmd='$OBJDUMP -f'
5888 fi
5889 ;;
5890
5891 cegcc*)
5892 # use the weaker test based on 'objdump'. See mingw*.
5893 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5894 lt_cv_file_magic_cmd='$OBJDUMP -f'
5895 ;;
5896
5897 darwin* | rhapsody*)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900
5901 freebsd* | dragonfly* | midnightbsd*)
5902 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5903 case $host_cpu in
5904 i*86 )
5905 # Not sure whether the presence of OpenBSD here was a mistake.
5906 # Let's accept both of them until this is cleared up.
5907 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5908 lt_cv_file_magic_cmd=$FILECMD
5909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5910 ;;
5911 esac
5912 else
5913 lt_cv_deplibs_check_method=pass_all
5914 fi
5915 ;;
5916
5917 haiku*)
5918 lt_cv_deplibs_check_method=pass_all
5919 ;;
5920
5921 hpux10.20* | hpux11*)
5922 lt_cv_file_magic_cmd=$FILECMD
5923 case $host_cpu in
5924 ia64*)
5925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5926 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5927 ;;
5928 hppa*64*)
5929 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]'
5930 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5931 ;;
5932 *)
5933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5934 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5935 ;;
5936 esac
5937 ;;
5938
5939 interix[3-9]*)
5940 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5942 ;;
5943
5944 irix5* | irix6* | nonstopux*)
5945 case $LD in
5946 *-32|*"-32 ") libmagic=32-bit;;
5947 *-n32|*"-n32 ") libmagic=N32;;
5948 *-64|*"-64 ") libmagic=64-bit;;
5949 *) libmagic=never-match;;
5950 esac
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954 # This must be glibc/ELF.
5955 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958
5959 netbsd*)
5960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5962 else
5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5964 fi
5965 ;;
5966
5967 newos6*)
5968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5969 lt_cv_file_magic_cmd=$FILECMD
5970 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5971 ;;
5972
5973 *nto* | *qnx*)
5974 lt_cv_deplibs_check_method=pass_all
5975 ;;
5976
5977 openbsd* | bitrig*)
5978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5980 else
5981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5982 fi
5983 ;;
5984
5985 osf3* | osf4* | osf5*)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989 rdos*)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992
5993 solaris*)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000
6001 sysv4 | sysv4.3*)
6002 case $host_vendor in
6003 motorola)
6004 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]'
6005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6006 ;;
6007 ncr)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010 sequent)
6011 lt_cv_file_magic_cmd='/bin/file'
6012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6013 ;;
6014 sni)
6015 lt_cv_file_magic_cmd='/bin/file'
6016 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6017 lt_cv_file_magic_test_file=/lib/libc.so
6018 ;;
6019 siemens)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022 pc)
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
6025 esac
6026 ;;
6027
6028 tpf*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031 os2*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034 esac
6035
6036 fi
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6038 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6039
6040 file_magic_glob=
6041 want_nocaseglob=no
6042 if test "$build" = "$host"; then
6043 case $host_os in
6044 mingw* | pw32*)
6045 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6046 want_nocaseglob=yes
6047 else
6048 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6049 fi
6050 ;;
6051 esac
6052 fi
6053
6054 file_magic_cmd=$lt_cv_file_magic_cmd
6055 deplibs_check_method=$lt_cv_deplibs_check_method
6056 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6081 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 printf %s "checking for $ac_word... " >&6; }
6084 if test ${ac_cv_prog_DLLTOOL+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else $as_nop
6088 if test -n "$DLLTOOL"; then
6089 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094 IFS=$as_save_IFS
6095 case $as_dir in #(((
6096 '') as_dir=./ ;;
6097 */) ;;
6098 *) as_dir=$as_dir/ ;;
6099 esac
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 DLLTOOL=$ac_cv_prog_DLLTOOL
6113 if test -n "$DLLTOOL"; then
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6115 printf "%s\n" "$DLLTOOL" >&6; }
6116 else
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 printf "%s\n" "no" >&6; }
6119 fi
6120
6121
6122 fi
6123 if test -z "$ac_cv_prog_DLLTOOL"; then
6124 ac_ct_DLLTOOL=$DLLTOOL
6125 # Extract the first word of "dlltool", so it can be a program name with args.
6126 set dummy dlltool; ac_word=$2
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 printf %s "checking for $ac_word... " >&6; }
6129 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else $as_nop
6133 if test -n "$ac_ct_DLLTOOL"; then
6134 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139 IFS=$as_save_IFS
6140 case $as_dir in #(((
6141 '') as_dir=./ ;;
6142 */) ;;
6143 *) as_dir=$as_dir/ ;;
6144 esac
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6158 if test -n "$ac_ct_DLLTOOL"; then
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6160 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6161 else
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 printf "%s\n" "no" >&6; }
6164 fi
6165
6166 if test "x$ac_ct_DLLTOOL" = x; then
6167 DLLTOOL="false"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170 yes:)
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173 ac_tool_warned=yes ;;
6174 esac
6175 DLLTOOL=$ac_ct_DLLTOOL
6176 fi
6177 else
6178 DLLTOOL="$ac_cv_prog_DLLTOOL"
6179 fi
6180
6181 test -z "$DLLTOOL" && DLLTOOL=dlltool
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6193 printf %s "checking how to associate runtime and link libraries... " >&6; }
6194 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6195 then :
6196 printf %s "(cached) " >&6
6197 else $as_nop
6198 lt_cv_sharedlib_from_linklib_cmd='unknown'
6199
6200 case $host_os in
6201 cygwin* | mingw* | pw32* | cegcc*)
6202 # two different shell functions defined in ltmain.sh;
6203 # decide which one to use based on capabilities of $DLLTOOL
6204 case `$DLLTOOL --help 2>&1` in
6205 *--identify-strict*)
6206 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6207 ;;
6208 *)
6209 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6210 ;;
6211 esac
6212 ;;
6213 *)
6214 # fallback: assume linklib IS sharedlib
6215 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6216 ;;
6217 esac
6218
6219 fi
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6221 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6222 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6223 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6224
6225
6226
6227
6228
6229
6230
6231
6232 if test -n "$ac_tool_prefix"; then
6233 for ac_prog in ar
6234 do
6235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 printf %s "checking for $ac_word... " >&6; }
6239 if test ${ac_cv_prog_AR+y}
6240 then :
6241 printf %s "(cached) " >&6
6242 else $as_nop
6243 if test -n "$AR"; then
6244 ac_cv_prog_AR="$AR" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 case $as_dir in #(((
6251 '') as_dir=./ ;;
6252 */) ;;
6253 *) as_dir=$as_dir/ ;;
6254 esac
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 AR=$ac_cv_prog_AR
6268 if test -n "$AR"; then
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6270 printf "%s\n" "$AR" >&6; }
6271 else
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 printf "%s\n" "no" >&6; }
6274 fi
6275
6276
6277 test -n "$AR" && break
6278 done
6279 fi
6280 if test -z "$AR"; then
6281 ac_ct_AR=$AR
6282 for ac_prog in ar
6283 do
6284 # Extract the first word of "$ac_prog", so it can be a program name with args.
6285 set dummy $ac_prog; ac_word=$2
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 printf %s "checking for $ac_word... " >&6; }
6288 if test ${ac_cv_prog_ac_ct_AR+y}
6289 then :
6290 printf %s "(cached) " >&6
6291 else $as_nop
6292 if test -n "$ac_ct_AR"; then
6293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 case $as_dir in #(((
6300 '') as_dir=./ ;;
6301 */) ;;
6302 *) as_dir=$as_dir/ ;;
6303 esac
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_ac_ct_AR="$ac_prog"
6307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6317 if test -n "$ac_ct_AR"; then
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6319 printf "%s\n" "$ac_ct_AR" >&6; }
6320 else
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 printf "%s\n" "no" >&6; }
6323 fi
6324
6325
6326 test -n "$ac_ct_AR" && break
6327 done
6328
6329 if test "x$ac_ct_AR" = x; then
6330 AR="false"
6331 else
6332 case $cross_compiling:$ac_tool_warned in
6333 yes:)
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338 AR=$ac_ct_AR
6339 fi
6340 fi
6341
6342 : ${AR=ar}
6343
6344
6345
6346
6347
6348
6349 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6350 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6351 # higher priority because thats what people were doing historically (setting
6352 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6353 # variable obsoleted/removed.
6354
6355 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6356 lt_ar_flags=$AR_FLAGS
6357
6358
6359
6360
6361
6362
6363 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6364 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6365
6366
6367
6368
6369
6370
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6372 printf %s "checking for archiver @FILE support... " >&6; }
6373 if test ${lt_cv_ar_at_file+y}
6374 then :
6375 printf %s "(cached) " >&6
6376 else $as_nop
6377 lt_cv_ar_at_file=no
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380
6381 int
6382 main (void)
6383 {
6384
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"
6390 then :
6391 echo conftest.$ac_objext > conftest.lst
6392 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6394 (eval $lt_ar_try) 2>&5
6395 ac_status=$?
6396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397 test $ac_status = 0; }
6398 if test 0 -eq "$ac_status"; then
6399 # Ensure the archiver fails upon bogus file names.
6400 rm -f conftest.$ac_objext libconftest.a
6401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6402 (eval $lt_ar_try) 2>&5
6403 ac_status=$?
6404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; }
6406 if test 0 -ne "$ac_status"; then
6407 lt_cv_ar_at_file=@
6408 fi
6409 fi
6410 rm -f conftest.* libconftest.a
6411
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6414
6415 fi
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6417 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6418
6419 if test no = "$lt_cv_ar_at_file"; then
6420 archiver_list_spec=
6421 else
6422 archiver_list_spec=$lt_cv_ar_at_file
6423 fi
6424
6425
6426
6427
6428
6429
6430
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}strip; ac_word=$2
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 printf %s "checking for $ac_word... " >&6; }
6436 if test ${ac_cv_prog_STRIP+y}
6437 then :
6438 printf %s "(cached) " >&6
6439 else $as_nop
6440 if test -n "$STRIP"; then
6441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 case $as_dir in #(((
6448 '') as_dir=./ ;;
6449 */) ;;
6450 *) as_dir=$as_dir/ ;;
6451 esac
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 fi
6463 fi
6464 STRIP=$ac_cv_prog_STRIP
6465 if test -n "$STRIP"; then
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6467 printf "%s\n" "$STRIP" >&6; }
6468 else
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 printf "%s\n" "no" >&6; }
6471 fi
6472
6473
6474 fi
6475 if test -z "$ac_cv_prog_STRIP"; then
6476 ac_ct_STRIP=$STRIP
6477 # Extract the first word of "strip", so it can be a program name with args.
6478 set dummy strip; ac_word=$2
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 printf %s "checking for $ac_word... " >&6; }
6481 if test ${ac_cv_prog_ac_ct_STRIP+y}
6482 then :
6483 printf %s "(cached) " >&6
6484 else $as_nop
6485 if test -n "$ac_ct_STRIP"; then
6486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 case $as_dir in #(((
6493 '') as_dir=./ ;;
6494 */) ;;
6495 *) as_dir=$as_dir/ ;;
6496 esac
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_ac_ct_STRIP="strip"
6500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6510 if test -n "$ac_ct_STRIP"; then
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6512 printf "%s\n" "$ac_ct_STRIP" >&6; }
6513 else
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 printf "%s\n" "no" >&6; }
6516 fi
6517
6518 if test "x$ac_ct_STRIP" = x; then
6519 STRIP=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 STRIP=$ac_ct_STRIP
6528 fi
6529 else
6530 STRIP="$ac_cv_prog_STRIP"
6531 fi
6532
6533 test -z "$STRIP" && STRIP=:
6534
6535
6536
6537
6538
6539
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 printf %s "checking for $ac_word... " >&6; }
6545 if test ${ac_cv_prog_RANLIB+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else $as_nop
6549 if test -n "$RANLIB"; then
6550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555 IFS=$as_save_IFS
6556 case $as_dir in #(((
6557 '') as_dir=./ ;;
6558 */) ;;
6559 *) as_dir=$as_dir/ ;;
6560 esac
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 RANLIB=$ac_cv_prog_RANLIB
6574 if test -n "$RANLIB"; then
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6576 printf "%s\n" "$RANLIB" >&6; }
6577 else
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 printf "%s\n" "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_RANLIB"; then
6585 ac_ct_RANLIB=$RANLIB
6586 # Extract the first word of "ranlib", so it can be a program name with args.
6587 set dummy ranlib; ac_word=$2
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 printf %s "checking for $ac_word... " >&6; }
6590 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6591 then :
6592 printf %s "(cached) " >&6
6593 else $as_nop
6594 if test -n "$ac_ct_RANLIB"; then
6595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 case $as_dir in #(((
6602 '') as_dir=./ ;;
6603 */) ;;
6604 *) as_dir=$as_dir/ ;;
6605 esac
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_ac_ct_RANLIB="ranlib"
6609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612 done
6613 done
6614 IFS=$as_save_IFS
6615
6616 fi
6617 fi
6618 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6619 if test -n "$ac_ct_RANLIB"; then
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6621 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6622 else
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 printf "%s\n" "no" >&6; }
6625 fi
6626
6627 if test "x$ac_ct_RANLIB" = x; then
6628 RANLIB=":"
6629 else
6630 case $cross_compiling:$ac_tool_warned in
6631 yes:)
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6635 esac
6636 RANLIB=$ac_ct_RANLIB
6637 fi
6638 else
6639 RANLIB="$ac_cv_prog_RANLIB"
6640 fi
6641
6642 test -z "$RANLIB" && RANLIB=:
6643
6644
6645
6646
6647
6648
6649 # Determine commands to create old-style static archives.
6650 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6651 old_postinstall_cmds='chmod 644 $oldlib'
6652 old_postuninstall_cmds=
6653
6654 if test -n "$RANLIB"; then
6655 case $host_os in
6656 bitrig* | openbsd*)
6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6658 ;;
6659 *)
6660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6661 ;;
6662 esac
6663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6664 fi
6665
6666 case $host_os in
6667 darwin*)
6668 lock_old_archive_extraction=yes ;;
6669 *)
6670 lock_old_archive_extraction=no ;;
6671 esac
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711 # If no C compiler was specified, use CC.
6712 LTCC=${LTCC-"$CC"}
6713
6714 # If no C compiler flags were specified, use CFLAGS.
6715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6716
6717 # Allow CC to be a program name with arguments.
6718 compiler=$CC
6719
6720
6721 # Check for command to grab the raw symbol name followed by C symbol from nm.
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6723 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6724 if test ${lt_cv_sys_global_symbol_pipe+y}
6725 then :
6726 printf %s "(cached) " >&6
6727 else $as_nop
6728
6729 # These are sane defaults that work on at least a few old systems.
6730 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6731
6732 # Character class describing NM global symbol codes.
6733 symcode='[BCDEGRST]'
6734
6735 # Regexp to match symbols that can be accessed directly from C.
6736 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6737
6738 # Define system-specific variables.
6739 case $host_os in
6740 aix*)
6741 symcode='[BCDT]'
6742 ;;
6743 cygwin* | mingw* | pw32* | cegcc*)
6744 symcode='[ABCDGISTW]'
6745 ;;
6746 hpux*)
6747 if test ia64 = "$host_cpu"; then
6748 symcode='[ABCDEGRST]'
6749 fi
6750 ;;
6751 irix* | nonstopux*)
6752 symcode='[BCDEGRST]'
6753 ;;
6754 osf*)
6755 symcode='[BCDEGQRST]'
6756 ;;
6757 solaris*)
6758 symcode='[BDRT]'
6759 ;;
6760 sco3.2v5*)
6761 symcode='[DT]'
6762 ;;
6763 sysv4.2uw2*)
6764 symcode='[DT]'
6765 ;;
6766 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6767 symcode='[ABDT]'
6768 ;;
6769 sysv4)
6770 symcode='[DFNSTU]'
6771 ;;
6772 esac
6773
6774 # If we're using GNU nm, then use its standard symbol codes.
6775 case `$NM -V 2>&1` in
6776 *GNU* | *'with BFD'*)
6777 symcode='[ABCDGIRSTW]' ;;
6778 esac
6779
6780 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6781 # Gets list of data symbols to import.
6782 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6783 # Adjust the below global symbol transforms to fixup imported variables.
6784 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6785 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6786 lt_c_name_lib_hook="\
6787 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6788 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6789 else
6790 # Disable hooks by default.
6791 lt_cv_sys_global_symbol_to_import=
6792 lt_cdecl_hook=
6793 lt_c_name_hook=
6794 lt_c_name_lib_hook=
6795 fi
6796
6797 # Transform an extracted symbol line into a proper C declaration.
6798 # Some systems (esp. on ia64) link data and code symbols differently,
6799 # so use this general approach.
6800 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6801 $lt_cdecl_hook\
6802 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6803 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6804
6805 # Transform an extracted symbol line into symbol name and symbol address
6806 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6807 $lt_c_name_hook\
6808 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6809 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6810
6811 # Transform an extracted symbol line into symbol name with lib prefix and
6812 # symbol address.
6813 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6814 $lt_c_name_lib_hook\
6815 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6816 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6817 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6818
6819 # Handle CRLF in mingw tool chain
6820 opt_cr=
6821 case $build_os in
6822 mingw*)
6823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6824 ;;
6825 esac
6826
6827 # Try without a prefix underscore, then with it.
6828 for ac_symprfx in "" "_"; do
6829
6830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6831 symxfrm="\\1 $ac_symprfx\\2 \\2"
6832
6833 # Write the raw and C identifiers.
6834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6835 # Fake it for dumpbin and say T for any non-static function,
6836 # D for any global variable and I for any imported variable.
6837 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6838 # which start with @ or ?.
6839 lt_cv_sys_global_symbol_pipe="$AWK '"\
6840 " {last_section=section; section=\$ 3};"\
6841 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6842 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6843 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6844 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6845 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6846 " \$ 0!~/External *\|/{next};"\
6847 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6848 " {if(hide[section]) next};"\
6849 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6850 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6851 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6852 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6853 " ' prfx=^$ac_symprfx"
6854 else
6855 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6856 fi
6857 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6858
6859 # Check to see that the pipe works correctly.
6860 pipe_works=no
6861
6862 rm -f conftest*
6863 cat > conftest.$ac_ext <<_LT_EOF
6864 #ifdef __cplusplus
6865 extern "C" {
6866 #endif
6867 char nm_test_var;
6868 void nm_test_func(void);
6869 void nm_test_func(void){}
6870 #ifdef __cplusplus
6871 }
6872 #endif
6873 int main(){nm_test_var='a';nm_test_func();return(0);}
6874 _LT_EOF
6875
6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6877 (eval $ac_compile) 2>&5
6878 ac_status=$?
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880 test $ac_status = 0; }; then
6881 # Now try to grab the symbols.
6882 nlist=conftest.nm
6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6884 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6885 ac_status=$?
6886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887 test $ac_status = 0; } && test -s "$nlist"; then
6888 # Try sorting and uniquifying the output.
6889 if sort "$nlist" | uniq > "$nlist"T; then
6890 mv -f "$nlist"T "$nlist"
6891 else
6892 rm -f "$nlist"T
6893 fi
6894
6895 # Make sure that we snagged all the symbols we need.
6896 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6897 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6898 cat <<_LT_EOF > conftest.$ac_ext
6899 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6900 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6901 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6902 relocations are performed -- see ld's documentation on pseudo-relocs. */
6903 # define LT_DLSYM_CONST
6904 #elif defined __osf__
6905 /* This system does not cope well with relocations in const data. */
6906 # define LT_DLSYM_CONST
6907 #else
6908 # define LT_DLSYM_CONST const
6909 #endif
6910
6911 #ifdef __cplusplus
6912 extern "C" {
6913 #endif
6914
6915 _LT_EOF
6916 # Now generate the symbol file.
6917 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6918
6919 cat <<_LT_EOF >> conftest.$ac_ext
6920
6921 /* The mapping between symbol names and symbols. */
6922 LT_DLSYM_CONST struct {
6923 const char *name;
6924 void *address;
6925 }
6926 lt__PROGRAM__LTX_preloaded_symbols[] =
6927 {
6928 { "@PROGRAM@", (void *) 0 },
6929 _LT_EOF
6930 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6931 cat <<\_LT_EOF >> conftest.$ac_ext
6932 {0, (void *) 0}
6933 };
6934
6935 /* This works around a problem in FreeBSD linker */
6936 #ifdef FREEBSD_WORKAROUND
6937 static const void *lt_preloaded_setup() {
6938 return lt__PROGRAM__LTX_preloaded_symbols;
6939 }
6940 #endif
6941
6942 #ifdef __cplusplus
6943 }
6944 #endif
6945 _LT_EOF
6946 # Now try linking the two files.
6947 mv conftest.$ac_objext conftstm.$ac_objext
6948 lt_globsym_save_LIBS=$LIBS
6949 lt_globsym_save_CFLAGS=$CFLAGS
6950 LIBS=conftstm.$ac_objext
6951 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6953 (eval $ac_link) 2>&5
6954 ac_status=$?
6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6957 pipe_works=yes
6958 fi
6959 LIBS=$lt_globsym_save_LIBS
6960 CFLAGS=$lt_globsym_save_CFLAGS
6961 else
6962 echo "cannot find nm_test_func in $nlist" >&5
6963 fi
6964 else
6965 echo "cannot find nm_test_var in $nlist" >&5
6966 fi
6967 else
6968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6969 fi
6970 else
6971 echo "$progname: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 fi
6974 rm -rf conftest* conftst*
6975
6976 # Do not use the global_symbol_pipe unless it works.
6977 if test yes = "$pipe_works"; then
6978 break
6979 else
6980 lt_cv_sys_global_symbol_pipe=
6981 fi
6982 done
6983
6984 fi
6985
6986 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6987 lt_cv_sys_global_symbol_to_cdecl=
6988 fi
6989 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6991 printf "%s\n" "failed" >&6; }
6992 else
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6994 printf "%s\n" "ok" >&6; }
6995 fi
6996
6997 # Response file support.
6998 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6999 nm_file_list_spec='@'
7000 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7001 nm_file_list_spec='@'
7002 fi
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7041 printf %s "checking for sysroot... " >&6; }
7042
7043 # Check whether --with-sysroot was given.
7044 if test ${with_sysroot+y}
7045 then :
7046 withval=$with_sysroot;
7047 else $as_nop
7048 with_sysroot=no
7049 fi
7050
7051
7052 lt_sysroot=
7053 case $with_sysroot in #(
7054 yes)
7055 if test yes = "$GCC"; then
7056 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7057 fi
7058 ;; #(
7059 /*)
7060 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7061 ;; #(
7062 no|'')
7063 ;; #(
7064 *)
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7066 printf "%s\n" "$with_sysroot" >&6; }
7067 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7068 ;;
7069 esac
7070
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7072 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7073
7074
7075
7076
7077
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7079 printf %s "checking for a working dd... " >&6; }
7080 if test ${ac_cv_path_lt_DD+y}
7081 then :
7082 printf %s "(cached) " >&6
7083 else $as_nop
7084 printf 0123456789abcdef0123456789abcdef >conftest.i
7085 cat conftest.i conftest.i >conftest2.i
7086 : ${lt_DD:=$DD}
7087 if test -z "$lt_DD"; then
7088 ac_path_lt_DD_found=false
7089 # Loop through the user's path and test for each of PROGNAME-LIST
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 case $as_dir in #(((
7095 '') as_dir=./ ;;
7096 */) ;;
7097 *) as_dir=$as_dir/ ;;
7098 esac
7099 for ac_prog in dd
7100 do
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7103 as_fn_executable_p "$ac_path_lt_DD" || continue
7104 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7105 cmp -s conftest.i conftest.out \
7106 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7107 fi
7108 $ac_path_lt_DD_found && break 3
7109 done
7110 done
7111 done
7112 IFS=$as_save_IFS
7113 if test -z "$ac_cv_path_lt_DD"; then
7114 :
7115 fi
7116 else
7117 ac_cv_path_lt_DD=$lt_DD
7118 fi
7119
7120 rm -f conftest.i conftest2.i conftest.out
7121 fi
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7123 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7124
7125
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7127 printf %s "checking how to truncate binary pipes... " >&6; }
7128 if test ${lt_cv_truncate_bin+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else $as_nop
7132 printf 0123456789abcdef0123456789abcdef >conftest.i
7133 cat conftest.i conftest.i >conftest2.i
7134 lt_cv_truncate_bin=
7135 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7136 cmp -s conftest.i conftest.out \
7137 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7138 fi
7139 rm -f conftest.i conftest2.i conftest.out
7140 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7141 fi
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7143 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7144
7145
7146
7147
7148
7149
7150
7151 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7152 func_cc_basename ()
7153 {
7154 for cc_temp in $*""; do
7155 case $cc_temp in
7156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7158 \-*) ;;
7159 *) break;;
7160 esac
7161 done
7162 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7163 }
7164
7165 # Check whether --enable-libtool-lock was given.
7166 if test ${enable_libtool_lock+y}
7167 then :
7168 enableval=$enable_libtool_lock;
7169 fi
7170
7171 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7172
7173 # Some flags need to be propagated to the compiler or linker for good
7174 # libtool support.
7175 case $host in
7176 ia64-*-hpux*)
7177 # Find out what ABI is being produced by ac_compile, and set mode
7178 # options accordingly.
7179 echo 'int i;' > conftest.$ac_ext
7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181 (eval $ac_compile) 2>&5
7182 ac_status=$?
7183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
7185 case `$FILECMD conftest.$ac_objext` in
7186 *ELF-32*)
7187 HPUX_IA64_MODE=32
7188 ;;
7189 *ELF-64*)
7190 HPUX_IA64_MODE=64
7191 ;;
7192 esac
7193 fi
7194 rm -rf conftest*
7195 ;;
7196 *-*-irix6*)
7197 # Find out what ABI is being produced by ac_compile, and set linker
7198 # options accordingly.
7199 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201 (eval $ac_compile) 2>&5
7202 ac_status=$?
7203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; then
7205 if test yes = "$lt_cv_prog_gnu_ld"; then
7206 case `$FILECMD conftest.$ac_objext` in
7207 *32-bit*)
7208 LD="${LD-ld} -melf32bsmip"
7209 ;;
7210 *N32*)
7211 LD="${LD-ld} -melf32bmipn32"
7212 ;;
7213 *64-bit*)
7214 LD="${LD-ld} -melf64bmip"
7215 ;;
7216 esac
7217 else
7218 case `$FILECMD conftest.$ac_objext` in
7219 *32-bit*)
7220 LD="${LD-ld} -32"
7221 ;;
7222 *N32*)
7223 LD="${LD-ld} -n32"
7224 ;;
7225 *64-bit*)
7226 LD="${LD-ld} -64"
7227 ;;
7228 esac
7229 fi
7230 fi
7231 rm -rf conftest*
7232 ;;
7233
7234 mips64*-*linux*)
7235 # Find out what ABI is being produced by ac_compile, and set linker
7236 # options accordingly.
7237 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7239 (eval $ac_compile) 2>&5
7240 ac_status=$?
7241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; }; then
7243 emul=elf
7244 case `$FILECMD conftest.$ac_objext` in
7245 *32-bit*)
7246 emul="${emul}32"
7247 ;;
7248 *64-bit*)
7249 emul="${emul}64"
7250 ;;
7251 esac
7252 case `$FILECMD conftest.$ac_objext` in
7253 *MSB*)
7254 emul="${emul}btsmip"
7255 ;;
7256 *LSB*)
7257 emul="${emul}ltsmip"
7258 ;;
7259 esac
7260 case `$FILECMD conftest.$ac_objext` in
7261 *N32*)
7262 emul="${emul}n32"
7263 ;;
7264 esac
7265 LD="${LD-ld} -m $emul"
7266 fi
7267 rm -rf conftest*
7268 ;;
7269
7270 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7271 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7272 # Find out what ABI is being produced by ac_compile, and set linker
7273 # options accordingly. Note that the listed cases only cover the
7274 # situations where additional linker options are needed (such as when
7275 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7276 # vice versa); the common cases where no linker options are needed do
7277 # not appear in the list.
7278 echo 'int i;' > conftest.$ac_ext
7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7280 (eval $ac_compile) 2>&5
7281 ac_status=$?
7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; }; then
7284 case `$FILECMD conftest.o` in
7285 *32-bit*)
7286 case $host in
7287 x86_64-*kfreebsd*-gnu)
7288 LD="${LD-ld} -m elf_i386_fbsd"
7289 ;;
7290 x86_64-*linux*)
7291 case `$FILECMD conftest.o` in
7292 *x86-64*)
7293 LD="${LD-ld} -m elf32_x86_64"
7294 ;;
7295 *)
7296 LD="${LD-ld} -m elf_i386"
7297 ;;
7298 esac
7299 ;;
7300 powerpc64le-*linux*)
7301 LD="${LD-ld} -m elf32lppclinux"
7302 ;;
7303 powerpc64-*linux*)
7304 LD="${LD-ld} -m elf32ppclinux"
7305 ;;
7306 s390x-*linux*)
7307 LD="${LD-ld} -m elf_s390"
7308 ;;
7309 sparc64-*linux*)
7310 LD="${LD-ld} -m elf32_sparc"
7311 ;;
7312 esac
7313 ;;
7314 *64-bit*)
7315 case $host in
7316 x86_64-*kfreebsd*-gnu)
7317 LD="${LD-ld} -m elf_x86_64_fbsd"
7318 ;;
7319 x86_64-*linux*)
7320 LD="${LD-ld} -m elf_x86_64"
7321 ;;
7322 powerpcle-*linux*)
7323 LD="${LD-ld} -m elf64lppc"
7324 ;;
7325 powerpc-*linux*)
7326 LD="${LD-ld} -m elf64ppc"
7327 ;;
7328 s390*-*linux*|s390*-*tpf*)
7329 LD="${LD-ld} -m elf64_s390"
7330 ;;
7331 sparc*-*linux*)
7332 LD="${LD-ld} -m elf64_sparc"
7333 ;;
7334 esac
7335 ;;
7336 esac
7337 fi
7338 rm -rf conftest*
7339 ;;
7340
7341 *-*-sco3.2v5*)
7342 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7343 SAVE_CFLAGS=$CFLAGS
7344 CFLAGS="$CFLAGS -belf"
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7346 printf %s "checking whether the C compiler needs -belf... " >&6; }
7347 if test ${lt_cv_cc_needs_belf+y}
7348 then :
7349 printf %s "(cached) " >&6
7350 else $as_nop
7351 ac_ext=c
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7356
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359
7360 int
7361 main (void)
7362 {
7363
7364 ;
7365 return 0;
7366 }
7367 _ACEOF
7368 if ac_fn_c_try_link "$LINENO"
7369 then :
7370 lt_cv_cc_needs_belf=yes
7371 else $as_nop
7372 lt_cv_cc_needs_belf=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7375 conftest$ac_exeext conftest.$ac_ext
7376 ac_ext=c
7377 ac_cpp='$CPP $CPPFLAGS'
7378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381
7382 fi
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7384 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7385 if test yes != "$lt_cv_cc_needs_belf"; then
7386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7387 CFLAGS=$SAVE_CFLAGS
7388 fi
7389 ;;
7390 *-*solaris*)
7391 # Find out what ABI is being produced by ac_compile, and set linker
7392 # options accordingly.
7393 echo 'int i;' > conftest.$ac_ext
7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7395 (eval $ac_compile) 2>&5
7396 ac_status=$?
7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398 test $ac_status = 0; }; then
7399 case `$FILECMD conftest.o` in
7400 *64-bit*)
7401 case $lt_cv_prog_gnu_ld in
7402 yes*)
7403 case $host in
7404 i?86-*-solaris*|x86_64-*-solaris*)
7405 LD="${LD-ld} -m elf_x86_64"
7406 ;;
7407 sparc*-*-solaris*)
7408 LD="${LD-ld} -m elf64_sparc"
7409 ;;
7410 esac
7411 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7412 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7413 LD=${LD-ld}_sol2
7414 fi
7415 ;;
7416 *)
7417 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7418 LD="${LD-ld} -64"
7419 fi
7420 ;;
7421 esac
7422 ;;
7423 esac
7424 fi
7425 rm -rf conftest*
7426 ;;
7427 esac
7428
7429 need_locks=$enable_libtool_lock
7430
7431 if test -n "$ac_tool_prefix"; then
7432 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7433 set dummy ${ac_tool_prefix}mt; ac_word=$2
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 printf %s "checking for $ac_word... " >&6; }
7436 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7437 then :
7438 printf %s "(cached) " >&6
7439 else $as_nop
7440 if test -n "$MANIFEST_TOOL"; then
7441 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446 IFS=$as_save_IFS
7447 case $as_dir in #(((
7448 '') as_dir=./ ;;
7449 */) ;;
7450 *) as_dir=$as_dir/ ;;
7451 esac
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7465 if test -n "$MANIFEST_TOOL"; then
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7467 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7468 else
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 printf "%s\n" "no" >&6; }
7471 fi
7472
7473
7474 fi
7475 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7476 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7477 # Extract the first word of "mt", so it can be a program name with args.
7478 set dummy mt; ac_word=$2
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 printf %s "checking for $ac_word... " >&6; }
7481 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7482 then :
7483 printf %s "(cached) " >&6
7484 else $as_nop
7485 if test -n "$ac_ct_MANIFEST_TOOL"; then
7486 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 case $as_dir in #(((
7493 '') as_dir=./ ;;
7494 */) ;;
7495 *) as_dir=$as_dir/ ;;
7496 esac
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7510 if test -n "$ac_ct_MANIFEST_TOOL"; then
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7512 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7513 else
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 printf "%s\n" "no" >&6; }
7516 fi
7517
7518 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7519 MANIFEST_TOOL=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7528 fi
7529 else
7530 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7531 fi
7532
7533 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7535 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7536 if test ${lt_cv_path_mainfest_tool+y}
7537 then :
7538 printf %s "(cached) " >&6
7539 else $as_nop
7540 lt_cv_path_mainfest_tool=no
7541 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7542 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7543 cat conftest.err >&5
7544 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7545 lt_cv_path_mainfest_tool=yes
7546 fi
7547 rm -f conftest*
7548 fi
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7550 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7551 if test yes != "$lt_cv_path_mainfest_tool"; then
7552 MANIFEST_TOOL=:
7553 fi
7554
7555
7556
7557
7558
7559
7560 case $host_os in
7561 rhapsody* | darwin*)
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 printf %s "checking for $ac_word... " >&6; }
7567 if test ${ac_cv_prog_DSYMUTIL+y}
7568 then :
7569 printf %s "(cached) " >&6
7570 else $as_nop
7571 if test -n "$DSYMUTIL"; then
7572 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577 IFS=$as_save_IFS
7578 case $as_dir in #(((
7579 '') as_dir=./ ;;
7580 */) ;;
7581 *) as_dir=$as_dir/ ;;
7582 esac
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7596 if test -n "$DSYMUTIL"; then
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7598 printf "%s\n" "$DSYMUTIL" >&6; }
7599 else
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 printf "%s\n" "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_DSYMUTIL"; then
7607 ac_ct_DSYMUTIL=$DSYMUTIL
7608 # Extract the first word of "dsymutil", so it can be a program name with args.
7609 set dummy dsymutil; ac_word=$2
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 printf %s "checking for $ac_word... " >&6; }
7612 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7613 then :
7614 printf %s "(cached) " >&6
7615 else $as_nop
7616 if test -n "$ac_ct_DSYMUTIL"; then
7617 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622 IFS=$as_save_IFS
7623 case $as_dir in #(((
7624 '') as_dir=./ ;;
7625 */) ;;
7626 *) as_dir=$as_dir/ ;;
7627 esac
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7641 if test -n "$ac_ct_DSYMUTIL"; then
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7643 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7644 else
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 printf "%s\n" "no" >&6; }
7647 fi
7648
7649 if test "x$ac_ct_DSYMUTIL" = x; then
7650 DSYMUTIL=":"
7651 else
7652 case $cross_compiling:$ac_tool_warned in
7653 yes:)
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656 ac_tool_warned=yes ;;
7657 esac
7658 DSYMUTIL=$ac_ct_DSYMUTIL
7659 fi
7660 else
7661 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7662 fi
7663
7664 if test -n "$ac_tool_prefix"; then
7665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7666 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 printf %s "checking for $ac_word... " >&6; }
7669 if test ${ac_cv_prog_NMEDIT+y}
7670 then :
7671 printf %s "(cached) " >&6
7672 else $as_nop
7673 if test -n "$NMEDIT"; then
7674 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679 IFS=$as_save_IFS
7680 case $as_dir in #(((
7681 '') as_dir=./ ;;
7682 */) ;;
7683 *) as_dir=$as_dir/ ;;
7684 esac
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 NMEDIT=$ac_cv_prog_NMEDIT
7698 if test -n "$NMEDIT"; then
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7700 printf "%s\n" "$NMEDIT" >&6; }
7701 else
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 printf "%s\n" "no" >&6; }
7704 fi
7705
7706
7707 fi
7708 if test -z "$ac_cv_prog_NMEDIT"; then
7709 ac_ct_NMEDIT=$NMEDIT
7710 # Extract the first word of "nmedit", so it can be a program name with args.
7711 set dummy nmedit; ac_word=$2
7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 printf %s "checking for $ac_word... " >&6; }
7714 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7715 then :
7716 printf %s "(cached) " >&6
7717 else $as_nop
7718 if test -n "$ac_ct_NMEDIT"; then
7719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 case $as_dir in #(((
7726 '') as_dir=./ ;;
7727 */) ;;
7728 *) as_dir=$as_dir/ ;;
7729 esac
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7732 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7734 break 2
7735 fi
7736 done
7737 done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7743 if test -n "$ac_ct_NMEDIT"; then
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7745 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7746 else
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 printf "%s\n" "no" >&6; }
7749 fi
7750
7751 if test "x$ac_ct_NMEDIT" = x; then
7752 NMEDIT=":"
7753 else
7754 case $cross_compiling:$ac_tool_warned in
7755 yes:)
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758 ac_tool_warned=yes ;;
7759 esac
7760 NMEDIT=$ac_ct_NMEDIT
7761 fi
7762 else
7763 NMEDIT="$ac_cv_prog_NMEDIT"
7764 fi
7765
7766 if test -n "$ac_tool_prefix"; then
7767 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7768 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 printf %s "checking for $ac_word... " >&6; }
7771 if test ${ac_cv_prog_LIPO+y}
7772 then :
7773 printf %s "(cached) " >&6
7774 else $as_nop
7775 if test -n "$LIPO"; then
7776 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781 IFS=$as_save_IFS
7782 case $as_dir in #(((
7783 '') as_dir=./ ;;
7784 */) ;;
7785 *) as_dir=$as_dir/ ;;
7786 esac
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 LIPO=$ac_cv_prog_LIPO
7800 if test -n "$LIPO"; then
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7802 printf "%s\n" "$LIPO" >&6; }
7803 else
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 printf "%s\n" "no" >&6; }
7806 fi
7807
7808
7809 fi
7810 if test -z "$ac_cv_prog_LIPO"; then
7811 ac_ct_LIPO=$LIPO
7812 # Extract the first word of "lipo", so it can be a program name with args.
7813 set dummy lipo; ac_word=$2
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 printf %s "checking for $ac_word... " >&6; }
7816 if test ${ac_cv_prog_ac_ct_LIPO+y}
7817 then :
7818 printf %s "(cached) " >&6
7819 else $as_nop
7820 if test -n "$ac_ct_LIPO"; then
7821 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826 IFS=$as_save_IFS
7827 case $as_dir in #(((
7828 '') as_dir=./ ;;
7829 */) ;;
7830 *) as_dir=$as_dir/ ;;
7831 esac
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_ac_ct_LIPO="lipo"
7835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7845 if test -n "$ac_ct_LIPO"; then
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7847 printf "%s\n" "$ac_ct_LIPO" >&6; }
7848 else
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 printf "%s\n" "no" >&6; }
7851 fi
7852
7853 if test "x$ac_ct_LIPO" = x; then
7854 LIPO=":"
7855 else
7856 case $cross_compiling:$ac_tool_warned in
7857 yes:)
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7861 esac
7862 LIPO=$ac_ct_LIPO
7863 fi
7864 else
7865 LIPO="$ac_cv_prog_LIPO"
7866 fi
7867
7868 if test -n "$ac_tool_prefix"; then
7869 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7870 set dummy ${ac_tool_prefix}otool; ac_word=$2
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 printf %s "checking for $ac_word... " >&6; }
7873 if test ${ac_cv_prog_OTOOL+y}
7874 then :
7875 printf %s "(cached) " >&6
7876 else $as_nop
7877 if test -n "$OTOOL"; then
7878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883 IFS=$as_save_IFS
7884 case $as_dir in #(((
7885 '') as_dir=./ ;;
7886 */) ;;
7887 *) as_dir=$as_dir/ ;;
7888 esac
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 OTOOL=$ac_cv_prog_OTOOL
7902 if test -n "$OTOOL"; then
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7904 printf "%s\n" "$OTOOL" >&6; }
7905 else
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 printf "%s\n" "no" >&6; }
7908 fi
7909
7910
7911 fi
7912 if test -z "$ac_cv_prog_OTOOL"; then
7913 ac_ct_OTOOL=$OTOOL
7914 # Extract the first word of "otool", so it can be a program name with args.
7915 set dummy otool; ac_word=$2
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 printf %s "checking for $ac_word... " >&6; }
7918 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7919 then :
7920 printf %s "(cached) " >&6
7921 else $as_nop
7922 if test -n "$ac_ct_OTOOL"; then
7923 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928 IFS=$as_save_IFS
7929 case $as_dir in #(((
7930 '') as_dir=./ ;;
7931 */) ;;
7932 *) as_dir=$as_dir/ ;;
7933 esac
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_ac_ct_OTOOL="otool"
7937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7947 if test -n "$ac_ct_OTOOL"; then
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7949 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7950 else
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 printf "%s\n" "no" >&6; }
7953 fi
7954
7955 if test "x$ac_ct_OTOOL" = x; then
7956 OTOOL=":"
7957 else
7958 case $cross_compiling:$ac_tool_warned in
7959 yes:)
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962 ac_tool_warned=yes ;;
7963 esac
7964 OTOOL=$ac_ct_OTOOL
7965 fi
7966 else
7967 OTOOL="$ac_cv_prog_OTOOL"
7968 fi
7969
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 printf %s "checking for $ac_word... " >&6; }
7975 if test ${ac_cv_prog_OTOOL64+y}
7976 then :
7977 printf %s "(cached) " >&6
7978 else $as_nop
7979 if test -n "$OTOOL64"; then
7980 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 case $as_dir in #(((
7987 '') as_dir=./ ;;
7988 */) ;;
7989 *) as_dir=$as_dir/ ;;
7990 esac
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 OTOOL64=$ac_cv_prog_OTOOL64
8004 if test -n "$OTOOL64"; then
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8006 printf "%s\n" "$OTOOL64" >&6; }
8007 else
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 printf "%s\n" "no" >&6; }
8010 fi
8011
8012
8013 fi
8014 if test -z "$ac_cv_prog_OTOOL64"; then
8015 ac_ct_OTOOL64=$OTOOL64
8016 # Extract the first word of "otool64", so it can be a program name with args.
8017 set dummy otool64; ac_word=$2
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 printf %s "checking for $ac_word... " >&6; }
8020 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else $as_nop
8024 if test -n "$ac_ct_OTOOL64"; then
8025 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030 IFS=$as_save_IFS
8031 case $as_dir in #(((
8032 '') as_dir=./ ;;
8033 */) ;;
8034 *) as_dir=$as_dir/ ;;
8035 esac
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_OTOOL64="otool64"
8039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8049 if test -n "$ac_ct_OTOOL64"; then
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8051 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8052 else
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 printf "%s\n" "no" >&6; }
8055 fi
8056
8057 if test "x$ac_ct_OTOOL64" = x; then
8058 OTOOL64=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066 OTOOL64=$ac_ct_OTOOL64
8067 fi
8068 else
8069 OTOOL64="$ac_cv_prog_OTOOL64"
8070 fi
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8099 printf %s "checking for -single_module linker flag... " >&6; }
8100 if test ${lt_cv_apple_cc_single_mod+y}
8101 then :
8102 printf %s "(cached) " >&6
8103 else $as_nop
8104 lt_cv_apple_cc_single_mod=no
8105 if test -z "$LT_MULTI_MODULE"; then
8106 # By default we will add the -single_module flag. You can override
8107 # by either setting the environment variable LT_MULTI_MODULE
8108 # non-empty at configure time, or by adding -multi_module to the
8109 # link flags.
8110 rm -rf libconftest.dylib*
8111 echo "int foo(void){return 1;}" > conftest.c
8112 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113 -dynamiclib -Wl,-single_module conftest.c" >&5
8114 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8115 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8116 _lt_result=$?
8117 # If there is a non-empty error log, and "single_module"
8118 # appears in it, assume the flag caused a linker warning
8119 if test -s conftest.err && $GREP single_module conftest.err; then
8120 cat conftest.err >&5
8121 # Otherwise, if the output was created with a 0 exit code from
8122 # the compiler, it worked.
8123 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8124 lt_cv_apple_cc_single_mod=yes
8125 else
8126 cat conftest.err >&5
8127 fi
8128 rm -rf libconftest.dylib*
8129 rm -f conftest.*
8130 fi
8131 fi
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8133 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8134
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8136 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8137 if test ${lt_cv_ld_exported_symbols_list+y}
8138 then :
8139 printf %s "(cached) " >&6
8140 else $as_nop
8141 lt_cv_ld_exported_symbols_list=no
8142 save_LDFLAGS=$LDFLAGS
8143 echo "_main" > conftest.sym
8144 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147
8148 int
8149 main (void)
8150 {
8151
8152 ;
8153 return 0;
8154 }
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"
8157 then :
8158 lt_cv_ld_exported_symbols_list=yes
8159 else $as_nop
8160 lt_cv_ld_exported_symbols_list=no
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8163 conftest$ac_exeext conftest.$ac_ext
8164 LDFLAGS=$save_LDFLAGS
8165
8166 fi
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8168 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8169
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8171 printf %s "checking for -force_load linker flag... " >&6; }
8172 if test ${lt_cv_ld_force_load+y}
8173 then :
8174 printf %s "(cached) " >&6
8175 else $as_nop
8176 lt_cv_ld_force_load=no
8177 cat > conftest.c << _LT_EOF
8178 int forced_loaded() { return 2;}
8179 _LT_EOF
8180 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8181 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8182 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8183 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8184 echo "$RANLIB libconftest.a" >&5
8185 $RANLIB libconftest.a 2>&5
8186 cat > conftest.c << _LT_EOF
8187 int main() { return 0;}
8188 _LT_EOF
8189 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8190 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8191 _lt_result=$?
8192 if test -s conftest.err && $GREP force_load conftest.err; then
8193 cat conftest.err >&5
8194 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8195 lt_cv_ld_force_load=yes
8196 else
8197 cat conftest.err >&5
8198 fi
8199 rm -f conftest.err libconftest.a conftest conftest.c
8200 rm -rf conftest.dSYM
8201
8202 fi
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8204 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8205 case $host_os in
8206 rhapsody* | darwin1.[012])
8207 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8208 darwin1.*)
8209 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8210 darwin*)
8211 case $MACOSX_DEPLOYMENT_TARGET,$host in
8212 10.[012],*|,*powerpc*-darwin[5-8]*)
8213 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8214 *)
8215 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8216 esac
8217 ;;
8218 esac
8219 if test yes = "$lt_cv_apple_cc_single_mod"; then
8220 _lt_dar_single_mod='$single_module'
8221 fi
8222 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8223 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8224 else
8225 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8226 fi
8227 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8228 _lt_dsymutil='~$DSYMUTIL $lib || :'
8229 else
8230 _lt_dsymutil=
8231 fi
8232 ;;
8233 esac
8234
8235 # func_munge_path_list VARIABLE PATH
8236 # -----------------------------------
8237 # VARIABLE is name of variable containing _space_ separated list of
8238 # directories to be munged by the contents of PATH, which is string
8239 # having a format:
8240 # "DIR[:DIR]:"
8241 # string "DIR[ DIR]" will be prepended to VARIABLE
8242 # ":DIR[:DIR]"
8243 # string "DIR[ DIR]" will be appended to VARIABLE
8244 # "DIRP[:DIRP]::[DIRA:]DIRA"
8245 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8246 # "DIRA[ DIRA]" will be appended to VARIABLE
8247 # "DIR[:DIR]"
8248 # VARIABLE will be replaced by "DIR[ DIR]"
8249 func_munge_path_list ()
8250 {
8251 case x$2 in
8252 x)
8253 ;;
8254 *:)
8255 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8256 ;;
8257 x:*)
8258 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8259 ;;
8260 *::*)
8261 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8262 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8263 ;;
8264 *)
8265 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8266 ;;
8267 esac
8268 }
8269
8270 ac_header= ac_cache=
8271 for ac_item in $ac_header_c_list
8272 do
8273 if test $ac_cache; then
8274 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8275 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8276 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8277 fi
8278 ac_header= ac_cache=
8279 elif test $ac_header; then
8280 ac_cache=$ac_item
8281 else
8282 ac_header=$ac_item
8283 fi
8284 done
8285
8286
8287
8288
8289
8290
8291
8292
8293 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8294 then :
8295
8296 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8297
8298 fi
8299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8300 "
8301 if test "x$ac_cv_header_dlfcn_h" = xyes
8302 then :
8303 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8304
8305 fi
8306
8307
8308
8309
8310
8311 # Set options
8312
8313
8314
8315 enable_dlopen=no
8316
8317
8318 enable_win32_dll=no
8319
8320
8321 # Check whether --enable-shared was given.
8322 if test ${enable_shared+y}
8323 then :
8324 enableval=$enable_shared; p=${PACKAGE-default}
8325 case $enableval in
8326 yes) enable_shared=yes ;;
8327 no) enable_shared=no ;;
8328 *)
8329 enable_shared=no
8330 # Look at the argument we got. We use all the common list separators.
8331 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8332 for pkg in $enableval; do
8333 IFS=$lt_save_ifs
8334 if test "X$pkg" = "X$p"; then
8335 enable_shared=yes
8336 fi
8337 done
8338 IFS=$lt_save_ifs
8339 ;;
8340 esac
8341 else $as_nop
8342 enable_shared=yes
8343 fi
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353 # Check whether --enable-static was given.
8354 if test ${enable_static+y}
8355 then :
8356 enableval=$enable_static; p=${PACKAGE-default}
8357 case $enableval in
8358 yes) enable_static=yes ;;
8359 no) enable_static=no ;;
8360 *)
8361 enable_static=no
8362 # Look at the argument we got. We use all the common list separators.
8363 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8364 for pkg in $enableval; do
8365 IFS=$lt_save_ifs
8366 if test "X$pkg" = "X$p"; then
8367 enable_static=yes
8368 fi
8369 done
8370 IFS=$lt_save_ifs
8371 ;;
8372 esac
8373 else $as_nop
8374 enable_static=yes
8375 fi
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386 # Check whether --with-pic was given.
8387 if test ${with_pic+y}
8388 then :
8389 withval=$with_pic; lt_p=${PACKAGE-default}
8390 case $withval in
8391 yes|no) pic_mode=$withval ;;
8392 *)
8393 pic_mode=default
8394 # Look at the argument we got. We use all the common list separators.
8395 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8396 for lt_pkg in $withval; do
8397 IFS=$lt_save_ifs
8398 if test "X$lt_pkg" = "X$lt_p"; then
8399 pic_mode=yes
8400 fi
8401 done
8402 IFS=$lt_save_ifs
8403 ;;
8404 esac
8405 else $as_nop
8406 pic_mode=default
8407 fi
8408
8409
8410
8411
8412
8413
8414
8415
8416 # Check whether --enable-fast-install was given.
8417 if test ${enable_fast_install+y}
8418 then :
8419 enableval=$enable_fast_install; p=${PACKAGE-default}
8420 case $enableval in
8421 yes) enable_fast_install=yes ;;
8422 no) enable_fast_install=no ;;
8423 *)
8424 enable_fast_install=no
8425 # Look at the argument we got. We use all the common list separators.
8426 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8427 for pkg in $enableval; do
8428 IFS=$lt_save_ifs
8429 if test "X$pkg" = "X$p"; then
8430 enable_fast_install=yes
8431 fi
8432 done
8433 IFS=$lt_save_ifs
8434 ;;
8435 esac
8436 else $as_nop
8437 enable_fast_install=yes
8438 fi
8439
8440
8441
8442
8443
8444
8445
8446
8447 shared_archive_member_spec=
8448 case $host,$enable_shared in
8449 power*-*-aix[5-9]*,yes)
8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8451 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8452
8453 # Check whether --with-aix-soname was given.
8454 if test ${with_aix_soname+y}
8455 then :
8456 withval=$with_aix_soname; case $withval in
8457 aix|svr4|both)
8458 ;;
8459 *)
8460 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8461 ;;
8462 esac
8463 lt_cv_with_aix_soname=$with_aix_soname
8464 else $as_nop
8465 if test ${lt_cv_with_aix_soname+y}
8466 then :
8467 printf %s "(cached) " >&6
8468 else $as_nop
8469 lt_cv_with_aix_soname=aix
8470 fi
8471
8472 with_aix_soname=$lt_cv_with_aix_soname
8473 fi
8474
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8476 printf "%s\n" "$with_aix_soname" >&6; }
8477 if test aix != "$with_aix_soname"; then
8478 # For the AIX way of multilib, we name the shared archive member
8479 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8480 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8481 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8482 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8483 if test 64 = "${OBJECT_MODE-32}"; then
8484 shared_archive_member_spec=shr_64
8485 else
8486 shared_archive_member_spec=shr
8487 fi
8488 fi
8489 ;;
8490 *)
8491 with_aix_soname=aix
8492 ;;
8493 esac
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504 # This can be used to rebuild libtool when needed
8505 LIBTOOL_DEPS=$ltmain
8506
8507 # Always use our own libtool.
8508 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 test -z "$LN_S" && LN_S="ln -s"
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554 if test -n "${ZSH_VERSION+set}"; then
8555 setopt NO_GLOB_SUBST
8556 fi
8557
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8559 printf %s "checking for objdir... " >&6; }
8560 if test ${lt_cv_objdir+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else $as_nop
8564 rm -f .libs 2>/dev/null
8565 mkdir .libs 2>/dev/null
8566 if test -d .libs; then
8567 lt_cv_objdir=.libs
8568 else
8569 # MS-DOS does not allow filenames that begin with a dot.
8570 lt_cv_objdir=_libs
8571 fi
8572 rmdir .libs 2>/dev/null
8573 fi
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8575 printf "%s\n" "$lt_cv_objdir" >&6; }
8576 objdir=$lt_cv_objdir
8577
8578
8579
8580
8581
8582 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8583
8584
8585
8586
8587 case $host_os in
8588 aix3*)
8589 # AIX sometimes has problems with the GCC collect2 program. For some
8590 # reason, if we set the COLLECT_NAMES environment variable, the problems
8591 # vanish in a puff of smoke.
8592 if test set != "${COLLECT_NAMES+set}"; then
8593 COLLECT_NAMES=
8594 export COLLECT_NAMES
8595 fi
8596 ;;
8597 esac
8598
8599 # Global variables:
8600 ofile=libtool
8601 can_build_shared=yes
8602
8603 # All known linkers require a '.a' archive for static linking (except MSVC and
8604 # ICC, which need '.lib').
8605 libext=a
8606
8607 with_gnu_ld=$lt_cv_prog_gnu_ld
8608
8609 old_CC=$CC
8610 old_CFLAGS=$CFLAGS
8611
8612 # Set sane defaults for various variables
8613 test -z "$CC" && CC=cc
8614 test -z "$LTCC" && LTCC=$CC
8615 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8616 test -z "$LD" && LD=ld
8617 test -z "$ac_objext" && ac_objext=o
8618
8619 func_cc_basename $compiler
8620 cc_basename=$func_cc_basename_result
8621
8622
8623 # Only perform the check for file, if the check method requires it
8624 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8625 case $deplibs_check_method in
8626 file_magic*)
8627 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8629 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8630 if test ${lt_cv_path_MAGIC_CMD+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else $as_nop
8634 case $MAGIC_CMD in
8635 [\\/*] | ?:[\\/]*)
8636 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8637 ;;
8638 *)
8639 lt_save_MAGIC_CMD=$MAGIC_CMD
8640 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8642 for ac_dir in $ac_dummy; do
8643 IFS=$lt_save_ifs
8644 test -z "$ac_dir" && ac_dir=.
8645 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8646 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8647 if test -n "$file_magic_test_file"; then
8648 case $deplibs_check_method in
8649 "file_magic "*)
8650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8651 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8653 $EGREP "$file_magic_regex" > /dev/null; then
8654 :
8655 else
8656 cat <<_LT_EOF 1>&2
8657
8658 *** Warning: the command libtool uses to detect shared libraries,
8659 *** $file_magic_cmd, produces output that libtool cannot recognize.
8660 *** The result is that libtool may fail to recognize shared libraries
8661 *** as such. This will affect the creation of libtool libraries that
8662 *** depend on shared libraries, but programs linked with such libtool
8663 *** libraries will work regardless of this problem. Nevertheless, you
8664 *** may want to report the problem to your system manager and/or to
8665 *** bug-libtool@gnu.org
8666
8667 _LT_EOF
8668 fi ;;
8669 esac
8670 fi
8671 break
8672 fi
8673 done
8674 IFS=$lt_save_ifs
8675 MAGIC_CMD=$lt_save_MAGIC_CMD
8676 ;;
8677 esac
8678 fi
8679
8680 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8681 if test -n "$MAGIC_CMD"; then
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8683 printf "%s\n" "$MAGIC_CMD" >&6; }
8684 else
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 printf "%s\n" "no" >&6; }
8687 fi
8688
8689
8690
8691
8692
8693 if test -z "$lt_cv_path_MAGIC_CMD"; then
8694 if test -n "$ac_tool_prefix"; then
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8696 printf %s "checking for file... " >&6; }
8697 if test ${lt_cv_path_MAGIC_CMD+y}
8698 then :
8699 printf %s "(cached) " >&6
8700 else $as_nop
8701 case $MAGIC_CMD in
8702 [\\/*] | ?:[\\/]*)
8703 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8704 ;;
8705 *)
8706 lt_save_MAGIC_CMD=$MAGIC_CMD
8707 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8709 for ac_dir in $ac_dummy; do
8710 IFS=$lt_save_ifs
8711 test -z "$ac_dir" && ac_dir=.
8712 if test -f "$ac_dir/file"; then
8713 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8714 if test -n "$file_magic_test_file"; then
8715 case $deplibs_check_method in
8716 "file_magic "*)
8717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8718 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8720 $EGREP "$file_magic_regex" > /dev/null; then
8721 :
8722 else
8723 cat <<_LT_EOF 1>&2
8724
8725 *** Warning: the command libtool uses to detect shared libraries,
8726 *** $file_magic_cmd, produces output that libtool cannot recognize.
8727 *** The result is that libtool may fail to recognize shared libraries
8728 *** as such. This will affect the creation of libtool libraries that
8729 *** depend on shared libraries, but programs linked with such libtool
8730 *** libraries will work regardless of this problem. Nevertheless, you
8731 *** may want to report the problem to your system manager and/or to
8732 *** bug-libtool@gnu.org
8733
8734 _LT_EOF
8735 fi ;;
8736 esac
8737 fi
8738 break
8739 fi
8740 done
8741 IFS=$lt_save_ifs
8742 MAGIC_CMD=$lt_save_MAGIC_CMD
8743 ;;
8744 esac
8745 fi
8746
8747 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8748 if test -n "$MAGIC_CMD"; then
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8750 printf "%s\n" "$MAGIC_CMD" >&6; }
8751 else
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 printf "%s\n" "no" >&6; }
8754 fi
8755
8756
8757 else
8758 MAGIC_CMD=:
8759 fi
8760 fi
8761
8762 fi
8763 ;;
8764 esac
8765
8766 # Use C for the default configuration in the libtool script
8767
8768 lt_save_CC=$CC
8769 ac_ext=c
8770 ac_cpp='$CPP $CPPFLAGS'
8771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8774
8775
8776 # Source file extension for C test sources.
8777 ac_ext=c
8778
8779 # Object file extension for compiled C test sources.
8780 objext=o
8781 objext=$objext
8782
8783 # Code to be used in simple compile tests
8784 lt_simple_compile_test_code="int some_variable = 0;"
8785
8786 # Code to be used in simple link tests
8787 lt_simple_link_test_code='int main(){return(0);}'
8788
8789
8790
8791
8792
8793
8794
8795 # If no C compiler was specified, use CC.
8796 LTCC=${LTCC-"$CC"}
8797
8798 # If no C compiler flags were specified, use CFLAGS.
8799 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8800
8801 # Allow CC to be a program name with arguments.
8802 compiler=$CC
8803
8804 # Save the default compiler, since it gets overwritten when the other
8805 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8806 compiler_DEFAULT=$CC
8807
8808 # save warnings/boilerplate of simple test code
8809 ac_outfile=conftest.$ac_objext
8810 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8812 _lt_compiler_boilerplate=`cat conftest.err`
8813 $RM conftest*
8814
8815 ac_outfile=conftest.$ac_objext
8816 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8818 _lt_linker_boilerplate=`cat conftest.err`
8819 $RM -r conftest*
8820
8821
8822 ## CAVEAT EMPTOR:
8823 ## There is no encapsulation within the following macros, do not change
8824 ## the running order or otherwise move them around unless you know exactly
8825 ## what you are doing...
8826 if test -n "$compiler"; then
8827
8828 lt_prog_compiler_no_builtin_flag=
8829
8830 if test yes = "$GCC"; then
8831 case $cc_basename in
8832 nvcc*)
8833 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8834 *)
8835 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8836 esac
8837
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8839 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8840 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8841 then :
8842 printf %s "(cached) " >&6
8843 else $as_nop
8844 lt_cv_prog_compiler_rtti_exceptions=no
8845 ac_outfile=conftest.$ac_objext
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8848 # Insert the option either (1) after the last *FLAGS variable, or
8849 # (2) before a word containing "conftest.", or (3) at the end.
8850 # Note that $ac_compile itself does not contain backslashes and begins
8851 # with a dollar sign (not a hyphen), so the echo should work correctly.
8852 # The option is referenced via a variable to avoid confusing sed.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>conftest.err)
8859 ac_status=$?
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s "$ac_outfile"; then
8863 # The compiler can only warn and ignore the option if not recognized
8864 # So say no if there are warnings other than the usual output.
8865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8868 lt_cv_prog_compiler_rtti_exceptions=yes
8869 fi
8870 fi
8871 $RM conftest*
8872
8873 fi
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8875 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8876
8877 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8878 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8879 else
8880 :
8881 fi
8882
8883 fi
8884
8885
8886
8887
8888
8889
8890 lt_prog_compiler_wl=
8891 lt_prog_compiler_pic=
8892 lt_prog_compiler_static=
8893
8894
8895 if test yes = "$GCC"; then
8896 lt_prog_compiler_wl='-Wl,'
8897 lt_prog_compiler_static='-static'
8898
8899 case $host_os in
8900 aix*)
8901 # All AIX code is PIC.
8902 if test ia64 = "$host_cpu"; then
8903 # AIX 5 now supports IA64 processor
8904 lt_prog_compiler_static='-Bstatic'
8905 fi
8906 lt_prog_compiler_pic='-fPIC'
8907 ;;
8908
8909 amigaos*)
8910 case $host_cpu in
8911 powerpc)
8912 # see comment about AmigaOS4 .so support
8913 lt_prog_compiler_pic='-fPIC'
8914 ;;
8915 m68k)
8916 # FIXME: we need at least 68020 code to build shared libraries, but
8917 # adding the '-m68020' flag to GCC prevents building anything better,
8918 # like '-m68040'.
8919 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8920 ;;
8921 esac
8922 ;;
8923
8924 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8925 # PIC is the default for these OSes.
8926 ;;
8927
8928 mingw* | cygwin* | pw32* | os2* | cegcc*)
8929 # This hack is so that the source file can tell whether it is being
8930 # built for inclusion in a dll (and should export symbols for example).
8931 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8932 # (--disable-auto-import) libraries
8933 lt_prog_compiler_pic='-DDLL_EXPORT'
8934 case $host_os in
8935 os2*)
8936 lt_prog_compiler_static='$wl-static'
8937 ;;
8938 esac
8939 ;;
8940
8941 darwin* | rhapsody*)
8942 # PIC is the default on this platform
8943 # Common symbols not allowed in MH_DYLIB files
8944 lt_prog_compiler_pic='-fno-common'
8945 ;;
8946
8947 haiku*)
8948 # PIC is the default for Haiku.
8949 # The "-static" flag exists, but is broken.
8950 lt_prog_compiler_static=
8951 ;;
8952
8953 hpux*)
8954 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8955 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8956 # sets the default TLS model and affects inlining.
8957 case $host_cpu in
8958 hppa*64*)
8959 # +Z the default
8960 ;;
8961 *)
8962 lt_prog_compiler_pic='-fPIC'
8963 ;;
8964 esac
8965 ;;
8966
8967 interix[3-9]*)
8968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8969 # Instead, we relocate shared libraries at runtime.
8970 ;;
8971
8972 msdosdjgpp*)
8973 # Just because we use GCC doesn't mean we suddenly get shared libraries
8974 # on systems that don't support them.
8975 lt_prog_compiler_can_build_shared=no
8976 enable_shared=no
8977 ;;
8978
8979 *nto* | *qnx*)
8980 # QNX uses GNU C++, but need to define -shared option too, otherwise
8981 # it will coredump.
8982 lt_prog_compiler_pic='-fPIC -shared'
8983 ;;
8984
8985 sysv4*MP*)
8986 if test -d /usr/nec; then
8987 lt_prog_compiler_pic=-Kconform_pic
8988 fi
8989 ;;
8990
8991 *)
8992 lt_prog_compiler_pic='-fPIC'
8993 ;;
8994 esac
8995
8996 case $cc_basename in
8997 nvcc*) # Cuda Compiler Driver 2.2
8998 lt_prog_compiler_wl='-Xlinker '
8999 if test -n "$lt_prog_compiler_pic"; then
9000 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9001 fi
9002 ;;
9003 esac
9004 else
9005 # PORTME Check for flag to pass linker flags through the system compiler.
9006 case $host_os in
9007 aix*)
9008 lt_prog_compiler_wl='-Wl,'
9009 if test ia64 = "$host_cpu"; then
9010 # AIX 5 now supports IA64 processor
9011 lt_prog_compiler_static='-Bstatic'
9012 else
9013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9014 fi
9015 ;;
9016
9017 darwin* | rhapsody*)
9018 # PIC is the default on this platform
9019 # Common symbols not allowed in MH_DYLIB files
9020 lt_prog_compiler_pic='-fno-common'
9021 case $cc_basename in
9022 nagfor*)
9023 # NAG Fortran compiler
9024 lt_prog_compiler_wl='-Wl,-Wl,,'
9025 lt_prog_compiler_pic='-PIC'
9026 lt_prog_compiler_static='-Bstatic'
9027 ;;
9028 esac
9029 ;;
9030
9031 mingw* | cygwin* | pw32* | os2* | cegcc*)
9032 # This hack is so that the source file can tell whether it is being
9033 # built for inclusion in a dll (and should export symbols for example).
9034 lt_prog_compiler_pic='-DDLL_EXPORT'
9035 case $host_os in
9036 os2*)
9037 lt_prog_compiler_static='$wl-static'
9038 ;;
9039 esac
9040 ;;
9041
9042 hpux9* | hpux10* | hpux11*)
9043 lt_prog_compiler_wl='-Wl,'
9044 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9045 # not for PA HP-UX.
9046 case $host_cpu in
9047 hppa*64*|ia64*)
9048 # +Z the default
9049 ;;
9050 *)
9051 lt_prog_compiler_pic='+Z'
9052 ;;
9053 esac
9054 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9055 lt_prog_compiler_static='$wl-a ${wl}archive'
9056 ;;
9057
9058 irix5* | irix6* | nonstopux*)
9059 lt_prog_compiler_wl='-Wl,'
9060 # PIC (with -KPIC) is the default.
9061 lt_prog_compiler_static='-non_shared'
9062 ;;
9063
9064 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9065 case $cc_basename in
9066 # old Intel for x86_64, which still supported -KPIC.
9067 ecc*)
9068 lt_prog_compiler_wl='-Wl,'
9069 lt_prog_compiler_pic='-KPIC'
9070 lt_prog_compiler_static='-static'
9071 ;;
9072 # icc used to be incompatible with GCC.
9073 # ICC 10 doesn't accept -KPIC any more.
9074 icc* | ifort*)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-fPIC'
9077 lt_prog_compiler_static='-static'
9078 ;;
9079 # Lahey Fortran 8.1.
9080 lf95*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='--shared'
9083 lt_prog_compiler_static='--static'
9084 ;;
9085 nagfor*)
9086 # NAG Fortran compiler
9087 lt_prog_compiler_wl='-Wl,-Wl,,'
9088 lt_prog_compiler_pic='-PIC'
9089 lt_prog_compiler_static='-Bstatic'
9090 ;;
9091 tcc*)
9092 # Fabrice Bellard et al's Tiny C Compiler
9093 lt_prog_compiler_wl='-Wl,'
9094 lt_prog_compiler_pic='-fPIC'
9095 lt_prog_compiler_static='-static'
9096 ;;
9097 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9098 # Portland Group compilers (*not* the Pentium gcc compiler,
9099 # which looks to be a dead project)
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_pic='-fpic'
9102 lt_prog_compiler_static='-Bstatic'
9103 ;;
9104 ccc*)
9105 lt_prog_compiler_wl='-Wl,'
9106 # All Alpha code is PIC.
9107 lt_prog_compiler_static='-non_shared'
9108 ;;
9109 xl* | bgxl* | bgf* | mpixl*)
9110 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-qpic'
9113 lt_prog_compiler_static='-qstaticlink'
9114 ;;
9115 *)
9116 case `$CC -V 2>&1 | $SED 5q` in
9117 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9118 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9119 lt_prog_compiler_pic='-KPIC'
9120 lt_prog_compiler_static='-Bstatic'
9121 lt_prog_compiler_wl=''
9122 ;;
9123 *Sun\ F* | *Sun*Fortran*)
9124 lt_prog_compiler_pic='-KPIC'
9125 lt_prog_compiler_static='-Bstatic'
9126 lt_prog_compiler_wl='-Qoption ld '
9127 ;;
9128 *Sun\ C*)
9129 # Sun C 5.9
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-Bstatic'
9132 lt_prog_compiler_wl='-Wl,'
9133 ;;
9134 *Intel*\ [CF]*Compiler*)
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_pic='-fPIC'
9137 lt_prog_compiler_static='-static'
9138 ;;
9139 *Portland\ Group*)
9140 lt_prog_compiler_wl='-Wl,'
9141 lt_prog_compiler_pic='-fpic'
9142 lt_prog_compiler_static='-Bstatic'
9143 ;;
9144 esac
9145 ;;
9146 esac
9147 ;;
9148
9149 newsos6)
9150 lt_prog_compiler_pic='-KPIC'
9151 lt_prog_compiler_static='-Bstatic'
9152 ;;
9153
9154 *nto* | *qnx*)
9155 # QNX uses GNU C++, but need to define -shared option too, otherwise
9156 # it will coredump.
9157 lt_prog_compiler_pic='-fPIC -shared'
9158 ;;
9159
9160 osf3* | osf4* | osf5*)
9161 lt_prog_compiler_wl='-Wl,'
9162 # All OSF/1 code is PIC.
9163 lt_prog_compiler_static='-non_shared'
9164 ;;
9165
9166 rdos*)
9167 lt_prog_compiler_static='-non_shared'
9168 ;;
9169
9170 solaris*)
9171 lt_prog_compiler_pic='-KPIC'
9172 lt_prog_compiler_static='-Bstatic'
9173 case $cc_basename in
9174 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9175 lt_prog_compiler_wl='-Qoption ld ';;
9176 *)
9177 lt_prog_compiler_wl='-Wl,';;
9178 esac
9179 ;;
9180
9181 sunos4*)
9182 lt_prog_compiler_wl='-Qoption ld '
9183 lt_prog_compiler_pic='-PIC'
9184 lt_prog_compiler_static='-Bstatic'
9185 ;;
9186
9187 sysv4 | sysv4.2uw2* | sysv4.3*)
9188 lt_prog_compiler_wl='-Wl,'
9189 lt_prog_compiler_pic='-KPIC'
9190 lt_prog_compiler_static='-Bstatic'
9191 ;;
9192
9193 sysv4*MP*)
9194 if test -d /usr/nec; then
9195 lt_prog_compiler_pic='-Kconform_pic'
9196 lt_prog_compiler_static='-Bstatic'
9197 fi
9198 ;;
9199
9200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9201 lt_prog_compiler_wl='-Wl,'
9202 lt_prog_compiler_pic='-KPIC'
9203 lt_prog_compiler_static='-Bstatic'
9204 ;;
9205
9206 unicos*)
9207 lt_prog_compiler_wl='-Wl,'
9208 lt_prog_compiler_can_build_shared=no
9209 ;;
9210
9211 uts4*)
9212 lt_prog_compiler_pic='-pic'
9213 lt_prog_compiler_static='-Bstatic'
9214 ;;
9215
9216 *)
9217 lt_prog_compiler_can_build_shared=no
9218 ;;
9219 esac
9220 fi
9221
9222 case $host_os in
9223 # For platforms that do not support PIC, -DPIC is meaningless:
9224 *djgpp*)
9225 lt_prog_compiler_pic=
9226 ;;
9227 *)
9228 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9229 ;;
9230 esac
9231
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9233 printf %s "checking for $compiler option to produce PIC... " >&6; }
9234 if test ${lt_cv_prog_compiler_pic+y}
9235 then :
9236 printf %s "(cached) " >&6
9237 else $as_nop
9238 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9239 fi
9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9241 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9242 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9243
9244 #
9245 # Check to make sure the PIC flag actually works.
9246 #
9247 if test -n "$lt_prog_compiler_pic"; then
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9249 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9250 if test ${lt_cv_prog_compiler_pic_works+y}
9251 then :
9252 printf %s "(cached) " >&6
9253 else $as_nop
9254 lt_cv_prog_compiler_pic_works=no
9255 ac_outfile=conftest.$ac_objext
9256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9258 # Insert the option either (1) after the last *FLAGS variable, or
9259 # (2) before a word containing "conftest.", or (3) at the end.
9260 # Note that $ac_compile itself does not contain backslashes and begins
9261 # with a dollar sign (not a hyphen), so the echo should work correctly.
9262 # The option is referenced via a variable to avoid confusing sed.
9263 lt_compile=`echo "$ac_compile" | $SED \
9264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9266 -e 's:$: $lt_compiler_flag:'`
9267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9268 (eval "$lt_compile" 2>conftest.err)
9269 ac_status=$?
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 if (exit $ac_status) && test -s "$ac_outfile"; then
9273 # The compiler can only warn and ignore the option if not recognized
9274 # So say no if there are warnings other than the usual output.
9275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9278 lt_cv_prog_compiler_pic_works=yes
9279 fi
9280 fi
9281 $RM conftest*
9282
9283 fi
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9285 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9286
9287 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9288 case $lt_prog_compiler_pic in
9289 "" | " "*) ;;
9290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9291 esac
9292 else
9293 lt_prog_compiler_pic=
9294 lt_prog_compiler_can_build_shared=no
9295 fi
9296
9297 fi
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309 #
9310 # Check to make sure the static flag actually works.
9311 #
9312 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9314 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9315 if test ${lt_cv_prog_compiler_static_works+y}
9316 then :
9317 printf %s "(cached) " >&6
9318 else $as_nop
9319 lt_cv_prog_compiler_static_works=no
9320 save_LDFLAGS=$LDFLAGS
9321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9324 # The linker can only warn and ignore the option if not recognized
9325 # So say no if there are warnings
9326 if test -s conftest.err; then
9327 # Append any errors to the config.log.
9328 cat conftest.err 1>&5
9329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9331 if diff conftest.exp conftest.er2 >/dev/null; then
9332 lt_cv_prog_compiler_static_works=yes
9333 fi
9334 else
9335 lt_cv_prog_compiler_static_works=yes
9336 fi
9337 fi
9338 $RM -r conftest*
9339 LDFLAGS=$save_LDFLAGS
9340
9341 fi
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9343 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9344
9345 if test yes = "$lt_cv_prog_compiler_static_works"; then
9346 :
9347 else
9348 lt_prog_compiler_static=
9349 fi
9350
9351
9352
9353
9354
9355
9356
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9358 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9359 if test ${lt_cv_prog_compiler_c_o+y}
9360 then :
9361 printf %s "(cached) " >&6
9362 else $as_nop
9363 lt_cv_prog_compiler_c_o=no
9364 $RM -r conftest 2>/dev/null
9365 mkdir conftest
9366 cd conftest
9367 mkdir out
9368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9369
9370 lt_compiler_flag="-o out/conftest2.$ac_objext"
9371 # Insert the option either (1) after the last *FLAGS variable, or
9372 # (2) before a word containing "conftest.", or (3) at the end.
9373 # Note that $ac_compile itself does not contain backslashes and begins
9374 # with a dollar sign (not a hyphen), so the echo should work correctly.
9375 lt_compile=`echo "$ac_compile" | $SED \
9376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9378 -e 's:$: $lt_compiler_flag:'`
9379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9380 (eval "$lt_compile" 2>out/conftest.err)
9381 ac_status=$?
9382 cat out/conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9385 then
9386 # The compiler can only warn and ignore the option if not recognized
9387 # So say no if there are warnings
9388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9391 lt_cv_prog_compiler_c_o=yes
9392 fi
9393 fi
9394 chmod u+w . 2>&5
9395 $RM conftest*
9396 # SGI C++ compiler will create directory out/ii_files/ for
9397 # template instantiation
9398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9399 $RM out/* && rmdir out
9400 cd ..
9401 $RM -r conftest
9402 $RM conftest*
9403
9404 fi
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9406 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9407
9408
9409
9410
9411
9412
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9414 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9415 if test ${lt_cv_prog_compiler_c_o+y}
9416 then :
9417 printf %s "(cached) " >&6
9418 else $as_nop
9419 lt_cv_prog_compiler_c_o=no
9420 $RM -r conftest 2>/dev/null
9421 mkdir conftest
9422 cd conftest
9423 mkdir out
9424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425
9426 lt_compiler_flag="-o out/conftest2.$ac_objext"
9427 # Insert the option either (1) after the last *FLAGS variable, or
9428 # (2) before a word containing "conftest.", or (3) at the end.
9429 # Note that $ac_compile itself does not contain backslashes and begins
9430 # with a dollar sign (not a hyphen), so the echo should work correctly.
9431 lt_compile=`echo "$ac_compile" | $SED \
9432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434 -e 's:$: $lt_compiler_flag:'`
9435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9436 (eval "$lt_compile" 2>out/conftest.err)
9437 ac_status=$?
9438 cat out/conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9441 then
9442 # The compiler can only warn and ignore the option if not recognized
9443 # So say no if there are warnings
9444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9447 lt_cv_prog_compiler_c_o=yes
9448 fi
9449 fi
9450 chmod u+w . 2>&5
9451 $RM conftest*
9452 # SGI C++ compiler will create directory out/ii_files/ for
9453 # template instantiation
9454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9455 $RM out/* && rmdir out
9456 cd ..
9457 $RM -r conftest
9458 $RM conftest*
9459
9460 fi
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9462 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9463
9464
9465
9466
9467 hard_links=nottested
9468 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9469 # do not overwrite the value of need_locks provided by the user
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9471 printf %s "checking if we can lock with hard links... " >&6; }
9472 hard_links=yes
9473 $RM conftest*
9474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9475 touch conftest.a
9476 ln conftest.a conftest.b 2>&5 || hard_links=no
9477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9479 printf "%s\n" "$hard_links" >&6; }
9480 if test no = "$hard_links"; then
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9482 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9483 need_locks=warn
9484 fi
9485 else
9486 need_locks=no
9487 fi
9488
9489
9490
9491
9492
9493
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9495 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9496
9497 runpath_var=
9498 allow_undefined_flag=
9499 always_export_symbols=no
9500 archive_cmds=
9501 archive_expsym_cmds=
9502 compiler_needs_object=no
9503 enable_shared_with_static_runtimes=no
9504 export_dynamic_flag_spec=
9505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9506 hardcode_automatic=no
9507 hardcode_direct=no
9508 hardcode_direct_absolute=no
9509 hardcode_libdir_flag_spec=
9510 hardcode_libdir_separator=
9511 hardcode_minus_L=no
9512 hardcode_shlibpath_var=unsupported
9513 inherit_rpath=no
9514 link_all_deplibs=unknown
9515 module_cmds=
9516 module_expsym_cmds=
9517 old_archive_from_new_cmds=
9518 old_archive_from_expsyms_cmds=
9519 thread_safe_flag_spec=
9520 whole_archive_flag_spec=
9521 # include_expsyms should be a list of space-separated symbols to be *always*
9522 # included in the symbol list
9523 include_expsyms=
9524 # exclude_expsyms can be an extended regexp of symbols to exclude
9525 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9526 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9527 # as well as any symbol that contains 'd'.
9528 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9530 # platforms (ab)use it in PIC code, but their linkers get confused if
9531 # the symbol is explicitly referenced. Since portable code cannot
9532 # rely on this symbol name, it's probably fine to never include it in
9533 # preloaded symbol tables.
9534 # Exclude shared library initialization/finalization symbols.
9535 extract_expsyms_cmds=
9536
9537 case $host_os in
9538 cygwin* | mingw* | pw32* | cegcc*)
9539 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9540 # When not using gcc, we currently assume that we are using
9541 # Microsoft Visual C++ or Intel C++ Compiler.
9542 if test yes != "$GCC"; then
9543 with_gnu_ld=no
9544 fi
9545 ;;
9546 interix*)
9547 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9548 with_gnu_ld=yes
9549 ;;
9550 openbsd* | bitrig*)
9551 with_gnu_ld=no
9552 ;;
9553 esac
9554
9555 ld_shlibs=yes
9556
9557 # On some targets, GNU ld is compatible enough with the native linker
9558 # that we're better off using the native interface for both.
9559 lt_use_gnu_ld_interface=no
9560 if test yes = "$with_gnu_ld"; then
9561 case $host_os in
9562 aix*)
9563 # The AIX port of GNU ld has always aspired to compatibility
9564 # with the native linker. However, as the warning in the GNU ld
9565 # block says, versions before 2.19.5* couldn't really create working
9566 # shared libraries, regardless of the interface used.
9567 case `$LD -v 2>&1` in
9568 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9569 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9570 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9571 *)
9572 lt_use_gnu_ld_interface=yes
9573 ;;
9574 esac
9575 ;;
9576 *)
9577 lt_use_gnu_ld_interface=yes
9578 ;;
9579 esac
9580 fi
9581
9582 if test yes = "$lt_use_gnu_ld_interface"; then
9583 # If archive_cmds runs LD, not CC, wlarc should be empty
9584 wlarc='$wl'
9585
9586 # Set some defaults for GNU ld with shared library support. These
9587 # are reset later if shared libraries are not supported. Putting them
9588 # here allows them to be overridden if necessary.
9589 runpath_var=LD_RUN_PATH
9590 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9591 export_dynamic_flag_spec='$wl--export-dynamic'
9592 # ancient GNU ld didn't support --whole-archive et. al.
9593 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9594 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9595 else
9596 whole_archive_flag_spec=
9597 fi
9598 supports_anon_versioning=no
9599 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9600 *GNU\ gold*) supports_anon_versioning=yes ;;
9601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9604 *\ 2.11.*) ;; # other 2.11 versions
9605 *) supports_anon_versioning=yes ;;
9606 esac
9607
9608 # See if GNU ld supports shared libraries.
9609 case $host_os in
9610 aix[3-9]*)
9611 # On AIX/PPC, the GNU linker is very broken
9612 if test ia64 != "$host_cpu"; then
9613 ld_shlibs=no
9614 cat <<_LT_EOF 1>&2
9615
9616 *** Warning: the GNU linker, at least up to release 2.19, is reported
9617 *** to be unable to reliably create shared libraries on AIX.
9618 *** Therefore, libtool is disabling shared libraries support. If you
9619 *** really care for shared libraries, you may want to install binutils
9620 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9621 *** You will then need to restart the configuration process.
9622
9623 _LT_EOF
9624 fi
9625 ;;
9626
9627 amigaos*)
9628 case $host_cpu in
9629 powerpc)
9630 # see comment about AmigaOS4 .so support
9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9632 archive_expsym_cmds=''
9633 ;;
9634 m68k)
9635 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)'
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_minus_L=yes
9638 ;;
9639 esac
9640 ;;
9641
9642 beos*)
9643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9644 allow_undefined_flag=unsupported
9645 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9646 # support --undefined. This deserves some investigation. FIXME
9647 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9648 else
9649 ld_shlibs=no
9650 fi
9651 ;;
9652
9653 cygwin* | mingw* | pw32* | cegcc*)
9654 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9655 # as there is no search path for DLLs.
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 export_dynamic_flag_spec='$wl--export-all-symbols'
9658 allow_undefined_flag=unsupported
9659 always_export_symbols=no
9660 enable_shared_with_static_runtimes=yes
9661 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'
9662 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9663
9664 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9666 # If the export-symbols file already is a .def file, use it as
9667 # is; otherwise, prepend EXPORTS...
9668 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9669 cp $export_symbols $output_objdir/$soname.def;
9670 else
9671 echo EXPORTS > $output_objdir/$soname.def;
9672 cat $export_symbols >> $output_objdir/$soname.def;
9673 fi~
9674 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9675 else
9676 ld_shlibs=no
9677 fi
9678 ;;
9679
9680 haiku*)
9681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9682 link_all_deplibs=yes
9683 ;;
9684
9685 os2*)
9686 hardcode_libdir_flag_spec='-L$libdir'
9687 hardcode_minus_L=yes
9688 allow_undefined_flag=unsupported
9689 shrext_cmds=.dll
9690 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9693 $ECHO EXPORTS >> $output_objdir/$libname.def~
9694 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9695 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9696 emximp -o $lib $output_objdir/$libname.def'
9697 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9698 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9699 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9700 $ECHO EXPORTS >> $output_objdir/$libname.def~
9701 prefix_cmds="$SED"~
9702 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9703 prefix_cmds="$prefix_cmds -e 1d";
9704 fi~
9705 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9706 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9708 emximp -o $lib $output_objdir/$libname.def'
9709 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9710 enable_shared_with_static_runtimes=yes
9711 file_list_spec='@'
9712 ;;
9713
9714 interix[3-9]*)
9715 hardcode_direct=no
9716 hardcode_shlibpath_var=no
9717 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9718 export_dynamic_flag_spec='$wl-E'
9719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9720 # Instead, shared libraries are loaded at an image base (0x10000000 by
9721 # default) and relocated if they conflict, which is a slow very memory
9722 # consuming and fragmenting process. To avoid this, we pick a random,
9723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9726 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'
9727 ;;
9728
9729 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9730 tmp_diet=no
9731 if test linux-dietlibc = "$host_os"; then
9732 case $cc_basename in
9733 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9734 esac
9735 fi
9736 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9737 && test no = "$tmp_diet"
9738 then
9739 tmp_addflag=' $pic_flag'
9740 tmp_sharedflag='-shared'
9741 case $cc_basename,$host_cpu in
9742 pgcc*) # Portland Group C compiler
9743 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'
9744 tmp_addflag=' $pic_flag'
9745 ;;
9746 pgf77* | pgf90* | pgf95* | pgfortran*)
9747 # Portland Group f77 and f90 compilers
9748 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'
9749 tmp_addflag=' $pic_flag -Mnomain' ;;
9750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9751 tmp_addflag=' -i_dynamic' ;;
9752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9753 tmp_addflag=' -i_dynamic -nofor_main' ;;
9754 ifc* | ifort*) # Intel Fortran compiler
9755 tmp_addflag=' -nofor_main' ;;
9756 lf95*) # Lahey Fortran 8.1
9757 whole_archive_flag_spec=
9758 tmp_sharedflag='--shared' ;;
9759 nagfor*) # NAGFOR 5.3
9760 tmp_sharedflag='-Wl,-shared' ;;
9761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9762 tmp_sharedflag='-qmkshrobj'
9763 tmp_addflag= ;;
9764 nvcc*) # Cuda Compiler Driver 2.2
9765 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'
9766 compiler_needs_object=yes
9767 ;;
9768 esac
9769 case `$CC -V 2>&1 | $SED 5q` in
9770 *Sun\ C*) # Sun C 5.9
9771 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'
9772 compiler_needs_object=yes
9773 tmp_sharedflag='-G' ;;
9774 *Sun\ F*) # Sun Fortran 8.3
9775 tmp_sharedflag='-G' ;;
9776 esac
9777 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9778
9779 if test yes = "$supports_anon_versioning"; then
9780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9781 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9782 echo "local: *; };" >> $output_objdir/$libname.ver~
9783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9784 fi
9785
9786 case $cc_basename in
9787 tcc*)
9788 export_dynamic_flag_spec='-rdynamic'
9789 ;;
9790 xlf* | bgf* | bgxlf* | mpixlf*)
9791 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9792 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9793 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9794 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9795 if test yes = "$supports_anon_versioning"; then
9796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9797 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9798 echo "local: *; };" >> $output_objdir/$libname.ver~
9799 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9800 fi
9801 ;;
9802 esac
9803 else
9804 ld_shlibs=no
9805 fi
9806 ;;
9807
9808 netbsd*)
9809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9810 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9811 wlarc=
9812 else
9813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9814 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9815 fi
9816 ;;
9817
9818 solaris*)
9819 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9820 ld_shlibs=no
9821 cat <<_LT_EOF 1>&2
9822
9823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9824 *** create shared libraries on Solaris systems. Therefore, libtool
9825 *** is disabling shared libraries support. We urge you to upgrade GNU
9826 *** binutils to release 2.9.1 or newer. Another option is to modify
9827 *** your PATH or compiler configuration so that the native linker is
9828 *** used, and then restart.
9829
9830 _LT_EOF
9831 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9833 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9834 else
9835 ld_shlibs=no
9836 fi
9837 ;;
9838
9839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9840 case `$LD -v 2>&1` in
9841 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9842 ld_shlibs=no
9843 cat <<_LT_EOF 1>&2
9844
9845 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9846 *** reliably create shared libraries on SCO systems. Therefore, libtool
9847 *** is disabling shared libraries support. We urge you to upgrade GNU
9848 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9849 *** your PATH or compiler configuration so that the native linker is
9850 *** used, and then restart.
9851
9852 _LT_EOF
9853 ;;
9854 *)
9855 # For security reasons, it is highly recommended that you always
9856 # use absolute paths for naming shared libraries, and exclude the
9857 # DT_RUNPATH tag from executables and libraries. But doing so
9858 # requires that you compile everything twice, which is a pain.
9859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9863 else
9864 ld_shlibs=no
9865 fi
9866 ;;
9867 esac
9868 ;;
9869
9870 sunos4*)
9871 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9872 wlarc=
9873 hardcode_direct=yes
9874 hardcode_shlibpath_var=no
9875 ;;
9876
9877 *)
9878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9881 else
9882 ld_shlibs=no
9883 fi
9884 ;;
9885 esac
9886
9887 if test no = "$ld_shlibs"; then
9888 runpath_var=
9889 hardcode_libdir_flag_spec=
9890 export_dynamic_flag_spec=
9891 whole_archive_flag_spec=
9892 fi
9893 else
9894 # PORTME fill in a description of your system's linker (not GNU ld)
9895 case $host_os in
9896 aix3*)
9897 allow_undefined_flag=unsupported
9898 always_export_symbols=yes
9899 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'
9900 # Note: this linker hardcodes the directories in LIBPATH if there
9901 # are no directories specified by -L.
9902 hardcode_minus_L=yes
9903 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9904 # Neither direct hardcoding nor static linking is supported with a
9905 # broken collect2.
9906 hardcode_direct=unsupported
9907 fi
9908 ;;
9909
9910 aix[4-9]*)
9911 if test ia64 = "$host_cpu"; then
9912 # On IA64, the linker does run time linking by default, so we don't
9913 # have to do anything special.
9914 aix_use_runtimelinking=no
9915 exp_sym_flag='-Bexport'
9916 no_entry_flag=
9917 else
9918 # If we're using GNU nm, then we don't want the "-C" option.
9919 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9920 # Without the "-l" option, or with the "-B" option, AIX nm treats
9921 # weak defined symbols like other global defined symbols, whereas
9922 # GNU nm marks them as "W".
9923 # While the 'weak' keyword is ignored in the Export File, we need
9924 # it in the Import File for the 'aix-soname' feature, so we have
9925 # to replace the "-B" option with "-P" for AIX nm.
9926 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9927 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'
9928 else
9929 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9930 fi
9931 aix_use_runtimelinking=no
9932
9933 # Test if we are trying to use run time linking or normal
9934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9935 # have runtime linking enabled, and use it for executables.
9936 # For shared libraries, we enable/disable runtime linking
9937 # depending on the kind of the shared library created -
9938 # when "with_aix_soname,aix_use_runtimelinking" is:
9939 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9940 # "aix,yes" lib.so shared, rtl:yes, for executables
9941 # lib.a static archive
9942 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9943 # lib.a(lib.so.V) shared, rtl:no, for executables
9944 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9945 # lib.a(lib.so.V) shared, rtl:no
9946 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9947 # lib.a static archive
9948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9949 for ld_flag in $LDFLAGS; do
9950 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9951 aix_use_runtimelinking=yes
9952 break
9953 fi
9954 done
9955 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9956 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9957 # so we don't have lib.a shared libs to link our executables.
9958 # We have to force runtime linking in this case.
9959 aix_use_runtimelinking=yes
9960 LDFLAGS="$LDFLAGS -Wl,-brtl"
9961 fi
9962 ;;
9963 esac
9964
9965 exp_sym_flag='-bexport'
9966 no_entry_flag='-bnoentry'
9967 fi
9968
9969 # When large executables or shared objects are built, AIX ld can
9970 # have problems creating the table of contents. If linking a library
9971 # or program results in "error TOC overflow" add -mminimal-toc to
9972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9974
9975 archive_cmds=''
9976 hardcode_direct=yes
9977 hardcode_direct_absolute=yes
9978 hardcode_libdir_separator=':'
9979 link_all_deplibs=yes
9980 file_list_spec='$wl-f,'
9981 case $with_aix_soname,$aix_use_runtimelinking in
9982 aix,*) ;; # traditional, no import file
9983 svr4,* | *,yes) # use import file
9984 # The Import File defines what to hardcode.
9985 hardcode_direct=no
9986 hardcode_direct_absolute=no
9987 ;;
9988 esac
9989
9990 if test yes = "$GCC"; then
9991 case $host_os in aix4.[012]|aix4.[012].*)
9992 # We only want to do this on AIX 4.2 and lower, the check
9993 # below for broken collect2 doesn't work under 4.3+
9994 collect2name=`$CC -print-prog-name=collect2`
9995 if test -f "$collect2name" &&
9996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9997 then
9998 # We have reworked collect2
9999 :
10000 else
10001 # We have old collect2
10002 hardcode_direct=unsupported
10003 # It fails to find uninstalled libraries when the uninstalled
10004 # path is not listed in the libpath. Setting hardcode_minus_L
10005 # to unsupported forces relinking
10006 hardcode_minus_L=yes
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_libdir_separator=
10009 fi
10010 ;;
10011 esac
10012 shared_flag='-shared'
10013 if test yes = "$aix_use_runtimelinking"; then
10014 shared_flag="$shared_flag "'$wl-G'
10015 fi
10016 # Need to ensure runtime linking is disabled for the traditional
10017 # shared library, or the linker may eventually find shared libraries
10018 # /with/ Import File - we do not want to mix them.
10019 shared_flag_aix='-shared'
10020 shared_flag_svr4='-shared $wl-G'
10021 else
10022 # not using gcc
10023 if test ia64 = "$host_cpu"; then
10024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10025 # chokes on -Wl,-G. The following line is correct:
10026 shared_flag='-G'
10027 else
10028 if test yes = "$aix_use_runtimelinking"; then
10029 shared_flag='$wl-G'
10030 else
10031 shared_flag='$wl-bM:SRE'
10032 fi
10033 shared_flag_aix='$wl-bM:SRE'
10034 shared_flag_svr4='$wl-G'
10035 fi
10036 fi
10037
10038 export_dynamic_flag_spec='$wl-bexpall'
10039 # It seems that -bexpall does not export symbols beginning with
10040 # underscore (_), so it is better to generate a list of symbols to export.
10041 always_export_symbols=yes
10042 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10043 # Warning - without using the other runtime loading flags (-brtl),
10044 # -berok will link without error, but may produce a broken library.
10045 allow_undefined_flag='-berok'
10046 # Determine the default libpath from the value encoded in an
10047 # empty executable.
10048 if test set = "${lt_cv_aix_libpath+set}"; then
10049 aix_libpath=$lt_cv_aix_libpath
10050 else
10051 if test ${lt_cv_aix_libpath_+y}
10052 then :
10053 printf %s "(cached) " >&6
10054 else $as_nop
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057
10058 int
10059 main (void)
10060 {
10061
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 if ac_fn_c_try_link "$LINENO"
10067 then :
10068
10069 lt_aix_libpath_sed='
10070 /Import File Strings/,/^$/ {
10071 /^0/ {
10072 s/^0 *\([^ ]*\) *$/\1/
10073 p
10074 }
10075 }'
10076 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10077 # Check for a 64-bit object if we didn't find anything.
10078 if test -z "$lt_cv_aix_libpath_"; then
10079 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10080 fi
10081 fi
10082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10083 conftest$ac_exeext conftest.$ac_ext
10084 if test -z "$lt_cv_aix_libpath_"; then
10085 lt_cv_aix_libpath_=/usr/lib:/lib
10086 fi
10087
10088 fi
10089
10090 aix_libpath=$lt_cv_aix_libpath_
10091 fi
10092
10093 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10094 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
10095 else
10096 if test ia64 = "$host_cpu"; then
10097 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10098 allow_undefined_flag="-z nodefs"
10099 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"
10100 else
10101 # Determine the default libpath from the value encoded in an
10102 # empty executable.
10103 if test set = "${lt_cv_aix_libpath+set}"; then
10104 aix_libpath=$lt_cv_aix_libpath
10105 else
10106 if test ${lt_cv_aix_libpath_+y}
10107 then :
10108 printf %s "(cached) " >&6
10109 else $as_nop
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112
10113 int
10114 main (void)
10115 {
10116
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 if ac_fn_c_try_link "$LINENO"
10122 then :
10123
10124 lt_aix_libpath_sed='
10125 /Import File Strings/,/^$/ {
10126 /^0/ {
10127 s/^0 *\([^ ]*\) *$/\1/
10128 p
10129 }
10130 }'
10131 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10132 # Check for a 64-bit object if we didn't find anything.
10133 if test -z "$lt_cv_aix_libpath_"; then
10134 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10135 fi
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10138 conftest$ac_exeext conftest.$ac_ext
10139 if test -z "$lt_cv_aix_libpath_"; then
10140 lt_cv_aix_libpath_=/usr/lib:/lib
10141 fi
10142
10143 fi
10144
10145 aix_libpath=$lt_cv_aix_libpath_
10146 fi
10147
10148 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10149 # Warning - without using the other run time loading flags,
10150 # -berok will link without error, but may produce a broken library.
10151 no_undefined_flag=' $wl-bernotok'
10152 allow_undefined_flag=' $wl-berok'
10153 if test yes = "$with_gnu_ld"; then
10154 # We only use this code for GNU lds that support --whole-archive.
10155 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10156 else
10157 # Exported symbols can be pulled into shared objects from archives
10158 whole_archive_flag_spec='$convenience'
10159 fi
10160 archive_cmds_need_lc=yes
10161 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10162 # -brtl affects multiple linker settings, -berok does not and is overridden later
10163 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10164 if test svr4 != "$with_aix_soname"; then
10165 # This is similar to how AIX traditionally builds its shared libraries.
10166 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'
10167 fi
10168 if test aix != "$with_aix_soname"; then
10169 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'
10170 else
10171 # used by -dlpreopen to get the symbols
10172 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10173 fi
10174 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10175 fi
10176 fi
10177 ;;
10178
10179 amigaos*)
10180 case $host_cpu in
10181 powerpc)
10182 # see comment about AmigaOS4 .so support
10183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10184 archive_expsym_cmds=''
10185 ;;
10186 m68k)
10187 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)'
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_minus_L=yes
10190 ;;
10191 esac
10192 ;;
10193
10194 bsdi[45]*)
10195 export_dynamic_flag_spec=-rdynamic
10196 ;;
10197
10198 cygwin* | mingw* | pw32* | cegcc*)
10199 # When not using gcc, we currently assume that we are using
10200 # Microsoft Visual C++ or Intel C++ Compiler.
10201 # hardcode_libdir_flag_spec is actually meaningless, as there is
10202 # no search path for DLLs.
10203 case $cc_basename in
10204 cl* | icl*)
10205 # Native MSVC or ICC
10206 hardcode_libdir_flag_spec=' '
10207 allow_undefined_flag=unsupported
10208 always_export_symbols=yes
10209 file_list_spec='@'
10210 # Tell ltmain to make .lib files, not .a files.
10211 libext=lib
10212 # Tell ltmain to make .dll files, not .so files.
10213 shrext_cmds=.dll
10214 # FIXME: Setting linknames here is a bad hack.
10215 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10216 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10217 cp "$export_symbols" "$output_objdir/$soname.def";
10218 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10219 else
10220 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10221 fi~
10222 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10223 linknames='
10224 # The linker will not automatically build a static lib if we build a DLL.
10225 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10226 enable_shared_with_static_runtimes=yes
10227 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10229 # Don't use ranlib
10230 old_postinstall_cmds='chmod 644 $oldlib'
10231 postlink_cmds='lt_outputfile="@OUTPUT@"~
10232 lt_tool_outputfile="@TOOL_OUTPUT@"~
10233 case $lt_outputfile in
10234 *.exe|*.EXE) ;;
10235 *)
10236 lt_outputfile=$lt_outputfile.exe
10237 lt_tool_outputfile=$lt_tool_outputfile.exe
10238 ;;
10239 esac~
10240 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10241 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10242 $RM "$lt_outputfile.manifest";
10243 fi'
10244 ;;
10245 *)
10246 # Assume MSVC and ICC wrapper
10247 hardcode_libdir_flag_spec=' '
10248 allow_undefined_flag=unsupported
10249 # Tell ltmain to make .lib files, not .a files.
10250 libext=lib
10251 # Tell ltmain to make .dll files, not .so files.
10252 shrext_cmds=.dll
10253 # FIXME: Setting linknames here is a bad hack.
10254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10255 # The linker will automatically build a .lib file if we build a DLL.
10256 old_archive_from_new_cmds='true'
10257 # FIXME: Should let the user specify the lib program.
10258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10259 enable_shared_with_static_runtimes=yes
10260 ;;
10261 esac
10262 ;;
10263
10264 darwin* | rhapsody*)
10265
10266
10267 archive_cmds_need_lc=no
10268 hardcode_direct=no
10269 hardcode_automatic=yes
10270 hardcode_shlibpath_var=unsupported
10271 if test yes = "$lt_cv_ld_force_load"; then
10272 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\"`'
10273
10274 else
10275 whole_archive_flag_spec=''
10276 fi
10277 link_all_deplibs=yes
10278 allow_undefined_flag=$_lt_dar_allow_undefined
10279 case $cc_basename in
10280 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10281 *) _lt_dar_can_shared=$GCC ;;
10282 esac
10283 if test yes = "$_lt_dar_can_shared"; then
10284 output_verbose_link_cmd=func_echo_all
10285 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10286 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10287 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"
10288 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"
10289
10290 else
10291 ld_shlibs=no
10292 fi
10293
10294 ;;
10295
10296 dgux*)
10297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_libdir_flag_spec='-L$libdir'
10299 hardcode_shlibpath_var=no
10300 ;;
10301
10302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10303 # support. Future versions do this automatically, but an explicit c++rt0.o
10304 # does not break anything, and helps significantly (at the cost of a little
10305 # extra space).
10306 freebsd2.2*)
10307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10308 hardcode_libdir_flag_spec='-R$libdir'
10309 hardcode_direct=yes
10310 hardcode_shlibpath_var=no
10311 ;;
10312
10313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10314 freebsd2.*)
10315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10316 hardcode_direct=yes
10317 hardcode_minus_L=yes
10318 hardcode_shlibpath_var=no
10319 ;;
10320
10321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10322 freebsd* | dragonfly* | midnightbsd*)
10323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10324 hardcode_libdir_flag_spec='-R$libdir'
10325 hardcode_direct=yes
10326 hardcode_shlibpath_var=no
10327 ;;
10328
10329 hpux9*)
10330 if test yes = "$GCC"; then
10331 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'
10332 else
10333 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'
10334 fi
10335 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10336 hardcode_libdir_separator=:
10337 hardcode_direct=yes
10338
10339 # hardcode_minus_L: Not really in the search PATH,
10340 # but as the default location of the library.
10341 hardcode_minus_L=yes
10342 export_dynamic_flag_spec='$wl-E'
10343 ;;
10344
10345 hpux10*)
10346 if test yes,no = "$GCC,$with_gnu_ld"; then
10347 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10348 else
10349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10350 fi
10351 if test no = "$with_gnu_ld"; then
10352 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10353 hardcode_libdir_separator=:
10354 hardcode_direct=yes
10355 hardcode_direct_absolute=yes
10356 export_dynamic_flag_spec='$wl-E'
10357 # hardcode_minus_L: Not really in the search PATH,
10358 # but as the default location of the library.
10359 hardcode_minus_L=yes
10360 fi
10361 ;;
10362
10363 hpux11*)
10364 if test yes,no = "$GCC,$with_gnu_ld"; then
10365 case $host_cpu in
10366 hppa*64*)
10367 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 ;;
10369 ia64*)
10370 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10371 ;;
10372 *)
10373 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374 ;;
10375 esac
10376 else
10377 case $host_cpu in
10378 hppa*64*)
10379 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 ;;
10381 ia64*)
10382 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10383 ;;
10384 *)
10385
10386 # Older versions of the 11.00 compiler do not understand -b yet
10387 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10389 printf %s "checking if $CC understands -b... " >&6; }
10390 if test ${lt_cv_prog_compiler__b+y}
10391 then :
10392 printf %s "(cached) " >&6
10393 else $as_nop
10394 lt_cv_prog_compiler__b=no
10395 save_LDFLAGS=$LDFLAGS
10396 LDFLAGS="$LDFLAGS -b"
10397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10399 # The linker can only warn and ignore the option if not recognized
10400 # So say no if there are warnings
10401 if test -s conftest.err; then
10402 # Append any errors to the config.log.
10403 cat conftest.err 1>&5
10404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10406 if diff conftest.exp conftest.er2 >/dev/null; then
10407 lt_cv_prog_compiler__b=yes
10408 fi
10409 else
10410 lt_cv_prog_compiler__b=yes
10411 fi
10412 fi
10413 $RM -r conftest*
10414 LDFLAGS=$save_LDFLAGS
10415
10416 fi
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10418 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10419
10420 if test yes = "$lt_cv_prog_compiler__b"; then
10421 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10422 else
10423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10424 fi
10425
10426 ;;
10427 esac
10428 fi
10429 if test no = "$with_gnu_ld"; then
10430 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10431 hardcode_libdir_separator=:
10432
10433 case $host_cpu in
10434 hppa*64*|ia64*)
10435 hardcode_direct=no
10436 hardcode_shlibpath_var=no
10437 ;;
10438 *)
10439 hardcode_direct=yes
10440 hardcode_direct_absolute=yes
10441 export_dynamic_flag_spec='$wl-E'
10442
10443 # hardcode_minus_L: Not really in the search PATH,
10444 # but as the default location of the library.
10445 hardcode_minus_L=yes
10446 ;;
10447 esac
10448 fi
10449 ;;
10450
10451 irix5* | irix6* | nonstopux*)
10452 if test yes = "$GCC"; then
10453 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'
10454 # Try to use the -exported_symbol ld option, if it does not
10455 # work, assume that -exports_file does not work either and
10456 # implicitly export all symbols.
10457 # This should be the same for all languages, so no per-tag cache variable.
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10459 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10460 if test ${lt_cv_irix_exported_symbol+y}
10461 then :
10462 printf %s "(cached) " >&6
10463 else $as_nop
10464 save_LDFLAGS=$LDFLAGS
10465 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 int foo (void) { return 0; }
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"
10471 then :
10472 lt_cv_irix_exported_symbol=yes
10473 else $as_nop
10474 lt_cv_irix_exported_symbol=no
10475 fi
10476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10477 conftest$ac_exeext conftest.$ac_ext
10478 LDFLAGS=$save_LDFLAGS
10479 fi
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10481 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10482 if test yes = "$lt_cv_irix_exported_symbol"; then
10483 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'
10484 fi
10485 else
10486 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'
10487 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'
10488 fi
10489 archive_cmds_need_lc='no'
10490 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10491 hardcode_libdir_separator=:
10492 inherit_rpath=yes
10493 link_all_deplibs=yes
10494 ;;
10495
10496 linux*)
10497 case $cc_basename in
10498 tcc*)
10499 # Fabrice Bellard et al's Tiny C Compiler
10500 ld_shlibs=yes
10501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10502 ;;
10503 esac
10504 ;;
10505
10506 netbsd*)
10507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10509 else
10510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10511 fi
10512 hardcode_libdir_flag_spec='-R$libdir'
10513 hardcode_direct=yes
10514 hardcode_shlibpath_var=no
10515 ;;
10516
10517 newsos6)
10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519 hardcode_direct=yes
10520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10521 hardcode_libdir_separator=:
10522 hardcode_shlibpath_var=no
10523 ;;
10524
10525 *nto* | *qnx*)
10526 ;;
10527
10528 openbsd* | bitrig*)
10529 if test -f /usr/libexec/ld.so; then
10530 hardcode_direct=yes
10531 hardcode_shlibpath_var=no
10532 hardcode_direct_absolute=yes
10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10535 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10536 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10537 export_dynamic_flag_spec='$wl-E'
10538 else
10539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10540 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10541 fi
10542 else
10543 ld_shlibs=no
10544 fi
10545 ;;
10546
10547 os2*)
10548 hardcode_libdir_flag_spec='-L$libdir'
10549 hardcode_minus_L=yes
10550 allow_undefined_flag=unsupported
10551 shrext_cmds=.dll
10552 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10553 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10554 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10555 $ECHO EXPORTS >> $output_objdir/$libname.def~
10556 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10557 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10558 emximp -o $lib $output_objdir/$libname.def'
10559 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10560 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10561 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10562 $ECHO EXPORTS >> $output_objdir/$libname.def~
10563 prefix_cmds="$SED"~
10564 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10565 prefix_cmds="$prefix_cmds -e 1d";
10566 fi~
10567 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10568 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10569 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10570 emximp -o $lib $output_objdir/$libname.def'
10571 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10572 enable_shared_with_static_runtimes=yes
10573 file_list_spec='@'
10574 ;;
10575
10576 osf3*)
10577 if test yes = "$GCC"; then
10578 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10579 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'
10580 else
10581 allow_undefined_flag=' -expect_unresolved \*'
10582 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'
10583 fi
10584 archive_cmds_need_lc='no'
10585 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10586 hardcode_libdir_separator=:
10587 ;;
10588
10589 osf4* | osf5*) # as osf3* with the addition of -msym flag
10590 if test yes = "$GCC"; then
10591 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10592 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'
10593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10594 else
10595 allow_undefined_flag=' -expect_unresolved \*'
10596 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'
10597 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~
10598 $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'
10599
10600 # Both c and cxx compiler support -rpath directly
10601 hardcode_libdir_flag_spec='-rpath $libdir'
10602 fi
10603 archive_cmds_need_lc='no'
10604 hardcode_libdir_separator=:
10605 ;;
10606
10607 solaris*)
10608 no_undefined_flag=' -z defs'
10609 if test yes = "$GCC"; then
10610 wlarc='$wl'
10611 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10613 $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'
10614 else
10615 case `$CC -V 2>&1` in
10616 *"Compilers 5.0"*)
10617 wlarc=''
10618 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10620 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10621 ;;
10622 *)
10623 wlarc='$wl'
10624 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10626 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10627 ;;
10628 esac
10629 fi
10630 hardcode_libdir_flag_spec='-R$libdir'
10631 hardcode_shlibpath_var=no
10632 case $host_os in
10633 solaris2.[0-5] | solaris2.[0-5].*) ;;
10634 *)
10635 # The compiler driver will combine and reorder linker options,
10636 # but understands '-z linker_flag'. GCC discards it without '$wl',
10637 # but is careful enough not to reorder.
10638 # Supported since Solaris 2.6 (maybe 2.5.1?)
10639 if test yes = "$GCC"; then
10640 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10641 else
10642 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10643 fi
10644 ;;
10645 esac
10646 link_all_deplibs=yes
10647 ;;
10648
10649 sunos4*)
10650 if test sequent = "$host_vendor"; then
10651 # Use $CC to link under sequent, because it throws in some extra .o
10652 # files that make .init and .fini sections work.
10653 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10654 else
10655 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10656 fi
10657 hardcode_libdir_flag_spec='-L$libdir'
10658 hardcode_direct=yes
10659 hardcode_minus_L=yes
10660 hardcode_shlibpath_var=no
10661 ;;
10662
10663 sysv4)
10664 case $host_vendor in
10665 sni)
10666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667 hardcode_direct=yes # is this really true???
10668 ;;
10669 siemens)
10670 ## LD is ld it makes a PLAMLIB
10671 ## CC just makes a GrossModule.
10672 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10673 reload_cmds='$CC -r -o $output$reload_objs'
10674 hardcode_direct=no
10675 ;;
10676 motorola)
10677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10678 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10679 ;;
10680 esac
10681 runpath_var='LD_RUN_PATH'
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 sysv4.3*)
10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_shlibpath_var=no
10688 export_dynamic_flag_spec='-Bexport'
10689 ;;
10690
10691 sysv4*MP*)
10692 if test -d /usr/nec; then
10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694 hardcode_shlibpath_var=no
10695 runpath_var=LD_RUN_PATH
10696 hardcode_runpath_var=yes
10697 ld_shlibs=yes
10698 fi
10699 ;;
10700
10701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10702 no_undefined_flag='$wl-z,text'
10703 archive_cmds_need_lc=no
10704 hardcode_shlibpath_var=no
10705 runpath_var='LD_RUN_PATH'
10706
10707 if test yes = "$GCC"; then
10708 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 else
10711 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 fi
10714 ;;
10715
10716 sysv5* | sco3.2v5* | sco5v6*)
10717 # Note: We CANNOT use -z defs as we might desire, because we do not
10718 # link with -lc, and that would cause any symbols used from libc to
10719 # always be unresolved, which means just about no library would
10720 # ever link correctly. If we're not using GNU ld we use -z text
10721 # though, which does catch some bad symbols but isn't as heavy-handed
10722 # as -z defs.
10723 no_undefined_flag='$wl-z,text'
10724 allow_undefined_flag='$wl-z,nodefs'
10725 archive_cmds_need_lc=no
10726 hardcode_shlibpath_var=no
10727 hardcode_libdir_flag_spec='$wl-R,$libdir'
10728 hardcode_libdir_separator=':'
10729 link_all_deplibs=yes
10730 export_dynamic_flag_spec='$wl-Bexport'
10731 runpath_var='LD_RUN_PATH'
10732
10733 if test yes = "$GCC"; then
10734 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 else
10737 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10739 fi
10740 ;;
10741
10742 uts4*)
10743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10744 hardcode_libdir_flag_spec='-L$libdir'
10745 hardcode_shlibpath_var=no
10746 ;;
10747
10748 *)
10749 ld_shlibs=no
10750 ;;
10751 esac
10752
10753 if test sni = "$host_vendor"; then
10754 case $host in
10755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10756 export_dynamic_flag_spec='$wl-Blargedynsym'
10757 ;;
10758 esac
10759 fi
10760 fi
10761
10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10763 printf "%s\n" "$ld_shlibs" >&6; }
10764 test no = "$ld_shlibs" && can_build_shared=no
10765
10766 with_gnu_ld=$with_gnu_ld
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782 #
10783 # Do we need to explicitly link libc?
10784 #
10785 case "x$archive_cmds_need_lc" in
10786 x|xyes)
10787 # Assume -lc should be added
10788 archive_cmds_need_lc=yes
10789
10790 if test yes,yes = "$GCC,$enable_shared"; then
10791 case $archive_cmds in
10792 *'~'*)
10793 # FIXME: we may have to deal with multi-command sequences.
10794 ;;
10795 '$CC '*)
10796 # Test whether the compiler implicitly links with -lc since on some
10797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10798 # to ld, don't add -lc before -lgcc.
10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10800 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10801 if test ${lt_cv_archive_cmds_need_lc+y}
10802 then :
10803 printf %s "(cached) " >&6
10804 else $as_nop
10805 $RM conftest*
10806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10807
10808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10809 (eval $ac_compile) 2>&5
10810 ac_status=$?
10811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10812 test $ac_status = 0; } 2>conftest.err; then
10813 soname=conftest
10814 lib=conftest
10815 libobjs=conftest.$ac_objext
10816 deplibs=
10817 wl=$lt_prog_compiler_wl
10818 pic_flag=$lt_prog_compiler_pic
10819 compiler_flags=-v
10820 linker_flags=-v
10821 verstring=
10822 output_objdir=.
10823 libname=conftest
10824 lt_save_allow_undefined_flag=$allow_undefined_flag
10825 allow_undefined_flag=
10826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10827 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10828 ac_status=$?
10829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10830 test $ac_status = 0; }
10831 then
10832 lt_cv_archive_cmds_need_lc=no
10833 else
10834 lt_cv_archive_cmds_need_lc=yes
10835 fi
10836 allow_undefined_flag=$lt_save_allow_undefined_flag
10837 else
10838 cat conftest.err 1>&5
10839 fi
10840 $RM conftest*
10841
10842 fi
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10844 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10845 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10846 ;;
10847 esac
10848 fi
10849 ;;
10850 esac
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11004 printf %s "checking dynamic linker characteristics... " >&6; }
11005
11006 if test yes = "$GCC"; then
11007 case $host_os in
11008 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11009 *) lt_awk_arg='/^libraries:/' ;;
11010 esac
11011 case $host_os in
11012 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11013 *) lt_sed_strip_eq='s|=/|/|g' ;;
11014 esac
11015 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11016 case $lt_search_path_spec in
11017 *\;*)
11018 # if the path contains ";" then we assume it to be the separator
11019 # otherwise default to the standard path separator (i.e. ":") - it is
11020 # assumed that no part of a normal pathname contains ";" but that should
11021 # okay in the real world where ";" in dirpaths is itself problematic.
11022 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11023 ;;
11024 *)
11025 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11026 ;;
11027 esac
11028 # Ok, now we have the path, separated by spaces, we can step through it
11029 # and add multilib dir if necessary...
11030 lt_tmp_lt_search_path_spec=
11031 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11032 # ...but if some path component already ends with the multilib dir we assume
11033 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11034 case "$lt_multi_os_dir; $lt_search_path_spec " in
11035 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11036 lt_multi_os_dir=
11037 ;;
11038 esac
11039 for lt_sys_path in $lt_search_path_spec; do
11040 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11042 elif test -n "$lt_multi_os_dir"; then
11043 test -d "$lt_sys_path" && \
11044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11045 fi
11046 done
11047 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11048 BEGIN {RS = " "; FS = "/|\n";} {
11049 lt_foo = "";
11050 lt_count = 0;
11051 for (lt_i = NF; lt_i > 0; lt_i--) {
11052 if ($lt_i != "" && $lt_i != ".") {
11053 if ($lt_i == "..") {
11054 lt_count++;
11055 } else {
11056 if (lt_count == 0) {
11057 lt_foo = "/" $lt_i lt_foo;
11058 } else {
11059 lt_count--;
11060 }
11061 }
11062 }
11063 }
11064 if (lt_foo != "") { lt_freq[lt_foo]++; }
11065 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11066 }'`
11067 # AWK program above erroneously prepends '/' to C:/dos/paths
11068 # for these hosts.
11069 case $host_os in
11070 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11071 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11072 esac
11073 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11074 else
11075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11076 fi
11077 library_names_spec=
11078 libname_spec='lib$name'
11079 soname_spec=
11080 shrext_cmds=.so
11081 postinstall_cmds=
11082 postuninstall_cmds=
11083 finish_cmds=
11084 finish_eval=
11085 shlibpath_var=
11086 shlibpath_overrides_runpath=unknown
11087 version_type=none
11088 dynamic_linker="$host_os ld.so"
11089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11090 need_lib_prefix=unknown
11091 hardcode_into_libs=no
11092
11093 # when you set need_version to no, make sure it does not cause -set_version
11094 # flags to be left without arguments
11095 need_version=unknown
11096
11097
11098
11099 case $host_os in
11100 aix3*)
11101 version_type=linux # correct to gnu/linux during the next big refactor
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11103 shlibpath_var=LIBPATH
11104
11105 # AIX 3 has no versioning support, so we append a major version to the name.
11106 soname_spec='$libname$release$shared_ext$major'
11107 ;;
11108
11109 aix[4-9]*)
11110 version_type=linux # correct to gnu/linux during the next big refactor
11111 need_lib_prefix=no
11112 need_version=no
11113 hardcode_into_libs=yes
11114 if test ia64 = "$host_cpu"; then
11115 # AIX 5 supports IA64
11116 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 else
11119 # With GCC up to 2.95.x, collect2 would create an import file
11120 # for dependence libraries. The import file would start with
11121 # the line '#! .'. This would cause the generated library to
11122 # depend on '.', always an invalid library. This was fixed in
11123 # development snapshots of GCC prior to 3.0.
11124 case $host_os in
11125 aix4 | aix4.[01] | aix4.[01].*)
11126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11127 echo ' yes '
11128 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11129 :
11130 else
11131 can_build_shared=no
11132 fi
11133 ;;
11134 esac
11135 # Using Import Files as archive members, it is possible to support
11136 # filename-based versioning of shared library archives on AIX. While
11137 # this would work for both with and without runtime linking, it will
11138 # prevent static linking of such archives. So we do filename-based
11139 # shared library versioning with .so extension only, which is used
11140 # when both runtime linking and shared linking is enabled.
11141 # Unfortunately, runtime linking may impact performance, so we do
11142 # not want this to be the default eventually. Also, we use the
11143 # versioned .so libs for executables only if there is the -brtl
11144 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11145 # To allow for filename-based versioning support, we need to create
11146 # libNAME.so.V as an archive file, containing:
11147 # *) an Import File, referring to the versioned filename of the
11148 # archive as well as the shared archive member, telling the
11149 # bitwidth (32 or 64) of that shared object, and providing the
11150 # list of exported symbols of that shared object, eventually
11151 # decorated with the 'weak' keyword
11152 # *) the shared object with the F_LOADONLY flag set, to really avoid
11153 # it being seen by the linker.
11154 # At run time we better use the real file rather than another symlink,
11155 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11156
11157 case $with_aix_soname,$aix_use_runtimelinking in
11158 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11159 # soname into executable. Probably we can add versioning support to
11160 # collect2, so additional links can be useful in future.
11161 aix,yes) # traditional libtool
11162 dynamic_linker='AIX unversionable lib.so'
11163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11164 # instead of lib<name>.a to let people know that these are not
11165 # typical AIX shared libraries.
11166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11167 ;;
11168 aix,no) # traditional AIX only
11169 dynamic_linker='AIX lib.a(lib.so.V)'
11170 # We preserve .a as extension for shared libraries through AIX4.2
11171 # and later when we are not doing run time linking.
11172 library_names_spec='$libname$release.a $libname.a'
11173 soname_spec='$libname$release$shared_ext$major'
11174 ;;
11175 svr4,*) # full svr4 only
11176 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11177 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11178 # We do not specify a path in Import Files, so LIBPATH fires.
11179 shlibpath_overrides_runpath=yes
11180 ;;
11181 *,yes) # both, prefer svr4
11182 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11183 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11184 # unpreferred sharedlib libNAME.a needs extra handling
11185 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"'
11186 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"'
11187 # We do not specify a path in Import Files, so LIBPATH fires.
11188 shlibpath_overrides_runpath=yes
11189 ;;
11190 *,no) # both, prefer aix
11191 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11192 library_names_spec='$libname$release.a $libname.a'
11193 soname_spec='$libname$release$shared_ext$major'
11194 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11195 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)'
11196 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"'
11197 ;;
11198 esac
11199 shlibpath_var=LIBPATH
11200 fi
11201 ;;
11202
11203 amigaos*)
11204 case $host_cpu in
11205 powerpc)
11206 # Since July 2007 AmigaOS4 officially supports .so libraries.
11207 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11209 ;;
11210 m68k)
11211 library_names_spec='$libname.ixlibrary $libname.a'
11212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11213 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'
11214 ;;
11215 esac
11216 ;;
11217
11218 beos*)
11219 library_names_spec='$libname$shared_ext'
11220 dynamic_linker="$host_os ld.so"
11221 shlibpath_var=LIBRARY_PATH
11222 ;;
11223
11224 bsdi[45]*)
11225 version_type=linux # correct to gnu/linux during the next big refactor
11226 need_version=no
11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228 soname_spec='$libname$release$shared_ext$major'
11229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11233 # the default ld.so.conf also contains /usr/contrib/lib and
11234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11235 # libtool to hard-code these into programs
11236 ;;
11237
11238 cygwin* | mingw* | pw32* | cegcc*)
11239 version_type=windows
11240 shrext_cmds=.dll
11241 need_version=no
11242 need_lib_prefix=no
11243
11244 case $GCC,$cc_basename in
11245 yes,*)
11246 # gcc
11247 library_names_spec='$libname.dll.a'
11248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11249 postinstall_cmds='base_file=`basename \$file`~
11250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11251 dldir=$destdir/`dirname \$dlpath`~
11252 test -d \$dldir || mkdir -p \$dldir~
11253 $install_prog $dir/$dlname \$dldir/$dlname~
11254 chmod a+x \$dldir/$dlname~
11255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11257 fi'
11258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11259 dlpath=$dir/\$dldll~
11260 $RM \$dlpath'
11261 shlibpath_overrides_runpath=yes
11262
11263 case $host_os in
11264 cygwin*)
11265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11266 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11267
11268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11269 ;;
11270 mingw* | cegcc*)
11271 # MinGW DLLs use traditional 'lib' prefix
11272 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11273 ;;
11274 pw32*)
11275 # pw32 DLLs use 'pw' prefix rather than 'lib'
11276 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11277 ;;
11278 esac
11279 dynamic_linker='Win32 ld.exe'
11280 ;;
11281
11282 *,cl* | *,icl*)
11283 # Native MSVC or ICC
11284 libname_spec='$name'
11285 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11286 library_names_spec='$libname.dll.lib'
11287
11288 case $build_os in
11289 mingw*)
11290 sys_lib_search_path_spec=
11291 lt_save_ifs=$IFS
11292 IFS=';'
11293 for lt_path in $LIB
11294 do
11295 IFS=$lt_save_ifs
11296 # Let DOS variable expansion print the short 8.3 style file name.
11297 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11298 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11299 done
11300 IFS=$lt_save_ifs
11301 # Convert to MSYS style.
11302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11303 ;;
11304 cygwin*)
11305 # Convert to unix form, then to dos form, then back to unix form
11306 # but this time dos style (no spaces!) so that the unix form looks
11307 # like /cygdrive/c/PROGRA~1:/cygdr...
11308 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11309 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11310 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11311 ;;
11312 *)
11313 sys_lib_search_path_spec=$LIB
11314 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11315 # It is most probably a Windows format PATH.
11316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11317 else
11318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11319 fi
11320 # FIXME: find the short name or the path components, as spaces are
11321 # common. (e.g. "Program Files" -> "PROGRA~1")
11322 ;;
11323 esac
11324
11325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11326 postinstall_cmds='base_file=`basename \$file`~
11327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11328 dldir=$destdir/`dirname \$dlpath`~
11329 test -d \$dldir || mkdir -p \$dldir~
11330 $install_prog $dir/$dlname \$dldir/$dlname'
11331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11332 dlpath=$dir/\$dldll~
11333 $RM \$dlpath'
11334 shlibpath_overrides_runpath=yes
11335 dynamic_linker='Win32 link.exe'
11336 ;;
11337
11338 *)
11339 # Assume MSVC and ICC wrapper
11340 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11341 dynamic_linker='Win32 ld.exe'
11342 ;;
11343 esac
11344 # FIXME: first we should search . and the directory the executable is in
11345 shlibpath_var=PATH
11346 ;;
11347
11348 darwin* | rhapsody*)
11349 dynamic_linker="$host_os dyld"
11350 version_type=darwin
11351 need_lib_prefix=no
11352 need_version=no
11353 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11354 soname_spec='$libname$release$major$shared_ext'
11355 shlibpath_overrides_runpath=yes
11356 shlibpath_var=DYLD_LIBRARY_PATH
11357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11358
11359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11361 ;;
11362
11363 dgux*)
11364 version_type=linux # correct to gnu/linux during the next big refactor
11365 need_lib_prefix=no
11366 need_version=no
11367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11368 soname_spec='$libname$release$shared_ext$major'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 ;;
11371
11372 freebsd* | dragonfly* | midnightbsd*)
11373 # DragonFly does not have aout. When/if they implement a new
11374 # versioning mechanism, adjust this.
11375 if test -x /usr/bin/objformat; then
11376 objformat=`/usr/bin/objformat`
11377 else
11378 case $host_os in
11379 freebsd[23].*) objformat=aout ;;
11380 *) objformat=elf ;;
11381 esac
11382 fi
11383 version_type=freebsd-$objformat
11384 case $version_type in
11385 freebsd-elf*)
11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11387 soname_spec='$libname$release$shared_ext$major'
11388 need_version=no
11389 need_lib_prefix=no
11390 ;;
11391 freebsd-*)
11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11393 need_version=yes
11394 ;;
11395 esac
11396 shlibpath_var=LD_LIBRARY_PATH
11397 case $host_os in
11398 freebsd2.*)
11399 shlibpath_overrides_runpath=yes
11400 ;;
11401 freebsd3.[01]* | freebsdelf3.[01]*)
11402 shlibpath_overrides_runpath=yes
11403 hardcode_into_libs=yes
11404 ;;
11405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11407 shlibpath_overrides_runpath=no
11408 hardcode_into_libs=yes
11409 ;;
11410 *) # from 4.6 on, and DragonFly
11411 shlibpath_overrides_runpath=yes
11412 hardcode_into_libs=yes
11413 ;;
11414 esac
11415 ;;
11416
11417 haiku*)
11418 version_type=linux # correct to gnu/linux during the next big refactor
11419 need_lib_prefix=no
11420 need_version=no
11421 dynamic_linker="$host_os runtime_loader"
11422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11423 soname_spec='$libname$release$shared_ext$major'
11424 shlibpath_var=LIBRARY_PATH
11425 shlibpath_overrides_runpath=no
11426 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11427 hardcode_into_libs=yes
11428 ;;
11429
11430 hpux9* | hpux10* | hpux11*)
11431 # Give a soname corresponding to the major version so that dld.sl refuses to
11432 # link against other versions.
11433 version_type=sunos
11434 need_lib_prefix=no
11435 need_version=no
11436 case $host_cpu in
11437 ia64*)
11438 shrext_cmds='.so'
11439 hardcode_into_libs=yes
11440 dynamic_linker="$host_os dld.so"
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 soname_spec='$libname$release$shared_ext$major'
11445 if test 32 = "$HPUX_IA64_MODE"; then
11446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11447 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11448 else
11449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11450 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11451 fi
11452 ;;
11453 hppa*64*)
11454 shrext_cmds='.sl'
11455 hardcode_into_libs=yes
11456 dynamic_linker="$host_os dld.sl"
11457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11460 soname_spec='$libname$release$shared_ext$major'
11461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11463 ;;
11464 *)
11465 shrext_cmds='.sl'
11466 dynamic_linker="$host_os dld.sl"
11467 shlibpath_var=SHLIB_PATH
11468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470 soname_spec='$libname$release$shared_ext$major'
11471 ;;
11472 esac
11473 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11474 postinstall_cmds='chmod 555 $lib'
11475 # or fails outright, so override atomically:
11476 install_override_mode=555
11477 ;;
11478
11479 interix[3-9]*)
11480 version_type=linux # correct to gnu/linux during the next big refactor
11481 need_lib_prefix=no
11482 need_version=no
11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484 soname_spec='$libname$release$shared_ext$major'
11485 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=no
11488 hardcode_into_libs=yes
11489 ;;
11490
11491 irix5* | irix6* | nonstopux*)
11492 case $host_os in
11493 nonstopux*) version_type=nonstopux ;;
11494 *)
11495 if test yes = "$lt_cv_prog_gnu_ld"; then
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 else
11498 version_type=irix
11499 fi ;;
11500 esac
11501 need_lib_prefix=no
11502 need_version=no
11503 soname_spec='$libname$release$shared_ext$major'
11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11505 case $host_os in
11506 irix5* | nonstopux*)
11507 libsuff= shlibsuff=
11508 ;;
11509 *)
11510 case $LD in # libtool.m4 will add one of these switches to LD
11511 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11512 libsuff= shlibsuff= libmagic=32-bit;;
11513 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11514 libsuff=32 shlibsuff=N32 libmagic=N32;;
11515 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11516 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11517 *) libsuff= shlibsuff= libmagic=never-match;;
11518 esac
11519 ;;
11520 esac
11521 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11522 shlibpath_overrides_runpath=no
11523 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11524 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11525 hardcode_into_libs=yes
11526 ;;
11527
11528 # No shared lib support for Linux oldld, aout, or coff.
11529 linux*oldld* | linux*aout* | linux*coff*)
11530 dynamic_linker=no
11531 ;;
11532
11533 linux*android*)
11534 version_type=none # Android doesn't support versioned libraries.
11535 need_lib_prefix=no
11536 need_version=no
11537 library_names_spec='$libname$release$shared_ext'
11538 soname_spec='$libname$release$shared_ext'
11539 finish_cmds=
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes
11542
11543 # This implies no fast_install, which is unacceptable.
11544 # Some rework will be needed to allow for fast_install
11545 # before this can be enabled.
11546 hardcode_into_libs=yes
11547
11548 dynamic_linker='Android linker'
11549 # Don't embed -rpath directories since the linker doesn't support them.
11550 hardcode_libdir_flag_spec='-L$libdir'
11551 ;;
11552
11553 # This must be glibc/ELF.
11554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11559 soname_spec='$libname$release$shared_ext$major'
11560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=no
11563
11564 # Some binutils ld are patched to set DT_RUNPATH
11565 if test ${lt_cv_shlibpath_overrides_runpath+y}
11566 then :
11567 printf %s "(cached) " >&6
11568 else $as_nop
11569 lt_cv_shlibpath_overrides_runpath=no
11570 save_LDFLAGS=$LDFLAGS
11571 save_libdir=$libdir
11572 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11573 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576
11577 int
11578 main (void)
11579 {
11580
11581 ;
11582 return 0;
11583 }
11584 _ACEOF
11585 if ac_fn_c_try_link "$LINENO"
11586 then :
11587 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11588 then :
11589 lt_cv_shlibpath_overrides_runpath=yes
11590 fi
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LDFLAGS=$save_LDFLAGS
11595 libdir=$save_libdir
11596
11597 fi
11598
11599 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11600
11601 # This implies no fast_install, which is unacceptable.
11602 # Some rework will be needed to allow for fast_install
11603 # before this can be enabled.
11604 hardcode_into_libs=yes
11605
11606 # Ideally, we could use ldconfig to report *all* directores which are
11607 # searched for libraries, however this is still not possible. Aside from not
11608 # being certain /sbin/ldconfig is available, command
11609 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11610 # even though it is searched at run-time. Try to do the best guess by
11611 # appending ld.so.conf contents (and includes) to the search path.
11612 if test -f /etc/ld.so.conf; then
11613 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' ' '`
11614 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11615 fi
11616
11617 # We used to test for /lib/ld.so.1 and disable shared libraries on
11618 # powerpc, because MkLinux only supported shared libraries with the
11619 # GNU dynamic linker. Since this was broken with cross compilers,
11620 # most powerpc-linux boxes support dynamic linking these days and
11621 # people can always --disable-shared, the test was removed, and we
11622 # assume the GNU/Linux dynamic linker is in use.
11623 dynamic_linker='GNU/Linux ld.so'
11624 ;;
11625
11626 netbsd*)
11627 version_type=sunos
11628 need_lib_prefix=no
11629 need_version=no
11630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11633 dynamic_linker='NetBSD (a.out) ld.so'
11634 else
11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11636 soname_spec='$libname$release$shared_ext$major'
11637 dynamic_linker='NetBSD ld.elf_so'
11638 fi
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=yes
11641 hardcode_into_libs=yes
11642 ;;
11643
11644 newsos6)
11645 version_type=linux # correct to gnu/linux during the next big refactor
11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=yes
11649 ;;
11650
11651 *nto* | *qnx*)
11652 version_type=qnx
11653 need_lib_prefix=no
11654 need_version=no
11655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11656 soname_spec='$libname$release$shared_ext$major'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=no
11659 hardcode_into_libs=yes
11660 dynamic_linker='ldqnx.so'
11661 ;;
11662
11663 openbsd* | bitrig*)
11664 version_type=sunos
11665 sys_lib_dlsearch_path_spec=/usr/lib
11666 need_lib_prefix=no
11667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11668 need_version=no
11669 else
11670 need_version=yes
11671 fi
11672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 shlibpath_overrides_runpath=yes
11676 ;;
11677
11678 os2*)
11679 libname_spec='$name'
11680 version_type=windows
11681 shrext_cmds=.dll
11682 need_version=no
11683 need_lib_prefix=no
11684 # OS/2 can only load a DLL with a base name of 8 characters or less.
11685 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11686 v=$($ECHO $release$versuffix | tr -d .-);
11687 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11688 $ECHO $n$v`$shared_ext'
11689 library_names_spec='${libname}_dll.$libext'
11690 dynamic_linker='OS/2 ld.exe'
11691 shlibpath_var=BEGINLIBPATH
11692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11694 postinstall_cmds='base_file=`basename \$file`~
11695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11696 dldir=$destdir/`dirname \$dlpath`~
11697 test -d \$dldir || mkdir -p \$dldir~
11698 $install_prog $dir/$dlname \$dldir/$dlname~
11699 chmod a+x \$dldir/$dlname~
11700 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11701 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11702 fi'
11703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11704 dlpath=$dir/\$dldll~
11705 $RM \$dlpath'
11706 ;;
11707
11708 osf3* | osf4* | osf5*)
11709 version_type=osf
11710 need_lib_prefix=no
11711 need_version=no
11712 soname_spec='$libname$release$shared_ext$major'
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11717 ;;
11718
11719 rdos*)
11720 dynamic_linker=no
11721 ;;
11722
11723 solaris*)
11724 version_type=linux # correct to gnu/linux during the next big refactor
11725 need_lib_prefix=no
11726 need_version=no
11727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11728 soname_spec='$libname$release$shared_ext$major'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=yes
11731 hardcode_into_libs=yes
11732 # ldd complains unless libraries are executable
11733 postinstall_cmds='chmod +x $lib'
11734 ;;
11735
11736 sunos4*)
11737 version_type=sunos
11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11742 if test yes = "$with_gnu_ld"; then
11743 need_lib_prefix=no
11744 fi
11745 need_version=yes
11746 ;;
11747
11748 sysv4 | sysv4.3*)
11749 version_type=linux # correct to gnu/linux during the next big refactor
11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11751 soname_spec='$libname$release$shared_ext$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 case $host_vendor in
11754 sni)
11755 shlibpath_overrides_runpath=no
11756 need_lib_prefix=no
11757 runpath_var=LD_RUN_PATH
11758 ;;
11759 siemens)
11760 need_lib_prefix=no
11761 ;;
11762 motorola)
11763 need_lib_prefix=no
11764 need_version=no
11765 shlibpath_overrides_runpath=no
11766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11767 ;;
11768 esac
11769 ;;
11770
11771 sysv4*MP*)
11772 if test -d /usr/nec; then
11773 version_type=linux # correct to gnu/linux during the next big refactor
11774 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11775 soname_spec='$libname$shared_ext.$major'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 fi
11778 ;;
11779
11780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11781 version_type=sco
11782 need_lib_prefix=no
11783 need_version=no
11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11785 soname_spec='$libname$release$shared_ext$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=yes
11788 hardcode_into_libs=yes
11789 if test yes = "$with_gnu_ld"; then
11790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11791 else
11792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11793 case $host_os in
11794 sco3.2v5*)
11795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11796 ;;
11797 esac
11798 fi
11799 sys_lib_dlsearch_path_spec='/usr/lib'
11800 ;;
11801
11802 tpf*)
11803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11804 version_type=linux # correct to gnu/linux during the next big refactor
11805 need_lib_prefix=no
11806 need_version=no
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=no
11810 hardcode_into_libs=yes
11811 ;;
11812
11813 uts4*)
11814 version_type=linux # correct to gnu/linux during the next big refactor
11815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11816 soname_spec='$libname$release$shared_ext$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 ;;
11819
11820 *)
11821 dynamic_linker=no
11822 ;;
11823 esac
11824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11825 printf "%s\n" "$dynamic_linker" >&6; }
11826 test no = "$dynamic_linker" && can_build_shared=no
11827
11828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11829 if test yes = "$GCC"; then
11830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11831 fi
11832
11833 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11834 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11835 fi
11836
11837 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11838 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11839 fi
11840
11841 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11842 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11843
11844 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11845 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11846
11847 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11848 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11947 printf %s "checking how to hardcode library paths into programs... " >&6; }
11948 hardcode_action=
11949 if test -n "$hardcode_libdir_flag_spec" ||
11950 test -n "$runpath_var" ||
11951 test yes = "$hardcode_automatic"; then
11952
11953 # We can hardcode non-existent directories.
11954 if test no != "$hardcode_direct" &&
11955 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11956 # have to relink, otherwise we might link with an installed library
11957 # when we should be linking with a yet-to-be-installed one
11958 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11959 test no != "$hardcode_minus_L"; then
11960 # Linking always hardcodes the temporary library directory.
11961 hardcode_action=relink
11962 else
11963 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11964 hardcode_action=immediate
11965 fi
11966 else
11967 # We cannot hardcode anything, or else we can only hardcode existing
11968 # directories.
11969 hardcode_action=unsupported
11970 fi
11971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11972 printf "%s\n" "$hardcode_action" >&6; }
11973
11974 if test relink = "$hardcode_action" ||
11975 test yes = "$inherit_rpath"; then
11976 # Fast installation is not supported
11977 enable_fast_install=no
11978 elif test yes = "$shlibpath_overrides_runpath" ||
11979 test no = "$enable_shared"; then
11980 # Fast installation is not necessary
11981 enable_fast_install=needless
11982 fi
11983
11984
11985
11986
11987
11988
11989 if test yes != "$enable_dlopen"; then
11990 enable_dlopen=unknown
11991 enable_dlopen_self=unknown
11992 enable_dlopen_self_static=unknown
11993 else
11994 lt_cv_dlopen=no
11995 lt_cv_dlopen_libs=
11996
11997 case $host_os in
11998 beos*)
11999 lt_cv_dlopen=load_add_on
12000 lt_cv_dlopen_libs=
12001 lt_cv_dlopen_self=yes
12002 ;;
12003
12004 mingw* | pw32* | cegcc*)
12005 lt_cv_dlopen=LoadLibrary
12006 lt_cv_dlopen_libs=
12007 ;;
12008
12009 cygwin*)
12010 lt_cv_dlopen=dlopen
12011 lt_cv_dlopen_libs=
12012 ;;
12013
12014 darwin*)
12015 # if libdl is installed we need to link against it
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12017 printf %s "checking for dlopen in -ldl... " >&6; }
12018 if test ${ac_cv_lib_dl_dlopen+y}
12019 then :
12020 printf %s "(cached) " >&6
12021 else $as_nop
12022 ac_check_lib_save_LIBS=$LIBS
12023 LIBS="-ldl $LIBS"
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030 char dlopen ();
12031 int
12032 main (void)
12033 {
12034 return dlopen ();
12035 ;
12036 return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"
12040 then :
12041 ac_cv_lib_dl_dlopen=yes
12042 else $as_nop
12043 ac_cv_lib_dl_dlopen=no
12044 fi
12045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12046 conftest$ac_exeext conftest.$ac_ext
12047 LIBS=$ac_check_lib_save_LIBS
12048 fi
12049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12050 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12051 if test "x$ac_cv_lib_dl_dlopen" = xyes
12052 then :
12053 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12054 else $as_nop
12055
12056 lt_cv_dlopen=dyld
12057 lt_cv_dlopen_libs=
12058 lt_cv_dlopen_self=yes
12059
12060 fi
12061
12062 ;;
12063
12064 tpf*)
12065 # Don't try to run any link tests for TPF. We know it's impossible
12066 # because TPF is a cross-compiler, and we know how we open DSOs.
12067 lt_cv_dlopen=dlopen
12068 lt_cv_dlopen_libs=
12069 lt_cv_dlopen_self=no
12070 ;;
12071
12072 *)
12073 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12074 if test "x$ac_cv_func_shl_load" = xyes
12075 then :
12076 lt_cv_dlopen=shl_load
12077 else $as_nop
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12079 printf %s "checking for shl_load in -ldld... " >&6; }
12080 if test ${ac_cv_lib_dld_shl_load+y}
12081 then :
12082 printf %s "(cached) " >&6
12083 else $as_nop
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-ldld $LIBS"
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092 char shl_load ();
12093 int
12094 main (void)
12095 {
12096 return shl_load ();
12097 ;
12098 return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"
12102 then :
12103 ac_cv_lib_dld_shl_load=yes
12104 else $as_nop
12105 ac_cv_lib_dld_shl_load=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12110 fi
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12112 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12113 if test "x$ac_cv_lib_dld_shl_load" = xyes
12114 then :
12115 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12116 else $as_nop
12117 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12118 if test "x$ac_cv_func_dlopen" = xyes
12119 then :
12120 lt_cv_dlopen=dlopen
12121 else $as_nop
12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12123 printf %s "checking for dlopen in -ldl... " >&6; }
12124 if test ${ac_cv_lib_dl_dlopen+y}
12125 then :
12126 printf %s "(cached) " >&6
12127 else $as_nop
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-ldl $LIBS"
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136 char dlopen ();
12137 int
12138 main (void)
12139 {
12140 return dlopen ();
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"
12146 then :
12147 ac_cv_lib_dl_dlopen=yes
12148 else $as_nop
12149 ac_cv_lib_dl_dlopen=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12156 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12157 if test "x$ac_cv_lib_dl_dlopen" = xyes
12158 then :
12159 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12160 else $as_nop
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12162 printf %s "checking for dlopen in -lsvld... " >&6; }
12163 if test ${ac_cv_lib_svld_dlopen+y}
12164 then :
12165 printf %s "(cached) " >&6
12166 else $as_nop
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-lsvld $LIBS"
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171
12172 /* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12175 char dlopen ();
12176 int
12177 main (void)
12178 {
12179 return dlopen ();
12180 ;
12181 return 0;
12182 }
12183 _ACEOF
12184 if ac_fn_c_try_link "$LINENO"
12185 then :
12186 ac_cv_lib_svld_dlopen=yes
12187 else $as_nop
12188 ac_cv_lib_svld_dlopen=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12193 fi
12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12195 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12196 if test "x$ac_cv_lib_svld_dlopen" = xyes
12197 then :
12198 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12199 else $as_nop
12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12201 printf %s "checking for dld_link in -ldld... " >&6; }
12202 if test ${ac_cv_lib_dld_dld_link+y}
12203 then :
12204 printf %s "(cached) " >&6
12205 else $as_nop
12206 ac_check_lib_save_LIBS=$LIBS
12207 LIBS="-ldld $LIBS"
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210
12211 /* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
12214 char dld_link ();
12215 int
12216 main (void)
12217 {
12218 return dld_link ();
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_link "$LINENO"
12224 then :
12225 ac_cv_lib_dld_dld_link=yes
12226 else $as_nop
12227 ac_cv_lib_dld_dld_link=no
12228 fi
12229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12232 fi
12233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12234 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12235 if test "x$ac_cv_lib_dld_dld_link" = xyes
12236 then :
12237 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12238 fi
12239
12240
12241 fi
12242
12243
12244 fi
12245
12246
12247 fi
12248
12249
12250 fi
12251
12252
12253 fi
12254
12255 ;;
12256 esac
12257
12258 if test no = "$lt_cv_dlopen"; then
12259 enable_dlopen=no
12260 else
12261 enable_dlopen=yes
12262 fi
12263
12264 case $lt_cv_dlopen in
12265 dlopen)
12266 save_CPPFLAGS=$CPPFLAGS
12267 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12268
12269 save_LDFLAGS=$LDFLAGS
12270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12271
12272 save_LIBS=$LIBS
12273 LIBS="$lt_cv_dlopen_libs $LIBS"
12274
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12276 printf %s "checking whether a program can dlopen itself... " >&6; }
12277 if test ${lt_cv_dlopen_self+y}
12278 then :
12279 printf %s "(cached) " >&6
12280 else $as_nop
12281 if test yes = "$cross_compiling"; then :
12282 lt_cv_dlopen_self=cross
12283 else
12284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12285 lt_status=$lt_dlunknown
12286 cat > conftest.$ac_ext <<_LT_EOF
12287 #line $LINENO "configure"
12288 #include "confdefs.h"
12289
12290 #if HAVE_DLFCN_H
12291 #include <dlfcn.h>
12292 #endif
12293
12294 #include <stdio.h>
12295
12296 #ifdef RTLD_GLOBAL
12297 # define LT_DLGLOBAL RTLD_GLOBAL
12298 #else
12299 # ifdef DL_GLOBAL
12300 # define LT_DLGLOBAL DL_GLOBAL
12301 # else
12302 # define LT_DLGLOBAL 0
12303 # endif
12304 #endif
12305
12306 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12307 find out it does not work in some platform. */
12308 #ifndef LT_DLLAZY_OR_NOW
12309 # ifdef RTLD_LAZY
12310 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12311 # else
12312 # ifdef DL_LAZY
12313 # define LT_DLLAZY_OR_NOW DL_LAZY
12314 # else
12315 # ifdef RTLD_NOW
12316 # define LT_DLLAZY_OR_NOW RTLD_NOW
12317 # else
12318 # ifdef DL_NOW
12319 # define LT_DLLAZY_OR_NOW DL_NOW
12320 # else
12321 # define LT_DLLAZY_OR_NOW 0
12322 # endif
12323 # endif
12324 # endif
12325 # endif
12326 #endif
12327
12328 /* When -fvisibility=hidden is used, assume the code has been annotated
12329 correspondingly for the symbols needed. */
12330 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12331 int fnord () __attribute__((visibility("default")));
12332 #endif
12333
12334 int fnord () { return 42; }
12335 int main ()
12336 {
12337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12338 int status = $lt_dlunknown;
12339
12340 if (self)
12341 {
12342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12343 else
12344 {
12345 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12346 else puts (dlerror ());
12347 }
12348 /* dlclose (self); */
12349 }
12350 else
12351 puts (dlerror ());
12352
12353 return status;
12354 }
12355 _LT_EOF
12356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12357 (eval $ac_link) 2>&5
12358 ac_status=$?
12359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12361 (./conftest; exit; ) >&5 2>/dev/null
12362 lt_status=$?
12363 case x$lt_status in
12364 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12365 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12366 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12367 esac
12368 else :
12369 # compilation failed
12370 lt_cv_dlopen_self=no
12371 fi
12372 fi
12373 rm -fr conftest*
12374
12375
12376 fi
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12378 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12379
12380 if test yes = "$lt_cv_dlopen_self"; then
12381 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12383 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12384 if test ${lt_cv_dlopen_self_static+y}
12385 then :
12386 printf %s "(cached) " >&6
12387 else $as_nop
12388 if test yes = "$cross_compiling"; then :
12389 lt_cv_dlopen_self_static=cross
12390 else
12391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12392 lt_status=$lt_dlunknown
12393 cat > conftest.$ac_ext <<_LT_EOF
12394 #line $LINENO "configure"
12395 #include "confdefs.h"
12396
12397 #if HAVE_DLFCN_H
12398 #include <dlfcn.h>
12399 #endif
12400
12401 #include <stdio.h>
12402
12403 #ifdef RTLD_GLOBAL
12404 # define LT_DLGLOBAL RTLD_GLOBAL
12405 #else
12406 # ifdef DL_GLOBAL
12407 # define LT_DLGLOBAL DL_GLOBAL
12408 # else
12409 # define LT_DLGLOBAL 0
12410 # endif
12411 #endif
12412
12413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12414 find out it does not work in some platform. */
12415 #ifndef LT_DLLAZY_OR_NOW
12416 # ifdef RTLD_LAZY
12417 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12418 # else
12419 # ifdef DL_LAZY
12420 # define LT_DLLAZY_OR_NOW DL_LAZY
12421 # else
12422 # ifdef RTLD_NOW
12423 # define LT_DLLAZY_OR_NOW RTLD_NOW
12424 # else
12425 # ifdef DL_NOW
12426 # define LT_DLLAZY_OR_NOW DL_NOW
12427 # else
12428 # define LT_DLLAZY_OR_NOW 0
12429 # endif
12430 # endif
12431 # endif
12432 # endif
12433 #endif
12434
12435 /* When -fvisibility=hidden is used, assume the code has been annotated
12436 correspondingly for the symbols needed. */
12437 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12438 int fnord () __attribute__((visibility("default")));
12439 #endif
12440
12441 int fnord () { return 42; }
12442 int main ()
12443 {
12444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12445 int status = $lt_dlunknown;
12446
12447 if (self)
12448 {
12449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12450 else
12451 {
12452 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12453 else puts (dlerror ());
12454 }
12455 /* dlclose (self); */
12456 }
12457 else
12458 puts (dlerror ());
12459
12460 return status;
12461 }
12462 _LT_EOF
12463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12464 (eval $ac_link) 2>&5
12465 ac_status=$?
12466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12468 (./conftest; exit; ) >&5 2>/dev/null
12469 lt_status=$?
12470 case x$lt_status in
12471 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12472 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12473 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12474 esac
12475 else :
12476 # compilation failed
12477 lt_cv_dlopen_self_static=no
12478 fi
12479 fi
12480 rm -fr conftest*
12481
12482
12483 fi
12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12485 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12486 fi
12487
12488 CPPFLAGS=$save_CPPFLAGS
12489 LDFLAGS=$save_LDFLAGS
12490 LIBS=$save_LIBS
12491 ;;
12492 esac
12493
12494 case $lt_cv_dlopen_self in
12495 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12496 *) enable_dlopen_self=unknown ;;
12497 esac
12498
12499 case $lt_cv_dlopen_self_static in
12500 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12501 *) enable_dlopen_self_static=unknown ;;
12502 esac
12503 fi
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521 striplib=
12522 old_striplib=
12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12524 printf %s "checking whether stripping libraries is possible... " >&6; }
12525 if test -z "$STRIP"; then
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 printf "%s\n" "no" >&6; }
12528 else
12529 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12530 old_striplib="$STRIP --strip-debug"
12531 striplib="$STRIP --strip-unneeded"
12532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 printf "%s\n" "yes" >&6; }
12534 else
12535 case $host_os in
12536 darwin*)
12537 # FIXME - insert some real tests, host_os isn't really good enough
12538 striplib="$STRIP -x"
12539 old_striplib="$STRIP -S"
12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12541 printf "%s\n" "yes" >&6; }
12542 ;;
12543 freebsd*)
12544 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12545 old_striplib="$STRIP --strip-debug"
12546 striplib="$STRIP --strip-unneeded"
12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548 printf "%s\n" "yes" >&6; }
12549 else
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 printf "%s\n" "no" >&6; }
12552 fi
12553 ;;
12554 *)
12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 printf "%s\n" "no" >&6; }
12557 ;;
12558 esac
12559 fi
12560 fi
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573 # Report what library types will actually be built
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12575 printf %s "checking if libtool supports shared libraries... " >&6; }
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12577 printf "%s\n" "$can_build_shared" >&6; }
12578
12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12580 printf %s "checking whether to build shared libraries... " >&6; }
12581 test no = "$can_build_shared" && enable_shared=no
12582
12583 # On AIX, shared libraries and static libraries use the same namespace, and
12584 # are all built from PIC.
12585 case $host_os in
12586 aix3*)
12587 test yes = "$enable_shared" && enable_static=no
12588 if test -n "$RANLIB"; then
12589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12590 postinstall_cmds='$RANLIB $lib'
12591 fi
12592 ;;
12593
12594 aix[4-9]*)
12595 if test ia64 != "$host_cpu"; then
12596 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12597 yes,aix,yes) ;; # shared object as lib.so file only
12598 yes,svr4,*) ;; # shared object as lib.so archive member only
12599 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12600 esac
12601 fi
12602 ;;
12603 esac
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12605 printf "%s\n" "$enable_shared" >&6; }
12606
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12608 printf %s "checking whether to build static libraries... " >&6; }
12609 # Make sure either enable_shared or enable_static is yes.
12610 test yes = "$enable_shared" || enable_static=yes
12611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12612 printf "%s\n" "$enable_static" >&6; }
12613
12614
12615
12616
12617 fi
12618 ac_ext=c
12619 ac_cpp='$CPP $CPPFLAGS'
12620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12623
12624 CC=$lt_save_CC
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640 ac_config_commands="$ac_config_commands libtool"
12641
12642
12643
12644
12645 # Only expand once:
12646
12647
12648
12649 # Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12663 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12664 if test ${ac_cv_c_undeclared_builtin_options+y}
12665 then :
12666 printf %s "(cached) " >&6
12667 else $as_nop
12668 ac_save_CFLAGS=$CFLAGS
12669 ac_cv_c_undeclared_builtin_options='cannot detect'
12670 for ac_arg in '' -fno-builtin; do
12671 CFLAGS="$ac_save_CFLAGS $ac_arg"
12672 # This test program should *not* compile successfully.
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675
12676 int
12677 main (void)
12678 {
12679 (void) strchr;
12680 ;
12681 return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_compile "$LINENO"
12685 then :
12686
12687 else $as_nop
12688 # This test program should compile successfully.
12689 # No library function is consistently available on
12690 # freestanding implementations, so test against a dummy
12691 # declaration. Include always-available headers on the
12692 # off chance that they somehow elicit warnings.
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 #include <float.h>
12696 #include <limits.h>
12697 #include <stdarg.h>
12698 #include <stddef.h>
12699 extern void ac_decl (int, char *);
12700
12701 int
12702 main (void)
12703 {
12704 (void) ac_decl (0, (char *) 0);
12705 (void) ac_decl;
12706
12707 ;
12708 return 0;
12709 }
12710 _ACEOF
12711 if ac_fn_c_try_compile "$LINENO"
12712 then :
12713 if test x"$ac_arg" = x
12714 then :
12715 ac_cv_c_undeclared_builtin_options='none needed'
12716 else $as_nop
12717 ac_cv_c_undeclared_builtin_options=$ac_arg
12718 fi
12719 break
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12724 done
12725 CFLAGS=$ac_save_CFLAGS
12726
12727 fi
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12729 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12730 case $ac_cv_c_undeclared_builtin_options in #(
12731 'cannot detect') :
12732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12733 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12734 as_fn_error $? "cannot make $CC report undeclared builtins
12735 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12736 'none needed') :
12737 ac_c_undeclared_builtin_options='' ;; #(
12738 *) :
12739 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12740 esac
12741
12742
12743
12744
12745
12746 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12747 if test "x$ac_cv_have_decl___clang__" = xyes
12748 then :
12749 CLANGCC="yes"
12750 else $as_nop
12751 CLANGCC="no"
12752 fi
12753 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12754 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12755 then :
12756 INTELCC="yes"
12757 else $as_nop
12758 INTELCC="no"
12759 fi
12760 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12761 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12762 then :
12763 SUNCC="yes"
12764 else $as_nop
12765 SUNCC="no"
12766 fi
12767
12768
12769
12770
12771
12772
12773
12774
12775 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12776 if test -n "$ac_tool_prefix"; then
12777 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12778 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 printf %s "checking for $ac_word... " >&6; }
12781 if test ${ac_cv_path_PKG_CONFIG+y}
12782 then :
12783 printf %s "(cached) " >&6
12784 else $as_nop
12785 case $PKG_CONFIG in
12786 [\\/]* | ?:[\\/]*)
12787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12788 ;;
12789 *)
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793 IFS=$as_save_IFS
12794 case $as_dir in #(((
12795 '') as_dir=./ ;;
12796 */) ;;
12797 *) as_dir=$as_dir/ ;;
12798 esac
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12801 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12803 break 2
12804 fi
12805 done
12806 done
12807 IFS=$as_save_IFS
12808
12809 ;;
12810 esac
12811 fi
12812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12813 if test -n "$PKG_CONFIG"; then
12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12815 printf "%s\n" "$PKG_CONFIG" >&6; }
12816 else
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 printf "%s\n" "no" >&6; }
12819 fi
12820
12821
12822 fi
12823 if test -z "$ac_cv_path_PKG_CONFIG"; then
12824 ac_pt_PKG_CONFIG=$PKG_CONFIG
12825 # Extract the first word of "pkg-config", so it can be a program name with args.
12826 set dummy pkg-config; ac_word=$2
12827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 printf %s "checking for $ac_word... " >&6; }
12829 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12830 then :
12831 printf %s "(cached) " >&6
12832 else $as_nop
12833 case $ac_pt_PKG_CONFIG in
12834 [\\/]* | ?:[\\/]*)
12835 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12836 ;;
12837 *)
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12840 do
12841 IFS=$as_save_IFS
12842 case $as_dir in #(((
12843 '') as_dir=./ ;;
12844 */) ;;
12845 *) as_dir=$as_dir/ ;;
12846 esac
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12849 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12851 break 2
12852 fi
12853 done
12854 done
12855 IFS=$as_save_IFS
12856
12857 ;;
12858 esac
12859 fi
12860 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12861 if test -n "$ac_pt_PKG_CONFIG"; then
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12863 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12864 else
12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 printf "%s\n" "no" >&6; }
12867 fi
12868
12869 if test "x$ac_pt_PKG_CONFIG" = x; then
12870 PKG_CONFIG=""
12871 else
12872 case $cross_compiling:$ac_tool_warned in
12873 yes:)
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12875 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12876 ac_tool_warned=yes ;;
12877 esac
12878 PKG_CONFIG=$ac_pt_PKG_CONFIG
12879 fi
12880 else
12881 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12882 fi
12883
12884 fi
12885 if test -n "$PKG_CONFIG"; then
12886 _pkg_min_version=0.9.0
12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12888 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12889 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12891 printf "%s\n" "yes" >&6; }
12892 else
12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 printf "%s\n" "no" >&6; }
12895 PKG_CONFIG=""
12896 fi
12897 fi
12898
12899
12900
12901
12902
12903 # Check whether --enable-selective-werror was given.
12904 if test ${enable_selective_werror+y}
12905 then :
12906 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12907 else $as_nop
12908 SELECTIVE_WERROR=yes
12909 fi
12910
12911
12912
12913
12914
12915 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12916 if test "x$SUNCC" = "xyes"; then
12917 BASE_CFLAGS="-v"
12918 else
12919 BASE_CFLAGS=""
12920 fi
12921
12922 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936 xorg_testset_save_CFLAGS="$CFLAGS"
12937
12938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12942 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12943 then :
12944 printf %s "(cached) " >&6
12945 else $as_nop
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 int i;
12949 _ACEOF
12950 if ac_fn_c_try_compile "$LINENO"
12951 then :
12952 xorg_cv_cc_flag_unknown_warning_option=yes
12953 else $as_nop
12954 xorg_cv_cc_flag_unknown_warning_option=no
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12957 fi
12958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12961 CFLAGS="$xorg_testset_save_CFLAGS"
12962 fi
12963
12964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12967 fi
12968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12972 then :
12973 printf %s "(cached) " >&6
12974 else $as_nop
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977 int i;
12978 _ACEOF
12979 if ac_fn_c_try_compile "$LINENO"
12980 then :
12981 xorg_cv_cc_flag_unused_command_line_argument=yes
12982 else $as_nop
12983 xorg_cv_cc_flag_unused_command_line_argument=no
12984 fi
12985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12986 fi
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12988 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12990 CFLAGS="$xorg_testset_save_CFLAGS"
12991 fi
12992
12993 found="no"
12994
12995 if test $found = "no" ; then
12996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12998 fi
12999
13000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13002 fi
13003
13004 CFLAGS="$CFLAGS -Wall"
13005
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13007 printf %s "checking if $CC supports -Wall... " >&6; }
13008 cacheid=xorg_cv_cc_flag__Wall
13009 if eval test \${$cacheid+y}
13010 then :
13011 printf %s "(cached) " >&6
13012 else $as_nop
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015 int i;
13016 int
13017 main (void)
13018 {
13019
13020 ;
13021 return 0;
13022 }
13023 _ACEOF
13024 if ac_fn_c_try_link "$LINENO"
13025 then :
13026 eval $cacheid=yes
13027 else $as_nop
13028 eval $cacheid=no
13029 fi
13030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13031 conftest$ac_exeext conftest.$ac_ext
13032 fi
13033
13034
13035 CFLAGS="$xorg_testset_save_CFLAGS"
13036
13037 eval supported=\$$cacheid
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13039 printf "%s\n" "$supported" >&6; }
13040 if test "$supported" = "yes" ; then
13041 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13042 found="yes"
13043 fi
13044 fi
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060 xorg_testset_save_CFLAGS="$CFLAGS"
13061
13062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13067 then :
13068 printf %s "(cached) " >&6
13069 else $as_nop
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13072 int i;
13073 _ACEOF
13074 if ac_fn_c_try_compile "$LINENO"
13075 then :
13076 xorg_cv_cc_flag_unknown_warning_option=yes
13077 else $as_nop
13078 xorg_cv_cc_flag_unknown_warning_option=no
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13081 fi
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13085 CFLAGS="$xorg_testset_save_CFLAGS"
13086 fi
13087
13088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13091 fi
13092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13096 then :
13097 printf %s "(cached) " >&6
13098 else $as_nop
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 int i;
13102 _ACEOF
13103 if ac_fn_c_try_compile "$LINENO"
13104 then :
13105 xorg_cv_cc_flag_unused_command_line_argument=yes
13106 else $as_nop
13107 xorg_cv_cc_flag_unused_command_line_argument=no
13108 fi
13109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13110 fi
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13114 CFLAGS="$xorg_testset_save_CFLAGS"
13115 fi
13116
13117 found="no"
13118
13119 if test $found = "no" ; then
13120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13122 fi
13123
13124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13126 fi
13127
13128 CFLAGS="$CFLAGS -Wpointer-arith"
13129
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13131 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13132 cacheid=xorg_cv_cc_flag__Wpointer_arith
13133 if eval test \${$cacheid+y}
13134 then :
13135 printf %s "(cached) " >&6
13136 else $as_nop
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 int i;
13140 int
13141 main (void)
13142 {
13143
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"
13149 then :
13150 eval $cacheid=yes
13151 else $as_nop
13152 eval $cacheid=no
13153 fi
13154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13155 conftest$ac_exeext conftest.$ac_ext
13156 fi
13157
13158
13159 CFLAGS="$xorg_testset_save_CFLAGS"
13160
13161 eval supported=\$$cacheid
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13163 printf "%s\n" "$supported" >&6; }
13164 if test "$supported" = "yes" ; then
13165 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13166 found="yes"
13167 fi
13168 fi
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184 xorg_testset_save_CFLAGS="$CFLAGS"
13185
13186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13191 then :
13192 printf %s "(cached) " >&6
13193 else $as_nop
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13196 int i;
13197 _ACEOF
13198 if ac_fn_c_try_compile "$LINENO"
13199 then :
13200 xorg_cv_cc_flag_unknown_warning_option=yes
13201 else $as_nop
13202 xorg_cv_cc_flag_unknown_warning_option=no
13203 fi
13204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13205 fi
13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13207 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13209 CFLAGS="$xorg_testset_save_CFLAGS"
13210 fi
13211
13212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13215 fi
13216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13220 then :
13221 printf %s "(cached) " >&6
13222 else $as_nop
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13225 int i;
13226 _ACEOF
13227 if ac_fn_c_try_compile "$LINENO"
13228 then :
13229 xorg_cv_cc_flag_unused_command_line_argument=yes
13230 else $as_nop
13231 xorg_cv_cc_flag_unused_command_line_argument=no
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13234 fi
13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13238 CFLAGS="$xorg_testset_save_CFLAGS"
13239 fi
13240
13241 found="no"
13242
13243 if test $found = "no" ; then
13244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13246 fi
13247
13248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13250 fi
13251
13252 CFLAGS="$CFLAGS -Wmissing-declarations"
13253
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13255 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13256 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13257 if eval test \${$cacheid+y}
13258 then :
13259 printf %s "(cached) " >&6
13260 else $as_nop
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 int i;
13264 int
13265 main (void)
13266 {
13267
13268 ;
13269 return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"
13273 then :
13274 eval $cacheid=yes
13275 else $as_nop
13276 eval $cacheid=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13279 conftest$ac_exeext conftest.$ac_ext
13280 fi
13281
13282
13283 CFLAGS="$xorg_testset_save_CFLAGS"
13284
13285 eval supported=\$$cacheid
13286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13287 printf "%s\n" "$supported" >&6; }
13288 if test "$supported" = "yes" ; then
13289 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13290 found="yes"
13291 fi
13292 fi
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308 xorg_testset_save_CFLAGS="$CFLAGS"
13309
13310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13313 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13314 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13315 then :
13316 printf %s "(cached) " >&6
13317 else $as_nop
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 int i;
13321 _ACEOF
13322 if ac_fn_c_try_compile "$LINENO"
13323 then :
13324 xorg_cv_cc_flag_unknown_warning_option=yes
13325 else $as_nop
13326 xorg_cv_cc_flag_unknown_warning_option=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13329 fi
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13331 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13333 CFLAGS="$xorg_testset_save_CFLAGS"
13334 fi
13335
13336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13339 fi
13340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13344 then :
13345 printf %s "(cached) " >&6
13346 else $as_nop
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 int i;
13350 _ACEOF
13351 if ac_fn_c_try_compile "$LINENO"
13352 then :
13353 xorg_cv_cc_flag_unused_command_line_argument=yes
13354 else $as_nop
13355 xorg_cv_cc_flag_unused_command_line_argument=no
13356 fi
13357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13358 fi
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13360 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13362 CFLAGS="$xorg_testset_save_CFLAGS"
13363 fi
13364
13365 found="no"
13366
13367 if test $found = "no" ; then
13368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13370 fi
13371
13372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13374 fi
13375
13376 CFLAGS="$CFLAGS -Wformat=2"
13377
13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13379 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13380 cacheid=xorg_cv_cc_flag__Wformat_2
13381 if eval test \${$cacheid+y}
13382 then :
13383 printf %s "(cached) " >&6
13384 else $as_nop
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 int i;
13388 int
13389 main (void)
13390 {
13391
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_link "$LINENO"
13397 then :
13398 eval $cacheid=yes
13399 else $as_nop
13400 eval $cacheid=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13403 conftest$ac_exeext conftest.$ac_ext
13404 fi
13405
13406
13407 CFLAGS="$xorg_testset_save_CFLAGS"
13408
13409 eval supported=\$$cacheid
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13411 printf "%s\n" "$supported" >&6; }
13412 if test "$supported" = "yes" ; then
13413 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13414 found="yes"
13415 fi
13416 fi
13417
13418 if test $found = "no" ; then
13419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13421 fi
13422
13423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13425 fi
13426
13427 CFLAGS="$CFLAGS -Wformat"
13428
13429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13430 printf %s "checking if $CC supports -Wformat... " >&6; }
13431 cacheid=xorg_cv_cc_flag__Wformat
13432 if eval test \${$cacheid+y}
13433 then :
13434 printf %s "(cached) " >&6
13435 else $as_nop
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 int i;
13439 int
13440 main (void)
13441 {
13442
13443 ;
13444 return 0;
13445 }
13446 _ACEOF
13447 if ac_fn_c_try_link "$LINENO"
13448 then :
13449 eval $cacheid=yes
13450 else $as_nop
13451 eval $cacheid=no
13452 fi
13453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13454 conftest$ac_exeext conftest.$ac_ext
13455 fi
13456
13457
13458 CFLAGS="$xorg_testset_save_CFLAGS"
13459
13460 eval supported=\$$cacheid
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13462 printf "%s\n" "$supported" >&6; }
13463 if test "$supported" = "yes" ; then
13464 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13465 found="yes"
13466 fi
13467 fi
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485 xorg_testset_save_CFLAGS="$CFLAGS"
13486
13487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13490 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13491 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13492 then :
13493 printf %s "(cached) " >&6
13494 else $as_nop
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 int i;
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"
13500 then :
13501 xorg_cv_cc_flag_unknown_warning_option=yes
13502 else $as_nop
13503 xorg_cv_cc_flag_unknown_warning_option=no
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13506 fi
13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13508 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13510 CFLAGS="$xorg_testset_save_CFLAGS"
13511 fi
13512
13513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13516 fi
13517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13519 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13520 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13521 then :
13522 printf %s "(cached) " >&6
13523 else $as_nop
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 int i;
13527 _ACEOF
13528 if ac_fn_c_try_compile "$LINENO"
13529 then :
13530 xorg_cv_cc_flag_unused_command_line_argument=yes
13531 else $as_nop
13532 xorg_cv_cc_flag_unused_command_line_argument=no
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13535 fi
13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13539 CFLAGS="$xorg_testset_save_CFLAGS"
13540 fi
13541
13542 found="no"
13543
13544 if test $found = "no" ; then
13545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547 fi
13548
13549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13551 fi
13552
13553 CFLAGS="$CFLAGS -Wstrict-prototypes"
13554
13555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13556 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13557 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13558 if eval test \${$cacheid+y}
13559 then :
13560 printf %s "(cached) " >&6
13561 else $as_nop
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 int i;
13565 int
13566 main (void)
13567 {
13568
13569 ;
13570 return 0;
13571 }
13572 _ACEOF
13573 if ac_fn_c_try_link "$LINENO"
13574 then :
13575 eval $cacheid=yes
13576 else $as_nop
13577 eval $cacheid=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13580 conftest$ac_exeext conftest.$ac_ext
13581 fi
13582
13583
13584 CFLAGS="$xorg_testset_save_CFLAGS"
13585
13586 eval supported=\$$cacheid
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13588 printf "%s\n" "$supported" >&6; }
13589 if test "$supported" = "yes" ; then
13590 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13591 found="yes"
13592 fi
13593 fi
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609 xorg_testset_save_CFLAGS="$CFLAGS"
13610
13611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13614 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13615 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13616 then :
13617 printf %s "(cached) " >&6
13618 else $as_nop
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 int i;
13622 _ACEOF
13623 if ac_fn_c_try_compile "$LINENO"
13624 then :
13625 xorg_cv_cc_flag_unknown_warning_option=yes
13626 else $as_nop
13627 xorg_cv_cc_flag_unknown_warning_option=no
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13630 fi
13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13632 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13634 CFLAGS="$xorg_testset_save_CFLAGS"
13635 fi
13636
13637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13640 fi
13641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13645 then :
13646 printf %s "(cached) " >&6
13647 else $as_nop
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 int i;
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"
13653 then :
13654 xorg_cv_cc_flag_unused_command_line_argument=yes
13655 else $as_nop
13656 xorg_cv_cc_flag_unused_command_line_argument=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13659 fi
13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13661 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13663 CFLAGS="$xorg_testset_save_CFLAGS"
13664 fi
13665
13666 found="no"
13667
13668 if test $found = "no" ; then
13669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13671 fi
13672
13673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13675 fi
13676
13677 CFLAGS="$CFLAGS -Wmissing-prototypes"
13678
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13680 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13681 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13682 if eval test \${$cacheid+y}
13683 then :
13684 printf %s "(cached) " >&6
13685 else $as_nop
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 int i;
13689 int
13690 main (void)
13691 {
13692
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"
13698 then :
13699 eval $cacheid=yes
13700 else $as_nop
13701 eval $cacheid=no
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13704 conftest$ac_exeext conftest.$ac_ext
13705 fi
13706
13707
13708 CFLAGS="$xorg_testset_save_CFLAGS"
13709
13710 eval supported=\$$cacheid
13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13712 printf "%s\n" "$supported" >&6; }
13713 if test "$supported" = "yes" ; then
13714 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13715 found="yes"
13716 fi
13717 fi
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733 xorg_testset_save_CFLAGS="$CFLAGS"
13734
13735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13738 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13739 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13740 then :
13741 printf %s "(cached) " >&6
13742 else $as_nop
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 int i;
13746 _ACEOF
13747 if ac_fn_c_try_compile "$LINENO"
13748 then :
13749 xorg_cv_cc_flag_unknown_warning_option=yes
13750 else $as_nop
13751 xorg_cv_cc_flag_unknown_warning_option=no
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13754 fi
13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13758 CFLAGS="$xorg_testset_save_CFLAGS"
13759 fi
13760
13761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13764 fi
13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13769 then :
13770 printf %s "(cached) " >&6
13771 else $as_nop
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 int i;
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"
13777 then :
13778 xorg_cv_cc_flag_unused_command_line_argument=yes
13779 else $as_nop
13780 xorg_cv_cc_flag_unused_command_line_argument=no
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13783 fi
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13785 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13787 CFLAGS="$xorg_testset_save_CFLAGS"
13788 fi
13789
13790 found="no"
13791
13792 if test $found = "no" ; then
13793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13795 fi
13796
13797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13799 fi
13800
13801 CFLAGS="$CFLAGS -Wnested-externs"
13802
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13804 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13805 cacheid=xorg_cv_cc_flag__Wnested_externs
13806 if eval test \${$cacheid+y}
13807 then :
13808 printf %s "(cached) " >&6
13809 else $as_nop
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812 int i;
13813 int
13814 main (void)
13815 {
13816
13817 ;
13818 return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_link "$LINENO"
13822 then :
13823 eval $cacheid=yes
13824 else $as_nop
13825 eval $cacheid=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13828 conftest$ac_exeext conftest.$ac_ext
13829 fi
13830
13831
13832 CFLAGS="$xorg_testset_save_CFLAGS"
13833
13834 eval supported=\$$cacheid
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13836 printf "%s\n" "$supported" >&6; }
13837 if test "$supported" = "yes" ; then
13838 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13839 found="yes"
13840 fi
13841 fi
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857 xorg_testset_save_CFLAGS="$CFLAGS"
13858
13859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13862 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13863 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13864 then :
13865 printf %s "(cached) " >&6
13866 else $as_nop
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 int i;
13870 _ACEOF
13871 if ac_fn_c_try_compile "$LINENO"
13872 then :
13873 xorg_cv_cc_flag_unknown_warning_option=yes
13874 else $as_nop
13875 xorg_cv_cc_flag_unknown_warning_option=no
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13878 fi
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13880 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13882 CFLAGS="$xorg_testset_save_CFLAGS"
13883 fi
13884
13885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13888 fi
13889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13891 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13892 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13893 then :
13894 printf %s "(cached) " >&6
13895 else $as_nop
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 int i;
13899 _ACEOF
13900 if ac_fn_c_try_compile "$LINENO"
13901 then :
13902 xorg_cv_cc_flag_unused_command_line_argument=yes
13903 else $as_nop
13904 xorg_cv_cc_flag_unused_command_line_argument=no
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13907 fi
13908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13909 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13911 CFLAGS="$xorg_testset_save_CFLAGS"
13912 fi
13913
13914 found="no"
13915
13916 if test $found = "no" ; then
13917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13919 fi
13920
13921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13923 fi
13924
13925 CFLAGS="$CFLAGS -Wbad-function-cast"
13926
13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13928 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13929 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13930 if eval test \${$cacheid+y}
13931 then :
13932 printf %s "(cached) " >&6
13933 else $as_nop
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936 int i;
13937 int
13938 main (void)
13939 {
13940
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"
13946 then :
13947 eval $cacheid=yes
13948 else $as_nop
13949 eval $cacheid=no
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13952 conftest$ac_exeext conftest.$ac_ext
13953 fi
13954
13955
13956 CFLAGS="$xorg_testset_save_CFLAGS"
13957
13958 eval supported=\$$cacheid
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13960 printf "%s\n" "$supported" >&6; }
13961 if test "$supported" = "yes" ; then
13962 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13963 found="yes"
13964 fi
13965 fi
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981 xorg_testset_save_CFLAGS="$CFLAGS"
13982
13983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13986 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13987 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13988 then :
13989 printf %s "(cached) " >&6
13990 else $as_nop
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993 int i;
13994 _ACEOF
13995 if ac_fn_c_try_compile "$LINENO"
13996 then :
13997 xorg_cv_cc_flag_unknown_warning_option=yes
13998 else $as_nop
13999 xorg_cv_cc_flag_unknown_warning_option=no
14000 fi
14001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14002 fi
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14006 CFLAGS="$xorg_testset_save_CFLAGS"
14007 fi
14008
14009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14012 fi
14013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14017 then :
14018 printf %s "(cached) " >&6
14019 else $as_nop
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022 int i;
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"
14025 then :
14026 xorg_cv_cc_flag_unused_command_line_argument=yes
14027 else $as_nop
14028 xorg_cv_cc_flag_unused_command_line_argument=no
14029 fi
14030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14031 fi
14032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14033 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14035 CFLAGS="$xorg_testset_save_CFLAGS"
14036 fi
14037
14038 found="no"
14039
14040 if test $found = "no" ; then
14041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14043 fi
14044
14045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14047 fi
14048
14049 CFLAGS="$CFLAGS -Wold-style-definition"
14050
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14052 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14053 cacheid=xorg_cv_cc_flag__Wold_style_definition
14054 if eval test \${$cacheid+y}
14055 then :
14056 printf %s "(cached) " >&6
14057 else $as_nop
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060 int i;
14061 int
14062 main (void)
14063 {
14064
14065 ;
14066 return 0;
14067 }
14068 _ACEOF
14069 if ac_fn_c_try_link "$LINENO"
14070 then :
14071 eval $cacheid=yes
14072 else $as_nop
14073 eval $cacheid=no
14074 fi
14075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14076 conftest$ac_exeext conftest.$ac_ext
14077 fi
14078
14079
14080 CFLAGS="$xorg_testset_save_CFLAGS"
14081
14082 eval supported=\$$cacheid
14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14084 printf "%s\n" "$supported" >&6; }
14085 if test "$supported" = "yes" ; then
14086 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14087 found="yes"
14088 fi
14089 fi
14090
14091 if test $found = "no" ; then
14092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14094 fi
14095
14096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14098 fi
14099
14100 CFLAGS="$CFLAGS -fd"
14101
14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14103 printf %s "checking if $CC supports -fd... " >&6; }
14104 cacheid=xorg_cv_cc_flag__fd
14105 if eval test \${$cacheid+y}
14106 then :
14107 printf %s "(cached) " >&6
14108 else $as_nop
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 int i;
14112 int
14113 main (void)
14114 {
14115
14116 ;
14117 return 0;
14118 }
14119 _ACEOF
14120 if ac_fn_c_try_link "$LINENO"
14121 then :
14122 eval $cacheid=yes
14123 else $as_nop
14124 eval $cacheid=no
14125 fi
14126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14127 conftest$ac_exeext conftest.$ac_ext
14128 fi
14129
14130
14131 CFLAGS="$xorg_testset_save_CFLAGS"
14132
14133 eval supported=\$$cacheid
14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14135 printf "%s\n" "$supported" >&6; }
14136 if test "$supported" = "yes" ; then
14137 BASE_CFLAGS="$BASE_CFLAGS -fd"
14138 found="yes"
14139 fi
14140 fi
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156 xorg_testset_save_CFLAGS="$CFLAGS"
14157
14158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14162 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
14170 if ac_fn_c_try_compile "$LINENO"
14171 then :
14172 xorg_cv_cc_flag_unknown_warning_option=yes
14173 else $as_nop
14174 xorg_cv_cc_flag_unknown_warning_option=no
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14177 fi
14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14181 CFLAGS="$xorg_testset_save_CFLAGS"
14182 fi
14183
14184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14187 fi
14188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14191 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14192 then :
14193 printf %s "(cached) " >&6
14194 else $as_nop
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 int i;
14198 _ACEOF
14199 if ac_fn_c_try_compile "$LINENO"
14200 then :
14201 xorg_cv_cc_flag_unused_command_line_argument=yes
14202 else $as_nop
14203 xorg_cv_cc_flag_unused_command_line_argument=no
14204 fi
14205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14206 fi
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14208 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14210 CFLAGS="$xorg_testset_save_CFLAGS"
14211 fi
14212
14213 found="no"
14214
14215 if test $found = "no" ; then
14216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218 fi
14219
14220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14222 fi
14223
14224 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14225
14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14227 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14228 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14229 if eval test \${$cacheid+y}
14230 then :
14231 printf %s "(cached) " >&6
14232 else $as_nop
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 int i;
14236 int
14237 main (void)
14238 {
14239
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"
14245 then :
14246 eval $cacheid=yes
14247 else $as_nop
14248 eval $cacheid=no
14249 fi
14250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14251 conftest$ac_exeext conftest.$ac_ext
14252 fi
14253
14254
14255 CFLAGS="$xorg_testset_save_CFLAGS"
14256
14257 eval supported=\$$cacheid
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14259 printf "%s\n" "$supported" >&6; }
14260 if test "$supported" = "yes" ; then
14261 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14262 found="yes"
14263 fi
14264 fi
14265
14266
14267
14268
14269
14270 # This chunk adds additional warnings that could catch undesired effects.
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284 xorg_testset_save_CFLAGS="$CFLAGS"
14285
14286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14290 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14291 then :
14292 printf %s "(cached) " >&6
14293 else $as_nop
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 int i;
14297 _ACEOF
14298 if ac_fn_c_try_compile "$LINENO"
14299 then :
14300 xorg_cv_cc_flag_unknown_warning_option=yes
14301 else $as_nop
14302 xorg_cv_cc_flag_unknown_warning_option=no
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14305 fi
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14307 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14309 CFLAGS="$xorg_testset_save_CFLAGS"
14310 fi
14311
14312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14315 fi
14316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14320 then :
14321 printf %s "(cached) " >&6
14322 else $as_nop
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 int i;
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"
14328 then :
14329 xorg_cv_cc_flag_unused_command_line_argument=yes
14330 else $as_nop
14331 xorg_cv_cc_flag_unused_command_line_argument=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14334 fi
14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14336 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 found="no"
14342
14343 if test $found = "no" ; then
14344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346 fi
14347
14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350 fi
14351
14352 CFLAGS="$CFLAGS -Wunused"
14353
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14355 printf %s "checking if $CC supports -Wunused... " >&6; }
14356 cacheid=xorg_cv_cc_flag__Wunused
14357 if eval test \${$cacheid+y}
14358 then :
14359 printf %s "(cached) " >&6
14360 else $as_nop
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 int i;
14364 int
14365 main (void)
14366 {
14367
14368 ;
14369 return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"
14373 then :
14374 eval $cacheid=yes
14375 else $as_nop
14376 eval $cacheid=no
14377 fi
14378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14379 conftest$ac_exeext conftest.$ac_ext
14380 fi
14381
14382
14383 CFLAGS="$xorg_testset_save_CFLAGS"
14384
14385 eval supported=\$$cacheid
14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14387 printf "%s\n" "$supported" >&6; }
14388 if test "$supported" = "yes" ; then
14389 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14390 found="yes"
14391 fi
14392 fi
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408 xorg_testset_save_CFLAGS="$CFLAGS"
14409
14410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14413 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14414 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14415 then :
14416 printf %s "(cached) " >&6
14417 else $as_nop
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 int i;
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"
14423 then :
14424 xorg_cv_cc_flag_unknown_warning_option=yes
14425 else $as_nop
14426 xorg_cv_cc_flag_unknown_warning_option=no
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14429 fi
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14433 CFLAGS="$xorg_testset_save_CFLAGS"
14434 fi
14435
14436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14439 fi
14440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14444 then :
14445 printf %s "(cached) " >&6
14446 else $as_nop
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 int i;
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"
14452 then :
14453 xorg_cv_cc_flag_unused_command_line_argument=yes
14454 else $as_nop
14455 xorg_cv_cc_flag_unused_command_line_argument=no
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14458 fi
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14462 CFLAGS="$xorg_testset_save_CFLAGS"
14463 fi
14464
14465 found="no"
14466
14467 if test $found = "no" ; then
14468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14470 fi
14471
14472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14474 fi
14475
14476 CFLAGS="$CFLAGS -Wuninitialized"
14477
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14479 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14480 cacheid=xorg_cv_cc_flag__Wuninitialized
14481 if eval test \${$cacheid+y}
14482 then :
14483 printf %s "(cached) " >&6
14484 else $as_nop
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 int i;
14488 int
14489 main (void)
14490 {
14491
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"
14497 then :
14498 eval $cacheid=yes
14499 else $as_nop
14500 eval $cacheid=no
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14503 conftest$ac_exeext conftest.$ac_ext
14504 fi
14505
14506
14507 CFLAGS="$xorg_testset_save_CFLAGS"
14508
14509 eval supported=\$$cacheid
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14511 printf "%s\n" "$supported" >&6; }
14512 if test "$supported" = "yes" ; then
14513 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14514 found="yes"
14515 fi
14516 fi
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532 xorg_testset_save_CFLAGS="$CFLAGS"
14533
14534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14539 then :
14540 printf %s "(cached) " >&6
14541 else $as_nop
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 int i;
14545 _ACEOF
14546 if ac_fn_c_try_compile "$LINENO"
14547 then :
14548 xorg_cv_cc_flag_unknown_warning_option=yes
14549 else $as_nop
14550 xorg_cv_cc_flag_unknown_warning_option=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14553 fi
14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14557 CFLAGS="$xorg_testset_save_CFLAGS"
14558 fi
14559
14560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14563 fi
14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14568 then :
14569 printf %s "(cached) " >&6
14570 else $as_nop
14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 int i;
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"
14576 then :
14577 xorg_cv_cc_flag_unused_command_line_argument=yes
14578 else $as_nop
14579 xorg_cv_cc_flag_unused_command_line_argument=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14582 fi
14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14586 CFLAGS="$xorg_testset_save_CFLAGS"
14587 fi
14588
14589 found="no"
14590
14591 if test $found = "no" ; then
14592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14594 fi
14595
14596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14598 fi
14599
14600 CFLAGS="$CFLAGS -Wshadow"
14601
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14603 printf %s "checking if $CC supports -Wshadow... " >&6; }
14604 cacheid=xorg_cv_cc_flag__Wshadow
14605 if eval test \${$cacheid+y}
14606 then :
14607 printf %s "(cached) " >&6
14608 else $as_nop
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 int i;
14612 int
14613 main (void)
14614 {
14615
14616 ;
14617 return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_link "$LINENO"
14621 then :
14622 eval $cacheid=yes
14623 else $as_nop
14624 eval $cacheid=no
14625 fi
14626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14627 conftest$ac_exeext conftest.$ac_ext
14628 fi
14629
14630
14631 CFLAGS="$xorg_testset_save_CFLAGS"
14632
14633 eval supported=\$$cacheid
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14635 printf "%s\n" "$supported" >&6; }
14636 if test "$supported" = "yes" ; then
14637 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14638 found="yes"
14639 fi
14640 fi
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656 xorg_testset_save_CFLAGS="$CFLAGS"
14657
14658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14663 then :
14664 printf %s "(cached) " >&6
14665 else $as_nop
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 int i;
14669 _ACEOF
14670 if ac_fn_c_try_compile "$LINENO"
14671 then :
14672 xorg_cv_cc_flag_unknown_warning_option=yes
14673 else $as_nop
14674 xorg_cv_cc_flag_unknown_warning_option=no
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14677 fi
14678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14679 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14681 CFLAGS="$xorg_testset_save_CFLAGS"
14682 fi
14683
14684 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14687 fi
14688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14690 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14691 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14692 then :
14693 printf %s "(cached) " >&6
14694 else $as_nop
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14697 int i;
14698 _ACEOF
14699 if ac_fn_c_try_compile "$LINENO"
14700 then :
14701 xorg_cv_cc_flag_unused_command_line_argument=yes
14702 else $as_nop
14703 xorg_cv_cc_flag_unused_command_line_argument=no
14704 fi
14705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14706 fi
14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14710 CFLAGS="$xorg_testset_save_CFLAGS"
14711 fi
14712
14713 found="no"
14714
14715 if test $found = "no" ; then
14716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718 fi
14719
14720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14722 fi
14723
14724 CFLAGS="$CFLAGS -Wmissing-noreturn"
14725
14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14727 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14728 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14729 if eval test \${$cacheid+y}
14730 then :
14731 printf %s "(cached) " >&6
14732 else $as_nop
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735 int i;
14736 int
14737 main (void)
14738 {
14739
14740 ;
14741 return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_link "$LINENO"
14745 then :
14746 eval $cacheid=yes
14747 else $as_nop
14748 eval $cacheid=no
14749 fi
14750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14751 conftest$ac_exeext conftest.$ac_ext
14752 fi
14753
14754
14755 CFLAGS="$xorg_testset_save_CFLAGS"
14756
14757 eval supported=\$$cacheid
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14759 printf "%s\n" "$supported" >&6; }
14760 if test "$supported" = "yes" ; then
14761 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14762 found="yes"
14763 fi
14764 fi
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780 xorg_testset_save_CFLAGS="$CFLAGS"
14781
14782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14785 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14786 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14787 then :
14788 printf %s "(cached) " >&6
14789 else $as_nop
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 int i;
14793 _ACEOF
14794 if ac_fn_c_try_compile "$LINENO"
14795 then :
14796 xorg_cv_cc_flag_unknown_warning_option=yes
14797 else $as_nop
14798 xorg_cv_cc_flag_unknown_warning_option=no
14799 fi
14800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14801 fi
14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14803 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14805 CFLAGS="$xorg_testset_save_CFLAGS"
14806 fi
14807
14808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14811 fi
14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14814 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14815 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14816 then :
14817 printf %s "(cached) " >&6
14818 else $as_nop
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14821 int i;
14822 _ACEOF
14823 if ac_fn_c_try_compile "$LINENO"
14824 then :
14825 xorg_cv_cc_flag_unused_command_line_argument=yes
14826 else $as_nop
14827 xorg_cv_cc_flag_unused_command_line_argument=no
14828 fi
14829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14830 fi
14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14832 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14834 CFLAGS="$xorg_testset_save_CFLAGS"
14835 fi
14836
14837 found="no"
14838
14839 if test $found = "no" ; then
14840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14842 fi
14843
14844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14846 fi
14847
14848 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14849
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14851 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14852 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14853 if eval test \${$cacheid+y}
14854 then :
14855 printf %s "(cached) " >&6
14856 else $as_nop
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 int i;
14860 int
14861 main (void)
14862 {
14863
14864 ;
14865 return 0;
14866 }
14867 _ACEOF
14868 if ac_fn_c_try_link "$LINENO"
14869 then :
14870 eval $cacheid=yes
14871 else $as_nop
14872 eval $cacheid=no
14873 fi
14874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14875 conftest$ac_exeext conftest.$ac_ext
14876 fi
14877
14878
14879 CFLAGS="$xorg_testset_save_CFLAGS"
14880
14881 eval supported=\$$cacheid
14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14883 printf "%s\n" "$supported" >&6; }
14884 if test "$supported" = "yes" ; then
14885 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14886 found="yes"
14887 fi
14888 fi
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904 xorg_testset_save_CFLAGS="$CFLAGS"
14905
14906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14909 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14910 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14911 then :
14912 printf %s "(cached) " >&6
14913 else $as_nop
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916 int i;
14917 _ACEOF
14918 if ac_fn_c_try_compile "$LINENO"
14919 then :
14920 xorg_cv_cc_flag_unknown_warning_option=yes
14921 else $as_nop
14922 xorg_cv_cc_flag_unknown_warning_option=no
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14925 fi
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14927 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14929 CFLAGS="$xorg_testset_save_CFLAGS"
14930 fi
14931
14932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14935 fi
14936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14938 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14939 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14940 then :
14941 printf %s "(cached) " >&6
14942 else $as_nop
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945 int i;
14946 _ACEOF
14947 if ac_fn_c_try_compile "$LINENO"
14948 then :
14949 xorg_cv_cc_flag_unused_command_line_argument=yes
14950 else $as_nop
14951 xorg_cv_cc_flag_unused_command_line_argument=no
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14954 fi
14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14956 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14958 CFLAGS="$xorg_testset_save_CFLAGS"
14959 fi
14960
14961 found="no"
14962
14963 if test $found = "no" ; then
14964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14966 fi
14967
14968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14970 fi
14971
14972 CFLAGS="$CFLAGS -Wredundant-decls"
14973
14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14975 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14976 cacheid=xorg_cv_cc_flag__Wredundant_decls
14977 if eval test \${$cacheid+y}
14978 then :
14979 printf %s "(cached) " >&6
14980 else $as_nop
14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14983 int i;
14984 int
14985 main (void)
14986 {
14987
14988 ;
14989 return 0;
14990 }
14991 _ACEOF
14992 if ac_fn_c_try_link "$LINENO"
14993 then :
14994 eval $cacheid=yes
14995 else $as_nop
14996 eval $cacheid=no
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14999 conftest$ac_exeext conftest.$ac_ext
15000 fi
15001
15002
15003 CFLAGS="$xorg_testset_save_CFLAGS"
15004
15005 eval supported=\$$cacheid
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15007 printf "%s\n" "$supported" >&6; }
15008 if test "$supported" = "yes" ; then
15009 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15010 found="yes"
15011 fi
15012 fi
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028 xorg_testset_save_CFLAGS="$CFLAGS"
15029
15030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15033 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15034 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15035 then :
15036 printf %s "(cached) " >&6
15037 else $as_nop
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 int i;
15041 _ACEOF
15042 if ac_fn_c_try_compile "$LINENO"
15043 then :
15044 xorg_cv_cc_flag_unknown_warning_option=yes
15045 else $as_nop
15046 xorg_cv_cc_flag_unknown_warning_option=no
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15049 fi
15050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15051 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15053 CFLAGS="$xorg_testset_save_CFLAGS"
15054 fi
15055
15056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15059 fi
15060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15063 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15064 then :
15065 printf %s "(cached) " >&6
15066 else $as_nop
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15069 int i;
15070 _ACEOF
15071 if ac_fn_c_try_compile "$LINENO"
15072 then :
15073 xorg_cv_cc_flag_unused_command_line_argument=yes
15074 else $as_nop
15075 xorg_cv_cc_flag_unused_command_line_argument=no
15076 fi
15077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15078 fi
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15082 CFLAGS="$xorg_testset_save_CFLAGS"
15083 fi
15084
15085 found="no"
15086
15087 if test $found = "no" ; then
15088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15090 fi
15091
15092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15094 fi
15095
15096 CFLAGS="$CFLAGS -Wlogical-op"
15097
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15099 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15100 cacheid=xorg_cv_cc_flag__Wlogical_op
15101 if eval test \${$cacheid+y}
15102 then :
15103 printf %s "(cached) " >&6
15104 else $as_nop
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15107 int i;
15108 int
15109 main (void)
15110 {
15111
15112 ;
15113 return 0;
15114 }
15115 _ACEOF
15116 if ac_fn_c_try_link "$LINENO"
15117 then :
15118 eval $cacheid=yes
15119 else $as_nop
15120 eval $cacheid=no
15121 fi
15122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15123 conftest$ac_exeext conftest.$ac_ext
15124 fi
15125
15126
15127 CFLAGS="$xorg_testset_save_CFLAGS"
15128
15129 eval supported=\$$cacheid
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15131 printf "%s\n" "$supported" >&6; }
15132 if test "$supported" = "yes" ; then
15133 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15134 found="yes"
15135 fi
15136 fi
15137
15138
15139
15140 # These are currently disabled because they are noisy. They will be enabled
15141 # in the future once the codebase is sufficiently modernized to silence
15142 # them. For now, I don't want them to drown out the other warnings.
15143 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15144 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15145 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15146
15147 # Turn some warnings into errors, so we don't accidently get successful builds
15148 # when there are problems that should be fixed.
15149
15150 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164 xorg_testset_save_CFLAGS="$CFLAGS"
15165
15166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15169 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15170 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15171 then :
15172 printf %s "(cached) " >&6
15173 else $as_nop
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176 int i;
15177 _ACEOF
15178 if ac_fn_c_try_compile "$LINENO"
15179 then :
15180 xorg_cv_cc_flag_unknown_warning_option=yes
15181 else $as_nop
15182 xorg_cv_cc_flag_unknown_warning_option=no
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15185 fi
15186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15187 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15189 CFLAGS="$xorg_testset_save_CFLAGS"
15190 fi
15191
15192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15195 fi
15196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15198 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15199 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15200 then :
15201 printf %s "(cached) " >&6
15202 else $as_nop
15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15205 int i;
15206 _ACEOF
15207 if ac_fn_c_try_compile "$LINENO"
15208 then :
15209 xorg_cv_cc_flag_unused_command_line_argument=yes
15210 else $as_nop
15211 xorg_cv_cc_flag_unused_command_line_argument=no
15212 fi
15213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15214 fi
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15216 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15218 CFLAGS="$xorg_testset_save_CFLAGS"
15219 fi
15220
15221 found="no"
15222
15223 if test $found = "no" ; then
15224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15226 fi
15227
15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15230 fi
15231
15232 CFLAGS="$CFLAGS -Werror=implicit"
15233
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15235 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15236 cacheid=xorg_cv_cc_flag__Werror_implicit
15237 if eval test \${$cacheid+y}
15238 then :
15239 printf %s "(cached) " >&6
15240 else $as_nop
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15243 int i;
15244 int
15245 main (void)
15246 {
15247
15248 ;
15249 return 0;
15250 }
15251 _ACEOF
15252 if ac_fn_c_try_link "$LINENO"
15253 then :
15254 eval $cacheid=yes
15255 else $as_nop
15256 eval $cacheid=no
15257 fi
15258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15259 conftest$ac_exeext conftest.$ac_ext
15260 fi
15261
15262
15263 CFLAGS="$xorg_testset_save_CFLAGS"
15264
15265 eval supported=\$$cacheid
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15267 printf "%s\n" "$supported" >&6; }
15268 if test "$supported" = "yes" ; then
15269 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15270 found="yes"
15271 fi
15272 fi
15273
15274 if test $found = "no" ; then
15275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15277 fi
15278
15279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15281 fi
15282
15283 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15284
15285 { 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
15286 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15287 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15288 if eval test \${$cacheid+y}
15289 then :
15290 printf %s "(cached) " >&6
15291 else $as_nop
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15294 int i;
15295 int
15296 main (void)
15297 {
15298
15299 ;
15300 return 0;
15301 }
15302 _ACEOF
15303 if ac_fn_c_try_link "$LINENO"
15304 then :
15305 eval $cacheid=yes
15306 else $as_nop
15307 eval $cacheid=no
15308 fi
15309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15310 conftest$ac_exeext conftest.$ac_ext
15311 fi
15312
15313
15314 CFLAGS="$xorg_testset_save_CFLAGS"
15315
15316 eval supported=\$$cacheid
15317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15318 printf "%s\n" "$supported" >&6; }
15319 if test "$supported" = "yes" ; then
15320 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15321 found="yes"
15322 fi
15323 fi
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339 xorg_testset_save_CFLAGS="$CFLAGS"
15340
15341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15344 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15345 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15346 then :
15347 printf %s "(cached) " >&6
15348 else $as_nop
15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15351 int i;
15352 _ACEOF
15353 if ac_fn_c_try_compile "$LINENO"
15354 then :
15355 xorg_cv_cc_flag_unknown_warning_option=yes
15356 else $as_nop
15357 xorg_cv_cc_flag_unknown_warning_option=no
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15360 fi
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15362 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15364 CFLAGS="$xorg_testset_save_CFLAGS"
15365 fi
15366
15367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15370 fi
15371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15373 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15374 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15375 then :
15376 printf %s "(cached) " >&6
15377 else $as_nop
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15380 int i;
15381 _ACEOF
15382 if ac_fn_c_try_compile "$LINENO"
15383 then :
15384 xorg_cv_cc_flag_unused_command_line_argument=yes
15385 else $as_nop
15386 xorg_cv_cc_flag_unused_command_line_argument=no
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15389 fi
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15391 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15393 CFLAGS="$xorg_testset_save_CFLAGS"
15394 fi
15395
15396 found="no"
15397
15398 if test $found = "no" ; then
15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401 fi
15402
15403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15405 fi
15406
15407 CFLAGS="$CFLAGS -Werror=nonnull"
15408
15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15410 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15411 cacheid=xorg_cv_cc_flag__Werror_nonnull
15412 if eval test \${$cacheid+y}
15413 then :
15414 printf %s "(cached) " >&6
15415 else $as_nop
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 int i;
15419 int
15420 main (void)
15421 {
15422
15423 ;
15424 return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_link "$LINENO"
15428 then :
15429 eval $cacheid=yes
15430 else $as_nop
15431 eval $cacheid=no
15432 fi
15433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15434 conftest$ac_exeext conftest.$ac_ext
15435 fi
15436
15437
15438 CFLAGS="$xorg_testset_save_CFLAGS"
15439
15440 eval supported=\$$cacheid
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15442 printf "%s\n" "$supported" >&6; }
15443 if test "$supported" = "yes" ; then
15444 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15445 found="yes"
15446 fi
15447 fi
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463 xorg_testset_save_CFLAGS="$CFLAGS"
15464
15465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15468 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15469 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15470 then :
15471 printf %s "(cached) " >&6
15472 else $as_nop
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475 int i;
15476 _ACEOF
15477 if ac_fn_c_try_compile "$LINENO"
15478 then :
15479 xorg_cv_cc_flag_unknown_warning_option=yes
15480 else $as_nop
15481 xorg_cv_cc_flag_unknown_warning_option=no
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15484 fi
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15488 CFLAGS="$xorg_testset_save_CFLAGS"
15489 fi
15490
15491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15494 fi
15495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15499 then :
15500 printf %s "(cached) " >&6
15501 else $as_nop
15502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503 /* end confdefs.h. */
15504 int i;
15505 _ACEOF
15506 if ac_fn_c_try_compile "$LINENO"
15507 then :
15508 xorg_cv_cc_flag_unused_command_line_argument=yes
15509 else $as_nop
15510 xorg_cv_cc_flag_unused_command_line_argument=no
15511 fi
15512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15513 fi
15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15517 CFLAGS="$xorg_testset_save_CFLAGS"
15518 fi
15519
15520 found="no"
15521
15522 if test $found = "no" ; then
15523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525 fi
15526
15527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15529 fi
15530
15531 CFLAGS="$CFLAGS -Werror=init-self"
15532
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15534 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15535 cacheid=xorg_cv_cc_flag__Werror_init_self
15536 if eval test \${$cacheid+y}
15537 then :
15538 printf %s "(cached) " >&6
15539 else $as_nop
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542 int i;
15543 int
15544 main (void)
15545 {
15546
15547 ;
15548 return 0;
15549 }
15550 _ACEOF
15551 if ac_fn_c_try_link "$LINENO"
15552 then :
15553 eval $cacheid=yes
15554 else $as_nop
15555 eval $cacheid=no
15556 fi
15557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15558 conftest$ac_exeext conftest.$ac_ext
15559 fi
15560
15561
15562 CFLAGS="$xorg_testset_save_CFLAGS"
15563
15564 eval supported=\$$cacheid
15565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15566 printf "%s\n" "$supported" >&6; }
15567 if test "$supported" = "yes" ; then
15568 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15569 found="yes"
15570 fi
15571 fi
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587 xorg_testset_save_CFLAGS="$CFLAGS"
15588
15589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15593 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15594 then :
15595 printf %s "(cached) " >&6
15596 else $as_nop
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599 int i;
15600 _ACEOF
15601 if ac_fn_c_try_compile "$LINENO"
15602 then :
15603 xorg_cv_cc_flag_unknown_warning_option=yes
15604 else $as_nop
15605 xorg_cv_cc_flag_unknown_warning_option=no
15606 fi
15607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15608 fi
15609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15612 CFLAGS="$xorg_testset_save_CFLAGS"
15613 fi
15614
15615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15618 fi
15619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15623 then :
15624 printf %s "(cached) " >&6
15625 else $as_nop
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15628 int i;
15629 _ACEOF
15630 if ac_fn_c_try_compile "$LINENO"
15631 then :
15632 xorg_cv_cc_flag_unused_command_line_argument=yes
15633 else $as_nop
15634 xorg_cv_cc_flag_unused_command_line_argument=no
15635 fi
15636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15637 fi
15638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15641 CFLAGS="$xorg_testset_save_CFLAGS"
15642 fi
15643
15644 found="no"
15645
15646 if test $found = "no" ; then
15647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15649 fi
15650
15651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15653 fi
15654
15655 CFLAGS="$CFLAGS -Werror=main"
15656
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15658 printf %s "checking if $CC supports -Werror=main... " >&6; }
15659 cacheid=xorg_cv_cc_flag__Werror_main
15660 if eval test \${$cacheid+y}
15661 then :
15662 printf %s "(cached) " >&6
15663 else $as_nop
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15666 int i;
15667 int
15668 main (void)
15669 {
15670
15671 ;
15672 return 0;
15673 }
15674 _ACEOF
15675 if ac_fn_c_try_link "$LINENO"
15676 then :
15677 eval $cacheid=yes
15678 else $as_nop
15679 eval $cacheid=no
15680 fi
15681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15682 conftest$ac_exeext conftest.$ac_ext
15683 fi
15684
15685
15686 CFLAGS="$xorg_testset_save_CFLAGS"
15687
15688 eval supported=\$$cacheid
15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15690 printf "%s\n" "$supported" >&6; }
15691 if test "$supported" = "yes" ; then
15692 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15693 found="yes"
15694 fi
15695 fi
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711 xorg_testset_save_CFLAGS="$CFLAGS"
15712
15713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15717 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15718 then :
15719 printf %s "(cached) " >&6
15720 else $as_nop
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723 int i;
15724 _ACEOF
15725 if ac_fn_c_try_compile "$LINENO"
15726 then :
15727 xorg_cv_cc_flag_unknown_warning_option=yes
15728 else $as_nop
15729 xorg_cv_cc_flag_unknown_warning_option=no
15730 fi
15731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15732 fi
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15734 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15736 CFLAGS="$xorg_testset_save_CFLAGS"
15737 fi
15738
15739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15742 fi
15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15745 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15746 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15747 then :
15748 printf %s "(cached) " >&6
15749 else $as_nop
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 int i;
15753 _ACEOF
15754 if ac_fn_c_try_compile "$LINENO"
15755 then :
15756 xorg_cv_cc_flag_unused_command_line_argument=yes
15757 else $as_nop
15758 xorg_cv_cc_flag_unused_command_line_argument=no
15759 fi
15760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15761 fi
15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15765 CFLAGS="$xorg_testset_save_CFLAGS"
15766 fi
15767
15768 found="no"
15769
15770 if test $found = "no" ; then
15771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15773 fi
15774
15775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15777 fi
15778
15779 CFLAGS="$CFLAGS -Werror=missing-braces"
15780
15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15782 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15783 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15784 if eval test \${$cacheid+y}
15785 then :
15786 printf %s "(cached) " >&6
15787 else $as_nop
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 int i;
15791 int
15792 main (void)
15793 {
15794
15795 ;
15796 return 0;
15797 }
15798 _ACEOF
15799 if ac_fn_c_try_link "$LINENO"
15800 then :
15801 eval $cacheid=yes
15802 else $as_nop
15803 eval $cacheid=no
15804 fi
15805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15806 conftest$ac_exeext conftest.$ac_ext
15807 fi
15808
15809
15810 CFLAGS="$xorg_testset_save_CFLAGS"
15811
15812 eval supported=\$$cacheid
15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15814 printf "%s\n" "$supported" >&6; }
15815 if test "$supported" = "yes" ; then
15816 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15817 found="yes"
15818 fi
15819 fi
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835 xorg_testset_save_CFLAGS="$CFLAGS"
15836
15837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15841 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15842 then :
15843 printf %s "(cached) " >&6
15844 else $as_nop
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15847 int i;
15848 _ACEOF
15849 if ac_fn_c_try_compile "$LINENO"
15850 then :
15851 xorg_cv_cc_flag_unknown_warning_option=yes
15852 else $as_nop
15853 xorg_cv_cc_flag_unknown_warning_option=no
15854 fi
15855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15856 fi
15857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15860 CFLAGS="$xorg_testset_save_CFLAGS"
15861 fi
15862
15863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15866 fi
15867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15871 then :
15872 printf %s "(cached) " >&6
15873 else $as_nop
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15876 int i;
15877 _ACEOF
15878 if ac_fn_c_try_compile "$LINENO"
15879 then :
15880 xorg_cv_cc_flag_unused_command_line_argument=yes
15881 else $as_nop
15882 xorg_cv_cc_flag_unused_command_line_argument=no
15883 fi
15884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15885 fi
15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15889 CFLAGS="$xorg_testset_save_CFLAGS"
15890 fi
15891
15892 found="no"
15893
15894 if test $found = "no" ; then
15895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15897 fi
15898
15899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15901 fi
15902
15903 CFLAGS="$CFLAGS -Werror=sequence-point"
15904
15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15906 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15907 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15908 if eval test \${$cacheid+y}
15909 then :
15910 printf %s "(cached) " >&6
15911 else $as_nop
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 int i;
15915 int
15916 main (void)
15917 {
15918
15919 ;
15920 return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_c_try_link "$LINENO"
15924 then :
15925 eval $cacheid=yes
15926 else $as_nop
15927 eval $cacheid=no
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15930 conftest$ac_exeext conftest.$ac_ext
15931 fi
15932
15933
15934 CFLAGS="$xorg_testset_save_CFLAGS"
15935
15936 eval supported=\$$cacheid
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15938 printf "%s\n" "$supported" >&6; }
15939 if test "$supported" = "yes" ; then
15940 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15941 found="yes"
15942 fi
15943 fi
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959 xorg_testset_save_CFLAGS="$CFLAGS"
15960
15961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15965 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15966 then :
15967 printf %s "(cached) " >&6
15968 else $as_nop
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 int i;
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"
15974 then :
15975 xorg_cv_cc_flag_unknown_warning_option=yes
15976 else $as_nop
15977 xorg_cv_cc_flag_unknown_warning_option=no
15978 fi
15979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15980 fi
15981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15984 CFLAGS="$xorg_testset_save_CFLAGS"
15985 fi
15986
15987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990 fi
15991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15995 then :
15996 printf %s "(cached) " >&6
15997 else $as_nop
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 int i;
16001 _ACEOF
16002 if ac_fn_c_try_compile "$LINENO"
16003 then :
16004 xorg_cv_cc_flag_unused_command_line_argument=yes
16005 else $as_nop
16006 xorg_cv_cc_flag_unused_command_line_argument=no
16007 fi
16008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16009 fi
16010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16013 CFLAGS="$xorg_testset_save_CFLAGS"
16014 fi
16015
16016 found="no"
16017
16018 if test $found = "no" ; then
16019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16021 fi
16022
16023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16025 fi
16026
16027 CFLAGS="$CFLAGS -Werror=return-type"
16028
16029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16030 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16031 cacheid=xorg_cv_cc_flag__Werror_return_type
16032 if eval test \${$cacheid+y}
16033 then :
16034 printf %s "(cached) " >&6
16035 else $as_nop
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038 int i;
16039 int
16040 main (void)
16041 {
16042
16043 ;
16044 return 0;
16045 }
16046 _ACEOF
16047 if ac_fn_c_try_link "$LINENO"
16048 then :
16049 eval $cacheid=yes
16050 else $as_nop
16051 eval $cacheid=no
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16054 conftest$ac_exeext conftest.$ac_ext
16055 fi
16056
16057
16058 CFLAGS="$xorg_testset_save_CFLAGS"
16059
16060 eval supported=\$$cacheid
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16062 printf "%s\n" "$supported" >&6; }
16063 if test "$supported" = "yes" ; then
16064 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16065 found="yes"
16066 fi
16067 fi
16068
16069 if test $found = "no" ; then
16070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16072 fi
16073
16074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16076 fi
16077
16078 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16079
16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16081 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16082 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16083 if eval test \${$cacheid+y}
16084 then :
16085 printf %s "(cached) " >&6
16086 else $as_nop
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 int i;
16090 int
16091 main (void)
16092 {
16093
16094 ;
16095 return 0;
16096 }
16097 _ACEOF
16098 if ac_fn_c_try_link "$LINENO"
16099 then :
16100 eval $cacheid=yes
16101 else $as_nop
16102 eval $cacheid=no
16103 fi
16104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16105 conftest$ac_exeext conftest.$ac_ext
16106 fi
16107
16108
16109 CFLAGS="$xorg_testset_save_CFLAGS"
16110
16111 eval supported=\$$cacheid
16112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16113 printf "%s\n" "$supported" >&6; }
16114 if test "$supported" = "yes" ; then
16115 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16116 found="yes"
16117 fi
16118 fi
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134 xorg_testset_save_CFLAGS="$CFLAGS"
16135
16136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16139 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16140 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16141 then :
16142 printf %s "(cached) " >&6
16143 else $as_nop
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16146 int i;
16147 _ACEOF
16148 if ac_fn_c_try_compile "$LINENO"
16149 then :
16150 xorg_cv_cc_flag_unknown_warning_option=yes
16151 else $as_nop
16152 xorg_cv_cc_flag_unknown_warning_option=no
16153 fi
16154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16155 fi
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16159 CFLAGS="$xorg_testset_save_CFLAGS"
16160 fi
16161
16162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165 fi
16166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16170 then :
16171 printf %s "(cached) " >&6
16172 else $as_nop
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175 int i;
16176 _ACEOF
16177 if ac_fn_c_try_compile "$LINENO"
16178 then :
16179 xorg_cv_cc_flag_unused_command_line_argument=yes
16180 else $as_nop
16181 xorg_cv_cc_flag_unused_command_line_argument=no
16182 fi
16183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16184 fi
16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16188 CFLAGS="$xorg_testset_save_CFLAGS"
16189 fi
16190
16191 found="no"
16192
16193 if test $found = "no" ; then
16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196 fi
16197
16198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16200 fi
16201
16202 CFLAGS="$CFLAGS -Werror=trigraphs"
16203
16204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16205 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16206 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16207 if eval test \${$cacheid+y}
16208 then :
16209 printf %s "(cached) " >&6
16210 else $as_nop
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16213 int i;
16214 int
16215 main (void)
16216 {
16217
16218 ;
16219 return 0;
16220 }
16221 _ACEOF
16222 if ac_fn_c_try_link "$LINENO"
16223 then :
16224 eval $cacheid=yes
16225 else $as_nop
16226 eval $cacheid=no
16227 fi
16228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16229 conftest$ac_exeext conftest.$ac_ext
16230 fi
16231
16232
16233 CFLAGS="$xorg_testset_save_CFLAGS"
16234
16235 eval supported=\$$cacheid
16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16237 printf "%s\n" "$supported" >&6; }
16238 if test "$supported" = "yes" ; then
16239 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16240 found="yes"
16241 fi
16242 fi
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258 xorg_testset_save_CFLAGS="$CFLAGS"
16259
16260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16263 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16264 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16265 then :
16266 printf %s "(cached) " >&6
16267 else $as_nop
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270 int i;
16271 _ACEOF
16272 if ac_fn_c_try_compile "$LINENO"
16273 then :
16274 xorg_cv_cc_flag_unknown_warning_option=yes
16275 else $as_nop
16276 xorg_cv_cc_flag_unknown_warning_option=no
16277 fi
16278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16279 fi
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16281 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16283 CFLAGS="$xorg_testset_save_CFLAGS"
16284 fi
16285
16286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16289 fi
16290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16292 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16293 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16294 then :
16295 printf %s "(cached) " >&6
16296 else $as_nop
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299 int i;
16300 _ACEOF
16301 if ac_fn_c_try_compile "$LINENO"
16302 then :
16303 xorg_cv_cc_flag_unused_command_line_argument=yes
16304 else $as_nop
16305 xorg_cv_cc_flag_unused_command_line_argument=no
16306 fi
16307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16308 fi
16309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16312 CFLAGS="$xorg_testset_save_CFLAGS"
16313 fi
16314
16315 found="no"
16316
16317 if test $found = "no" ; then
16318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320 fi
16321
16322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16324 fi
16325
16326 CFLAGS="$CFLAGS -Werror=array-bounds"
16327
16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16329 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16330 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16331 if eval test \${$cacheid+y}
16332 then :
16333 printf %s "(cached) " >&6
16334 else $as_nop
16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336 /* end confdefs.h. */
16337 int i;
16338 int
16339 main (void)
16340 {
16341
16342 ;
16343 return 0;
16344 }
16345 _ACEOF
16346 if ac_fn_c_try_link "$LINENO"
16347 then :
16348 eval $cacheid=yes
16349 else $as_nop
16350 eval $cacheid=no
16351 fi
16352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16353 conftest$ac_exeext conftest.$ac_ext
16354 fi
16355
16356
16357 CFLAGS="$xorg_testset_save_CFLAGS"
16358
16359 eval supported=\$$cacheid
16360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16361 printf "%s\n" "$supported" >&6; }
16362 if test "$supported" = "yes" ; then
16363 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16364 found="yes"
16365 fi
16366 fi
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382 xorg_testset_save_CFLAGS="$CFLAGS"
16383
16384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16387 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16388 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16389 then :
16390 printf %s "(cached) " >&6
16391 else $as_nop
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16394 int i;
16395 _ACEOF
16396 if ac_fn_c_try_compile "$LINENO"
16397 then :
16398 xorg_cv_cc_flag_unknown_warning_option=yes
16399 else $as_nop
16400 xorg_cv_cc_flag_unknown_warning_option=no
16401 fi
16402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16403 fi
16404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16405 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16407 CFLAGS="$xorg_testset_save_CFLAGS"
16408 fi
16409
16410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16413 fi
16414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16416 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16417 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16418 then :
16419 printf %s "(cached) " >&6
16420 else $as_nop
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 int i;
16424 _ACEOF
16425 if ac_fn_c_try_compile "$LINENO"
16426 then :
16427 xorg_cv_cc_flag_unused_command_line_argument=yes
16428 else $as_nop
16429 xorg_cv_cc_flag_unused_command_line_argument=no
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16432 fi
16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16434 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16436 CFLAGS="$xorg_testset_save_CFLAGS"
16437 fi
16438
16439 found="no"
16440
16441 if test $found = "no" ; then
16442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16444 fi
16445
16446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16448 fi
16449
16450 CFLAGS="$CFLAGS -Werror=write-strings"
16451
16452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16453 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16454 cacheid=xorg_cv_cc_flag__Werror_write_strings
16455 if eval test \${$cacheid+y}
16456 then :
16457 printf %s "(cached) " >&6
16458 else $as_nop
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 int i;
16462 int
16463 main (void)
16464 {
16465
16466 ;
16467 return 0;
16468 }
16469 _ACEOF
16470 if ac_fn_c_try_link "$LINENO"
16471 then :
16472 eval $cacheid=yes
16473 else $as_nop
16474 eval $cacheid=no
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16477 conftest$ac_exeext conftest.$ac_ext
16478 fi
16479
16480
16481 CFLAGS="$xorg_testset_save_CFLAGS"
16482
16483 eval supported=\$$cacheid
16484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16485 printf "%s\n" "$supported" >&6; }
16486 if test "$supported" = "yes" ; then
16487 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16488 found="yes"
16489 fi
16490 fi
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506 xorg_testset_save_CFLAGS="$CFLAGS"
16507
16508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16512 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16513 then :
16514 printf %s "(cached) " >&6
16515 else $as_nop
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 int i;
16519 _ACEOF
16520 if ac_fn_c_try_compile "$LINENO"
16521 then :
16522 xorg_cv_cc_flag_unknown_warning_option=yes
16523 else $as_nop
16524 xorg_cv_cc_flag_unknown_warning_option=no
16525 fi
16526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16527 fi
16528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16529 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16531 CFLAGS="$xorg_testset_save_CFLAGS"
16532 fi
16533
16534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16537 fi
16538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16540 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16541 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16542 then :
16543 printf %s "(cached) " >&6
16544 else $as_nop
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 int i;
16548 _ACEOF
16549 if ac_fn_c_try_compile "$LINENO"
16550 then :
16551 xorg_cv_cc_flag_unused_command_line_argument=yes
16552 else $as_nop
16553 xorg_cv_cc_flag_unused_command_line_argument=no
16554 fi
16555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16556 fi
16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16558 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16560 CFLAGS="$xorg_testset_save_CFLAGS"
16561 fi
16562
16563 found="no"
16564
16565 if test $found = "no" ; then
16566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16568 fi
16569
16570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16572 fi
16573
16574 CFLAGS="$CFLAGS -Werror=address"
16575
16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16577 printf %s "checking if $CC supports -Werror=address... " >&6; }
16578 cacheid=xorg_cv_cc_flag__Werror_address
16579 if eval test \${$cacheid+y}
16580 then :
16581 printf %s "(cached) " >&6
16582 else $as_nop
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16585 int i;
16586 int
16587 main (void)
16588 {
16589
16590 ;
16591 return 0;
16592 }
16593 _ACEOF
16594 if ac_fn_c_try_link "$LINENO"
16595 then :
16596 eval $cacheid=yes
16597 else $as_nop
16598 eval $cacheid=no
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16601 conftest$ac_exeext conftest.$ac_ext
16602 fi
16603
16604
16605 CFLAGS="$xorg_testset_save_CFLAGS"
16606
16607 eval supported=\$$cacheid
16608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16609 printf "%s\n" "$supported" >&6; }
16610 if test "$supported" = "yes" ; then
16611 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16612 found="yes"
16613 fi
16614 fi
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630 xorg_testset_save_CFLAGS="$CFLAGS"
16631
16632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16635 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16636 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16637 then :
16638 printf %s "(cached) " >&6
16639 else $as_nop
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16642 int i;
16643 _ACEOF
16644 if ac_fn_c_try_compile "$LINENO"
16645 then :
16646 xorg_cv_cc_flag_unknown_warning_option=yes
16647 else $as_nop
16648 xorg_cv_cc_flag_unknown_warning_option=no
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16651 fi
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16653 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16655 CFLAGS="$xorg_testset_save_CFLAGS"
16656 fi
16657
16658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16661 fi
16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16666 then :
16667 printf %s "(cached) " >&6
16668 else $as_nop
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16671 int i;
16672 _ACEOF
16673 if ac_fn_c_try_compile "$LINENO"
16674 then :
16675 xorg_cv_cc_flag_unused_command_line_argument=yes
16676 else $as_nop
16677 xorg_cv_cc_flag_unused_command_line_argument=no
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16680 fi
16681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16682 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16684 CFLAGS="$xorg_testset_save_CFLAGS"
16685 fi
16686
16687 found="no"
16688
16689 if test $found = "no" ; then
16690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16692 fi
16693
16694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16696 fi
16697
16698 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16699
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16701 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16702 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16703 if eval test \${$cacheid+y}
16704 then :
16705 printf %s "(cached) " >&6
16706 else $as_nop
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16709 int i;
16710 int
16711 main (void)
16712 {
16713
16714 ;
16715 return 0;
16716 }
16717 _ACEOF
16718 if ac_fn_c_try_link "$LINENO"
16719 then :
16720 eval $cacheid=yes
16721 else $as_nop
16722 eval $cacheid=no
16723 fi
16724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16725 conftest$ac_exeext conftest.$ac_ext
16726 fi
16727
16728
16729 CFLAGS="$xorg_testset_save_CFLAGS"
16730
16731 eval supported=\$$cacheid
16732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16733 printf "%s\n" "$supported" >&6; }
16734 if test "$supported" = "yes" ; then
16735 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16736 found="yes"
16737 fi
16738 fi
16739
16740 if test $found = "no" ; then
16741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16743 fi
16744
16745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16747 fi
16748
16749 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16750
16751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16752 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16753 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16754 if eval test \${$cacheid+y}
16755 then :
16756 printf %s "(cached) " >&6
16757 else $as_nop
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16760 int i;
16761 int
16762 main (void)
16763 {
16764
16765 ;
16766 return 0;
16767 }
16768 _ACEOF
16769 if ac_fn_c_try_link "$LINENO"
16770 then :
16771 eval $cacheid=yes
16772 else $as_nop
16773 eval $cacheid=no
16774 fi
16775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16776 conftest$ac_exeext conftest.$ac_ext
16777 fi
16778
16779
16780 CFLAGS="$xorg_testset_save_CFLAGS"
16781
16782 eval supported=\$$cacheid
16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16784 printf "%s\n" "$supported" >&6; }
16785 if test "$supported" = "yes" ; then
16786 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16787 found="yes"
16788 fi
16789 fi
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805 xorg_testset_save_CFLAGS="$CFLAGS"
16806
16807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16810 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16811 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16812 then :
16813 printf %s "(cached) " >&6
16814 else $as_nop
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h. */
16817 int i;
16818 _ACEOF
16819 if ac_fn_c_try_compile "$LINENO"
16820 then :
16821 xorg_cv_cc_flag_unknown_warning_option=yes
16822 else $as_nop
16823 xorg_cv_cc_flag_unknown_warning_option=no
16824 fi
16825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16826 fi
16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16828 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16830 CFLAGS="$xorg_testset_save_CFLAGS"
16831 fi
16832
16833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16836 fi
16837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16839 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16840 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16841 then :
16842 printf %s "(cached) " >&6
16843 else $as_nop
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846 int i;
16847 _ACEOF
16848 if ac_fn_c_try_compile "$LINENO"
16849 then :
16850 xorg_cv_cc_flag_unused_command_line_argument=yes
16851 else $as_nop
16852 xorg_cv_cc_flag_unused_command_line_argument=no
16853 fi
16854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16855 fi
16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16857 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16859 CFLAGS="$xorg_testset_save_CFLAGS"
16860 fi
16861
16862 found="no"
16863
16864 if test $found = "no" ; then
16865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16867 fi
16868
16869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16871 fi
16872
16873 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16874
16875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16876 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16877 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16878 if eval test \${$cacheid+y}
16879 then :
16880 printf %s "(cached) " >&6
16881 else $as_nop
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 int i;
16885 int
16886 main (void)
16887 {
16888
16889 ;
16890 return 0;
16891 }
16892 _ACEOF
16893 if ac_fn_c_try_link "$LINENO"
16894 then :
16895 eval $cacheid=yes
16896 else $as_nop
16897 eval $cacheid=no
16898 fi
16899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16900 conftest$ac_exeext conftest.$ac_ext
16901 fi
16902
16903
16904 CFLAGS="$xorg_testset_save_CFLAGS"
16905
16906 eval supported=\$$cacheid
16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16908 printf "%s\n" "$supported" >&6; }
16909 if test "$supported" = "yes" ; then
16910 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16911 found="yes"
16912 fi
16913 fi
16914
16915 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16916 else
16917 { 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
16918 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;}
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932 xorg_testset_save_CFLAGS="$CFLAGS"
16933
16934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16937 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16938 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16939 then :
16940 printf %s "(cached) " >&6
16941 else $as_nop
16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16944 int i;
16945 _ACEOF
16946 if ac_fn_c_try_compile "$LINENO"
16947 then :
16948 xorg_cv_cc_flag_unknown_warning_option=yes
16949 else $as_nop
16950 xorg_cv_cc_flag_unknown_warning_option=no
16951 fi
16952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16953 fi
16954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16955 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16957 CFLAGS="$xorg_testset_save_CFLAGS"
16958 fi
16959
16960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963 fi
16964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16966 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16967 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16968 then :
16969 printf %s "(cached) " >&6
16970 else $as_nop
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973 int i;
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"
16976 then :
16977 xorg_cv_cc_flag_unused_command_line_argument=yes
16978 else $as_nop
16979 xorg_cv_cc_flag_unused_command_line_argument=no
16980 fi
16981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16982 fi
16983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16984 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16986 CFLAGS="$xorg_testset_save_CFLAGS"
16987 fi
16988
16989 found="no"
16990
16991 if test $found = "no" ; then
16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16994 fi
16995
16996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16998 fi
16999
17000 CFLAGS="$CFLAGS -Wimplicit"
17001
17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17003 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17004 cacheid=xorg_cv_cc_flag__Wimplicit
17005 if eval test \${$cacheid+y}
17006 then :
17007 printf %s "(cached) " >&6
17008 else $as_nop
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 int i;
17012 int
17013 main (void)
17014 {
17015
17016 ;
17017 return 0;
17018 }
17019 _ACEOF
17020 if ac_fn_c_try_link "$LINENO"
17021 then :
17022 eval $cacheid=yes
17023 else $as_nop
17024 eval $cacheid=no
17025 fi
17026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17027 conftest$ac_exeext conftest.$ac_ext
17028 fi
17029
17030
17031 CFLAGS="$xorg_testset_save_CFLAGS"
17032
17033 eval supported=\$$cacheid
17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17035 printf "%s\n" "$supported" >&6; }
17036 if test "$supported" = "yes" ; then
17037 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17038 found="yes"
17039 fi
17040 fi
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056 xorg_testset_save_CFLAGS="$CFLAGS"
17057
17058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17061 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17062 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17063 then :
17064 printf %s "(cached) " >&6
17065 else $as_nop
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h. */
17068 int i;
17069 _ACEOF
17070 if ac_fn_c_try_compile "$LINENO"
17071 then :
17072 xorg_cv_cc_flag_unknown_warning_option=yes
17073 else $as_nop
17074 xorg_cv_cc_flag_unknown_warning_option=no
17075 fi
17076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17077 fi
17078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17079 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17081 CFLAGS="$xorg_testset_save_CFLAGS"
17082 fi
17083
17084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17087 fi
17088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17090 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17091 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17092 then :
17093 printf %s "(cached) " >&6
17094 else $as_nop
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17097 int i;
17098 _ACEOF
17099 if ac_fn_c_try_compile "$LINENO"
17100 then :
17101 xorg_cv_cc_flag_unused_command_line_argument=yes
17102 else $as_nop
17103 xorg_cv_cc_flag_unused_command_line_argument=no
17104 fi
17105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17106 fi
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17108 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17110 CFLAGS="$xorg_testset_save_CFLAGS"
17111 fi
17112
17113 found="no"
17114
17115 if test $found = "no" ; then
17116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17118 fi
17119
17120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17122 fi
17123
17124 CFLAGS="$CFLAGS -Wnonnull"
17125
17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17127 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17128 cacheid=xorg_cv_cc_flag__Wnonnull
17129 if eval test \${$cacheid+y}
17130 then :
17131 printf %s "(cached) " >&6
17132 else $as_nop
17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h. */
17135 int i;
17136 int
17137 main (void)
17138 {
17139
17140 ;
17141 return 0;
17142 }
17143 _ACEOF
17144 if ac_fn_c_try_link "$LINENO"
17145 then :
17146 eval $cacheid=yes
17147 else $as_nop
17148 eval $cacheid=no
17149 fi
17150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17151 conftest$ac_exeext conftest.$ac_ext
17152 fi
17153
17154
17155 CFLAGS="$xorg_testset_save_CFLAGS"
17156
17157 eval supported=\$$cacheid
17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17159 printf "%s\n" "$supported" >&6; }
17160 if test "$supported" = "yes" ; then
17161 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17162 found="yes"
17163 fi
17164 fi
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180 xorg_testset_save_CFLAGS="$CFLAGS"
17181
17182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17187 then :
17188 printf %s "(cached) " >&6
17189 else $as_nop
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192 int i;
17193 _ACEOF
17194 if ac_fn_c_try_compile "$LINENO"
17195 then :
17196 xorg_cv_cc_flag_unknown_warning_option=yes
17197 else $as_nop
17198 xorg_cv_cc_flag_unknown_warning_option=no
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17201 fi
17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17203 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17205 CFLAGS="$xorg_testset_save_CFLAGS"
17206 fi
17207
17208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17211 fi
17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17216 then :
17217 printf %s "(cached) " >&6
17218 else $as_nop
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17221 int i;
17222 _ACEOF
17223 if ac_fn_c_try_compile "$LINENO"
17224 then :
17225 xorg_cv_cc_flag_unused_command_line_argument=yes
17226 else $as_nop
17227 xorg_cv_cc_flag_unused_command_line_argument=no
17228 fi
17229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17230 fi
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17232 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17234 CFLAGS="$xorg_testset_save_CFLAGS"
17235 fi
17236
17237 found="no"
17238
17239 if test $found = "no" ; then
17240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17242 fi
17243
17244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17246 fi
17247
17248 CFLAGS="$CFLAGS -Winit-self"
17249
17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17251 printf %s "checking if $CC supports -Winit-self... " >&6; }
17252 cacheid=xorg_cv_cc_flag__Winit_self
17253 if eval test \${$cacheid+y}
17254 then :
17255 printf %s "(cached) " >&6
17256 else $as_nop
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h. */
17259 int i;
17260 int
17261 main (void)
17262 {
17263
17264 ;
17265 return 0;
17266 }
17267 _ACEOF
17268 if ac_fn_c_try_link "$LINENO"
17269 then :
17270 eval $cacheid=yes
17271 else $as_nop
17272 eval $cacheid=no
17273 fi
17274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17275 conftest$ac_exeext conftest.$ac_ext
17276 fi
17277
17278
17279 CFLAGS="$xorg_testset_save_CFLAGS"
17280
17281 eval supported=\$$cacheid
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17283 printf "%s\n" "$supported" >&6; }
17284 if test "$supported" = "yes" ; then
17285 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17286 found="yes"
17287 fi
17288 fi
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304 xorg_testset_save_CFLAGS="$CFLAGS"
17305
17306 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17309 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17310 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17311 then :
17312 printf %s "(cached) " >&6
17313 else $as_nop
17314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315 /* end confdefs.h. */
17316 int i;
17317 _ACEOF
17318 if ac_fn_c_try_compile "$LINENO"
17319 then :
17320 xorg_cv_cc_flag_unknown_warning_option=yes
17321 else $as_nop
17322 xorg_cv_cc_flag_unknown_warning_option=no
17323 fi
17324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17325 fi
17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17327 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17329 CFLAGS="$xorg_testset_save_CFLAGS"
17330 fi
17331
17332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17335 fi
17336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17340 then :
17341 printf %s "(cached) " >&6
17342 else $as_nop
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17345 int i;
17346 _ACEOF
17347 if ac_fn_c_try_compile "$LINENO"
17348 then :
17349 xorg_cv_cc_flag_unused_command_line_argument=yes
17350 else $as_nop
17351 xorg_cv_cc_flag_unused_command_line_argument=no
17352 fi
17353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17354 fi
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17356 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17358 CFLAGS="$xorg_testset_save_CFLAGS"
17359 fi
17360
17361 found="no"
17362
17363 if test $found = "no" ; then
17364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17366 fi
17367
17368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17370 fi
17371
17372 CFLAGS="$CFLAGS -Wmain"
17373
17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17375 printf %s "checking if $CC supports -Wmain... " >&6; }
17376 cacheid=xorg_cv_cc_flag__Wmain
17377 if eval test \${$cacheid+y}
17378 then :
17379 printf %s "(cached) " >&6
17380 else $as_nop
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383 int i;
17384 int
17385 main (void)
17386 {
17387
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_link "$LINENO"
17393 then :
17394 eval $cacheid=yes
17395 else $as_nop
17396 eval $cacheid=no
17397 fi
17398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17399 conftest$ac_exeext conftest.$ac_ext
17400 fi
17401
17402
17403 CFLAGS="$xorg_testset_save_CFLAGS"
17404
17405 eval supported=\$$cacheid
17406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17407 printf "%s\n" "$supported" >&6; }
17408 if test "$supported" = "yes" ; then
17409 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17410 found="yes"
17411 fi
17412 fi
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428 xorg_testset_save_CFLAGS="$CFLAGS"
17429
17430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17433 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17434 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17435 then :
17436 printf %s "(cached) " >&6
17437 else $as_nop
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17440 int i;
17441 _ACEOF
17442 if ac_fn_c_try_compile "$LINENO"
17443 then :
17444 xorg_cv_cc_flag_unknown_warning_option=yes
17445 else $as_nop
17446 xorg_cv_cc_flag_unknown_warning_option=no
17447 fi
17448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17449 fi
17450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17451 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17453 CFLAGS="$xorg_testset_save_CFLAGS"
17454 fi
17455
17456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17459 fi
17460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17462 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17463 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17464 then :
17465 printf %s "(cached) " >&6
17466 else $as_nop
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17469 int i;
17470 _ACEOF
17471 if ac_fn_c_try_compile "$LINENO"
17472 then :
17473 xorg_cv_cc_flag_unused_command_line_argument=yes
17474 else $as_nop
17475 xorg_cv_cc_flag_unused_command_line_argument=no
17476 fi
17477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17478 fi
17479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17480 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17482 CFLAGS="$xorg_testset_save_CFLAGS"
17483 fi
17484
17485 found="no"
17486
17487 if test $found = "no" ; then
17488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17490 fi
17491
17492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17494 fi
17495
17496 CFLAGS="$CFLAGS -Wmissing-braces"
17497
17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17499 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17500 cacheid=xorg_cv_cc_flag__Wmissing_braces
17501 if eval test \${$cacheid+y}
17502 then :
17503 printf %s "(cached) " >&6
17504 else $as_nop
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17507 int i;
17508 int
17509 main (void)
17510 {
17511
17512 ;
17513 return 0;
17514 }
17515 _ACEOF
17516 if ac_fn_c_try_link "$LINENO"
17517 then :
17518 eval $cacheid=yes
17519 else $as_nop
17520 eval $cacheid=no
17521 fi
17522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17523 conftest$ac_exeext conftest.$ac_ext
17524 fi
17525
17526
17527 CFLAGS="$xorg_testset_save_CFLAGS"
17528
17529 eval supported=\$$cacheid
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17531 printf "%s\n" "$supported" >&6; }
17532 if test "$supported" = "yes" ; then
17533 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17534 found="yes"
17535 fi
17536 fi
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552 xorg_testset_save_CFLAGS="$CFLAGS"
17553
17554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17558 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17559 then :
17560 printf %s "(cached) " >&6
17561 else $as_nop
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17564 int i;
17565 _ACEOF
17566 if ac_fn_c_try_compile "$LINENO"
17567 then :
17568 xorg_cv_cc_flag_unknown_warning_option=yes
17569 else $as_nop
17570 xorg_cv_cc_flag_unknown_warning_option=no
17571 fi
17572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17573 fi
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17575 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17577 CFLAGS="$xorg_testset_save_CFLAGS"
17578 fi
17579
17580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17583 fi
17584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17588 then :
17589 printf %s "(cached) " >&6
17590 else $as_nop
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17593 int i;
17594 _ACEOF
17595 if ac_fn_c_try_compile "$LINENO"
17596 then :
17597 xorg_cv_cc_flag_unused_command_line_argument=yes
17598 else $as_nop
17599 xorg_cv_cc_flag_unused_command_line_argument=no
17600 fi
17601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17602 fi
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17604 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17606 CFLAGS="$xorg_testset_save_CFLAGS"
17607 fi
17608
17609 found="no"
17610
17611 if test $found = "no" ; then
17612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17614 fi
17615
17616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17618 fi
17619
17620 CFLAGS="$CFLAGS -Wsequence-point"
17621
17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17623 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17624 cacheid=xorg_cv_cc_flag__Wsequence_point
17625 if eval test \${$cacheid+y}
17626 then :
17627 printf %s "(cached) " >&6
17628 else $as_nop
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h. */
17631 int i;
17632 int
17633 main (void)
17634 {
17635
17636 ;
17637 return 0;
17638 }
17639 _ACEOF
17640 if ac_fn_c_try_link "$LINENO"
17641 then :
17642 eval $cacheid=yes
17643 else $as_nop
17644 eval $cacheid=no
17645 fi
17646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17647 conftest$ac_exeext conftest.$ac_ext
17648 fi
17649
17650
17651 CFLAGS="$xorg_testset_save_CFLAGS"
17652
17653 eval supported=\$$cacheid
17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17655 printf "%s\n" "$supported" >&6; }
17656 if test "$supported" = "yes" ; then
17657 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17658 found="yes"
17659 fi
17660 fi
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676 xorg_testset_save_CFLAGS="$CFLAGS"
17677
17678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17682 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17683 then :
17684 printf %s "(cached) " >&6
17685 else $as_nop
17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h. */
17688 int i;
17689 _ACEOF
17690 if ac_fn_c_try_compile "$LINENO"
17691 then :
17692 xorg_cv_cc_flag_unknown_warning_option=yes
17693 else $as_nop
17694 xorg_cv_cc_flag_unknown_warning_option=no
17695 fi
17696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17697 fi
17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17699 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17701 CFLAGS="$xorg_testset_save_CFLAGS"
17702 fi
17703
17704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17707 fi
17708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17710 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17711 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17712 then :
17713 printf %s "(cached) " >&6
17714 else $as_nop
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 int i;
17718 _ACEOF
17719 if ac_fn_c_try_compile "$LINENO"
17720 then :
17721 xorg_cv_cc_flag_unused_command_line_argument=yes
17722 else $as_nop
17723 xorg_cv_cc_flag_unused_command_line_argument=no
17724 fi
17725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17726 fi
17727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17728 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17730 CFLAGS="$xorg_testset_save_CFLAGS"
17731 fi
17732
17733 found="no"
17734
17735 if test $found = "no" ; then
17736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17738 fi
17739
17740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17742 fi
17743
17744 CFLAGS="$CFLAGS -Wreturn-type"
17745
17746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17747 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17748 cacheid=xorg_cv_cc_flag__Wreturn_type
17749 if eval test \${$cacheid+y}
17750 then :
17751 printf %s "(cached) " >&6
17752 else $as_nop
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 int i;
17756 int
17757 main (void)
17758 {
17759
17760 ;
17761 return 0;
17762 }
17763 _ACEOF
17764 if ac_fn_c_try_link "$LINENO"
17765 then :
17766 eval $cacheid=yes
17767 else $as_nop
17768 eval $cacheid=no
17769 fi
17770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17771 conftest$ac_exeext conftest.$ac_ext
17772 fi
17773
17774
17775 CFLAGS="$xorg_testset_save_CFLAGS"
17776
17777 eval supported=\$$cacheid
17778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17779 printf "%s\n" "$supported" >&6; }
17780 if test "$supported" = "yes" ; then
17781 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17782 found="yes"
17783 fi
17784 fi
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800 xorg_testset_save_CFLAGS="$CFLAGS"
17801
17802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17806 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17807 then :
17808 printf %s "(cached) " >&6
17809 else $as_nop
17810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h. */
17812 int i;
17813 _ACEOF
17814 if ac_fn_c_try_compile "$LINENO"
17815 then :
17816 xorg_cv_cc_flag_unknown_warning_option=yes
17817 else $as_nop
17818 xorg_cv_cc_flag_unknown_warning_option=no
17819 fi
17820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17821 fi
17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17823 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17825 CFLAGS="$xorg_testset_save_CFLAGS"
17826 fi
17827
17828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17831 fi
17832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17834 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17835 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17836 then :
17837 printf %s "(cached) " >&6
17838 else $as_nop
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17841 int i;
17842 _ACEOF
17843 if ac_fn_c_try_compile "$LINENO"
17844 then :
17845 xorg_cv_cc_flag_unused_command_line_argument=yes
17846 else $as_nop
17847 xorg_cv_cc_flag_unused_command_line_argument=no
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17850 fi
17851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17852 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17854 CFLAGS="$xorg_testset_save_CFLAGS"
17855 fi
17856
17857 found="no"
17858
17859 if test $found = "no" ; then
17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862 fi
17863
17864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17866 fi
17867
17868 CFLAGS="$CFLAGS -Wtrigraphs"
17869
17870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17871 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17872 cacheid=xorg_cv_cc_flag__Wtrigraphs
17873 if eval test \${$cacheid+y}
17874 then :
17875 printf %s "(cached) " >&6
17876 else $as_nop
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17879 int i;
17880 int
17881 main (void)
17882 {
17883
17884 ;
17885 return 0;
17886 }
17887 _ACEOF
17888 if ac_fn_c_try_link "$LINENO"
17889 then :
17890 eval $cacheid=yes
17891 else $as_nop
17892 eval $cacheid=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17895 conftest$ac_exeext conftest.$ac_ext
17896 fi
17897
17898
17899 CFLAGS="$xorg_testset_save_CFLAGS"
17900
17901 eval supported=\$$cacheid
17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17903 printf "%s\n" "$supported" >&6; }
17904 if test "$supported" = "yes" ; then
17905 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17906 found="yes"
17907 fi
17908 fi
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924 xorg_testset_save_CFLAGS="$CFLAGS"
17925
17926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17929 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17930 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17931 then :
17932 printf %s "(cached) " >&6
17933 else $as_nop
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17936 int i;
17937 _ACEOF
17938 if ac_fn_c_try_compile "$LINENO"
17939 then :
17940 xorg_cv_cc_flag_unknown_warning_option=yes
17941 else $as_nop
17942 xorg_cv_cc_flag_unknown_warning_option=no
17943 fi
17944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17945 fi
17946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17947 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17949 CFLAGS="$xorg_testset_save_CFLAGS"
17950 fi
17951
17952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17955 fi
17956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17958 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17959 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17960 then :
17961 printf %s "(cached) " >&6
17962 else $as_nop
17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h. */
17965 int i;
17966 _ACEOF
17967 if ac_fn_c_try_compile "$LINENO"
17968 then :
17969 xorg_cv_cc_flag_unused_command_line_argument=yes
17970 else $as_nop
17971 xorg_cv_cc_flag_unused_command_line_argument=no
17972 fi
17973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17974 fi
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17976 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17978 CFLAGS="$xorg_testset_save_CFLAGS"
17979 fi
17980
17981 found="no"
17982
17983 if test $found = "no" ; then
17984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17986 fi
17987
17988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17990 fi
17991
17992 CFLAGS="$CFLAGS -Warray-bounds"
17993
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17995 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
17996 cacheid=xorg_cv_cc_flag__Warray_bounds
17997 if eval test \${$cacheid+y}
17998 then :
17999 printf %s "(cached) " >&6
18000 else $as_nop
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18003 int i;
18004 int
18005 main (void)
18006 {
18007
18008 ;
18009 return 0;
18010 }
18011 _ACEOF
18012 if ac_fn_c_try_link "$LINENO"
18013 then :
18014 eval $cacheid=yes
18015 else $as_nop
18016 eval $cacheid=no
18017 fi
18018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18019 conftest$ac_exeext conftest.$ac_ext
18020 fi
18021
18022
18023 CFLAGS="$xorg_testset_save_CFLAGS"
18024
18025 eval supported=\$$cacheid
18026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18027 printf "%s\n" "$supported" >&6; }
18028 if test "$supported" = "yes" ; then
18029 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18030 found="yes"
18031 fi
18032 fi
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048 xorg_testset_save_CFLAGS="$CFLAGS"
18049
18050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18054 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18055 then :
18056 printf %s "(cached) " >&6
18057 else $as_nop
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18060 int i;
18061 _ACEOF
18062 if ac_fn_c_try_compile "$LINENO"
18063 then :
18064 xorg_cv_cc_flag_unknown_warning_option=yes
18065 else $as_nop
18066 xorg_cv_cc_flag_unknown_warning_option=no
18067 fi
18068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18069 fi
18070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18071 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18073 CFLAGS="$xorg_testset_save_CFLAGS"
18074 fi
18075
18076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18079 fi
18080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18082 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18083 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18084 then :
18085 printf %s "(cached) " >&6
18086 else $as_nop
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089 int i;
18090 _ACEOF
18091 if ac_fn_c_try_compile "$LINENO"
18092 then :
18093 xorg_cv_cc_flag_unused_command_line_argument=yes
18094 else $as_nop
18095 xorg_cv_cc_flag_unused_command_line_argument=no
18096 fi
18097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18098 fi
18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18100 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18102 CFLAGS="$xorg_testset_save_CFLAGS"
18103 fi
18104
18105 found="no"
18106
18107 if test $found = "no" ; then
18108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18110 fi
18111
18112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18114 fi
18115
18116 CFLAGS="$CFLAGS -Wwrite-strings"
18117
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18119 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18120 cacheid=xorg_cv_cc_flag__Wwrite_strings
18121 if eval test \${$cacheid+y}
18122 then :
18123 printf %s "(cached) " >&6
18124 else $as_nop
18125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18126 /* end confdefs.h. */
18127 int i;
18128 int
18129 main (void)
18130 {
18131
18132 ;
18133 return 0;
18134 }
18135 _ACEOF
18136 if ac_fn_c_try_link "$LINENO"
18137 then :
18138 eval $cacheid=yes
18139 else $as_nop
18140 eval $cacheid=no
18141 fi
18142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18143 conftest$ac_exeext conftest.$ac_ext
18144 fi
18145
18146
18147 CFLAGS="$xorg_testset_save_CFLAGS"
18148
18149 eval supported=\$$cacheid
18150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18151 printf "%s\n" "$supported" >&6; }
18152 if test "$supported" = "yes" ; then
18153 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18154 found="yes"
18155 fi
18156 fi
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172 xorg_testset_save_CFLAGS="$CFLAGS"
18173
18174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18178 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18179 then :
18180 printf %s "(cached) " >&6
18181 else $as_nop
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18184 int i;
18185 _ACEOF
18186 if ac_fn_c_try_compile "$LINENO"
18187 then :
18188 xorg_cv_cc_flag_unknown_warning_option=yes
18189 else $as_nop
18190 xorg_cv_cc_flag_unknown_warning_option=no
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18193 fi
18194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18197 CFLAGS="$xorg_testset_save_CFLAGS"
18198 fi
18199
18200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18203 fi
18204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18208 then :
18209 printf %s "(cached) " >&6
18210 else $as_nop
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18213 int i;
18214 _ACEOF
18215 if ac_fn_c_try_compile "$LINENO"
18216 then :
18217 xorg_cv_cc_flag_unused_command_line_argument=yes
18218 else $as_nop
18219 xorg_cv_cc_flag_unused_command_line_argument=no
18220 fi
18221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18222 fi
18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18226 CFLAGS="$xorg_testset_save_CFLAGS"
18227 fi
18228
18229 found="no"
18230
18231 if test $found = "no" ; then
18232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18234 fi
18235
18236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18238 fi
18239
18240 CFLAGS="$CFLAGS -Waddress"
18241
18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18243 printf %s "checking if $CC supports -Waddress... " >&6; }
18244 cacheid=xorg_cv_cc_flag__Waddress
18245 if eval test \${$cacheid+y}
18246 then :
18247 printf %s "(cached) " >&6
18248 else $as_nop
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 int i;
18252 int
18253 main (void)
18254 {
18255
18256 ;
18257 return 0;
18258 }
18259 _ACEOF
18260 if ac_fn_c_try_link "$LINENO"
18261 then :
18262 eval $cacheid=yes
18263 else $as_nop
18264 eval $cacheid=no
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18267 conftest$ac_exeext conftest.$ac_ext
18268 fi
18269
18270
18271 CFLAGS="$xorg_testset_save_CFLAGS"
18272
18273 eval supported=\$$cacheid
18274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18275 printf "%s\n" "$supported" >&6; }
18276 if test "$supported" = "yes" ; then
18277 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18278 found="yes"
18279 fi
18280 fi
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296 xorg_testset_save_CFLAGS="$CFLAGS"
18297
18298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18302 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18303 then :
18304 printf %s "(cached) " >&6
18305 else $as_nop
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308 int i;
18309 _ACEOF
18310 if ac_fn_c_try_compile "$LINENO"
18311 then :
18312 xorg_cv_cc_flag_unknown_warning_option=yes
18313 else $as_nop
18314 xorg_cv_cc_flag_unknown_warning_option=no
18315 fi
18316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18317 fi
18318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18321 CFLAGS="$xorg_testset_save_CFLAGS"
18322 fi
18323
18324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18327 fi
18328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18331 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18332 then :
18333 printf %s "(cached) " >&6
18334 else $as_nop
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18337 int i;
18338 _ACEOF
18339 if ac_fn_c_try_compile "$LINENO"
18340 then :
18341 xorg_cv_cc_flag_unused_command_line_argument=yes
18342 else $as_nop
18343 xorg_cv_cc_flag_unused_command_line_argument=no
18344 fi
18345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18346 fi
18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18350 CFLAGS="$xorg_testset_save_CFLAGS"
18351 fi
18352
18353 found="no"
18354
18355 if test $found = "no" ; then
18356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18358 fi
18359
18360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18362 fi
18363
18364 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18365
18366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18367 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18368 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18369 if eval test \${$cacheid+y}
18370 then :
18371 printf %s "(cached) " >&6
18372 else $as_nop
18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374 /* end confdefs.h. */
18375 int i;
18376 int
18377 main (void)
18378 {
18379
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_link "$LINENO"
18385 then :
18386 eval $cacheid=yes
18387 else $as_nop
18388 eval $cacheid=no
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18391 conftest$ac_exeext conftest.$ac_ext
18392 fi
18393
18394
18395 CFLAGS="$xorg_testset_save_CFLAGS"
18396
18397 eval supported=\$$cacheid
18398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18399 printf "%s\n" "$supported" >&6; }
18400 if test "$supported" = "yes" ; then
18401 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18402 found="yes"
18403 fi
18404 fi
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420 xorg_testset_save_CFLAGS="$CFLAGS"
18421
18422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18426 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18427 then :
18428 printf %s "(cached) " >&6
18429 else $as_nop
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432 int i;
18433 _ACEOF
18434 if ac_fn_c_try_compile "$LINENO"
18435 then :
18436 xorg_cv_cc_flag_unknown_warning_option=yes
18437 else $as_nop
18438 xorg_cv_cc_flag_unknown_warning_option=no
18439 fi
18440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18441 fi
18442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18445 CFLAGS="$xorg_testset_save_CFLAGS"
18446 fi
18447
18448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18451 fi
18452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18456 then :
18457 printf %s "(cached) " >&6
18458 else $as_nop
18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460 /* end confdefs.h. */
18461 int i;
18462 _ACEOF
18463 if ac_fn_c_try_compile "$LINENO"
18464 then :
18465 xorg_cv_cc_flag_unused_command_line_argument=yes
18466 else $as_nop
18467 xorg_cv_cc_flag_unused_command_line_argument=no
18468 fi
18469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18470 fi
18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18474 CFLAGS="$xorg_testset_save_CFLAGS"
18475 fi
18476
18477 found="no"
18478
18479 if test $found = "no" ; then
18480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18482 fi
18483
18484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18486 fi
18487
18488 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18489
18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18491 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18492 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18493 if eval test \${$cacheid+y}
18494 then :
18495 printf %s "(cached) " >&6
18496 else $as_nop
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18499 int i;
18500 int
18501 main (void)
18502 {
18503
18504 ;
18505 return 0;
18506 }
18507 _ACEOF
18508 if ac_fn_c_try_link "$LINENO"
18509 then :
18510 eval $cacheid=yes
18511 else $as_nop
18512 eval $cacheid=no
18513 fi
18514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18515 conftest$ac_exeext conftest.$ac_ext
18516 fi
18517
18518
18519 CFLAGS="$xorg_testset_save_CFLAGS"
18520
18521 eval supported=\$$cacheid
18522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18523 printf "%s\n" "$supported" >&6; }
18524 if test "$supported" = "yes" ; then
18525 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18526 found="yes"
18527 fi
18528 fi
18529
18530
18531 fi
18532
18533
18534
18535
18536
18537
18538
18539 CWARNFLAGS="$BASE_CFLAGS"
18540 if test "x$GCC" = xyes ; then
18541 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18542 fi
18543
18544
18545
18546
18547
18548
18549
18550
18551 # Check whether --enable-strict-compilation was given.
18552 if test ${enable_strict_compilation+y}
18553 then :
18554 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18555 else $as_nop
18556 STRICT_COMPILE=no
18557 fi
18558
18559
18560
18561
18562
18563
18564 STRICT_CFLAGS=""
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578 xorg_testset_save_CFLAGS="$CFLAGS"
18579
18580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18584 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18585 then :
18586 printf %s "(cached) " >&6
18587 else $as_nop
18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18589 /* end confdefs.h. */
18590 int i;
18591 _ACEOF
18592 if ac_fn_c_try_compile "$LINENO"
18593 then :
18594 xorg_cv_cc_flag_unknown_warning_option=yes
18595 else $as_nop
18596 xorg_cv_cc_flag_unknown_warning_option=no
18597 fi
18598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18599 fi
18600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18601 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18603 CFLAGS="$xorg_testset_save_CFLAGS"
18604 fi
18605
18606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18609 fi
18610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18614 then :
18615 printf %s "(cached) " >&6
18616 else $as_nop
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18619 int i;
18620 _ACEOF
18621 if ac_fn_c_try_compile "$LINENO"
18622 then :
18623 xorg_cv_cc_flag_unused_command_line_argument=yes
18624 else $as_nop
18625 xorg_cv_cc_flag_unused_command_line_argument=no
18626 fi
18627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18628 fi
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18630 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18632 CFLAGS="$xorg_testset_save_CFLAGS"
18633 fi
18634
18635 found="no"
18636
18637 if test $found = "no" ; then
18638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18640 fi
18641
18642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18644 fi
18645
18646 CFLAGS="$CFLAGS -pedantic"
18647
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18649 printf %s "checking if $CC supports -pedantic... " >&6; }
18650 cacheid=xorg_cv_cc_flag__pedantic
18651 if eval test \${$cacheid+y}
18652 then :
18653 printf %s "(cached) " >&6
18654 else $as_nop
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18657 int i;
18658 int
18659 main (void)
18660 {
18661
18662 ;
18663 return 0;
18664 }
18665 _ACEOF
18666 if ac_fn_c_try_link "$LINENO"
18667 then :
18668 eval $cacheid=yes
18669 else $as_nop
18670 eval $cacheid=no
18671 fi
18672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18673 conftest$ac_exeext conftest.$ac_ext
18674 fi
18675
18676
18677 CFLAGS="$xorg_testset_save_CFLAGS"
18678
18679 eval supported=\$$cacheid
18680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18681 printf "%s\n" "$supported" >&6; }
18682 if test "$supported" = "yes" ; then
18683 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18684 found="yes"
18685 fi
18686 fi
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702 xorg_testset_save_CFLAGS="$CFLAGS"
18703
18704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18707 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18708 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18709 then :
18710 printf %s "(cached) " >&6
18711 else $as_nop
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714 int i;
18715 _ACEOF
18716 if ac_fn_c_try_compile "$LINENO"
18717 then :
18718 xorg_cv_cc_flag_unknown_warning_option=yes
18719 else $as_nop
18720 xorg_cv_cc_flag_unknown_warning_option=no
18721 fi
18722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18723 fi
18724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18727 CFLAGS="$xorg_testset_save_CFLAGS"
18728 fi
18729
18730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18733 fi
18734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18738 then :
18739 printf %s "(cached) " >&6
18740 else $as_nop
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18743 int i;
18744 _ACEOF
18745 if ac_fn_c_try_compile "$LINENO"
18746 then :
18747 xorg_cv_cc_flag_unused_command_line_argument=yes
18748 else $as_nop
18749 xorg_cv_cc_flag_unused_command_line_argument=no
18750 fi
18751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18752 fi
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18754 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18756 CFLAGS="$xorg_testset_save_CFLAGS"
18757 fi
18758
18759 found="no"
18760
18761 if test $found = "no" ; then
18762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18764 fi
18765
18766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18768 fi
18769
18770 CFLAGS="$CFLAGS -Werror"
18771
18772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18773 printf %s "checking if $CC supports -Werror... " >&6; }
18774 cacheid=xorg_cv_cc_flag__Werror
18775 if eval test \${$cacheid+y}
18776 then :
18777 printf %s "(cached) " >&6
18778 else $as_nop
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18781 int i;
18782 int
18783 main (void)
18784 {
18785
18786 ;
18787 return 0;
18788 }
18789 _ACEOF
18790 if ac_fn_c_try_link "$LINENO"
18791 then :
18792 eval $cacheid=yes
18793 else $as_nop
18794 eval $cacheid=no
18795 fi
18796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18797 conftest$ac_exeext conftest.$ac_ext
18798 fi
18799
18800
18801 CFLAGS="$xorg_testset_save_CFLAGS"
18802
18803 eval supported=\$$cacheid
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18805 printf "%s\n" "$supported" >&6; }
18806 if test "$supported" = "yes" ; then
18807 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18808 found="yes"
18809 fi
18810 fi
18811
18812 if test $found = "no" ; then
18813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18815 fi
18816
18817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18819 fi
18820
18821 CFLAGS="$CFLAGS -errwarn"
18822
18823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18824 printf %s "checking if $CC supports -errwarn... " >&6; }
18825 cacheid=xorg_cv_cc_flag__errwarn
18826 if eval test \${$cacheid+y}
18827 then :
18828 printf %s "(cached) " >&6
18829 else $as_nop
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 int i;
18833 int
18834 main (void)
18835 {
18836
18837 ;
18838 return 0;
18839 }
18840 _ACEOF
18841 if ac_fn_c_try_link "$LINENO"
18842 then :
18843 eval $cacheid=yes
18844 else $as_nop
18845 eval $cacheid=no
18846 fi
18847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18848 conftest$ac_exeext conftest.$ac_ext
18849 fi
18850
18851
18852 CFLAGS="$xorg_testset_save_CFLAGS"
18853
18854 eval supported=\$$cacheid
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18856 printf "%s\n" "$supported" >&6; }
18857 if test "$supported" = "yes" ; then
18858 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18859 found="yes"
18860 fi
18861 fi
18862
18863
18864
18865 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18866 # activate it with -Werror, so we add it here explicitly.
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880 xorg_testset_save_CFLAGS="$CFLAGS"
18881
18882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18885 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18886 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18887 then :
18888 printf %s "(cached) " >&6
18889 else $as_nop
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 int i;
18893 _ACEOF
18894 if ac_fn_c_try_compile "$LINENO"
18895 then :
18896 xorg_cv_cc_flag_unknown_warning_option=yes
18897 else $as_nop
18898 xorg_cv_cc_flag_unknown_warning_option=no
18899 fi
18900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18901 fi
18902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18905 CFLAGS="$xorg_testset_save_CFLAGS"
18906 fi
18907
18908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18911 fi
18912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18916 then :
18917 printf %s "(cached) " >&6
18918 else $as_nop
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18921 int i;
18922 _ACEOF
18923 if ac_fn_c_try_compile "$LINENO"
18924 then :
18925 xorg_cv_cc_flag_unused_command_line_argument=yes
18926 else $as_nop
18927 xorg_cv_cc_flag_unused_command_line_argument=no
18928 fi
18929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18930 fi
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18934 CFLAGS="$xorg_testset_save_CFLAGS"
18935 fi
18936
18937 found="no"
18938
18939 if test $found = "no" ; then
18940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18942 fi
18943
18944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18946 fi
18947
18948 CFLAGS="$CFLAGS -Werror=attributes"
18949
18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18951 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18952 cacheid=xorg_cv_cc_flag__Werror_attributes
18953 if eval test \${$cacheid+y}
18954 then :
18955 printf %s "(cached) " >&6
18956 else $as_nop
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959 int i;
18960 int
18961 main (void)
18962 {
18963
18964 ;
18965 return 0;
18966 }
18967 _ACEOF
18968 if ac_fn_c_try_link "$LINENO"
18969 then :
18970 eval $cacheid=yes
18971 else $as_nop
18972 eval $cacheid=no
18973 fi
18974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18975 conftest$ac_exeext conftest.$ac_ext
18976 fi
18977
18978
18979 CFLAGS="$xorg_testset_save_CFLAGS"
18980
18981 eval supported=\$$cacheid
18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18983 printf "%s\n" "$supported" >&6; }
18984 if test "$supported" = "yes" ; then
18985 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18986 found="yes"
18987 fi
18988 fi
18989
18990
18991
18992 if test "x$STRICT_COMPILE" = "xyes"; then
18993 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18994 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18995 fi
18996
18997
18998
18999
19000
19001
19002 cat >>confdefs.h <<_ACEOF
19003 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19004 _ACEOF
19005
19006 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19007 if test "x$PVM" = "x"; then
19008 PVM="0"
19009 fi
19010
19011 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19012
19013 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19014 if test "x$PVP" = "x"; then
19015 PVP="0"
19016 fi
19017
19018 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19019
19020
19021
19022 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19023 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19024 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19025 touch \$(top_srcdir)/ChangeLog; \
19026 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19027
19028
19029
19030
19031 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19032 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19033 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19034 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19035 touch \$(top_srcdir)/INSTALL; \
19036 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19037
19038
19039
19040
19041
19042
19043 case $host_os in
19044 solaris*)
19045 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19046 # check for a man page file found in later versions that use
19047 # traditional section numbers instead
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19049 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19050 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19051 then :
19052 printf %s "(cached) " >&6
19053 else $as_nop
19054 test "$cross_compiling" = yes &&
19055 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19056 if test -r "/usr/share/man/man7/attributes.7"; then
19057 ac_cv_file__usr_share_man_man7_attributes_7=yes
19058 else
19059 ac_cv_file__usr_share_man_man7_attributes_7=no
19060 fi
19061 fi
19062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19063 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19064 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19065 then :
19066 SYSV_MAN_SECTIONS=false
19067 else $as_nop
19068 SYSV_MAN_SECTIONS=true
19069 fi
19070
19071 ;;
19072 *) SYSV_MAN_SECTIONS=false ;;
19073 esac
19074
19075 if test x$APP_MAN_SUFFIX = x ; then
19076 APP_MAN_SUFFIX=1
19077 fi
19078 if test x$APP_MAN_DIR = x ; then
19079 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19080 fi
19081
19082 if test x$LIB_MAN_SUFFIX = x ; then
19083 LIB_MAN_SUFFIX=3
19084 fi
19085 if test x$LIB_MAN_DIR = x ; then
19086 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19087 fi
19088
19089 if test x$FILE_MAN_SUFFIX = x ; then
19090 case $SYSV_MAN_SECTIONS in
19091 true) FILE_MAN_SUFFIX=4 ;;
19092 *) FILE_MAN_SUFFIX=5 ;;
19093 esac
19094 fi
19095 if test x$FILE_MAN_DIR = x ; then
19096 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19097 fi
19098
19099 if test x$MISC_MAN_SUFFIX = x ; then
19100 case $SYSV_MAN_SECTIONS in
19101 true) MISC_MAN_SUFFIX=5 ;;
19102 *) MISC_MAN_SUFFIX=7 ;;
19103 esac
19104 fi
19105 if test x$MISC_MAN_DIR = x ; then
19106 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19107 fi
19108
19109 if test x$DRIVER_MAN_SUFFIX = x ; then
19110 case $SYSV_MAN_SECTIONS in
19111 true) DRIVER_MAN_SUFFIX=7 ;;
19112 *) DRIVER_MAN_SUFFIX=4 ;;
19113 esac
19114 fi
19115 if test x$DRIVER_MAN_DIR = x ; then
19116 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19117 fi
19118
19119 if test x$ADMIN_MAN_SUFFIX = x ; then
19120 case $SYSV_MAN_SECTIONS in
19121 true) ADMIN_MAN_SUFFIX=1m ;;
19122 *) ADMIN_MAN_SUFFIX=8 ;;
19123 esac
19124 fi
19125 if test x$ADMIN_MAN_DIR = x ; then
19126 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19127 fi
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143 XORG_MAN_PAGE="X Version 11"
19144
19145 MAN_SUBSTS="\
19146 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19147 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19148 -e 's|__xservername__|Xorg|g' \
19149 -e 's|__xconfigfile__|xorg.conf|g' \
19150 -e 's|__projectroot__|\$(prefix)|g' \
19151 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19152 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19153 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19154 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19155 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19156 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19157 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19158
19159
19160
19161 # Check whether --enable-silent-rules was given.
19162 if test ${enable_silent_rules+y}
19163 then :
19164 enableval=$enable_silent_rules;
19165 fi
19166
19167 case $enable_silent_rules in # (((
19168 yes) AM_DEFAULT_VERBOSITY=0;;
19169 no) AM_DEFAULT_VERBOSITY=1;;
19170 *) AM_DEFAULT_VERBOSITY=0;;
19171 esac
19172 am_make=${MAKE-make}
19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19174 printf %s "checking whether $am_make supports nested variables... " >&6; }
19175 if test ${am_cv_make_support_nested_variables+y}
19176 then :
19177 printf %s "(cached) " >&6
19178 else $as_nop
19179 if printf "%s\n" 'TRUE=$(BAR$(V))
19180 BAR0=false
19181 BAR1=true
19182 V=1
19183 am__doit:
19184 @$(TRUE)
19185 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19186 am_cv_make_support_nested_variables=yes
19187 else
19188 am_cv_make_support_nested_variables=no
19189 fi
19190 fi
19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19192 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19193 if test $am_cv_make_support_nested_variables = yes; then
19194 AM_V='$(V)'
19195 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19196 else
19197 AM_V=$AM_DEFAULT_VERBOSITY
19198 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19199 fi
19200 AM_BACKSLASH='\'
19201
19202
19203
19204 # Check presentext configuration, strip extra digits from package version to
19205 # find the required protocol version
19206 PRESENTEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19207
19208
19209 # Obtain compiler/linker options for dependencies
19210
19211 pkg_failed=no
19212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PRESENTEXT" >&5
19213 printf %s "checking for PRESENTEXT... " >&6; }
19214
19215 if test -n "$PRESENTEXT_CFLAGS"; then
19216 pkg_cv_PRESENTEXT_CFLAGS="$PRESENTEXT_CFLAGS"
19217 elif test -n "$PKG_CONFIG"; then
19218 if test -n "$PKG_CONFIG" && \
19219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto presentproto >= \$PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr\""; } >&5
19220 ($PKG_CONFIG --exists --print-errors "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr") 2>&5
19221 ac_status=$?
19222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19223 test $ac_status = 0; }; then
19224 pkg_cv_PRESENTEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>/dev/null`
19225 test "x$?" != "x0" && pkg_failed=yes
19226 else
19227 pkg_failed=yes
19228 fi
19229 else
19230 pkg_failed=untried
19231 fi
19232 if test -n "$PRESENTEXT_LIBS"; then
19233 pkg_cv_PRESENTEXT_LIBS="$PRESENTEXT_LIBS"
19234 elif test -n "$PKG_CONFIG"; then
19235 if test -n "$PKG_CONFIG" && \
19236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto presentproto >= \$PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr\""; } >&5
19237 ($PKG_CONFIG --exists --print-errors "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr") 2>&5
19238 ac_status=$?
19239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19240 test $ac_status = 0; }; then
19241 pkg_cv_PRESENTEXT_LIBS=`$PKG_CONFIG --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>/dev/null`
19242 test "x$?" != "x0" && pkg_failed=yes
19243 else
19244 pkg_failed=yes
19245 fi
19246 else
19247 pkg_failed=untried
19248 fi
19249
19250
19251
19252 if test $pkg_failed = yes; then
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19254 printf "%s\n" "no" >&6; }
19255
19256 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19257 _pkg_short_errors_supported=yes
19258 else
19259 _pkg_short_errors_supported=no
19260 fi
19261 if test $_pkg_short_errors_supported = yes; then
19262 PRESENTEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>&1`
19263 else
19264 PRESENTEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>&1`
19265 fi
19266 # Put the nasty error message in config.log where it belongs
19267 echo "$PRESENTEXT_PKG_ERRORS" >&5
19268
19269 as_fn_error $? "Package requirements (xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr) were not met:
19270
19271 $PRESENTEXT_PKG_ERRORS
19272
19273 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19274 installed software in a non-standard prefix.
19275
19276 Alternatively, you may set the environment variables PRESENTEXT_CFLAGS
19277 and PRESENTEXT_LIBS to avoid the need to call pkg-config.
19278 See the pkg-config man page for more details." "$LINENO" 5
19279 elif test $pkg_failed = untried; then
19280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 printf "%s\n" "no" >&6; }
19282 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19283 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19284 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19285 is in your PATH or set the PKG_CONFIG environment variable to the full
19286 path to pkg-config.
19287
19288 Alternatively, you may set the environment variables PRESENTEXT_CFLAGS
19289 and PRESENTEXT_LIBS to avoid the need to call pkg-config.
19290 See the pkg-config man page for more details.
19291
19292 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19293 See \`config.log' for more details" "$LINENO" 5; }
19294 else
19295 PRESENTEXT_CFLAGS=$pkg_cv_PRESENTEXT_CFLAGS
19296 PRESENTEXT_LIBS=$pkg_cv_PRESENTEXT_LIBS
19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19298 printf "%s\n" "yes" >&6; }
19299
19300 fi
19301
19302 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xpresent.pc"
19303
19304 cat >confcache <<\_ACEOF
19305 # This file is a shell script that caches the results of configure
19306 # tests run on this system so they can be shared between configure
19307 # scripts and configure runs, see configure's option --config-cache.
19308 # It is not useful on other systems. If it contains results you don't
19309 # want to keep, you may remove or edit it.
19310 #
19311 # config.status only pays attention to the cache file if you give it
19312 # the --recheck option to rerun configure.
19313 #
19314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19316 # following values.
19317
19318 _ACEOF
19319
19320 # The following way of writing the cache mishandles newlines in values,
19321 # but we know of no workaround that is simple, portable, and efficient.
19322 # So, we kill variables containing newlines.
19323 # Ultrix sh set writes to stderr and can't be redirected directly,
19324 # and sets the high bit in the cache file unless we assign to the vars.
19325 (
19326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19327 eval ac_val=\$$ac_var
19328 case $ac_val in #(
19329 *${as_nl}*)
19330 case $ac_var in #(
19331 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19332 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19333 esac
19334 case $ac_var in #(
19335 _ | IFS | as_nl) ;; #(
19336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19337 *) { eval $ac_var=; unset $ac_var;} ;;
19338 esac ;;
19339 esac
19340 done
19341
19342 (set) 2>&1 |
19343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19344 *${as_nl}ac_space=\ *)
19345 # `set' does not quote correctly, so add quotes: double-quote
19346 # substitution turns \\\\ into \\, and sed turns \\ into \.
19347 sed -n \
19348 "s/'/'\\\\''/g;
19349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19350 ;; #(
19351 *)
19352 # `set' quotes correctly as required by POSIX, so do not add quotes.
19353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19354 ;;
19355 esac |
19356 sort
19357 ) |
19358 sed '
19359 /^ac_cv_env_/b end
19360 t clear
19361 :clear
19362 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19363 t end
19364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19365 :end' >>confcache
19366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19367 if test -w "$cache_file"; then
19368 if test "x$cache_file" != "x/dev/null"; then
19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19370 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19371 if test ! -f "$cache_file" || test -h "$cache_file"; then
19372 cat confcache >"$cache_file"
19373 else
19374 case $cache_file in #(
19375 */* | ?:*)
19376 mv -f confcache "$cache_file"$$ &&
19377 mv -f "$cache_file"$$ "$cache_file" ;; #(
19378 *)
19379 mv -f confcache "$cache_file" ;;
19380 esac
19381 fi
19382 fi
19383 else
19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19385 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19386 fi
19387 fi
19388 rm -f confcache
19389
19390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19391 # Let make expand exec_prefix.
19392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19393
19394 DEFS=-DHAVE_CONFIG_H
19395
19396 ac_libobjs=
19397 ac_ltlibobjs=
19398 U=
19399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19400 # 1. Remove the extension, and $U if already installed.
19401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19402 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19404 # will be set to the directory where LIBOBJS objects are built.
19405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19407 done
19408 LIBOBJS=$ac_libobjs
19409
19410 LTLIBOBJS=$ac_ltlibobjs
19411
19412
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19414 printf %s "checking that generated files are newer than configure... " >&6; }
19415 if test -n "$am_sleep_pid"; then
19416 # Hide warnings about reused PIDs.
19417 wait $am_sleep_pid 2>/dev/null
19418 fi
19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19420 printf "%s\n" "done" >&6; }
19421 if test -n "$EXEEXT"; then
19422 am__EXEEXT_TRUE=
19423 am__EXEEXT_FALSE='#'
19424 else
19425 am__EXEEXT_TRUE='#'
19426 am__EXEEXT_FALSE=
19427 fi
19428
19429 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19430 as_fn_error $? "conditional \"AMDEP\" was never defined.
19431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19432 fi
19433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19434 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19436 fi
19437
19438 : "${CONFIG_STATUS=./config.status}"
19439 ac_write_fail=0
19440 ac_clean_files_save=$ac_clean_files
19441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19443 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19444 as_write_fail=0
19445 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19446 #! $SHELL
19447 # Generated by $as_me.
19448 # Run this file to recreate the current configuration.
19449 # Compiler output produced by configure, useful for debugging
19450 # configure, is in config.log if it exists.
19451
19452 debug=false
19453 ac_cs_recheck=false
19454 ac_cs_silent=false
19455
19456 SHELL=\${CONFIG_SHELL-$SHELL}
19457 export SHELL
19458 _ASEOF
19459 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19460 ## -------------------- ##
19461 ## M4sh Initialization. ##
19462 ## -------------------- ##
19463
19464 # Be more Bourne compatible
19465 DUALCASE=1; export DUALCASE # for MKS sh
19466 as_nop=:
19467 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19468 then :
19469 emulate sh
19470 NULLCMD=:
19471 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19472 # is contrary to our usage. Disable this feature.
19473 alias -g '${1+"$@"}'='"$@"'
19474 setopt NO_GLOB_SUBST
19475 else $as_nop
19476 case `(set -o) 2>/dev/null` in #(
19477 *posix*) :
19478 set -o posix ;; #(
19479 *) :
19480 ;;
19481 esac
19482 fi
19483
19484
19485
19486 # Reset variables that may have inherited troublesome values from
19487 # the environment.
19488
19489 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19490 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19491 # side effect of setting IFS to empty, thus disabling word splitting.)
19492 # Quoting is to prevent editors from complaining about space-tab.
19493 as_nl='
19494 '
19495 export as_nl
19496 IFS=" "" $as_nl"
19497
19498 PS1='$ '
19499 PS2='> '
19500 PS4='+ '
19501
19502 # Ensure predictable behavior from utilities with locale-dependent output.
19503 LC_ALL=C
19504 export LC_ALL
19505 LANGUAGE=C
19506 export LANGUAGE
19507
19508 # We cannot yet rely on "unset" to work, but we need these variables
19509 # to be unset--not just set to an empty or harmless value--now, to
19510 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19511 # also avoids known problems related to "unset" and subshell syntax
19512 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19513 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19514 do eval test \${$as_var+y} \
19515 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19516 done
19517
19518 # Ensure that fds 0, 1, and 2 are open.
19519 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19520 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19521 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19522
19523 # The user is always right.
19524 if ${PATH_SEPARATOR+false} :; then
19525 PATH_SEPARATOR=:
19526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19528 PATH_SEPARATOR=';'
19529 }
19530 fi
19531
19532
19533 # Find who we are. Look in the path if we contain no directory separator.
19534 as_myself=
19535 case $0 in #((
19536 *[\\/]* ) as_myself=$0 ;;
19537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19538 for as_dir in $PATH
19539 do
19540 IFS=$as_save_IFS
19541 case $as_dir in #(((
19542 '') as_dir=./ ;;
19543 */) ;;
19544 *) as_dir=$as_dir/ ;;
19545 esac
19546 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19547 done
19548 IFS=$as_save_IFS
19549
19550 ;;
19551 esac
19552 # We did not find ourselves, most probably we were run as `sh COMMAND'
19553 # in which case we are not to be found in the path.
19554 if test "x$as_myself" = x; then
19555 as_myself=$0
19556 fi
19557 if test ! -f "$as_myself"; then
19558 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19559 exit 1
19560 fi
19561
19562
19563
19564 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19565 # ----------------------------------------
19566 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19567 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19568 # script with STATUS, using 1 if that was 0.
19569 as_fn_error ()
19570 {
19571 as_status=$1; test $as_status -eq 0 && as_status=1
19572 if test "$4"; then
19573 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19575 fi
19576 printf "%s\n" "$as_me: error: $2" >&2
19577 as_fn_exit $as_status
19578 } # as_fn_error
19579
19580
19581
19582 # as_fn_set_status STATUS
19583 # -----------------------
19584 # Set $? to STATUS, without forking.
19585 as_fn_set_status ()
19586 {
19587 return $1
19588 } # as_fn_set_status
19589
19590 # as_fn_exit STATUS
19591 # -----------------
19592 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19593 as_fn_exit ()
19594 {
19595 set +e
19596 as_fn_set_status $1
19597 exit $1
19598 } # as_fn_exit
19599
19600 # as_fn_unset VAR
19601 # ---------------
19602 # Portably unset VAR.
19603 as_fn_unset ()
19604 {
19605 { eval $1=; unset $1;}
19606 }
19607 as_unset=as_fn_unset
19608
19609 # as_fn_append VAR VALUE
19610 # ----------------------
19611 # Append the text in VALUE to the end of the definition contained in VAR. Take
19612 # advantage of any shell optimizations that allow amortized linear growth over
19613 # repeated appends, instead of the typical quadratic growth present in naive
19614 # implementations.
19615 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19616 then :
19617 eval 'as_fn_append ()
19618 {
19619 eval $1+=\$2
19620 }'
19621 else $as_nop
19622 as_fn_append ()
19623 {
19624 eval $1=\$$1\$2
19625 }
19626 fi # as_fn_append
19627
19628 # as_fn_arith ARG...
19629 # ------------------
19630 # Perform arithmetic evaluation on the ARGs, and store the result in the
19631 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19632 # must be portable across $(()) and expr.
19633 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19634 then :
19635 eval 'as_fn_arith ()
19636 {
19637 as_val=$(( $* ))
19638 }'
19639 else $as_nop
19640 as_fn_arith ()
19641 {
19642 as_val=`expr "$@" || test $? -eq 1`
19643 }
19644 fi # as_fn_arith
19645
19646
19647 if expr a : '\(a\)' >/dev/null 2>&1 &&
19648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19649 as_expr=expr
19650 else
19651 as_expr=false
19652 fi
19653
19654 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19655 as_basename=basename
19656 else
19657 as_basename=false
19658 fi
19659
19660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19661 as_dirname=dirname
19662 else
19663 as_dirname=false
19664 fi
19665
19666 as_me=`$as_basename -- "$0" ||
19667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19668 X"$0" : 'X\(//\)$' \| \
19669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19670 printf "%s\n" X/"$0" |
19671 sed '/^.*\/\([^/][^/]*\)\/*$/{
19672 s//\1/
19673 q
19674 }
19675 /^X\/\(\/\/\)$/{
19676 s//\1/
19677 q
19678 }
19679 /^X\/\(\/\).*/{
19680 s//\1/
19681 q
19682 }
19683 s/.*/./; q'`
19684
19685 # Avoid depending upon Character Ranges.
19686 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19687 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19688 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19689 as_cr_digits='0123456789'
19690 as_cr_alnum=$as_cr_Letters$as_cr_digits
19691
19692
19693 # Determine whether it's possible to make 'echo' print without a newline.
19694 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19695 # for compatibility with existing Makefiles.
19696 ECHO_C= ECHO_N= ECHO_T=
19697 case `echo -n x` in #(((((
19698 -n*)
19699 case `echo 'xy\c'` in
19700 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19701 xy) ECHO_C='\c';;
19702 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19703 ECHO_T=' ';;
19704 esac;;
19705 *)
19706 ECHO_N='-n';;
19707 esac
19708
19709 # For backward compatibility with old third-party macros, we provide
19710 # the shell variables $as_echo and $as_echo_n. New code should use
19711 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19712 as_echo='printf %s\n'
19713 as_echo_n='printf %s'
19714
19715 rm -f conf$$ conf$$.exe conf$$.file
19716 if test -d conf$$.dir; then
19717 rm -f conf$$.dir/conf$$.file
19718 else
19719 rm -f conf$$.dir
19720 mkdir conf$$.dir 2>/dev/null
19721 fi
19722 if (echo >conf$$.file) 2>/dev/null; then
19723 if ln -s conf$$.file conf$$ 2>/dev/null; then
19724 as_ln_s='ln -s'
19725 # ... but there are two gotchas:
19726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19728 # In both cases, we have to default to `cp -pR'.
19729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19730 as_ln_s='cp -pR'
19731 elif ln conf$$.file conf$$ 2>/dev/null; then
19732 as_ln_s=ln
19733 else
19734 as_ln_s='cp -pR'
19735 fi
19736 else
19737 as_ln_s='cp -pR'
19738 fi
19739 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19740 rmdir conf$$.dir 2>/dev/null
19741
19742
19743 # as_fn_mkdir_p
19744 # -------------
19745 # Create "$as_dir" as a directory, including parents if necessary.
19746 as_fn_mkdir_p ()
19747 {
19748
19749 case $as_dir in #(
19750 -*) as_dir=./$as_dir;;
19751 esac
19752 test -d "$as_dir" || eval $as_mkdir_p || {
19753 as_dirs=
19754 while :; do
19755 case $as_dir in #(
19756 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19757 *) as_qdir=$as_dir;;
19758 esac
19759 as_dirs="'$as_qdir' $as_dirs"
19760 as_dir=`$as_dirname -- "$as_dir" ||
19761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19762 X"$as_dir" : 'X\(//\)[^/]' \| \
19763 X"$as_dir" : 'X\(//\)$' \| \
19764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19765 printf "%s\n" X"$as_dir" |
19766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19767 s//\1/
19768 q
19769 }
19770 /^X\(\/\/\)[^/].*/{
19771 s//\1/
19772 q
19773 }
19774 /^X\(\/\/\)$/{
19775 s//\1/
19776 q
19777 }
19778 /^X\(\/\).*/{
19779 s//\1/
19780 q
19781 }
19782 s/.*/./; q'`
19783 test -d "$as_dir" && break
19784 done
19785 test -z "$as_dirs" || eval "mkdir $as_dirs"
19786 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19787
19788
19789 } # as_fn_mkdir_p
19790 if mkdir -p . 2>/dev/null; then
19791 as_mkdir_p='mkdir -p "$as_dir"'
19792 else
19793 test -d ./-p && rmdir ./-p
19794 as_mkdir_p=false
19795 fi
19796
19797
19798 # as_fn_executable_p FILE
19799 # -----------------------
19800 # Test if FILE is an executable regular file.
19801 as_fn_executable_p ()
19802 {
19803 test -f "$1" && test -x "$1"
19804 } # as_fn_executable_p
19805 as_test_x='test -x'
19806 as_executable_p=as_fn_executable_p
19807
19808 # Sed expression to map a string onto a valid CPP name.
19809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19810
19811 # Sed expression to map a string onto a valid variable name.
19812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19813
19814
19815 exec 6>&1
19816 ## ----------------------------------- ##
19817 ## Main body of $CONFIG_STATUS script. ##
19818 ## ----------------------------------- ##
19819 _ASEOF
19820 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19821
19822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19823 # Save the log message, to keep $0 and so on meaningful, and to
19824 # report actual input values of CONFIG_FILES etc. instead of their
19825 # values after options handling.
19826 ac_log="
19827 This file was extended by libXpresent $as_me 1.0.1, which was
19828 generated by GNU Autoconf 2.71. Invocation command line was
19829
19830 CONFIG_FILES = $CONFIG_FILES
19831 CONFIG_HEADERS = $CONFIG_HEADERS
19832 CONFIG_LINKS = $CONFIG_LINKS
19833 CONFIG_COMMANDS = $CONFIG_COMMANDS
19834 $ $0 $@
19835
19836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19837 "
19838
19839 _ACEOF
19840
19841 case $ac_config_files in *"
19842 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19843 esac
19844
19845 case $ac_config_headers in *"
19846 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19847 esac
19848
19849
19850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19851 # Files that config.status was made for.
19852 config_files="$ac_config_files"
19853 config_headers="$ac_config_headers"
19854 config_commands="$ac_config_commands"
19855
19856 _ACEOF
19857
19858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19859 ac_cs_usage="\
19860 \`$as_me' instantiates files and other configuration actions
19861 from templates according to the current configuration. Unless the files
19862 and actions are specified as TAGs, all are instantiated by default.
19863
19864 Usage: $0 [OPTION]... [TAG]...
19865
19866 -h, --help print this help, then exit
19867 -V, --version print version number and configuration settings, then exit
19868 --config print configuration, then exit
19869 -q, --quiet, --silent
19870 do not print progress messages
19871 -d, --debug don't remove temporary files
19872 --recheck update $as_me by reconfiguring in the same conditions
19873 --file=FILE[:TEMPLATE]
19874 instantiate the configuration file FILE
19875 --header=FILE[:TEMPLATE]
19876 instantiate the configuration header FILE
19877
19878 Configuration files:
19879 $config_files
19880
19881 Configuration headers:
19882 $config_headers
19883
19884 Configuration commands:
19885 $config_commands
19886
19887 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues>."
19888
19889 _ACEOF
19890 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19891 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19893 ac_cs_config='$ac_cs_config_escaped'
19894 ac_cs_version="\\
19895 libXpresent config.status 1.0.1
19896 configured by $0, generated by GNU Autoconf 2.71,
19897 with options \\"\$ac_cs_config\\"
19898
19899 Copyright (C) 2021 Free Software Foundation, Inc.
19900 This config.status script is free software; the Free Software Foundation
19901 gives unlimited permission to copy, distribute and modify it."
19902
19903 ac_pwd='$ac_pwd'
19904 srcdir='$srcdir'
19905 INSTALL='$INSTALL'
19906 MKDIR_P='$MKDIR_P'
19907 AWK='$AWK'
19908 test -n "\$AWK" || AWK=awk
19909 _ACEOF
19910
19911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19912 # The default lists apply if the user does not specify any file.
19913 ac_need_defaults=:
19914 while test $# != 0
19915 do
19916 case $1 in
19917 --*=?*)
19918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19920 ac_shift=:
19921 ;;
19922 --*=)
19923 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19924 ac_optarg=
19925 ac_shift=:
19926 ;;
19927 *)
19928 ac_option=$1
19929 ac_optarg=$2
19930 ac_shift=shift
19931 ;;
19932 esac
19933
19934 case $ac_option in
19935 # Handling of the options.
19936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19937 ac_cs_recheck=: ;;
19938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19939 printf "%s\n" "$ac_cs_version"; exit ;;
19940 --config | --confi | --conf | --con | --co | --c )
19941 printf "%s\n" "$ac_cs_config"; exit ;;
19942 --debug | --debu | --deb | --de | --d | -d )
19943 debug=: ;;
19944 --file | --fil | --fi | --f )
19945 $ac_shift
19946 case $ac_optarg in
19947 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19948 '') as_fn_error $? "missing file argument" ;;
19949 esac
19950 as_fn_append CONFIG_FILES " '$ac_optarg'"
19951 ac_need_defaults=false;;
19952 --header | --heade | --head | --hea )
19953 $ac_shift
19954 case $ac_optarg in
19955 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19956 esac
19957 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19958 ac_need_defaults=false;;
19959 --he | --h)
19960 # Conflict between --help and --header
19961 as_fn_error $? "ambiguous option: \`$1'
19962 Try \`$0 --help' for more information.";;
19963 --help | --hel | -h )
19964 printf "%s\n" "$ac_cs_usage"; exit ;;
19965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19966 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19967 ac_cs_silent=: ;;
19968
19969 # This is an error.
19970 -*) as_fn_error $? "unrecognized option: \`$1'
19971 Try \`$0 --help' for more information." ;;
19972
19973 *) as_fn_append ac_config_targets " $1"
19974 ac_need_defaults=false ;;
19975
19976 esac
19977 shift
19978 done
19979
19980 ac_configure_extra_args=
19981
19982 if $ac_cs_silent; then
19983 exec 6>/dev/null
19984 ac_configure_extra_args="$ac_configure_extra_args --silent"
19985 fi
19986
19987 _ACEOF
19988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19989 if \$ac_cs_recheck; then
19990 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19991 shift
19992 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19993 CONFIG_SHELL='$SHELL'
19994 export CONFIG_SHELL
19995 exec "\$@"
19996 fi
19997
19998 _ACEOF
19999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20000 exec 5>>config.log
20001 {
20002 echo
20003 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20004 ## Running $as_me. ##
20005 _ASBOX
20006 printf "%s\n" "$ac_log"
20007 } >&5
20008
20009 _ACEOF
20010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20011 #
20012 # INIT-COMMANDS
20013 #
20014 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20015
20016
20017 # The HP-UX ksh and POSIX shell print the target directory to stdout
20018 # if CDPATH is set.
20019 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20020
20021 sed_quote_subst='$sed_quote_subst'
20022 double_quote_subst='$double_quote_subst'
20023 delay_variable_subst='$delay_variable_subst'
20024 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20025 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20026 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20027 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20028 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20029 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20030 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20031 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20032 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20033 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20034 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20035 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20036 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20037 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20038 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20039 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20040 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20041 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20042 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20043 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20044 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20045 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20046 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20047 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20048 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20049 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20050 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20051 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20052 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20053 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20054 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20055 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20056 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20057 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20058 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20059 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20060 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20061 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20062 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20063 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20064 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20065 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20066 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20067 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20068 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20069 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20070 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20071 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20072 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20073 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20074 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20075 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20076 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20077 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20078 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20079 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20080 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20081 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20082 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20083 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20084 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"`'
20085 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20086 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20087 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20088 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20089 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20090 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20091 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20092 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20093 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20094 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20095 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20096 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20097 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20098 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20099 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20100 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20101 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20102 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20103 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20104 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20105 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20106 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20107 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20108 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20109 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20110 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20111 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20112 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20113 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20114 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20115 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20116 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20117 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20118 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20119 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20120 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20121 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20122 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20123 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20124 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20125 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20126 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20127 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20128 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20129 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20130 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20131 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20132 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20133 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20134 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20135 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20136 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20137 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20138 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20139 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20140 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20141 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20142 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20143 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20144 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20145 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20146 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20147 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20148 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20149 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20150 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20151 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20152 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20153 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20154 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20155 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20156 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20157 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20158 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20159 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20160 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20161
20162 LTCC='$LTCC'
20163 LTCFLAGS='$LTCFLAGS'
20164 compiler='$compiler_DEFAULT'
20165
20166 # A function that is used when there is no print builtin or printf.
20167 func_fallback_echo ()
20168 {
20169 eval 'cat <<_LTECHO_EOF
20170 \$1
20171 _LTECHO_EOF'
20172 }
20173
20174 # Quote evaled strings.
20175 for var in SHELL \
20176 ECHO \
20177 PATH_SEPARATOR \
20178 SED \
20179 GREP \
20180 EGREP \
20181 FGREP \
20182 LD \
20183 NM \
20184 LN_S \
20185 lt_SP2NL \
20186 lt_NL2SP \
20187 reload_flag \
20188 FILECMD \
20189 OBJDUMP \
20190 deplibs_check_method \
20191 file_magic_cmd \
20192 file_magic_glob \
20193 want_nocaseglob \
20194 DLLTOOL \
20195 sharedlib_from_linklib_cmd \
20196 AR \
20197 archiver_list_spec \
20198 STRIP \
20199 RANLIB \
20200 CC \
20201 CFLAGS \
20202 compiler \
20203 lt_cv_sys_global_symbol_pipe \
20204 lt_cv_sys_global_symbol_to_cdecl \
20205 lt_cv_sys_global_symbol_to_import \
20206 lt_cv_sys_global_symbol_to_c_name_address \
20207 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20208 lt_cv_nm_interface \
20209 nm_file_list_spec \
20210 lt_cv_truncate_bin \
20211 lt_prog_compiler_no_builtin_flag \
20212 lt_prog_compiler_pic \
20213 lt_prog_compiler_wl \
20214 lt_prog_compiler_static \
20215 lt_cv_prog_compiler_c_o \
20216 need_locks \
20217 MANIFEST_TOOL \
20218 DSYMUTIL \
20219 NMEDIT \
20220 LIPO \
20221 OTOOL \
20222 OTOOL64 \
20223 shrext_cmds \
20224 export_dynamic_flag_spec \
20225 whole_archive_flag_spec \
20226 compiler_needs_object \
20227 with_gnu_ld \
20228 allow_undefined_flag \
20229 no_undefined_flag \
20230 hardcode_libdir_flag_spec \
20231 hardcode_libdir_separator \
20232 exclude_expsyms \
20233 include_expsyms \
20234 file_list_spec \
20235 variables_saved_for_relink \
20236 libname_spec \
20237 library_names_spec \
20238 soname_spec \
20239 install_override_mode \
20240 finish_eval \
20241 old_striplib \
20242 striplib; do
20243 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20244 *[\\\\\\\`\\"\\\$]*)
20245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20246 ;;
20247 *)
20248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20249 ;;
20250 esac
20251 done
20252
20253 # Double-quote double-evaled strings.
20254 for var in reload_cmds \
20255 old_postinstall_cmds \
20256 old_postuninstall_cmds \
20257 old_archive_cmds \
20258 extract_expsyms_cmds \
20259 old_archive_from_new_cmds \
20260 old_archive_from_expsyms_cmds \
20261 archive_cmds \
20262 archive_expsym_cmds \
20263 module_cmds \
20264 module_expsym_cmds \
20265 export_symbols_cmds \
20266 prelink_cmds \
20267 postlink_cmds \
20268 postinstall_cmds \
20269 postuninstall_cmds \
20270 finish_cmds \
20271 sys_lib_search_path_spec \
20272 configure_time_dlsearch_path \
20273 configure_time_lt_sys_library_path; do
20274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20275 *[\\\\\\\`\\"\\\$]*)
20276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20277 ;;
20278 *)
20279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20280 ;;
20281 esac
20282 done
20283
20284 ac_aux_dir='$ac_aux_dir'
20285
20286 # See if we are running on zsh, and set the options that allow our
20287 # commands through without removal of \ escapes INIT.
20288 if test -n "\${ZSH_VERSION+set}"; then
20289 setopt NO_GLOB_SUBST
20290 fi
20291
20292
20293 PACKAGE='$PACKAGE'
20294 VERSION='$VERSION'
20295 RM='$RM'
20296 ofile='$ofile'
20297
20298
20299
20300
20301 _ACEOF
20302
20303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20304
20305 # Handling of arguments.
20306 for ac_config_target in $ac_config_targets
20307 do
20308 case $ac_config_target in
20309 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20311 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20313 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20314 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20315 "xpresent.pc") CONFIG_FILES="$CONFIG_FILES xpresent.pc" ;;
20316
20317 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20318 esac
20319 done
20320
20321
20322 # If the user did not use the arguments to specify the items to instantiate,
20323 # then the envvar interface is used. Set only those that are not.
20324 # We use the long form for the default assignment because of an extremely
20325 # bizarre bug on SunOS 4.1.3.
20326 if $ac_need_defaults; then
20327 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20328 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20329 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20330 fi
20331
20332 # Have a temporary directory for convenience. Make it in the build tree
20333 # simply because there is no reason against having it here, and in addition,
20334 # creating and moving files from /tmp can sometimes cause problems.
20335 # Hook for its removal unless debugging.
20336 # Note that there is a small window in which the directory will not be cleaned:
20337 # after its creation but before its name has been assigned to `$tmp'.
20338 $debug ||
20339 {
20340 tmp= ac_tmp=
20341 trap 'exit_status=$?
20342 : "${ac_tmp:=$tmp}"
20343 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20344 ' 0
20345 trap 'as_fn_exit 1' 1 2 13 15
20346 }
20347 # Create a (secure) tmp directory for tmp files.
20348
20349 {
20350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20351 test -d "$tmp"
20352 } ||
20353 {
20354 tmp=./conf$$-$RANDOM
20355 (umask 077 && mkdir "$tmp")
20356 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20357 ac_tmp=$tmp
20358
20359 # Set up the scripts for CONFIG_FILES section.
20360 # No need to generate them if there are no CONFIG_FILES.
20361 # This happens for instance with `./config.status config.h'.
20362 if test -n "$CONFIG_FILES"; then
20363
20364
20365 ac_cr=`echo X | tr X '\015'`
20366 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20367 # But we know of no other shell where ac_cr would be empty at this
20368 # point, so we can use a bashism as a fallback.
20369 if test "x$ac_cr" = x; then
20370 eval ac_cr=\$\'\\r\'
20371 fi
20372 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20373 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20374 ac_cs_awk_cr='\\r'
20375 else
20376 ac_cs_awk_cr=$ac_cr
20377 fi
20378
20379 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20380 _ACEOF
20381
20382
20383 {
20384 echo "cat >conf$$subs.awk <<_ACEOF" &&
20385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20386 echo "_ACEOF"
20387 } >conf$$subs.sh ||
20388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20389 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20390 ac_delim='%!_!# '
20391 for ac_last_try in false false false false false :; do
20392 . ./conf$$subs.sh ||
20393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20394
20395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20396 if test $ac_delim_n = $ac_delim_num; then
20397 break
20398 elif $ac_last_try; then
20399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20400 else
20401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20402 fi
20403 done
20404 rm -f conf$$subs.sh
20405
20406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20407 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20408 _ACEOF
20409 sed -n '
20410 h
20411 s/^/S["/; s/!.*/"]=/
20412 p
20413 g
20414 s/^[^!]*!//
20415 :repl
20416 t repl
20417 s/'"$ac_delim"'$//
20418 t delim
20419 :nl
20420 h
20421 s/\(.\{148\}\)..*/\1/
20422 t more1
20423 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20424 p
20425 n
20426 b repl
20427 :more1
20428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20429 p
20430 g
20431 s/.\{148\}//
20432 t nl
20433 :delim
20434 h
20435 s/\(.\{148\}\)..*/\1/
20436 t more2
20437 s/["\\]/\\&/g; s/^/"/; s/$/"/
20438 p
20439 b
20440 :more2
20441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20442 p
20443 g
20444 s/.\{148\}//
20445 t delim
20446 ' <conf$$subs.awk | sed '
20447 /^[^""]/{
20448 N
20449 s/\n//
20450 }
20451 ' >>$CONFIG_STATUS || ac_write_fail=1
20452 rm -f conf$$subs.awk
20453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20454 _ACAWK
20455 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20456 for (key in S) S_is_set[key] = 1
20457 FS = ""
20458
20459 }
20460 {
20461 line = $ 0
20462 nfields = split(line, field, "@")
20463 substed = 0
20464 len = length(field[1])
20465 for (i = 2; i < nfields; i++) {
20466 key = field[i]
20467 keylen = length(key)
20468 if (S_is_set[key]) {
20469 value = S[key]
20470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20471 len += length(value) + length(field[++i])
20472 substed = 1
20473 } else
20474 len += 1 + keylen
20475 }
20476
20477 print line
20478 }
20479
20480 _ACAWK
20481 _ACEOF
20482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20485 else
20486 cat
20487 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20489 _ACEOF
20490
20491 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20492 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20493 # trailing colons and then remove the whole line if VPATH becomes empty
20494 # (actually we leave an empty line to preserve line numbers).
20495 if test "x$srcdir" = x.; then
20496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20497 h
20498 s///
20499 s/^/:/
20500 s/[ ]*$/:/
20501 s/:\$(srcdir):/:/g
20502 s/:\${srcdir}:/:/g
20503 s/:@srcdir@:/:/g
20504 s/^:*//
20505 s/:*$//
20506 x
20507 s/\(=[ ]*\).*/\1/
20508 G
20509 s/\n//
20510 s/^[^=]*=[ ]*$//
20511 }'
20512 fi
20513
20514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20515 fi # test -n "$CONFIG_FILES"
20516
20517 # Set up the scripts for CONFIG_HEADERS section.
20518 # No need to generate them if there are no CONFIG_HEADERS.
20519 # This happens for instance with `./config.status Makefile'.
20520 if test -n "$CONFIG_HEADERS"; then
20521 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20522 BEGIN {
20523 _ACEOF
20524
20525 # Transform confdefs.h into an awk script `defines.awk', embedded as
20526 # here-document in config.status, that substitutes the proper values into
20527 # config.h.in to produce config.h.
20528
20529 # Create a delimiter string that does not exist in confdefs.h, to ease
20530 # handling of long lines.
20531 ac_delim='%!_!# '
20532 for ac_last_try in false false :; do
20533 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20534 if test -z "$ac_tt"; then
20535 break
20536 elif $ac_last_try; then
20537 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20538 else
20539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20540 fi
20541 done
20542
20543 # For the awk script, D is an array of macro values keyed by name,
20544 # likewise P contains macro parameters if any. Preserve backslash
20545 # newline sequences.
20546
20547 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20548 sed -n '
20549 s/.\{148\}/&'"$ac_delim"'/g
20550 t rset
20551 :rset
20552 s/^[ ]*#[ ]*define[ ][ ]*/ /
20553 t def
20554 d
20555 :def
20556 s/\\$//
20557 t bsnl
20558 s/["\\]/\\&/g
20559 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20560 D["\1"]=" \3"/p
20561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20562 d
20563 :bsnl
20564 s/["\\]/\\&/g
20565 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20566 D["\1"]=" \3\\\\\\n"\\/p
20567 t cont
20568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20569 t cont
20570 d
20571 :cont
20572 n
20573 s/.\{148\}/&'"$ac_delim"'/g
20574 t clear
20575 :clear
20576 s/\\$//
20577 t bsnlc
20578 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20579 d
20580 :bsnlc
20581 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20582 b cont
20583 ' <confdefs.h | sed '
20584 s/'"$ac_delim"'/"\\\
20585 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20586
20587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20588 for (key in D) D_is_set[key] = 1
20589 FS = ""
20590 }
20591 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20592 line = \$ 0
20593 split(line, arg, " ")
20594 if (arg[1] == "#") {
20595 defundef = arg[2]
20596 mac1 = arg[3]
20597 } else {
20598 defundef = substr(arg[1], 2)
20599 mac1 = arg[2]
20600 }
20601 split(mac1, mac2, "(") #)
20602 macro = mac2[1]
20603 prefix = substr(line, 1, index(line, defundef) - 1)
20604 if (D_is_set[macro]) {
20605 # Preserve the white space surrounding the "#".
20606 print prefix "define", macro P[macro] D[macro]
20607 next
20608 } else {
20609 # Replace #undef with comments. This is necessary, for example,
20610 # in the case of _POSIX_SOURCE, which is predefined and required
20611 # on some systems where configure will not decide to define it.
20612 if (defundef == "undef") {
20613 print "/*", prefix defundef, macro, "*/"
20614 next
20615 }
20616 }
20617 }
20618 { print }
20619 _ACAWK
20620 _ACEOF
20621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20622 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20623 fi # test -n "$CONFIG_HEADERS"
20624
20625
20626 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20627 shift
20628 for ac_tag
20629 do
20630 case $ac_tag in
20631 :[FHLC]) ac_mode=$ac_tag; continue;;
20632 esac
20633 case $ac_mode$ac_tag in
20634 :[FHL]*:*);;
20635 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20636 :[FH]-) ac_tag=-:-;;
20637 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20638 esac
20639 ac_save_IFS=$IFS
20640 IFS=:
20641 set x $ac_tag
20642 IFS=$ac_save_IFS
20643 shift
20644 ac_file=$1
20645 shift
20646
20647 case $ac_mode in
20648 :L) ac_source=$1;;
20649 :[FH])
20650 ac_file_inputs=
20651 for ac_f
20652 do
20653 case $ac_f in
20654 -) ac_f="$ac_tmp/stdin";;
20655 *) # Look for the file first in the build tree, then in the source tree
20656 # (if the path is not absolute). The absolute path cannot be DOS-style,
20657 # because $ac_f cannot contain `:'.
20658 test -f "$ac_f" ||
20659 case $ac_f in
20660 [\\/$]*) false;;
20661 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20662 esac ||
20663 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20664 esac
20665 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20666 as_fn_append ac_file_inputs " '$ac_f'"
20667 done
20668
20669 # Let's still pretend it is `configure' which instantiates (i.e., don't
20670 # use $as_me), people would be surprised to read:
20671 # /* config.h. Generated by config.status. */
20672 configure_input='Generated from '`
20673 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20674 `' by configure.'
20675 if test x"$ac_file" != x-; then
20676 configure_input="$ac_file. $configure_input"
20677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20678 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20679 fi
20680 # Neutralize special characters interpreted by sed in replacement strings.
20681 case $configure_input in #(
20682 *\&* | *\|* | *\\* )
20683 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20684 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20685 *) ac_sed_conf_input=$configure_input;;
20686 esac
20687
20688 case $ac_tag in
20689 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20691 esac
20692 ;;
20693 esac
20694
20695 ac_dir=`$as_dirname -- "$ac_file" ||
20696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20697 X"$ac_file" : 'X\(//\)[^/]' \| \
20698 X"$ac_file" : 'X\(//\)$' \| \
20699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20700 printf "%s\n" X"$ac_file" |
20701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20702 s//\1/
20703 q
20704 }
20705 /^X\(\/\/\)[^/].*/{
20706 s//\1/
20707 q
20708 }
20709 /^X\(\/\/\)$/{
20710 s//\1/
20711 q
20712 }
20713 /^X\(\/\).*/{
20714 s//\1/
20715 q
20716 }
20717 s/.*/./; q'`
20718 as_dir="$ac_dir"; as_fn_mkdir_p
20719 ac_builddir=.
20720
20721 case "$ac_dir" in
20722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20723 *)
20724 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20725 # A ".." for each directory in $ac_dir_suffix.
20726 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20727 case $ac_top_builddir_sub in
20728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20730 esac ;;
20731 esac
20732 ac_abs_top_builddir=$ac_pwd
20733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20734 # for backward compatibility:
20735 ac_top_builddir=$ac_top_build_prefix
20736
20737 case $srcdir in
20738 .) # We are building in place.
20739 ac_srcdir=.
20740 ac_top_srcdir=$ac_top_builddir_sub
20741 ac_abs_top_srcdir=$ac_pwd ;;
20742 [\\/]* | ?:[\\/]* ) # Absolute name.
20743 ac_srcdir=$srcdir$ac_dir_suffix;
20744 ac_top_srcdir=$srcdir
20745 ac_abs_top_srcdir=$srcdir ;;
20746 *) # Relative name.
20747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20748 ac_top_srcdir=$ac_top_build_prefix$srcdir
20749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20750 esac
20751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20752
20753
20754 case $ac_mode in
20755 :F)
20756 #
20757 # CONFIG_FILE
20758 #
20759
20760 case $INSTALL in
20761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20763 esac
20764 ac_MKDIR_P=$MKDIR_P
20765 case $MKDIR_P in
20766 [\\/$]* | ?:[\\/]* ) ;;
20767 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20768 esac
20769 _ACEOF
20770
20771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20772 # If the template does not know about datarootdir, expand it.
20773 # FIXME: This hack should be removed a few years after 2.60.
20774 ac_datarootdir_hack=; ac_datarootdir_seen=
20775 ac_sed_dataroot='
20776 /datarootdir/ {
20777 p
20778 q
20779 }
20780 /@datadir@/p
20781 /@docdir@/p
20782 /@infodir@/p
20783 /@localedir@/p
20784 /@mandir@/p'
20785 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20786 *datarootdir*) ac_datarootdir_seen=yes;;
20787 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20789 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20790 _ACEOF
20791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20792 ac_datarootdir_hack='
20793 s&@datadir@&$datadir&g
20794 s&@docdir@&$docdir&g
20795 s&@infodir@&$infodir&g
20796 s&@localedir@&$localedir&g
20797 s&@mandir@&$mandir&g
20798 s&\\\${datarootdir}&$datarootdir&g' ;;
20799 esac
20800 _ACEOF
20801
20802 # Neutralize VPATH when `$srcdir' = `.'.
20803 # Shell code in configure.ac might set extrasub.
20804 # FIXME: do we really want to maintain this feature?
20805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20806 ac_sed_extra="$ac_vpsub
20807 $extrasub
20808 _ACEOF
20809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20810 :t
20811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20812 s|@configure_input@|$ac_sed_conf_input|;t t
20813 s&@top_builddir@&$ac_top_builddir_sub&;t t
20814 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20815 s&@srcdir@&$ac_srcdir&;t t
20816 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20817 s&@top_srcdir@&$ac_top_srcdir&;t t
20818 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20819 s&@builddir@&$ac_builddir&;t t
20820 s&@abs_builddir@&$ac_abs_builddir&;t t
20821 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20822 s&@INSTALL@&$ac_INSTALL&;t t
20823 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20824 $ac_datarootdir_hack
20825 "
20826 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20827 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20828
20829 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20830 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20831 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20832 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20834 which seems to be undefined. Please make sure it is defined" >&5
20835 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20836 which seems to be undefined. Please make sure it is defined" >&2;}
20837
20838 rm -f "$ac_tmp/stdin"
20839 case $ac_file in
20840 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20841 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20842 esac \
20843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20844 ;;
20845 :H)
20846 #
20847 # CONFIG_HEADER
20848 #
20849 if test x"$ac_file" != x-; then
20850 {
20851 printf "%s\n" "/* $configure_input */" >&1 \
20852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20853 } >"$ac_tmp/config.h" \
20854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20855 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20857 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20858 else
20859 rm -f "$ac_file"
20860 mv "$ac_tmp/config.h" "$ac_file" \
20861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20862 fi
20863 else
20864 printf "%s\n" "/* $configure_input */" >&1 \
20865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20866 || as_fn_error $? "could not create -" "$LINENO" 5
20867 fi
20868 # Compute "$ac_file"'s index in $config_headers.
20869 _am_arg="$ac_file"
20870 _am_stamp_count=1
20871 for _am_header in $config_headers :; do
20872 case $_am_header in
20873 $_am_arg | $_am_arg:* )
20874 break ;;
20875 * )
20876 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20877 esac
20878 done
20879 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20880 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20881 X"$_am_arg" : 'X\(//\)[^/]' \| \
20882 X"$_am_arg" : 'X\(//\)$' \| \
20883 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20884 printf "%s\n" X"$_am_arg" |
20885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20886 s//\1/
20887 q
20888 }
20889 /^X\(\/\/\)[^/].*/{
20890 s//\1/
20891 q
20892 }
20893 /^X\(\/\/\)$/{
20894 s//\1/
20895 q
20896 }
20897 /^X\(\/\).*/{
20898 s//\1/
20899 q
20900 }
20901 s/.*/./; q'`/stamp-h$_am_stamp_count
20902 ;;
20903
20904 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20905 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20906 ;;
20907 esac
20908
20909
20910 case $ac_file$ac_mode in
20911 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20912 # Older Autoconf quotes --file arguments for eval, but not when files
20913 # are listed without --file. Let's play safe and only enable the eval
20914 # if we detect the quoting.
20915 # TODO: see whether this extra hack can be removed once we start
20916 # requiring Autoconf 2.70 or later.
20917 case $CONFIG_FILES in #(
20918 *\'*) :
20919 eval set x "$CONFIG_FILES" ;; #(
20920 *) :
20921 set x $CONFIG_FILES ;; #(
20922 *) :
20923 ;;
20924 esac
20925 shift
20926 # Used to flag and report bootstrapping failures.
20927 am_rc=0
20928 for am_mf
20929 do
20930 # Strip MF so we end up with the name of the file.
20931 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20932 # Check whether this is an Automake generated Makefile which includes
20933 # dependency-tracking related rules and includes.
20934 # Grep'ing the whole file directly is not great: AIX grep has a line
20935 # limit of 2048, but all sed's we know have understand at least 4000.
20936 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20937 || continue
20938 am_dirpart=`$as_dirname -- "$am_mf" ||
20939 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X"$am_mf" : 'X\(//\)[^/]' \| \
20941 X"$am_mf" : 'X\(//\)$' \| \
20942 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20943 printf "%s\n" X"$am_mf" |
20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945 s//\1/
20946 q
20947 }
20948 /^X\(\/\/\)[^/].*/{
20949 s//\1/
20950 q
20951 }
20952 /^X\(\/\/\)$/{
20953 s//\1/
20954 q
20955 }
20956 /^X\(\/\).*/{
20957 s//\1/
20958 q
20959 }
20960 s/.*/./; q'`
20961 am_filepart=`$as_basename -- "$am_mf" ||
20962 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20963 X"$am_mf" : 'X\(//\)$' \| \
20964 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20965 printf "%s\n" X/"$am_mf" |
20966 sed '/^.*\/\([^/][^/]*\)\/*$/{
20967 s//\1/
20968 q
20969 }
20970 /^X\/\(\/\/\)$/{
20971 s//\1/
20972 q
20973 }
20974 /^X\/\(\/\).*/{
20975 s//\1/
20976 q
20977 }
20978 s/.*/./; q'`
20979 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20980 && sed -e '/# am--include-marker/d' "$am_filepart" \
20981 | $MAKE -f - am--depfiles" >&5
20982 (cd "$am_dirpart" \
20983 && sed -e '/# am--include-marker/d' "$am_filepart" \
20984 | $MAKE -f - am--depfiles) >&5 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } || am_rc=$?
20988 done
20989 if test $am_rc -ne 0; then
20990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20991 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20992 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20993 for automatic dependency tracking. If GNU make was not used, consider
20994 re-running the configure script with MAKE=\"gmake\" (or whatever is
20995 necessary). You can also try re-running configure with the
20996 '--disable-dependency-tracking' option to at least be able to build
20997 the package (albeit without support for automatic dependency tracking).
20998 See \`config.log' for more details" "$LINENO" 5; }
20999 fi
21000 { am_dirpart=; unset am_dirpart;}
21001 { am_filepart=; unset am_filepart;}
21002 { am_mf=; unset am_mf;}
21003 { am_rc=; unset am_rc;}
21004 rm -f conftest-deps.mk
21005 }
21006 ;;
21007 "libtool":C)
21008
21009 # See if we are running on zsh, and set the options that allow our
21010 # commands through without removal of \ escapes.
21011 if test -n "${ZSH_VERSION+set}"; then
21012 setopt NO_GLOB_SUBST
21013 fi
21014
21015 cfgfile=${ofile}T
21016 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21017 $RM "$cfgfile"
21018
21019 cat <<_LT_EOF >> "$cfgfile"
21020 #! $SHELL
21021 # Generated automatically by $as_me ($PACKAGE) $VERSION
21022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21023 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21024
21025 # Provide generalized library-building support services.
21026 # Written by Gordon Matzigkeit, 1996
21027
21028 # Copyright (C) 2014 Free Software Foundation, Inc.
21029 # This is free software; see the source for copying conditions. There is NO
21030 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21031
21032 # GNU Libtool is free software; you can redistribute it and/or modify
21033 # it under the terms of the GNU General Public License as published by
21034 # the Free Software Foundation; either version 2 of of the License, or
21035 # (at your option) any later version.
21036 #
21037 # As a special exception to the GNU General Public License, if you
21038 # distribute this file as part of a program or library that is built
21039 # using GNU Libtool, you may include this file under the same
21040 # distribution terms that you use for the rest of that program.
21041 #
21042 # GNU Libtool is distributed in the hope that it will be useful, but
21043 # WITHOUT ANY WARRANTY; without even the implied warranty of
21044 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21045 # GNU General Public License for more details.
21046 #
21047 # You should have received a copy of the GNU General Public License
21048 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21049
21050
21051 # The names of the tagged configurations supported by this script.
21052 available_tags=''
21053
21054 # Configured defaults for sys_lib_dlsearch_path munging.
21055 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21056
21057 # ### BEGIN LIBTOOL CONFIG
21058
21059 # Which release of libtool.m4 was used?
21060 macro_version=$macro_version
21061 macro_revision=$macro_revision
21062
21063 # Whether or not to build shared libraries.
21064 build_libtool_libs=$enable_shared
21065
21066 # Whether or not to build static libraries.
21067 build_old_libs=$enable_static
21068
21069 # What type of objects to build.
21070 pic_mode=$pic_mode
21071
21072 # Whether or not to optimize for fast installation.
21073 fast_install=$enable_fast_install
21074
21075 # Shared archive member basename,for filename based shared library versioning on AIX.
21076 shared_archive_member_spec=$shared_archive_member_spec
21077
21078 # Shell to use when invoking shell scripts.
21079 SHELL=$lt_SHELL
21080
21081 # An echo program that protects backslashes.
21082 ECHO=$lt_ECHO
21083
21084 # The PATH separator for the build system.
21085 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21086
21087 # The host system.
21088 host_alias=$host_alias
21089 host=$host
21090 host_os=$host_os
21091
21092 # The build system.
21093 build_alias=$build_alias
21094 build=$build
21095 build_os=$build_os
21096
21097 # A sed program that does not truncate output.
21098 SED=$lt_SED
21099
21100 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21101 Xsed="\$SED -e 1s/^X//"
21102
21103 # A grep program that handles long lines.
21104 GREP=$lt_GREP
21105
21106 # An ERE matcher.
21107 EGREP=$lt_EGREP
21108
21109 # A literal string matcher.
21110 FGREP=$lt_FGREP
21111
21112 # A BSD- or MS-compatible name lister.
21113 NM=$lt_NM
21114
21115 # Whether we need soft or hard links.
21116 LN_S=$lt_LN_S
21117
21118 # What is the maximum length of a command?
21119 max_cmd_len=$max_cmd_len
21120
21121 # Object file suffix (normally "o").
21122 objext=$ac_objext
21123
21124 # Executable file suffix (normally "").
21125 exeext=$exeext
21126
21127 # whether the shell understands "unset".
21128 lt_unset=$lt_unset
21129
21130 # turn spaces into newlines.
21131 SP2NL=$lt_lt_SP2NL
21132
21133 # turn newlines into spaces.
21134 NL2SP=$lt_lt_NL2SP
21135
21136 # convert \$build file names to \$host format.
21137 to_host_file_cmd=$lt_cv_to_host_file_cmd
21138
21139 # convert \$build files to toolchain format.
21140 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21141
21142 # A file(cmd) program that detects file types.
21143 FILECMD=$lt_FILECMD
21144
21145 # An object symbol dumper.
21146 OBJDUMP=$lt_OBJDUMP
21147
21148 # Method to check whether dependent libraries are shared objects.
21149 deplibs_check_method=$lt_deplibs_check_method
21150
21151 # Command to use when deplibs_check_method = "file_magic".
21152 file_magic_cmd=$lt_file_magic_cmd
21153
21154 # How to find potential files when deplibs_check_method = "file_magic".
21155 file_magic_glob=$lt_file_magic_glob
21156
21157 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21158 want_nocaseglob=$lt_want_nocaseglob
21159
21160 # DLL creation program.
21161 DLLTOOL=$lt_DLLTOOL
21162
21163 # Command to associate shared and link libraries.
21164 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21165
21166 # The archiver.
21167 AR=$lt_AR
21168
21169 # Flags to create an archive (by configure).
21170 lt_ar_flags=$lt_ar_flags
21171
21172 # Flags to create an archive.
21173 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21174
21175 # How to feed a file listing to the archiver.
21176 archiver_list_spec=$lt_archiver_list_spec
21177
21178 # A symbol stripping program.
21179 STRIP=$lt_STRIP
21180
21181 # Commands used to install an old-style archive.
21182 RANLIB=$lt_RANLIB
21183 old_postinstall_cmds=$lt_old_postinstall_cmds
21184 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21185
21186 # Whether to use a lock for old archive extraction.
21187 lock_old_archive_extraction=$lock_old_archive_extraction
21188
21189 # A C compiler.
21190 LTCC=$lt_CC
21191
21192 # LTCC compiler flags.
21193 LTCFLAGS=$lt_CFLAGS
21194
21195 # Take the output of nm and produce a listing of raw symbols and C names.
21196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21197
21198 # Transform the output of nm in a proper C declaration.
21199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21200
21201 # Transform the output of nm into a list of symbols to manually relocate.
21202 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21203
21204 # Transform the output of nm in a C name address pair.
21205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21206
21207 # Transform the output of nm in a C name address pair when lib prefix is needed.
21208 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21209
21210 # The name lister interface.
21211 nm_interface=$lt_lt_cv_nm_interface
21212
21213 # Specify filename containing input files for \$NM.
21214 nm_file_list_spec=$lt_nm_file_list_spec
21215
21216 # The root where to search for dependent libraries,and where our libraries should be installed.
21217 lt_sysroot=$lt_sysroot
21218
21219 # Command to truncate a binary pipe.
21220 lt_truncate_bin=$lt_lt_cv_truncate_bin
21221
21222 # The name of the directory that contains temporary libtool files.
21223 objdir=$objdir
21224
21225 # Used to examine libraries when file_magic_cmd begins with "file".
21226 MAGIC_CMD=$MAGIC_CMD
21227
21228 # Must we lock files when doing compilation?
21229 need_locks=$lt_need_locks
21230
21231 # Manifest tool.
21232 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21233
21234 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21235 DSYMUTIL=$lt_DSYMUTIL
21236
21237 # Tool to change global to local symbols on Mac OS X.
21238 NMEDIT=$lt_NMEDIT
21239
21240 # Tool to manipulate fat objects and archives on Mac OS X.
21241 LIPO=$lt_LIPO
21242
21243 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21244 OTOOL=$lt_OTOOL
21245
21246 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21247 OTOOL64=$lt_OTOOL64
21248
21249 # Old archive suffix (normally "a").
21250 libext=$libext
21251
21252 # Shared library suffix (normally ".so").
21253 shrext_cmds=$lt_shrext_cmds
21254
21255 # The commands to extract the exported symbol list from a shared archive.
21256 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21257
21258 # Variables whose values should be saved in libtool wrapper scripts and
21259 # restored at link time.
21260 variables_saved_for_relink=$lt_variables_saved_for_relink
21261
21262 # Do we need the "lib" prefix for modules?
21263 need_lib_prefix=$need_lib_prefix
21264
21265 # Do we need a version for libraries?
21266 need_version=$need_version
21267
21268 # Library versioning type.
21269 version_type=$version_type
21270
21271 # Shared library runtime path variable.
21272 runpath_var=$runpath_var
21273
21274 # Shared library path variable.
21275 shlibpath_var=$shlibpath_var
21276
21277 # Is shlibpath searched before the hard-coded library search path?
21278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21279
21280 # Format of library name prefix.
21281 libname_spec=$lt_libname_spec
21282
21283 # List of archive names. First name is the real one, the rest are links.
21284 # The last name is the one that the linker finds with -lNAME
21285 library_names_spec=$lt_library_names_spec
21286
21287 # The coded name of the library, if different from the real name.
21288 soname_spec=$lt_soname_spec
21289
21290 # Permission mode override for installation of shared libraries.
21291 install_override_mode=$lt_install_override_mode
21292
21293 # Command to use after installation of a shared archive.
21294 postinstall_cmds=$lt_postinstall_cmds
21295
21296 # Command to use after uninstallation of a shared archive.
21297 postuninstall_cmds=$lt_postuninstall_cmds
21298
21299 # Commands used to finish a libtool library installation in a directory.
21300 finish_cmds=$lt_finish_cmds
21301
21302 # As "finish_cmds", except a single script fragment to be evaled but
21303 # not shown.
21304 finish_eval=$lt_finish_eval
21305
21306 # Whether we should hardcode library paths into libraries.
21307 hardcode_into_libs=$hardcode_into_libs
21308
21309 # Compile-time system search path for libraries.
21310 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21311
21312 # Detected run-time system search path for libraries.
21313 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21314
21315 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21316 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21317
21318 # Whether dlopen is supported.
21319 dlopen_support=$enable_dlopen
21320
21321 # Whether dlopen of programs is supported.
21322 dlopen_self=$enable_dlopen_self
21323
21324 # Whether dlopen of statically linked programs is supported.
21325 dlopen_self_static=$enable_dlopen_self_static
21326
21327 # Commands to strip libraries.
21328 old_striplib=$lt_old_striplib
21329 striplib=$lt_striplib
21330
21331
21332 # The linker used to build libraries.
21333 LD=$lt_LD
21334
21335 # How to create reloadable object files.
21336 reload_flag=$lt_reload_flag
21337 reload_cmds=$lt_reload_cmds
21338
21339 # Commands used to build an old-style archive.
21340 old_archive_cmds=$lt_old_archive_cmds
21341
21342 # A language specific compiler.
21343 CC=$lt_compiler
21344
21345 # Is the compiler the GNU compiler?
21346 with_gcc=$GCC
21347
21348 # Compiler flag to turn off builtin functions.
21349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21350
21351 # Additional compiler flags for building library objects.
21352 pic_flag=$lt_lt_prog_compiler_pic
21353
21354 # How to pass a linker flag through the compiler.
21355 wl=$lt_lt_prog_compiler_wl
21356
21357 # Compiler flag to prevent dynamic linking.
21358 link_static_flag=$lt_lt_prog_compiler_static
21359
21360 # Does compiler simultaneously support -c and -o options?
21361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21362
21363 # Whether or not to add -lc for building shared libraries.
21364 build_libtool_need_lc=$archive_cmds_need_lc
21365
21366 # Whether or not to disallow shared libs when runtime libs are static.
21367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21368
21369 # Compiler flag to allow reflexive dlopens.
21370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21371
21372 # Compiler flag to generate shared objects directly from archives.
21373 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21374
21375 # Whether the compiler copes with passing no objects directly.
21376 compiler_needs_object=$lt_compiler_needs_object
21377
21378 # Create an old-style archive from a shared archive.
21379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21380
21381 # Create a temporary old-style archive to link instead of a shared archive.
21382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21383
21384 # Commands used to build a shared archive.
21385 archive_cmds=$lt_archive_cmds
21386 archive_expsym_cmds=$lt_archive_expsym_cmds
21387
21388 # Commands used to build a loadable module if different from building
21389 # a shared archive.
21390 module_cmds=$lt_module_cmds
21391 module_expsym_cmds=$lt_module_expsym_cmds
21392
21393 # Whether we are building with GNU ld or not.
21394 with_gnu_ld=$lt_with_gnu_ld
21395
21396 # Flag that allows shared libraries with undefined symbols to be built.
21397 allow_undefined_flag=$lt_allow_undefined_flag
21398
21399 # Flag that enforces no undefined symbols.
21400 no_undefined_flag=$lt_no_undefined_flag
21401
21402 # Flag to hardcode \$libdir into a binary during linking.
21403 # This must work even if \$libdir does not exist
21404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21405
21406 # Whether we need a single "-rpath" flag with a separated argument.
21407 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21408
21409 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21410 # DIR into the resulting binary.
21411 hardcode_direct=$hardcode_direct
21412
21413 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21414 # DIR into the resulting binary and the resulting library dependency is
21415 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21416 # library is relocated.
21417 hardcode_direct_absolute=$hardcode_direct_absolute
21418
21419 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21420 # into the resulting binary.
21421 hardcode_minus_L=$hardcode_minus_L
21422
21423 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21424 # into the resulting binary.
21425 hardcode_shlibpath_var=$hardcode_shlibpath_var
21426
21427 # Set to "yes" if building a shared library automatically hardcodes DIR
21428 # into the library and all subsequent libraries and executables linked
21429 # against it.
21430 hardcode_automatic=$hardcode_automatic
21431
21432 # Set to yes if linker adds runtime paths of dependent libraries
21433 # to runtime path list.
21434 inherit_rpath=$inherit_rpath
21435
21436 # Whether libtool must link a program against all its dependency libraries.
21437 link_all_deplibs=$link_all_deplibs
21438
21439 # Set to "yes" if exported symbols are required.
21440 always_export_symbols=$always_export_symbols
21441
21442 # The commands to list exported symbols.
21443 export_symbols_cmds=$lt_export_symbols_cmds
21444
21445 # Symbols that should not be listed in the preloaded symbols.
21446 exclude_expsyms=$lt_exclude_expsyms
21447
21448 # Symbols that must always be exported.
21449 include_expsyms=$lt_include_expsyms
21450
21451 # Commands necessary for linking programs (against libraries) with templates.
21452 prelink_cmds=$lt_prelink_cmds
21453
21454 # Commands necessary for finishing linking programs.
21455 postlink_cmds=$lt_postlink_cmds
21456
21457 # Specify filename containing input files.
21458 file_list_spec=$lt_file_list_spec
21459
21460 # How to hardcode a shared library path into an executable.
21461 hardcode_action=$hardcode_action
21462
21463 # ### END LIBTOOL CONFIG
21464
21465 _LT_EOF
21466
21467 cat <<'_LT_EOF' >> "$cfgfile"
21468
21469 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21470
21471 # func_munge_path_list VARIABLE PATH
21472 # -----------------------------------
21473 # VARIABLE is name of variable containing _space_ separated list of
21474 # directories to be munged by the contents of PATH, which is string
21475 # having a format:
21476 # "DIR[:DIR]:"
21477 # string "DIR[ DIR]" will be prepended to VARIABLE
21478 # ":DIR[:DIR]"
21479 # string "DIR[ DIR]" will be appended to VARIABLE
21480 # "DIRP[:DIRP]::[DIRA:]DIRA"
21481 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21482 # "DIRA[ DIRA]" will be appended to VARIABLE
21483 # "DIR[:DIR]"
21484 # VARIABLE will be replaced by "DIR[ DIR]"
21485 func_munge_path_list ()
21486 {
21487 case x$2 in
21488 x)
21489 ;;
21490 *:)
21491 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21492 ;;
21493 x:*)
21494 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21495 ;;
21496 *::*)
21497 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21498 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21499 ;;
21500 *)
21501 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21502 ;;
21503 esac
21504 }
21505
21506
21507 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21508 func_cc_basename ()
21509 {
21510 for cc_temp in $*""; do
21511 case $cc_temp in
21512 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21513 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21514 \-*) ;;
21515 *) break;;
21516 esac
21517 done
21518 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21519 }
21520
21521
21522 # ### END FUNCTIONS SHARED WITH CONFIGURE
21523
21524 _LT_EOF
21525
21526 case $host_os in
21527 aix3*)
21528 cat <<\_LT_EOF >> "$cfgfile"
21529 # AIX sometimes has problems with the GCC collect2 program. For some
21530 # reason, if we set the COLLECT_NAMES environment variable, the problems
21531 # vanish in a puff of smoke.
21532 if test set != "${COLLECT_NAMES+set}"; then
21533 COLLECT_NAMES=
21534 export COLLECT_NAMES
21535 fi
21536 _LT_EOF
21537 ;;
21538 esac
21539
21540
21541
21542 ltmain=$ac_aux_dir/ltmain.sh
21543
21544
21545 # We use sed instead of cat because bash on DJGPP gets confused if
21546 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21547 # text mode, it properly converts lines to CR/LF. This bash problem
21548 # is reportedly fixed, but why not run on old versions too?
21549 $SED '$q' "$ltmain" >> "$cfgfile" \
21550 || (rm -f "$cfgfile"; exit 1)
21551
21552 mv -f "$cfgfile" "$ofile" ||
21553 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21554 chmod +x "$ofile"
21555
21556 ;;
21557
21558 esac
21559 done # for ac_tag
21560
21561
21562 as_fn_exit 0
21563 _ACEOF
21564 ac_clean_files=$ac_clean_files_save
21565
21566 test $ac_write_fail = 0 ||
21567 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21568
21569
21570 # configure is writing to config.log, and then calls config.status.
21571 # config.status does its own redirection, appending to config.log.
21572 # Unfortunately, on DOS this fails, as config.log is still kept open
21573 # by configure, so config.status won't be able to write to it; its
21574 # output is simply discarded. So we exec the FD to /dev/null,
21575 # effectively closing config.log, so it can be properly (re)opened and
21576 # appended to by config.status. When coming back to configure, we
21577 # need to make the FD available again.
21578 if test "$no_create" != yes; then
21579 ac_cs_success=:
21580 ac_config_status_args=
21581 test "$silent" = yes &&
21582 ac_config_status_args="$ac_config_status_args --quiet"
21583 exec 5>/dev/null
21584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21585 exec 5>>config.log
21586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21587 # would make configure fail if this is the last instruction.
21588 $ac_cs_success || as_fn_exit 1
21589 fi
21590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21592 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21593 fi
21594
21595
21596