configure revision 1.1.1.7.2.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXpm 3.5.17.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/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/libxpm/-/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='libXpm'
624 PACKAGE_TARNAME='libXpm'
625 PACKAGE_VERSION='3.5.17'
626 PACKAGE_STRING='libXpm 3.5.17'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 HAVE_GLIB_FALSE
668 HAVE_GLIB_TRUE
669 GLIB_LIBS
670 GLIB_CFLAGS
671 ENABLE_UNIT_TESTS_FALSE
672 ENABLE_UNIT_TESTS_TRUE
673 XORG_MALLOC_DEBUG_ENV
674 XPM_PATH_UNCOMPRESS
675 XPM_PATH_COMPRESS
676 XPM_PATH_GZIP
677 COMPRESSED_PIXMAPS_FALSE
678 COMPRESSED_PIXMAPS_TRUE
679 USE_GETTEXT_FALSE
680 USE_GETTEXT_TRUE
681 LOCALEDIR
682 BUILD_SXPM_FALSE
683 BUILD_SXPM_TRUE
684 SXPM_LIBS
685 SXPM_CFLAGS
686 XPM_LIBS
687 XPM_CFLAGS
688 MAN_SUBSTS
689 XORG_MAN_PAGE
690 ADMIN_MAN_DIR
691 DRIVER_MAN_DIR
692 MISC_MAN_DIR
693 FILE_MAN_DIR
694 LIB_MAN_DIR
695 APP_MAN_DIR
696 ADMIN_MAN_SUFFIX
697 DRIVER_MAN_SUFFIX
698 MISC_MAN_SUFFIX
699 FILE_MAN_SUFFIX
700 LIB_MAN_SUFFIX
701 APP_MAN_SUFFIX
702 INSTALL_CMD
703 PKG_CONFIG_LIBDIR
704 PKG_CONFIG_PATH
705 PKG_CONFIG
706 CHANGELOG_CMD
707 STRICT_CFLAGS
708 CWARNFLAGS
709 BASE_CFLAGS
710 LT_SYS_LIBRARY_PATH
711 OTOOL64
712 OTOOL
713 LIPO
714 NMEDIT
715 DSYMUTIL
716 MANIFEST_TOOL
717 RANLIB
718 ac_ct_AR
719 AR
720 DLLTOOL
721 OBJDUMP
722 FILECMD
723 LN_S
724 NM
725 ac_ct_DUMPBIN
726 DUMPBIN
727 LD
728 FGREP
729 EGREP
730 GREP
731 SED
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 LIBTOOL
757 AM_BACKSLASH
758 AM_DEFAULT_VERBOSITY
759 AM_DEFAULT_V
760 AM_V
761 CSCOPE
762 ETAGS
763 CTAGS
764 am__untar
765 am__tar
766 AMTAR
767 am__leading_dot
768 SET_MAKE
769 AWK
770 mkdir_p
771 MKDIR_P
772 INSTALL_STRIP_PROGRAM
773 STRIP
774 install_sh
775 MAKEINFO
776 AUTOHEADER
777 AUTOMAKE
778 AUTOCONF
779 ACLOCAL
780 VERSION
781 PACKAGE
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 target_alias
788 host_alias
789 build_alias
790 LIBS
791 ECHO_T
792 ECHO_N
793 ECHO_C
794 DEFS
795 mandir
796 localedir
797 libdir
798 psdir
799 pdfdir
800 dvidir
801 htmldir
802 infodir
803 docdir
804 oldincludedir
805 includedir
806 runstatedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL
826 am__quote'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_silent_rules
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_aix_soname
836 enable_dependency_tracking
837 with_gnu_ld
838 with_sysroot
839 enable_libtool_lock
840 enable_selective_werror
841 enable_strict_compilation
842 with_localedir
843 enable_open_zfile
844 enable_stat_zfile
845 enable_unit_tests
846 with_glib
847 '
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 LT_SYS_LIBRARY_PATH
857 PKG_CONFIG
858 PKG_CONFIG_PATH
859 PKG_CONFIG_LIBDIR
860 XPM_CFLAGS
861 XPM_LIBS
862 SXPM_CFLAGS
863 SXPM_LIBS
864 XORG_MALLOC_DEBUG_ENV
865 GLIB_CFLAGS
866 GLIB_LIBS'
867
868
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
890
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 runstatedir='${localstatedir}/run'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
917
918 ac_prev=
919 ac_dashdash=
920 for ac_option
921 do
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
925 ac_prev=
926 continue
927 fi
928
929 case $ac_option in
930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 *=) ac_optarg= ;;
932 *) ac_optarg=yes ;;
933 esac
934
935 case $ac_dashdash$ac_option in
936 --)
937 ac_dashdash=yes ;;
938
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 ac_prev=bindir ;;
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 bindir=$ac_optarg ;;
943
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
948
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
955
956 --config-cache | -C)
957 cache_file=config.cache ;;
958
959 -datadir | --datadir | --datadi | --datad)
960 ac_prev=datadir ;;
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
963
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
970
971 -disable-* | --disable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: \`$ac_useropt'"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=no ;;
986
987 -docdir | --docdir | --docdi | --doc | --do)
988 ac_prev=docdir ;;
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 docdir=$ac_optarg ;;
991
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 ac_prev=dvidir ;;
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 dvidir=$ac_optarg ;;
996
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
1020 exec_prefix=$ac_optarg ;;
1021
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1024 with_gas=yes ;;
1025
1026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
1032
1033 -host | --host | --hos | --ho)
1034 ac_prev=host_alias ;;
1035 -host=* | --host=* | --hos=* | --ho=*)
1036 host_alias=$ac_optarg ;;
1037
1038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 ac_prev=htmldir ;;
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 | --ht=*)
1042 htmldir=$ac_optarg ;;
1043
1044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
1049 includedir=$ac_optarg ;;
1050
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 ac_prev=infodir ;;
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054 infodir=$ac_optarg ;;
1055
1056 -libdir | --libdir | --libdi | --libd)
1057 ac_prev=libdir ;;
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059 libdir=$ac_optarg ;;
1060
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
1066 libexecdir=$ac_optarg ;;
1067
1068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1072
1073 -localstatedir | --localstatedir | --localstatedi | --localstated \
1074 | --localstate | --localstat | --localsta | --localst | --locals)
1075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078 localstatedir=$ac_optarg ;;
1079
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 ac_prev=mandir ;;
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083 mandir=$ac_optarg ;;
1084
1085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1087 with_fp=no ;;
1088
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090 | --no-cr | --no-c | -n)
1091 no_create=yes ;;
1092
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 no_recursion=yes ;;
1096
1097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104 oldincludedir=$ac_optarg ;;
1105
1106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 ac_prev=prefix ;;
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109 prefix=$ac_optarg ;;
1110
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116 program_prefix=$ac_optarg ;;
1117
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123 program_suffix=$ac_optarg ;;
1124
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
1140 program_transform_name=$ac_optarg ;;
1141
1142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 ac_prev=pdfdir ;;
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1146
1147 -psdir | --psdir | --psdi | --psd | --ps)
1148 ac_prev=psdir ;;
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 psdir=$ac_optarg ;;
1151
1152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1154 silent=yes ;;
1155
1156 -runstatedir | --runstatedir | --runstatedi | --runstated \
1157 | --runstate | --runstat | --runsta | --runst | --runs \
1158 | --run | --ru | --r)
1159 ac_prev=runstatedir ;;
1160 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1161 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1162 | --run=* | --ru=* | --r=*)
1163 runstatedir=$ac_optarg ;;
1164
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1170
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1181
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1186
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1191
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1198
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1203
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1206
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1209
1210 -with-* | --with-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: \`$ac_useropt'"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=\$ac_optarg ;;
1225
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: \`$ac_useropt'"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1241
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1245
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1252
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1259
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1262 ;;
1263
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 esac
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1273
1274 *)
1275 # FIXME: should be removed in autoconf 3.0.
1276 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280 ;;
1281
1282 esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 esac
1296 fi
1297
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir runstatedir
1303 do
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1306 case $ac_val in
1307 */ )
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1310 esac
1311 # Be sure to have absolute directory names.
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1332 fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 printf "%s\n" X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1379 fi
1380 else
1381 ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures libXpm 3.5.17 to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1469 _ACEOF
1470
1471 cat <<\_ACEOF
1472
1473 Program names:
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477
1478 System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive ) echo "Configuration of libXpm 3.5.17:";;
1487 esac
1488 cat <<\_ACEOF
1489
1490 Optional Features:
1491 --disable-option-checking ignore unrecognized --enable/--with options
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-silent-rules less verbose build output (undo: "make V=1")
1495 --disable-silent-rules verbose build output (undo: "make V=0")
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-static[=PKGS] build static libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --enable-dependency-tracking
1501 do not reject slow dependency extractors
1502 --disable-dependency-tracking
1503 speeds up one-time build
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505 --disable-selective-werror
1506 Turn off selective compiler errors. (default:
1507 enabled)
1508 --enable-strict-compilation
1509 Enable all warnings from compiler and make them
1510 errors (default: disabled)
1511 --enable-open-zfile Search for files with .Z & .gz extensions
1512 automatically [default=auto]
1513 --enable-stat-zfile Search for files with .Z & .gz extensions
1514 automatically [default=auto]
1515 --enable-unit-tests Enable building unit test cases (default: auto)
1516
1517 Optional Packages:
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1521 both]
1522 --with-aix-soname=aix|svr4|both
1523 shared library versioning (aka "SONAME") variant to
1524 provide on AIX, [default=aix].
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1527 compiler's sysroot if not specified).
1528 --with-localedir=<path> Path to install message files in (default:
1529 datadir/locale)
1530 --with-glib Use GLib library for unit testing (default: auto)
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 LT_SYS_LIBRARY_PATH
1541 User-defined run-time library search path.
1542 PKG_CONFIG path to pkg-config utility
1543 PKG_CONFIG_PATH
1544 directories to add to pkg-config's search path
1545 PKG_CONFIG_LIBDIR
1546 path overriding pkg-config's built-in search path
1547 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config
1548 XPM_LIBS linker flags for XPM, overriding pkg-config
1549 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1550 SXPM_LIBS linker flags for SXPM, overriding pkg-config
1551 XORG_MALLOC_DEBUG_ENV
1552 Environment variables to enable memory checking in tests
1553 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1554 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1555
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1558
1559 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/>.
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for configure.gnu first; this name is used for a wrapper for
1606 # Metaconfig's "Configure" on case-insensitive file systems.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1618 fi
1619
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 libXpm configure 3.5.17
1624 generated by GNU Autoconf 2.71
1625
1626 Copyright (C) 2021 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1629 _ACEOF
1630 exit
1631 fi
1632
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1636
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest.beam
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 printf "%s\n" "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext
1663 then :
1664 ac_retval=0
1665 else $as_nop
1666 printf "%s\n" "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_compile
1675
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 printf "%s\n" "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 test -x conftest$ac_exeext
1704 }
1705 then :
1706 ac_retval=0
1707 else $as_nop
1708 printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712 fi
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_link
1722
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else $as_nop
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 $4
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_c_try_compile "$LINENO"
1742 then :
1743 eval "$3=yes"
1744 else $as_nop
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 printf "%s\n" "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_check_func LINENO FUNC VAR
1757 # ----------------------------------
1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 printf %s "checking for $2... " >&6; }
1764 if eval test \${$3+y}
1765 then :
1766 printf %s "(cached) " >&6
1767 else $as_nop
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1772 #define $2 innocuous_$2
1773
1774 /* System header to define __stub macros and hopefully few prototypes,
1775 which can conflict with char $2 (); below. */
1776
1777 #include <limits.h>
1778 #undef $2
1779
1780 /* Override any GCC internal prototype to avoid an error.
1781 Use char because int might match the return type of a GCC
1782 builtin and then its argument prototype would still apply. */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 char $2 ();
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined __stub_$2 || defined __stub___$2
1791 choke me
1792 #endif
1793
1794 int
1795 main (void)
1796 {
1797 return $2 ();
1798 ;
1799 return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_link "$LINENO"
1803 then :
1804 eval "$3=yes"
1805 else $as_nop
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1809 conftest$ac_exeext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 printf "%s\n" "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_func
1817
1818 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1819 # ------------------------------------------------------------------
1820 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1821 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1822 ac_fn_check_decl ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 as_decl_name=`echo $2|sed 's/ *(.*//'`
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1827 printf %s "checking whether $as_decl_name is declared... " >&6; }
1828 if eval test \${$3+y}
1829 then :
1830 printf %s "(cached) " >&6
1831 else $as_nop
1832 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1833 eval ac_save_FLAGS=\$$6
1834 as_fn_append $6 " $5"
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $4
1838 int
1839 main (void)
1840 {
1841 #ifndef $as_decl_name
1842 #ifdef __cplusplus
1843 (void) $as_decl_use;
1844 #else
1845 (void) $as_decl_name;
1846 #endif
1847 #endif
1848
1849 ;
1850 return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"
1854 then :
1855 eval "$3=yes"
1856 else $as_nop
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1860 eval $6=\$ac_save_FLAGS
1861
1862 fi
1863 eval ac_res=\$$3
1864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 printf "%s\n" "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_check_decl
1869 ac_configure_args_raw=
1870 for ac_arg
1871 do
1872 case $ac_arg in
1873 *\'*)
1874 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 esac
1876 as_fn_append ac_configure_args_raw " '$ac_arg'"
1877 done
1878
1879 case $ac_configure_args_raw in
1880 *$as_nl*)
1881 ac_safe_unquote= ;;
1882 *)
1883 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1884 ac_unsafe_a="$ac_unsafe_z#~"
1885 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1886 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1887 esac
1888
1889 cat >config.log <<_ACEOF
1890 This file contains any messages produced by compilers while
1891 running configure, to aid debugging if configure makes a mistake.
1892
1893 It was created by libXpm $as_me 3.5.17, which was
1894 generated by GNU Autoconf 2.71. Invocation command line was
1895
1896 $ $0$ac_configure_args_raw
1897
1898 _ACEOF
1899 exec 5>>config.log
1900 {
1901 cat <<_ASUNAME
1902 ## --------- ##
1903 ## Platform. ##
1904 ## --------- ##
1905
1906 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911
1912 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1914
1915 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1916 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1917 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1919 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1920 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1921 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1922
1923 _ASUNAME
1924
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928 IFS=$as_save_IFS
1929 case $as_dir in #(((
1930 '') as_dir=./ ;;
1931 */) ;;
1932 *) as_dir=$as_dir/ ;;
1933 esac
1934 printf "%s\n" "PATH: $as_dir"
1935 done
1936 IFS=$as_save_IFS
1937
1938 } >&5
1939
1940 cat >&5 <<_ACEOF
1941
1942
1943 ## ----------- ##
1944 ## Core tests. ##
1945 ## ----------- ##
1946
1947 _ACEOF
1948
1949
1950 # Keep a trace of the command line.
1951 # Strip out --no-create and --no-recursion so they do not pile up.
1952 # Strip out --silent because we don't want to record it for future runs.
1953 # Also quote any args containing shell meta-characters.
1954 # Make two passes to allow for proper duplicate-argument suppression.
1955 ac_configure_args=
1956 ac_configure_args0=
1957 ac_configure_args1=
1958 ac_must_keep_next=false
1959 for ac_pass in 1 2
1960 do
1961 for ac_arg
1962 do
1963 case $ac_arg in
1964 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1966 | -silent | --silent | --silen | --sile | --sil)
1967 continue ;;
1968 *\'*)
1969 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1970 esac
1971 case $ac_pass in
1972 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1973 2)
1974 as_fn_append ac_configure_args1 " '$ac_arg'"
1975 if test $ac_must_keep_next = true; then
1976 ac_must_keep_next=false # Got value, back to normal.
1977 else
1978 case $ac_arg in
1979 *=* | --config-cache | -C | -disable-* | --disable-* \
1980 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1981 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1982 | -with-* | --with-* | -without-* | --without-* | --x)
1983 case "$ac_configure_args0 " in
1984 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1985 esac
1986 ;;
1987 -* ) ac_must_keep_next=true ;;
1988 esac
1989 fi
1990 as_fn_append ac_configure_args " '$ac_arg'"
1991 ;;
1992 esac
1993 done
1994 done
1995 { ac_configure_args0=; unset ac_configure_args0;}
1996 { ac_configure_args1=; unset ac_configure_args1;}
1997
1998 # When interrupted or exit'd, cleanup temporary files, and complete
1999 # config.log. We remove comments because anyway the quotes in there
2000 # would cause problems or look ugly.
2001 # WARNING: Use '\'' to represent an apostrophe within the trap.
2002 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2003 trap 'exit_status=$?
2004 # Sanitize IFS.
2005 IFS=" "" $as_nl"
2006 # Save into config.log some information that might help in debugging.
2007 {
2008 echo
2009
2010 printf "%s\n" "## ---------------- ##
2011 ## Cache variables. ##
2012 ## ---------------- ##"
2013 echo
2014 # The following way of writing the cache mishandles newlines in values,
2015 (
2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in #(
2019 *${as_nl}*)
2020 case $ac_var in #(
2021 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023 esac
2024 case $ac_var in #(
2025 _ | IFS | as_nl) ;; #(
2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027 *) { eval $ac_var=; unset $ac_var;} ;;
2028 esac ;;
2029 esac
2030 done
2031 (set) 2>&1 |
2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033 *${as_nl}ac_space=\ *)
2034 sed -n \
2035 "s/'\''/'\''\\\\'\'''\''/g;
2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037 ;; #(
2038 *)
2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040 ;;
2041 esac |
2042 sort
2043 )
2044 echo
2045
2046 printf "%s\n" "## ----------------- ##
2047 ## Output variables. ##
2048 ## ----------------- ##"
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 printf "%s\n" "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 printf "%s\n" "## ------------------- ##
2062 ## File substitutions. ##
2063 ## ------------------- ##"
2064 echo
2065 for ac_var in $ac_subst_files
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 printf "%s\n" "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074 fi
2075
2076 if test -s confdefs.h; then
2077 printf "%s\n" "## ----------- ##
2078 ## confdefs.h. ##
2079 ## ----------- ##"
2080 echo
2081 cat confdefs.h
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
2085 printf "%s\n" "$as_me: caught signal $ac_signal"
2086 printf "%s\n" "$as_me: exit $exit_status"
2087 } >&5
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 exit $exit_status
2091 ' 0
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 done
2095 ac_signal=0
2096
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2099
2100 printf "%s\n" "/* confdefs.h */" > confdefs.h
2101
2102 # Predefined preprocessor variables.
2103
2104 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2105
2106 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2107
2108 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2109
2110 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2111
2112 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2113
2114 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2115
2116
2117 # Let the site file select an alternate cache file if it wants to.
2118 # Prefer an explicitly selected file to automatically selected ones.
2119 if test -n "$CONFIG_SITE"; then
2120 ac_site_files="$CONFIG_SITE"
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2123 else
2124 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2125 fi
2126
2127 for ac_site_file in $ac_site_files
2128 do
2129 case $ac_site_file in #(
2130 */*) :
2131 ;; #(
2132 *) :
2133 ac_site_file=./$ac_site_file ;;
2134 esac
2135 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file" \
2140 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2144 fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special files
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2153 case $cache_file in
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2156 esac
2157 fi
2158 else
2159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2161 >$cache_file
2162 fi
2163
2164 # Test code for whether the C compiler supports C89 (global declarations)
2165 ac_c_conftest_c89_globals='
2166 /* Does the compiler advertise C89 conformance?
2167 Do not test the value of __STDC__, because some compilers set it to 0
2168 while being otherwise adequately conformant. */
2169 #if !defined __STDC__
2170 # error "Compiler does not advertise C89 conformance"
2171 #endif
2172
2173 #include <stddef.h>
2174 #include <stdarg.h>
2175 struct stat;
2176 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2177 struct buf { int x; };
2178 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2179 static char *e (p, i)
2180 char **p;
2181 int i;
2182 {
2183 return p[i];
2184 }
2185 static char *f (char * (*g) (char **, int), char **p, ...)
2186 {
2187 char *s;
2188 va_list v;
2189 va_start (v,p);
2190 s = g (p, va_arg (v,int));
2191 va_end (v);
2192 return s;
2193 }
2194
2195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2196 function prototypes and stuff, but not \xHH hex character constants.
2197 These do not provoke an error unfortunately, instead are silently treated
2198 as an "x". The following induces an error, until -std is added to get
2199 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2200 array size at least. It is necessary to write \x00 == 0 to get something
2201 that is true only with -std. */
2202 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2203
2204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2205 inside strings and character constants. */
2206 #define FOO(x) '\''x'\''
2207 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2208
2209 int test (int i, double x);
2210 struct s1 {int (*f) (int a);};
2211 struct s2 {int (*f) (double a);};
2212 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2213 int, int);'
2214
2215 # Test code for whether the C compiler supports C89 (body of main).
2216 ac_c_conftest_c89_main='
2217 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2218 '
2219
2220 # Test code for whether the C compiler supports C99 (global declarations)
2221 ac_c_conftest_c99_globals='
2222 // Does the compiler advertise C99 conformance?
2223 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2224 # error "Compiler does not advertise C99 conformance"
2225 #endif
2226
2227 #include <stdbool.h>
2228 extern int puts (const char *);
2229 extern int printf (const char *, ...);
2230 extern int dprintf (int, const char *, ...);
2231 extern void *malloc (size_t);
2232
2233 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2234 // dprintf is used instead of fprintf to avoid needing to declare
2235 // FILE and stderr.
2236 #define debug(...) dprintf (2, __VA_ARGS__)
2237 #define showlist(...) puts (#__VA_ARGS__)
2238 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2239 static void
2240 test_varargs_macros (void)
2241 {
2242 int x = 1234;
2243 int y = 5678;
2244 debug ("Flag");
2245 debug ("X = %d\n", x);
2246 showlist (The first, second, and third items.);
2247 report (x>y, "x is %d but y is %d", x, y);
2248 }
2249
2250 // Check long long types.
2251 #define BIG64 18446744073709551615ull
2252 #define BIG32 4294967295ul
2253 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2254 #if !BIG_OK
2255 #error "your preprocessor is broken"
2256 #endif
2257 #if BIG_OK
2258 #else
2259 #error "your preprocessor is broken"
2260 #endif
2261 static long long int bignum = -9223372036854775807LL;
2262 static unsigned long long int ubignum = BIG64;
2263
2264 struct incomplete_array
2265 {
2266 int datasize;
2267 double data[];
2268 };
2269
2270 struct named_init {
2271 int number;
2272 const wchar_t *name;
2273 double average;
2274 };
2275
2276 typedef const char *ccp;
2277
2278 static inline int
2279 test_restrict (ccp restrict text)
2280 {
2281 // See if C++-style comments work.
2282 // Iterate through items via the restricted pointer.
2283 // Also check for declarations in for loops.
2284 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2285 continue;
2286 return 0;
2287 }
2288
2289 // Check varargs and va_copy.
2290 static bool
2291 test_varargs (const char *format, ...)
2292 {
2293 va_list args;
2294 va_start (args, format);
2295 va_list args_copy;
2296 va_copy (args_copy, args);
2297
2298 const char *str = "";
2299 int number = 0;
2300 float fnumber = 0;
2301
2302 while (*format)
2303 {
2304 switch (*format++)
2305 {
2306 case '\''s'\'': // string
2307 str = va_arg (args_copy, const char *);
2308 break;
2309 case '\''d'\'': // int
2310 number = va_arg (args_copy, int);
2311 break;
2312 case '\''f'\'': // float
2313 fnumber = va_arg (args_copy, double);
2314 break;
2315 default:
2316 break;
2317 }
2318 }
2319 va_end (args_copy);
2320 va_end (args);
2321
2322 return *str && number && fnumber;
2323 }
2324 '
2325
2326 # Test code for whether the C compiler supports C99 (body of main).
2327 ac_c_conftest_c99_main='
2328 // Check bool.
2329 _Bool success = false;
2330 success |= (argc != 0);
2331
2332 // Check restrict.
2333 if (test_restrict ("String literal") == 0)
2334 success = true;
2335 char *restrict newvar = "Another string";
2336
2337 // Check varargs.
2338 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2339 test_varargs_macros ();
2340
2341 // Check flexible array members.
2342 struct incomplete_array *ia =
2343 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2344 ia->datasize = 10;
2345 for (int i = 0; i < ia->datasize; ++i)
2346 ia->data[i] = i * 1.234;
2347
2348 // Check named initializers.
2349 struct named_init ni = {
2350 .number = 34,
2351 .name = L"Test wide string",
2352 .average = 543.34343,
2353 };
2354
2355 ni.number = 58;
2356
2357 int dynamic_array[ni.number];
2358 dynamic_array[0] = argv[0][0];
2359 dynamic_array[ni.number - 1] = 543;
2360
2361 // work around unused variable warnings
2362 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2363 || dynamic_array[ni.number - 1] != 543);
2364 '
2365
2366 # Test code for whether the C compiler supports C11 (global declarations)
2367 ac_c_conftest_c11_globals='
2368 // Does the compiler advertise C11 conformance?
2369 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2370 # error "Compiler does not advertise C11 conformance"
2371 #endif
2372
2373 // Check _Alignas.
2374 char _Alignas (double) aligned_as_double;
2375 char _Alignas (0) no_special_alignment;
2376 extern char aligned_as_int;
2377 char _Alignas (0) _Alignas (int) aligned_as_int;
2378
2379 // Check _Alignof.
2380 enum
2381 {
2382 int_alignment = _Alignof (int),
2383 int_array_alignment = _Alignof (int[100]),
2384 char_alignment = _Alignof (char)
2385 };
2386 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2387
2388 // Check _Noreturn.
2389 int _Noreturn does_not_return (void) { for (;;) continue; }
2390
2391 // Check _Static_assert.
2392 struct test_static_assert
2393 {
2394 int x;
2395 _Static_assert (sizeof (int) <= sizeof (long int),
2396 "_Static_assert does not work in struct");
2397 long int y;
2398 };
2399
2400 // Check UTF-8 literals.
2401 #define u8 syntax error!
2402 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2403
2404 // Check duplicate typedefs.
2405 typedef long *long_ptr;
2406 typedef long int *long_ptr;
2407 typedef long_ptr long_ptr;
2408
2409 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2410 struct anonymous
2411 {
2412 union {
2413 struct { int i; int j; };
2414 struct { int k; long int l; } w;
2415 };
2416 int m;
2417 } v1;
2418 '
2419
2420 # Test code for whether the C compiler supports C11 (body of main).
2421 ac_c_conftest_c11_main='
2422 _Static_assert ((offsetof (struct anonymous, i)
2423 == offsetof (struct anonymous, w.k)),
2424 "Anonymous union alignment botch");
2425 v1.i = 2;
2426 v1.w.k = 5;
2427 ok |= v1.i != 5;
2428 '
2429
2430 # Test code for whether the C compiler supports C11 (complete).
2431 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2432 ${ac_c_conftest_c99_globals}
2433 ${ac_c_conftest_c11_globals}
2434
2435 int
2436 main (int argc, char **argv)
2437 {
2438 int ok = 0;
2439 ${ac_c_conftest_c89_main}
2440 ${ac_c_conftest_c99_main}
2441 ${ac_c_conftest_c11_main}
2442 return ok;
2443 }
2444 "
2445
2446 # Test code for whether the C compiler supports C99 (complete).
2447 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2448 ${ac_c_conftest_c99_globals}
2449
2450 int
2451 main (int argc, char **argv)
2452 {
2453 int ok = 0;
2454 ${ac_c_conftest_c89_main}
2455 ${ac_c_conftest_c99_main}
2456 return ok;
2457 }
2458 "
2459
2460 # Test code for whether the C compiler supports C89 (complete).
2461 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2462
2463 int
2464 main (int argc, char **argv)
2465 {
2466 int ok = 0;
2467 ${ac_c_conftest_c89_main}
2468 return ok;
2469 }
2470 "
2471
2472 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2473 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2474 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2475 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2476 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2477 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2478 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2479 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2480 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2481
2482 # Auxiliary files required by this configure script.
2483 ac_aux_files="tap-driver.sh compile config.guess config.sub ltmain.sh missing install-sh"
2484
2485 # Locations in which to look for auxiliary files.
2486 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2487
2488 # Search for a directory containing all of the required auxiliary files,
2489 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2490 # If we don't find one directory that contains all the files we need,
2491 # we report the set of missing files from the *first* directory in
2492 # $ac_aux_dir_candidates and give up.
2493 ac_missing_aux_files=""
2494 ac_first_candidate=:
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 as_found=false
2498 for as_dir in $ac_aux_dir_candidates
2499 do
2500 IFS=$as_save_IFS
2501 case $as_dir in #(((
2502 '') as_dir=./ ;;
2503 */) ;;
2504 *) as_dir=$as_dir/ ;;
2505 esac
2506 as_found=:
2507
2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2509 ac_aux_dir_found=yes
2510 ac_install_sh=
2511 for ac_aux in $ac_aux_files
2512 do
2513 # As a special case, if "install-sh" is required, that requirement
2514 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2515 # and $ac_install_sh is set appropriately for whichever one is found.
2516 if test x"$ac_aux" = x"install-sh"
2517 then
2518 if test -f "${as_dir}install-sh"; then
2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2520 ac_install_sh="${as_dir}install-sh -c"
2521 elif test -f "${as_dir}install.sh"; then
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2523 ac_install_sh="${as_dir}install.sh -c"
2524 elif test -f "${as_dir}shtool"; then
2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2526 ac_install_sh="${as_dir}shtool install -c"
2527 else
2528 ac_aux_dir_found=no
2529 if $ac_first_candidate; then
2530 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2531 else
2532 break
2533 fi
2534 fi
2535 else
2536 if test -f "${as_dir}${ac_aux}"; then
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2538 else
2539 ac_aux_dir_found=no
2540 if $ac_first_candidate; then
2541 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2542 else
2543 break
2544 fi
2545 fi
2546 fi
2547 done
2548 if test "$ac_aux_dir_found" = yes; then
2549 ac_aux_dir="$as_dir"
2550 break
2551 fi
2552 ac_first_candidate=false
2553
2554 as_found=false
2555 done
2556 IFS=$as_save_IFS
2557 if $as_found
2558 then :
2559
2560 else $as_nop
2561 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2562 fi
2563
2564
2565 # These three variables are undocumented and unsupported,
2566 # and are intended to be withdrawn in a future Autoconf release.
2567 # They can cause serious problems if a builder's source tree is in a directory
2568 # whose full name contains unusual characters.
2569 if test -f "${ac_aux_dir}config.guess"; then
2570 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2571 fi
2572 if test -f "${ac_aux_dir}config.sub"; then
2573 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2574 fi
2575 if test -f "$ac_aux_dir/configure"; then
2576 ac_configure="$SHELL ${ac_aux_dir}configure"
2577 fi
2578
2579 # Check that the precious variables saved in the cache have kept the same
2580 # value.
2581 ac_cache_corrupted=false
2582 for ac_var in $ac_precious_vars; do
2583 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2584 eval ac_new_set=\$ac_env_${ac_var}_set
2585 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2586 eval ac_new_val=\$ac_env_${ac_var}_value
2587 case $ac_old_set,$ac_new_set in
2588 set,)
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2590 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2591 ac_cache_corrupted=: ;;
2592 ,set)
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2594 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,);;
2597 *)
2598 if test "x$ac_old_val" != "x$ac_new_val"; then
2599 # differences in whitespace do not lead to failure.
2600 ac_old_val_w=`echo x $ac_old_val`
2601 ac_new_val_w=`echo x $ac_new_val`
2602 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2604 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2605 ac_cache_corrupted=:
2606 else
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2608 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2609 eval $ac_var=\$ac_old_val
2610 fi
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2612 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2614 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2615 fi;;
2616 esac
2617 # Pass precious variables to config.status.
2618 if test "$ac_new_set" = set; then
2619 case $ac_new_val in
2620 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2621 *) ac_arg=$ac_var=$ac_new_val ;;
2622 esac
2623 case " $ac_configure_args " in
2624 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2625 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626 esac
2627 fi
2628 done
2629 if $ac_cache_corrupted; then
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2633 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2634 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2635 and start over" "$LINENO" 5
2636 fi
2637 ## -------------------- ##
2638 ## Main body of script. ##
2639 ## -------------------- ##
2640
2641 ac_ext=c
2642 ac_cpp='$CPP $CPPFLAGS'
2643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646
2647
2648
2649 ac_config_headers="$ac_config_headers config.h"
2650
2651
2652
2653 # Initialize Automake
2654 am__api_version='1.16'
2655
2656
2657
2658 # Find a good install program. We prefer a C program (faster),
2659 # so one script is as good as another. But avoid the broken or
2660 # incompatible versions:
2661 # SysV /etc/install, /usr/sbin/install
2662 # SunOS /usr/etc/install
2663 # IRIX /sbin/install
2664 # AIX /bin/install
2665 # AmigaOS /C/install, which installs bootblocks on floppy discs
2666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2669 # OS/2's system install, which has a completely different semantic
2670 # ./install, which can be erroneously created by make from ./install.sh.
2671 # Reject install programs that cannot install multiple files.
2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2673 printf %s "checking for a BSD-compatible install... " >&6; }
2674 if test -z "$INSTALL"; then
2675 if test ${ac_cv_path_install+y}
2676 then :
2677 printf %s "(cached) " >&6
2678 else $as_nop
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682 IFS=$as_save_IFS
2683 case $as_dir in #(((
2684 '') as_dir=./ ;;
2685 */) ;;
2686 *) as_dir=$as_dir/ ;;
2687 esac
2688 # Account for fact that we put trailing slashes in our PATH walk.
2689 case $as_dir in #((
2690 ./ | /[cC]/* | \
2691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2692 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2693 /usr/ucb/* ) ;;
2694 *)
2695 # OSF1 and SCO ODT 3.0 have their own names for install.
2696 # Don't use installbsd from OSF since it installs stuff as root
2697 # by default.
2698 for ac_prog in ginstall scoinst install; do
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2701 if test $ac_prog = install &&
2702 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2703 # AIX install. It has an incompatible calling convention.
2704 :
2705 elif test $ac_prog = install &&
2706 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # program-specific install script used by HP pwplus--don't use.
2708 :
2709 else
2710 rm -rf conftest.one conftest.two conftest.dir
2711 echo one > conftest.one
2712 echo two > conftest.two
2713 mkdir conftest.dir
2714 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2715 test -s conftest.one && test -s conftest.two &&
2716 test -s conftest.dir/conftest.one &&
2717 test -s conftest.dir/conftest.two
2718 then
2719 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2720 break 3
2721 fi
2722 fi
2723 fi
2724 done
2725 done
2726 ;;
2727 esac
2728
2729 done
2730 IFS=$as_save_IFS
2731
2732 rm -rf conftest.one conftest.two conftest.dir
2733
2734 fi
2735 if test ${ac_cv_path_install+y}; then
2736 INSTALL=$ac_cv_path_install
2737 else
2738 # As a last resort, use the slow shell script. Don't cache a
2739 # value for INSTALL within a source directory, because that will
2740 # break other packages using the cache if that directory is
2741 # removed, or if the value is a relative name.
2742 INSTALL=$ac_install_sh
2743 fi
2744 fi
2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2746 printf "%s\n" "$INSTALL" >&6; }
2747
2748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2749 # It thinks the first close brace ends the variable substitution.
2750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2751
2752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2753
2754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2755
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2757 printf %s "checking whether build environment is sane... " >&6; }
2758 # Reject unsafe characters in $srcdir or the absolute working directory
2759 # name. Accept space and tab only in the latter.
2760 am_lf='
2761 '
2762 case `pwd` in
2763 *[\\\"\#\$\&\'\`$am_lf]*)
2764 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2765 esac
2766 case $srcdir in
2767 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2768 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2769 esac
2770
2771 # Do 'set' in a subshell so we don't clobber the current shell's
2772 # arguments. Must try -L first in case configure is actually a
2773 # symlink; some systems play weird games with the mod time of symlinks
2774 # (eg FreeBSD returns the mod time of the symlink's containing
2775 # directory).
2776 if (
2777 am_has_slept=no
2778 for am_try in 1 2; do
2779 echo "timestamp, slept: $am_has_slept" > conftest.file
2780 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2781 if test "$*" = "X"; then
2782 # -L didn't work.
2783 set X `ls -t "$srcdir/configure" conftest.file`
2784 fi
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
2787
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
2792 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2793 alias in your environment" "$LINENO" 5
2794 fi
2795 if test "$2" = conftest.file || test $am_try -eq 2; then
2796 break
2797 fi
2798 # Just in case.
2799 sleep 1
2800 am_has_slept=yes
2801 done
2802 test "$2" = conftest.file
2803 )
2804 then
2805 # Ok.
2806 :
2807 else
2808 as_fn_error $? "newly created file is older than distributed files!
2809 Check your system clock" "$LINENO" 5
2810 fi
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 printf "%s\n" "yes" >&6; }
2813 # If we didn't sleep, we still need to ensure time stamps of config.status and
2814 # generated files are strictly newer.
2815 am_sleep_pid=
2816 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2817 ( sleep 1 ) &
2818 am_sleep_pid=$!
2819 fi
2820
2821 rm -f conftest.file
2822
2823 test "$program_prefix" != NONE &&
2824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2825 # Use a double $ so make ignores it.
2826 test "$program_suffix" != NONE &&
2827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2828 # Double any \ or $.
2829 # By default was `s,x,x', remove it if useless.
2830 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2831 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2832
2833
2834 # Expand $ac_aux_dir to an absolute path.
2835 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2836
2837
2838 if test x"${MISSING+set}" != xset; then
2839 MISSING="\${SHELL} '$am_aux_dir/missing'"
2840 fi
2841 # Use eval to expand $SHELL
2842 if eval "$MISSING --is-lightweight"; then
2843 am_missing_run="$MISSING "
2844 else
2845 am_missing_run=
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2847 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2848 fi
2849
2850 if test x"${install_sh+set}" != xset; then
2851 case $am_aux_dir in
2852 *\ * | *\ *)
2853 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2854 *)
2855 install_sh="\${SHELL} $am_aux_dir/install-sh"
2856 esac
2857 fi
2858
2859 # Installed binaries are usually stripped using 'strip' when the user
2860 # run "make install-strip". However 'strip' might not be the right
2861 # tool to use in cross-compilation environments, therefore Automake
2862 # will honor the 'STRIP' environment variable to overrule this program.
2863 if test "$cross_compiling" != no; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}strip; ac_word=$2
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 printf %s "checking for $ac_word... " >&6; }
2869 if test ${ac_cv_prog_STRIP+y}
2870 then :
2871 printf %s "(cached) " >&6
2872 else $as_nop
2873 if test -n "$STRIP"; then
2874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 case $as_dir in #(((
2881 '') as_dir=./ ;;
2882 */) ;;
2883 *) as_dir=$as_dir/ ;;
2884 esac
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 STRIP=$ac_cv_prog_STRIP
2898 if test -n "$STRIP"; then
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2900 printf "%s\n" "$STRIP" >&6; }
2901 else
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 printf "%s\n" "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 printf %s "checking for $ac_word... " >&6; }
2914 if test ${ac_cv_prog_ac_ct_STRIP+y}
2915 then :
2916 printf %s "(cached) " >&6
2917 else $as_nop
2918 if test -n "$ac_ct_STRIP"; then
2919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 case $as_dir in #(((
2926 '') as_dir=./ ;;
2927 */) ;;
2928 *) as_dir=$as_dir/ ;;
2929 esac
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945 printf "%s\n" "$ac_ct_STRIP" >&6; }
2946 else
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 printf "%s\n" "no" >&6; }
2949 fi
2950
2951 if test "x$ac_ct_STRIP" = x; then
2952 STRIP=":"
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 STRIP=$ac_ct_STRIP
2961 fi
2962 else
2963 STRIP="$ac_cv_prog_STRIP"
2964 fi
2965
2966 fi
2967 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2968
2969
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2971 printf %s "checking for a race-free mkdir -p... " >&6; }
2972 if test -z "$MKDIR_P"; then
2973 if test ${ac_cv_path_mkdir+y}
2974 then :
2975 printf %s "(cached) " >&6
2976 else $as_nop
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2979 do
2980 IFS=$as_save_IFS
2981 case $as_dir in #(((
2982 '') as_dir=./ ;;
2983 */) ;;
2984 *) as_dir=$as_dir/ ;;
2985 esac
2986 for ac_prog in mkdir gmkdir; do
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2989 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2990 'mkdir ('*'coreutils) '* | \
2991 'BusyBox '* | \
2992 'mkdir (fileutils) '4.1*)
2993 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2994 break 3;;
2995 esac
2996 done
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002
3003 test -d ./--version && rmdir ./--version
3004 if test ${ac_cv_path_mkdir+y}; then
3005 MKDIR_P="$ac_cv_path_mkdir -p"
3006 else
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for MKDIR_P within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the value is a relative name.
3011 MKDIR_P="$ac_install_sh -d"
3012 fi
3013 fi
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3015 printf "%s\n" "$MKDIR_P" >&6; }
3016
3017 for ac_prog in gawk mawk nawk awk
3018 do
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 printf %s "checking for $ac_word... " >&6; }
3023 if test ${ac_cv_prog_AWK+y}
3024 then :
3025 printf %s "(cached) " >&6
3026 else $as_nop
3027 if test -n "$AWK"; then
3028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 case $as_dir in #(((
3035 '') as_dir=./ ;;
3036 */) ;;
3037 *) as_dir=$as_dir/ ;;
3038 esac
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_AWK="$ac_prog"
3042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045 done
3046 done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 AWK=$ac_cv_prog_AWK
3052 if test -n "$AWK"; then
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3054 printf "%s\n" "$AWK" >&6; }
3055 else
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 printf "%s\n" "no" >&6; }
3058 fi
3059
3060
3061 test -n "$AWK" && break
3062 done
3063
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3065 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3066 set x ${MAKE-make}
3067 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3068 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3069 then :
3070 printf %s "(cached) " >&6
3071 else $as_nop
3072 cat >conftest.make <<\_ACEOF
3073 SHELL = /bin/sh
3074 all:
3075 @echo '@@@%%%=$(MAKE)=@@@%%%'
3076 _ACEOF
3077 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3079 *@@@%%%=?*=@@@%%%*)
3080 eval ac_cv_prog_make_${ac_make}_set=yes;;
3081 *)
3082 eval ac_cv_prog_make_${ac_make}_set=no;;
3083 esac
3084 rm -f conftest.make
3085 fi
3086 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088 printf "%s\n" "yes" >&6; }
3089 SET_MAKE=
3090 else
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 printf "%s\n" "no" >&6; }
3093 SET_MAKE="MAKE=${MAKE-make}"
3094 fi
3095
3096 rm -rf .tst 2>/dev/null
3097 mkdir .tst 2>/dev/null
3098 if test -d .tst; then
3099 am__leading_dot=.
3100 else
3101 am__leading_dot=_
3102 fi
3103 rmdir .tst 2>/dev/null
3104
3105 # Check whether --enable-silent-rules was given.
3106 if test ${enable_silent_rules+y}
3107 then :
3108 enableval=$enable_silent_rules;
3109 fi
3110
3111 case $enable_silent_rules in # (((
3112 yes) AM_DEFAULT_VERBOSITY=0;;
3113 no) AM_DEFAULT_VERBOSITY=1;;
3114 *) AM_DEFAULT_VERBOSITY=1;;
3115 esac
3116 am_make=${MAKE-make}
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3118 printf %s "checking whether $am_make supports nested variables... " >&6; }
3119 if test ${am_cv_make_support_nested_variables+y}
3120 then :
3121 printf %s "(cached) " >&6
3122 else $as_nop
3123 if printf "%s\n" 'TRUE=$(BAR$(V))
3124 BAR0=false
3125 BAR1=true
3126 V=1
3127 am__doit:
3128 @$(TRUE)
3129 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3130 am_cv_make_support_nested_variables=yes
3131 else
3132 am_cv_make_support_nested_variables=no
3133 fi
3134 fi
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3136 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3137 if test $am_cv_make_support_nested_variables = yes; then
3138 AM_V='$(V)'
3139 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3140 else
3141 AM_V=$AM_DEFAULT_VERBOSITY
3142 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3143 fi
3144 AM_BACKSLASH='\'
3145
3146 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3147 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3148 # is not polluted with repeated "-I."
3149 am__isrc=' -I$(srcdir)'
3150 # test to see if srcdir already configured
3151 if test -f $srcdir/config.status; then
3152 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3153 fi
3154 fi
3155
3156 # test whether we have cygpath
3157 if test -z "$CYGPATH_W"; then
3158 if (cygpath --version) >/dev/null 2>/dev/null; then
3159 CYGPATH_W='cygpath -w'
3160 else
3161 CYGPATH_W=echo
3162 fi
3163 fi
3164
3165
3166 # Define the identity of the package.
3167 PACKAGE='libXpm'
3168 VERSION='3.5.17'
3169
3170
3171 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3172
3173
3174 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3175
3176 # Some tools Automake needs.
3177
3178 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3179
3180
3181 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3182
3183
3184 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3185
3186
3187 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3188
3189
3190 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3191
3192 # For better backward compatibility. To be removed once Automake 1.9.x
3193 # dies out for good. For more background, see:
3194 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3195 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3196 mkdir_p='$(MKDIR_P)'
3197
3198 # We need awk for the "check" target (and possibly the TAP driver). The
3199 # system "awk" is bad on some platforms.
3200 # Always define AMTAR for backward compatibility. Yes, it's still used
3201 # in the wild :-( We should find a proper way to deprecate it ...
3202 AMTAR='$${TAR-tar}'
3203
3204
3205 # We'll loop over all known methods to create a tar archive until one works.
3206 _am_tools='gnutar pax cpio none'
3207
3208 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3209
3210
3211
3212
3213
3214 # Variables for tags utilities; see am/tags.am
3215 if test -z "$CTAGS"; then
3216 CTAGS=ctags
3217 fi
3218
3219 if test -z "$ETAGS"; then
3220 ETAGS=etags
3221 fi
3222
3223 if test -z "$CSCOPE"; then
3224 CSCOPE=cscope
3225 fi
3226
3227
3228
3229 # POSIX will say in a future version that running "rm -f" with no argument
3230 # is OK; and we want to be able to make that assumption in our Makefile
3231 # recipes. So use an aggressive probe to check that the usage we want is
3232 # actually supported "in the wild" to an acceptable degree.
3233 # See automake bug#10828.
3234 # To make any issue more visible, cause the running configure to be aborted
3235 # by default if the 'rm' program in use doesn't match our expectations; the
3236 # user can still override this though.
3237 if rm -f && rm -fr && rm -rf; then : OK; else
3238 cat >&2 <<'END'
3239 Oops!
3240
3241 Your 'rm' program seems unable to run without file operands specified
3242 on the command line, even when the '-f' option is present. This is contrary
3243 to the behaviour of most rm programs out there, and not conforming with
3244 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3245
3246 Please tell bug-automake@gnu.org about your system, including the value
3247 of your $PATH and any error possibly output before this message. This
3248 can help us improve future automake versions.
3249
3250 END
3251 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3252 echo 'Configuration will proceed anyway, since you have set the' >&2
3253 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3254 echo >&2
3255 else
3256 cat >&2 <<'END'
3257 Aborting the configuration process, to ensure you take notice of the issue.
3258
3259 You can download and install GNU coreutils to get an 'rm' implementation
3260 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3261
3262 If you want to complete the configuration process using your problematic
3263 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3264 to "yes", and re-run configure.
3265
3266 END
3267 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3268 fi
3269 fi
3270
3271
3272 # Initialize libtool
3273 case `pwd` in
3274 *\ * | *\ *)
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3276 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3277 esac
3278
3279
3280
3281 macro_version='2.4.7'
3282 macro_revision='2.4.7'
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297 ltmain=$ac_aux_dir/ltmain.sh
3298
3299
3300
3301 # Make sure we can run config.sub.
3302 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3303 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3304
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3306 printf %s "checking build system type... " >&6; }
3307 if test ${ac_cv_build+y}
3308 then :
3309 printf %s "(cached) " >&6
3310 else $as_nop
3311 ac_build_alias=$build_alias
3312 test "x$ac_build_alias" = x &&
3313 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3314 test "x$ac_build_alias" = x &&
3315 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3316 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3317 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3318
3319 fi
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3321 printf "%s\n" "$ac_cv_build" >&6; }
3322 case $ac_cv_build in
3323 *-*-*) ;;
3324 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3325 esac
3326 build=$ac_cv_build
3327 ac_save_IFS=$IFS; IFS='-'
3328 set x $ac_cv_build
3329 shift
3330 build_cpu=$1
3331 build_vendor=$2
3332 shift; shift
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3335 build_os=$*
3336 IFS=$ac_save_IFS
3337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3338
3339
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3341 printf %s "checking host system type... " >&6; }
3342 if test ${ac_cv_host+y}
3343 then :
3344 printf %s "(cached) " >&6
3345 else $as_nop
3346 if test "x$host_alias" = x; then
3347 ac_cv_host=$ac_cv_build
3348 else
3349 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3350 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3351 fi
3352
3353 fi
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3355 printf "%s\n" "$ac_cv_host" >&6; }
3356 case $ac_cv_host in
3357 *-*-*) ;;
3358 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3359 esac
3360 host=$ac_cv_host
3361 ac_save_IFS=$IFS; IFS='-'
3362 set x $ac_cv_host
3363 shift
3364 host_cpu=$1
3365 host_vendor=$2
3366 shift; shift
3367 # Remember, the first character of IFS is used to create $*,
3368 # except with old shells:
3369 host_os=$*
3370 IFS=$ac_save_IFS
3371 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3372
3373
3374 # Backslashify metacharacters that are still active within
3375 # double-quoted strings.
3376 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3377
3378 # Same as above, but do not quote variable references.
3379 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3380
3381 # Sed substitution to delay expansion of an escaped shell variable in a
3382 # double_quote_subst'ed string.
3383 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3384
3385 # Sed substitution to delay expansion of an escaped single quote.
3386 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3387
3388 # Sed substitution to avoid accidental globbing in evaled expressions
3389 no_glob_subst='s/\*/\\\*/g'
3390
3391 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3392 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3393 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3394
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3396 printf %s "checking how to print strings... " >&6; }
3397 # Test print first, because it will be a builtin if present.
3398 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3399 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3400 ECHO='print -r --'
3401 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3402 ECHO='printf %s\n'
3403 else
3404 # Use this function as a fallback that always works.
3405 func_fallback_echo ()
3406 {
3407 eval 'cat <<_LTECHO_EOF
3408 $1
3409 _LTECHO_EOF'
3410 }
3411 ECHO='func_fallback_echo'
3412 fi
3413
3414 # func_echo_all arg...
3415 # Invoke $ECHO with all args, space-separated.
3416 func_echo_all ()
3417 {
3418 $ECHO ""
3419 }
3420
3421 case $ECHO in
3422 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3423 printf "%s\n" "printf" >&6; } ;;
3424 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3425 printf "%s\n" "print -r" >&6; } ;;
3426 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3427 printf "%s\n" "cat" >&6; } ;;
3428 esac
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452 DEPDIR="${am__leading_dot}deps"
3453
3454 ac_config_commands="$ac_config_commands depfiles"
3455
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3457 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3458 cat > confinc.mk << 'END'
3459 am__doit:
3460 @echo this is the am__doit target >confinc.out
3461 .PHONY: am__doit
3462 END
3463 am__include="#"
3464 am__quote=
3465 # BSD make does it like this.
3466 echo '.include "confinc.mk" # ignored' > confmf.BSD
3467 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3468 echo 'include confinc.mk # ignored' > confmf.GNU
3469 _am_result=no
3470 for s in GNU BSD; do
3471 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3472 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476 case $?:`cat confinc.out 2>/dev/null` in #(
3477 '0:this is the am__doit target') :
3478 case $s in #(
3479 BSD) :
3480 am__include='.include' am__quote='"' ;; #(
3481 *) :
3482 am__include='include' am__quote='' ;;
3483 esac ;; #(
3484 *) :
3485 ;;
3486 esac
3487 if test "$am__include" != "#"; then
3488 _am_result="yes ($s style)"
3489 break
3490 fi
3491 done
3492 rm -f confinc.* confmf.*
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3494 printf "%s\n" "${_am_result}" >&6; }
3495
3496 # Check whether --enable-dependency-tracking was given.
3497 if test ${enable_dependency_tracking+y}
3498 then :
3499 enableval=$enable_dependency_tracking;
3500 fi
3501
3502 if test "x$enable_dependency_tracking" != xno; then
3503 am_depcomp="$ac_aux_dir/depcomp"
3504 AMDEPBACKSLASH='\'
3505 am__nodep='_no'
3506 fi
3507 if test "x$enable_dependency_tracking" != xno; then
3508 AMDEP_TRUE=
3509 AMDEP_FALSE='#'
3510 else
3511 AMDEP_TRUE='#'
3512 AMDEP_FALSE=
3513 fi
3514
3515
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 printf %s "checking for $ac_word... " >&6; }
3526 if test ${ac_cv_prog_CC+y}
3527 then :
3528 printf %s "(cached) " >&6
3529 else $as_nop
3530 if test -n "$CC"; then
3531 ac_cv_prog_CC="$CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536 IFS=$as_save_IFS
3537 case $as_dir in #(((
3538 '') as_dir=./ ;;
3539 */) ;;
3540 *) as_dir=$as_dir/ ;;
3541 esac
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 printf "%s\n" "$CC" >&6; }
3558 else
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 printf "%s\n" "no" >&6; }
3561 fi
3562
3563
3564 fi
3565 if test -z "$ac_cv_prog_CC"; then
3566 ac_ct_CC=$CC
3567 # Extract the first word of "gcc", so it can be a program name with args.
3568 set dummy gcc; ac_word=$2
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 printf %s "checking for $ac_word... " >&6; }
3571 if test ${ac_cv_prog_ac_ct_CC+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else $as_nop
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581 IFS=$as_save_IFS
3582 case $as_dir in #(((
3583 '') as_dir=./ ;;
3584 */) ;;
3585 *) as_dir=$as_dir/ ;;
3586 esac
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_ac_ct_CC="gcc"
3590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3600 if test -n "$ac_ct_CC"; then
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3602 printf "%s\n" "$ac_ct_CC" >&6; }
3603 else
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 printf "%s\n" "no" >&6; }
3606 fi
3607
3608 if test "x$ac_ct_CC" = x; then
3609 CC=""
3610 else
3611 case $cross_compiling:$ac_tool_warned in
3612 yes:)
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615 ac_tool_warned=yes ;;
3616 esac
3617 CC=$ac_ct_CC
3618 fi
3619 else
3620 CC="$ac_cv_prog_CC"
3621 fi
3622
3623 if test -z "$CC"; then
3624 if test -n "$ac_tool_prefix"; then
3625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3626 set dummy ${ac_tool_prefix}cc; ac_word=$2
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 printf %s "checking for $ac_word... " >&6; }
3629 if test ${ac_cv_prog_CC+y}
3630 then :
3631 printf %s "(cached) " >&6
3632 else $as_nop
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639 IFS=$as_save_IFS
3640 case $as_dir in #(((
3641 '') as_dir=./ ;;
3642 */) ;;
3643 *) as_dir=$as_dir/ ;;
3644 esac
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3647 ac_cv_prog_CC="${ac_tool_prefix}cc"
3648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3649 break 2
3650 fi
3651 done
3652 done
3653 IFS=$as_save_IFS
3654
3655 fi
3656 fi
3657 CC=$ac_cv_prog_CC
3658 if test -n "$CC"; then
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 printf "%s\n" "$CC" >&6; }
3661 else
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 printf "%s\n" "no" >&6; }
3664 fi
3665
3666
3667 fi
3668 fi
3669 if test -z "$CC"; then
3670 # Extract the first word of "cc", so it can be a program name with args.
3671 set dummy cc; ac_word=$2
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 printf %s "checking for $ac_word... " >&6; }
3674 if test ${ac_cv_prog_CC+y}
3675 then :
3676 printf %s "(cached) " >&6
3677 else $as_nop
3678 if test -n "$CC"; then
3679 ac_cv_prog_CC="$CC" # Let the user override the test.
3680 else
3681 ac_prog_rejected=no
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685 IFS=$as_save_IFS
3686 case $as_dir in #(((
3687 '') as_dir=./ ;;
3688 */) ;;
3689 *) as_dir=$as_dir/ ;;
3690 esac
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3693 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694 ac_prog_rejected=yes
3695 continue
3696 fi
3697 ac_cv_prog_CC="cc"
3698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3704
3705 if test $ac_prog_rejected = yes; then
3706 # We found a bogon in the path, so make sure we never use it.
3707 set dummy $ac_cv_prog_CC
3708 shift
3709 if test $# != 0; then
3710 # We chose a different compiler from the bogus one.
3711 # However, it has the same basename, so the bogon will be chosen
3712 # first if we set CC to just the basename; use the full file name.
3713 shift
3714 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3715 fi
3716 fi
3717 fi
3718 fi
3719 CC=$ac_cv_prog_CC
3720 if test -n "$CC"; then
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 printf "%s\n" "$CC" >&6; }
3723 else
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 printf "%s\n" "no" >&6; }
3726 fi
3727
3728
3729 fi
3730 if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 for ac_prog in cl.exe
3733 do
3734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 printf %s "checking for $ac_word... " >&6; }
3738 if test ${ac_cv_prog_CC+y}
3739 then :
3740 printf %s "(cached) " >&6
3741 else $as_nop
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 case $as_dir in #(((
3750 '') as_dir=./ ;;
3751 */) ;;
3752 *) as_dir=$as_dir/ ;;
3753 esac
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 CC=$ac_cv_prog_CC
3767 if test -n "$CC"; then
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 printf "%s\n" "$CC" >&6; }
3770 else
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 printf "%s\n" "no" >&6; }
3773 fi
3774
3775
3776 test -n "$CC" && break
3777 done
3778 fi
3779 if test -z "$CC"; then
3780 ac_ct_CC=$CC
3781 for ac_prog in cl.exe
3782 do
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy $ac_prog; ac_word=$2
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 printf %s "checking for $ac_word... " >&6; }
3787 if test ${ac_cv_prog_ac_ct_CC+y}
3788 then :
3789 printf %s "(cached) " >&6
3790 else $as_nop
3791 if test -n "$ac_ct_CC"; then
3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 case $as_dir in #(((
3799 '') as_dir=./ ;;
3800 */) ;;
3801 *) as_dir=$as_dir/ ;;
3802 esac
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3805 ac_cv_prog_ac_ct_CC="$ac_prog"
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3816 if test -n "$ac_ct_CC"; then
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3818 printf "%s\n" "$ac_ct_CC" >&6; }
3819 else
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 printf "%s\n" "no" >&6; }
3822 fi
3823
3824
3825 test -n "$ac_ct_CC" && break
3826 done
3827
3828 if test "x$ac_ct_CC" = x; then
3829 CC=""
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 CC=$ac_ct_CC
3838 fi
3839 fi
3840
3841 fi
3842 if test -z "$CC"; then
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3845 set dummy ${ac_tool_prefix}clang; ac_word=$2
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 printf %s "checking for $ac_word... " >&6; }
3848 if test ${ac_cv_prog_CC+y}
3849 then :
3850 printf %s "(cached) " >&6
3851 else $as_nop
3852 if test -n "$CC"; then
3853 ac_cv_prog_CC="$CC" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858 IFS=$as_save_IFS
3859 case $as_dir in #(((
3860 '') as_dir=./ ;;
3861 */) ;;
3862 *) as_dir=$as_dir/ ;;
3863 esac
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_CC="${ac_tool_prefix}clang"
3867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 fi
3875 fi
3876 CC=$ac_cv_prog_CC
3877 if test -n "$CC"; then
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3879 printf "%s\n" "$CC" >&6; }
3880 else
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 printf "%s\n" "no" >&6; }
3883 fi
3884
3885
3886 fi
3887 if test -z "$ac_cv_prog_CC"; then
3888 ac_ct_CC=$CC
3889 # Extract the first word of "clang", so it can be a program name with args.
3890 set dummy clang; ac_word=$2
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 printf %s "checking for $ac_word... " >&6; }
3893 if test ${ac_cv_prog_ac_ct_CC+y}
3894 then :
3895 printf %s "(cached) " >&6
3896 else $as_nop
3897 if test -n "$ac_ct_CC"; then
3898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 case $as_dir in #(((
3905 '') as_dir=./ ;;
3906 */) ;;
3907 *) as_dir=$as_dir/ ;;
3908 esac
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_ac_ct_CC="clang"
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 fi
3920 fi
3921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922 if test -n "$ac_ct_CC"; then
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924 printf "%s\n" "$ac_ct_CC" >&6; }
3925 else
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 printf "%s\n" "no" >&6; }
3928 fi
3929
3930 if test "x$ac_ct_CC" = x; then
3931 CC=""
3932 else
3933 case $cross_compiling:$ac_tool_warned in
3934 yes:)
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3938 esac
3939 CC=$ac_ct_CC
3940 fi
3941 else
3942 CC="$ac_cv_prog_CC"
3943 fi
3944
3945 fi
3946
3947
3948 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error $? "no acceptable C compiler found in \$PATH
3951 See \`config.log' for more details" "$LINENO" 5; }
3952
3953 # Provide some information about the compiler.
3954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955 set X $ac_compile
3956 ac_compiler=$2
3957 for ac_option in --version -v -V -qversion -version; do
3958 { { ac_try="$ac_compiler $ac_option >&5"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 printf "%s\n" "$ac_try_echo"; } >&5
3965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3966 ac_status=$?
3967 if test -s conftest.err; then
3968 sed '10a\
3969 ... rest of stderr output deleted ...
3970 10q' conftest.err >conftest.er1
3971 cat conftest.er1 >&5
3972 fi
3973 rm -f conftest.er1 conftest.err
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3976 done
3977
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980
3981 int
3982 main (void)
3983 {
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 ac_clean_files_save=$ac_clean_files
3990 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3991 # Try to create an executable without -o first, disregard a.out.
3992 # It will help us diagnose broken compilers, and finding out an intuition
3993 # of exeext.
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3995 printf %s "checking whether the C compiler works... " >&6; }
3996 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3997
3998 # The possible output files:
3999 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4000
4001 ac_rmfiles=
4002 for ac_file in $ac_files
4003 do
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4007 esac
4008 done
4009 rm -f $ac_rmfiles
4010
4011 if { { ac_try="$ac_link_default"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 printf "%s\n" "$ac_try_echo"; } >&5
4018 (eval "$ac_link_default") 2>&5
4019 ac_status=$?
4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }
4022 then :
4023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4026 # so that the user can short-circuit this test for compilers unknown to
4027 # Autoconf.
4028 for ac_file in $ac_files ''
4029 do
4030 test -f "$ac_file" || continue
4031 case $ac_file in
4032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4033 ;;
4034 [ab].out )
4035 # We found the default executable, but exeext='' is most
4036 # certainly right.
4037 break;;
4038 *.* )
4039 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4040 then :; else
4041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042 fi
4043 # We set ac_cv_exeext here because the later test for it is not
4044 # safe: cross compilers may not add the suffix if given an `-o'
4045 # argument, so we may need to know it at that point already.
4046 # Even if this section looks crufty: it has the advantage of
4047 # actually working.
4048 break;;
4049 * )
4050 break;;
4051 esac
4052 done
4053 test "$ac_cv_exeext" = no && ac_cv_exeext=
4054
4055 else $as_nop
4056 ac_file=''
4057 fi
4058 if test -z "$ac_file"
4059 then :
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 printf "%s\n" "no" >&6; }
4062 printf "%s\n" "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error 77 "C compiler cannot create executables
4068 See \`config.log' for more details" "$LINENO" 5; }
4069 else $as_nop
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4071 printf "%s\n" "yes" >&6; }
4072 fi
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4074 printf %s "checking for C compiler default output file name... " >&6; }
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4076 printf "%s\n" "$ac_file" >&6; }
4077 ac_exeext=$ac_cv_exeext
4078
4079 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4080 ac_clean_files=$ac_clean_files_save
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4082 printf %s "checking for suffix of executables... " >&6; }
4083 if { { ac_try="$ac_link"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 printf "%s\n" "$ac_try_echo"; } >&5
4090 (eval "$ac_link") 2>&5
4091 ac_status=$?
4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094 then :
4095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4097 # work properly (i.e., refer to `conftest.exe'), while it won't with
4098 # `rm'.
4099 for ac_file in conftest.exe conftest conftest.*; do
4100 test -f "$ac_file" || continue
4101 case $ac_file in
4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4104 break;;
4105 * ) break;;
4106 esac
4107 done
4108 else $as_nop
4109 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4112 See \`config.log' for more details" "$LINENO" 5; }
4113 fi
4114 rm -f conftest conftest$ac_cv_exeext
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4116 printf "%s\n" "$ac_cv_exeext" >&6; }
4117
4118 rm -f conftest.$ac_ext
4119 EXEEXT=$ac_cv_exeext
4120 ac_exeext=$EXEEXT
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <stdio.h>
4124 int
4125 main (void)
4126 {
4127 FILE *f = fopen ("conftest.out", "w");
4128 return ferror (f) || fclose (f) != 0;
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 ac_clean_files="$ac_clean_files conftest.out"
4135 # Check that the compiler produces executables we can run. If not, either
4136 # the compiler is broken, or we cross compile.
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4138 printf %s "checking whether we are cross compiling... " >&6; }
4139 if test "$cross_compiling" != yes; then
4140 { { ac_try="$ac_link"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 printf "%s\n" "$ac_try_echo"; } >&5
4147 (eval "$ac_link") 2>&5
4148 ac_status=$?
4149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }
4151 if { ac_try='./conftest$ac_cv_exeext'
4152 { { case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157 printf "%s\n" "$ac_try_echo"; } >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }; }; then
4162 cross_compiling=no
4163 else
4164 if test "$cross_compiling" = maybe; then
4165 cross_compiling=yes
4166 else
4167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error 77 "cannot run C compiled programs.
4170 If you meant to cross compile, use \`--host'.
4171 See \`config.log' for more details" "$LINENO" 5; }
4172 fi
4173 fi
4174 fi
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4176 printf "%s\n" "$cross_compiling" >&6; }
4177
4178 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4179 ac_clean_files=$ac_clean_files_save
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4181 printf %s "checking for suffix of object files... " >&6; }
4182 if test ${ac_cv_objext+y}
4183 then :
4184 printf %s "(cached) " >&6
4185 else $as_nop
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188
4189 int
4190 main (void)
4191 {
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.o conftest.obj
4198 if { { ac_try="$ac_compile"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 printf "%s\n" "$ac_try_echo"; } >&5
4205 (eval "$ac_compile") 2>&5
4206 ac_status=$?
4207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4209 then :
4210 for ac_file in conftest.o conftest.obj conftest.*; do
4211 test -f "$ac_file" || continue;
4212 case $ac_file in
4213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4214 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4215 break;;
4216 esac
4217 done
4218 else $as_nop
4219 printf "%s\n" "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error $? "cannot compute suffix of object files: cannot compile
4225 See \`config.log' for more details" "$LINENO" 5; }
4226 fi
4227 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4228 fi
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4230 printf "%s\n" "$ac_cv_objext" >&6; }
4231 OBJEXT=$ac_cv_objext
4232 ac_objext=$OBJEXT
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4234 printf %s "checking whether the compiler supports GNU C... " >&6; }
4235 if test ${ac_cv_c_compiler_gnu+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else $as_nop
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241
4242 int
4243 main (void)
4244 {
4245 #ifndef __GNUC__
4246 choke me
4247 #endif
4248
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 if ac_fn_c_try_compile "$LINENO"
4254 then :
4255 ac_compiler_gnu=yes
4256 else $as_nop
4257 ac_compiler_gnu=no
4258 fi
4259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4261
4262 fi
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4264 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
4267 if test $ac_compiler_gnu = yes; then
4268 GCC=yes
4269 else
4270 GCC=
4271 fi
4272 ac_test_CFLAGS=${CFLAGS+y}
4273 ac_save_CFLAGS=$CFLAGS
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275 printf %s "checking whether $CC accepts -g... " >&6; }
4276 if test ${ac_cv_prog_cc_g+y}
4277 then :
4278 printf %s "(cached) " >&6
4279 else $as_nop
4280 ac_save_c_werror_flag=$ac_c_werror_flag
4281 ac_c_werror_flag=yes
4282 ac_cv_prog_cc_g=no
4283 CFLAGS="-g"
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286
4287 int
4288 main (void)
4289 {
4290
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 if ac_fn_c_try_compile "$LINENO"
4296 then :
4297 ac_cv_prog_cc_g=yes
4298 else $as_nop
4299 CFLAGS=""
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302
4303 int
4304 main (void)
4305 {
4306
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_c_try_compile "$LINENO"
4312 then :
4313
4314 else $as_nop
4315 ac_c_werror_flag=$ac_save_c_werror_flag
4316 CFLAGS="-g"
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319
4320 int
4321 main (void)
4322 {
4323
4324 ;
4325 return 0;
4326 }
4327 _ACEOF
4328 if ac_fn_c_try_compile "$LINENO"
4329 then :
4330 ac_cv_prog_cc_g=yes
4331 fi
4332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4333 fi
4334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4337 ac_c_werror_flag=$ac_save_c_werror_flag
4338 fi
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4340 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4341 if test $ac_test_CFLAGS; then
4342 CFLAGS=$ac_save_CFLAGS
4343 elif test $ac_cv_prog_cc_g = yes; then
4344 if test "$GCC" = yes; then
4345 CFLAGS="-g -O2"
4346 else
4347 CFLAGS="-g"
4348 fi
4349 else
4350 if test "$GCC" = yes; then
4351 CFLAGS="-O2"
4352 else
4353 CFLAGS=
4354 fi
4355 fi
4356 ac_prog_cc_stdc=no
4357 if test x$ac_prog_cc_stdc = xno
4358 then :
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4360 printf %s "checking for $CC option to enable C11 features... " >&6; }
4361 if test ${ac_cv_prog_cc_c11+y}
4362 then :
4363 printf %s "(cached) " >&6
4364 else $as_nop
4365 ac_cv_prog_cc_c11=no
4366 ac_save_CC=$CC
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 $ac_c_conftest_c11_program
4370 _ACEOF
4371 for ac_arg in '' -std=gnu11
4372 do
4373 CC="$ac_save_CC $ac_arg"
4374 if ac_fn_c_try_compile "$LINENO"
4375 then :
4376 ac_cv_prog_cc_c11=$ac_arg
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.beam
4379 test "x$ac_cv_prog_cc_c11" != "xno" && break
4380 done
4381 rm -f conftest.$ac_ext
4382 CC=$ac_save_CC
4383 fi
4384
4385 if test "x$ac_cv_prog_cc_c11" = xno
4386 then :
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4388 printf "%s\n" "unsupported" >&6; }
4389 else $as_nop
4390 if test "x$ac_cv_prog_cc_c11" = x
4391 then :
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4393 printf "%s\n" "none needed" >&6; }
4394 else $as_nop
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4396 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4397 CC="$CC $ac_cv_prog_cc_c11"
4398 fi
4399 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4400 ac_prog_cc_stdc=c11
4401 fi
4402 fi
4403 if test x$ac_prog_cc_stdc = xno
4404 then :
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4406 printf %s "checking for $CC option to enable C99 features... " >&6; }
4407 if test ${ac_cv_prog_cc_c99+y}
4408 then :
4409 printf %s "(cached) " >&6
4410 else $as_nop
4411 ac_cv_prog_cc_c99=no
4412 ac_save_CC=$CC
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 $ac_c_conftest_c99_program
4416 _ACEOF
4417 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4418 do
4419 CC="$ac_save_CC $ac_arg"
4420 if ac_fn_c_try_compile "$LINENO"
4421 then :
4422 ac_cv_prog_cc_c99=$ac_arg
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.beam
4425 test "x$ac_cv_prog_cc_c99" != "xno" && break
4426 done
4427 rm -f conftest.$ac_ext
4428 CC=$ac_save_CC
4429 fi
4430
4431 if test "x$ac_cv_prog_cc_c99" = xno
4432 then :
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4434 printf "%s\n" "unsupported" >&6; }
4435 else $as_nop
4436 if test "x$ac_cv_prog_cc_c99" = x
4437 then :
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4439 printf "%s\n" "none needed" >&6; }
4440 else $as_nop
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4442 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4443 CC="$CC $ac_cv_prog_cc_c99"
4444 fi
4445 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4446 ac_prog_cc_stdc=c99
4447 fi
4448 fi
4449 if test x$ac_prog_cc_stdc = xno
4450 then :
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4452 printf %s "checking for $CC option to enable C89 features... " >&6; }
4453 if test ${ac_cv_prog_cc_c89+y}
4454 then :
4455 printf %s "(cached) " >&6
4456 else $as_nop
4457 ac_cv_prog_cc_c89=no
4458 ac_save_CC=$CC
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 $ac_c_conftest_c89_program
4462 _ACEOF
4463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4464 do
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"
4467 then :
4468 ac_cv_prog_cc_c89=$ac_arg
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.beam
4471 test "x$ac_cv_prog_cc_c89" != "xno" && break
4472 done
4473 rm -f conftest.$ac_ext
4474 CC=$ac_save_CC
4475 fi
4476
4477 if test "x$ac_cv_prog_cc_c89" = xno
4478 then :
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4480 printf "%s\n" "unsupported" >&6; }
4481 else $as_nop
4482 if test "x$ac_cv_prog_cc_c89" = x
4483 then :
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4485 printf "%s\n" "none needed" >&6; }
4486 else $as_nop
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4489 CC="$CC $ac_cv_prog_cc_c89"
4490 fi
4491 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4492 ac_prog_cc_stdc=c89
4493 fi
4494 fi
4495
4496 ac_ext=c
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4509 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4510 if test ${am_cv_prog_cc_c_o+y}
4511 then :
4512 printf %s "(cached) " >&6
4513 else $as_nop
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516
4517 int
4518 main (void)
4519 {
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 # Make sure it works both with $CC and with simple cc.
4526 # Following AC_PROG_CC_C_O, we do the test twice because some
4527 # compilers refuse to overwrite an existing .o file with -o,
4528 # though they will create one.
4529 am_cv_prog_cc_c_o=yes
4530 for am_i in 1 2; do
4531 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4532 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } \
4536 && test -f conftest2.$ac_objext; then
4537 : OK
4538 else
4539 am_cv_prog_cc_c_o=no
4540 break
4541 fi
4542 done
4543 rm -f core conftest*
4544 unset am_i
4545 fi
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4547 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4548 if test "$am_cv_prog_cc_c_o" != yes; then
4549 # Losing compiler, so override with the script.
4550 # FIXME: It is wrong to rewrite CC.
4551 # But if we don't then we get into trouble of one sort or another.
4552 # A longer-term fix would be to have automake use am__CC in this case,
4553 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4554 CC="$am_aux_dir/compile $CC"
4555 fi
4556 ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561
4562
4563 depcc="$CC" am_compiler_list=
4564
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4566 printf %s "checking dependency style of $depcc... " >&6; }
4567 if test ${am_cv_CC_dependencies_compiler_type+y}
4568 then :
4569 printf %s "(cached) " >&6
4570 else $as_nop
4571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4572 # We make a subdir and do the tests there. Otherwise we can end up
4573 # making bogus files that we don't know about and never remove. For
4574 # instance it was reported that on HP-UX the gcc test will end up
4575 # making a dummy file named 'D' -- because '-MD' means "put the output
4576 # in D".
4577 rm -rf conftest.dir
4578 mkdir conftest.dir
4579 # Copy depcomp to subdir because otherwise we won't find it if we're
4580 # using a relative directory.
4581 cp "$am_depcomp" conftest.dir
4582 cd conftest.dir
4583 # We will build objects and dependencies in a subdirectory because
4584 # it helps to detect inapplicable dependency modes. For instance
4585 # both Tru64's cc and ICC support -MD to output dependencies as a
4586 # side effect of compilation, but ICC will put the dependencies in
4587 # the current directory while Tru64 will put them in the object
4588 # directory.
4589 mkdir sub
4590
4591 am_cv_CC_dependencies_compiler_type=none
4592 if test "$am_compiler_list" = ""; then
4593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4594 fi
4595 am__universal=false
4596 case " $depcc " in #(
4597 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4598 esac
4599
4600 for depmode in $am_compiler_list; do
4601 # Setup a source with many dependencies, because some compilers
4602 # like to wrap large dependency lists on column 80 (with \), and
4603 # we should not choose a depcomp mode which is confused by this.
4604 #
4605 # We need to recreate these files for each test, as the compiler may
4606 # overwrite some of them when testing with obscure command lines.
4607 # This happens at least with the AIX C compiler.
4608 : > sub/conftest.c
4609 for i in 1 2 3 4 5 6; do
4610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4611 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4612 # Solaris 10 /bin/sh.
4613 echo '/* dummy */' > sub/conftst$i.h
4614 done
4615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4616
4617 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4618 # mode. It turns out that the SunPro C++ compiler does not properly
4619 # handle '-M -o', and we need to detect this. Also, some Intel
4620 # versions had trouble with output in subdirs.
4621 am__obj=sub/conftest.${OBJEXT-o}
4622 am__minus_obj="-o $am__obj"
4623 case $depmode in
4624 gcc)
4625 # This depmode causes a compiler race in universal mode.
4626 test "$am__universal" = false || continue
4627 ;;
4628 nosideeffect)
4629 # After this tag, mechanisms are not by side-effect, so they'll
4630 # only be used when explicitly requested.
4631 if test "x$enable_dependency_tracking" = xyes; then
4632 continue
4633 else
4634 break
4635 fi
4636 ;;
4637 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4638 # This compiler won't grok '-c -o', but also, the minuso test has
4639 # not run yet. These depmodes are late enough in the game, and
4640 # so weak that their functioning should not be impacted.
4641 am__obj=conftest.${OBJEXT-o}
4642 am__minus_obj=
4643 ;;
4644 none) break ;;
4645 esac
4646 if depmode=$depmode \
4647 source=sub/conftest.c object=$am__obj \
4648 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4649 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4650 >/dev/null 2>conftest.err &&
4651 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4652 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4653 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4654 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4655 # icc doesn't choke on unknown options, it will just issue warnings
4656 # or remarks (even with -Werror). So we grep stderr for any message
4657 # that says an option was ignored or not supported.
4658 # When given -MP, icc 7.0 and 7.1 complain thusly:
4659 # icc: Command line warning: ignoring option '-M'; no argument required
4660 # The diagnosis changed in icc 8.0:
4661 # icc: Command line remark: option '-MP' not supported
4662 if (grep 'ignoring option' conftest.err ||
4663 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4664 am_cv_CC_dependencies_compiler_type=$depmode
4665 break
4666 fi
4667 fi
4668 done
4669
4670 cd ..
4671 rm -rf conftest.dir
4672 else
4673 am_cv_CC_dependencies_compiler_type=none
4674 fi
4675
4676 fi
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4678 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4679 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4680
4681 if
4682 test "x$enable_dependency_tracking" != xno \
4683 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4684 am__fastdepCC_TRUE=
4685 am__fastdepCC_FALSE='#'
4686 else
4687 am__fastdepCC_TRUE='#'
4688 am__fastdepCC_FALSE=
4689 fi
4690
4691
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4693 printf %s "checking for a sed that does not truncate output... " >&6; }
4694 if test ${ac_cv_path_SED+y}
4695 then :
4696 printf %s "(cached) " >&6
4697 else $as_nop
4698 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4699 for ac_i in 1 2 3 4 5 6 7; do
4700 ac_script="$ac_script$as_nl$ac_script"
4701 done
4702 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4703 { ac_script=; unset ac_script;}
4704 if test -z "$SED"; then
4705 ac_path_SED_found=false
4706 # Loop through the user's path and test for each of PROGNAME-LIST
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 case $as_dir in #(((
4712 '') as_dir=./ ;;
4713 */) ;;
4714 *) as_dir=$as_dir/ ;;
4715 esac
4716 for ac_prog in sed gsed
4717 do
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4720 as_fn_executable_p "$ac_path_SED" || continue
4721 # Check for GNU ac_path_SED and select it if it is found.
4722 # Check for GNU $ac_path_SED
4723 case `"$ac_path_SED" --version 2>&1` in
4724 *GNU*)
4725 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4726 *)
4727 ac_count=0
4728 printf %s 0123456789 >"conftest.in"
4729 while :
4730 do
4731 cat "conftest.in" "conftest.in" >"conftest.tmp"
4732 mv "conftest.tmp" "conftest.in"
4733 cp "conftest.in" "conftest.nl"
4734 printf "%s\n" '' >> "conftest.nl"
4735 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4737 as_fn_arith $ac_count + 1 && ac_count=$as_val
4738 if test $ac_count -gt ${ac_path_SED_max-0}; then
4739 # Best one so far, save it but keep looking for a better one
4740 ac_cv_path_SED="$ac_path_SED"
4741 ac_path_SED_max=$ac_count
4742 fi
4743 # 10*(2^10) chars as input seems more than enough
4744 test $ac_count -gt 10 && break
4745 done
4746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747 esac
4748
4749 $ac_path_SED_found && break 3
4750 done
4751 done
4752 done
4753 IFS=$as_save_IFS
4754 if test -z "$ac_cv_path_SED"; then
4755 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4756 fi
4757 else
4758 ac_cv_path_SED=$SED
4759 fi
4760
4761 fi
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4763 printf "%s\n" "$ac_cv_path_SED" >&6; }
4764 SED="$ac_cv_path_SED"
4765 rm -f conftest.sed
4766
4767 test -z "$SED" && SED=sed
4768 Xsed="$SED -e 1s/^X//"
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4781 printf %s "checking for grep that handles long lines and -e... " >&6; }
4782 if test ${ac_cv_path_GREP+y}
4783 then :
4784 printf %s "(cached) " >&6
4785 else $as_nop
4786 if test -z "$GREP"; then
4787 ac_path_GREP_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4791 do
4792 IFS=$as_save_IFS
4793 case $as_dir in #(((
4794 '') as_dir=./ ;;
4795 */) ;;
4796 *) as_dir=$as_dir/ ;;
4797 esac
4798 for ac_prog in grep ggrep
4799 do
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4802 as_fn_executable_p "$ac_path_GREP" || continue
4803 # Check for GNU ac_path_GREP and select it if it is found.
4804 # Check for GNU $ac_path_GREP
4805 case `"$ac_path_GREP" --version 2>&1` in
4806 *GNU*)
4807 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4808 *)
4809 ac_count=0
4810 printf %s 0123456789 >"conftest.in"
4811 while :
4812 do
4813 cat "conftest.in" "conftest.in" >"conftest.tmp"
4814 mv "conftest.tmp" "conftest.in"
4815 cp "conftest.in" "conftest.nl"
4816 printf "%s\n" 'GREP' >> "conftest.nl"
4817 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4819 as_fn_arith $ac_count + 1 && ac_count=$as_val
4820 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4821 # Best one so far, save it but keep looking for a better one
4822 ac_cv_path_GREP="$ac_path_GREP"
4823 ac_path_GREP_max=$ac_count
4824 fi
4825 # 10*(2^10) chars as input seems more than enough
4826 test $ac_count -gt 10 && break
4827 done
4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4829 esac
4830
4831 $ac_path_GREP_found && break 3
4832 done
4833 done
4834 done
4835 IFS=$as_save_IFS
4836 if test -z "$ac_cv_path_GREP"; then
4837 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4838 fi
4839 else
4840 ac_cv_path_GREP=$GREP
4841 fi
4842
4843 fi
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4845 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4846 GREP="$ac_cv_path_GREP"
4847
4848
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4850 printf %s "checking for egrep... " >&6; }
4851 if test ${ac_cv_path_EGREP+y}
4852 then :
4853 printf %s "(cached) " >&6
4854 else $as_nop
4855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4856 then ac_cv_path_EGREP="$GREP -E"
4857 else
4858 if test -z "$EGREP"; then
4859 ac_path_EGREP_found=false
4860 # Loop through the user's path and test for each of PROGNAME-LIST
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 do
4864 IFS=$as_save_IFS
4865 case $as_dir in #(((
4866 '') as_dir=./ ;;
4867 */) ;;
4868 *) as_dir=$as_dir/ ;;
4869 esac
4870 for ac_prog in egrep
4871 do
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4874 as_fn_executable_p "$ac_path_EGREP" || continue
4875 # Check for GNU ac_path_EGREP and select it if it is found.
4876 # Check for GNU $ac_path_EGREP
4877 case `"$ac_path_EGREP" --version 2>&1` in
4878 *GNU*)
4879 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4880 *)
4881 ac_count=0
4882 printf %s 0123456789 >"conftest.in"
4883 while :
4884 do
4885 cat "conftest.in" "conftest.in" >"conftest.tmp"
4886 mv "conftest.tmp" "conftest.in"
4887 cp "conftest.in" "conftest.nl"
4888 printf "%s\n" 'EGREP' >> "conftest.nl"
4889 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4891 as_fn_arith $ac_count + 1 && ac_count=$as_val
4892 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4893 # Best one so far, save it but keep looking for a better one
4894 ac_cv_path_EGREP="$ac_path_EGREP"
4895 ac_path_EGREP_max=$ac_count
4896 fi
4897 # 10*(2^10) chars as input seems more than enough
4898 test $ac_count -gt 10 && break
4899 done
4900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901 esac
4902
4903 $ac_path_EGREP_found && break 3
4904 done
4905 done
4906 done
4907 IFS=$as_save_IFS
4908 if test -z "$ac_cv_path_EGREP"; then
4909 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910 fi
4911 else
4912 ac_cv_path_EGREP=$EGREP
4913 fi
4914
4915 fi
4916 fi
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4918 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4919 EGREP="$ac_cv_path_EGREP"
4920
4921
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4923 printf %s "checking for fgrep... " >&6; }
4924 if test ${ac_cv_path_FGREP+y}
4925 then :
4926 printf %s "(cached) " >&6
4927 else $as_nop
4928 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4929 then ac_cv_path_FGREP="$GREP -F"
4930 else
4931 if test -z "$FGREP"; then
4932 ac_path_FGREP_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 do
4937 IFS=$as_save_IFS
4938 case $as_dir in #(((
4939 '') as_dir=./ ;;
4940 */) ;;
4941 *) as_dir=$as_dir/ ;;
4942 esac
4943 for ac_prog in fgrep
4944 do
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4947 as_fn_executable_p "$ac_path_FGREP" || continue
4948 # Check for GNU ac_path_FGREP and select it if it is found.
4949 # Check for GNU $ac_path_FGREP
4950 case `"$ac_path_FGREP" --version 2>&1` in
4951 *GNU*)
4952 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4953 *)
4954 ac_count=0
4955 printf %s 0123456789 >"conftest.in"
4956 while :
4957 do
4958 cat "conftest.in" "conftest.in" >"conftest.tmp"
4959 mv "conftest.tmp" "conftest.in"
4960 cp "conftest.in" "conftest.nl"
4961 printf "%s\n" 'FGREP' >> "conftest.nl"
4962 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4964 as_fn_arith $ac_count + 1 && ac_count=$as_val
4965 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4966 # Best one so far, save it but keep looking for a better one
4967 ac_cv_path_FGREP="$ac_path_FGREP"
4968 ac_path_FGREP_max=$ac_count
4969 fi
4970 # 10*(2^10) chars as input seems more than enough
4971 test $ac_count -gt 10 && break
4972 done
4973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974 esac
4975
4976 $ac_path_FGREP_found && break 3
4977 done
4978 done
4979 done
4980 IFS=$as_save_IFS
4981 if test -z "$ac_cv_path_FGREP"; then
4982 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983 fi
4984 else
4985 ac_cv_path_FGREP=$FGREP
4986 fi
4987
4988 fi
4989 fi
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4991 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4992 FGREP="$ac_cv_path_FGREP"
4993
4994
4995 test -z "$GREP" && GREP=grep
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 # Check whether --with-gnu-ld was given.
5016 if test ${with_gnu_ld+y}
5017 then :
5018 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5019 else $as_nop
5020 with_gnu_ld=no
5021 fi
5022
5023 ac_prog=ld
5024 if test yes = "$GCC"; then
5025 # Check if gcc -print-prog-name=ld gives a path.
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5027 printf %s "checking for ld used by $CC... " >&6; }
5028 case $host in
5029 *-*-mingw*)
5030 # gcc leaves a trailing carriage return, which upsets mingw
5031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5032 *)
5033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5034 esac
5035 case $ac_prog in
5036 # Accept absolute paths.
5037 [\\/]* | ?:[\\/]*)
5038 re_direlt='/[^/][^/]*/\.\./'
5039 # Canonicalize the pathname of ld
5040 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5041 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5042 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5043 done
5044 test -z "$LD" && LD=$ac_prog
5045 ;;
5046 "")
5047 # If it fails, then pretend we aren't using GCC.
5048 ac_prog=ld
5049 ;;
5050 *)
5051 # If it is relative, then search for the first ld in PATH.
5052 with_gnu_ld=unknown
5053 ;;
5054 esac
5055 elif test yes = "$with_gnu_ld"; then
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5057 printf %s "checking for GNU ld... " >&6; }
5058 else
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5060 printf %s "checking for non-GNU ld... " >&6; }
5061 fi
5062 if test ${lt_cv_path_LD+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 if test -z "$LD"; then
5067 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5068 for ac_dir in $PATH; do
5069 IFS=$lt_save_ifs
5070 test -z "$ac_dir" && ac_dir=.
5071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5072 lt_cv_path_LD=$ac_dir/$ac_prog
5073 # Check to see if the program is GNU ld. I'd rather use --version,
5074 # but apparently some variants of GNU ld only accept -v.
5075 # Break only if it was the GNU/non-GNU ld that we prefer.
5076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5077 *GNU* | *'with BFD'*)
5078 test no != "$with_gnu_ld" && break
5079 ;;
5080 *)
5081 test yes != "$with_gnu_ld" && break
5082 ;;
5083 esac
5084 fi
5085 done
5086 IFS=$lt_save_ifs
5087 else
5088 lt_cv_path_LD=$LD # Let the user override the test with a path.
5089 fi
5090 fi
5091
5092 LD=$lt_cv_path_LD
5093 if test -n "$LD"; then
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5095 printf "%s\n" "$LD" >&6; }
5096 else
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 printf "%s\n" "no" >&6; }
5099 fi
5100 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5102 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5103 if test ${lt_cv_prog_gnu_ld+y}
5104 then :
5105 printf %s "(cached) " >&6
5106 else $as_nop
5107 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5108 case `$LD -v 2>&1 </dev/null` in
5109 *GNU* | *'with BFD'*)
5110 lt_cv_prog_gnu_ld=yes
5111 ;;
5112 *)
5113 lt_cv_prog_gnu_ld=no
5114 ;;
5115 esac
5116 fi
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5118 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5119 with_gnu_ld=$lt_cv_prog_gnu_ld
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5130 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5131 if test ${lt_cv_path_NM+y}
5132 then :
5133 printf %s "(cached) " >&6
5134 else $as_nop
5135 if test -n "$NM"; then
5136 # Let the user override the test.
5137 lt_cv_path_NM=$NM
5138 else
5139 lt_nm_to_check=${ac_tool_prefix}nm
5140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5141 lt_nm_to_check="$lt_nm_to_check nm"
5142 fi
5143 for lt_tmp_nm in $lt_nm_to_check; do
5144 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5145 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5146 IFS=$lt_save_ifs
5147 test -z "$ac_dir" && ac_dir=.
5148 tmp_nm=$ac_dir/$lt_tmp_nm
5149 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5150 # Check to see if the nm accepts a BSD-compat flag.
5151 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5152 # nm: unknown option "B" ignored
5153 # Tru64's nm complains that /dev/null is an invalid object file
5154 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5155 case $build_os in
5156 mingw*) lt_bad_file=conftest.nm/nofile ;;
5157 *) lt_bad_file=/dev/null ;;
5158 esac
5159 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5160 *$lt_bad_file* | *'Invalid file or object type'*)
5161 lt_cv_path_NM="$tmp_nm -B"
5162 break 2
5163 ;;
5164 *)
5165 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5166 */dev/null*)
5167 lt_cv_path_NM="$tmp_nm -p"
5168 break 2
5169 ;;
5170 *)
5171 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5172 continue # so that we can try to find one that supports BSD flags
5173 ;;
5174 esac
5175 ;;
5176 esac
5177 fi
5178 done
5179 IFS=$lt_save_ifs
5180 done
5181 : ${lt_cv_path_NM=no}
5182 fi
5183 fi
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5185 printf "%s\n" "$lt_cv_path_NM" >&6; }
5186 if test no != "$lt_cv_path_NM"; then
5187 NM=$lt_cv_path_NM
5188 else
5189 # Didn't find any BSD compatible name lister, look for dumpbin.
5190 if test -n "$DUMPBIN"; then :
5191 # Let the user override the test.
5192 else
5193 if test -n "$ac_tool_prefix"; then
5194 for ac_prog in dumpbin "link -dump"
5195 do
5196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 printf %s "checking for $ac_word... " >&6; }
5200 if test ${ac_cv_prog_DUMPBIN+y}
5201 then :
5202 printf %s "(cached) " >&6
5203 else $as_nop
5204 if test -n "$DUMPBIN"; then
5205 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 case $as_dir in #(((
5212 '') as_dir=./ ;;
5213 */) ;;
5214 *) as_dir=$as_dir/ ;;
5215 esac
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 fi
5227 fi
5228 DUMPBIN=$ac_cv_prog_DUMPBIN
5229 if test -n "$DUMPBIN"; then
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5231 printf "%s\n" "$DUMPBIN" >&6; }
5232 else
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 printf "%s\n" "no" >&6; }
5235 fi
5236
5237
5238 test -n "$DUMPBIN" && break
5239 done
5240 fi
5241 if test -z "$DUMPBIN"; then
5242 ac_ct_DUMPBIN=$DUMPBIN
5243 for ac_prog in dumpbin "link -dump"
5244 do
5245 # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy $ac_prog; ac_word=$2
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 printf %s "checking for $ac_word... " >&6; }
5249 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5250 then :
5251 printf %s "(cached) " >&6
5252 else $as_nop
5253 if test -n "$ac_ct_DUMPBIN"; then
5254 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 case $as_dir in #(((
5261 '') as_dir=./ ;;
5262 */) ;;
5263 *) as_dir=$as_dir/ ;;
5264 esac
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271 done
5272 done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5278 if test -n "$ac_ct_DUMPBIN"; then
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5280 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5281 else
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 printf "%s\n" "no" >&6; }
5284 fi
5285
5286
5287 test -n "$ac_ct_DUMPBIN" && break
5288 done
5289
5290 if test "x$ac_ct_DUMPBIN" = x; then
5291 DUMPBIN=":"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 DUMPBIN=$ac_ct_DUMPBIN
5300 fi
5301 fi
5302
5303 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5304 *COFF*)
5305 DUMPBIN="$DUMPBIN -symbols -headers"
5306 ;;
5307 *)
5308 DUMPBIN=:
5309 ;;
5310 esac
5311 fi
5312
5313 if test : != "$DUMPBIN"; then
5314 NM=$DUMPBIN
5315 fi
5316 fi
5317 test -z "$NM" && NM=nm
5318
5319
5320
5321
5322
5323
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5325 printf %s "checking the name lister ($NM) interface... " >&6; }
5326 if test ${lt_cv_nm_interface+y}
5327 then :
5328 printf %s "(cached) " >&6
5329 else $as_nop
5330 lt_cv_nm_interface="BSD nm"
5331 echo "int some_variable = 0;" > conftest.$ac_ext
5332 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5333 (eval "$ac_compile" 2>conftest.err)
5334 cat conftest.err >&5
5335 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5336 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5337 cat conftest.err >&5
5338 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5339 cat conftest.out >&5
5340 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5341 lt_cv_nm_interface="MS dumpbin"
5342 fi
5343 rm -f conftest*
5344 fi
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5346 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5347
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5349 printf %s "checking whether ln -s works... " >&6; }
5350 LN_S=$as_ln_s
5351 if test "$LN_S" = "ln -s"; then
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 printf "%s\n" "yes" >&6; }
5354 else
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5356 printf "%s\n" "no, using $LN_S" >&6; }
5357 fi
5358
5359 # find the maximum length of command line arguments
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5361 printf %s "checking the maximum length of command line arguments... " >&6; }
5362 if test ${lt_cv_sys_max_cmd_len+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else $as_nop
5366 i=0
5367 teststring=ABCD
5368
5369 case $build_os in
5370 msdosdjgpp*)
5371 # On DJGPP, this test can blow up pretty badly due to problems in libc
5372 # (any single argument exceeding 2000 bytes causes a buffer overrun
5373 # during glob expansion). Even if it were fixed, the result of this
5374 # check would be larger than it should be.
5375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5376 ;;
5377
5378 gnu*)
5379 # Under GNU Hurd, this test is not required because there is
5380 # no limit to the length of command line arguments.
5381 # Libtool will interpret -1 as no limit whatsoever
5382 lt_cv_sys_max_cmd_len=-1;
5383 ;;
5384
5385 cygwin* | mingw* | cegcc*)
5386 # On Win9x/ME, this test blows up -- it succeeds, but takes
5387 # about 5 minutes as the teststring grows exponentially.
5388 # Worse, since 9x/ME are not pre-emptively multitasking,
5389 # you end up with a "frozen" computer, even though with patience
5390 # the test eventually succeeds (with a max line length of 256k).
5391 # Instead, let's just punt: use the minimum linelength reported by
5392 # all of the supported platforms: 8192 (on NT/2K/XP).
5393 lt_cv_sys_max_cmd_len=8192;
5394 ;;
5395
5396 mint*)
5397 # On MiNT this can take a long time and run out of memory.
5398 lt_cv_sys_max_cmd_len=8192;
5399 ;;
5400
5401 amigaos*)
5402 # On AmigaOS with pdksh, this test takes hours, literally.
5403 # So we just punt and use a minimum line length of 8192.
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5406
5407 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5408 # This has been around since 386BSD, at least. Likely further.
5409 if test -x /sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411 elif test -x /usr/sbin/sysctl; then
5412 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5413 else
5414 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5415 fi
5416 # And add a safety zone
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419 ;;
5420
5421 interix*)
5422 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423 lt_cv_sys_max_cmd_len=196608
5424 ;;
5425
5426 os2*)
5427 # The test takes a long time on OS/2.
5428 lt_cv_sys_max_cmd_len=8192
5429 ;;
5430
5431 osf*)
5432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5434 # nice to cause kernel panics so lets avoid the loop below.
5435 # First set a reasonable default.
5436 lt_cv_sys_max_cmd_len=16384
5437 #
5438 if test -x /sbin/sysconfig; then
5439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5441 esac
5442 fi
5443 ;;
5444 sco3.2v5*)
5445 lt_cv_sys_max_cmd_len=102400
5446 ;;
5447 sysv5* | sco5v6* | sysv4.2uw2*)
5448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5449 if test -n "$kargmax"; then
5450 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5451 else
5452 lt_cv_sys_max_cmd_len=32768
5453 fi
5454 ;;
5455 *)
5456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5457 if test -n "$lt_cv_sys_max_cmd_len" && \
5458 test undefined != "$lt_cv_sys_max_cmd_len"; then
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461 else
5462 # Make teststring a little bigger before we do anything with it.
5463 # a 1K string should be a reasonable start.
5464 for i in 1 2 3 4 5 6 7 8; do
5465 teststring=$teststring$teststring
5466 done
5467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5468 # If test is not a shell built-in, we'll probably end up computing a
5469 # maximum length that is only half of the actual maximum length, but
5470 # we can't tell.
5471 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5472 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5473 test 17 != "$i" # 1/2 MB should be enough
5474 do
5475 i=`expr $i + 1`
5476 teststring=$teststring$teststring
5477 done
5478 # Only check the string length outside the loop.
5479 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5480 teststring=
5481 # Add a significant safety factor because C++ compilers can tack on
5482 # massive amounts of additional arguments before passing them to the
5483 # linker. It appears as though 1/2 is a usable value.
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485 fi
5486 ;;
5487 esac
5488
5489 fi
5490
5491 if test -n "$lt_cv_sys_max_cmd_len"; then
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5493 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5494 else
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5496 printf "%s\n" "none" >&6; }
5497 fi
5498 max_cmd_len=$lt_cv_sys_max_cmd_len
5499
5500
5501
5502
5503
5504
5505 : ${CP="cp -f"}
5506 : ${MV="mv -f"}
5507 : ${RM="rm -f"}
5508
5509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5510 lt_unset=unset
5511 else
5512 lt_unset=false
5513 fi
5514
5515
5516
5517
5518
5519 # test EBCDIC or ASCII
5520 case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523 lt_SP2NL='tr \040 \012'
5524 lt_NL2SP='tr \015\012 \040\040'
5525 ;;
5526 *) # EBCDIC based system
5527 lt_SP2NL='tr \100 \n'
5528 lt_NL2SP='tr \r\n \100\100'
5529 ;;
5530 esac
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5541 printf %s "checking how to convert $build file names to $host format... " >&6; }
5542 if test ${lt_cv_to_host_file_cmd+y}
5543 then :
5544 printf %s "(cached) " >&6
5545 else $as_nop
5546 case $host in
5547 *-*-mingw* )
5548 case $build in
5549 *-*-mingw* ) # actually msys
5550 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5551 ;;
5552 *-*-cygwin* )
5553 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5554 ;;
5555 * ) # otherwise, assume *nix
5556 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5557 ;;
5558 esac
5559 ;;
5560 *-*-cygwin* )
5561 case $build in
5562 *-*-mingw* ) # actually msys
5563 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5564 ;;
5565 *-*-cygwin* )
5566 lt_cv_to_host_file_cmd=func_convert_file_noop
5567 ;;
5568 * ) # otherwise, assume *nix
5569 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5570 ;;
5571 esac
5572 ;;
5573 * ) # unhandled hosts (and "normal" native builds)
5574 lt_cv_to_host_file_cmd=func_convert_file_noop
5575 ;;
5576 esac
5577
5578 fi
5579
5580 to_host_file_cmd=$lt_cv_to_host_file_cmd
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5582 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5583
5584
5585
5586
5587
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5589 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5590 if test ${lt_cv_to_tool_file_cmd+y}
5591 then :
5592 printf %s "(cached) " >&6
5593 else $as_nop
5594 #assume ordinary cross tools, or native build.
5595 lt_cv_to_tool_file_cmd=func_convert_file_noop
5596 case $host in
5597 *-*-mingw* )
5598 case $build in
5599 *-*-mingw* ) # actually msys
5600 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5601 ;;
5602 esac
5603 ;;
5604 esac
5605
5606 fi
5607
5608 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5610 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5611
5612
5613
5614
5615
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5617 printf %s "checking for $LD option to reload object files... " >&6; }
5618 if test ${lt_cv_ld_reload_flag+y}
5619 then :
5620 printf %s "(cached) " >&6
5621 else $as_nop
5622 lt_cv_ld_reload_flag='-r'
5623 fi
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5625 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5626 reload_flag=$lt_cv_ld_reload_flag
5627 case $reload_flag in
5628 "" | " "*) ;;
5629 *) reload_flag=" $reload_flag" ;;
5630 esac
5631 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5632 case $host_os in
5633 cygwin* | mingw* | pw32* | cegcc*)
5634 if test yes != "$GCC"; then
5635 reload_cmds=false
5636 fi
5637 ;;
5638 darwin*)
5639 if test yes = "$GCC"; then
5640 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5641 else
5642 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5643 fi
5644 ;;
5645 esac
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 if test -n "$ac_tool_prefix"; then
5656 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5657 set dummy ${ac_tool_prefix}file; ac_word=$2
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 printf %s "checking for $ac_word... " >&6; }
5660 if test ${ac_cv_prog_FILECMD+y}
5661 then :
5662 printf %s "(cached) " >&6
5663 else $as_nop
5664 if test -n "$FILECMD"; then
5665 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670 IFS=$as_save_IFS
5671 case $as_dir in #(((
5672 '') as_dir=./ ;;
5673 */) ;;
5674 *) as_dir=$as_dir/ ;;
5675 esac
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5680 break 2
5681 fi
5682 done
5683 done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 FILECMD=$ac_cv_prog_FILECMD
5689 if test -n "$FILECMD"; then
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5691 printf "%s\n" "$FILECMD" >&6; }
5692 else
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 printf "%s\n" "no" >&6; }
5695 fi
5696
5697
5698 fi
5699 if test -z "$ac_cv_prog_FILECMD"; then
5700 ac_ct_FILECMD=$FILECMD
5701 # Extract the first word of "file", so it can be a program name with args.
5702 set dummy file; ac_word=$2
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 printf %s "checking for $ac_word... " >&6; }
5705 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5706 then :
5707 printf %s "(cached) " >&6
5708 else $as_nop
5709 if test -n "$ac_ct_FILECMD"; then
5710 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 case $as_dir in #(((
5717 '') as_dir=./ ;;
5718 */) ;;
5719 *) as_dir=$as_dir/ ;;
5720 esac
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_ac_ct_FILECMD="file"
5724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5734 if test -n "$ac_ct_FILECMD"; then
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5736 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5737 else
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 printf "%s\n" "no" >&6; }
5740 fi
5741
5742 if test "x$ac_ct_FILECMD" = x; then
5743 FILECMD=":"
5744 else
5745 case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned=yes ;;
5750 esac
5751 FILECMD=$ac_ct_FILECMD
5752 fi
5753 else
5754 FILECMD="$ac_cv_prog_FILECMD"
5755 fi
5756
5757
5758
5759
5760
5761
5762
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 printf %s "checking for $ac_word... " >&6; }
5768 if test ${ac_cv_prog_OBJDUMP+y}
5769 then :
5770 printf %s "(cached) " >&6
5771 else $as_nop
5772 if test -n "$OBJDUMP"; then
5773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 case $as_dir in #(((
5780 '') as_dir=./ ;;
5781 */) ;;
5782 *) as_dir=$as_dir/ ;;
5783 esac
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794 fi
5795 fi
5796 OBJDUMP=$ac_cv_prog_OBJDUMP
5797 if test -n "$OBJDUMP"; then
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5799 printf "%s\n" "$OBJDUMP" >&6; }
5800 else
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 printf "%s\n" "no" >&6; }
5803 fi
5804
5805
5806 fi
5807 if test -z "$ac_cv_prog_OBJDUMP"; then
5808 ac_ct_OBJDUMP=$OBJDUMP
5809 # Extract the first word of "objdump", so it can be a program name with args.
5810 set dummy objdump; ac_word=$2
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 printf %s "checking for $ac_word... " >&6; }
5813 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5814 then :
5815 printf %s "(cached) " >&6
5816 else $as_nop
5817 if test -n "$ac_ct_OBJDUMP"; then
5818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823 IFS=$as_save_IFS
5824 case $as_dir in #(((
5825 '') as_dir=./ ;;
5826 */) ;;
5827 *) as_dir=$as_dir/ ;;
5828 esac
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5842 if test -n "$ac_ct_OBJDUMP"; then
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5844 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5845 else
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 printf "%s\n" "no" >&6; }
5848 fi
5849
5850 if test "x$ac_ct_OBJDUMP" = x; then
5851 OBJDUMP="false"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854 yes:)
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857 ac_tool_warned=yes ;;
5858 esac
5859 OBJDUMP=$ac_ct_OBJDUMP
5860 fi
5861 else
5862 OBJDUMP="$ac_cv_prog_OBJDUMP"
5863 fi
5864
5865 test -z "$OBJDUMP" && OBJDUMP=objdump
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5876 printf %s "checking how to recognize dependent libraries... " >&6; }
5877 if test ${lt_cv_deplibs_check_method+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else $as_nop
5881 lt_cv_file_magic_cmd='$MAGIC_CMD'
5882 lt_cv_file_magic_test_file=
5883 lt_cv_deplibs_check_method='unknown'
5884 # Need to set the preceding variable on all platforms that support
5885 # interlibrary dependencies.
5886 # 'none' -- dependencies not supported.
5887 # 'unknown' -- same as none, but documents that we really don't know.
5888 # 'pass_all' -- all dependencies passed with no checks.
5889 # 'test_compile' -- check by making test program.
5890 # 'file_magic [[regex]]' -- check by looking for files in library path
5891 # that responds to the $file_magic_cmd with a given extended regex.
5892 # If you have 'file' or equivalent on your system and you're not sure
5893 # whether 'pass_all' will *always* work, you probably want this one.
5894
5895 case $host_os in
5896 aix[4-9]*)
5897 lt_cv_deplibs_check_method=pass_all
5898 ;;
5899
5900 beos*)
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904 bsdi[45]*)
5905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5906 lt_cv_file_magic_cmd='$FILECMD -L'
5907 lt_cv_file_magic_test_file=/shlib/libc.so
5908 ;;
5909
5910 cygwin*)
5911 # func_win32_libid is a shell function defined in ltmain.sh
5912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5913 lt_cv_file_magic_cmd='func_win32_libid'
5914 ;;
5915
5916 mingw* | pw32*)
5917 # Base MSYS/MinGW do not provide the 'file' command needed by
5918 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5919 # unless we find 'file', for example because we are cross-compiling.
5920 if ( file / ) >/dev/null 2>&1; then
5921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5922 lt_cv_file_magic_cmd='func_win32_libid'
5923 else
5924 # Keep this pattern in sync with the one in func_win32_libid.
5925 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5926 lt_cv_file_magic_cmd='$OBJDUMP -f'
5927 fi
5928 ;;
5929
5930 cegcc*)
5931 # use the weaker test based on 'objdump'. See mingw*.
5932 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5933 lt_cv_file_magic_cmd='$OBJDUMP -f'
5934 ;;
5935
5936 darwin* | rhapsody*)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939
5940 freebsd* | dragonfly* | midnightbsd*)
5941 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5942 case $host_cpu in
5943 i*86 )
5944 # Not sure whether the presence of OpenBSD here was a mistake.
5945 # Let's accept both of them until this is cleared up.
5946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5947 lt_cv_file_magic_cmd=$FILECMD
5948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5949 ;;
5950 esac
5951 else
5952 lt_cv_deplibs_check_method=pass_all
5953 fi
5954 ;;
5955
5956 haiku*)
5957 lt_cv_deplibs_check_method=pass_all
5958 ;;
5959
5960 hpux10.20* | hpux11*)
5961 lt_cv_file_magic_cmd=$FILECMD
5962 case $host_cpu in
5963 ia64*)
5964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5965 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5966 ;;
5967 hppa*64*)
5968 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]'
5969 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5970 ;;
5971 *)
5972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5974 ;;
5975 esac
5976 ;;
5977
5978 interix[3-9]*)
5979 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5981 ;;
5982
5983 irix5* | irix6* | nonstopux*)
5984 case $LD in
5985 *-32|*"-32 ") libmagic=32-bit;;
5986 *-n32|*"-n32 ") libmagic=N32;;
5987 *-64|*"-64 ") libmagic=64-bit;;
5988 *) libmagic=never-match;;
5989 esac
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992
5993 # This must be glibc/ELF.
5994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997
5998 netbsd*)
5999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6001 else
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6003 fi
6004 ;;
6005
6006 newos6*)
6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6008 lt_cv_file_magic_cmd=$FILECMD
6009 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6010 ;;
6011
6012 *nto* | *qnx*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 openbsd* | bitrig*)
6017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6019 else
6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6021 fi
6022 ;;
6023
6024 osf3* | osf4* | osf5*)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027
6028 rdos*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032 solaris*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040 sysv4 | sysv4.3*)
6041 case $host_vendor in
6042 motorola)
6043 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]'
6044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6045 ;;
6046 ncr)
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049 sequent)
6050 lt_cv_file_magic_cmd='/bin/file'
6051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6052 ;;
6053 sni)
6054 lt_cv_file_magic_cmd='/bin/file'
6055 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6056 lt_cv_file_magic_test_file=/lib/libc.so
6057 ;;
6058 siemens)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061 pc)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064 esac
6065 ;;
6066
6067 tpf*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070 os2*)
6071 lt_cv_deplibs_check_method=pass_all
6072 ;;
6073 esac
6074
6075 fi
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6077 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6078
6079 file_magic_glob=
6080 want_nocaseglob=no
6081 if test "$build" = "$host"; then
6082 case $host_os in
6083 mingw* | pw32*)
6084 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6085 want_nocaseglob=yes
6086 else
6087 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6088 fi
6089 ;;
6090 esac
6091 fi
6092
6093 file_magic_cmd=$lt_cv_file_magic_cmd
6094 deplibs_check_method=$lt_cv_deplibs_check_method
6095 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 if test -n "$ac_tool_prefix"; then
6119 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6120 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 printf %s "checking for $ac_word... " >&6; }
6123 if test ${ac_cv_prog_DLLTOOL+y}
6124 then :
6125 printf %s "(cached) " >&6
6126 else $as_nop
6127 if test -n "$DLLTOOL"; then
6128 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 case $as_dir in #(((
6135 '') as_dir=./ ;;
6136 */) ;;
6137 *) as_dir=$as_dir/ ;;
6138 esac
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 DLLTOOL=$ac_cv_prog_DLLTOOL
6152 if test -n "$DLLTOOL"; then
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6154 printf "%s\n" "$DLLTOOL" >&6; }
6155 else
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 printf "%s\n" "no" >&6; }
6158 fi
6159
6160
6161 fi
6162 if test -z "$ac_cv_prog_DLLTOOL"; then
6163 ac_ct_DLLTOOL=$DLLTOOL
6164 # Extract the first word of "dlltool", so it can be a program name with args.
6165 set dummy dlltool; ac_word=$2
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 printf %s "checking for $ac_word... " >&6; }
6168 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6169 then :
6170 printf %s "(cached) " >&6
6171 else $as_nop
6172 if test -n "$ac_ct_DLLTOOL"; then
6173 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178 IFS=$as_save_IFS
6179 case $as_dir in #(((
6180 '') as_dir=./ ;;
6181 */) ;;
6182 *) as_dir=$as_dir/ ;;
6183 esac
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6197 if test -n "$ac_ct_DLLTOOL"; then
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6199 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6200 else
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 printf "%s\n" "no" >&6; }
6203 fi
6204
6205 if test "x$ac_ct_DLLTOOL" = x; then
6206 DLLTOOL="false"
6207 else
6208 case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212 ac_tool_warned=yes ;;
6213 esac
6214 DLLTOOL=$ac_ct_DLLTOOL
6215 fi
6216 else
6217 DLLTOOL="$ac_cv_prog_DLLTOOL"
6218 fi
6219
6220 test -z "$DLLTOOL" && DLLTOOL=dlltool
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6232 printf %s "checking how to associate runtime and link libraries... " >&6; }
6233 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6234 then :
6235 printf %s "(cached) " >&6
6236 else $as_nop
6237 lt_cv_sharedlib_from_linklib_cmd='unknown'
6238
6239 case $host_os in
6240 cygwin* | mingw* | pw32* | cegcc*)
6241 # two different shell functions defined in ltmain.sh;
6242 # decide which one to use based on capabilities of $DLLTOOL
6243 case `$DLLTOOL --help 2>&1` in
6244 *--identify-strict*)
6245 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6246 ;;
6247 *)
6248 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6249 ;;
6250 esac
6251 ;;
6252 *)
6253 # fallback: assume linklib IS sharedlib
6254 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6255 ;;
6256 esac
6257
6258 fi
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6260 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6261 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6262 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6263
6264
6265
6266
6267
6268
6269
6270
6271 if test -n "$ac_tool_prefix"; then
6272 for ac_prog in ar
6273 do
6274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 printf %s "checking for $ac_word... " >&6; }
6278 if test ${ac_cv_prog_AR+y}
6279 then :
6280 printf %s "(cached) " >&6
6281 else $as_nop
6282 if test -n "$AR"; then
6283 ac_cv_prog_AR="$AR" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 case $as_dir in #(((
6290 '') as_dir=./ ;;
6291 */) ;;
6292 *) as_dir=$as_dir/ ;;
6293 esac
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300 done
6301 done
6302 IFS=$as_save_IFS
6303
6304 fi
6305 fi
6306 AR=$ac_cv_prog_AR
6307 if test -n "$AR"; then
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6309 printf "%s\n" "$AR" >&6; }
6310 else
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 printf "%s\n" "no" >&6; }
6313 fi
6314
6315
6316 test -n "$AR" && break
6317 done
6318 fi
6319 if test -z "$AR"; then
6320 ac_ct_AR=$AR
6321 for ac_prog in ar
6322 do
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 printf %s "checking for $ac_word... " >&6; }
6327 if test ${ac_cv_prog_ac_ct_AR+y}
6328 then :
6329 printf %s "(cached) " >&6
6330 else $as_nop
6331 if test -n "$ac_ct_AR"; then
6332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337 IFS=$as_save_IFS
6338 case $as_dir in #(((
6339 '') as_dir=./ ;;
6340 */) ;;
6341 *) as_dir=$as_dir/ ;;
6342 esac
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6345 ac_cv_prog_ac_ct_AR="$ac_prog"
6346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6356 if test -n "$ac_ct_AR"; then
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6358 printf "%s\n" "$ac_ct_AR" >&6; }
6359 else
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 printf "%s\n" "no" >&6; }
6362 fi
6363
6364
6365 test -n "$ac_ct_AR" && break
6366 done
6367
6368 if test "x$ac_ct_AR" = x; then
6369 AR="false"
6370 else
6371 case $cross_compiling:$ac_tool_warned in
6372 yes:)
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6376 esac
6377 AR=$ac_ct_AR
6378 fi
6379 fi
6380
6381 : ${AR=ar}
6382
6383
6384
6385
6386
6387
6388 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6389 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6390 # higher priority because thats what people were doing historically (setting
6391 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6392 # variable obsoleted/removed.
6393
6394 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6395 lt_ar_flags=$AR_FLAGS
6396
6397
6398
6399
6400
6401
6402 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6403 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6404
6405
6406
6407
6408
6409
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6411 printf %s "checking for archiver @FILE support... " >&6; }
6412 if test ${lt_cv_ar_at_file+y}
6413 then :
6414 printf %s "(cached) " >&6
6415 else $as_nop
6416 lt_cv_ar_at_file=no
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419
6420 int
6421 main (void)
6422 {
6423
6424 ;
6425 return 0;
6426 }
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"
6429 then :
6430 echo conftest.$ac_objext > conftest.lst
6431 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6433 (eval $lt_ar_try) 2>&5
6434 ac_status=$?
6435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }
6437 if test 0 -eq "$ac_status"; then
6438 # Ensure the archiver fails upon bogus file names.
6439 rm -f conftest.$ac_objext libconftest.a
6440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6441 (eval $lt_ar_try) 2>&5
6442 ac_status=$?
6443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }
6445 if test 0 -ne "$ac_status"; then
6446 lt_cv_ar_at_file=@
6447 fi
6448 fi
6449 rm -f conftest.* libconftest.a
6450
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6453
6454 fi
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6456 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6457
6458 if test no = "$lt_cv_ar_at_file"; then
6459 archiver_list_spec=
6460 else
6461 archiver_list_spec=$lt_cv_ar_at_file
6462 fi
6463
6464
6465
6466
6467
6468
6469
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}strip; ac_word=$2
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 printf %s "checking for $ac_word... " >&6; }
6475 if test ${ac_cv_prog_STRIP+y}
6476 then :
6477 printf %s "(cached) " >&6
6478 else $as_nop
6479 if test -n "$STRIP"; then
6480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485 IFS=$as_save_IFS
6486 case $as_dir in #(((
6487 '') as_dir=./ ;;
6488 */) ;;
6489 *) as_dir=$as_dir/ ;;
6490 esac
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 STRIP=$ac_cv_prog_STRIP
6504 if test -n "$STRIP"; then
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6506 printf "%s\n" "$STRIP" >&6; }
6507 else
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 printf "%s\n" "no" >&6; }
6510 fi
6511
6512
6513 fi
6514 if test -z "$ac_cv_prog_STRIP"; then
6515 ac_ct_STRIP=$STRIP
6516 # Extract the first word of "strip", so it can be a program name with args.
6517 set dummy strip; ac_word=$2
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 printf %s "checking for $ac_word... " >&6; }
6520 if test ${ac_cv_prog_ac_ct_STRIP+y}
6521 then :
6522 printf %s "(cached) " >&6
6523 else $as_nop
6524 if test -n "$ac_ct_STRIP"; then
6525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530 IFS=$as_save_IFS
6531 case $as_dir in #(((
6532 '') as_dir=./ ;;
6533 */) ;;
6534 *) as_dir=$as_dir/ ;;
6535 esac
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_ac_ct_STRIP="strip"
6539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6549 if test -n "$ac_ct_STRIP"; then
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6551 printf "%s\n" "$ac_ct_STRIP" >&6; }
6552 else
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 printf "%s\n" "no" >&6; }
6555 fi
6556
6557 if test "x$ac_ct_STRIP" = x; then
6558 STRIP=":"
6559 else
6560 case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566 STRIP=$ac_ct_STRIP
6567 fi
6568 else
6569 STRIP="$ac_cv_prog_STRIP"
6570 fi
6571
6572 test -z "$STRIP" && STRIP=:
6573
6574
6575
6576
6577
6578
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 printf %s "checking for $ac_word... " >&6; }
6584 if test ${ac_cv_prog_RANLIB+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else $as_nop
6588 if test -n "$RANLIB"; then
6589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594 IFS=$as_save_IFS
6595 case $as_dir in #(((
6596 '') as_dir=./ ;;
6597 */) ;;
6598 *) as_dir=$as_dir/ ;;
6599 esac
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 RANLIB=$ac_cv_prog_RANLIB
6613 if test -n "$RANLIB"; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6615 printf "%s\n" "$RANLIB" >&6; }
6616 else
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 printf "%s\n" "no" >&6; }
6619 fi
6620
6621
6622 fi
6623 if test -z "$ac_cv_prog_RANLIB"; then
6624 ac_ct_RANLIB=$RANLIB
6625 # Extract the first word of "ranlib", so it can be a program name with args.
6626 set dummy ranlib; ac_word=$2
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 printf %s "checking for $ac_word... " >&6; }
6629 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6630 then :
6631 printf %s "(cached) " >&6
6632 else $as_nop
6633 if test -n "$ac_ct_RANLIB"; then
6634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 case $as_dir in #(((
6641 '') as_dir=./ ;;
6642 */) ;;
6643 *) as_dir=$as_dir/ ;;
6644 esac
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_ac_ct_RANLIB="ranlib"
6648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6658 if test -n "$ac_ct_RANLIB"; then
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6660 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6661 else
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 printf "%s\n" "no" >&6; }
6664 fi
6665
6666 if test "x$ac_ct_RANLIB" = x; then
6667 RANLIB=":"
6668 else
6669 case $cross_compiling:$ac_tool_warned in
6670 yes:)
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673 ac_tool_warned=yes ;;
6674 esac
6675 RANLIB=$ac_ct_RANLIB
6676 fi
6677 else
6678 RANLIB="$ac_cv_prog_RANLIB"
6679 fi
6680
6681 test -z "$RANLIB" && RANLIB=:
6682
6683
6684
6685
6686
6687
6688 # Determine commands to create old-style static archives.
6689 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6690 old_postinstall_cmds='chmod 644 $oldlib'
6691 old_postuninstall_cmds=
6692
6693 if test -n "$RANLIB"; then
6694 case $host_os in
6695 bitrig* | openbsd*)
6696 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6697 ;;
6698 *)
6699 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6700 ;;
6701 esac
6702 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6703 fi
6704
6705 case $host_os in
6706 darwin*)
6707 lock_old_archive_extraction=yes ;;
6708 *)
6709 lock_old_archive_extraction=no ;;
6710 esac
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750 # If no C compiler was specified, use CC.
6751 LTCC=${LTCC-"$CC"}
6752
6753 # If no C compiler flags were specified, use CFLAGS.
6754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6755
6756 # Allow CC to be a program name with arguments.
6757 compiler=$CC
6758
6759
6760 # Check for command to grab the raw symbol name followed by C symbol from nm.
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6762 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6763 if test ${lt_cv_sys_global_symbol_pipe+y}
6764 then :
6765 printf %s "(cached) " >&6
6766 else $as_nop
6767
6768 # These are sane defaults that work on at least a few old systems.
6769 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6770
6771 # Character class describing NM global symbol codes.
6772 symcode='[BCDEGRST]'
6773
6774 # Regexp to match symbols that can be accessed directly from C.
6775 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6776
6777 # Define system-specific variables.
6778 case $host_os in
6779 aix*)
6780 symcode='[BCDT]'
6781 ;;
6782 cygwin* | mingw* | pw32* | cegcc*)
6783 symcode='[ABCDGISTW]'
6784 ;;
6785 hpux*)
6786 if test ia64 = "$host_cpu"; then
6787 symcode='[ABCDEGRST]'
6788 fi
6789 ;;
6790 irix* | nonstopux*)
6791 symcode='[BCDEGRST]'
6792 ;;
6793 osf*)
6794 symcode='[BCDEGQRST]'
6795 ;;
6796 solaris*)
6797 symcode='[BDRT]'
6798 ;;
6799 sco3.2v5*)
6800 symcode='[DT]'
6801 ;;
6802 sysv4.2uw2*)
6803 symcode='[DT]'
6804 ;;
6805 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6806 symcode='[ABDT]'
6807 ;;
6808 sysv4)
6809 symcode='[DFNSTU]'
6810 ;;
6811 esac
6812
6813 # If we're using GNU nm, then use its standard symbol codes.
6814 case `$NM -V 2>&1` in
6815 *GNU* | *'with BFD'*)
6816 symcode='[ABCDGIRSTW]' ;;
6817 esac
6818
6819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6820 # Gets list of data symbols to import.
6821 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6822 # Adjust the below global symbol transforms to fixup imported variables.
6823 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6824 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6825 lt_c_name_lib_hook="\
6826 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6827 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6828 else
6829 # Disable hooks by default.
6830 lt_cv_sys_global_symbol_to_import=
6831 lt_cdecl_hook=
6832 lt_c_name_hook=
6833 lt_c_name_lib_hook=
6834 fi
6835
6836 # Transform an extracted symbol line into a proper C declaration.
6837 # Some systems (esp. on ia64) link data and code symbols differently,
6838 # so use this general approach.
6839 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6840 $lt_cdecl_hook\
6841 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6842 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6843
6844 # Transform an extracted symbol line into symbol name and symbol address
6845 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6846 $lt_c_name_hook\
6847 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6848 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6849
6850 # Transform an extracted symbol line into symbol name with lib prefix and
6851 # symbol address.
6852 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6853 $lt_c_name_lib_hook\
6854 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6855 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6856 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6857
6858 # Handle CRLF in mingw tool chain
6859 opt_cr=
6860 case $build_os in
6861 mingw*)
6862 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6863 ;;
6864 esac
6865
6866 # Try without a prefix underscore, then with it.
6867 for ac_symprfx in "" "_"; do
6868
6869 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6870 symxfrm="\\1 $ac_symprfx\\2 \\2"
6871
6872 # Write the raw and C identifiers.
6873 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6874 # Fake it for dumpbin and say T for any non-static function,
6875 # D for any global variable and I for any imported variable.
6876 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6877 # which start with @ or ?.
6878 lt_cv_sys_global_symbol_pipe="$AWK '"\
6879 " {last_section=section; section=\$ 3};"\
6880 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6881 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6882 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6883 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6884 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6885 " \$ 0!~/External *\|/{next};"\
6886 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6887 " {if(hide[section]) next};"\
6888 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6889 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6890 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6891 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6892 " ' prfx=^$ac_symprfx"
6893 else
6894 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6895 fi
6896 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6897
6898 # Check to see that the pipe works correctly.
6899 pipe_works=no
6900
6901 rm -f conftest*
6902 cat > conftest.$ac_ext <<_LT_EOF
6903 #ifdef __cplusplus
6904 extern "C" {
6905 #endif
6906 char nm_test_var;
6907 void nm_test_func(void);
6908 void nm_test_func(void){}
6909 #ifdef __cplusplus
6910 }
6911 #endif
6912 int main(){nm_test_var='a';nm_test_func();return(0);}
6913 _LT_EOF
6914
6915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6916 (eval $ac_compile) 2>&5
6917 ac_status=$?
6918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6919 test $ac_status = 0; }; then
6920 # Now try to grab the symbols.
6921 nlist=conftest.nm
6922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6923 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6924 ac_status=$?
6925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; } && test -s "$nlist"; then
6927 # Try sorting and uniquifying the output.
6928 if sort "$nlist" | uniq > "$nlist"T; then
6929 mv -f "$nlist"T "$nlist"
6930 else
6931 rm -f "$nlist"T
6932 fi
6933
6934 # Make sure that we snagged all the symbols we need.
6935 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6936 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6937 cat <<_LT_EOF > conftest.$ac_ext
6938 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6939 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6940 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6941 relocations are performed -- see ld's documentation on pseudo-relocs. */
6942 # define LT_DLSYM_CONST
6943 #elif defined __osf__
6944 /* This system does not cope well with relocations in const data. */
6945 # define LT_DLSYM_CONST
6946 #else
6947 # define LT_DLSYM_CONST const
6948 #endif
6949
6950 #ifdef __cplusplus
6951 extern "C" {
6952 #endif
6953
6954 _LT_EOF
6955 # Now generate the symbol file.
6956 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6957
6958 cat <<_LT_EOF >> conftest.$ac_ext
6959
6960 /* The mapping between symbol names and symbols. */
6961 LT_DLSYM_CONST struct {
6962 const char *name;
6963 void *address;
6964 }
6965 lt__PROGRAM__LTX_preloaded_symbols[] =
6966 {
6967 { "@PROGRAM@", (void *) 0 },
6968 _LT_EOF
6969 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6970 cat <<\_LT_EOF >> conftest.$ac_ext
6971 {0, (void *) 0}
6972 };
6973
6974 /* This works around a problem in FreeBSD linker */
6975 #ifdef FREEBSD_WORKAROUND
6976 static const void *lt_preloaded_setup() {
6977 return lt__PROGRAM__LTX_preloaded_symbols;
6978 }
6979 #endif
6980
6981 #ifdef __cplusplus
6982 }
6983 #endif
6984 _LT_EOF
6985 # Now try linking the two files.
6986 mv conftest.$ac_objext conftstm.$ac_objext
6987 lt_globsym_save_LIBS=$LIBS
6988 lt_globsym_save_CFLAGS=$CFLAGS
6989 LIBS=conftstm.$ac_objext
6990 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6992 (eval $ac_link) 2>&5
6993 ac_status=$?
6994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6996 pipe_works=yes
6997 fi
6998 LIBS=$lt_globsym_save_LIBS
6999 CFLAGS=$lt_globsym_save_CFLAGS
7000 else
7001 echo "cannot find nm_test_func in $nlist" >&5
7002 fi
7003 else
7004 echo "cannot find nm_test_var in $nlist" >&5
7005 fi
7006 else
7007 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7008 fi
7009 else
7010 echo "$progname: failed program was:" >&5
7011 cat conftest.$ac_ext >&5
7012 fi
7013 rm -rf conftest* conftst*
7014
7015 # Do not use the global_symbol_pipe unless it works.
7016 if test yes = "$pipe_works"; then
7017 break
7018 else
7019 lt_cv_sys_global_symbol_pipe=
7020 fi
7021 done
7022
7023 fi
7024
7025 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7026 lt_cv_sys_global_symbol_to_cdecl=
7027 fi
7028 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7030 printf "%s\n" "failed" >&6; }
7031 else
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7033 printf "%s\n" "ok" >&6; }
7034 fi
7035
7036 # Response file support.
7037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7038 nm_file_list_spec='@'
7039 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7040 nm_file_list_spec='@'
7041 fi
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7080 printf %s "checking for sysroot... " >&6; }
7081
7082 # Check whether --with-sysroot was given.
7083 if test ${with_sysroot+y}
7084 then :
7085 withval=$with_sysroot;
7086 else $as_nop
7087 with_sysroot=no
7088 fi
7089
7090
7091 lt_sysroot=
7092 case $with_sysroot in #(
7093 yes)
7094 if test yes = "$GCC"; then
7095 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7096 fi
7097 ;; #(
7098 /*)
7099 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7100 ;; #(
7101 no|'')
7102 ;; #(
7103 *)
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7105 printf "%s\n" "$with_sysroot" >&6; }
7106 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7107 ;;
7108 esac
7109
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7111 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7112
7113
7114
7115
7116
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7118 printf %s "checking for a working dd... " >&6; }
7119 if test ${ac_cv_path_lt_DD+y}
7120 then :
7121 printf %s "(cached) " >&6
7122 else $as_nop
7123 printf 0123456789abcdef0123456789abcdef >conftest.i
7124 cat conftest.i conftest.i >conftest2.i
7125 : ${lt_DD:=$DD}
7126 if test -z "$lt_DD"; then
7127 ac_path_lt_DD_found=false
7128 # Loop through the user's path and test for each of PROGNAME-LIST
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 case $as_dir in #(((
7134 '') as_dir=./ ;;
7135 */) ;;
7136 *) as_dir=$as_dir/ ;;
7137 esac
7138 for ac_prog in dd
7139 do
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7142 as_fn_executable_p "$ac_path_lt_DD" || continue
7143 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7144 cmp -s conftest.i conftest.out \
7145 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7146 fi
7147 $ac_path_lt_DD_found && break 3
7148 done
7149 done
7150 done
7151 IFS=$as_save_IFS
7152 if test -z "$ac_cv_path_lt_DD"; then
7153 :
7154 fi
7155 else
7156 ac_cv_path_lt_DD=$lt_DD
7157 fi
7158
7159 rm -f conftest.i conftest2.i conftest.out
7160 fi
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7162 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7163
7164
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7166 printf %s "checking how to truncate binary pipes... " >&6; }
7167 if test ${lt_cv_truncate_bin+y}
7168 then :
7169 printf %s "(cached) " >&6
7170 else $as_nop
7171 printf 0123456789abcdef0123456789abcdef >conftest.i
7172 cat conftest.i conftest.i >conftest2.i
7173 lt_cv_truncate_bin=
7174 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7175 cmp -s conftest.i conftest.out \
7176 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7177 fi
7178 rm -f conftest.i conftest2.i conftest.out
7179 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7180 fi
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7182 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7183
7184
7185
7186
7187
7188
7189
7190 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7191 func_cc_basename ()
7192 {
7193 for cc_temp in $*""; do
7194 case $cc_temp in
7195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7197 \-*) ;;
7198 *) break;;
7199 esac
7200 done
7201 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7202 }
7203
7204 # Check whether --enable-libtool-lock was given.
7205 if test ${enable_libtool_lock+y}
7206 then :
7207 enableval=$enable_libtool_lock;
7208 fi
7209
7210 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7211
7212 # Some flags need to be propagated to the compiler or linker for good
7213 # libtool support.
7214 case $host in
7215 ia64-*-hpux*)
7216 # Find out what ABI is being produced by ac_compile, and set mode
7217 # options accordingly.
7218 echo 'int i;' > conftest.$ac_ext
7219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7220 (eval $ac_compile) 2>&5
7221 ac_status=$?
7222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; }; then
7224 case `$FILECMD conftest.$ac_objext` in
7225 *ELF-32*)
7226 HPUX_IA64_MODE=32
7227 ;;
7228 *ELF-64*)
7229 HPUX_IA64_MODE=64
7230 ;;
7231 esac
7232 fi
7233 rm -rf conftest*
7234 ;;
7235 *-*-irix6*)
7236 # Find out what ABI is being produced by ac_compile, and set linker
7237 # options accordingly.
7238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240 (eval $ac_compile) 2>&5
7241 ac_status=$?
7242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; }; then
7244 if test yes = "$lt_cv_prog_gnu_ld"; then
7245 case `$FILECMD conftest.$ac_objext` in
7246 *32-bit*)
7247 LD="${LD-ld} -melf32bsmip"
7248 ;;
7249 *N32*)
7250 LD="${LD-ld} -melf32bmipn32"
7251 ;;
7252 *64-bit*)
7253 LD="${LD-ld} -melf64bmip"
7254 ;;
7255 esac
7256 else
7257 case `$FILECMD conftest.$ac_objext` in
7258 *32-bit*)
7259 LD="${LD-ld} -32"
7260 ;;
7261 *N32*)
7262 LD="${LD-ld} -n32"
7263 ;;
7264 *64-bit*)
7265 LD="${LD-ld} -64"
7266 ;;
7267 esac
7268 fi
7269 fi
7270 rm -rf conftest*
7271 ;;
7272
7273 mips64*-*linux*)
7274 # Find out what ABI is being produced by ac_compile, and set linker
7275 # options accordingly.
7276 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278 (eval $ac_compile) 2>&5
7279 ac_status=$?
7280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 emul=elf
7283 case `$FILECMD conftest.$ac_objext` in
7284 *32-bit*)
7285 emul="${emul}32"
7286 ;;
7287 *64-bit*)
7288 emul="${emul}64"
7289 ;;
7290 esac
7291 case `$FILECMD conftest.$ac_objext` in
7292 *MSB*)
7293 emul="${emul}btsmip"
7294 ;;
7295 *LSB*)
7296 emul="${emul}ltsmip"
7297 ;;
7298 esac
7299 case `$FILECMD conftest.$ac_objext` in
7300 *N32*)
7301 emul="${emul}n32"
7302 ;;
7303 esac
7304 LD="${LD-ld} -m $emul"
7305 fi
7306 rm -rf conftest*
7307 ;;
7308
7309 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7310 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7311 # Find out what ABI is being produced by ac_compile, and set linker
7312 # options accordingly. Note that the listed cases only cover the
7313 # situations where additional linker options are needed (such as when
7314 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7315 # vice versa); the common cases where no linker options are needed do
7316 # not appear in the list.
7317 echo 'int i;' > conftest.$ac_ext
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319 (eval $ac_compile) 2>&5
7320 ac_status=$?
7321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; }; then
7323 case `$FILECMD conftest.o` in
7324 *32-bit*)
7325 case $host in
7326 x86_64-*kfreebsd*-gnu)
7327 LD="${LD-ld} -m elf_i386_fbsd"
7328 ;;
7329 x86_64-*linux*)
7330 case `$FILECMD conftest.o` in
7331 *x86-64*)
7332 LD="${LD-ld} -m elf32_x86_64"
7333 ;;
7334 *)
7335 LD="${LD-ld} -m elf_i386"
7336 ;;
7337 esac
7338 ;;
7339 powerpc64le-*linux*)
7340 LD="${LD-ld} -m elf32lppclinux"
7341 ;;
7342 powerpc64-*linux*)
7343 LD="${LD-ld} -m elf32ppclinux"
7344 ;;
7345 s390x-*linux*)
7346 LD="${LD-ld} -m elf_s390"
7347 ;;
7348 sparc64-*linux*)
7349 LD="${LD-ld} -m elf32_sparc"
7350 ;;
7351 esac
7352 ;;
7353 *64-bit*)
7354 case $host in
7355 x86_64-*kfreebsd*-gnu)
7356 LD="${LD-ld} -m elf_x86_64_fbsd"
7357 ;;
7358 x86_64-*linux*)
7359 LD="${LD-ld} -m elf_x86_64"
7360 ;;
7361 powerpcle-*linux*)
7362 LD="${LD-ld} -m elf64lppc"
7363 ;;
7364 powerpc-*linux*)
7365 LD="${LD-ld} -m elf64ppc"
7366 ;;
7367 s390*-*linux*|s390*-*tpf*)
7368 LD="${LD-ld} -m elf64_s390"
7369 ;;
7370 sparc*-*linux*)
7371 LD="${LD-ld} -m elf64_sparc"
7372 ;;
7373 esac
7374 ;;
7375 esac
7376 fi
7377 rm -rf conftest*
7378 ;;
7379
7380 *-*-sco3.2v5*)
7381 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7382 SAVE_CFLAGS=$CFLAGS
7383 CFLAGS="$CFLAGS -belf"
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7385 printf %s "checking whether the C compiler needs -belf... " >&6; }
7386 if test ${lt_cv_cc_needs_belf+y}
7387 then :
7388 printf %s "(cached) " >&6
7389 else $as_nop
7390 ac_ext=c
7391 ac_cpp='$CPP $CPPFLAGS'
7392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398
7399 int
7400 main (void)
7401 {
7402
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 if ac_fn_c_try_link "$LINENO"
7408 then :
7409 lt_cv_cc_needs_belf=yes
7410 else $as_nop
7411 lt_cv_cc_needs_belf=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7414 conftest$ac_exeext conftest.$ac_ext
7415 ac_ext=c
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420
7421 fi
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7423 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7424 if test yes != "$lt_cv_cc_needs_belf"; then
7425 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7426 CFLAGS=$SAVE_CFLAGS
7427 fi
7428 ;;
7429 *-*solaris*)
7430 # Find out what ABI is being produced by ac_compile, and set linker
7431 # options accordingly.
7432 echo 'int i;' > conftest.$ac_ext
7433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7434 (eval $ac_compile) 2>&5
7435 ac_status=$?
7436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 case `$FILECMD conftest.o` in
7439 *64-bit*)
7440 case $lt_cv_prog_gnu_ld in
7441 yes*)
7442 case $host in
7443 i?86-*-solaris*|x86_64-*-solaris*)
7444 LD="${LD-ld} -m elf_x86_64"
7445 ;;
7446 sparc*-*-solaris*)
7447 LD="${LD-ld} -m elf64_sparc"
7448 ;;
7449 esac
7450 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7451 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7452 LD=${LD-ld}_sol2
7453 fi
7454 ;;
7455 *)
7456 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7457 LD="${LD-ld} -64"
7458 fi
7459 ;;
7460 esac
7461 ;;
7462 esac
7463 fi
7464 rm -rf conftest*
7465 ;;
7466 esac
7467
7468 need_locks=$enable_libtool_lock
7469
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7472 set dummy ${ac_tool_prefix}mt; ac_word=$2
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 printf %s "checking for $ac_word... " >&6; }
7475 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7476 then :
7477 printf %s "(cached) " >&6
7478 else $as_nop
7479 if test -n "$MANIFEST_TOOL"; then
7480 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485 IFS=$as_save_IFS
7486 case $as_dir in #(((
7487 '') as_dir=./ ;;
7488 */) ;;
7489 *) as_dir=$as_dir/ ;;
7490 esac
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7504 if test -n "$MANIFEST_TOOL"; then
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7506 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7507 else
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 printf "%s\n" "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7515 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7516 # Extract the first word of "mt", so it can be a program name with args.
7517 set dummy mt; ac_word=$2
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 printf %s "checking for $ac_word... " >&6; }
7520 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7521 then :
7522 printf %s "(cached) " >&6
7523 else $as_nop
7524 if test -n "$ac_ct_MANIFEST_TOOL"; then
7525 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530 IFS=$as_save_IFS
7531 case $as_dir in #(((
7532 '') as_dir=./ ;;
7533 */) ;;
7534 *) as_dir=$as_dir/ ;;
7535 esac
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7549 if test -n "$ac_ct_MANIFEST_TOOL"; then
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7551 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7552 else
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 printf "%s\n" "no" >&6; }
7555 fi
7556
7557 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7558 MANIFEST_TOOL=":"
7559 else
7560 case $cross_compiling:$ac_tool_warned in
7561 yes:)
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7565 esac
7566 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7567 fi
7568 else
7569 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7570 fi
7571
7572 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7574 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7575 if test ${lt_cv_path_mainfest_tool+y}
7576 then :
7577 printf %s "(cached) " >&6
7578 else $as_nop
7579 lt_cv_path_mainfest_tool=no
7580 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7581 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7582 cat conftest.err >&5
7583 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7584 lt_cv_path_mainfest_tool=yes
7585 fi
7586 rm -f conftest*
7587 fi
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7589 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7590 if test yes != "$lt_cv_path_mainfest_tool"; then
7591 MANIFEST_TOOL=:
7592 fi
7593
7594
7595
7596
7597
7598
7599 case $host_os in
7600 rhapsody* | darwin*)
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 printf %s "checking for $ac_word... " >&6; }
7606 if test ${ac_cv_prog_DSYMUTIL+y}
7607 then :
7608 printf %s "(cached) " >&6
7609 else $as_nop
7610 if test -n "$DSYMUTIL"; then
7611 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616 IFS=$as_save_IFS
7617 case $as_dir in #(((
7618 '') as_dir=./ ;;
7619 */) ;;
7620 *) as_dir=$as_dir/ ;;
7621 esac
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 fi
7633 fi
7634 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7635 if test -n "$DSYMUTIL"; then
7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7637 printf "%s\n" "$DSYMUTIL" >&6; }
7638 else
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 printf "%s\n" "no" >&6; }
7641 fi
7642
7643
7644 fi
7645 if test -z "$ac_cv_prog_DSYMUTIL"; then
7646 ac_ct_DSYMUTIL=$DSYMUTIL
7647 # Extract the first word of "dsymutil", so it can be a program name with args.
7648 set dummy dsymutil; ac_word=$2
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 printf %s "checking for $ac_word... " >&6; }
7651 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7652 then :
7653 printf %s "(cached) " >&6
7654 else $as_nop
7655 if test -n "$ac_ct_DSYMUTIL"; then
7656 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 case $as_dir in #(((
7663 '') as_dir=./ ;;
7664 */) ;;
7665 *) as_dir=$as_dir/ ;;
7666 esac
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7680 if test -n "$ac_ct_DSYMUTIL"; then
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7682 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7683 else
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 printf "%s\n" "no" >&6; }
7686 fi
7687
7688 if test "x$ac_ct_DSYMUTIL" = x; then
7689 DSYMUTIL=":"
7690 else
7691 case $cross_compiling:$ac_tool_warned in
7692 yes:)
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697 DSYMUTIL=$ac_ct_DSYMUTIL
7698 fi
7699 else
7700 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7701 fi
7702
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 printf %s "checking for $ac_word... " >&6; }
7708 if test ${ac_cv_prog_NMEDIT+y}
7709 then :
7710 printf %s "(cached) " >&6
7711 else $as_nop
7712 if test -n "$NMEDIT"; then
7713 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 case $as_dir in #(((
7720 '') as_dir=./ ;;
7721 */) ;;
7722 *) as_dir=$as_dir/ ;;
7723 esac
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 NMEDIT=$ac_cv_prog_NMEDIT
7737 if test -n "$NMEDIT"; then
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7739 printf "%s\n" "$NMEDIT" >&6; }
7740 else
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 printf "%s\n" "no" >&6; }
7743 fi
7744
7745
7746 fi
7747 if test -z "$ac_cv_prog_NMEDIT"; then
7748 ac_ct_NMEDIT=$NMEDIT
7749 # Extract the first word of "nmedit", so it can be a program name with args.
7750 set dummy nmedit; ac_word=$2
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 printf %s "checking for $ac_word... " >&6; }
7753 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7754 then :
7755 printf %s "(cached) " >&6
7756 else $as_nop
7757 if test -n "$ac_ct_NMEDIT"; then
7758 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763 IFS=$as_save_IFS
7764 case $as_dir in #(((
7765 '') as_dir=./ ;;
7766 */) ;;
7767 *) as_dir=$as_dir/ ;;
7768 esac
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775 done
7776 done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7782 if test -n "$ac_ct_NMEDIT"; then
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7784 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7785 else
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 printf "%s\n" "no" >&6; }
7788 fi
7789
7790 if test "x$ac_ct_NMEDIT" = x; then
7791 NMEDIT=":"
7792 else
7793 case $cross_compiling:$ac_tool_warned in
7794 yes:)
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797 ac_tool_warned=yes ;;
7798 esac
7799 NMEDIT=$ac_ct_NMEDIT
7800 fi
7801 else
7802 NMEDIT="$ac_cv_prog_NMEDIT"
7803 fi
7804
7805 if test -n "$ac_tool_prefix"; then
7806 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7807 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 printf %s "checking for $ac_word... " >&6; }
7810 if test ${ac_cv_prog_LIPO+y}
7811 then :
7812 printf %s "(cached) " >&6
7813 else $as_nop
7814 if test -n "$LIPO"; then
7815 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820 IFS=$as_save_IFS
7821 case $as_dir in #(((
7822 '') as_dir=./ ;;
7823 */) ;;
7824 *) as_dir=$as_dir/ ;;
7825 esac
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832 done
7833 done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 LIPO=$ac_cv_prog_LIPO
7839 if test -n "$LIPO"; then
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7841 printf "%s\n" "$LIPO" >&6; }
7842 else
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 printf "%s\n" "no" >&6; }
7845 fi
7846
7847
7848 fi
7849 if test -z "$ac_cv_prog_LIPO"; then
7850 ac_ct_LIPO=$LIPO
7851 # Extract the first word of "lipo", so it can be a program name with args.
7852 set dummy lipo; ac_word=$2
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 printf %s "checking for $ac_word... " >&6; }
7855 if test ${ac_cv_prog_ac_ct_LIPO+y}
7856 then :
7857 printf %s "(cached) " >&6
7858 else $as_nop
7859 if test -n "$ac_ct_LIPO"; then
7860 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865 IFS=$as_save_IFS
7866 case $as_dir in #(((
7867 '') as_dir=./ ;;
7868 */) ;;
7869 *) as_dir=$as_dir/ ;;
7870 esac
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_ac_ct_LIPO="lipo"
7874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7884 if test -n "$ac_ct_LIPO"; then
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7886 printf "%s\n" "$ac_ct_LIPO" >&6; }
7887 else
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 printf "%s\n" "no" >&6; }
7890 fi
7891
7892 if test "x$ac_ct_LIPO" = x; then
7893 LIPO=":"
7894 else
7895 case $cross_compiling:$ac_tool_warned in
7896 yes:)
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7899 ac_tool_warned=yes ;;
7900 esac
7901 LIPO=$ac_ct_LIPO
7902 fi
7903 else
7904 LIPO="$ac_cv_prog_LIPO"
7905 fi
7906
7907 if test -n "$ac_tool_prefix"; then
7908 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}otool; ac_word=$2
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 printf %s "checking for $ac_word... " >&6; }
7912 if test ${ac_cv_prog_OTOOL+y}
7913 then :
7914 printf %s "(cached) " >&6
7915 else $as_nop
7916 if test -n "$OTOOL"; then
7917 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 case $as_dir in #(((
7924 '') as_dir=./ ;;
7925 */) ;;
7926 *) as_dir=$as_dir/ ;;
7927 esac
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934 done
7935 done
7936 IFS=$as_save_IFS
7937
7938 fi
7939 fi
7940 OTOOL=$ac_cv_prog_OTOOL
7941 if test -n "$OTOOL"; then
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7943 printf "%s\n" "$OTOOL" >&6; }
7944 else
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 printf "%s\n" "no" >&6; }
7947 fi
7948
7949
7950 fi
7951 if test -z "$ac_cv_prog_OTOOL"; then
7952 ac_ct_OTOOL=$OTOOL
7953 # Extract the first word of "otool", so it can be a program name with args.
7954 set dummy otool; ac_word=$2
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 printf %s "checking for $ac_word... " >&6; }
7957 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7958 then :
7959 printf %s "(cached) " >&6
7960 else $as_nop
7961 if test -n "$ac_ct_OTOOL"; then
7962 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 case $as_dir in #(((
7969 '') as_dir=./ ;;
7970 */) ;;
7971 *) as_dir=$as_dir/ ;;
7972 esac
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_ac_ct_OTOOL="otool"
7976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7986 if test -n "$ac_ct_OTOOL"; then
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7988 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7989 else
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 printf "%s\n" "no" >&6; }
7992 fi
7993
7994 if test "x$ac_ct_OTOOL" = x; then
7995 OTOOL=":"
7996 else
7997 case $cross_compiling:$ac_tool_warned in
7998 yes:)
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8002 esac
8003 OTOOL=$ac_ct_OTOOL
8004 fi
8005 else
8006 OTOOL="$ac_cv_prog_OTOOL"
8007 fi
8008
8009 if test -n "$ac_tool_prefix"; then
8010 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8011 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 printf %s "checking for $ac_word... " >&6; }
8014 if test ${ac_cv_prog_OTOOL64+y}
8015 then :
8016 printf %s "(cached) " >&6
8017 else $as_nop
8018 if test -n "$OTOOL64"; then
8019 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024 IFS=$as_save_IFS
8025 case $as_dir in #(((
8026 '') as_dir=./ ;;
8027 */) ;;
8028 *) as_dir=$as_dir/ ;;
8029 esac
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 OTOOL64=$ac_cv_prog_OTOOL64
8043 if test -n "$OTOOL64"; then
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8045 printf "%s\n" "$OTOOL64" >&6; }
8046 else
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 printf "%s\n" "no" >&6; }
8049 fi
8050
8051
8052 fi
8053 if test -z "$ac_cv_prog_OTOOL64"; then
8054 ac_ct_OTOOL64=$OTOOL64
8055 # Extract the first word of "otool64", so it can be a program name with args.
8056 set dummy otool64; ac_word=$2
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 printf %s "checking for $ac_word... " >&6; }
8059 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8060 then :
8061 printf %s "(cached) " >&6
8062 else $as_nop
8063 if test -n "$ac_ct_OTOOL64"; then
8064 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069 IFS=$as_save_IFS
8070 case $as_dir in #(((
8071 '') as_dir=./ ;;
8072 */) ;;
8073 *) as_dir=$as_dir/ ;;
8074 esac
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_ac_ct_OTOOL64="otool64"
8078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081 done
8082 done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8088 if test -n "$ac_ct_OTOOL64"; then
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8090 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8091 else
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 printf "%s\n" "no" >&6; }
8094 fi
8095
8096 if test "x$ac_ct_OTOOL64" = x; then
8097 OTOOL64=":"
8098 else
8099 case $cross_compiling:$ac_tool_warned in
8100 yes:)
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103 ac_tool_warned=yes ;;
8104 esac
8105 OTOOL64=$ac_ct_OTOOL64
8106 fi
8107 else
8108 OTOOL64="$ac_cv_prog_OTOOL64"
8109 fi
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8138 printf %s "checking for -single_module linker flag... " >&6; }
8139 if test ${lt_cv_apple_cc_single_mod+y}
8140 then :
8141 printf %s "(cached) " >&6
8142 else $as_nop
8143 lt_cv_apple_cc_single_mod=no
8144 if test -z "$LT_MULTI_MODULE"; then
8145 # By default we will add the -single_module flag. You can override
8146 # by either setting the environment variable LT_MULTI_MODULE
8147 # non-empty at configure time, or by adding -multi_module to the
8148 # link flags.
8149 rm -rf libconftest.dylib*
8150 echo "int foo(void){return 1;}" > conftest.c
8151 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8152 -dynamiclib -Wl,-single_module conftest.c" >&5
8153 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8154 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8155 _lt_result=$?
8156 # If there is a non-empty error log, and "single_module"
8157 # appears in it, assume the flag caused a linker warning
8158 if test -s conftest.err && $GREP single_module conftest.err; then
8159 cat conftest.err >&5
8160 # Otherwise, if the output was created with a 0 exit code from
8161 # the compiler, it worked.
8162 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8163 lt_cv_apple_cc_single_mod=yes
8164 else
8165 cat conftest.err >&5
8166 fi
8167 rm -rf libconftest.dylib*
8168 rm -f conftest.*
8169 fi
8170 fi
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8172 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8173
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8175 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8176 if test ${lt_cv_ld_exported_symbols_list+y}
8177 then :
8178 printf %s "(cached) " >&6
8179 else $as_nop
8180 lt_cv_ld_exported_symbols_list=no
8181 save_LDFLAGS=$LDFLAGS
8182 echo "_main" > conftest.sym
8183 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186
8187 int
8188 main (void)
8189 {
8190
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_link "$LINENO"
8196 then :
8197 lt_cv_ld_exported_symbols_list=yes
8198 else $as_nop
8199 lt_cv_ld_exported_symbols_list=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8202 conftest$ac_exeext conftest.$ac_ext
8203 LDFLAGS=$save_LDFLAGS
8204
8205 fi
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8207 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8208
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8210 printf %s "checking for -force_load linker flag... " >&6; }
8211 if test ${lt_cv_ld_force_load+y}
8212 then :
8213 printf %s "(cached) " >&6
8214 else $as_nop
8215 lt_cv_ld_force_load=no
8216 cat > conftest.c << _LT_EOF
8217 int forced_loaded() { return 2;}
8218 _LT_EOF
8219 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8220 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8221 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8222 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8223 echo "$RANLIB libconftest.a" >&5
8224 $RANLIB libconftest.a 2>&5
8225 cat > conftest.c << _LT_EOF
8226 int main() { return 0;}
8227 _LT_EOF
8228 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8229 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8230 _lt_result=$?
8231 if test -s conftest.err && $GREP force_load conftest.err; then
8232 cat conftest.err >&5
8233 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8234 lt_cv_ld_force_load=yes
8235 else
8236 cat conftest.err >&5
8237 fi
8238 rm -f conftest.err libconftest.a conftest conftest.c
8239 rm -rf conftest.dSYM
8240
8241 fi
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8243 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8244 case $host_os in
8245 rhapsody* | darwin1.[012])
8246 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8247 darwin1.*)
8248 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8249 darwin*)
8250 case $MACOSX_DEPLOYMENT_TARGET,$host in
8251 10.[012],*|,*powerpc*-darwin[5-8]*)
8252 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8253 *)
8254 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8255 esac
8256 ;;
8257 esac
8258 if test yes = "$lt_cv_apple_cc_single_mod"; then
8259 _lt_dar_single_mod='$single_module'
8260 fi
8261 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8262 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8263 else
8264 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8265 fi
8266 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8267 _lt_dsymutil='~$DSYMUTIL $lib || :'
8268 else
8269 _lt_dsymutil=
8270 fi
8271 ;;
8272 esac
8273
8274 # func_munge_path_list VARIABLE PATH
8275 # -----------------------------------
8276 # VARIABLE is name of variable containing _space_ separated list of
8277 # directories to be munged by the contents of PATH, which is string
8278 # having a format:
8279 # "DIR[:DIR]:"
8280 # string "DIR[ DIR]" will be prepended to VARIABLE
8281 # ":DIR[:DIR]"
8282 # string "DIR[ DIR]" will be appended to VARIABLE
8283 # "DIRP[:DIRP]::[DIRA:]DIRA"
8284 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8285 # "DIRA[ DIRA]" will be appended to VARIABLE
8286 # "DIR[:DIR]"
8287 # VARIABLE will be replaced by "DIR[ DIR]"
8288 func_munge_path_list ()
8289 {
8290 case x$2 in
8291 x)
8292 ;;
8293 *:)
8294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8295 ;;
8296 x:*)
8297 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8298 ;;
8299 *::*)
8300 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8301 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8302 ;;
8303 *)
8304 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8305 ;;
8306 esac
8307 }
8308
8309 ac_header= ac_cache=
8310 for ac_item in $ac_header_c_list
8311 do
8312 if test $ac_cache; then
8313 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8314 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8315 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8316 fi
8317 ac_header= ac_cache=
8318 elif test $ac_header; then
8319 ac_cache=$ac_item
8320 else
8321 ac_header=$ac_item
8322 fi
8323 done
8324
8325
8326
8327
8328
8329
8330
8331
8332 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8333 then :
8334
8335 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8336
8337 fi
8338 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8339 "
8340 if test "x$ac_cv_header_dlfcn_h" = xyes
8341 then :
8342 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8343
8344 fi
8345
8346
8347
8348
8349
8350 # Set options
8351
8352
8353
8354 enable_dlopen=no
8355
8356
8357 enable_win32_dll=no
8358
8359
8360 # Check whether --enable-shared was given.
8361 if test ${enable_shared+y}
8362 then :
8363 enableval=$enable_shared; p=${PACKAGE-default}
8364 case $enableval in
8365 yes) enable_shared=yes ;;
8366 no) enable_shared=no ;;
8367 *)
8368 enable_shared=no
8369 # Look at the argument we got. We use all the common list separators.
8370 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8371 for pkg in $enableval; do
8372 IFS=$lt_save_ifs
8373 if test "X$pkg" = "X$p"; then
8374 enable_shared=yes
8375 fi
8376 done
8377 IFS=$lt_save_ifs
8378 ;;
8379 esac
8380 else $as_nop
8381 enable_shared=yes
8382 fi
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 # Check whether --enable-static was given.
8393 if test ${enable_static+y}
8394 then :
8395 enableval=$enable_static; p=${PACKAGE-default}
8396 case $enableval in
8397 yes) enable_static=yes ;;
8398 no) enable_static=no ;;
8399 *)
8400 enable_static=no
8401 # Look at the argument we got. We use all the common list separators.
8402 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8403 for pkg in $enableval; do
8404 IFS=$lt_save_ifs
8405 if test "X$pkg" = "X$p"; then
8406 enable_static=yes
8407 fi
8408 done
8409 IFS=$lt_save_ifs
8410 ;;
8411 esac
8412 else $as_nop
8413 enable_static=yes
8414 fi
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425 # Check whether --with-pic was given.
8426 if test ${with_pic+y}
8427 then :
8428 withval=$with_pic; lt_p=${PACKAGE-default}
8429 case $withval in
8430 yes|no) pic_mode=$withval ;;
8431 *)
8432 pic_mode=default
8433 # Look at the argument we got. We use all the common list separators.
8434 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8435 for lt_pkg in $withval; do
8436 IFS=$lt_save_ifs
8437 if test "X$lt_pkg" = "X$lt_p"; then
8438 pic_mode=yes
8439 fi
8440 done
8441 IFS=$lt_save_ifs
8442 ;;
8443 esac
8444 else $as_nop
8445 pic_mode=default
8446 fi
8447
8448
8449
8450
8451
8452
8453
8454
8455 # Check whether --enable-fast-install was given.
8456 if test ${enable_fast_install+y}
8457 then :
8458 enableval=$enable_fast_install; p=${PACKAGE-default}
8459 case $enableval in
8460 yes) enable_fast_install=yes ;;
8461 no) enable_fast_install=no ;;
8462 *)
8463 enable_fast_install=no
8464 # Look at the argument we got. We use all the common list separators.
8465 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8466 for pkg in $enableval; do
8467 IFS=$lt_save_ifs
8468 if test "X$pkg" = "X$p"; then
8469 enable_fast_install=yes
8470 fi
8471 done
8472 IFS=$lt_save_ifs
8473 ;;
8474 esac
8475 else $as_nop
8476 enable_fast_install=yes
8477 fi
8478
8479
8480
8481
8482
8483
8484
8485
8486 shared_archive_member_spec=
8487 case $host,$enable_shared in
8488 power*-*-aix[5-9]*,yes)
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8490 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8491
8492 # Check whether --with-aix-soname was given.
8493 if test ${with_aix_soname+y}
8494 then :
8495 withval=$with_aix_soname; case $withval in
8496 aix|svr4|both)
8497 ;;
8498 *)
8499 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8500 ;;
8501 esac
8502 lt_cv_with_aix_soname=$with_aix_soname
8503 else $as_nop
8504 if test ${lt_cv_with_aix_soname+y}
8505 then :
8506 printf %s "(cached) " >&6
8507 else $as_nop
8508 lt_cv_with_aix_soname=aix
8509 fi
8510
8511 with_aix_soname=$lt_cv_with_aix_soname
8512 fi
8513
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8515 printf "%s\n" "$with_aix_soname" >&6; }
8516 if test aix != "$with_aix_soname"; then
8517 # For the AIX way of multilib, we name the shared archive member
8518 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8519 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8520 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8521 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8522 if test 64 = "${OBJECT_MODE-32}"; then
8523 shared_archive_member_spec=shr_64
8524 else
8525 shared_archive_member_spec=shr
8526 fi
8527 fi
8528 ;;
8529 *)
8530 with_aix_soname=aix
8531 ;;
8532 esac
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543 # This can be used to rebuild libtool when needed
8544 LIBTOOL_DEPS=$ltmain
8545
8546 # Always use our own libtool.
8547 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578 test -z "$LN_S" && LN_S="ln -s"
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593 if test -n "${ZSH_VERSION+set}"; then
8594 setopt NO_GLOB_SUBST
8595 fi
8596
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8598 printf %s "checking for objdir... " >&6; }
8599 if test ${lt_cv_objdir+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else $as_nop
8603 rm -f .libs 2>/dev/null
8604 mkdir .libs 2>/dev/null
8605 if test -d .libs; then
8606 lt_cv_objdir=.libs
8607 else
8608 # MS-DOS does not allow filenames that begin with a dot.
8609 lt_cv_objdir=_libs
8610 fi
8611 rmdir .libs 2>/dev/null
8612 fi
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8614 printf "%s\n" "$lt_cv_objdir" >&6; }
8615 objdir=$lt_cv_objdir
8616
8617
8618
8619
8620
8621 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8622
8623
8624
8625
8626 case $host_os in
8627 aix3*)
8628 # AIX sometimes has problems with the GCC collect2 program. For some
8629 # reason, if we set the COLLECT_NAMES environment variable, the problems
8630 # vanish in a puff of smoke.
8631 if test set != "${COLLECT_NAMES+set}"; then
8632 COLLECT_NAMES=
8633 export COLLECT_NAMES
8634 fi
8635 ;;
8636 esac
8637
8638 # Global variables:
8639 ofile=libtool
8640 can_build_shared=yes
8641
8642 # All known linkers require a '.a' archive for static linking (except MSVC and
8643 # ICC, which need '.lib').
8644 libext=a
8645
8646 with_gnu_ld=$lt_cv_prog_gnu_ld
8647
8648 old_CC=$CC
8649 old_CFLAGS=$CFLAGS
8650
8651 # Set sane defaults for various variables
8652 test -z "$CC" && CC=cc
8653 test -z "$LTCC" && LTCC=$CC
8654 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8655 test -z "$LD" && LD=ld
8656 test -z "$ac_objext" && ac_objext=o
8657
8658 func_cc_basename $compiler
8659 cc_basename=$func_cc_basename_result
8660
8661
8662 # Only perform the check for file, if the check method requires it
8663 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8664 case $deplibs_check_method in
8665 file_magic*)
8666 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8668 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8669 if test ${lt_cv_path_MAGIC_CMD+y}
8670 then :
8671 printf %s "(cached) " >&6
8672 else $as_nop
8673 case $MAGIC_CMD in
8674 [\\/*] | ?:[\\/]*)
8675 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8676 ;;
8677 *)
8678 lt_save_MAGIC_CMD=$MAGIC_CMD
8679 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8681 for ac_dir in $ac_dummy; do
8682 IFS=$lt_save_ifs
8683 test -z "$ac_dir" && ac_dir=.
8684 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8685 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8686 if test -n "$file_magic_test_file"; then
8687 case $deplibs_check_method in
8688 "file_magic "*)
8689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8690 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8692 $EGREP "$file_magic_regex" > /dev/null; then
8693 :
8694 else
8695 cat <<_LT_EOF 1>&2
8696
8697 *** Warning: the command libtool uses to detect shared libraries,
8698 *** $file_magic_cmd, produces output that libtool cannot recognize.
8699 *** The result is that libtool may fail to recognize shared libraries
8700 *** as such. This will affect the creation of libtool libraries that
8701 *** depend on shared libraries, but programs linked with such libtool
8702 *** libraries will work regardless of this problem. Nevertheless, you
8703 *** may want to report the problem to your system manager and/or to
8704 *** bug-libtool@gnu.org
8705
8706 _LT_EOF
8707 fi ;;
8708 esac
8709 fi
8710 break
8711 fi
8712 done
8713 IFS=$lt_save_ifs
8714 MAGIC_CMD=$lt_save_MAGIC_CMD
8715 ;;
8716 esac
8717 fi
8718
8719 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8720 if test -n "$MAGIC_CMD"; then
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8722 printf "%s\n" "$MAGIC_CMD" >&6; }
8723 else
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 printf "%s\n" "no" >&6; }
8726 fi
8727
8728
8729
8730
8731
8732 if test -z "$lt_cv_path_MAGIC_CMD"; then
8733 if test -n "$ac_tool_prefix"; then
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8735 printf %s "checking for file... " >&6; }
8736 if test ${lt_cv_path_MAGIC_CMD+y}
8737 then :
8738 printf %s "(cached) " >&6
8739 else $as_nop
8740 case $MAGIC_CMD in
8741 [\\/*] | ?:[\\/]*)
8742 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8743 ;;
8744 *)
8745 lt_save_MAGIC_CMD=$MAGIC_CMD
8746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8748 for ac_dir in $ac_dummy; do
8749 IFS=$lt_save_ifs
8750 test -z "$ac_dir" && ac_dir=.
8751 if test -f "$ac_dir/file"; then
8752 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8753 if test -n "$file_magic_test_file"; then
8754 case $deplibs_check_method in
8755 "file_magic "*)
8756 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8757 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8759 $EGREP "$file_magic_regex" > /dev/null; then
8760 :
8761 else
8762 cat <<_LT_EOF 1>&2
8763
8764 *** Warning: the command libtool uses to detect shared libraries,
8765 *** $file_magic_cmd, produces output that libtool cannot recognize.
8766 *** The result is that libtool may fail to recognize shared libraries
8767 *** as such. This will affect the creation of libtool libraries that
8768 *** depend on shared libraries, but programs linked with such libtool
8769 *** libraries will work regardless of this problem. Nevertheless, you
8770 *** may want to report the problem to your system manager and/or to
8771 *** bug-libtool@gnu.org
8772
8773 _LT_EOF
8774 fi ;;
8775 esac
8776 fi
8777 break
8778 fi
8779 done
8780 IFS=$lt_save_ifs
8781 MAGIC_CMD=$lt_save_MAGIC_CMD
8782 ;;
8783 esac
8784 fi
8785
8786 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8787 if test -n "$MAGIC_CMD"; then
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8789 printf "%s\n" "$MAGIC_CMD" >&6; }
8790 else
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 printf "%s\n" "no" >&6; }
8793 fi
8794
8795
8796 else
8797 MAGIC_CMD=:
8798 fi
8799 fi
8800
8801 fi
8802 ;;
8803 esac
8804
8805 # Use C for the default configuration in the libtool script
8806
8807 lt_save_CC=$CC
8808 ac_ext=c
8809 ac_cpp='$CPP $CPPFLAGS'
8810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8813
8814
8815 # Source file extension for C test sources.
8816 ac_ext=c
8817
8818 # Object file extension for compiled C test sources.
8819 objext=o
8820 objext=$objext
8821
8822 # Code to be used in simple compile tests
8823 lt_simple_compile_test_code="int some_variable = 0;"
8824
8825 # Code to be used in simple link tests
8826 lt_simple_link_test_code='int main(){return(0);}'
8827
8828
8829
8830
8831
8832
8833
8834 # If no C compiler was specified, use CC.
8835 LTCC=${LTCC-"$CC"}
8836
8837 # If no C compiler flags were specified, use CFLAGS.
8838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8839
8840 # Allow CC to be a program name with arguments.
8841 compiler=$CC
8842
8843 # Save the default compiler, since it gets overwritten when the other
8844 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8845 compiler_DEFAULT=$CC
8846
8847 # save warnings/boilerplate of simple test code
8848 ac_outfile=conftest.$ac_objext
8849 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8850 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8851 _lt_compiler_boilerplate=`cat conftest.err`
8852 $RM conftest*
8853
8854 ac_outfile=conftest.$ac_objext
8855 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8856 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8857 _lt_linker_boilerplate=`cat conftest.err`
8858 $RM -r conftest*
8859
8860
8861 ## CAVEAT EMPTOR:
8862 ## There is no encapsulation within the following macros, do not change
8863 ## the running order or otherwise move them around unless you know exactly
8864 ## what you are doing...
8865 if test -n "$compiler"; then
8866
8867 lt_prog_compiler_no_builtin_flag=
8868
8869 if test yes = "$GCC"; then
8870 case $cc_basename in
8871 nvcc*)
8872 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8873 *)
8874 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8875 esac
8876
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8878 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8879 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8880 then :
8881 printf %s "(cached) " >&6
8882 else $as_nop
8883 lt_cv_prog_compiler_rtti_exceptions=no
8884 ac_outfile=conftest.$ac_objext
8885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8886 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8887 # Insert the option either (1) after the last *FLAGS variable, or
8888 # (2) before a word containing "conftest.", or (3) at the end.
8889 # Note that $ac_compile itself does not contain backslashes and begins
8890 # with a dollar sign (not a hyphen), so the echo should work correctly.
8891 # The option is referenced via a variable to avoid confusing sed.
8892 lt_compile=`echo "$ac_compile" | $SED \
8893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895 -e 's:$: $lt_compiler_flag:'`
8896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8897 (eval "$lt_compile" 2>conftest.err)
8898 ac_status=$?
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 if (exit $ac_status) && test -s "$ac_outfile"; then
8902 # The compiler can only warn and ignore the option if not recognized
8903 # So say no if there are warnings other than the usual output.
8904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8907 lt_cv_prog_compiler_rtti_exceptions=yes
8908 fi
8909 fi
8910 $RM conftest*
8911
8912 fi
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8914 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8915
8916 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8917 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8918 else
8919 :
8920 fi
8921
8922 fi
8923
8924
8925
8926
8927
8928
8929 lt_prog_compiler_wl=
8930 lt_prog_compiler_pic=
8931 lt_prog_compiler_static=
8932
8933
8934 if test yes = "$GCC"; then
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_static='-static'
8937
8938 case $host_os in
8939 aix*)
8940 # All AIX code is PIC.
8941 if test ia64 = "$host_cpu"; then
8942 # AIX 5 now supports IA64 processor
8943 lt_prog_compiler_static='-Bstatic'
8944 fi
8945 lt_prog_compiler_pic='-fPIC'
8946 ;;
8947
8948 amigaos*)
8949 case $host_cpu in
8950 powerpc)
8951 # see comment about AmigaOS4 .so support
8952 lt_prog_compiler_pic='-fPIC'
8953 ;;
8954 m68k)
8955 # FIXME: we need at least 68020 code to build shared libraries, but
8956 # adding the '-m68020' flag to GCC prevents building anything better,
8957 # like '-m68040'.
8958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8959 ;;
8960 esac
8961 ;;
8962
8963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8964 # PIC is the default for these OSes.
8965 ;;
8966
8967 mingw* | cygwin* | pw32* | os2* | cegcc*)
8968 # This hack is so that the source file can tell whether it is being
8969 # built for inclusion in a dll (and should export symbols for example).
8970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8971 # (--disable-auto-import) libraries
8972 lt_prog_compiler_pic='-DDLL_EXPORT'
8973 case $host_os in
8974 os2*)
8975 lt_prog_compiler_static='$wl-static'
8976 ;;
8977 esac
8978 ;;
8979
8980 darwin* | rhapsody*)
8981 # PIC is the default on this platform
8982 # Common symbols not allowed in MH_DYLIB files
8983 lt_prog_compiler_pic='-fno-common'
8984 ;;
8985
8986 haiku*)
8987 # PIC is the default for Haiku.
8988 # The "-static" flag exists, but is broken.
8989 lt_prog_compiler_static=
8990 ;;
8991
8992 hpux*)
8993 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8994 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8995 # sets the default TLS model and affects inlining.
8996 case $host_cpu in
8997 hppa*64*)
8998 # +Z the default
8999 ;;
9000 *)
9001 lt_prog_compiler_pic='-fPIC'
9002 ;;
9003 esac
9004 ;;
9005
9006 interix[3-9]*)
9007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9008 # Instead, we relocate shared libraries at runtime.
9009 ;;
9010
9011 msdosdjgpp*)
9012 # Just because we use GCC doesn't mean we suddenly get shared libraries
9013 # on systems that don't support them.
9014 lt_prog_compiler_can_build_shared=no
9015 enable_shared=no
9016 ;;
9017
9018 *nto* | *qnx*)
9019 # QNX uses GNU C++, but need to define -shared option too, otherwise
9020 # it will coredump.
9021 lt_prog_compiler_pic='-fPIC -shared'
9022 ;;
9023
9024 sysv4*MP*)
9025 if test -d /usr/nec; then
9026 lt_prog_compiler_pic=-Kconform_pic
9027 fi
9028 ;;
9029
9030 *)
9031 lt_prog_compiler_pic='-fPIC'
9032 ;;
9033 esac
9034
9035 case $cc_basename in
9036 nvcc*) # Cuda Compiler Driver 2.2
9037 lt_prog_compiler_wl='-Xlinker '
9038 if test -n "$lt_prog_compiler_pic"; then
9039 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9040 fi
9041 ;;
9042 esac
9043 else
9044 # PORTME Check for flag to pass linker flags through the system compiler.
9045 case $host_os in
9046 aix*)
9047 lt_prog_compiler_wl='-Wl,'
9048 if test ia64 = "$host_cpu"; then
9049 # AIX 5 now supports IA64 processor
9050 lt_prog_compiler_static='-Bstatic'
9051 else
9052 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9053 fi
9054 ;;
9055
9056 darwin* | rhapsody*)
9057 # PIC is the default on this platform
9058 # Common symbols not allowed in MH_DYLIB files
9059 lt_prog_compiler_pic='-fno-common'
9060 case $cc_basename in
9061 nagfor*)
9062 # NAG Fortran compiler
9063 lt_prog_compiler_wl='-Wl,-Wl,,'
9064 lt_prog_compiler_pic='-PIC'
9065 lt_prog_compiler_static='-Bstatic'
9066 ;;
9067 esac
9068 ;;
9069
9070 mingw* | cygwin* | pw32* | os2* | cegcc*)
9071 # This hack is so that the source file can tell whether it is being
9072 # built for inclusion in a dll (and should export symbols for example).
9073 lt_prog_compiler_pic='-DDLL_EXPORT'
9074 case $host_os in
9075 os2*)
9076 lt_prog_compiler_static='$wl-static'
9077 ;;
9078 esac
9079 ;;
9080
9081 hpux9* | hpux10* | hpux11*)
9082 lt_prog_compiler_wl='-Wl,'
9083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9084 # not for PA HP-UX.
9085 case $host_cpu in
9086 hppa*64*|ia64*)
9087 # +Z the default
9088 ;;
9089 *)
9090 lt_prog_compiler_pic='+Z'
9091 ;;
9092 esac
9093 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9094 lt_prog_compiler_static='$wl-a ${wl}archive'
9095 ;;
9096
9097 irix5* | irix6* | nonstopux*)
9098 lt_prog_compiler_wl='-Wl,'
9099 # PIC (with -KPIC) is the default.
9100 lt_prog_compiler_static='-non_shared'
9101 ;;
9102
9103 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9104 case $cc_basename in
9105 # old Intel for x86_64, which still supported -KPIC.
9106 ecc*)
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_pic='-KPIC'
9109 lt_prog_compiler_static='-static'
9110 ;;
9111 # icc used to be incompatible with GCC.
9112 # ICC 10 doesn't accept -KPIC any more.
9113 icc* | ifort*)
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_pic='-fPIC'
9116 lt_prog_compiler_static='-static'
9117 ;;
9118 # Lahey Fortran 8.1.
9119 lf95*)
9120 lt_prog_compiler_wl='-Wl,'
9121 lt_prog_compiler_pic='--shared'
9122 lt_prog_compiler_static='--static'
9123 ;;
9124 nagfor*)
9125 # NAG Fortran compiler
9126 lt_prog_compiler_wl='-Wl,-Wl,,'
9127 lt_prog_compiler_pic='-PIC'
9128 lt_prog_compiler_static='-Bstatic'
9129 ;;
9130 tcc*)
9131 # Fabrice Bellard et al's Tiny C Compiler
9132 lt_prog_compiler_wl='-Wl,'
9133 lt_prog_compiler_pic='-fPIC'
9134 lt_prog_compiler_static='-static'
9135 ;;
9136 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9137 # Portland Group compilers (*not* the Pentium gcc compiler,
9138 # which looks to be a dead project)
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-fpic'
9141 lt_prog_compiler_static='-Bstatic'
9142 ;;
9143 ccc*)
9144 lt_prog_compiler_wl='-Wl,'
9145 # All Alpha code is PIC.
9146 lt_prog_compiler_static='-non_shared'
9147 ;;
9148 xl* | bgxl* | bgf* | mpixl*)
9149 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-qpic'
9152 lt_prog_compiler_static='-qstaticlink'
9153 ;;
9154 *)
9155 case `$CC -V 2>&1 | $SED 5q` in
9156 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9157 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9158 lt_prog_compiler_pic='-KPIC'
9159 lt_prog_compiler_static='-Bstatic'
9160 lt_prog_compiler_wl=''
9161 ;;
9162 *Sun\ F* | *Sun*Fortran*)
9163 lt_prog_compiler_pic='-KPIC'
9164 lt_prog_compiler_static='-Bstatic'
9165 lt_prog_compiler_wl='-Qoption ld '
9166 ;;
9167 *Sun\ C*)
9168 # Sun C 5.9
9169 lt_prog_compiler_pic='-KPIC'
9170 lt_prog_compiler_static='-Bstatic'
9171 lt_prog_compiler_wl='-Wl,'
9172 ;;
9173 *Intel*\ [CF]*Compiler*)
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_pic='-fPIC'
9176 lt_prog_compiler_static='-static'
9177 ;;
9178 *Portland\ Group*)
9179 lt_prog_compiler_wl='-Wl,'
9180 lt_prog_compiler_pic='-fpic'
9181 lt_prog_compiler_static='-Bstatic'
9182 ;;
9183 esac
9184 ;;
9185 esac
9186 ;;
9187
9188 newsos6)
9189 lt_prog_compiler_pic='-KPIC'
9190 lt_prog_compiler_static='-Bstatic'
9191 ;;
9192
9193 *nto* | *qnx*)
9194 # QNX uses GNU C++, but need to define -shared option too, otherwise
9195 # it will coredump.
9196 lt_prog_compiler_pic='-fPIC -shared'
9197 ;;
9198
9199 osf3* | osf4* | osf5*)
9200 lt_prog_compiler_wl='-Wl,'
9201 # All OSF/1 code is PIC.
9202 lt_prog_compiler_static='-non_shared'
9203 ;;
9204
9205 rdos*)
9206 lt_prog_compiler_static='-non_shared'
9207 ;;
9208
9209 solaris*)
9210 lt_prog_compiler_pic='-KPIC'
9211 lt_prog_compiler_static='-Bstatic'
9212 case $cc_basename in
9213 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9214 lt_prog_compiler_wl='-Qoption ld ';;
9215 *)
9216 lt_prog_compiler_wl='-Wl,';;
9217 esac
9218 ;;
9219
9220 sunos4*)
9221 lt_prog_compiler_wl='-Qoption ld '
9222 lt_prog_compiler_pic='-PIC'
9223 lt_prog_compiler_static='-Bstatic'
9224 ;;
9225
9226 sysv4 | sysv4.2uw2* | sysv4.3*)
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='-KPIC'
9229 lt_prog_compiler_static='-Bstatic'
9230 ;;
9231
9232 sysv4*MP*)
9233 if test -d /usr/nec; then
9234 lt_prog_compiler_pic='-Kconform_pic'
9235 lt_prog_compiler_static='-Bstatic'
9236 fi
9237 ;;
9238
9239 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='-KPIC'
9242 lt_prog_compiler_static='-Bstatic'
9243 ;;
9244
9245 unicos*)
9246 lt_prog_compiler_wl='-Wl,'
9247 lt_prog_compiler_can_build_shared=no
9248 ;;
9249
9250 uts4*)
9251 lt_prog_compiler_pic='-pic'
9252 lt_prog_compiler_static='-Bstatic'
9253 ;;
9254
9255 *)
9256 lt_prog_compiler_can_build_shared=no
9257 ;;
9258 esac
9259 fi
9260
9261 case $host_os in
9262 # For platforms that do not support PIC, -DPIC is meaningless:
9263 *djgpp*)
9264 lt_prog_compiler_pic=
9265 ;;
9266 *)
9267 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9268 ;;
9269 esac
9270
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9272 printf %s "checking for $compiler option to produce PIC... " >&6; }
9273 if test ${lt_cv_prog_compiler_pic+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else $as_nop
9277 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9278 fi
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9280 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9281 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9282
9283 #
9284 # Check to make sure the PIC flag actually works.
9285 #
9286 if test -n "$lt_prog_compiler_pic"; then
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9288 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9289 if test ${lt_cv_prog_compiler_pic_works+y}
9290 then :
9291 printf %s "(cached) " >&6
9292 else $as_nop
9293 lt_cv_prog_compiler_pic_works=no
9294 ac_outfile=conftest.$ac_objext
9295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9297 # Insert the option either (1) after the last *FLAGS variable, or
9298 # (2) before a word containing "conftest.", or (3) at the end.
9299 # Note that $ac_compile itself does not contain backslashes and begins
9300 # with a dollar sign (not a hyphen), so the echo should work correctly.
9301 # The option is referenced via a variable to avoid confusing sed.
9302 lt_compile=`echo "$ac_compile" | $SED \
9303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9305 -e 's:$: $lt_compiler_flag:'`
9306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9307 (eval "$lt_compile" 2>conftest.err)
9308 ac_status=$?
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 if (exit $ac_status) && test -s "$ac_outfile"; then
9312 # The compiler can only warn and ignore the option if not recognized
9313 # So say no if there are warnings other than the usual output.
9314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9317 lt_cv_prog_compiler_pic_works=yes
9318 fi
9319 fi
9320 $RM conftest*
9321
9322 fi
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9324 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9325
9326 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9327 case $lt_prog_compiler_pic in
9328 "" | " "*) ;;
9329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9330 esac
9331 else
9332 lt_prog_compiler_pic=
9333 lt_prog_compiler_can_build_shared=no
9334 fi
9335
9336 fi
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 #
9349 # Check to make sure the static flag actually works.
9350 #
9351 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9353 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9354 if test ${lt_cv_prog_compiler_static_works+y}
9355 then :
9356 printf %s "(cached) " >&6
9357 else $as_nop
9358 lt_cv_prog_compiler_static_works=no
9359 save_LDFLAGS=$LDFLAGS
9360 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9361 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363 # The linker can only warn and ignore the option if not recognized
9364 # So say no if there are warnings
9365 if test -s conftest.err; then
9366 # Append any errors to the config.log.
9367 cat conftest.err 1>&5
9368 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370 if diff conftest.exp conftest.er2 >/dev/null; then
9371 lt_cv_prog_compiler_static_works=yes
9372 fi
9373 else
9374 lt_cv_prog_compiler_static_works=yes
9375 fi
9376 fi
9377 $RM -r conftest*
9378 LDFLAGS=$save_LDFLAGS
9379
9380 fi
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9382 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9383
9384 if test yes = "$lt_cv_prog_compiler_static_works"; then
9385 :
9386 else
9387 lt_prog_compiler_static=
9388 fi
9389
9390
9391
9392
9393
9394
9395
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9397 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9398 if test ${lt_cv_prog_compiler_c_o+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else $as_nop
9402 lt_cv_prog_compiler_c_o=no
9403 $RM -r conftest 2>/dev/null
9404 mkdir conftest
9405 cd conftest
9406 mkdir out
9407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408
9409 lt_compiler_flag="-o out/conftest2.$ac_objext"
9410 # Insert the option either (1) after the last *FLAGS variable, or
9411 # (2) before a word containing "conftest.", or (3) at the end.
9412 # Note that $ac_compile itself does not contain backslashes and begins
9413 # with a dollar sign (not a hyphen), so the echo should work correctly.
9414 lt_compile=`echo "$ac_compile" | $SED \
9415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9417 -e 's:$: $lt_compiler_flag:'`
9418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9419 (eval "$lt_compile" 2>out/conftest.err)
9420 ac_status=$?
9421 cat out/conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9424 then
9425 # The compiler can only warn and ignore the option if not recognized
9426 # So say no if there are warnings
9427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9430 lt_cv_prog_compiler_c_o=yes
9431 fi
9432 fi
9433 chmod u+w . 2>&5
9434 $RM conftest*
9435 # SGI C++ compiler will create directory out/ii_files/ for
9436 # template instantiation
9437 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9438 $RM out/* && rmdir out
9439 cd ..
9440 $RM -r conftest
9441 $RM conftest*
9442
9443 fi
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9445 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9446
9447
9448
9449
9450
9451
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9453 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9454 if test ${lt_cv_prog_compiler_c_o+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else $as_nop
9458 lt_cv_prog_compiler_c_o=no
9459 $RM -r conftest 2>/dev/null
9460 mkdir conftest
9461 cd conftest
9462 mkdir out
9463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9464
9465 lt_compiler_flag="-o out/conftest2.$ac_objext"
9466 # Insert the option either (1) after the last *FLAGS variable, or
9467 # (2) before a word containing "conftest.", or (3) at the end.
9468 # Note that $ac_compile itself does not contain backslashes and begins
9469 # with a dollar sign (not a hyphen), so the echo should work correctly.
9470 lt_compile=`echo "$ac_compile" | $SED \
9471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9473 -e 's:$: $lt_compiler_flag:'`
9474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9475 (eval "$lt_compile" 2>out/conftest.err)
9476 ac_status=$?
9477 cat out/conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9480 then
9481 # The compiler can only warn and ignore the option if not recognized
9482 # So say no if there are warnings
9483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_c_o=yes
9487 fi
9488 fi
9489 chmod u+w . 2>&5
9490 $RM conftest*
9491 # SGI C++ compiler will create directory out/ii_files/ for
9492 # template instantiation
9493 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9494 $RM out/* && rmdir out
9495 cd ..
9496 $RM -r conftest
9497 $RM conftest*
9498
9499 fi
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9501 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9502
9503
9504
9505
9506 hard_links=nottested
9507 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9508 # do not overwrite the value of need_locks provided by the user
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9510 printf %s "checking if we can lock with hard links... " >&6; }
9511 hard_links=yes
9512 $RM conftest*
9513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9514 touch conftest.a
9515 ln conftest.a conftest.b 2>&5 || hard_links=no
9516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9518 printf "%s\n" "$hard_links" >&6; }
9519 if test no = "$hard_links"; then
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9521 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9522 need_locks=warn
9523 fi
9524 else
9525 need_locks=no
9526 fi
9527
9528
9529
9530
9531
9532
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9534 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9535
9536 runpath_var=
9537 allow_undefined_flag=
9538 always_export_symbols=no
9539 archive_cmds=
9540 archive_expsym_cmds=
9541 compiler_needs_object=no
9542 enable_shared_with_static_runtimes=no
9543 export_dynamic_flag_spec=
9544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9545 hardcode_automatic=no
9546 hardcode_direct=no
9547 hardcode_direct_absolute=no
9548 hardcode_libdir_flag_spec=
9549 hardcode_libdir_separator=
9550 hardcode_minus_L=no
9551 hardcode_shlibpath_var=unsupported
9552 inherit_rpath=no
9553 link_all_deplibs=unknown
9554 module_cmds=
9555 module_expsym_cmds=
9556 old_archive_from_new_cmds=
9557 old_archive_from_expsyms_cmds=
9558 thread_safe_flag_spec=
9559 whole_archive_flag_spec=
9560 # include_expsyms should be a list of space-separated symbols to be *always*
9561 # included in the symbol list
9562 include_expsyms=
9563 # exclude_expsyms can be an extended regexp of symbols to exclude
9564 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9565 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9566 # as well as any symbol that contains 'd'.
9567 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9569 # platforms (ab)use it in PIC code, but their linkers get confused if
9570 # the symbol is explicitly referenced. Since portable code cannot
9571 # rely on this symbol name, it's probably fine to never include it in
9572 # preloaded symbol tables.
9573 # Exclude shared library initialization/finalization symbols.
9574 extract_expsyms_cmds=
9575
9576 case $host_os in
9577 cygwin* | mingw* | pw32* | cegcc*)
9578 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9579 # When not using gcc, we currently assume that we are using
9580 # Microsoft Visual C++ or Intel C++ Compiler.
9581 if test yes != "$GCC"; then
9582 with_gnu_ld=no
9583 fi
9584 ;;
9585 interix*)
9586 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9587 with_gnu_ld=yes
9588 ;;
9589 openbsd* | bitrig*)
9590 with_gnu_ld=no
9591 ;;
9592 esac
9593
9594 ld_shlibs=yes
9595
9596 # On some targets, GNU ld is compatible enough with the native linker
9597 # that we're better off using the native interface for both.
9598 lt_use_gnu_ld_interface=no
9599 if test yes = "$with_gnu_ld"; then
9600 case $host_os in
9601 aix*)
9602 # The AIX port of GNU ld has always aspired to compatibility
9603 # with the native linker. However, as the warning in the GNU ld
9604 # block says, versions before 2.19.5* couldn't really create working
9605 # shared libraries, regardless of the interface used.
9606 case `$LD -v 2>&1` in
9607 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9608 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9609 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9610 *)
9611 lt_use_gnu_ld_interface=yes
9612 ;;
9613 esac
9614 ;;
9615 *)
9616 lt_use_gnu_ld_interface=yes
9617 ;;
9618 esac
9619 fi
9620
9621 if test yes = "$lt_use_gnu_ld_interface"; then
9622 # If archive_cmds runs LD, not CC, wlarc should be empty
9623 wlarc='$wl'
9624
9625 # Set some defaults for GNU ld with shared library support. These
9626 # are reset later if shared libraries are not supported. Putting them
9627 # here allows them to be overridden if necessary.
9628 runpath_var=LD_RUN_PATH
9629 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9630 export_dynamic_flag_spec='$wl--export-dynamic'
9631 # ancient GNU ld didn't support --whole-archive et. al.
9632 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9633 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9634 else
9635 whole_archive_flag_spec=
9636 fi
9637 supports_anon_versioning=no
9638 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9639 *GNU\ gold*) supports_anon_versioning=yes ;;
9640 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9641 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9642 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9643 *\ 2.11.*) ;; # other 2.11 versions
9644 *) supports_anon_versioning=yes ;;
9645 esac
9646
9647 # See if GNU ld supports shared libraries.
9648 case $host_os in
9649 aix[3-9]*)
9650 # On AIX/PPC, the GNU linker is very broken
9651 if test ia64 != "$host_cpu"; then
9652 ld_shlibs=no
9653 cat <<_LT_EOF 1>&2
9654
9655 *** Warning: the GNU linker, at least up to release 2.19, is reported
9656 *** to be unable to reliably create shared libraries on AIX.
9657 *** Therefore, libtool is disabling shared libraries support. If you
9658 *** really care for shared libraries, you may want to install binutils
9659 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9660 *** You will then need to restart the configuration process.
9661
9662 _LT_EOF
9663 fi
9664 ;;
9665
9666 amigaos*)
9667 case $host_cpu in
9668 powerpc)
9669 # see comment about AmigaOS4 .so support
9670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9671 archive_expsym_cmds=''
9672 ;;
9673 m68k)
9674 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)'
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_minus_L=yes
9677 ;;
9678 esac
9679 ;;
9680
9681 beos*)
9682 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9683 allow_undefined_flag=unsupported
9684 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9685 # support --undefined. This deserves some investigation. FIXME
9686 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9687 else
9688 ld_shlibs=no
9689 fi
9690 ;;
9691
9692 cygwin* | mingw* | pw32* | cegcc*)
9693 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9694 # as there is no search path for DLLs.
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 export_dynamic_flag_spec='$wl--export-all-symbols'
9697 allow_undefined_flag=unsupported
9698 always_export_symbols=no
9699 enable_shared_with_static_runtimes=yes
9700 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'
9701 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9702
9703 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9705 # If the export-symbols file already is a .def file, use it as
9706 # is; otherwise, prepend EXPORTS...
9707 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9708 cp $export_symbols $output_objdir/$soname.def;
9709 else
9710 echo EXPORTS > $output_objdir/$soname.def;
9711 cat $export_symbols >> $output_objdir/$soname.def;
9712 fi~
9713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9714 else
9715 ld_shlibs=no
9716 fi
9717 ;;
9718
9719 haiku*)
9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9721 link_all_deplibs=yes
9722 ;;
9723
9724 os2*)
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 hardcode_minus_L=yes
9727 allow_undefined_flag=unsupported
9728 shrext_cmds=.dll
9729 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9730 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9731 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9732 $ECHO EXPORTS >> $output_objdir/$libname.def~
9733 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9735 emximp -o $lib $output_objdir/$libname.def'
9736 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9739 $ECHO EXPORTS >> $output_objdir/$libname.def~
9740 prefix_cmds="$SED"~
9741 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9742 prefix_cmds="$prefix_cmds -e 1d";
9743 fi~
9744 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9745 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9747 emximp -o $lib $output_objdir/$libname.def'
9748 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9749 enable_shared_with_static_runtimes=yes
9750 file_list_spec='@'
9751 ;;
9752
9753 interix[3-9]*)
9754 hardcode_direct=no
9755 hardcode_shlibpath_var=no
9756 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9757 export_dynamic_flag_spec='$wl-E'
9758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9759 # Instead, shared libraries are loaded at an image base (0x10000000 by
9760 # default) and relocated if they conflict, which is a slow very memory
9761 # consuming and fragmenting process. To avoid this, we pick a random,
9762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9763 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9765 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'
9766 ;;
9767
9768 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9769 tmp_diet=no
9770 if test linux-dietlibc = "$host_os"; then
9771 case $cc_basename in
9772 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9773 esac
9774 fi
9775 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9776 && test no = "$tmp_diet"
9777 then
9778 tmp_addflag=' $pic_flag'
9779 tmp_sharedflag='-shared'
9780 case $cc_basename,$host_cpu in
9781 pgcc*) # Portland Group C compiler
9782 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'
9783 tmp_addflag=' $pic_flag'
9784 ;;
9785 pgf77* | pgf90* | pgf95* | pgfortran*)
9786 # Portland Group f77 and f90 compilers
9787 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'
9788 tmp_addflag=' $pic_flag -Mnomain' ;;
9789 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9790 tmp_addflag=' -i_dynamic' ;;
9791 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9792 tmp_addflag=' -i_dynamic -nofor_main' ;;
9793 ifc* | ifort*) # Intel Fortran compiler
9794 tmp_addflag=' -nofor_main' ;;
9795 lf95*) # Lahey Fortran 8.1
9796 whole_archive_flag_spec=
9797 tmp_sharedflag='--shared' ;;
9798 nagfor*) # NAGFOR 5.3
9799 tmp_sharedflag='-Wl,-shared' ;;
9800 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9801 tmp_sharedflag='-qmkshrobj'
9802 tmp_addflag= ;;
9803 nvcc*) # Cuda Compiler Driver 2.2
9804 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'
9805 compiler_needs_object=yes
9806 ;;
9807 esac
9808 case `$CC -V 2>&1 | $SED 5q` in
9809 *Sun\ C*) # Sun C 5.9
9810 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'
9811 compiler_needs_object=yes
9812 tmp_sharedflag='-G' ;;
9813 *Sun\ F*) # Sun Fortran 8.3
9814 tmp_sharedflag='-G' ;;
9815 esac
9816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9817
9818 if test yes = "$supports_anon_versioning"; then
9819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9820 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9821 echo "local: *; };" >> $output_objdir/$libname.ver~
9822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9823 fi
9824
9825 case $cc_basename in
9826 tcc*)
9827 export_dynamic_flag_spec='-rdynamic'
9828 ;;
9829 xlf* | bgf* | bgxlf* | mpixlf*)
9830 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9831 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9833 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9834 if test yes = "$supports_anon_versioning"; then
9835 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9836 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9837 echo "local: *; };" >> $output_objdir/$libname.ver~
9838 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9839 fi
9840 ;;
9841 esac
9842 else
9843 ld_shlibs=no
9844 fi
9845 ;;
9846
9847 netbsd*)
9848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9849 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9850 wlarc=
9851 else
9852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9853 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9854 fi
9855 ;;
9856
9857 solaris*)
9858 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9859 ld_shlibs=no
9860 cat <<_LT_EOF 1>&2
9861
9862 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9863 *** create shared libraries on Solaris systems. Therefore, libtool
9864 *** is disabling shared libraries support. We urge you to upgrade GNU
9865 *** binutils to release 2.9.1 or newer. Another option is to modify
9866 *** your PATH or compiler configuration so that the native linker is
9867 *** used, and then restart.
9868
9869 _LT_EOF
9870 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9873 else
9874 ld_shlibs=no
9875 fi
9876 ;;
9877
9878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9879 case `$LD -v 2>&1` in
9880 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9881 ld_shlibs=no
9882 cat <<_LT_EOF 1>&2
9883
9884 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9885 *** reliably create shared libraries on SCO systems. Therefore, libtool
9886 *** is disabling shared libraries support. We urge you to upgrade GNU
9887 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9888 *** your PATH or compiler configuration so that the native linker is
9889 *** used, and then restart.
9890
9891 _LT_EOF
9892 ;;
9893 *)
9894 # For security reasons, it is highly recommended that you always
9895 # use absolute paths for naming shared libraries, and exclude the
9896 # DT_RUNPATH tag from executables and libraries. But doing so
9897 # requires that you compile everything twice, which is a pain.
9898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9902 else
9903 ld_shlibs=no
9904 fi
9905 ;;
9906 esac
9907 ;;
9908
9909 sunos4*)
9910 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9911 wlarc=
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 *)
9917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9920 else
9921 ld_shlibs=no
9922 fi
9923 ;;
9924 esac
9925
9926 if test no = "$ld_shlibs"; then
9927 runpath_var=
9928 hardcode_libdir_flag_spec=
9929 export_dynamic_flag_spec=
9930 whole_archive_flag_spec=
9931 fi
9932 else
9933 # PORTME fill in a description of your system's linker (not GNU ld)
9934 case $host_os in
9935 aix3*)
9936 allow_undefined_flag=unsupported
9937 always_export_symbols=yes
9938 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'
9939 # Note: this linker hardcodes the directories in LIBPATH if there
9940 # are no directories specified by -L.
9941 hardcode_minus_L=yes
9942 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9943 # Neither direct hardcoding nor static linking is supported with a
9944 # broken collect2.
9945 hardcode_direct=unsupported
9946 fi
9947 ;;
9948
9949 aix[4-9]*)
9950 if test ia64 = "$host_cpu"; then
9951 # On IA64, the linker does run time linking by default, so we don't
9952 # have to do anything special.
9953 aix_use_runtimelinking=no
9954 exp_sym_flag='-Bexport'
9955 no_entry_flag=
9956 else
9957 # If we're using GNU nm, then we don't want the "-C" option.
9958 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9959 # Without the "-l" option, or with the "-B" option, AIX nm treats
9960 # weak defined symbols like other global defined symbols, whereas
9961 # GNU nm marks them as "W".
9962 # While the 'weak' keyword is ignored in the Export File, we need
9963 # it in the Import File for the 'aix-soname' feature, so we have
9964 # to replace the "-B" option with "-P" for AIX nm.
9965 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9966 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'
9967 else
9968 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'
9969 fi
9970 aix_use_runtimelinking=no
9971
9972 # Test if we are trying to use run time linking or normal
9973 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9974 # have runtime linking enabled, and use it for executables.
9975 # For shared libraries, we enable/disable runtime linking
9976 # depending on the kind of the shared library created -
9977 # when "with_aix_soname,aix_use_runtimelinking" is:
9978 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9979 # "aix,yes" lib.so shared, rtl:yes, for executables
9980 # lib.a static archive
9981 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9982 # lib.a(lib.so.V) shared, rtl:no, for executables
9983 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9984 # lib.a(lib.so.V) shared, rtl:no
9985 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9986 # lib.a static archive
9987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9988 for ld_flag in $LDFLAGS; do
9989 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9990 aix_use_runtimelinking=yes
9991 break
9992 fi
9993 done
9994 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9995 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9996 # so we don't have lib.a shared libs to link our executables.
9997 # We have to force runtime linking in this case.
9998 aix_use_runtimelinking=yes
9999 LDFLAGS="$LDFLAGS -Wl,-brtl"
10000 fi
10001 ;;
10002 esac
10003
10004 exp_sym_flag='-bexport'
10005 no_entry_flag='-bnoentry'
10006 fi
10007
10008 # When large executables or shared objects are built, AIX ld can
10009 # have problems creating the table of contents. If linking a library
10010 # or program results in "error TOC overflow" add -mminimal-toc to
10011 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10012 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10013
10014 archive_cmds=''
10015 hardcode_direct=yes
10016 hardcode_direct_absolute=yes
10017 hardcode_libdir_separator=':'
10018 link_all_deplibs=yes
10019 file_list_spec='$wl-f,'
10020 case $with_aix_soname,$aix_use_runtimelinking in
10021 aix,*) ;; # traditional, no import file
10022 svr4,* | *,yes) # use import file
10023 # The Import File defines what to hardcode.
10024 hardcode_direct=no
10025 hardcode_direct_absolute=no
10026 ;;
10027 esac
10028
10029 if test yes = "$GCC"; then
10030 case $host_os in aix4.[012]|aix4.[012].*)
10031 # We only want to do this on AIX 4.2 and lower, the check
10032 # below for broken collect2 doesn't work under 4.3+
10033 collect2name=`$CC -print-prog-name=collect2`
10034 if test -f "$collect2name" &&
10035 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10036 then
10037 # We have reworked collect2
10038 :
10039 else
10040 # We have old collect2
10041 hardcode_direct=unsupported
10042 # It fails to find uninstalled libraries when the uninstalled
10043 # path is not listed in the libpath. Setting hardcode_minus_L
10044 # to unsupported forces relinking
10045 hardcode_minus_L=yes
10046 hardcode_libdir_flag_spec='-L$libdir'
10047 hardcode_libdir_separator=
10048 fi
10049 ;;
10050 esac
10051 shared_flag='-shared'
10052 if test yes = "$aix_use_runtimelinking"; then
10053 shared_flag="$shared_flag "'$wl-G'
10054 fi
10055 # Need to ensure runtime linking is disabled for the traditional
10056 # shared library, or the linker may eventually find shared libraries
10057 # /with/ Import File - we do not want to mix them.
10058 shared_flag_aix='-shared'
10059 shared_flag_svr4='-shared $wl-G'
10060 else
10061 # not using gcc
10062 if test ia64 = "$host_cpu"; then
10063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10064 # chokes on -Wl,-G. The following line is correct:
10065 shared_flag='-G'
10066 else
10067 if test yes = "$aix_use_runtimelinking"; then
10068 shared_flag='$wl-G'
10069 else
10070 shared_flag='$wl-bM:SRE'
10071 fi
10072 shared_flag_aix='$wl-bM:SRE'
10073 shared_flag_svr4='$wl-G'
10074 fi
10075 fi
10076
10077 export_dynamic_flag_spec='$wl-bexpall'
10078 # It seems that -bexpall does not export symbols beginning with
10079 # underscore (_), so it is better to generate a list of symbols to export.
10080 always_export_symbols=yes
10081 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10082 # Warning - without using the other runtime loading flags (-brtl),
10083 # -berok will link without error, but may produce a broken library.
10084 allow_undefined_flag='-berok'
10085 # Determine the default libpath from the value encoded in an
10086 # empty executable.
10087 if test set = "${lt_cv_aix_libpath+set}"; then
10088 aix_libpath=$lt_cv_aix_libpath
10089 else
10090 if test ${lt_cv_aix_libpath_+y}
10091 then :
10092 printf %s "(cached) " >&6
10093 else $as_nop
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096
10097 int
10098 main (void)
10099 {
10100
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 if ac_fn_c_try_link "$LINENO"
10106 then :
10107
10108 lt_aix_libpath_sed='
10109 /Import File Strings/,/^$/ {
10110 /^0/ {
10111 s/^0 *\([^ ]*\) *$/\1/
10112 p
10113 }
10114 }'
10115 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116 # Check for a 64-bit object if we didn't find anything.
10117 if test -z "$lt_cv_aix_libpath_"; then
10118 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10119 fi
10120 fi
10121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10122 conftest$ac_exeext conftest.$ac_ext
10123 if test -z "$lt_cv_aix_libpath_"; then
10124 lt_cv_aix_libpath_=/usr/lib:/lib
10125 fi
10126
10127 fi
10128
10129 aix_libpath=$lt_cv_aix_libpath_
10130 fi
10131
10132 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10133 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
10134 else
10135 if test ia64 = "$host_cpu"; then
10136 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10137 allow_undefined_flag="-z nodefs"
10138 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"
10139 else
10140 # Determine the default libpath from the value encoded in an
10141 # empty executable.
10142 if test set = "${lt_cv_aix_libpath+set}"; then
10143 aix_libpath=$lt_cv_aix_libpath
10144 else
10145 if test ${lt_cv_aix_libpath_+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else $as_nop
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151
10152 int
10153 main (void)
10154 {
10155
10156 ;
10157 return 0;
10158 }
10159 _ACEOF
10160 if ac_fn_c_try_link "$LINENO"
10161 then :
10162
10163 lt_aix_libpath_sed='
10164 /Import File Strings/,/^$/ {
10165 /^0/ {
10166 s/^0 *\([^ ]*\) *$/\1/
10167 p
10168 }
10169 }'
10170 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10171 # Check for a 64-bit object if we didn't find anything.
10172 if test -z "$lt_cv_aix_libpath_"; then
10173 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10174 fi
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10177 conftest$ac_exeext conftest.$ac_ext
10178 if test -z "$lt_cv_aix_libpath_"; then
10179 lt_cv_aix_libpath_=/usr/lib:/lib
10180 fi
10181
10182 fi
10183
10184 aix_libpath=$lt_cv_aix_libpath_
10185 fi
10186
10187 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10188 # Warning - without using the other run time loading flags,
10189 # -berok will link without error, but may produce a broken library.
10190 no_undefined_flag=' $wl-bernotok'
10191 allow_undefined_flag=' $wl-berok'
10192 if test yes = "$with_gnu_ld"; then
10193 # We only use this code for GNU lds that support --whole-archive.
10194 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10195 else
10196 # Exported symbols can be pulled into shared objects from archives
10197 whole_archive_flag_spec='$convenience'
10198 fi
10199 archive_cmds_need_lc=yes
10200 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10201 # -brtl affects multiple linker settings, -berok does not and is overridden later
10202 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10203 if test svr4 != "$with_aix_soname"; then
10204 # This is similar to how AIX traditionally builds its shared libraries.
10205 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'
10206 fi
10207 if test aix != "$with_aix_soname"; then
10208 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'
10209 else
10210 # used by -dlpreopen to get the symbols
10211 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10212 fi
10213 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10214 fi
10215 fi
10216 ;;
10217
10218 amigaos*)
10219 case $host_cpu in
10220 powerpc)
10221 # see comment about AmigaOS4 .so support
10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10223 archive_expsym_cmds=''
10224 ;;
10225 m68k)
10226 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)'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_minus_L=yes
10229 ;;
10230 esac
10231 ;;
10232
10233 bsdi[45]*)
10234 export_dynamic_flag_spec=-rdynamic
10235 ;;
10236
10237 cygwin* | mingw* | pw32* | cegcc*)
10238 # When not using gcc, we currently assume that we are using
10239 # Microsoft Visual C++ or Intel C++ Compiler.
10240 # hardcode_libdir_flag_spec is actually meaningless, as there is
10241 # no search path for DLLs.
10242 case $cc_basename in
10243 cl* | icl*)
10244 # Native MSVC or ICC
10245 hardcode_libdir_flag_spec=' '
10246 allow_undefined_flag=unsupported
10247 always_export_symbols=yes
10248 file_list_spec='@'
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 $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10255 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10256 cp "$export_symbols" "$output_objdir/$soname.def";
10257 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10258 else
10259 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10260 fi~
10261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10262 linknames='
10263 # The linker will not automatically build a static lib if we build a DLL.
10264 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10265 enable_shared_with_static_runtimes=yes
10266 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10268 # Don't use ranlib
10269 old_postinstall_cmds='chmod 644 $oldlib'
10270 postlink_cmds='lt_outputfile="@OUTPUT@"~
10271 lt_tool_outputfile="@TOOL_OUTPUT@"~
10272 case $lt_outputfile in
10273 *.exe|*.EXE) ;;
10274 *)
10275 lt_outputfile=$lt_outputfile.exe
10276 lt_tool_outputfile=$lt_tool_outputfile.exe
10277 ;;
10278 esac~
10279 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10280 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10281 $RM "$lt_outputfile.manifest";
10282 fi'
10283 ;;
10284 *)
10285 # Assume MSVC and ICC wrapper
10286 hardcode_libdir_flag_spec=' '
10287 allow_undefined_flag=unsupported
10288 # Tell ltmain to make .lib files, not .a files.
10289 libext=lib
10290 # Tell ltmain to make .dll files, not .so files.
10291 shrext_cmds=.dll
10292 # FIXME: Setting linknames here is a bad hack.
10293 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10294 # The linker will automatically build a .lib file if we build a DLL.
10295 old_archive_from_new_cmds='true'
10296 # FIXME: Should let the user specify the lib program.
10297 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10298 enable_shared_with_static_runtimes=yes
10299 ;;
10300 esac
10301 ;;
10302
10303 darwin* | rhapsody*)
10304
10305
10306 archive_cmds_need_lc=no
10307 hardcode_direct=no
10308 hardcode_automatic=yes
10309 hardcode_shlibpath_var=unsupported
10310 if test yes = "$lt_cv_ld_force_load"; then
10311 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\"`'
10312
10313 else
10314 whole_archive_flag_spec=''
10315 fi
10316 link_all_deplibs=yes
10317 allow_undefined_flag=$_lt_dar_allow_undefined
10318 case $cc_basename in
10319 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10320 *) _lt_dar_can_shared=$GCC ;;
10321 esac
10322 if test yes = "$_lt_dar_can_shared"; then
10323 output_verbose_link_cmd=func_echo_all
10324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10326 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"
10327 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"
10328
10329 else
10330 ld_shlibs=no
10331 fi
10332
10333 ;;
10334
10335 dgux*)
10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 hardcode_shlibpath_var=no
10339 ;;
10340
10341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10342 # support. Future versions do this automatically, but an explicit c++rt0.o
10343 # does not break anything, and helps significantly (at the cost of a little
10344 # extra space).
10345 freebsd2.2*)
10346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10347 hardcode_libdir_flag_spec='-R$libdir'
10348 hardcode_direct=yes
10349 hardcode_shlibpath_var=no
10350 ;;
10351
10352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10353 freebsd2.*)
10354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=yes
10356 hardcode_minus_L=yes
10357 hardcode_shlibpath_var=no
10358 ;;
10359
10360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10361 freebsd* | dragonfly* | midnightbsd*)
10362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 hardcode_direct=yes
10365 hardcode_shlibpath_var=no
10366 ;;
10367
10368 hpux9*)
10369 if test yes = "$GCC"; then
10370 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'
10371 else
10372 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'
10373 fi
10374 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10375 hardcode_libdir_separator=:
10376 hardcode_direct=yes
10377
10378 # hardcode_minus_L: Not really in the search PATH,
10379 # but as the default location of the library.
10380 hardcode_minus_L=yes
10381 export_dynamic_flag_spec='$wl-E'
10382 ;;
10383
10384 hpux10*)
10385 if test yes,no = "$GCC,$with_gnu_ld"; then
10386 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10387 else
10388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10389 fi
10390 if test no = "$with_gnu_ld"; then
10391 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10392 hardcode_libdir_separator=:
10393 hardcode_direct=yes
10394 hardcode_direct_absolute=yes
10395 export_dynamic_flag_spec='$wl-E'
10396 # hardcode_minus_L: Not really in the search PATH,
10397 # but as the default location of the library.
10398 hardcode_minus_L=yes
10399 fi
10400 ;;
10401
10402 hpux11*)
10403 if test yes,no = "$GCC,$with_gnu_ld"; then
10404 case $host_cpu in
10405 hppa*64*)
10406 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 ;;
10408 ia64*)
10409 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10410 ;;
10411 *)
10412 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10413 ;;
10414 esac
10415 else
10416 case $host_cpu in
10417 hppa*64*)
10418 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 ;;
10420 ia64*)
10421 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10422 ;;
10423 *)
10424
10425 # Older versions of the 11.00 compiler do not understand -b yet
10426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10428 printf %s "checking if $CC understands -b... " >&6; }
10429 if test ${lt_cv_prog_compiler__b+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else $as_nop
10433 lt_cv_prog_compiler__b=no
10434 save_LDFLAGS=$LDFLAGS
10435 LDFLAGS="$LDFLAGS -b"
10436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10438 # The linker can only warn and ignore the option if not recognized
10439 # So say no if there are warnings
10440 if test -s conftest.err; then
10441 # Append any errors to the config.log.
10442 cat conftest.err 1>&5
10443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10445 if diff conftest.exp conftest.er2 >/dev/null; then
10446 lt_cv_prog_compiler__b=yes
10447 fi
10448 else
10449 lt_cv_prog_compiler__b=yes
10450 fi
10451 fi
10452 $RM -r conftest*
10453 LDFLAGS=$save_LDFLAGS
10454
10455 fi
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10457 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10458
10459 if test yes = "$lt_cv_prog_compiler__b"; then
10460 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10461 else
10462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10463 fi
10464
10465 ;;
10466 esac
10467 fi
10468 if test no = "$with_gnu_ld"; then
10469 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10470 hardcode_libdir_separator=:
10471
10472 case $host_cpu in
10473 hppa*64*|ia64*)
10474 hardcode_direct=no
10475 hardcode_shlibpath_var=no
10476 ;;
10477 *)
10478 hardcode_direct=yes
10479 hardcode_direct_absolute=yes
10480 export_dynamic_flag_spec='$wl-E'
10481
10482 # hardcode_minus_L: Not really in the search PATH,
10483 # but as the default location of the library.
10484 hardcode_minus_L=yes
10485 ;;
10486 esac
10487 fi
10488 ;;
10489
10490 irix5* | irix6* | nonstopux*)
10491 if test yes = "$GCC"; then
10492 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'
10493 # Try to use the -exported_symbol ld option, if it does not
10494 # work, assume that -exports_file does not work either and
10495 # implicitly export all symbols.
10496 # This should be the same for all languages, so no per-tag cache variable.
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10498 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10499 if test ${lt_cv_irix_exported_symbol+y}
10500 then :
10501 printf %s "(cached) " >&6
10502 else $as_nop
10503 save_LDFLAGS=$LDFLAGS
10504 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 int foo (void) { return 0; }
10508 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"
10510 then :
10511 lt_cv_irix_exported_symbol=yes
10512 else $as_nop
10513 lt_cv_irix_exported_symbol=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LDFLAGS=$save_LDFLAGS
10518 fi
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10520 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10521 if test yes = "$lt_cv_irix_exported_symbol"; then
10522 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'
10523 fi
10524 else
10525 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'
10526 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'
10527 fi
10528 archive_cmds_need_lc='no'
10529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10530 hardcode_libdir_separator=:
10531 inherit_rpath=yes
10532 link_all_deplibs=yes
10533 ;;
10534
10535 linux*)
10536 case $cc_basename in
10537 tcc*)
10538 # Fabrice Bellard et al's Tiny C Compiler
10539 ld_shlibs=yes
10540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10541 ;;
10542 esac
10543 ;;
10544
10545 netbsd*)
10546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10548 else
10549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10550 fi
10551 hardcode_libdir_flag_spec='-R$libdir'
10552 hardcode_direct=yes
10553 hardcode_shlibpath_var=no
10554 ;;
10555
10556 newsos6)
10557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10558 hardcode_direct=yes
10559 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10560 hardcode_libdir_separator=:
10561 hardcode_shlibpath_var=no
10562 ;;
10563
10564 *nto* | *qnx*)
10565 ;;
10566
10567 openbsd* | bitrig*)
10568 if test -f /usr/libexec/ld.so; then
10569 hardcode_direct=yes
10570 hardcode_shlibpath_var=no
10571 hardcode_direct_absolute=yes
10572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10575 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10576 export_dynamic_flag_spec='$wl-E'
10577 else
10578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10580 fi
10581 else
10582 ld_shlibs=no
10583 fi
10584 ;;
10585
10586 os2*)
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_minus_L=yes
10589 allow_undefined_flag=unsupported
10590 shrext_cmds=.dll
10591 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10592 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10593 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10594 $ECHO EXPORTS >> $output_objdir/$libname.def~
10595 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10596 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10597 emximp -o $lib $output_objdir/$libname.def'
10598 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10599 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10600 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10601 $ECHO EXPORTS >> $output_objdir/$libname.def~
10602 prefix_cmds="$SED"~
10603 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10604 prefix_cmds="$prefix_cmds -e 1d";
10605 fi~
10606 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10607 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10608 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10609 emximp -o $lib $output_objdir/$libname.def'
10610 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10611 enable_shared_with_static_runtimes=yes
10612 file_list_spec='@'
10613 ;;
10614
10615 osf3*)
10616 if test yes = "$GCC"; then
10617 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10618 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'
10619 else
10620 allow_undefined_flag=' -expect_unresolved \*'
10621 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'
10622 fi
10623 archive_cmds_need_lc='no'
10624 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10625 hardcode_libdir_separator=:
10626 ;;
10627
10628 osf4* | osf5*) # as osf3* with the addition of -msym flag
10629 if test yes = "$GCC"; then
10630 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10631 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'
10632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10633 else
10634 allow_undefined_flag=' -expect_unresolved \*'
10635 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'
10636 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~
10637 $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'
10638
10639 # Both c and cxx compiler support -rpath directly
10640 hardcode_libdir_flag_spec='-rpath $libdir'
10641 fi
10642 archive_cmds_need_lc='no'
10643 hardcode_libdir_separator=:
10644 ;;
10645
10646 solaris*)
10647 no_undefined_flag=' -z defs'
10648 if test yes = "$GCC"; then
10649 wlarc='$wl'
10650 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10652 $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'
10653 else
10654 case `$CC -V 2>&1` in
10655 *"Compilers 5.0"*)
10656 wlarc=''
10657 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10659 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10660 ;;
10661 *)
10662 wlarc='$wl'
10663 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10665 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10666 ;;
10667 esac
10668 fi
10669 hardcode_libdir_flag_spec='-R$libdir'
10670 hardcode_shlibpath_var=no
10671 case $host_os in
10672 solaris2.[0-5] | solaris2.[0-5].*) ;;
10673 *)
10674 # The compiler driver will combine and reorder linker options,
10675 # but understands '-z linker_flag'. GCC discards it without '$wl',
10676 # but is careful enough not to reorder.
10677 # Supported since Solaris 2.6 (maybe 2.5.1?)
10678 if test yes = "$GCC"; then
10679 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10680 else
10681 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10682 fi
10683 ;;
10684 esac
10685 link_all_deplibs=yes
10686 ;;
10687
10688 sunos4*)
10689 if test sequent = "$host_vendor"; then
10690 # Use $CC to link under sequent, because it throws in some extra .o
10691 # files that make .init and .fini sections work.
10692 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10693 else
10694 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10695 fi
10696 hardcode_libdir_flag_spec='-L$libdir'
10697 hardcode_direct=yes
10698 hardcode_minus_L=yes
10699 hardcode_shlibpath_var=no
10700 ;;
10701
10702 sysv4)
10703 case $host_vendor in
10704 sni)
10705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706 hardcode_direct=yes # is this really true???
10707 ;;
10708 siemens)
10709 ## LD is ld it makes a PLAMLIB
10710 ## CC just makes a GrossModule.
10711 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10712 reload_cmds='$CC -r -o $output$reload_objs'
10713 hardcode_direct=no
10714 ;;
10715 motorola)
10716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10718 ;;
10719 esac
10720 runpath_var='LD_RUN_PATH'
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 sysv4.3*)
10725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10726 hardcode_shlibpath_var=no
10727 export_dynamic_flag_spec='-Bexport'
10728 ;;
10729
10730 sysv4*MP*)
10731 if test -d /usr/nec; then
10732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733 hardcode_shlibpath_var=no
10734 runpath_var=LD_RUN_PATH
10735 hardcode_runpath_var=yes
10736 ld_shlibs=yes
10737 fi
10738 ;;
10739
10740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10741 no_undefined_flag='$wl-z,text'
10742 archive_cmds_need_lc=no
10743 hardcode_shlibpath_var=no
10744 runpath_var='LD_RUN_PATH'
10745
10746 if test yes = "$GCC"; then
10747 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 else
10750 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 fi
10753 ;;
10754
10755 sysv5* | sco3.2v5* | sco5v6*)
10756 # Note: We CANNOT use -z defs as we might desire, because we do not
10757 # link with -lc, and that would cause any symbols used from libc to
10758 # always be unresolved, which means just about no library would
10759 # ever link correctly. If we're not using GNU ld we use -z text
10760 # though, which does catch some bad symbols but isn't as heavy-handed
10761 # as -z defs.
10762 no_undefined_flag='$wl-z,text'
10763 allow_undefined_flag='$wl-z,nodefs'
10764 archive_cmds_need_lc=no
10765 hardcode_shlibpath_var=no
10766 hardcode_libdir_flag_spec='$wl-R,$libdir'
10767 hardcode_libdir_separator=':'
10768 link_all_deplibs=yes
10769 export_dynamic_flag_spec='$wl-Bexport'
10770 runpath_var='LD_RUN_PATH'
10771
10772 if test yes = "$GCC"; then
10773 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 else
10776 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 fi
10779 ;;
10780
10781 uts4*)
10782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10783 hardcode_libdir_flag_spec='-L$libdir'
10784 hardcode_shlibpath_var=no
10785 ;;
10786
10787 *)
10788 ld_shlibs=no
10789 ;;
10790 esac
10791
10792 if test sni = "$host_vendor"; then
10793 case $host in
10794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10795 export_dynamic_flag_spec='$wl-Blargedynsym'
10796 ;;
10797 esac
10798 fi
10799 fi
10800
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10802 printf "%s\n" "$ld_shlibs" >&6; }
10803 test no = "$ld_shlibs" && can_build_shared=no
10804
10805 with_gnu_ld=$with_gnu_ld
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821 #
10822 # Do we need to explicitly link libc?
10823 #
10824 case "x$archive_cmds_need_lc" in
10825 x|xyes)
10826 # Assume -lc should be added
10827 archive_cmds_need_lc=yes
10828
10829 if test yes,yes = "$GCC,$enable_shared"; then
10830 case $archive_cmds in
10831 *'~'*)
10832 # FIXME: we may have to deal with multi-command sequences.
10833 ;;
10834 '$CC '*)
10835 # Test whether the compiler implicitly links with -lc since on some
10836 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10837 # to ld, don't add -lc before -lgcc.
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10839 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10840 if test ${lt_cv_archive_cmds_need_lc+y}
10841 then :
10842 printf %s "(cached) " >&6
10843 else $as_nop
10844 $RM conftest*
10845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10846
10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10848 (eval $ac_compile) 2>&5
10849 ac_status=$?
10850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851 test $ac_status = 0; } 2>conftest.err; then
10852 soname=conftest
10853 lib=conftest
10854 libobjs=conftest.$ac_objext
10855 deplibs=
10856 wl=$lt_prog_compiler_wl
10857 pic_flag=$lt_prog_compiler_pic
10858 compiler_flags=-v
10859 linker_flags=-v
10860 verstring=
10861 output_objdir=.
10862 libname=conftest
10863 lt_save_allow_undefined_flag=$allow_undefined_flag
10864 allow_undefined_flag=
10865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10866 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10867 ac_status=$?
10868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10869 test $ac_status = 0; }
10870 then
10871 lt_cv_archive_cmds_need_lc=no
10872 else
10873 lt_cv_archive_cmds_need_lc=yes
10874 fi
10875 allow_undefined_flag=$lt_save_allow_undefined_flag
10876 else
10877 cat conftest.err 1>&5
10878 fi
10879 $RM conftest*
10880
10881 fi
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10883 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10884 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10885 ;;
10886 esac
10887 fi
10888 ;;
10889 esac
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
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11043 printf %s "checking dynamic linker characteristics... " >&6; }
11044
11045 if test yes = "$GCC"; then
11046 case $host_os in
11047 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11048 *) lt_awk_arg='/^libraries:/' ;;
11049 esac
11050 case $host_os in
11051 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11052 *) lt_sed_strip_eq='s|=/|/|g' ;;
11053 esac
11054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11055 case $lt_search_path_spec in
11056 *\;*)
11057 # if the path contains ";" then we assume it to be the separator
11058 # otherwise default to the standard path separator (i.e. ":") - it is
11059 # assumed that no part of a normal pathname contains ";" but that should
11060 # okay in the real world where ";" in dirpaths is itself problematic.
11061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11062 ;;
11063 *)
11064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11065 ;;
11066 esac
11067 # Ok, now we have the path, separated by spaces, we can step through it
11068 # and add multilib dir if necessary...
11069 lt_tmp_lt_search_path_spec=
11070 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11071 # ...but if some path component already ends with the multilib dir we assume
11072 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11073 case "$lt_multi_os_dir; $lt_search_path_spec " in
11074 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11075 lt_multi_os_dir=
11076 ;;
11077 esac
11078 for lt_sys_path in $lt_search_path_spec; do
11079 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11081 elif test -n "$lt_multi_os_dir"; then
11082 test -d "$lt_sys_path" && \
11083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11084 fi
11085 done
11086 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11087 BEGIN {RS = " "; FS = "/|\n";} {
11088 lt_foo = "";
11089 lt_count = 0;
11090 for (lt_i = NF; lt_i > 0; lt_i--) {
11091 if ($lt_i != "" && $lt_i != ".") {
11092 if ($lt_i == "..") {
11093 lt_count++;
11094 } else {
11095 if (lt_count == 0) {
11096 lt_foo = "/" $lt_i lt_foo;
11097 } else {
11098 lt_count--;
11099 }
11100 }
11101 }
11102 }
11103 if (lt_foo != "") { lt_freq[lt_foo]++; }
11104 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11105 }'`
11106 # AWK program above erroneously prepends '/' to C:/dos/paths
11107 # for these hosts.
11108 case $host_os in
11109 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11110 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11111 esac
11112 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11113 else
11114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11115 fi
11116 library_names_spec=
11117 libname_spec='lib$name'
11118 soname_spec=
11119 shrext_cmds=.so
11120 postinstall_cmds=
11121 postuninstall_cmds=
11122 finish_cmds=
11123 finish_eval=
11124 shlibpath_var=
11125 shlibpath_overrides_runpath=unknown
11126 version_type=none
11127 dynamic_linker="$host_os ld.so"
11128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11129 need_lib_prefix=unknown
11130 hardcode_into_libs=no
11131
11132 # when you set need_version to no, make sure it does not cause -set_version
11133 # flags to be left without arguments
11134 need_version=unknown
11135
11136
11137
11138 case $host_os in
11139 aix3*)
11140 version_type=linux # correct to gnu/linux during the next big refactor
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11142 shlibpath_var=LIBPATH
11143
11144 # AIX 3 has no versioning support, so we append a major version to the name.
11145 soname_spec='$libname$release$shared_ext$major'
11146 ;;
11147
11148 aix[4-9]*)
11149 version_type=linux # correct to gnu/linux during the next big refactor
11150 need_lib_prefix=no
11151 need_version=no
11152 hardcode_into_libs=yes
11153 if test ia64 = "$host_cpu"; then
11154 # AIX 5 supports IA64
11155 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 else
11158 # With GCC up to 2.95.x, collect2 would create an import file
11159 # for dependence libraries. The import file would start with
11160 # the line '#! .'. This would cause the generated library to
11161 # depend on '.', always an invalid library. This was fixed in
11162 # development snapshots of GCC prior to 3.0.
11163 case $host_os in
11164 aix4 | aix4.[01] | aix4.[01].*)
11165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11166 echo ' yes '
11167 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11168 :
11169 else
11170 can_build_shared=no
11171 fi
11172 ;;
11173 esac
11174 # Using Import Files as archive members, it is possible to support
11175 # filename-based versioning of shared library archives on AIX. While
11176 # this would work for both with and without runtime linking, it will
11177 # prevent static linking of such archives. So we do filename-based
11178 # shared library versioning with .so extension only, which is used
11179 # when both runtime linking and shared linking is enabled.
11180 # Unfortunately, runtime linking may impact performance, so we do
11181 # not want this to be the default eventually. Also, we use the
11182 # versioned .so libs for executables only if there is the -brtl
11183 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11184 # To allow for filename-based versioning support, we need to create
11185 # libNAME.so.V as an archive file, containing:
11186 # *) an Import File, referring to the versioned filename of the
11187 # archive as well as the shared archive member, telling the
11188 # bitwidth (32 or 64) of that shared object, and providing the
11189 # list of exported symbols of that shared object, eventually
11190 # decorated with the 'weak' keyword
11191 # *) the shared object with the F_LOADONLY flag set, to really avoid
11192 # it being seen by the linker.
11193 # At run time we better use the real file rather than another symlink,
11194 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11195
11196 case $with_aix_soname,$aix_use_runtimelinking in
11197 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11198 # soname into executable. Probably we can add versioning support to
11199 # collect2, so additional links can be useful in future.
11200 aix,yes) # traditional libtool
11201 dynamic_linker='AIX unversionable lib.so'
11202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11203 # instead of lib<name>.a to let people know that these are not
11204 # typical AIX shared libraries.
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206 ;;
11207 aix,no) # traditional AIX only
11208 dynamic_linker='AIX lib.a(lib.so.V)'
11209 # We preserve .a as extension for shared libraries through AIX4.2
11210 # and later when we are not doing run time linking.
11211 library_names_spec='$libname$release.a $libname.a'
11212 soname_spec='$libname$release$shared_ext$major'
11213 ;;
11214 svr4,*) # full svr4 only
11215 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11216 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11217 # We do not specify a path in Import Files, so LIBPATH fires.
11218 shlibpath_overrides_runpath=yes
11219 ;;
11220 *,yes) # both, prefer svr4
11221 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11222 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11223 # unpreferred sharedlib libNAME.a needs extra handling
11224 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"'
11225 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"'
11226 # We do not specify a path in Import Files, so LIBPATH fires.
11227 shlibpath_overrides_runpath=yes
11228 ;;
11229 *,no) # both, prefer aix
11230 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11231 library_names_spec='$libname$release.a $libname.a'
11232 soname_spec='$libname$release$shared_ext$major'
11233 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11234 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)'
11235 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"'
11236 ;;
11237 esac
11238 shlibpath_var=LIBPATH
11239 fi
11240 ;;
11241
11242 amigaos*)
11243 case $host_cpu in
11244 powerpc)
11245 # Since July 2007 AmigaOS4 officially supports .so libraries.
11246 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248 ;;
11249 m68k)
11250 library_names_spec='$libname.ixlibrary $libname.a'
11251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11252 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'
11253 ;;
11254 esac
11255 ;;
11256
11257 beos*)
11258 library_names_spec='$libname$shared_ext'
11259 dynamic_linker="$host_os ld.so"
11260 shlibpath_var=LIBRARY_PATH
11261 ;;
11262
11263 bsdi[45]*)
11264 version_type=linux # correct to gnu/linux during the next big refactor
11265 need_version=no
11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11267 soname_spec='$libname$release$shared_ext$major'
11268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11272 # the default ld.so.conf also contains /usr/contrib/lib and
11273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11274 # libtool to hard-code these into programs
11275 ;;
11276
11277 cygwin* | mingw* | pw32* | cegcc*)
11278 version_type=windows
11279 shrext_cmds=.dll
11280 need_version=no
11281 need_lib_prefix=no
11282
11283 case $GCC,$cc_basename in
11284 yes,*)
11285 # gcc
11286 library_names_spec='$libname.dll.a'
11287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11288 postinstall_cmds='base_file=`basename \$file`~
11289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11290 dldir=$destdir/`dirname \$dlpath`~
11291 test -d \$dldir || mkdir -p \$dldir~
11292 $install_prog $dir/$dlname \$dldir/$dlname~
11293 chmod a+x \$dldir/$dlname~
11294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11296 fi'
11297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11298 dlpath=$dir/\$dldll~
11299 $RM \$dlpath'
11300 shlibpath_overrides_runpath=yes
11301
11302 case $host_os in
11303 cygwin*)
11304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11305 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11306
11307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11308 ;;
11309 mingw* | cegcc*)
11310 # MinGW DLLs use traditional 'lib' prefix
11311 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11312 ;;
11313 pw32*)
11314 # pw32 DLLs use 'pw' prefix rather than 'lib'
11315 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11316 ;;
11317 esac
11318 dynamic_linker='Win32 ld.exe'
11319 ;;
11320
11321 *,cl* | *,icl*)
11322 # Native MSVC or ICC
11323 libname_spec='$name'
11324 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11325 library_names_spec='$libname.dll.lib'
11326
11327 case $build_os in
11328 mingw*)
11329 sys_lib_search_path_spec=
11330 lt_save_ifs=$IFS
11331 IFS=';'
11332 for lt_path in $LIB
11333 do
11334 IFS=$lt_save_ifs
11335 # Let DOS variable expansion print the short 8.3 style file name.
11336 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11337 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11338 done
11339 IFS=$lt_save_ifs
11340 # Convert to MSYS style.
11341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11342 ;;
11343 cygwin*)
11344 # Convert to unix form, then to dos form, then back to unix form
11345 # but this time dos style (no spaces!) so that the unix form looks
11346 # like /cygdrive/c/PROGRA~1:/cygdr...
11347 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11348 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11349 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11350 ;;
11351 *)
11352 sys_lib_search_path_spec=$LIB
11353 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11354 # It is most probably a Windows format PATH.
11355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11356 else
11357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11358 fi
11359 # FIXME: find the short name or the path components, as spaces are
11360 # common. (e.g. "Program Files" -> "PROGRA~1")
11361 ;;
11362 esac
11363
11364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11365 postinstall_cmds='base_file=`basename \$file`~
11366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11367 dldir=$destdir/`dirname \$dlpath`~
11368 test -d \$dldir || mkdir -p \$dldir~
11369 $install_prog $dir/$dlname \$dldir/$dlname'
11370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11371 dlpath=$dir/\$dldll~
11372 $RM \$dlpath'
11373 shlibpath_overrides_runpath=yes
11374 dynamic_linker='Win32 link.exe'
11375 ;;
11376
11377 *)
11378 # Assume MSVC and ICC wrapper
11379 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11380 dynamic_linker='Win32 ld.exe'
11381 ;;
11382 esac
11383 # FIXME: first we should search . and the directory the executable is in
11384 shlibpath_var=PATH
11385 ;;
11386
11387 darwin* | rhapsody*)
11388 dynamic_linker="$host_os dyld"
11389 version_type=darwin
11390 need_lib_prefix=no
11391 need_version=no
11392 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11393 soname_spec='$libname$release$major$shared_ext'
11394 shlibpath_overrides_runpath=yes
11395 shlibpath_var=DYLD_LIBRARY_PATH
11396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11397
11398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11400 ;;
11401
11402 dgux*)
11403 version_type=linux # correct to gnu/linux during the next big refactor
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11407 soname_spec='$libname$release$shared_ext$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 ;;
11410
11411 freebsd* | dragonfly* | midnightbsd*)
11412 # DragonFly does not have aout. When/if they implement a new
11413 # versioning mechanism, adjust this.
11414 if test -x /usr/bin/objformat; then
11415 objformat=`/usr/bin/objformat`
11416 else
11417 case $host_os in
11418 freebsd[23].*) objformat=aout ;;
11419 *) objformat=elf ;;
11420 esac
11421 fi
11422 version_type=freebsd-$objformat
11423 case $version_type in
11424 freebsd-elf*)
11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426 soname_spec='$libname$release$shared_ext$major'
11427 need_version=no
11428 need_lib_prefix=no
11429 ;;
11430 freebsd-*)
11431 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11432 need_version=yes
11433 ;;
11434 esac
11435 shlibpath_var=LD_LIBRARY_PATH
11436 case $host_os in
11437 freebsd2.*)
11438 shlibpath_overrides_runpath=yes
11439 ;;
11440 freebsd3.[01]* | freebsdelf3.[01]*)
11441 shlibpath_overrides_runpath=yes
11442 hardcode_into_libs=yes
11443 ;;
11444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11446 shlibpath_overrides_runpath=no
11447 hardcode_into_libs=yes
11448 ;;
11449 *) # from 4.6 on, and DragonFly
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11452 ;;
11453 esac
11454 ;;
11455
11456 haiku*)
11457 version_type=linux # correct to gnu/linux during the next big refactor
11458 need_lib_prefix=no
11459 need_version=no
11460 dynamic_linker="$host_os runtime_loader"
11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11462 soname_spec='$libname$release$shared_ext$major'
11463 shlibpath_var=LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11466 hardcode_into_libs=yes
11467 ;;
11468
11469 hpux9* | hpux10* | hpux11*)
11470 # Give a soname corresponding to the major version so that dld.sl refuses to
11471 # link against other versions.
11472 version_type=sunos
11473 need_lib_prefix=no
11474 need_version=no
11475 case $host_cpu in
11476 ia64*)
11477 shrext_cmds='.so'
11478 hardcode_into_libs=yes
11479 dynamic_linker="$host_os dld.so"
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 if test 32 = "$HPUX_IA64_MODE"; then
11485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11486 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11487 else
11488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11489 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11490 fi
11491 ;;
11492 hppa*64*)
11493 shrext_cmds='.sl'
11494 hardcode_into_libs=yes
11495 dynamic_linker="$host_os dld.sl"
11496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 soname_spec='$libname$release$shared_ext$major'
11500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11502 ;;
11503 *)
11504 shrext_cmds='.sl'
11505 dynamic_linker="$host_os dld.sl"
11506 shlibpath_var=SHLIB_PATH
11507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11509 soname_spec='$libname$release$shared_ext$major'
11510 ;;
11511 esac
11512 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11513 postinstall_cmds='chmod 555 $lib'
11514 # or fails outright, so override atomically:
11515 install_override_mode=555
11516 ;;
11517
11518 interix[3-9]*)
11519 version_type=linux # correct to gnu/linux during the next big refactor
11520 need_lib_prefix=no
11521 need_version=no
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 soname_spec='$libname$release$shared_ext$major'
11524 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=no
11527 hardcode_into_libs=yes
11528 ;;
11529
11530 irix5* | irix6* | nonstopux*)
11531 case $host_os in
11532 nonstopux*) version_type=nonstopux ;;
11533 *)
11534 if test yes = "$lt_cv_prog_gnu_ld"; then
11535 version_type=linux # correct to gnu/linux during the next big refactor
11536 else
11537 version_type=irix
11538 fi ;;
11539 esac
11540 need_lib_prefix=no
11541 need_version=no
11542 soname_spec='$libname$release$shared_ext$major'
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11544 case $host_os in
11545 irix5* | nonstopux*)
11546 libsuff= shlibsuff=
11547 ;;
11548 *)
11549 case $LD in # libtool.m4 will add one of these switches to LD
11550 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11551 libsuff= shlibsuff= libmagic=32-bit;;
11552 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11553 libsuff=32 shlibsuff=N32 libmagic=N32;;
11554 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11555 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11556 *) libsuff= shlibsuff= libmagic=never-match;;
11557 esac
11558 ;;
11559 esac
11560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11561 shlibpath_overrides_runpath=no
11562 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11563 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11564 hardcode_into_libs=yes
11565 ;;
11566
11567 # No shared lib support for Linux oldld, aout, or coff.
11568 linux*oldld* | linux*aout* | linux*coff*)
11569 dynamic_linker=no
11570 ;;
11571
11572 linux*android*)
11573 version_type=none # Android doesn't support versioned libraries.
11574 need_lib_prefix=no
11575 need_version=no
11576 library_names_spec='$libname$release$shared_ext'
11577 soname_spec='$libname$release$shared_ext'
11578 finish_cmds=
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=yes
11581
11582 # This implies no fast_install, which is unacceptable.
11583 # Some rework will be needed to allow for fast_install
11584 # before this can be enabled.
11585 hardcode_into_libs=yes
11586
11587 dynamic_linker='Android linker'
11588 # Don't embed -rpath directories since the linker doesn't support them.
11589 hardcode_libdir_flag_spec='-L$libdir'
11590 ;;
11591
11592 # This must be glibc/ELF.
11593 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11594 version_type=linux # correct to gnu/linux during the next big refactor
11595 need_lib_prefix=no
11596 need_version=no
11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 soname_spec='$libname$release$shared_ext$major'
11599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=no
11602
11603 # Some binutils ld are patched to set DT_RUNPATH
11604 if test ${lt_cv_shlibpath_overrides_runpath+y}
11605 then :
11606 printf %s "(cached) " >&6
11607 else $as_nop
11608 lt_cv_shlibpath_overrides_runpath=no
11609 save_LDFLAGS=$LDFLAGS
11610 save_libdir=$libdir
11611 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11612 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11615
11616 int
11617 main (void)
11618 {
11619
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"
11625 then :
11626 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11627 then :
11628 lt_cv_shlibpath_overrides_runpath=yes
11629 fi
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LDFLAGS=$save_LDFLAGS
11634 libdir=$save_libdir
11635
11636 fi
11637
11638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11639
11640 # This implies no fast_install, which is unacceptable.
11641 # Some rework will be needed to allow for fast_install
11642 # before this can be enabled.
11643 hardcode_into_libs=yes
11644
11645 # Ideally, we could use ldconfig to report *all* directores which are
11646 # searched for libraries, however this is still not possible. Aside from not
11647 # being certain /sbin/ldconfig is available, command
11648 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11649 # even though it is searched at run-time. Try to do the best guess by
11650 # appending ld.so.conf contents (and includes) to the search path.
11651 if test -f /etc/ld.so.conf; then
11652 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' ' '`
11653 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11654 fi
11655
11656 # We used to test for /lib/ld.so.1 and disable shared libraries on
11657 # powerpc, because MkLinux only supported shared libraries with the
11658 # GNU dynamic linker. Since this was broken with cross compilers,
11659 # most powerpc-linux boxes support dynamic linking these days and
11660 # people can always --disable-shared, the test was removed, and we
11661 # assume the GNU/Linux dynamic linker is in use.
11662 dynamic_linker='GNU/Linux ld.so'
11663 ;;
11664
11665 netbsd*)
11666 version_type=sunos
11667 need_lib_prefix=no
11668 need_version=no
11669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672 dynamic_linker='NetBSD (a.out) ld.so'
11673 else
11674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11675 soname_spec='$libname$release$shared_ext$major'
11676 dynamic_linker='NetBSD ld.elf_so'
11677 fi
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=yes
11680 hardcode_into_libs=yes
11681 ;;
11682
11683 newsos6)
11684 version_type=linux # correct to gnu/linux during the next big refactor
11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=yes
11688 ;;
11689
11690 *nto* | *qnx*)
11691 version_type=qnx
11692 need_lib_prefix=no
11693 need_version=no
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695 soname_spec='$libname$release$shared_ext$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=no
11698 hardcode_into_libs=yes
11699 dynamic_linker='ldqnx.so'
11700 ;;
11701
11702 openbsd* | bitrig*)
11703 version_type=sunos
11704 sys_lib_dlsearch_path_spec=/usr/lib
11705 need_lib_prefix=no
11706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11707 need_version=no
11708 else
11709 need_version=yes
11710 fi
11711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=yes
11715 ;;
11716
11717 os2*)
11718 libname_spec='$name'
11719 version_type=windows
11720 shrext_cmds=.dll
11721 need_version=no
11722 need_lib_prefix=no
11723 # OS/2 can only load a DLL with a base name of 8 characters or less.
11724 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11725 v=$($ECHO $release$versuffix | tr -d .-);
11726 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11727 $ECHO $n$v`$shared_ext'
11728 library_names_spec='${libname}_dll.$libext'
11729 dynamic_linker='OS/2 ld.exe'
11730 shlibpath_var=BEGINLIBPATH
11731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11733 postinstall_cmds='base_file=`basename \$file`~
11734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11735 dldir=$destdir/`dirname \$dlpath`~
11736 test -d \$dldir || mkdir -p \$dldir~
11737 $install_prog $dir/$dlname \$dldir/$dlname~
11738 chmod a+x \$dldir/$dlname~
11739 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11740 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11741 fi'
11742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11743 dlpath=$dir/\$dldll~
11744 $RM \$dlpath'
11745 ;;
11746
11747 osf3* | osf4* | osf5*)
11748 version_type=osf
11749 need_lib_prefix=no
11750 need_version=no
11751 soname_spec='$libname$release$shared_ext$major'
11752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11756 ;;
11757
11758 rdos*)
11759 dynamic_linker=no
11760 ;;
11761
11762 solaris*)
11763 version_type=linux # correct to gnu/linux during the next big refactor
11764 need_lib_prefix=no
11765 need_version=no
11766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767 soname_spec='$libname$release$shared_ext$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 shlibpath_overrides_runpath=yes
11770 hardcode_into_libs=yes
11771 # ldd complains unless libraries are executable
11772 postinstall_cmds='chmod +x $lib'
11773 ;;
11774
11775 sunos4*)
11776 version_type=sunos
11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11781 if test yes = "$with_gnu_ld"; then
11782 need_lib_prefix=no
11783 fi
11784 need_version=yes
11785 ;;
11786
11787 sysv4 | sysv4.3*)
11788 version_type=linux # correct to gnu/linux during the next big refactor
11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11790 soname_spec='$libname$release$shared_ext$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 case $host_vendor in
11793 sni)
11794 shlibpath_overrides_runpath=no
11795 need_lib_prefix=no
11796 runpath_var=LD_RUN_PATH
11797 ;;
11798 siemens)
11799 need_lib_prefix=no
11800 ;;
11801 motorola)
11802 need_lib_prefix=no
11803 need_version=no
11804 shlibpath_overrides_runpath=no
11805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11806 ;;
11807 esac
11808 ;;
11809
11810 sysv4*MP*)
11811 if test -d /usr/nec; then
11812 version_type=linux # correct to gnu/linux during the next big refactor
11813 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11814 soname_spec='$libname$shared_ext.$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 fi
11817 ;;
11818
11819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11820 version_type=sco
11821 need_lib_prefix=no
11822 need_version=no
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11824 soname_spec='$libname$release$shared_ext$major'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=yes
11827 hardcode_into_libs=yes
11828 if test yes = "$with_gnu_ld"; then
11829 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11830 else
11831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11832 case $host_os in
11833 sco3.2v5*)
11834 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11835 ;;
11836 esac
11837 fi
11838 sys_lib_dlsearch_path_spec='/usr/lib'
11839 ;;
11840
11841 tpf*)
11842 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11843 version_type=linux # correct to gnu/linux during the next big refactor
11844 need_lib_prefix=no
11845 need_version=no
11846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 shlibpath_overrides_runpath=no
11849 hardcode_into_libs=yes
11850 ;;
11851
11852 uts4*)
11853 version_type=linux # correct to gnu/linux during the next big refactor
11854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11855 soname_spec='$libname$release$shared_ext$major'
11856 shlibpath_var=LD_LIBRARY_PATH
11857 ;;
11858
11859 *)
11860 dynamic_linker=no
11861 ;;
11862 esac
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11864 printf "%s\n" "$dynamic_linker" >&6; }
11865 test no = "$dynamic_linker" && can_build_shared=no
11866
11867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11868 if test yes = "$GCC"; then
11869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11870 fi
11871
11872 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11873 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11874 fi
11875
11876 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11877 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11878 fi
11879
11880 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11881 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11882
11883 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11884 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11885
11886 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11887 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11986 printf %s "checking how to hardcode library paths into programs... " >&6; }
11987 hardcode_action=
11988 if test -n "$hardcode_libdir_flag_spec" ||
11989 test -n "$runpath_var" ||
11990 test yes = "$hardcode_automatic"; then
11991
11992 # We can hardcode non-existent directories.
11993 if test no != "$hardcode_direct" &&
11994 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11995 # have to relink, otherwise we might link with an installed library
11996 # when we should be linking with a yet-to-be-installed one
11997 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11998 test no != "$hardcode_minus_L"; then
11999 # Linking always hardcodes the temporary library directory.
12000 hardcode_action=relink
12001 else
12002 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12003 hardcode_action=immediate
12004 fi
12005 else
12006 # We cannot hardcode anything, or else we can only hardcode existing
12007 # directories.
12008 hardcode_action=unsupported
12009 fi
12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12011 printf "%s\n" "$hardcode_action" >&6; }
12012
12013 if test relink = "$hardcode_action" ||
12014 test yes = "$inherit_rpath"; then
12015 # Fast installation is not supported
12016 enable_fast_install=no
12017 elif test yes = "$shlibpath_overrides_runpath" ||
12018 test no = "$enable_shared"; then
12019 # Fast installation is not necessary
12020 enable_fast_install=needless
12021 fi
12022
12023
12024
12025
12026
12027
12028 if test yes != "$enable_dlopen"; then
12029 enable_dlopen=unknown
12030 enable_dlopen_self=unknown
12031 enable_dlopen_self_static=unknown
12032 else
12033 lt_cv_dlopen=no
12034 lt_cv_dlopen_libs=
12035
12036 case $host_os in
12037 beos*)
12038 lt_cv_dlopen=load_add_on
12039 lt_cv_dlopen_libs=
12040 lt_cv_dlopen_self=yes
12041 ;;
12042
12043 mingw* | pw32* | cegcc*)
12044 lt_cv_dlopen=LoadLibrary
12045 lt_cv_dlopen_libs=
12046 ;;
12047
12048 cygwin*)
12049 lt_cv_dlopen=dlopen
12050 lt_cv_dlopen_libs=
12051 ;;
12052
12053 darwin*)
12054 # if libdl is installed we need to link against it
12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12056 printf %s "checking for dlopen in -ldl... " >&6; }
12057 if test ${ac_cv_lib_dl_dlopen+y}
12058 then :
12059 printf %s "(cached) " >&6
12060 else $as_nop
12061 ac_check_lib_save_LIBS=$LIBS
12062 LIBS="-ldl $LIBS"
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069 char dlopen ();
12070 int
12071 main (void)
12072 {
12073 return dlopen ();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"
12079 then :
12080 ac_cv_lib_dl_dlopen=yes
12081 else $as_nop
12082 ac_cv_lib_dl_dlopen=no
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12089 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12090 if test "x$ac_cv_lib_dl_dlopen" = xyes
12091 then :
12092 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12093 else $as_nop
12094
12095 lt_cv_dlopen=dyld
12096 lt_cv_dlopen_libs=
12097 lt_cv_dlopen_self=yes
12098
12099 fi
12100
12101 ;;
12102
12103 tpf*)
12104 # Don't try to run any link tests for TPF. We know it's impossible
12105 # because TPF is a cross-compiler, and we know how we open DSOs.
12106 lt_cv_dlopen=dlopen
12107 lt_cv_dlopen_libs=
12108 lt_cv_dlopen_self=no
12109 ;;
12110
12111 *)
12112 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12113 if test "x$ac_cv_func_shl_load" = xyes
12114 then :
12115 lt_cv_dlopen=shl_load
12116 else $as_nop
12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12118 printf %s "checking for shl_load in -ldld... " >&6; }
12119 if test ${ac_cv_lib_dld_shl_load+y}
12120 then :
12121 printf %s "(cached) " >&6
12122 else $as_nop
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-ldld $LIBS"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 char shl_load ();
12132 int
12133 main (void)
12134 {
12135 return shl_load ();
12136 ;
12137 return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"
12141 then :
12142 ac_cv_lib_dld_shl_load=yes
12143 else $as_nop
12144 ac_cv_lib_dld_shl_load=no
12145 fi
12146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12151 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12152 if test "x$ac_cv_lib_dld_shl_load" = xyes
12153 then :
12154 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12155 else $as_nop
12156 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12157 if test "x$ac_cv_func_dlopen" = xyes
12158 then :
12159 lt_cv_dlopen=dlopen
12160 else $as_nop
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12162 printf %s "checking for dlopen in -ldl... " >&6; }
12163 if test ${ac_cv_lib_dl_dlopen+y}
12164 then :
12165 printf %s "(cached) " >&6
12166 else $as_nop
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-ldl $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_dl_dlopen=yes
12187 else $as_nop
12188 ac_cv_lib_dl_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_dl_dlopen" >&5
12195 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12196 if test "x$ac_cv_lib_dl_dlopen" = xyes
12197 then :
12198 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12199 else $as_nop
12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12201 printf %s "checking for dlopen in -lsvld... " >&6; }
12202 if test ${ac_cv_lib_svld_dlopen+y}
12203 then :
12204 printf %s "(cached) " >&6
12205 else $as_nop
12206 ac_check_lib_save_LIBS=$LIBS
12207 LIBS="-lsvld $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 dlopen ();
12215 int
12216 main (void)
12217 {
12218 return dlopen ();
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_link "$LINENO"
12224 then :
12225 ac_cv_lib_svld_dlopen=yes
12226 else $as_nop
12227 ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
12234 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12235 if test "x$ac_cv_lib_svld_dlopen" = xyes
12236 then :
12237 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12238 else $as_nop
12239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12240 printf %s "checking for dld_link in -ldld... " >&6; }
12241 if test ${ac_cv_lib_dld_dld_link+y}
12242 then :
12243 printf %s "(cached) " >&6
12244 else $as_nop
12245 ac_check_lib_save_LIBS=$LIBS
12246 LIBS="-ldld $LIBS"
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12253 char dld_link ();
12254 int
12255 main (void)
12256 {
12257 return dld_link ();
12258 ;
12259 return 0;
12260 }
12261 _ACEOF
12262 if ac_fn_c_try_link "$LINENO"
12263 then :
12264 ac_cv_lib_dld_dld_link=yes
12265 else $as_nop
12266 ac_cv_lib_dld_dld_link=no
12267 fi
12268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12271 fi
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12273 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12274 if test "x$ac_cv_lib_dld_dld_link" = xyes
12275 then :
12276 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12277 fi
12278
12279
12280 fi
12281
12282
12283 fi
12284
12285
12286 fi
12287
12288
12289 fi
12290
12291
12292 fi
12293
12294 ;;
12295 esac
12296
12297 if test no = "$lt_cv_dlopen"; then
12298 enable_dlopen=no
12299 else
12300 enable_dlopen=yes
12301 fi
12302
12303 case $lt_cv_dlopen in
12304 dlopen)
12305 save_CPPFLAGS=$CPPFLAGS
12306 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12307
12308 save_LDFLAGS=$LDFLAGS
12309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12310
12311 save_LIBS=$LIBS
12312 LIBS="$lt_cv_dlopen_libs $LIBS"
12313
12314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12315 printf %s "checking whether a program can dlopen itself... " >&6; }
12316 if test ${lt_cv_dlopen_self+y}
12317 then :
12318 printf %s "(cached) " >&6
12319 else $as_nop
12320 if test yes = "$cross_compiling"; then :
12321 lt_cv_dlopen_self=cross
12322 else
12323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12324 lt_status=$lt_dlunknown
12325 cat > conftest.$ac_ext <<_LT_EOF
12326 #line $LINENO "configure"
12327 #include "confdefs.h"
12328
12329 #if HAVE_DLFCN_H
12330 #include <dlfcn.h>
12331 #endif
12332
12333 #include <stdio.h>
12334
12335 #ifdef RTLD_GLOBAL
12336 # define LT_DLGLOBAL RTLD_GLOBAL
12337 #else
12338 # ifdef DL_GLOBAL
12339 # define LT_DLGLOBAL DL_GLOBAL
12340 # else
12341 # define LT_DLGLOBAL 0
12342 # endif
12343 #endif
12344
12345 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12346 find out it does not work in some platform. */
12347 #ifndef LT_DLLAZY_OR_NOW
12348 # ifdef RTLD_LAZY
12349 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12350 # else
12351 # ifdef DL_LAZY
12352 # define LT_DLLAZY_OR_NOW DL_LAZY
12353 # else
12354 # ifdef RTLD_NOW
12355 # define LT_DLLAZY_OR_NOW RTLD_NOW
12356 # else
12357 # ifdef DL_NOW
12358 # define LT_DLLAZY_OR_NOW DL_NOW
12359 # else
12360 # define LT_DLLAZY_OR_NOW 0
12361 # endif
12362 # endif
12363 # endif
12364 # endif
12365 #endif
12366
12367 /* When -fvisibility=hidden is used, assume the code has been annotated
12368 correspondingly for the symbols needed. */
12369 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12370 int fnord () __attribute__((visibility("default")));
12371 #endif
12372
12373 int fnord () { return 42; }
12374 int main ()
12375 {
12376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12377 int status = $lt_dlunknown;
12378
12379 if (self)
12380 {
12381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12382 else
12383 {
12384 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12385 else puts (dlerror ());
12386 }
12387 /* dlclose (self); */
12388 }
12389 else
12390 puts (dlerror ());
12391
12392 return status;
12393 }
12394 _LT_EOF
12395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12396 (eval $ac_link) 2>&5
12397 ac_status=$?
12398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12400 (./conftest; exit; ) >&5 2>/dev/null
12401 lt_status=$?
12402 case x$lt_status in
12403 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12404 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12405 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12406 esac
12407 else :
12408 # compilation failed
12409 lt_cv_dlopen_self=no
12410 fi
12411 fi
12412 rm -fr conftest*
12413
12414
12415 fi
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12417 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12418
12419 if test yes = "$lt_cv_dlopen_self"; then
12420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12422 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12423 if test ${lt_cv_dlopen_self_static+y}
12424 then :
12425 printf %s "(cached) " >&6
12426 else $as_nop
12427 if test yes = "$cross_compiling"; then :
12428 lt_cv_dlopen_self_static=cross
12429 else
12430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12431 lt_status=$lt_dlunknown
12432 cat > conftest.$ac_ext <<_LT_EOF
12433 #line $LINENO "configure"
12434 #include "confdefs.h"
12435
12436 #if HAVE_DLFCN_H
12437 #include <dlfcn.h>
12438 #endif
12439
12440 #include <stdio.h>
12441
12442 #ifdef RTLD_GLOBAL
12443 # define LT_DLGLOBAL RTLD_GLOBAL
12444 #else
12445 # ifdef DL_GLOBAL
12446 # define LT_DLGLOBAL DL_GLOBAL
12447 # else
12448 # define LT_DLGLOBAL 0
12449 # endif
12450 #endif
12451
12452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12453 find out it does not work in some platform. */
12454 #ifndef LT_DLLAZY_OR_NOW
12455 # ifdef RTLD_LAZY
12456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12457 # else
12458 # ifdef DL_LAZY
12459 # define LT_DLLAZY_OR_NOW DL_LAZY
12460 # else
12461 # ifdef RTLD_NOW
12462 # define LT_DLLAZY_OR_NOW RTLD_NOW
12463 # else
12464 # ifdef DL_NOW
12465 # define LT_DLLAZY_OR_NOW DL_NOW
12466 # else
12467 # define LT_DLLAZY_OR_NOW 0
12468 # endif
12469 # endif
12470 # endif
12471 # endif
12472 #endif
12473
12474 /* When -fvisibility=hidden is used, assume the code has been annotated
12475 correspondingly for the symbols needed. */
12476 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12477 int fnord () __attribute__((visibility("default")));
12478 #endif
12479
12480 int fnord () { return 42; }
12481 int main ()
12482 {
12483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12484 int status = $lt_dlunknown;
12485
12486 if (self)
12487 {
12488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12489 else
12490 {
12491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12492 else puts (dlerror ());
12493 }
12494 /* dlclose (self); */
12495 }
12496 else
12497 puts (dlerror ());
12498
12499 return status;
12500 }
12501 _LT_EOF
12502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12503 (eval $ac_link) 2>&5
12504 ac_status=$?
12505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12506 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12507 (./conftest; exit; ) >&5 2>/dev/null
12508 lt_status=$?
12509 case x$lt_status in
12510 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12511 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12512 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12513 esac
12514 else :
12515 # compilation failed
12516 lt_cv_dlopen_self_static=no
12517 fi
12518 fi
12519 rm -fr conftest*
12520
12521
12522 fi
12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12524 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12525 fi
12526
12527 CPPFLAGS=$save_CPPFLAGS
12528 LDFLAGS=$save_LDFLAGS
12529 LIBS=$save_LIBS
12530 ;;
12531 esac
12532
12533 case $lt_cv_dlopen_self in
12534 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12535 *) enable_dlopen_self=unknown ;;
12536 esac
12537
12538 case $lt_cv_dlopen_self_static in
12539 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12540 *) enable_dlopen_self_static=unknown ;;
12541 esac
12542 fi
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560 striplib=
12561 old_striplib=
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12563 printf %s "checking whether stripping libraries is possible... " >&6; }
12564 if test -z "$STRIP"; then
12565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 printf "%s\n" "no" >&6; }
12567 else
12568 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12569 old_striplib="$STRIP --strip-debug"
12570 striplib="$STRIP --strip-unneeded"
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12572 printf "%s\n" "yes" >&6; }
12573 else
12574 case $host_os in
12575 darwin*)
12576 # FIXME - insert some real tests, host_os isn't really good enough
12577 striplib="$STRIP -x"
12578 old_striplib="$STRIP -S"
12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12580 printf "%s\n" "yes" >&6; }
12581 ;;
12582 freebsd*)
12583 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12584 old_striplib="$STRIP --strip-debug"
12585 striplib="$STRIP --strip-unneeded"
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 printf "%s\n" "yes" >&6; }
12588 else
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 printf "%s\n" "no" >&6; }
12591 fi
12592 ;;
12593 *)
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 printf "%s\n" "no" >&6; }
12596 ;;
12597 esac
12598 fi
12599 fi
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612 # Report what library types will actually be built
12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12614 printf %s "checking if libtool supports shared libraries... " >&6; }
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12616 printf "%s\n" "$can_build_shared" >&6; }
12617
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12619 printf %s "checking whether to build shared libraries... " >&6; }
12620 test no = "$can_build_shared" && enable_shared=no
12621
12622 # On AIX, shared libraries and static libraries use the same namespace, and
12623 # are all built from PIC.
12624 case $host_os in
12625 aix3*)
12626 test yes = "$enable_shared" && enable_static=no
12627 if test -n "$RANLIB"; then
12628 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12629 postinstall_cmds='$RANLIB $lib'
12630 fi
12631 ;;
12632
12633 aix[4-9]*)
12634 if test ia64 != "$host_cpu"; then
12635 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12636 yes,aix,yes) ;; # shared object as lib.so file only
12637 yes,svr4,*) ;; # shared object as lib.so archive member only
12638 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12639 esac
12640 fi
12641 ;;
12642 esac
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12644 printf "%s\n" "$enable_shared" >&6; }
12645
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12647 printf %s "checking whether to build static libraries... " >&6; }
12648 # Make sure either enable_shared or enable_static is yes.
12649 test yes = "$enable_shared" || enable_static=yes
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12651 printf "%s\n" "$enable_static" >&6; }
12652
12653
12654
12655
12656 fi
12657 ac_ext=c
12658 ac_cpp='$CPP $CPPFLAGS'
12659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12662
12663 CC=$lt_save_CC
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679 ac_config_commands="$ac_config_commands libtool"
12680
12681
12682
12683
12684 # Only expand once:
12685
12686
12687
12688 # Require X.Org macros 1.16 or later for XORG_MEMORY_CHECK_FLAGS
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12701 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12702 if test ${ac_cv_c_undeclared_builtin_options+y}
12703 then :
12704 printf %s "(cached) " >&6
12705 else $as_nop
12706 ac_save_CFLAGS=$CFLAGS
12707 ac_cv_c_undeclared_builtin_options='cannot detect'
12708 for ac_arg in '' -fno-builtin; do
12709 CFLAGS="$ac_save_CFLAGS $ac_arg"
12710 # This test program should *not* compile successfully.
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713
12714 int
12715 main (void)
12716 {
12717 (void) strchr;
12718 ;
12719 return 0;
12720 }
12721 _ACEOF
12722 if ac_fn_c_try_compile "$LINENO"
12723 then :
12724
12725 else $as_nop
12726 # This test program should compile successfully.
12727 # No library function is consistently available on
12728 # freestanding implementations, so test against a dummy
12729 # declaration. Include always-available headers on the
12730 # off chance that they somehow elicit warnings.
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 #include <float.h>
12734 #include <limits.h>
12735 #include <stdarg.h>
12736 #include <stddef.h>
12737 extern void ac_decl (int, char *);
12738
12739 int
12740 main (void)
12741 {
12742 (void) ac_decl (0, (char *) 0);
12743 (void) ac_decl;
12744
12745 ;
12746 return 0;
12747 }
12748 _ACEOF
12749 if ac_fn_c_try_compile "$LINENO"
12750 then :
12751 if test x"$ac_arg" = x
12752 then :
12753 ac_cv_c_undeclared_builtin_options='none needed'
12754 else $as_nop
12755 ac_cv_c_undeclared_builtin_options=$ac_arg
12756 fi
12757 break
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12762 done
12763 CFLAGS=$ac_save_CFLAGS
12764
12765 fi
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12767 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12768 case $ac_cv_c_undeclared_builtin_options in #(
12769 'cannot detect') :
12770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12771 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12772 as_fn_error $? "cannot make $CC report undeclared builtins
12773 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12774 'none needed') :
12775 ac_c_undeclared_builtin_options='' ;; #(
12776 *) :
12777 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12778 esac
12779
12780
12781
12782
12783
12784 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12785 if test "x$ac_cv_have_decl___clang__" = xyes
12786 then :
12787 CLANGCC="yes"
12788 else $as_nop
12789 CLANGCC="no"
12790 fi
12791 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12792 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12793 then :
12794 INTELCC="yes"
12795 else $as_nop
12796 INTELCC="no"
12797 fi
12798 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12799 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12800 then :
12801 SUNCC="yes"
12802 else $as_nop
12803 SUNCC="no"
12804 fi
12805
12806
12807
12808
12809
12810
12811
12812
12813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12814 if test -n "$ac_tool_prefix"; then
12815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 printf %s "checking for $ac_word... " >&6; }
12819 if test ${ac_cv_path_PKG_CONFIG+y}
12820 then :
12821 printf %s "(cached) " >&6
12822 else $as_nop
12823 case $PKG_CONFIG in
12824 [\\/]* | ?:[\\/]*)
12825 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12826 ;;
12827 *)
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12830 do
12831 IFS=$as_save_IFS
12832 case $as_dir in #(((
12833 '') as_dir=./ ;;
12834 */) ;;
12835 *) as_dir=$as_dir/ ;;
12836 esac
12837 for ac_exec_ext in '' $ac_executable_extensions; do
12838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12839 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12841 break 2
12842 fi
12843 done
12844 done
12845 IFS=$as_save_IFS
12846
12847 ;;
12848 esac
12849 fi
12850 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12851 if test -n "$PKG_CONFIG"; then
12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12853 printf "%s\n" "$PKG_CONFIG" >&6; }
12854 else
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 printf "%s\n" "no" >&6; }
12857 fi
12858
12859
12860 fi
12861 if test -z "$ac_cv_path_PKG_CONFIG"; then
12862 ac_pt_PKG_CONFIG=$PKG_CONFIG
12863 # Extract the first word of "pkg-config", so it can be a program name with args.
12864 set dummy pkg-config; ac_word=$2
12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866 printf %s "checking for $ac_word... " >&6; }
12867 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12868 then :
12869 printf %s "(cached) " >&6
12870 else $as_nop
12871 case $ac_pt_PKG_CONFIG in
12872 [\\/]* | ?:[\\/]*)
12873 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12874 ;;
12875 *)
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879 IFS=$as_save_IFS
12880 case $as_dir in #(((
12881 '') as_dir=./ ;;
12882 */) ;;
12883 *) as_dir=$as_dir/ ;;
12884 esac
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12887 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891 done
12892 done
12893 IFS=$as_save_IFS
12894
12895 ;;
12896 esac
12897 fi
12898 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12899 if test -n "$ac_pt_PKG_CONFIG"; then
12900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12901 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12902 else
12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 printf "%s\n" "no" >&6; }
12905 fi
12906
12907 if test "x$ac_pt_PKG_CONFIG" = x; then
12908 PKG_CONFIG=""
12909 else
12910 case $cross_compiling:$ac_tool_warned in
12911 yes:)
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12914 ac_tool_warned=yes ;;
12915 esac
12916 PKG_CONFIG=$ac_pt_PKG_CONFIG
12917 fi
12918 else
12919 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12920 fi
12921
12922 fi
12923 if test -n "$PKG_CONFIG"; then
12924 _pkg_min_version=0.9.0
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12926 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12927 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 printf "%s\n" "yes" >&6; }
12930 else
12931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 printf "%s\n" "no" >&6; }
12933 PKG_CONFIG=""
12934 fi
12935 fi
12936
12937
12938
12939
12940
12941 # Check whether --enable-selective-werror was given.
12942 if test ${enable_selective_werror+y}
12943 then :
12944 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12945 else $as_nop
12946 SELECTIVE_WERROR=yes
12947 fi
12948
12949
12950
12951
12952
12953 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12954 if test "x$SUNCC" = "xyes"; then
12955 BASE_CFLAGS="-v"
12956 else
12957 BASE_CFLAGS=""
12958 fi
12959
12960 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974 xorg_testset_save_CFLAGS="$CFLAGS"
12975
12976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12981 then :
12982 printf %s "(cached) " >&6
12983 else $as_nop
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12986 int i;
12987 _ACEOF
12988 if ac_fn_c_try_compile "$LINENO"
12989 then :
12990 xorg_cv_cc_flag_unknown_warning_option=yes
12991 else $as_nop
12992 xorg_cv_cc_flag_unknown_warning_option=no
12993 fi
12994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12995 fi
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12999 CFLAGS="$xorg_testset_save_CFLAGS"
13000 fi
13001
13002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13005 fi
13006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13009 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13017 if ac_fn_c_try_compile "$LINENO"
13018 then :
13019 xorg_cv_cc_flag_unused_command_line_argument=yes
13020 else $as_nop
13021 xorg_cv_cc_flag_unused_command_line_argument=no
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13024 fi
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13028 CFLAGS="$xorg_testset_save_CFLAGS"
13029 fi
13030
13031 found="no"
13032
13033 if test $found = "no" ; then
13034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036 fi
13037
13038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13040 fi
13041
13042 CFLAGS="$CFLAGS -Wall"
13043
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13045 printf %s "checking if $CC supports -Wall... " >&6; }
13046 cacheid=xorg_cv_cc_flag__Wall
13047 if eval test \${$cacheid+y}
13048 then :
13049 printf %s "(cached) " >&6
13050 else $as_nop
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 int i;
13054 int
13055 main (void)
13056 {
13057
13058 ;
13059 return 0;
13060 }
13061 _ACEOF
13062 if ac_fn_c_try_link "$LINENO"
13063 then :
13064 eval $cacheid=yes
13065 else $as_nop
13066 eval $cacheid=no
13067 fi
13068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13069 conftest$ac_exeext conftest.$ac_ext
13070 fi
13071
13072
13073 CFLAGS="$xorg_testset_save_CFLAGS"
13074
13075 eval supported=\$$cacheid
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13077 printf "%s\n" "$supported" >&6; }
13078 if test "$supported" = "yes" ; then
13079 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13080 found="yes"
13081 fi
13082 fi
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098 xorg_testset_save_CFLAGS="$CFLAGS"
13099
13100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13104 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13105 then :
13106 printf %s "(cached) " >&6
13107 else $as_nop
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 int i;
13111 _ACEOF
13112 if ac_fn_c_try_compile "$LINENO"
13113 then :
13114 xorg_cv_cc_flag_unknown_warning_option=yes
13115 else $as_nop
13116 xorg_cv_cc_flag_unknown_warning_option=no
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13119 fi
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13123 CFLAGS="$xorg_testset_save_CFLAGS"
13124 fi
13125
13126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13129 fi
13130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13133 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13141 if ac_fn_c_try_compile "$LINENO"
13142 then :
13143 xorg_cv_cc_flag_unused_command_line_argument=yes
13144 else $as_nop
13145 xorg_cv_cc_flag_unused_command_line_argument=no
13146 fi
13147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13148 fi
13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13152 CFLAGS="$xorg_testset_save_CFLAGS"
13153 fi
13154
13155 found="no"
13156
13157 if test $found = "no" ; then
13158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13160 fi
13161
13162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13164 fi
13165
13166 CFLAGS="$CFLAGS -Wpointer-arith"
13167
13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13169 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13170 cacheid=xorg_cv_cc_flag__Wpointer_arith
13171 if eval test \${$cacheid+y}
13172 then :
13173 printf %s "(cached) " >&6
13174 else $as_nop
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177 int i;
13178 int
13179 main (void)
13180 {
13181
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"
13187 then :
13188 eval $cacheid=yes
13189 else $as_nop
13190 eval $cacheid=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13193 conftest$ac_exeext conftest.$ac_ext
13194 fi
13195
13196
13197 CFLAGS="$xorg_testset_save_CFLAGS"
13198
13199 eval supported=\$$cacheid
13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13201 printf "%s\n" "$supported" >&6; }
13202 if test "$supported" = "yes" ; then
13203 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13204 found="yes"
13205 fi
13206 fi
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222 xorg_testset_save_CFLAGS="$CFLAGS"
13223
13224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13228 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13229 then :
13230 printf %s "(cached) " >&6
13231 else $as_nop
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 int i;
13235 _ACEOF
13236 if ac_fn_c_try_compile "$LINENO"
13237 then :
13238 xorg_cv_cc_flag_unknown_warning_option=yes
13239 else $as_nop
13240 xorg_cv_cc_flag_unknown_warning_option=no
13241 fi
13242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13243 fi
13244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13247 CFLAGS="$xorg_testset_save_CFLAGS"
13248 fi
13249
13250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13253 fi
13254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13257 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13265 if ac_fn_c_try_compile "$LINENO"
13266 then :
13267 xorg_cv_cc_flag_unused_command_line_argument=yes
13268 else $as_nop
13269 xorg_cv_cc_flag_unused_command_line_argument=no
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13272 fi
13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13276 CFLAGS="$xorg_testset_save_CFLAGS"
13277 fi
13278
13279 found="no"
13280
13281 if test $found = "no" ; then
13282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13284 fi
13285
13286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13288 fi
13289
13290 CFLAGS="$CFLAGS -Wmissing-declarations"
13291
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13293 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13294 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13295 if eval test \${$cacheid+y}
13296 then :
13297 printf %s "(cached) " >&6
13298 else $as_nop
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301 int i;
13302 int
13303 main (void)
13304 {
13305
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 if ac_fn_c_try_link "$LINENO"
13311 then :
13312 eval $cacheid=yes
13313 else $as_nop
13314 eval $cacheid=no
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13317 conftest$ac_exeext conftest.$ac_ext
13318 fi
13319
13320
13321 CFLAGS="$xorg_testset_save_CFLAGS"
13322
13323 eval supported=\$$cacheid
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13325 printf "%s\n" "$supported" >&6; }
13326 if test "$supported" = "yes" ; then
13327 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13328 found="yes"
13329 fi
13330 fi
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346 xorg_testset_save_CFLAGS="$CFLAGS"
13347
13348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13352 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13353 then :
13354 printf %s "(cached) " >&6
13355 else $as_nop
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 int i;
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"
13361 then :
13362 xorg_cv_cc_flag_unknown_warning_option=yes
13363 else $as_nop
13364 xorg_cv_cc_flag_unknown_warning_option=no
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13367 fi
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13371 CFLAGS="$xorg_testset_save_CFLAGS"
13372 fi
13373
13374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377 fi
13378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13381 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"
13390 then :
13391 xorg_cv_cc_flag_unused_command_line_argument=yes
13392 else $as_nop
13393 xorg_cv_cc_flag_unused_command_line_argument=no
13394 fi
13395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13396 fi
13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13400 CFLAGS="$xorg_testset_save_CFLAGS"
13401 fi
13402
13403 found="no"
13404
13405 if test $found = "no" ; then
13406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13408 fi
13409
13410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13412 fi
13413
13414 CFLAGS="$CFLAGS -Wformat=2"
13415
13416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13417 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13418 cacheid=xorg_cv_cc_flag__Wformat_2
13419 if eval test \${$cacheid+y}
13420 then :
13421 printf %s "(cached) " >&6
13422 else $as_nop
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 int i;
13426 int
13427 main (void)
13428 {
13429
13430 ;
13431 return 0;
13432 }
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"
13435 then :
13436 eval $cacheid=yes
13437 else $as_nop
13438 eval $cacheid=no
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13441 conftest$ac_exeext conftest.$ac_ext
13442 fi
13443
13444
13445 CFLAGS="$xorg_testset_save_CFLAGS"
13446
13447 eval supported=\$$cacheid
13448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13449 printf "%s\n" "$supported" >&6; }
13450 if test "$supported" = "yes" ; then
13451 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13452 found="yes"
13453 fi
13454 fi
13455
13456 if test $found = "no" ; then
13457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13459 fi
13460
13461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13463 fi
13464
13465 CFLAGS="$CFLAGS -Wformat"
13466
13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13468 printf %s "checking if $CC supports -Wformat... " >&6; }
13469 cacheid=xorg_cv_cc_flag__Wformat
13470 if eval test \${$cacheid+y}
13471 then :
13472 printf %s "(cached) " >&6
13473 else $as_nop
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 int i;
13477 int
13478 main (void)
13479 {
13480
13481 ;
13482 return 0;
13483 }
13484 _ACEOF
13485 if ac_fn_c_try_link "$LINENO"
13486 then :
13487 eval $cacheid=yes
13488 else $as_nop
13489 eval $cacheid=no
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13492 conftest$ac_exeext conftest.$ac_ext
13493 fi
13494
13495
13496 CFLAGS="$xorg_testset_save_CFLAGS"
13497
13498 eval supported=\$$cacheid
13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13500 printf "%s\n" "$supported" >&6; }
13501 if test "$supported" = "yes" ; then
13502 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13503 found="yes"
13504 fi
13505 fi
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523 xorg_testset_save_CFLAGS="$CFLAGS"
13524
13525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13528 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13529 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13530 then :
13531 printf %s "(cached) " >&6
13532 else $as_nop
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 int i;
13536 _ACEOF
13537 if ac_fn_c_try_compile "$LINENO"
13538 then :
13539 xorg_cv_cc_flag_unknown_warning_option=yes
13540 else $as_nop
13541 xorg_cv_cc_flag_unknown_warning_option=no
13542 fi
13543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13544 fi
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13546 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13548 CFLAGS="$xorg_testset_save_CFLAGS"
13549 fi
13550
13551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13554 fi
13555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13557 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13558 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13566 if ac_fn_c_try_compile "$LINENO"
13567 then :
13568 xorg_cv_cc_flag_unused_command_line_argument=yes
13569 else $as_nop
13570 xorg_cv_cc_flag_unused_command_line_argument=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13573 fi
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13575 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13577 CFLAGS="$xorg_testset_save_CFLAGS"
13578 fi
13579
13580 found="no"
13581
13582 if test $found = "no" ; then
13583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585 fi
13586
13587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13589 fi
13590
13591 CFLAGS="$CFLAGS -Wstrict-prototypes"
13592
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13594 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13595 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13596 if eval test \${$cacheid+y}
13597 then :
13598 printf %s "(cached) " >&6
13599 else $as_nop
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 int i;
13603 int
13604 main (void)
13605 {
13606
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"
13612 then :
13613 eval $cacheid=yes
13614 else $as_nop
13615 eval $cacheid=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13618 conftest$ac_exeext conftest.$ac_ext
13619 fi
13620
13621
13622 CFLAGS="$xorg_testset_save_CFLAGS"
13623
13624 eval supported=\$$cacheid
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13626 printf "%s\n" "$supported" >&6; }
13627 if test "$supported" = "yes" ; then
13628 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13629 found="yes"
13630 fi
13631 fi
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647 xorg_testset_save_CFLAGS="$CFLAGS"
13648
13649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13652 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13653 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13654 then :
13655 printf %s "(cached) " >&6
13656 else $as_nop
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int i;
13660 _ACEOF
13661 if ac_fn_c_try_compile "$LINENO"
13662 then :
13663 xorg_cv_cc_flag_unknown_warning_option=yes
13664 else $as_nop
13665 xorg_cv_cc_flag_unknown_warning_option=no
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13668 fi
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13672 CFLAGS="$xorg_testset_save_CFLAGS"
13673 fi
13674
13675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13678 fi
13679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13682 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13690 if ac_fn_c_try_compile "$LINENO"
13691 then :
13692 xorg_cv_cc_flag_unused_command_line_argument=yes
13693 else $as_nop
13694 xorg_cv_cc_flag_unused_command_line_argument=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13697 fi
13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13699 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13701 CFLAGS="$xorg_testset_save_CFLAGS"
13702 fi
13703
13704 found="no"
13705
13706 if test $found = "no" ; then
13707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13709 fi
13710
13711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13713 fi
13714
13715 CFLAGS="$CFLAGS -Wmissing-prototypes"
13716
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13718 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13719 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13720 if eval test \${$cacheid+y}
13721 then :
13722 printf %s "(cached) " >&6
13723 else $as_nop
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 int i;
13727 int
13728 main (void)
13729 {
13730
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"
13736 then :
13737 eval $cacheid=yes
13738 else $as_nop
13739 eval $cacheid=no
13740 fi
13741 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13742 conftest$ac_exeext conftest.$ac_ext
13743 fi
13744
13745
13746 CFLAGS="$xorg_testset_save_CFLAGS"
13747
13748 eval supported=\$$cacheid
13749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13750 printf "%s\n" "$supported" >&6; }
13751 if test "$supported" = "yes" ; then
13752 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13753 found="yes"
13754 fi
13755 fi
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771 xorg_testset_save_CFLAGS="$CFLAGS"
13772
13773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13776 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13777 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13778 then :
13779 printf %s "(cached) " >&6
13780 else $as_nop
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 int i;
13784 _ACEOF
13785 if ac_fn_c_try_compile "$LINENO"
13786 then :
13787 xorg_cv_cc_flag_unknown_warning_option=yes
13788 else $as_nop
13789 xorg_cv_cc_flag_unknown_warning_option=no
13790 fi
13791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13792 fi
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13794 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13796 CFLAGS="$xorg_testset_save_CFLAGS"
13797 fi
13798
13799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13802 fi
13803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13805 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13806 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13814 if ac_fn_c_try_compile "$LINENO"
13815 then :
13816 xorg_cv_cc_flag_unused_command_line_argument=yes
13817 else $as_nop
13818 xorg_cv_cc_flag_unused_command_line_argument=no
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13821 fi
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13823 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13825 CFLAGS="$xorg_testset_save_CFLAGS"
13826 fi
13827
13828 found="no"
13829
13830 if test $found = "no" ; then
13831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13833 fi
13834
13835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13837 fi
13838
13839 CFLAGS="$CFLAGS -Wnested-externs"
13840
13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13842 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13843 cacheid=xorg_cv_cc_flag__Wnested_externs
13844 if eval test \${$cacheid+y}
13845 then :
13846 printf %s "(cached) " >&6
13847 else $as_nop
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 int i;
13851 int
13852 main (void)
13853 {
13854
13855 ;
13856 return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"
13860 then :
13861 eval $cacheid=yes
13862 else $as_nop
13863 eval $cacheid=no
13864 fi
13865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13866 conftest$ac_exeext conftest.$ac_ext
13867 fi
13868
13869
13870 CFLAGS="$xorg_testset_save_CFLAGS"
13871
13872 eval supported=\$$cacheid
13873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13874 printf "%s\n" "$supported" >&6; }
13875 if test "$supported" = "yes" ; then
13876 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13877 found="yes"
13878 fi
13879 fi
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895 xorg_testset_save_CFLAGS="$CFLAGS"
13896
13897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13900 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13901 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13902 then :
13903 printf %s "(cached) " >&6
13904 else $as_nop
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 int i;
13908 _ACEOF
13909 if ac_fn_c_try_compile "$LINENO"
13910 then :
13911 xorg_cv_cc_flag_unknown_warning_option=yes
13912 else $as_nop
13913 xorg_cv_cc_flag_unknown_warning_option=no
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13916 fi
13917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13918 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13920 CFLAGS="$xorg_testset_save_CFLAGS"
13921 fi
13922
13923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13926 fi
13927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13929 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13930 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
13938 if ac_fn_c_try_compile "$LINENO"
13939 then :
13940 xorg_cv_cc_flag_unused_command_line_argument=yes
13941 else $as_nop
13942 xorg_cv_cc_flag_unused_command_line_argument=no
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13945 fi
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13947 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13949 CFLAGS="$xorg_testset_save_CFLAGS"
13950 fi
13951
13952 found="no"
13953
13954 if test $found = "no" ; then
13955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957 fi
13958
13959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13961 fi
13962
13963 CFLAGS="$CFLAGS -Wbad-function-cast"
13964
13965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13966 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13967 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13968 if eval test \${$cacheid+y}
13969 then :
13970 printf %s "(cached) " >&6
13971 else $as_nop
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h. */
13974 int i;
13975 int
13976 main (void)
13977 {
13978
13979 ;
13980 return 0;
13981 }
13982 _ACEOF
13983 if ac_fn_c_try_link "$LINENO"
13984 then :
13985 eval $cacheid=yes
13986 else $as_nop
13987 eval $cacheid=no
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13990 conftest$ac_exeext conftest.$ac_ext
13991 fi
13992
13993
13994 CFLAGS="$xorg_testset_save_CFLAGS"
13995
13996 eval supported=\$$cacheid
13997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13998 printf "%s\n" "$supported" >&6; }
13999 if test "$supported" = "yes" ; then
14000 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14001 found="yes"
14002 fi
14003 fi
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019 xorg_testset_save_CFLAGS="$CFLAGS"
14020
14021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14025 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14026 then :
14027 printf %s "(cached) " >&6
14028 else $as_nop
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14031 int i;
14032 _ACEOF
14033 if ac_fn_c_try_compile "$LINENO"
14034 then :
14035 xorg_cv_cc_flag_unknown_warning_option=yes
14036 else $as_nop
14037 xorg_cv_cc_flag_unknown_warning_option=no
14038 fi
14039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14040 fi
14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14042 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14044 CFLAGS="$xorg_testset_save_CFLAGS"
14045 fi
14046
14047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14050 fi
14051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14053 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14054 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14062 if ac_fn_c_try_compile "$LINENO"
14063 then :
14064 xorg_cv_cc_flag_unused_command_line_argument=yes
14065 else $as_nop
14066 xorg_cv_cc_flag_unused_command_line_argument=no
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14069 fi
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14071 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14073 CFLAGS="$xorg_testset_save_CFLAGS"
14074 fi
14075
14076 found="no"
14077
14078 if test $found = "no" ; then
14079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14081 fi
14082
14083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14085 fi
14086
14087 CFLAGS="$CFLAGS -Wold-style-definition"
14088
14089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14090 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14091 cacheid=xorg_cv_cc_flag__Wold_style_definition
14092 if eval test \${$cacheid+y}
14093 then :
14094 printf %s "(cached) " >&6
14095 else $as_nop
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 int i;
14099 int
14100 main (void)
14101 {
14102
14103 ;
14104 return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_c_try_link "$LINENO"
14108 then :
14109 eval $cacheid=yes
14110 else $as_nop
14111 eval $cacheid=no
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14114 conftest$ac_exeext conftest.$ac_ext
14115 fi
14116
14117
14118 CFLAGS="$xorg_testset_save_CFLAGS"
14119
14120 eval supported=\$$cacheid
14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14122 printf "%s\n" "$supported" >&6; }
14123 if test "$supported" = "yes" ; then
14124 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14125 found="yes"
14126 fi
14127 fi
14128
14129 if test $found = "no" ; then
14130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14132 fi
14133
14134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14136 fi
14137
14138 CFLAGS="$CFLAGS -fd"
14139
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14141 printf %s "checking if $CC supports -fd... " >&6; }
14142 cacheid=xorg_cv_cc_flag__fd
14143 if eval test \${$cacheid+y}
14144 then :
14145 printf %s "(cached) " >&6
14146 else $as_nop
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 int i;
14150 int
14151 main (void)
14152 {
14153
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"
14159 then :
14160 eval $cacheid=yes
14161 else $as_nop
14162 eval $cacheid=no
14163 fi
14164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14165 conftest$ac_exeext conftest.$ac_ext
14166 fi
14167
14168
14169 CFLAGS="$xorg_testset_save_CFLAGS"
14170
14171 eval supported=\$$cacheid
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14173 printf "%s\n" "$supported" >&6; }
14174 if test "$supported" = "yes" ; then
14175 BASE_CFLAGS="$BASE_CFLAGS -fd"
14176 found="yes"
14177 fi
14178 fi
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194 xorg_testset_save_CFLAGS="$CFLAGS"
14195
14196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14199 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14200 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14201 then :
14202 printf %s "(cached) " >&6
14203 else $as_nop
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 int i;
14207 _ACEOF
14208 if ac_fn_c_try_compile "$LINENO"
14209 then :
14210 xorg_cv_cc_flag_unknown_warning_option=yes
14211 else $as_nop
14212 xorg_cv_cc_flag_unknown_warning_option=no
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14215 fi
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14217 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14219 CFLAGS="$xorg_testset_save_CFLAGS"
14220 fi
14221
14222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14225 fi
14226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14228 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14229 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"
14238 then :
14239 xorg_cv_cc_flag_unused_command_line_argument=yes
14240 else $as_nop
14241 xorg_cv_cc_flag_unused_command_line_argument=no
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14244 fi
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14246 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14248 CFLAGS="$xorg_testset_save_CFLAGS"
14249 fi
14250
14251 found="no"
14252
14253 if test $found = "no" ; then
14254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14256 fi
14257
14258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14260 fi
14261
14262 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14263
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14265 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14266 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14267 if eval test \${$cacheid+y}
14268 then :
14269 printf %s "(cached) " >&6
14270 else $as_nop
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14273 int i;
14274 int
14275 main (void)
14276 {
14277
14278 ;
14279 return 0;
14280 }
14281 _ACEOF
14282 if ac_fn_c_try_link "$LINENO"
14283 then :
14284 eval $cacheid=yes
14285 else $as_nop
14286 eval $cacheid=no
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14289 conftest$ac_exeext conftest.$ac_ext
14290 fi
14291
14292
14293 CFLAGS="$xorg_testset_save_CFLAGS"
14294
14295 eval supported=\$$cacheid
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14297 printf "%s\n" "$supported" >&6; }
14298 if test "$supported" = "yes" ; then
14299 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14300 found="yes"
14301 fi
14302 fi
14303
14304
14305
14306
14307
14308 # This chunk adds additional warnings that could catch undesired effects.
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322 xorg_testset_save_CFLAGS="$CFLAGS"
14323
14324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14328 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14329 then :
14330 printf %s "(cached) " >&6
14331 else $as_nop
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 int i;
14335 _ACEOF
14336 if ac_fn_c_try_compile "$LINENO"
14337 then :
14338 xorg_cv_cc_flag_unknown_warning_option=yes
14339 else $as_nop
14340 xorg_cv_cc_flag_unknown_warning_option=no
14341 fi
14342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14343 fi
14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14345 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14347 CFLAGS="$xorg_testset_save_CFLAGS"
14348 fi
14349
14350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14353 fi
14354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14356 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14357 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14365 if ac_fn_c_try_compile "$LINENO"
14366 then :
14367 xorg_cv_cc_flag_unused_command_line_argument=yes
14368 else $as_nop
14369 xorg_cv_cc_flag_unused_command_line_argument=no
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14372 fi
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14376 CFLAGS="$xorg_testset_save_CFLAGS"
14377 fi
14378
14379 found="no"
14380
14381 if test $found = "no" ; then
14382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14384 fi
14385
14386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14388 fi
14389
14390 CFLAGS="$CFLAGS -Wunused"
14391
14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14393 printf %s "checking if $CC supports -Wunused... " >&6; }
14394 cacheid=xorg_cv_cc_flag__Wunused
14395 if eval test \${$cacheid+y}
14396 then :
14397 printf %s "(cached) " >&6
14398 else $as_nop
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 int i;
14402 int
14403 main (void)
14404 {
14405
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"
14411 then :
14412 eval $cacheid=yes
14413 else $as_nop
14414 eval $cacheid=no
14415 fi
14416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14417 conftest$ac_exeext conftest.$ac_ext
14418 fi
14419
14420
14421 CFLAGS="$xorg_testset_save_CFLAGS"
14422
14423 eval supported=\$$cacheid
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14425 printf "%s\n" "$supported" >&6; }
14426 if test "$supported" = "yes" ; then
14427 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14428 found="yes"
14429 fi
14430 fi
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446 xorg_testset_save_CFLAGS="$CFLAGS"
14447
14448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14451 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14452 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14453 then :
14454 printf %s "(cached) " >&6
14455 else $as_nop
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 int i;
14459 _ACEOF
14460 if ac_fn_c_try_compile "$LINENO"
14461 then :
14462 xorg_cv_cc_flag_unknown_warning_option=yes
14463 else $as_nop
14464 xorg_cv_cc_flag_unknown_warning_option=no
14465 fi
14466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14467 fi
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14469 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14471 CFLAGS="$xorg_testset_save_CFLAGS"
14472 fi
14473
14474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477 fi
14478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14480 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14481 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14489 if ac_fn_c_try_compile "$LINENO"
14490 then :
14491 xorg_cv_cc_flag_unused_command_line_argument=yes
14492 else $as_nop
14493 xorg_cv_cc_flag_unused_command_line_argument=no
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14496 fi
14497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14498 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14500 CFLAGS="$xorg_testset_save_CFLAGS"
14501 fi
14502
14503 found="no"
14504
14505 if test $found = "no" ; then
14506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14508 fi
14509
14510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14512 fi
14513
14514 CFLAGS="$CFLAGS -Wuninitialized"
14515
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14517 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14518 cacheid=xorg_cv_cc_flag__Wuninitialized
14519 if eval test \${$cacheid+y}
14520 then :
14521 printf %s "(cached) " >&6
14522 else $as_nop
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 int i;
14526 int
14527 main (void)
14528 {
14529
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_link "$LINENO"
14535 then :
14536 eval $cacheid=yes
14537 else $as_nop
14538 eval $cacheid=no
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14541 conftest$ac_exeext conftest.$ac_ext
14542 fi
14543
14544
14545 CFLAGS="$xorg_testset_save_CFLAGS"
14546
14547 eval supported=\$$cacheid
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14549 printf "%s\n" "$supported" >&6; }
14550 if test "$supported" = "yes" ; then
14551 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14552 found="yes"
14553 fi
14554 fi
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570 xorg_testset_save_CFLAGS="$CFLAGS"
14571
14572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14576 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14577 then :
14578 printf %s "(cached) " >&6
14579 else $as_nop
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582 int i;
14583 _ACEOF
14584 if ac_fn_c_try_compile "$LINENO"
14585 then :
14586 xorg_cv_cc_flag_unknown_warning_option=yes
14587 else $as_nop
14588 xorg_cv_cc_flag_unknown_warning_option=no
14589 fi
14590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14591 fi
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14593 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14595 CFLAGS="$xorg_testset_save_CFLAGS"
14596 fi
14597
14598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601 fi
14602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14604 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14605 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14613 if ac_fn_c_try_compile "$LINENO"
14614 then :
14615 xorg_cv_cc_flag_unused_command_line_argument=yes
14616 else $as_nop
14617 xorg_cv_cc_flag_unused_command_line_argument=no
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14620 fi
14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14622 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14624 CFLAGS="$xorg_testset_save_CFLAGS"
14625 fi
14626
14627 found="no"
14628
14629 if test $found = "no" ; then
14630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632 fi
14633
14634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14636 fi
14637
14638 CFLAGS="$CFLAGS -Wshadow"
14639
14640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14641 printf %s "checking if $CC supports -Wshadow... " >&6; }
14642 cacheid=xorg_cv_cc_flag__Wshadow
14643 if eval test \${$cacheid+y}
14644 then :
14645 printf %s "(cached) " >&6
14646 else $as_nop
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14649 int i;
14650 int
14651 main (void)
14652 {
14653
14654 ;
14655 return 0;
14656 }
14657 _ACEOF
14658 if ac_fn_c_try_link "$LINENO"
14659 then :
14660 eval $cacheid=yes
14661 else $as_nop
14662 eval $cacheid=no
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14665 conftest$ac_exeext conftest.$ac_ext
14666 fi
14667
14668
14669 CFLAGS="$xorg_testset_save_CFLAGS"
14670
14671 eval supported=\$$cacheid
14672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14673 printf "%s\n" "$supported" >&6; }
14674 if test "$supported" = "yes" ; then
14675 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14676 found="yes"
14677 fi
14678 fi
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694 xorg_testset_save_CFLAGS="$CFLAGS"
14695
14696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14700 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14701 then :
14702 printf %s "(cached) " >&6
14703 else $as_nop
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 int i;
14707 _ACEOF
14708 if ac_fn_c_try_compile "$LINENO"
14709 then :
14710 xorg_cv_cc_flag_unknown_warning_option=yes
14711 else $as_nop
14712 xorg_cv_cc_flag_unknown_warning_option=no
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14715 fi
14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14717 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14719 CFLAGS="$xorg_testset_save_CFLAGS"
14720 fi
14721
14722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725 fi
14726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14729 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14737 if ac_fn_c_try_compile "$LINENO"
14738 then :
14739 xorg_cv_cc_flag_unused_command_line_argument=yes
14740 else $as_nop
14741 xorg_cv_cc_flag_unused_command_line_argument=no
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14744 fi
14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14746 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14748 CFLAGS="$xorg_testset_save_CFLAGS"
14749 fi
14750
14751 found="no"
14752
14753 if test $found = "no" ; then
14754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14756 fi
14757
14758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14760 fi
14761
14762 CFLAGS="$CFLAGS -Wmissing-noreturn"
14763
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14765 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14766 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14767 if eval test \${$cacheid+y}
14768 then :
14769 printf %s "(cached) " >&6
14770 else $as_nop
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 int i;
14774 int
14775 main (void)
14776 {
14777
14778 ;
14779 return 0;
14780 }
14781 _ACEOF
14782 if ac_fn_c_try_link "$LINENO"
14783 then :
14784 eval $cacheid=yes
14785 else $as_nop
14786 eval $cacheid=no
14787 fi
14788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14789 conftest$ac_exeext conftest.$ac_ext
14790 fi
14791
14792
14793 CFLAGS="$xorg_testset_save_CFLAGS"
14794
14795 eval supported=\$$cacheid
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14797 printf "%s\n" "$supported" >&6; }
14798 if test "$supported" = "yes" ; then
14799 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14800 found="yes"
14801 fi
14802 fi
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818 xorg_testset_save_CFLAGS="$CFLAGS"
14819
14820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14823 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14824 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14825 then :
14826 printf %s "(cached) " >&6
14827 else $as_nop
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 int i;
14831 _ACEOF
14832 if ac_fn_c_try_compile "$LINENO"
14833 then :
14834 xorg_cv_cc_flag_unknown_warning_option=yes
14835 else $as_nop
14836 xorg_cv_cc_flag_unknown_warning_option=no
14837 fi
14838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14839 fi
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14843 CFLAGS="$xorg_testset_save_CFLAGS"
14844 fi
14845
14846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849 fi
14850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14853 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"
14862 then :
14863 xorg_cv_cc_flag_unused_command_line_argument=yes
14864 else $as_nop
14865 xorg_cv_cc_flag_unused_command_line_argument=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14868 fi
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14870 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14872 CFLAGS="$xorg_testset_save_CFLAGS"
14873 fi
14874
14875 found="no"
14876
14877 if test $found = "no" ; then
14878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14880 fi
14881
14882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14884 fi
14885
14886 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14887
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14889 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14890 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14891 if eval test \${$cacheid+y}
14892 then :
14893 printf %s "(cached) " >&6
14894 else $as_nop
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897 int i;
14898 int
14899 main (void)
14900 {
14901
14902 ;
14903 return 0;
14904 }
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"
14907 then :
14908 eval $cacheid=yes
14909 else $as_nop
14910 eval $cacheid=no
14911 fi
14912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14913 conftest$ac_exeext conftest.$ac_ext
14914 fi
14915
14916
14917 CFLAGS="$xorg_testset_save_CFLAGS"
14918
14919 eval supported=\$$cacheid
14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14921 printf "%s\n" "$supported" >&6; }
14922 if test "$supported" = "yes" ; then
14923 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14924 found="yes"
14925 fi
14926 fi
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942 xorg_testset_save_CFLAGS="$CFLAGS"
14943
14944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14948 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14949 then :
14950 printf %s "(cached) " >&6
14951 else $as_nop
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954 int i;
14955 _ACEOF
14956 if ac_fn_c_try_compile "$LINENO"
14957 then :
14958 xorg_cv_cc_flag_unknown_warning_option=yes
14959 else $as_nop
14960 xorg_cv_cc_flag_unknown_warning_option=no
14961 fi
14962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14963 fi
14964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14965 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14967 CFLAGS="$xorg_testset_save_CFLAGS"
14968 fi
14969
14970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14973 fi
14974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14976 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14977 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
14985 if ac_fn_c_try_compile "$LINENO"
14986 then :
14987 xorg_cv_cc_flag_unused_command_line_argument=yes
14988 else $as_nop
14989 xorg_cv_cc_flag_unused_command_line_argument=no
14990 fi
14991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14992 fi
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14994 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14996 CFLAGS="$xorg_testset_save_CFLAGS"
14997 fi
14998
14999 found="no"
15000
15001 if test $found = "no" ; then
15002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15004 fi
15005
15006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15008 fi
15009
15010 CFLAGS="$CFLAGS -Wredundant-decls"
15011
15012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15013 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15014 cacheid=xorg_cv_cc_flag__Wredundant_decls
15015 if eval test \${$cacheid+y}
15016 then :
15017 printf %s "(cached) " >&6
15018 else $as_nop
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021 int i;
15022 int
15023 main (void)
15024 {
15025
15026 ;
15027 return 0;
15028 }
15029 _ACEOF
15030 if ac_fn_c_try_link "$LINENO"
15031 then :
15032 eval $cacheid=yes
15033 else $as_nop
15034 eval $cacheid=no
15035 fi
15036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15037 conftest$ac_exeext conftest.$ac_ext
15038 fi
15039
15040
15041 CFLAGS="$xorg_testset_save_CFLAGS"
15042
15043 eval supported=\$$cacheid
15044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15045 printf "%s\n" "$supported" >&6; }
15046 if test "$supported" = "yes" ; then
15047 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15048 found="yes"
15049 fi
15050 fi
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066 xorg_testset_save_CFLAGS="$CFLAGS"
15067
15068 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15071 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15072 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15073 then :
15074 printf %s "(cached) " >&6
15075 else $as_nop
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15078 int i;
15079 _ACEOF
15080 if ac_fn_c_try_compile "$LINENO"
15081 then :
15082 xorg_cv_cc_flag_unknown_warning_option=yes
15083 else $as_nop
15084 xorg_cv_cc_flag_unknown_warning_option=no
15085 fi
15086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15087 fi
15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15089 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15091 CFLAGS="$xorg_testset_save_CFLAGS"
15092 fi
15093
15094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097 fi
15098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15100 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15101 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
15109 if ac_fn_c_try_compile "$LINENO"
15110 then :
15111 xorg_cv_cc_flag_unused_command_line_argument=yes
15112 else $as_nop
15113 xorg_cv_cc_flag_unused_command_line_argument=no
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15116 fi
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15118 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15120 CFLAGS="$xorg_testset_save_CFLAGS"
15121 fi
15122
15123 found="no"
15124
15125 if test $found = "no" ; then
15126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15128 fi
15129
15130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15132 fi
15133
15134 CFLAGS="$CFLAGS -Wlogical-op"
15135
15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15137 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15138 cacheid=xorg_cv_cc_flag__Wlogical_op
15139 if eval test \${$cacheid+y}
15140 then :
15141 printf %s "(cached) " >&6
15142 else $as_nop
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15145 int i;
15146 int
15147 main (void)
15148 {
15149
15150 ;
15151 return 0;
15152 }
15153 _ACEOF
15154 if ac_fn_c_try_link "$LINENO"
15155 then :
15156 eval $cacheid=yes
15157 else $as_nop
15158 eval $cacheid=no
15159 fi
15160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15161 conftest$ac_exeext conftest.$ac_ext
15162 fi
15163
15164
15165 CFLAGS="$xorg_testset_save_CFLAGS"
15166
15167 eval supported=\$$cacheid
15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15169 printf "%s\n" "$supported" >&6; }
15170 if test "$supported" = "yes" ; then
15171 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15172 found="yes"
15173 fi
15174 fi
15175
15176
15177
15178 # These are currently disabled because they are noisy. They will be enabled
15179 # in the future once the codebase is sufficiently modernized to silence
15180 # them. For now, I don't want them to drown out the other warnings.
15181 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15182 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15183 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15184
15185 # Turn some warnings into errors, so we don't accidentally get successful builds
15186 # when there are problems that should be fixed.
15187
15188 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202 xorg_testset_save_CFLAGS="$CFLAGS"
15203
15204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15208 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15209 then :
15210 printf %s "(cached) " >&6
15211 else $as_nop
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 int i;
15215 _ACEOF
15216 if ac_fn_c_try_compile "$LINENO"
15217 then :
15218 xorg_cv_cc_flag_unknown_warning_option=yes
15219 else $as_nop
15220 xorg_cv_cc_flag_unknown_warning_option=no
15221 fi
15222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15223 fi
15224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15225 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15227 CFLAGS="$xorg_testset_save_CFLAGS"
15228 fi
15229
15230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233 fi
15234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15237 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
15245 if ac_fn_c_try_compile "$LINENO"
15246 then :
15247 xorg_cv_cc_flag_unused_command_line_argument=yes
15248 else $as_nop
15249 xorg_cv_cc_flag_unused_command_line_argument=no
15250 fi
15251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15252 fi
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15256 CFLAGS="$xorg_testset_save_CFLAGS"
15257 fi
15258
15259 found="no"
15260
15261 if test $found = "no" ; then
15262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15264 fi
15265
15266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268 fi
15269
15270 CFLAGS="$CFLAGS -Werror=implicit"
15271
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15273 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15274 cacheid=xorg_cv_cc_flag__Werror_implicit
15275 if eval test \${$cacheid+y}
15276 then :
15277 printf %s "(cached) " >&6
15278 else $as_nop
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281 int i;
15282 int
15283 main (void)
15284 {
15285
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 if ac_fn_c_try_link "$LINENO"
15291 then :
15292 eval $cacheid=yes
15293 else $as_nop
15294 eval $cacheid=no
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15297 conftest$ac_exeext conftest.$ac_ext
15298 fi
15299
15300
15301 CFLAGS="$xorg_testset_save_CFLAGS"
15302
15303 eval supported=\$$cacheid
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15305 printf "%s\n" "$supported" >&6; }
15306 if test "$supported" = "yes" ; then
15307 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15308 found="yes"
15309 fi
15310 fi
15311
15312 if test $found = "no" ; then
15313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15315 fi
15316
15317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15319 fi
15320
15321 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15322
15323 { 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
15324 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15325 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15326 if eval test \${$cacheid+y}
15327 then :
15328 printf %s "(cached) " >&6
15329 else $as_nop
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332 int i;
15333 int
15334 main (void)
15335 {
15336
15337 ;
15338 return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_link "$LINENO"
15342 then :
15343 eval $cacheid=yes
15344 else $as_nop
15345 eval $cacheid=no
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15348 conftest$ac_exeext conftest.$ac_ext
15349 fi
15350
15351
15352 CFLAGS="$xorg_testset_save_CFLAGS"
15353
15354 eval supported=\$$cacheid
15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15356 printf "%s\n" "$supported" >&6; }
15357 if test "$supported" = "yes" ; then
15358 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15359 found="yes"
15360 fi
15361 fi
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377 xorg_testset_save_CFLAGS="$CFLAGS"
15378
15379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15384 then :
15385 printf %s "(cached) " >&6
15386 else $as_nop
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389 int i;
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"
15392 then :
15393 xorg_cv_cc_flag_unknown_warning_option=yes
15394 else $as_nop
15395 xorg_cv_cc_flag_unknown_warning_option=no
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15398 fi
15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15402 CFLAGS="$xorg_testset_save_CFLAGS"
15403 fi
15404
15405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15408 fi
15409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15412 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
15420 if ac_fn_c_try_compile "$LINENO"
15421 then :
15422 xorg_cv_cc_flag_unused_command_line_argument=yes
15423 else $as_nop
15424 xorg_cv_cc_flag_unused_command_line_argument=no
15425 fi
15426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15427 fi
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15431 CFLAGS="$xorg_testset_save_CFLAGS"
15432 fi
15433
15434 found="no"
15435
15436 if test $found = "no" ; then
15437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15439 fi
15440
15441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15443 fi
15444
15445 CFLAGS="$CFLAGS -Werror=nonnull"
15446
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15448 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15449 cacheid=xorg_cv_cc_flag__Werror_nonnull
15450 if eval test \${$cacheid+y}
15451 then :
15452 printf %s "(cached) " >&6
15453 else $as_nop
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15456 int i;
15457 int
15458 main (void)
15459 {
15460
15461 ;
15462 return 0;
15463 }
15464 _ACEOF
15465 if ac_fn_c_try_link "$LINENO"
15466 then :
15467 eval $cacheid=yes
15468 else $as_nop
15469 eval $cacheid=no
15470 fi
15471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15472 conftest$ac_exeext conftest.$ac_ext
15473 fi
15474
15475
15476 CFLAGS="$xorg_testset_save_CFLAGS"
15477
15478 eval supported=\$$cacheid
15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15480 printf "%s\n" "$supported" >&6; }
15481 if test "$supported" = "yes" ; then
15482 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15483 found="yes"
15484 fi
15485 fi
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501 xorg_testset_save_CFLAGS="$CFLAGS"
15502
15503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15508 then :
15509 printf %s "(cached) " >&6
15510 else $as_nop
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 int i;
15514 _ACEOF
15515 if ac_fn_c_try_compile "$LINENO"
15516 then :
15517 xorg_cv_cc_flag_unknown_warning_option=yes
15518 else $as_nop
15519 xorg_cv_cc_flag_unknown_warning_option=no
15520 fi
15521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15522 fi
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15526 CFLAGS="$xorg_testset_save_CFLAGS"
15527 fi
15528
15529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15532 fi
15533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15536 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
15544 if ac_fn_c_try_compile "$LINENO"
15545 then :
15546 xorg_cv_cc_flag_unused_command_line_argument=yes
15547 else $as_nop
15548 xorg_cv_cc_flag_unused_command_line_argument=no
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15551 fi
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15555 CFLAGS="$xorg_testset_save_CFLAGS"
15556 fi
15557
15558 found="no"
15559
15560 if test $found = "no" ; then
15561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15563 fi
15564
15565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15567 fi
15568
15569 CFLAGS="$CFLAGS -Werror=init-self"
15570
15571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15572 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15573 cacheid=xorg_cv_cc_flag__Werror_init_self
15574 if eval test \${$cacheid+y}
15575 then :
15576 printf %s "(cached) " >&6
15577 else $as_nop
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580 int i;
15581 int
15582 main (void)
15583 {
15584
15585 ;
15586 return 0;
15587 }
15588 _ACEOF
15589 if ac_fn_c_try_link "$LINENO"
15590 then :
15591 eval $cacheid=yes
15592 else $as_nop
15593 eval $cacheid=no
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15596 conftest$ac_exeext conftest.$ac_ext
15597 fi
15598
15599
15600 CFLAGS="$xorg_testset_save_CFLAGS"
15601
15602 eval supported=\$$cacheid
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15604 printf "%s\n" "$supported" >&6; }
15605 if test "$supported" = "yes" ; then
15606 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15607 found="yes"
15608 fi
15609 fi
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625 xorg_testset_save_CFLAGS="$CFLAGS"
15626
15627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15632 then :
15633 printf %s "(cached) " >&6
15634 else $as_nop
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15637 int i;
15638 _ACEOF
15639 if ac_fn_c_try_compile "$LINENO"
15640 then :
15641 xorg_cv_cc_flag_unknown_warning_option=yes
15642 else $as_nop
15643 xorg_cv_cc_flag_unknown_warning_option=no
15644 fi
15645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15646 fi
15647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15650 CFLAGS="$xorg_testset_save_CFLAGS"
15651 fi
15652
15653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15656 fi
15657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15660 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
15668 if ac_fn_c_try_compile "$LINENO"
15669 then :
15670 xorg_cv_cc_flag_unused_command_line_argument=yes
15671 else $as_nop
15672 xorg_cv_cc_flag_unused_command_line_argument=no
15673 fi
15674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15675 fi
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15679 CFLAGS="$xorg_testset_save_CFLAGS"
15680 fi
15681
15682 found="no"
15683
15684 if test $found = "no" ; then
15685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15687 fi
15688
15689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15691 fi
15692
15693 CFLAGS="$CFLAGS -Werror=main"
15694
15695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15696 printf %s "checking if $CC supports -Werror=main... " >&6; }
15697 cacheid=xorg_cv_cc_flag__Werror_main
15698 if eval test \${$cacheid+y}
15699 then :
15700 printf %s "(cached) " >&6
15701 else $as_nop
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15704 int i;
15705 int
15706 main (void)
15707 {
15708
15709 ;
15710 return 0;
15711 }
15712 _ACEOF
15713 if ac_fn_c_try_link "$LINENO"
15714 then :
15715 eval $cacheid=yes
15716 else $as_nop
15717 eval $cacheid=no
15718 fi
15719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15720 conftest$ac_exeext conftest.$ac_ext
15721 fi
15722
15723
15724 CFLAGS="$xorg_testset_save_CFLAGS"
15725
15726 eval supported=\$$cacheid
15727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15728 printf "%s\n" "$supported" >&6; }
15729 if test "$supported" = "yes" ; then
15730 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15731 found="yes"
15732 fi
15733 fi
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749 xorg_testset_save_CFLAGS="$CFLAGS"
15750
15751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15755 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15756 then :
15757 printf %s "(cached) " >&6
15758 else $as_nop
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 int i;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"
15764 then :
15765 xorg_cv_cc_flag_unknown_warning_option=yes
15766 else $as_nop
15767 xorg_cv_cc_flag_unknown_warning_option=no
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15770 fi
15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15774 CFLAGS="$xorg_testset_save_CFLAGS"
15775 fi
15776
15777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15780 fi
15781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15784 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
15792 if ac_fn_c_try_compile "$LINENO"
15793 then :
15794 xorg_cv_cc_flag_unused_command_line_argument=yes
15795 else $as_nop
15796 xorg_cv_cc_flag_unused_command_line_argument=no
15797 fi
15798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15799 fi
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15803 CFLAGS="$xorg_testset_save_CFLAGS"
15804 fi
15805
15806 found="no"
15807
15808 if test $found = "no" ; then
15809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15811 fi
15812
15813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815 fi
15816
15817 CFLAGS="$CFLAGS -Werror=missing-braces"
15818
15819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15820 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15821 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15822 if eval test \${$cacheid+y}
15823 then :
15824 printf %s "(cached) " >&6
15825 else $as_nop
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828 int i;
15829 int
15830 main (void)
15831 {
15832
15833 ;
15834 return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_link "$LINENO"
15838 then :
15839 eval $cacheid=yes
15840 else $as_nop
15841 eval $cacheid=no
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15844 conftest$ac_exeext conftest.$ac_ext
15845 fi
15846
15847
15848 CFLAGS="$xorg_testset_save_CFLAGS"
15849
15850 eval supported=\$$cacheid
15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15852 printf "%s\n" "$supported" >&6; }
15853 if test "$supported" = "yes" ; then
15854 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15855 found="yes"
15856 fi
15857 fi
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873 xorg_testset_save_CFLAGS="$CFLAGS"
15874
15875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15878 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15879 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15880 then :
15881 printf %s "(cached) " >&6
15882 else $as_nop
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15885 int i;
15886 _ACEOF
15887 if ac_fn_c_try_compile "$LINENO"
15888 then :
15889 xorg_cv_cc_flag_unknown_warning_option=yes
15890 else $as_nop
15891 xorg_cv_cc_flag_unknown_warning_option=no
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15894 fi
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15898 CFLAGS="$xorg_testset_save_CFLAGS"
15899 fi
15900
15901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15904 fi
15905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15908 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
15916 if ac_fn_c_try_compile "$LINENO"
15917 then :
15918 xorg_cv_cc_flag_unused_command_line_argument=yes
15919 else $as_nop
15920 xorg_cv_cc_flag_unused_command_line_argument=no
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15923 fi
15924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15925 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15927 CFLAGS="$xorg_testset_save_CFLAGS"
15928 fi
15929
15930 found="no"
15931
15932 if test $found = "no" ; then
15933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15935 fi
15936
15937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15939 fi
15940
15941 CFLAGS="$CFLAGS -Werror=sequence-point"
15942
15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15944 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15945 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15946 if eval test \${$cacheid+y}
15947 then :
15948 printf %s "(cached) " >&6
15949 else $as_nop
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 int i;
15953 int
15954 main (void)
15955 {
15956
15957 ;
15958 return 0;
15959 }
15960 _ACEOF
15961 if ac_fn_c_try_link "$LINENO"
15962 then :
15963 eval $cacheid=yes
15964 else $as_nop
15965 eval $cacheid=no
15966 fi
15967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15968 conftest$ac_exeext conftest.$ac_ext
15969 fi
15970
15971
15972 CFLAGS="$xorg_testset_save_CFLAGS"
15973
15974 eval supported=\$$cacheid
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15976 printf "%s\n" "$supported" >&6; }
15977 if test "$supported" = "yes" ; then
15978 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15979 found="yes"
15980 fi
15981 fi
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997 xorg_testset_save_CFLAGS="$CFLAGS"
15998
15999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16002 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16003 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16004 then :
16005 printf %s "(cached) " >&6
16006 else $as_nop
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009 int i;
16010 _ACEOF
16011 if ac_fn_c_try_compile "$LINENO"
16012 then :
16013 xorg_cv_cc_flag_unknown_warning_option=yes
16014 else $as_nop
16015 xorg_cv_cc_flag_unknown_warning_option=no
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16018 fi
16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16020 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16022 CFLAGS="$xorg_testset_save_CFLAGS"
16023 fi
16024
16025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028 fi
16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16031 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16032 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
16040 if ac_fn_c_try_compile "$LINENO"
16041 then :
16042 xorg_cv_cc_flag_unused_command_line_argument=yes
16043 else $as_nop
16044 xorg_cv_cc_flag_unused_command_line_argument=no
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16047 fi
16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16049 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16051 CFLAGS="$xorg_testset_save_CFLAGS"
16052 fi
16053
16054 found="no"
16055
16056 if test $found = "no" ; then
16057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16059 fi
16060
16061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16063 fi
16064
16065 CFLAGS="$CFLAGS -Werror=return-type"
16066
16067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16068 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16069 cacheid=xorg_cv_cc_flag__Werror_return_type
16070 if eval test \${$cacheid+y}
16071 then :
16072 printf %s "(cached) " >&6
16073 else $as_nop
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16076 int i;
16077 int
16078 main (void)
16079 {
16080
16081 ;
16082 return 0;
16083 }
16084 _ACEOF
16085 if ac_fn_c_try_link "$LINENO"
16086 then :
16087 eval $cacheid=yes
16088 else $as_nop
16089 eval $cacheid=no
16090 fi
16091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16092 conftest$ac_exeext conftest.$ac_ext
16093 fi
16094
16095
16096 CFLAGS="$xorg_testset_save_CFLAGS"
16097
16098 eval supported=\$$cacheid
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16100 printf "%s\n" "$supported" >&6; }
16101 if test "$supported" = "yes" ; then
16102 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16103 found="yes"
16104 fi
16105 fi
16106
16107 if test $found = "no" ; then
16108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16110 fi
16111
16112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16114 fi
16115
16116 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16117
16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16119 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16120 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16121 if eval test \${$cacheid+y}
16122 then :
16123 printf %s "(cached) " >&6
16124 else $as_nop
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16127 int i;
16128 int
16129 main (void)
16130 {
16131
16132 ;
16133 return 0;
16134 }
16135 _ACEOF
16136 if ac_fn_c_try_link "$LINENO"
16137 then :
16138 eval $cacheid=yes
16139 else $as_nop
16140 eval $cacheid=no
16141 fi
16142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16143 conftest$ac_exeext conftest.$ac_ext
16144 fi
16145
16146
16147 CFLAGS="$xorg_testset_save_CFLAGS"
16148
16149 eval supported=\$$cacheid
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16151 printf "%s\n" "$supported" >&6; }
16152 if test "$supported" = "yes" ; then
16153 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16154 found="yes"
16155 fi
16156 fi
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172 xorg_testset_save_CFLAGS="$CFLAGS"
16173
16174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16178 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16179 then :
16180 printf %s "(cached) " >&6
16181 else $as_nop
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16184 int i;
16185 _ACEOF
16186 if ac_fn_c_try_compile "$LINENO"
16187 then :
16188 xorg_cv_cc_flag_unknown_warning_option=yes
16189 else $as_nop
16190 xorg_cv_cc_flag_unknown_warning_option=no
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16193 fi
16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16197 CFLAGS="$xorg_testset_save_CFLAGS"
16198 fi
16199
16200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16203 fi
16204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16207 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
16215 if ac_fn_c_try_compile "$LINENO"
16216 then :
16217 xorg_cv_cc_flag_unused_command_line_argument=yes
16218 else $as_nop
16219 xorg_cv_cc_flag_unused_command_line_argument=no
16220 fi
16221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16222 fi
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16226 CFLAGS="$xorg_testset_save_CFLAGS"
16227 fi
16228
16229 found="no"
16230
16231 if test $found = "no" ; then
16232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16234 fi
16235
16236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16238 fi
16239
16240 CFLAGS="$CFLAGS -Werror=trigraphs"
16241
16242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16243 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16244 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16245 if eval test \${$cacheid+y}
16246 then :
16247 printf %s "(cached) " >&6
16248 else $as_nop
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 int i;
16252 int
16253 main (void)
16254 {
16255
16256 ;
16257 return 0;
16258 }
16259 _ACEOF
16260 if ac_fn_c_try_link "$LINENO"
16261 then :
16262 eval $cacheid=yes
16263 else $as_nop
16264 eval $cacheid=no
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16267 conftest$ac_exeext conftest.$ac_ext
16268 fi
16269
16270
16271 CFLAGS="$xorg_testset_save_CFLAGS"
16272
16273 eval supported=\$$cacheid
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16275 printf "%s\n" "$supported" >&6; }
16276 if test "$supported" = "yes" ; then
16277 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16278 found="yes"
16279 fi
16280 fi
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296 xorg_testset_save_CFLAGS="$CFLAGS"
16297
16298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16302 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16303 then :
16304 printf %s "(cached) " >&6
16305 else $as_nop
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 int i;
16309 _ACEOF
16310 if ac_fn_c_try_compile "$LINENO"
16311 then :
16312 xorg_cv_cc_flag_unknown_warning_option=yes
16313 else $as_nop
16314 xorg_cv_cc_flag_unknown_warning_option=no
16315 fi
16316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16317 fi
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16321 CFLAGS="$xorg_testset_save_CFLAGS"
16322 fi
16323
16324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16327 fi
16328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16331 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
16339 if ac_fn_c_try_compile "$LINENO"
16340 then :
16341 xorg_cv_cc_flag_unused_command_line_argument=yes
16342 else $as_nop
16343 xorg_cv_cc_flag_unused_command_line_argument=no
16344 fi
16345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16346 fi
16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16350 CFLAGS="$xorg_testset_save_CFLAGS"
16351 fi
16352
16353 found="no"
16354
16355 if test $found = "no" ; then
16356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16358 fi
16359
16360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16362 fi
16363
16364 CFLAGS="$CFLAGS -Werror=array-bounds"
16365
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16367 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16368 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16369 if eval test \${$cacheid+y}
16370 then :
16371 printf %s "(cached) " >&6
16372 else $as_nop
16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h. */
16375 int i;
16376 int
16377 main (void)
16378 {
16379
16380 ;
16381 return 0;
16382 }
16383 _ACEOF
16384 if ac_fn_c_try_link "$LINENO"
16385 then :
16386 eval $cacheid=yes
16387 else $as_nop
16388 eval $cacheid=no
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16391 conftest$ac_exeext conftest.$ac_ext
16392 fi
16393
16394
16395 CFLAGS="$xorg_testset_save_CFLAGS"
16396
16397 eval supported=\$$cacheid
16398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16399 printf "%s\n" "$supported" >&6; }
16400 if test "$supported" = "yes" ; then
16401 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16402 found="yes"
16403 fi
16404 fi
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420 xorg_testset_save_CFLAGS="$CFLAGS"
16421
16422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16426 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16427 then :
16428 printf %s "(cached) " >&6
16429 else $as_nop
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16432 int i;
16433 _ACEOF
16434 if ac_fn_c_try_compile "$LINENO"
16435 then :
16436 xorg_cv_cc_flag_unknown_warning_option=yes
16437 else $as_nop
16438 xorg_cv_cc_flag_unknown_warning_option=no
16439 fi
16440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16441 fi
16442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16445 CFLAGS="$xorg_testset_save_CFLAGS"
16446 fi
16447
16448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451 fi
16452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16455 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
16463 if ac_fn_c_try_compile "$LINENO"
16464 then :
16465 xorg_cv_cc_flag_unused_command_line_argument=yes
16466 else $as_nop
16467 xorg_cv_cc_flag_unused_command_line_argument=no
16468 fi
16469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16470 fi
16471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16474 CFLAGS="$xorg_testset_save_CFLAGS"
16475 fi
16476
16477 found="no"
16478
16479 if test $found = "no" ; then
16480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16482 fi
16483
16484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16486 fi
16487
16488 CFLAGS="$CFLAGS -Werror=write-strings"
16489
16490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16491 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16492 cacheid=xorg_cv_cc_flag__Werror_write_strings
16493 if eval test \${$cacheid+y}
16494 then :
16495 printf %s "(cached) " >&6
16496 else $as_nop
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16499 int i;
16500 int
16501 main (void)
16502 {
16503
16504 ;
16505 return 0;
16506 }
16507 _ACEOF
16508 if ac_fn_c_try_link "$LINENO"
16509 then :
16510 eval $cacheid=yes
16511 else $as_nop
16512 eval $cacheid=no
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16515 conftest$ac_exeext conftest.$ac_ext
16516 fi
16517
16518
16519 CFLAGS="$xorg_testset_save_CFLAGS"
16520
16521 eval supported=\$$cacheid
16522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16523 printf "%s\n" "$supported" >&6; }
16524 if test "$supported" = "yes" ; then
16525 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16526 found="yes"
16527 fi
16528 fi
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544 xorg_testset_save_CFLAGS="$CFLAGS"
16545
16546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16549 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16550 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16551 then :
16552 printf %s "(cached) " >&6
16553 else $as_nop
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 int i;
16557 _ACEOF
16558 if ac_fn_c_try_compile "$LINENO"
16559 then :
16560 xorg_cv_cc_flag_unknown_warning_option=yes
16561 else $as_nop
16562 xorg_cv_cc_flag_unknown_warning_option=no
16563 fi
16564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16565 fi
16566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16567 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16569 CFLAGS="$xorg_testset_save_CFLAGS"
16570 fi
16571
16572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16575 fi
16576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16578 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16579 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
16587 if ac_fn_c_try_compile "$LINENO"
16588 then :
16589 xorg_cv_cc_flag_unused_command_line_argument=yes
16590 else $as_nop
16591 xorg_cv_cc_flag_unused_command_line_argument=no
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16594 fi
16595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16596 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16598 CFLAGS="$xorg_testset_save_CFLAGS"
16599 fi
16600
16601 found="no"
16602
16603 if test $found = "no" ; then
16604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16606 fi
16607
16608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610 fi
16611
16612 CFLAGS="$CFLAGS -Werror=address"
16613
16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16615 printf %s "checking if $CC supports -Werror=address... " >&6; }
16616 cacheid=xorg_cv_cc_flag__Werror_address
16617 if eval test \${$cacheid+y}
16618 then :
16619 printf %s "(cached) " >&6
16620 else $as_nop
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 int i;
16624 int
16625 main (void)
16626 {
16627
16628 ;
16629 return 0;
16630 }
16631 _ACEOF
16632 if ac_fn_c_try_link "$LINENO"
16633 then :
16634 eval $cacheid=yes
16635 else $as_nop
16636 eval $cacheid=no
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16639 conftest$ac_exeext conftest.$ac_ext
16640 fi
16641
16642
16643 CFLAGS="$xorg_testset_save_CFLAGS"
16644
16645 eval supported=\$$cacheid
16646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16647 printf "%s\n" "$supported" >&6; }
16648 if test "$supported" = "yes" ; then
16649 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16650 found="yes"
16651 fi
16652 fi
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668 xorg_testset_save_CFLAGS="$CFLAGS"
16669
16670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16674 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16675 then :
16676 printf %s "(cached) " >&6
16677 else $as_nop
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 int i;
16681 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"
16683 then :
16684 xorg_cv_cc_flag_unknown_warning_option=yes
16685 else $as_nop
16686 xorg_cv_cc_flag_unknown_warning_option=no
16687 fi
16688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16689 fi
16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16693 CFLAGS="$xorg_testset_save_CFLAGS"
16694 fi
16695
16696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699 fi
16700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16703 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
16711 if ac_fn_c_try_compile "$LINENO"
16712 then :
16713 xorg_cv_cc_flag_unused_command_line_argument=yes
16714 else $as_nop
16715 xorg_cv_cc_flag_unused_command_line_argument=no
16716 fi
16717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16718 fi
16719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16722 CFLAGS="$xorg_testset_save_CFLAGS"
16723 fi
16724
16725 found="no"
16726
16727 if test $found = "no" ; then
16728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16730 fi
16731
16732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16734 fi
16735
16736 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16737
16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16739 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16740 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16741 if eval test \${$cacheid+y}
16742 then :
16743 printf %s "(cached) " >&6
16744 else $as_nop
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 int i;
16748 int
16749 main (void)
16750 {
16751
16752 ;
16753 return 0;
16754 }
16755 _ACEOF
16756 if ac_fn_c_try_link "$LINENO"
16757 then :
16758 eval $cacheid=yes
16759 else $as_nop
16760 eval $cacheid=no
16761 fi
16762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16763 conftest$ac_exeext conftest.$ac_ext
16764 fi
16765
16766
16767 CFLAGS="$xorg_testset_save_CFLAGS"
16768
16769 eval supported=\$$cacheid
16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16771 printf "%s\n" "$supported" >&6; }
16772 if test "$supported" = "yes" ; then
16773 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16774 found="yes"
16775 fi
16776 fi
16777
16778 if test $found = "no" ; then
16779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16781 fi
16782
16783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16785 fi
16786
16787 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16788
16789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16790 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16791 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16792 if eval test \${$cacheid+y}
16793 then :
16794 printf %s "(cached) " >&6
16795 else $as_nop
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798 int i;
16799 int
16800 main (void)
16801 {
16802
16803 ;
16804 return 0;
16805 }
16806 _ACEOF
16807 if ac_fn_c_try_link "$LINENO"
16808 then :
16809 eval $cacheid=yes
16810 else $as_nop
16811 eval $cacheid=no
16812 fi
16813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16814 conftest$ac_exeext conftest.$ac_ext
16815 fi
16816
16817
16818 CFLAGS="$xorg_testset_save_CFLAGS"
16819
16820 eval supported=\$$cacheid
16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16822 printf "%s\n" "$supported" >&6; }
16823 if test "$supported" = "yes" ; then
16824 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16825 found="yes"
16826 fi
16827 fi
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843 xorg_testset_save_CFLAGS="$CFLAGS"
16844
16845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16849 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16850 then :
16851 printf %s "(cached) " >&6
16852 else $as_nop
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855 int i;
16856 _ACEOF
16857 if ac_fn_c_try_compile "$LINENO"
16858 then :
16859 xorg_cv_cc_flag_unknown_warning_option=yes
16860 else $as_nop
16861 xorg_cv_cc_flag_unknown_warning_option=no
16862 fi
16863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16864 fi
16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16866 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16868 CFLAGS="$xorg_testset_save_CFLAGS"
16869 fi
16870
16871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16874 fi
16875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16878 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
16886 if ac_fn_c_try_compile "$LINENO"
16887 then :
16888 xorg_cv_cc_flag_unused_command_line_argument=yes
16889 else $as_nop
16890 xorg_cv_cc_flag_unused_command_line_argument=no
16891 fi
16892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16893 fi
16894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16895 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16897 CFLAGS="$xorg_testset_save_CFLAGS"
16898 fi
16899
16900 found="no"
16901
16902 if test $found = "no" ; then
16903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16905 fi
16906
16907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16909 fi
16910
16911 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16912
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16914 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16915 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16916 if eval test \${$cacheid+y}
16917 then :
16918 printf %s "(cached) " >&6
16919 else $as_nop
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16922 int i;
16923 int
16924 main (void)
16925 {
16926
16927 ;
16928 return 0;
16929 }
16930 _ACEOF
16931 if ac_fn_c_try_link "$LINENO"
16932 then :
16933 eval $cacheid=yes
16934 else $as_nop
16935 eval $cacheid=no
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16938 conftest$ac_exeext conftest.$ac_ext
16939 fi
16940
16941
16942 CFLAGS="$xorg_testset_save_CFLAGS"
16943
16944 eval supported=\$$cacheid
16945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16946 printf "%s\n" "$supported" >&6; }
16947 if test "$supported" = "yes" ; then
16948 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16949 found="yes"
16950 fi
16951 fi
16952
16953 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16954 else
16955 { 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
16956 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;}
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970 xorg_testset_save_CFLAGS="$CFLAGS"
16971
16972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16975 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16976 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16977 then :
16978 printf %s "(cached) " >&6
16979 else $as_nop
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 int i;
16983 _ACEOF
16984 if ac_fn_c_try_compile "$LINENO"
16985 then :
16986 xorg_cv_cc_flag_unknown_warning_option=yes
16987 else $as_nop
16988 xorg_cv_cc_flag_unknown_warning_option=no
16989 fi
16990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16991 fi
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16993 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16995 CFLAGS="$xorg_testset_save_CFLAGS"
16996 fi
16997
16998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17001 fi
17002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17005 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17013 if ac_fn_c_try_compile "$LINENO"
17014 then :
17015 xorg_cv_cc_flag_unused_command_line_argument=yes
17016 else $as_nop
17017 xorg_cv_cc_flag_unused_command_line_argument=no
17018 fi
17019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17020 fi
17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17022 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17024 CFLAGS="$xorg_testset_save_CFLAGS"
17025 fi
17026
17027 found="no"
17028
17029 if test $found = "no" ; then
17030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17032 fi
17033
17034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17036 fi
17037
17038 CFLAGS="$CFLAGS -Wimplicit"
17039
17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17041 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17042 cacheid=xorg_cv_cc_flag__Wimplicit
17043 if eval test \${$cacheid+y}
17044 then :
17045 printf %s "(cached) " >&6
17046 else $as_nop
17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048 /* end confdefs.h. */
17049 int i;
17050 int
17051 main (void)
17052 {
17053
17054 ;
17055 return 0;
17056 }
17057 _ACEOF
17058 if ac_fn_c_try_link "$LINENO"
17059 then :
17060 eval $cacheid=yes
17061 else $as_nop
17062 eval $cacheid=no
17063 fi
17064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17065 conftest$ac_exeext conftest.$ac_ext
17066 fi
17067
17068
17069 CFLAGS="$xorg_testset_save_CFLAGS"
17070
17071 eval supported=\$$cacheid
17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17073 printf "%s\n" "$supported" >&6; }
17074 if test "$supported" = "yes" ; then
17075 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17076 found="yes"
17077 fi
17078 fi
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094 xorg_testset_save_CFLAGS="$CFLAGS"
17095
17096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17099 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17100 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17101 then :
17102 printf %s "(cached) " >&6
17103 else $as_nop
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106 int i;
17107 _ACEOF
17108 if ac_fn_c_try_compile "$LINENO"
17109 then :
17110 xorg_cv_cc_flag_unknown_warning_option=yes
17111 else $as_nop
17112 xorg_cv_cc_flag_unknown_warning_option=no
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17115 fi
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17117 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17119 CFLAGS="$xorg_testset_save_CFLAGS"
17120 fi
17121
17122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17125 fi
17126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17128 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17129 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17137 if ac_fn_c_try_compile "$LINENO"
17138 then :
17139 xorg_cv_cc_flag_unused_command_line_argument=yes
17140 else $as_nop
17141 xorg_cv_cc_flag_unused_command_line_argument=no
17142 fi
17143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17144 fi
17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17148 CFLAGS="$xorg_testset_save_CFLAGS"
17149 fi
17150
17151 found="no"
17152
17153 if test $found = "no" ; then
17154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156 fi
17157
17158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160 fi
17161
17162 CFLAGS="$CFLAGS -Wnonnull"
17163
17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17165 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17166 cacheid=xorg_cv_cc_flag__Wnonnull
17167 if eval test \${$cacheid+y}
17168 then :
17169 printf %s "(cached) " >&6
17170 else $as_nop
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17173 int i;
17174 int
17175 main (void)
17176 {
17177
17178 ;
17179 return 0;
17180 }
17181 _ACEOF
17182 if ac_fn_c_try_link "$LINENO"
17183 then :
17184 eval $cacheid=yes
17185 else $as_nop
17186 eval $cacheid=no
17187 fi
17188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17189 conftest$ac_exeext conftest.$ac_ext
17190 fi
17191
17192
17193 CFLAGS="$xorg_testset_save_CFLAGS"
17194
17195 eval supported=\$$cacheid
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17197 printf "%s\n" "$supported" >&6; }
17198 if test "$supported" = "yes" ; then
17199 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17200 found="yes"
17201 fi
17202 fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218 xorg_testset_save_CFLAGS="$CFLAGS"
17219
17220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17225 then :
17226 printf %s "(cached) " >&6
17227 else $as_nop
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 int i;
17231 _ACEOF
17232 if ac_fn_c_try_compile "$LINENO"
17233 then :
17234 xorg_cv_cc_flag_unknown_warning_option=yes
17235 else $as_nop
17236 xorg_cv_cc_flag_unknown_warning_option=no
17237 fi
17238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17239 fi
17240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17243 CFLAGS="$xorg_testset_save_CFLAGS"
17244 fi
17245
17246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249 fi
17250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17253 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17261 if ac_fn_c_try_compile "$LINENO"
17262 then :
17263 xorg_cv_cc_flag_unused_command_line_argument=yes
17264 else $as_nop
17265 xorg_cv_cc_flag_unused_command_line_argument=no
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17268 fi
17269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17272 CFLAGS="$xorg_testset_save_CFLAGS"
17273 fi
17274
17275 found="no"
17276
17277 if test $found = "no" ; then
17278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17280 fi
17281
17282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17284 fi
17285
17286 CFLAGS="$CFLAGS -Winit-self"
17287
17288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17289 printf %s "checking if $CC supports -Winit-self... " >&6; }
17290 cacheid=xorg_cv_cc_flag__Winit_self
17291 if eval test \${$cacheid+y}
17292 then :
17293 printf %s "(cached) " >&6
17294 else $as_nop
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 int i;
17298 int
17299 main (void)
17300 {
17301
17302 ;
17303 return 0;
17304 }
17305 _ACEOF
17306 if ac_fn_c_try_link "$LINENO"
17307 then :
17308 eval $cacheid=yes
17309 else $as_nop
17310 eval $cacheid=no
17311 fi
17312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17313 conftest$ac_exeext conftest.$ac_ext
17314 fi
17315
17316
17317 CFLAGS="$xorg_testset_save_CFLAGS"
17318
17319 eval supported=\$$cacheid
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17321 printf "%s\n" "$supported" >&6; }
17322 if test "$supported" = "yes" ; then
17323 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17324 found="yes"
17325 fi
17326 fi
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342 xorg_testset_save_CFLAGS="$CFLAGS"
17343
17344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17349 then :
17350 printf %s "(cached) " >&6
17351 else $as_nop
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354 int i;
17355 _ACEOF
17356 if ac_fn_c_try_compile "$LINENO"
17357 then :
17358 xorg_cv_cc_flag_unknown_warning_option=yes
17359 else $as_nop
17360 xorg_cv_cc_flag_unknown_warning_option=no
17361 fi
17362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17363 fi
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17367 CFLAGS="$xorg_testset_save_CFLAGS"
17368 fi
17369
17370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373 fi
17374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17377 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17385 if ac_fn_c_try_compile "$LINENO"
17386 then :
17387 xorg_cv_cc_flag_unused_command_line_argument=yes
17388 else $as_nop
17389 xorg_cv_cc_flag_unused_command_line_argument=no
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17392 fi
17393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17396 CFLAGS="$xorg_testset_save_CFLAGS"
17397 fi
17398
17399 found="no"
17400
17401 if test $found = "no" ; then
17402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17404 fi
17405
17406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17408 fi
17409
17410 CFLAGS="$CFLAGS -Wmain"
17411
17412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17413 printf %s "checking if $CC supports -Wmain... " >&6; }
17414 cacheid=xorg_cv_cc_flag__Wmain
17415 if eval test \${$cacheid+y}
17416 then :
17417 printf %s "(cached) " >&6
17418 else $as_nop
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17421 int i;
17422 int
17423 main (void)
17424 {
17425
17426 ;
17427 return 0;
17428 }
17429 _ACEOF
17430 if ac_fn_c_try_link "$LINENO"
17431 then :
17432 eval $cacheid=yes
17433 else $as_nop
17434 eval $cacheid=no
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17437 conftest$ac_exeext conftest.$ac_ext
17438 fi
17439
17440
17441 CFLAGS="$xorg_testset_save_CFLAGS"
17442
17443 eval supported=\$$cacheid
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17445 printf "%s\n" "$supported" >&6; }
17446 if test "$supported" = "yes" ; then
17447 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17448 found="yes"
17449 fi
17450 fi
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466 xorg_testset_save_CFLAGS="$CFLAGS"
17467
17468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17473 then :
17474 printf %s "(cached) " >&6
17475 else $as_nop
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478 int i;
17479 _ACEOF
17480 if ac_fn_c_try_compile "$LINENO"
17481 then :
17482 xorg_cv_cc_flag_unknown_warning_option=yes
17483 else $as_nop
17484 xorg_cv_cc_flag_unknown_warning_option=no
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17487 fi
17488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17491 CFLAGS="$xorg_testset_save_CFLAGS"
17492 fi
17493
17494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497 fi
17498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17501 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17509 if ac_fn_c_try_compile "$LINENO"
17510 then :
17511 xorg_cv_cc_flag_unused_command_line_argument=yes
17512 else $as_nop
17513 xorg_cv_cc_flag_unused_command_line_argument=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17516 fi
17517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17520 CFLAGS="$xorg_testset_save_CFLAGS"
17521 fi
17522
17523 found="no"
17524
17525 if test $found = "no" ; then
17526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17528 fi
17529
17530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17532 fi
17533
17534 CFLAGS="$CFLAGS -Wmissing-braces"
17535
17536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17537 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17538 cacheid=xorg_cv_cc_flag__Wmissing_braces
17539 if eval test \${$cacheid+y}
17540 then :
17541 printf %s "(cached) " >&6
17542 else $as_nop
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17545 int i;
17546 int
17547 main (void)
17548 {
17549
17550 ;
17551 return 0;
17552 }
17553 _ACEOF
17554 if ac_fn_c_try_link "$LINENO"
17555 then :
17556 eval $cacheid=yes
17557 else $as_nop
17558 eval $cacheid=no
17559 fi
17560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17561 conftest$ac_exeext conftest.$ac_ext
17562 fi
17563
17564
17565 CFLAGS="$xorg_testset_save_CFLAGS"
17566
17567 eval supported=\$$cacheid
17568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17569 printf "%s\n" "$supported" >&6; }
17570 if test "$supported" = "yes" ; then
17571 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17572 found="yes"
17573 fi
17574 fi
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590 xorg_testset_save_CFLAGS="$CFLAGS"
17591
17592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17596 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17597 then :
17598 printf %s "(cached) " >&6
17599 else $as_nop
17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601 /* end confdefs.h. */
17602 int i;
17603 _ACEOF
17604 if ac_fn_c_try_compile "$LINENO"
17605 then :
17606 xorg_cv_cc_flag_unknown_warning_option=yes
17607 else $as_nop
17608 xorg_cv_cc_flag_unknown_warning_option=no
17609 fi
17610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17611 fi
17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17615 CFLAGS="$xorg_testset_save_CFLAGS"
17616 fi
17617
17618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17621 fi
17622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17625 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17633 if ac_fn_c_try_compile "$LINENO"
17634 then :
17635 xorg_cv_cc_flag_unused_command_line_argument=yes
17636 else $as_nop
17637 xorg_cv_cc_flag_unused_command_line_argument=no
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17640 fi
17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17644 CFLAGS="$xorg_testset_save_CFLAGS"
17645 fi
17646
17647 found="no"
17648
17649 if test $found = "no" ; then
17650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17652 fi
17653
17654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17656 fi
17657
17658 CFLAGS="$CFLAGS -Wsequence-point"
17659
17660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17661 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17662 cacheid=xorg_cv_cc_flag__Wsequence_point
17663 if eval test \${$cacheid+y}
17664 then :
17665 printf %s "(cached) " >&6
17666 else $as_nop
17667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h. */
17669 int i;
17670 int
17671 main (void)
17672 {
17673
17674 ;
17675 return 0;
17676 }
17677 _ACEOF
17678 if ac_fn_c_try_link "$LINENO"
17679 then :
17680 eval $cacheid=yes
17681 else $as_nop
17682 eval $cacheid=no
17683 fi
17684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17685 conftest$ac_exeext conftest.$ac_ext
17686 fi
17687
17688
17689 CFLAGS="$xorg_testset_save_CFLAGS"
17690
17691 eval supported=\$$cacheid
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17693 printf "%s\n" "$supported" >&6; }
17694 if test "$supported" = "yes" ; then
17695 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17696 found="yes"
17697 fi
17698 fi
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714 xorg_testset_save_CFLAGS="$CFLAGS"
17715
17716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17721 then :
17722 printf %s "(cached) " >&6
17723 else $as_nop
17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17726 int i;
17727 _ACEOF
17728 if ac_fn_c_try_compile "$LINENO"
17729 then :
17730 xorg_cv_cc_flag_unknown_warning_option=yes
17731 else $as_nop
17732 xorg_cv_cc_flag_unknown_warning_option=no
17733 fi
17734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17735 fi
17736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17739 CFLAGS="$xorg_testset_save_CFLAGS"
17740 fi
17741
17742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17745 fi
17746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17749 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17757 if ac_fn_c_try_compile "$LINENO"
17758 then :
17759 xorg_cv_cc_flag_unused_command_line_argument=yes
17760 else $as_nop
17761 xorg_cv_cc_flag_unused_command_line_argument=no
17762 fi
17763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17764 fi
17765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17766 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17768 CFLAGS="$xorg_testset_save_CFLAGS"
17769 fi
17770
17771 found="no"
17772
17773 if test $found = "no" ; then
17774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17776 fi
17777
17778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17780 fi
17781
17782 CFLAGS="$CFLAGS -Wreturn-type"
17783
17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17785 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17786 cacheid=xorg_cv_cc_flag__Wreturn_type
17787 if eval test \${$cacheid+y}
17788 then :
17789 printf %s "(cached) " >&6
17790 else $as_nop
17791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17793 int i;
17794 int
17795 main (void)
17796 {
17797
17798 ;
17799 return 0;
17800 }
17801 _ACEOF
17802 if ac_fn_c_try_link "$LINENO"
17803 then :
17804 eval $cacheid=yes
17805 else $as_nop
17806 eval $cacheid=no
17807 fi
17808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17809 conftest$ac_exeext conftest.$ac_ext
17810 fi
17811
17812
17813 CFLAGS="$xorg_testset_save_CFLAGS"
17814
17815 eval supported=\$$cacheid
17816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17817 printf "%s\n" "$supported" >&6; }
17818 if test "$supported" = "yes" ; then
17819 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17820 found="yes"
17821 fi
17822 fi
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838 xorg_testset_save_CFLAGS="$CFLAGS"
17839
17840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17844 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17845 then :
17846 printf %s "(cached) " >&6
17847 else $as_nop
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17850 int i;
17851 _ACEOF
17852 if ac_fn_c_try_compile "$LINENO"
17853 then :
17854 xorg_cv_cc_flag_unknown_warning_option=yes
17855 else $as_nop
17856 xorg_cv_cc_flag_unknown_warning_option=no
17857 fi
17858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17859 fi
17860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17863 CFLAGS="$xorg_testset_save_CFLAGS"
17864 fi
17865
17866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17869 fi
17870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17873 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
17881 if ac_fn_c_try_compile "$LINENO"
17882 then :
17883 xorg_cv_cc_flag_unused_command_line_argument=yes
17884 else $as_nop
17885 xorg_cv_cc_flag_unused_command_line_argument=no
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17888 fi
17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17892 CFLAGS="$xorg_testset_save_CFLAGS"
17893 fi
17894
17895 found="no"
17896
17897 if test $found = "no" ; then
17898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17900 fi
17901
17902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17904 fi
17905
17906 CFLAGS="$CFLAGS -Wtrigraphs"
17907
17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17909 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17910 cacheid=xorg_cv_cc_flag__Wtrigraphs
17911 if eval test \${$cacheid+y}
17912 then :
17913 printf %s "(cached) " >&6
17914 else $as_nop
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917 int i;
17918 int
17919 main (void)
17920 {
17921
17922 ;
17923 return 0;
17924 }
17925 _ACEOF
17926 if ac_fn_c_try_link "$LINENO"
17927 then :
17928 eval $cacheid=yes
17929 else $as_nop
17930 eval $cacheid=no
17931 fi
17932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17933 conftest$ac_exeext conftest.$ac_ext
17934 fi
17935
17936
17937 CFLAGS="$xorg_testset_save_CFLAGS"
17938
17939 eval supported=\$$cacheid
17940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17941 printf "%s\n" "$supported" >&6; }
17942 if test "$supported" = "yes" ; then
17943 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17944 found="yes"
17945 fi
17946 fi
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962 xorg_testset_save_CFLAGS="$CFLAGS"
17963
17964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17969 then :
17970 printf %s "(cached) " >&6
17971 else $as_nop
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974 int i;
17975 _ACEOF
17976 if ac_fn_c_try_compile "$LINENO"
17977 then :
17978 xorg_cv_cc_flag_unknown_warning_option=yes
17979 else $as_nop
17980 xorg_cv_cc_flag_unknown_warning_option=no
17981 fi
17982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17983 fi
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17987 CFLAGS="$xorg_testset_save_CFLAGS"
17988 fi
17989
17990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17993 fi
17994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17997 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18005 if ac_fn_c_try_compile "$LINENO"
18006 then :
18007 xorg_cv_cc_flag_unused_command_line_argument=yes
18008 else $as_nop
18009 xorg_cv_cc_flag_unused_command_line_argument=no
18010 fi
18011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18012 fi
18013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18016 CFLAGS="$xorg_testset_save_CFLAGS"
18017 fi
18018
18019 found="no"
18020
18021 if test $found = "no" ; then
18022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18024 fi
18025
18026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18028 fi
18029
18030 CFLAGS="$CFLAGS -Warray-bounds"
18031
18032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18033 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18034 cacheid=xorg_cv_cc_flag__Warray_bounds
18035 if eval test \${$cacheid+y}
18036 then :
18037 printf %s "(cached) " >&6
18038 else $as_nop
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18041 int i;
18042 int
18043 main (void)
18044 {
18045
18046 ;
18047 return 0;
18048 }
18049 _ACEOF
18050 if ac_fn_c_try_link "$LINENO"
18051 then :
18052 eval $cacheid=yes
18053 else $as_nop
18054 eval $cacheid=no
18055 fi
18056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18057 conftest$ac_exeext conftest.$ac_ext
18058 fi
18059
18060
18061 CFLAGS="$xorg_testset_save_CFLAGS"
18062
18063 eval supported=\$$cacheid
18064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18065 printf "%s\n" "$supported" >&6; }
18066 if test "$supported" = "yes" ; then
18067 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18068 found="yes"
18069 fi
18070 fi
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086 xorg_testset_save_CFLAGS="$CFLAGS"
18087
18088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18093 then :
18094 printf %s "(cached) " >&6
18095 else $as_nop
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18098 int i;
18099 _ACEOF
18100 if ac_fn_c_try_compile "$LINENO"
18101 then :
18102 xorg_cv_cc_flag_unknown_warning_option=yes
18103 else $as_nop
18104 xorg_cv_cc_flag_unknown_warning_option=no
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18107 fi
18108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18111 CFLAGS="$xorg_testset_save_CFLAGS"
18112 fi
18113
18114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18117 fi
18118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18121 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18129 if ac_fn_c_try_compile "$LINENO"
18130 then :
18131 xorg_cv_cc_flag_unused_command_line_argument=yes
18132 else $as_nop
18133 xorg_cv_cc_flag_unused_command_line_argument=no
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18136 fi
18137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18140 CFLAGS="$xorg_testset_save_CFLAGS"
18141 fi
18142
18143 found="no"
18144
18145 if test $found = "no" ; then
18146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18148 fi
18149
18150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18152 fi
18153
18154 CFLAGS="$CFLAGS -Wwrite-strings"
18155
18156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18157 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18158 cacheid=xorg_cv_cc_flag__Wwrite_strings
18159 if eval test \${$cacheid+y}
18160 then :
18161 printf %s "(cached) " >&6
18162 else $as_nop
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18165 int i;
18166 int
18167 main (void)
18168 {
18169
18170 ;
18171 return 0;
18172 }
18173 _ACEOF
18174 if ac_fn_c_try_link "$LINENO"
18175 then :
18176 eval $cacheid=yes
18177 else $as_nop
18178 eval $cacheid=no
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18181 conftest$ac_exeext conftest.$ac_ext
18182 fi
18183
18184
18185 CFLAGS="$xorg_testset_save_CFLAGS"
18186
18187 eval supported=\$$cacheid
18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18189 printf "%s\n" "$supported" >&6; }
18190 if test "$supported" = "yes" ; then
18191 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18192 found="yes"
18193 fi
18194 fi
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210 xorg_testset_save_CFLAGS="$CFLAGS"
18211
18212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18216 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18217 then :
18218 printf %s "(cached) " >&6
18219 else $as_nop
18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18222 int i;
18223 _ACEOF
18224 if ac_fn_c_try_compile "$LINENO"
18225 then :
18226 xorg_cv_cc_flag_unknown_warning_option=yes
18227 else $as_nop
18228 xorg_cv_cc_flag_unknown_warning_option=no
18229 fi
18230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18231 fi
18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18235 CFLAGS="$xorg_testset_save_CFLAGS"
18236 fi
18237
18238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18241 fi
18242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18245 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18253 if ac_fn_c_try_compile "$LINENO"
18254 then :
18255 xorg_cv_cc_flag_unused_command_line_argument=yes
18256 else $as_nop
18257 xorg_cv_cc_flag_unused_command_line_argument=no
18258 fi
18259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18260 fi
18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18264 CFLAGS="$xorg_testset_save_CFLAGS"
18265 fi
18266
18267 found="no"
18268
18269 if test $found = "no" ; then
18270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18272 fi
18273
18274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18276 fi
18277
18278 CFLAGS="$CFLAGS -Waddress"
18279
18280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18281 printf %s "checking if $CC supports -Waddress... " >&6; }
18282 cacheid=xorg_cv_cc_flag__Waddress
18283 if eval test \${$cacheid+y}
18284 then :
18285 printf %s "(cached) " >&6
18286 else $as_nop
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289 int i;
18290 int
18291 main (void)
18292 {
18293
18294 ;
18295 return 0;
18296 }
18297 _ACEOF
18298 if ac_fn_c_try_link "$LINENO"
18299 then :
18300 eval $cacheid=yes
18301 else $as_nop
18302 eval $cacheid=no
18303 fi
18304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18305 conftest$ac_exeext conftest.$ac_ext
18306 fi
18307
18308
18309 CFLAGS="$xorg_testset_save_CFLAGS"
18310
18311 eval supported=\$$cacheid
18312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18313 printf "%s\n" "$supported" >&6; }
18314 if test "$supported" = "yes" ; then
18315 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18316 found="yes"
18317 fi
18318 fi
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334 xorg_testset_save_CFLAGS="$CFLAGS"
18335
18336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18340 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18341 then :
18342 printf %s "(cached) " >&6
18343 else $as_nop
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346 int i;
18347 _ACEOF
18348 if ac_fn_c_try_compile "$LINENO"
18349 then :
18350 xorg_cv_cc_flag_unknown_warning_option=yes
18351 else $as_nop
18352 xorg_cv_cc_flag_unknown_warning_option=no
18353 fi
18354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18355 fi
18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18359 CFLAGS="$xorg_testset_save_CFLAGS"
18360 fi
18361
18362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18365 fi
18366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18369 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18377 if ac_fn_c_try_compile "$LINENO"
18378 then :
18379 xorg_cv_cc_flag_unused_command_line_argument=yes
18380 else $as_nop
18381 xorg_cv_cc_flag_unused_command_line_argument=no
18382 fi
18383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18384 fi
18385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18388 CFLAGS="$xorg_testset_save_CFLAGS"
18389 fi
18390
18391 found="no"
18392
18393 if test $found = "no" ; then
18394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18396 fi
18397
18398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18400 fi
18401
18402 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18403
18404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18405 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18406 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18407 if eval test \${$cacheid+y}
18408 then :
18409 printf %s "(cached) " >&6
18410 else $as_nop
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18413 int i;
18414 int
18415 main (void)
18416 {
18417
18418 ;
18419 return 0;
18420 }
18421 _ACEOF
18422 if ac_fn_c_try_link "$LINENO"
18423 then :
18424 eval $cacheid=yes
18425 else $as_nop
18426 eval $cacheid=no
18427 fi
18428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18429 conftest$ac_exeext conftest.$ac_ext
18430 fi
18431
18432
18433 CFLAGS="$xorg_testset_save_CFLAGS"
18434
18435 eval supported=\$$cacheid
18436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18437 printf "%s\n" "$supported" >&6; }
18438 if test "$supported" = "yes" ; then
18439 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18440 found="yes"
18441 fi
18442 fi
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458 xorg_testset_save_CFLAGS="$CFLAGS"
18459
18460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18464 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18465 then :
18466 printf %s "(cached) " >&6
18467 else $as_nop
18468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469 /* end confdefs.h. */
18470 int i;
18471 _ACEOF
18472 if ac_fn_c_try_compile "$LINENO"
18473 then :
18474 xorg_cv_cc_flag_unknown_warning_option=yes
18475 else $as_nop
18476 xorg_cv_cc_flag_unknown_warning_option=no
18477 fi
18478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18479 fi
18480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18481 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18483 CFLAGS="$xorg_testset_save_CFLAGS"
18484 fi
18485
18486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18489 fi
18490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18492 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18493 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18501 if ac_fn_c_try_compile "$LINENO"
18502 then :
18503 xorg_cv_cc_flag_unused_command_line_argument=yes
18504 else $as_nop
18505 xorg_cv_cc_flag_unused_command_line_argument=no
18506 fi
18507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18508 fi
18509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18512 CFLAGS="$xorg_testset_save_CFLAGS"
18513 fi
18514
18515 found="no"
18516
18517 if test $found = "no" ; then
18518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18520 fi
18521
18522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18524 fi
18525
18526 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18527
18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18529 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18530 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18531 if eval test \${$cacheid+y}
18532 then :
18533 printf %s "(cached) " >&6
18534 else $as_nop
18535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h. */
18537 int i;
18538 int
18539 main (void)
18540 {
18541
18542 ;
18543 return 0;
18544 }
18545 _ACEOF
18546 if ac_fn_c_try_link "$LINENO"
18547 then :
18548 eval $cacheid=yes
18549 else $as_nop
18550 eval $cacheid=no
18551 fi
18552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18553 conftest$ac_exeext conftest.$ac_ext
18554 fi
18555
18556
18557 CFLAGS="$xorg_testset_save_CFLAGS"
18558
18559 eval supported=\$$cacheid
18560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18561 printf "%s\n" "$supported" >&6; }
18562 if test "$supported" = "yes" ; then
18563 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18564 found="yes"
18565 fi
18566 fi
18567
18568
18569 fi
18570
18571
18572
18573
18574
18575
18576
18577 CWARNFLAGS="$BASE_CFLAGS"
18578 if test "x$GCC" = xyes ; then
18579 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18580 fi
18581
18582
18583
18584
18585
18586
18587
18588
18589 # Check whether --enable-strict-compilation was given.
18590 if test ${enable_strict_compilation+y}
18591 then :
18592 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18593 else $as_nop
18594 STRICT_COMPILE=no
18595 fi
18596
18597
18598
18599
18600
18601
18602 STRICT_CFLAGS=""
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616 xorg_testset_save_CFLAGS="$CFLAGS"
18617
18618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18622 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18623 then :
18624 printf %s "(cached) " >&6
18625 else $as_nop
18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18628 int i;
18629 _ACEOF
18630 if ac_fn_c_try_compile "$LINENO"
18631 then :
18632 xorg_cv_cc_flag_unknown_warning_option=yes
18633 else $as_nop
18634 xorg_cv_cc_flag_unknown_warning_option=no
18635 fi
18636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18637 fi
18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18641 CFLAGS="$xorg_testset_save_CFLAGS"
18642 fi
18643
18644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18647 fi
18648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18651 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18659 if ac_fn_c_try_compile "$LINENO"
18660 then :
18661 xorg_cv_cc_flag_unused_command_line_argument=yes
18662 else $as_nop
18663 xorg_cv_cc_flag_unused_command_line_argument=no
18664 fi
18665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18666 fi
18667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18670 CFLAGS="$xorg_testset_save_CFLAGS"
18671 fi
18672
18673 found="no"
18674
18675 if test $found = "no" ; then
18676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18678 fi
18679
18680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18682 fi
18683
18684 CFLAGS="$CFLAGS -pedantic"
18685
18686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18687 printf %s "checking if $CC supports -pedantic... " >&6; }
18688 cacheid=xorg_cv_cc_flag__pedantic
18689 if eval test \${$cacheid+y}
18690 then :
18691 printf %s "(cached) " >&6
18692 else $as_nop
18693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694 /* end confdefs.h. */
18695 int i;
18696 int
18697 main (void)
18698 {
18699
18700 ;
18701 return 0;
18702 }
18703 _ACEOF
18704 if ac_fn_c_try_link "$LINENO"
18705 then :
18706 eval $cacheid=yes
18707 else $as_nop
18708 eval $cacheid=no
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18711 conftest$ac_exeext conftest.$ac_ext
18712 fi
18713
18714
18715 CFLAGS="$xorg_testset_save_CFLAGS"
18716
18717 eval supported=\$$cacheid
18718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18719 printf "%s\n" "$supported" >&6; }
18720 if test "$supported" = "yes" ; then
18721 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18722 found="yes"
18723 fi
18724 fi
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740 xorg_testset_save_CFLAGS="$CFLAGS"
18741
18742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18747 then :
18748 printf %s "(cached) " >&6
18749 else $as_nop
18750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h. */
18752 int i;
18753 _ACEOF
18754 if ac_fn_c_try_compile "$LINENO"
18755 then :
18756 xorg_cv_cc_flag_unknown_warning_option=yes
18757 else $as_nop
18758 xorg_cv_cc_flag_unknown_warning_option=no
18759 fi
18760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18761 fi
18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18765 CFLAGS="$xorg_testset_save_CFLAGS"
18766 fi
18767
18768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18771 fi
18772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18775 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18783 if ac_fn_c_try_compile "$LINENO"
18784 then :
18785 xorg_cv_cc_flag_unused_command_line_argument=yes
18786 else $as_nop
18787 xorg_cv_cc_flag_unused_command_line_argument=no
18788 fi
18789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18790 fi
18791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18794 CFLAGS="$xorg_testset_save_CFLAGS"
18795 fi
18796
18797 found="no"
18798
18799 if test $found = "no" ; then
18800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18802 fi
18803
18804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18806 fi
18807
18808 CFLAGS="$CFLAGS -Werror"
18809
18810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18811 printf %s "checking if $CC supports -Werror... " >&6; }
18812 cacheid=xorg_cv_cc_flag__Werror
18813 if eval test \${$cacheid+y}
18814 then :
18815 printf %s "(cached) " >&6
18816 else $as_nop
18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18819 int i;
18820 int
18821 main (void)
18822 {
18823
18824 ;
18825 return 0;
18826 }
18827 _ACEOF
18828 if ac_fn_c_try_link "$LINENO"
18829 then :
18830 eval $cacheid=yes
18831 else $as_nop
18832 eval $cacheid=no
18833 fi
18834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18835 conftest$ac_exeext conftest.$ac_ext
18836 fi
18837
18838
18839 CFLAGS="$xorg_testset_save_CFLAGS"
18840
18841 eval supported=\$$cacheid
18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18843 printf "%s\n" "$supported" >&6; }
18844 if test "$supported" = "yes" ; then
18845 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18846 found="yes"
18847 fi
18848 fi
18849
18850 if test $found = "no" ; then
18851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18853 fi
18854
18855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18857 fi
18858
18859 CFLAGS="$CFLAGS -errwarn"
18860
18861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18862 printf %s "checking if $CC supports -errwarn... " >&6; }
18863 cacheid=xorg_cv_cc_flag__errwarn
18864 if eval test \${$cacheid+y}
18865 then :
18866 printf %s "(cached) " >&6
18867 else $as_nop
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h. */
18870 int i;
18871 int
18872 main (void)
18873 {
18874
18875 ;
18876 return 0;
18877 }
18878 _ACEOF
18879 if ac_fn_c_try_link "$LINENO"
18880 then :
18881 eval $cacheid=yes
18882 else $as_nop
18883 eval $cacheid=no
18884 fi
18885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18886 conftest$ac_exeext conftest.$ac_ext
18887 fi
18888
18889
18890 CFLAGS="$xorg_testset_save_CFLAGS"
18891
18892 eval supported=\$$cacheid
18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18894 printf "%s\n" "$supported" >&6; }
18895 if test "$supported" = "yes" ; then
18896 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18897 found="yes"
18898 fi
18899 fi
18900
18901
18902
18903 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18904 # activate it with -Werror, so we add it here explicitly.
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918 xorg_testset_save_CFLAGS="$CFLAGS"
18919
18920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18924 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18925 then :
18926 printf %s "(cached) " >&6
18927 else $as_nop
18928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929 /* end confdefs.h. */
18930 int i;
18931 _ACEOF
18932 if ac_fn_c_try_compile "$LINENO"
18933 then :
18934 xorg_cv_cc_flag_unknown_warning_option=yes
18935 else $as_nop
18936 xorg_cv_cc_flag_unknown_warning_option=no
18937 fi
18938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18939 fi
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18943 CFLAGS="$xorg_testset_save_CFLAGS"
18944 fi
18945
18946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18949 fi
18950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18953 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
18961 if ac_fn_c_try_compile "$LINENO"
18962 then :
18963 xorg_cv_cc_flag_unused_command_line_argument=yes
18964 else $as_nop
18965 xorg_cv_cc_flag_unused_command_line_argument=no
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18968 fi
18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18970 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18972 CFLAGS="$xorg_testset_save_CFLAGS"
18973 fi
18974
18975 found="no"
18976
18977 if test $found = "no" ; then
18978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18980 fi
18981
18982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18984 fi
18985
18986 CFLAGS="$CFLAGS -Werror=attributes"
18987
18988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18989 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18990 cacheid=xorg_cv_cc_flag__Werror_attributes
18991 if eval test \${$cacheid+y}
18992 then :
18993 printf %s "(cached) " >&6
18994 else $as_nop
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18997 int i;
18998 int
18999 main (void)
19000 {
19001
19002 ;
19003 return 0;
19004 }
19005 _ACEOF
19006 if ac_fn_c_try_link "$LINENO"
19007 then :
19008 eval $cacheid=yes
19009 else $as_nop
19010 eval $cacheid=no
19011 fi
19012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19013 conftest$ac_exeext conftest.$ac_ext
19014 fi
19015
19016
19017 CFLAGS="$xorg_testset_save_CFLAGS"
19018
19019 eval supported=\$$cacheid
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19021 printf "%s\n" "$supported" >&6; }
19022 if test "$supported" = "yes" ; then
19023 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19024 found="yes"
19025 fi
19026 fi
19027
19028
19029
19030 if test "x$STRICT_COMPILE" = "xyes"; then
19031 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19032 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19033 fi
19034
19035
19036
19037
19038
19039
19040
19041
19042 cat >>confdefs.h <<_ACEOF
19043 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19044 _ACEOF
19045
19046 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19047 if test "x$PVM" = "x"; then
19048 PVM="0"
19049 fi
19050
19051 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19052
19053 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19054 if test "x$PVP" = "x"; then
19055 PVP="0"
19056 fi
19057
19058 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19059
19060
19061
19062 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19063 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19064 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19065 touch \$(top_srcdir)/ChangeLog; \
19066 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19067
19068
19069
19070
19071 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19072 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19073 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19074 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19075 touch \$(top_srcdir)/INSTALL; \
19076 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19077
19078
19079
19080
19081
19082
19083 case $host_os in
19084 solaris*)
19085 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19086 # check for a man page file found in later versions that use
19087 # traditional section numbers instead
19088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19089 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19090 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19091 then :
19092 printf %s "(cached) " >&6
19093 else $as_nop
19094 test "$cross_compiling" = yes &&
19095 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19096 if test -r "/usr/share/man/man7/attributes.7"; then
19097 ac_cv_file__usr_share_man_man7_attributes_7=yes
19098 else
19099 ac_cv_file__usr_share_man_man7_attributes_7=no
19100 fi
19101 fi
19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19103 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19104 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19105 then :
19106 SYSV_MAN_SECTIONS=false
19107 else $as_nop
19108 SYSV_MAN_SECTIONS=true
19109 fi
19110
19111 ;;
19112 *) SYSV_MAN_SECTIONS=false ;;
19113 esac
19114
19115 if test x$APP_MAN_SUFFIX = x ; then
19116 APP_MAN_SUFFIX=1
19117 fi
19118 if test x$APP_MAN_DIR = x ; then
19119 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19120 fi
19121
19122 if test x$LIB_MAN_SUFFIX = x ; then
19123 LIB_MAN_SUFFIX=3
19124 fi
19125 if test x$LIB_MAN_DIR = x ; then
19126 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19127 fi
19128
19129 if test x$FILE_MAN_SUFFIX = x ; then
19130 case $SYSV_MAN_SECTIONS in
19131 true) FILE_MAN_SUFFIX=4 ;;
19132 *) FILE_MAN_SUFFIX=5 ;;
19133 esac
19134 fi
19135 if test x$FILE_MAN_DIR = x ; then
19136 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19137 fi
19138
19139 if test x$MISC_MAN_SUFFIX = x ; then
19140 case $SYSV_MAN_SECTIONS in
19141 true) MISC_MAN_SUFFIX=5 ;;
19142 *) MISC_MAN_SUFFIX=7 ;;
19143 esac
19144 fi
19145 if test x$MISC_MAN_DIR = x ; then
19146 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19147 fi
19148
19149 if test x$DRIVER_MAN_SUFFIX = x ; then
19150 case $SYSV_MAN_SECTIONS in
19151 true) DRIVER_MAN_SUFFIX=7 ;;
19152 *) DRIVER_MAN_SUFFIX=4 ;;
19153 esac
19154 fi
19155 if test x$DRIVER_MAN_DIR = x ; then
19156 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19157 fi
19158
19159 if test x$ADMIN_MAN_SUFFIX = x ; then
19160 case $SYSV_MAN_SECTIONS in
19161 true) ADMIN_MAN_SUFFIX=1m ;;
19162 *) ADMIN_MAN_SUFFIX=8 ;;
19163 esac
19164 fi
19165 if test x$ADMIN_MAN_DIR = x ; then
19166 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19167 fi
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183 XORG_MAN_PAGE="X Version 11"
19184
19185 MAN_SUBSTS="\
19186 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19187 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19188 -e 's|__xservername__|Xorg|g' \
19189 -e 's|__xconfigfile__|xorg.conf|g' \
19190 -e 's|__projectroot__|\$(prefix)|g' \
19191 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19192 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19193 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19194 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19195 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19196 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19197 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19198
19199
19200
19201 # Check whether --enable-silent-rules was given.
19202 if test ${enable_silent_rules+y}
19203 then :
19204 enableval=$enable_silent_rules;
19205 fi
19206
19207 case $enable_silent_rules in # (((
19208 yes) AM_DEFAULT_VERBOSITY=0;;
19209 no) AM_DEFAULT_VERBOSITY=1;;
19210 *) AM_DEFAULT_VERBOSITY=0;;
19211 esac
19212 am_make=${MAKE-make}
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19214 printf %s "checking whether $am_make supports nested variables... " >&6; }
19215 if test ${am_cv_make_support_nested_variables+y}
19216 then :
19217 printf %s "(cached) " >&6
19218 else $as_nop
19219 if printf "%s\n" 'TRUE=$(BAR$(V))
19220 BAR0=false
19221 BAR1=true
19222 V=1
19223 am__doit:
19224 @$(TRUE)
19225 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19226 am_cv_make_support_nested_variables=yes
19227 else
19228 am_cv_make_support_nested_variables=no
19229 fi
19230 fi
19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19232 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19233 if test $am_cv_make_support_nested_variables = yes; then
19234 AM_V='$(V)'
19235 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19236 else
19237 AM_V=$AM_DEFAULT_VERBOSITY
19238 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19239 fi
19240 AM_BACKSLASH='\'
19241
19242
19243
19244
19245 # Checks for library functions
19246 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19247 if test "x$ac_cv_func_strlcat" = xyes
19248 then :
19249 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
19250
19251 fi
19252
19253 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19254 if test "x$ac_cv_func_fork" = xyes
19255 then :
19256
19257 else $as_nop
19258 printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h
19259
19260 fi
19261
19262
19263 # Obtain compiler/linker options for dependencies
19264
19265 pkg_failed=no
19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
19267 printf %s "checking for XPM... " >&6; }
19268
19269 if test -n "$XPM_CFLAGS"; then
19270 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
19271 elif test -n "$PKG_CONFIG"; then
19272 if test -n "$PKG_CONFIG" && \
19273 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
19274 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
19275 ac_status=$?
19276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19277 test $ac_status = 0; }; then
19278 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
19279 test "x$?" != "x0" && pkg_failed=yes
19280 else
19281 pkg_failed=yes
19282 fi
19283 else
19284 pkg_failed=untried
19285 fi
19286 if test -n "$XPM_LIBS"; then
19287 pkg_cv_XPM_LIBS="$XPM_LIBS"
19288 elif test -n "$PKG_CONFIG"; then
19289 if test -n "$PKG_CONFIG" && \
19290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
19291 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
19292 ac_status=$?
19293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19294 test $ac_status = 0; }; then
19295 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
19296 test "x$?" != "x0" && pkg_failed=yes
19297 else
19298 pkg_failed=yes
19299 fi
19300 else
19301 pkg_failed=untried
19302 fi
19303
19304
19305
19306 if test $pkg_failed = yes; then
19307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308 printf "%s\n" "no" >&6; }
19309
19310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19311 _pkg_short_errors_supported=yes
19312 else
19313 _pkg_short_errors_supported=no
19314 fi
19315 if test $_pkg_short_errors_supported = yes; then
19316 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11" 2>&1`
19317 else
19318 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11" 2>&1`
19319 fi
19320 # Put the nasty error message in config.log where it belongs
19321 echo "$XPM_PKG_ERRORS" >&5
19322
19323 as_fn_error $? "Package requirements (xproto x11) were not met:
19324
19325 $XPM_PKG_ERRORS
19326
19327 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19328 installed software in a non-standard prefix.
19329
19330 Alternatively, you may set the environment variables XPM_CFLAGS
19331 and XPM_LIBS to avoid the need to call pkg-config.
19332 See the pkg-config man page for more details." "$LINENO" 5
19333 elif test $pkg_failed = untried; then
19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335 printf "%s\n" "no" >&6; }
19336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19337 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19338 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19339 is in your PATH or set the PKG_CONFIG environment variable to the full
19340 path to pkg-config.
19341
19342 Alternatively, you may set the environment variables XPM_CFLAGS
19343 and XPM_LIBS to avoid the need to call pkg-config.
19344 See the pkg-config man page for more details.
19345
19346 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19347 See \`config.log' for more details" "$LINENO" 5; }
19348 else
19349 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
19350 XPM_LIBS=$pkg_cv_XPM_LIBS
19351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19352 printf "%s\n" "yes" >&6; }
19353
19354 fi
19355
19356 pkg_failed=no
19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5
19358 printf %s "checking for SXPM... " >&6; }
19359
19360 if test -n "$SXPM_CFLAGS"; then
19361 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
19362 elif test -n "$PKG_CONFIG"; then
19363 if test -n "$PKG_CONFIG" && \
19364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
19365 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
19366 ac_status=$?
19367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19368 test $ac_status = 0; }; then
19369 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
19370 test "x$?" != "x0" && pkg_failed=yes
19371 else
19372 pkg_failed=yes
19373 fi
19374 else
19375 pkg_failed=untried
19376 fi
19377 if test -n "$SXPM_LIBS"; then
19378 pkg_cv_SXPM_LIBS="$SXPM_LIBS"
19379 elif test -n "$PKG_CONFIG"; then
19380 if test -n "$PKG_CONFIG" && \
19381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
19382 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
19383 ac_status=$?
19384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19385 test $ac_status = 0; }; then
19386 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
19387 test "x$?" != "x0" && pkg_failed=yes
19388 else
19389 pkg_failed=yes
19390 fi
19391 else
19392 pkg_failed=untried
19393 fi
19394
19395
19396
19397 if test $pkg_failed = yes; then
19398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399 printf "%s\n" "no" >&6; }
19400
19401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19402 _pkg_short_errors_supported=yes
19403 else
19404 _pkg_short_errors_supported=no
19405 fi
19406 if test $_pkg_short_errors_supported = yes; then
19407 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
19408 else
19409 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
19410 fi
19411 # Put the nasty error message in config.log where it belongs
19412 echo "$SXPM_PKG_ERRORS" >&5
19413
19414 build_sxpm=false
19415 elif test $pkg_failed = untried; then
19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19417 printf "%s\n" "no" >&6; }
19418 build_sxpm=false
19419 else
19420 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
19421 SXPM_LIBS=$pkg_cv_SXPM_LIBS
19422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19423 printf "%s\n" "yes" >&6; }
19424 build_sxpm=true
19425 fi
19426 if test x$build_sxpm = xtrue; then
19427 BUILD_SXPM_TRUE=
19428 BUILD_SXPM_FALSE='#'
19429 else
19430 BUILD_SXPM_TRUE='#'
19431 BUILD_SXPM_FALSE=
19432 fi
19433
19434
19435 # Internationalization & localization support
19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
19437 printf %s "checking for library containing gettext... " >&6; }
19438 if test ${ac_cv_search_gettext+y}
19439 then :
19440 printf %s "(cached) " >&6
19441 else $as_nop
19442 ac_func_search_save_LIBS=$LIBS
19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19445
19446 /* Override any GCC internal prototype to avoid an error.
19447 Use char because int might match the return type of a GCC
19448 builtin and then its argument prototype would still apply. */
19449 char gettext ();
19450 int
19451 main (void)
19452 {
19453 return gettext ();
19454 ;
19455 return 0;
19456 }
19457 _ACEOF
19458 for ac_lib in '' intl
19459 do
19460 if test -z "$ac_lib"; then
19461 ac_res="none required"
19462 else
19463 ac_res=-l$ac_lib
19464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19465 fi
19466 if ac_fn_c_try_link "$LINENO"
19467 then :
19468 ac_cv_search_gettext=$ac_res
19469 fi
19470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19471 conftest$ac_exeext
19472 if test ${ac_cv_search_gettext+y}
19473 then :
19474 break
19475 fi
19476 done
19477 if test ${ac_cv_search_gettext+y}
19478 then :
19479
19480 else $as_nop
19481 ac_cv_search_gettext=no
19482 fi
19483 rm conftest.$ac_ext
19484 LIBS=$ac_func_search_save_LIBS
19485 fi
19486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
19487 printf "%s\n" "$ac_cv_search_gettext" >&6; }
19488 ac_res=$ac_cv_search_gettext
19489 if test "$ac_res" != no
19490 then :
19491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19492 USE_GETTEXT="yes"
19493 else $as_nop
19494 USE_GETTEXT="no"
19495 fi
19496
19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
19498 printf %s "checking where to install localized messages... " >&6; }
19499
19500 # Check whether --with-localedir was given.
19501 if test ${with_localedir+y}
19502 then :
19503 withval=$with_localedir; LOCALEDIR=${withval}
19504 else $as_nop
19505 LOCALEDIR=${datadir}/locale
19506 fi
19507
19508
19509 prefix_NONE=
19510 exec_prefix_NONE=
19511 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19512 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19513 eval ax_define_dir="\"$LOCALEDIR\""
19514 eval ax_define_dir="\"$ax_define_dir\""
19515 LOCALEDIR="$ax_define_dir"
19516
19517
19518 printf "%s\n" "#define LOCALEDIR \"$ax_define_dir\"" >>confdefs.h
19519
19520 test "$prefix_NONE" && prefix=NONE
19521 test "$exec_prefix_NONE" && exec_prefix=NONE
19522
19523 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
19525 printf "%s\n" "nowhere" >&6; }
19526 USE_GETTEXT="no"
19527 else
19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
19529 printf "%s\n" "$LOCALEDIR" >&6; }
19530 fi
19531
19532 if test "x$USE_GETTEXT" = "xyes" ; then
19533
19534 printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
19535
19536 fi
19537 if test "x$USE_GETTEXT" = "xyes"; then
19538 USE_GETTEXT_TRUE=
19539 USE_GETTEXT_FALSE='#'
19540 else
19541 USE_GETTEXT_TRUE='#'
19542 USE_GETTEXT_FALSE=
19543 fi
19544
19545
19546
19547 # Optional feature: When a filename ending in .Z or .gz is requested,
19548 # open a pipe to a newly forked compress/uncompress/gzip command to
19549 # handle it.
19550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to handle compressed pixmaps" >&5
19551 printf %s "checking whether to handle compressed pixmaps... " >&6; }
19552 case $host_os in
19553 *mingw*) zpipe_default="no" ;;
19554 *) zpipe_default="yes" ;;
19555 esac
19556 # Check whether --enable-open-zfile was given.
19557 if test ${enable_open_zfile+y}
19558 then :
19559 enableval=$enable_open_zfile; OPEN_ZFILE=$enableval
19560 else $as_nop
19561 OPEN_ZFILE=yes
19562 fi
19563
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPEN_ZFILE" >&5
19565 printf "%s\n" "$OPEN_ZFILE" >&6; }
19566 if test "x$OPEN_ZFILE" = "xyes"; then
19567 COMPRESSED_PIXMAPS_TRUE=
19568 COMPRESSED_PIXMAPS_FALSE='#'
19569 else
19570 COMPRESSED_PIXMAPS_TRUE='#'
19571 COMPRESSED_PIXMAPS_FALSE=
19572 fi
19573
19574 if test x$OPEN_ZFILE = xno ; then
19575
19576 printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h
19577
19578 else
19579 # gzip is absolutely required for the compressed file handling code
19580
19581 # Extract the first word of "gzip", so it can be a program name with args.
19582 set dummy gzip; ac_word=$2
19583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19584 printf %s "checking for $ac_word... " >&6; }
19585 if test ${ac_cv_path_XPM_PATH_GZIP+y}
19586 then :
19587 printf %s "(cached) " >&6
19588 else $as_nop
19589 case $XPM_PATH_GZIP in
19590 [\\/]* | ?:[\\/]*)
19591 ac_cv_path_XPM_PATH_GZIP="$XPM_PATH_GZIP" # Let the user override the test with a path.
19592 ;;
19593 *)
19594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19595 for as_dir in $PATH
19596 do
19597 IFS=$as_save_IFS
19598 case $as_dir in #(((
19599 '') as_dir=./ ;;
19600 */) ;;
19601 *) as_dir=$as_dir/ ;;
19602 esac
19603 for ac_exec_ext in '' $ac_executable_extensions; do
19604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19605 ac_cv_path_XPM_PATH_GZIP="$as_dir$ac_word$ac_exec_ext"
19606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19607 break 2
19608 fi
19609 done
19610 done
19611 IFS=$as_save_IFS
19612
19613 ;;
19614 esac
19615 fi
19616 XPM_PATH_GZIP=$ac_cv_path_XPM_PATH_GZIP
19617 if test -n "$XPM_PATH_GZIP"; then
19618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_GZIP" >&5
19619 printf "%s\n" "$XPM_PATH_GZIP" >&6; }
19620 else
19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19622 printf "%s\n" "no" >&6; }
19623 fi
19624
19625
19626 if test "x$XPM_PATH_GZIP" = "x"
19627 then :
19628 as_fn_error $? "gzip not found, set XPM_PATH_GZIP or use --disable-open-zfile" "$LINENO" 5
19629 else $as_nop
19630
19631 printf "%s\n" "#define XPM_PATH_GZIP \"$XPM_PATH_GZIP\"" >>confdefs.h
19632
19633 fi
19634
19635
19636 # if compress is not found, we disable writing to .Z files,
19637 # but leave the rest of the compression code active
19638
19639 # Extract the first word of "compress", so it can be a program name with args.
19640 set dummy compress; ac_word=$2
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19642 printf %s "checking for $ac_word... " >&6; }
19643 if test ${ac_cv_path_XPM_PATH_COMPRESS+y}
19644 then :
19645 printf %s "(cached) " >&6
19646 else $as_nop
19647 case $XPM_PATH_COMPRESS in
19648 [\\/]* | ?:[\\/]*)
19649 ac_cv_path_XPM_PATH_COMPRESS="$XPM_PATH_COMPRESS" # Let the user override the test with a path.
19650 ;;
19651 *)
19652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19653 for as_dir in $PATH
19654 do
19655 IFS=$as_save_IFS
19656 case $as_dir in #(((
19657 '') as_dir=./ ;;
19658 */) ;;
19659 *) as_dir=$as_dir/ ;;
19660 esac
19661 for ac_exec_ext in '' $ac_executable_extensions; do
19662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19663 ac_cv_path_XPM_PATH_COMPRESS="$as_dir$ac_word$ac_exec_ext"
19664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19665 break 2
19666 fi
19667 done
19668 done
19669 IFS=$as_save_IFS
19670
19671 ;;
19672 esac
19673 fi
19674 XPM_PATH_COMPRESS=$ac_cv_path_XPM_PATH_COMPRESS
19675 if test -n "$XPM_PATH_COMPRESS"; then
19676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_COMPRESS" >&5
19677 printf "%s\n" "$XPM_PATH_COMPRESS" >&6; }
19678 else
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19680 printf "%s\n" "no" >&6; }
19681 fi
19682
19683
19684 if test "x$XPM_PATH_COMPRESS" = "x"
19685 then :
19686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compress not found, disabling writing of .Z files" >&5
19687 printf "%s\n" "$as_me: WARNING: compress not found, disabling writing of .Z files" >&2;}
19688 else $as_nop
19689
19690 printf "%s\n" "#define XPM_PATH_COMPRESS \"$XPM_PATH_COMPRESS\"" >>confdefs.h
19691
19692 fi
19693
19694 # if uncompress is not found, we use gzip to read .Z files
19695
19696 # Extract the first word of "uncompress", so it can be a program name with args.
19697 set dummy uncompress; ac_word=$2
19698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19699 printf %s "checking for $ac_word... " >&6; }
19700 if test ${ac_cv_path_XPM_PATH_UNCOMPRESS+y}
19701 then :
19702 printf %s "(cached) " >&6
19703 else $as_nop
19704 case $XPM_PATH_UNCOMPRESS in
19705 [\\/]* | ?:[\\/]*)
19706 ac_cv_path_XPM_PATH_UNCOMPRESS="$XPM_PATH_UNCOMPRESS" # Let the user override the test with a path.
19707 ;;
19708 *)
19709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710 for as_dir in $PATH
19711 do
19712 IFS=$as_save_IFS
19713 case $as_dir in #(((
19714 '') as_dir=./ ;;
19715 */) ;;
19716 *) as_dir=$as_dir/ ;;
19717 esac
19718 for ac_exec_ext in '' $ac_executable_extensions; do
19719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19720 ac_cv_path_XPM_PATH_UNCOMPRESS="$as_dir$ac_word$ac_exec_ext"
19721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19722 break 2
19723 fi
19724 done
19725 done
19726 IFS=$as_save_IFS
19727
19728 ;;
19729 esac
19730 fi
19731 XPM_PATH_UNCOMPRESS=$ac_cv_path_XPM_PATH_UNCOMPRESS
19732 if test -n "$XPM_PATH_UNCOMPRESS"; then
19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_UNCOMPRESS" >&5
19734 printf "%s\n" "$XPM_PATH_UNCOMPRESS" >&6; }
19735 else
19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19737 printf "%s\n" "no" >&6; }
19738 fi
19739
19740
19741 if test "x$XPM_PATH_UNCOMPRESS" = "x"
19742 then :
19743
19744 else $as_nop
19745
19746 printf "%s\n" "#define XPM_PATH_UNCOMPRESS \"$XPM_PATH_UNCOMPRESS\"" >>confdefs.h
19747
19748 fi
19749
19750
19751
19752 for ac_func in closefrom close_range
19753 do :
19754 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19756 if eval test \"x\$"$as_ac_var"\" = x"yes"
19757 then :
19758 cat >>confdefs.h <<_ACEOF
19759 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19760 _ACEOF
19761 break
19762 fi
19763
19764 done
19765 fi
19766
19767 # Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
19768 # Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
19769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to search for compressed pixmaps" >&5
19770 printf %s "checking whether to search for compressed pixmaps... " >&6; }
19771 # Check whether --enable-stat-zfile was given.
19772 if test ${enable_stat_zfile+y}
19773 then :
19774 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
19775 else $as_nop
19776 STAT_ZFILE=$OPEN_ZFILE
19777 fi
19778
19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STAT_ZFILE" >&5
19780 printf "%s\n" "$STAT_ZFILE" >&6; }
19781 if test x$STAT_ZFILE = xyes ; then
19782
19783 printf "%s\n" "#define STAT_ZFILE 1" >>confdefs.h
19784
19785 fi
19786
19787 # --enable-unit-tests
19788
19789
19790
19791
19792
19793
19794
19795 # Check for different types of support on different platforms
19796 case $host_os in
19797 solaris*)
19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
19799 printf %s "checking for umem_alloc in -lumem... " >&6; }
19800 if test ${ac_cv_lib_umem_umem_alloc+y}
19801 then :
19802 printf %s "(cached) " >&6
19803 else $as_nop
19804 ac_check_lib_save_LIBS=$LIBS
19805 LIBS="-lumem $LIBS"
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808
19809 /* Override any GCC internal prototype to avoid an error.
19810 Use char because int might match the return type of a GCC
19811 builtin and then its argument prototype would still apply. */
19812 char umem_alloc ();
19813 int
19814 main (void)
19815 {
19816 return umem_alloc ();
19817 ;
19818 return 0;
19819 }
19820 _ACEOF
19821 if ac_fn_c_try_link "$LINENO"
19822 then :
19823 ac_cv_lib_umem_umem_alloc=yes
19824 else $as_nop
19825 ac_cv_lib_umem_umem_alloc=no
19826 fi
19827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19828 conftest$ac_exeext conftest.$ac_ext
19829 LIBS=$ac_check_lib_save_LIBS
19830 fi
19831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
19832 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
19833 if test "x$ac_cv_lib_umem_umem_alloc" = xyes
19834 then :
19835 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
19836 fi
19837
19838 ;;
19839 *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
19840 # both directly and inverted, so should not be 0 or 255.
19841 malloc_debug_env='MALLOC_PERTURB_=15'
19842 ;;
19843 darwin*)
19844 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
19845 ;;
19846 *bsd*)
19847 malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
19848 ;;
19849 esac
19850
19851 # User supplied flags override default flags
19852 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
19853 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
19854 fi
19855
19856 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
19857
19858
19859
19860
19861
19862
19863
19864 # Check whether --enable-unit-tests was given.
19865 if test ${enable_unit_tests+y}
19866 then :
19867 enableval=$enable_unit_tests; enable_unit_tests=$enableval
19868 else $as_nop
19869 enable_unit_tests=auto
19870 fi
19871
19872
19873 if test "x$enable_unit_tests" != xno; then
19874 ENABLE_UNIT_TESTS_TRUE=
19875 ENABLE_UNIT_TESTS_FALSE='#'
19876 else
19877 ENABLE_UNIT_TESTS_TRUE='#'
19878 ENABLE_UNIT_TESTS_FALSE=
19879 fi
19880
19881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
19882 printf %s "checking whether to build unit test cases... " >&6; }
19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
19884 printf "%s\n" "$enable_unit_tests" >&6; }
19885
19886
19887
19888
19889
19890 # Check whether --with-glib was given.
19891 if test ${with_glib+y}
19892 then :
19893 withval=$with_glib; with_glib=$withval
19894 else $as_nop
19895 with_glib=auto
19896 fi
19897
19898
19899
19900 have_glib=no
19901 # Do not probe GLib if user explicitly disabled unit testing
19902 if test "x$enable_unit_tests" != x"no"; then
19903 # Do not probe GLib if user explicitly disabled it
19904 if test "x$with_glib" != x"no"; then
19905
19906 pkg_failed=no
19907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19908 printf %s "checking for GLIB... " >&6; }
19909
19910 if test -n "$GLIB_CFLAGS"; then
19911 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19912 elif test -n "$PKG_CONFIG"; then
19913 if test -n "$PKG_CONFIG" && \
19914 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5
19915 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5
19916 ac_status=$?
19917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19918 test $ac_status = 0; }; then
19919 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.46" 2>/dev/null`
19920 test "x$?" != "x0" && pkg_failed=yes
19921 else
19922 pkg_failed=yes
19923 fi
19924 else
19925 pkg_failed=untried
19926 fi
19927 if test -n "$GLIB_LIBS"; then
19928 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19929 elif test -n "$PKG_CONFIG"; then
19930 if test -n "$PKG_CONFIG" && \
19931 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5
19932 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5
19933 ac_status=$?
19934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19935 test $ac_status = 0; }; then
19936 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.46" 2>/dev/null`
19937 test "x$?" != "x0" && pkg_failed=yes
19938 else
19939 pkg_failed=yes
19940 fi
19941 else
19942 pkg_failed=untried
19943 fi
19944
19945
19946
19947 if test $pkg_failed = yes; then
19948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19949 printf "%s\n" "no" >&6; }
19950
19951 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19952 _pkg_short_errors_supported=yes
19953 else
19954 _pkg_short_errors_supported=no
19955 fi
19956 if test $_pkg_short_errors_supported = yes; then
19957 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1`
19958 else
19959 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1`
19960 fi
19961 # Put the nasty error message in config.log where it belongs
19962 echo "$GLIB_PKG_ERRORS" >&5
19963
19964 have_glib=no
19965 elif test $pkg_failed = untried; then
19966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967 printf "%s\n" "no" >&6; }
19968 have_glib=no
19969 else
19970 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19971 GLIB_LIBS=$pkg_cv_GLIB_LIBS
19972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19973 printf "%s\n" "yes" >&6; }
19974 have_glib=yes
19975 fi
19976 fi
19977 fi
19978
19979 # Not having GLib when unit testing has been explicitly requested is an error
19980 if test "x$enable_unit_tests" = x"yes"; then
19981 if test "x$have_glib" = x"no"; then
19982 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
19983 fi
19984 fi
19985
19986 # Having unit testing disabled when GLib has been explicitly requested is an error
19987 if test "x$enable_unit_tests" = x"no"; then
19988 if test "x$with_glib" = x"yes"; then
19989 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
19990 fi
19991 fi
19992
19993 # Not having GLib when it has been explicitly requested is an error
19994 if test "x$with_glib" = x"yes"; then
19995 if test "x$have_glib" = x"no"; then
19996 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5
19997 fi
19998 fi
19999
20000 if test "$have_glib" = yes; then
20001 HAVE_GLIB_TRUE=
20002 HAVE_GLIB_FALSE='#'
20003 else
20004 HAVE_GLIB_TRUE='#'
20005 HAVE_GLIB_FALSE=
20006 fi
20007
20008
20009 if test "x$have_glib" = x"yes"; then
20010 ac_fn_c_check_func "$LINENO" "g_pattern_spec_match_string" "ac_cv_func_g_pattern_spec_match_string"
20011 if test "x$ac_cv_func_g_pattern_spec_match_string" = xyes
20012 then :
20013 printf "%s\n" "#define HAVE_G_PATTERN_SPEC_MATCH_STRING 1" >>confdefs.h
20014
20015 fi
20016
20017 fi
20018
20019
20020
20021
20022
20023 # Check for different types of support on different platforms
20024 case $host_os in
20025 solaris*)
20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
20027 printf %s "checking for umem_alloc in -lumem... " >&6; }
20028 if test ${ac_cv_lib_umem_umem_alloc+y}
20029 then :
20030 printf %s "(cached) " >&6
20031 else $as_nop
20032 ac_check_lib_save_LIBS=$LIBS
20033 LIBS="-lumem $LIBS"
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20036
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20040 char umem_alloc ();
20041 int
20042 main (void)
20043 {
20044 return umem_alloc ();
20045 ;
20046 return 0;
20047 }
20048 _ACEOF
20049 if ac_fn_c_try_link "$LINENO"
20050 then :
20051 ac_cv_lib_umem_umem_alloc=yes
20052 else $as_nop
20053 ac_cv_lib_umem_umem_alloc=no
20054 fi
20055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20056 conftest$ac_exeext conftest.$ac_ext
20057 LIBS=$ac_check_lib_save_LIBS
20058 fi
20059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
20060 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
20061 if test "x$ac_cv_lib_umem_umem_alloc" = xyes
20062 then :
20063 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
20064 fi
20065
20066 ;;
20067 *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
20068 # both directly and inverted, so should not be 0 or 255.
20069 malloc_debug_env='MALLOC_PERTURB_=15'
20070 ;;
20071 darwin*)
20072 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
20073 ;;
20074 *bsd*)
20075 malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
20076 ;;
20077 esac
20078
20079 # User supplied flags override default flags
20080 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
20081 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
20082 fi
20083
20084 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
20085
20086
20087
20088 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile test/Makefile xpm.pc"
20089
20090 cat >confcache <<\_ACEOF
20091 # This file is a shell script that caches the results of configure
20092 # tests run on this system so they can be shared between configure
20093 # scripts and configure runs, see configure's option --config-cache.
20094 # It is not useful on other systems. If it contains results you don't
20095 # want to keep, you may remove or edit it.
20096 #
20097 # config.status only pays attention to the cache file if you give it
20098 # the --recheck option to rerun configure.
20099 #
20100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20102 # following values.
20103
20104 _ACEOF
20105
20106 # The following way of writing the cache mishandles newlines in values,
20107 # but we know of no workaround that is simple, portable, and efficient.
20108 # So, we kill variables containing newlines.
20109 # Ultrix sh set writes to stderr and can't be redirected directly,
20110 # and sets the high bit in the cache file unless we assign to the vars.
20111 (
20112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20113 eval ac_val=\$$ac_var
20114 case $ac_val in #(
20115 *${as_nl}*)
20116 case $ac_var in #(
20117 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20118 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20119 esac
20120 case $ac_var in #(
20121 _ | IFS | as_nl) ;; #(
20122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20123 *) { eval $ac_var=; unset $ac_var;} ;;
20124 esac ;;
20125 esac
20126 done
20127
20128 (set) 2>&1 |
20129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20130 *${as_nl}ac_space=\ *)
20131 # `set' does not quote correctly, so add quotes: double-quote
20132 # substitution turns \\\\ into \\, and sed turns \\ into \.
20133 sed -n \
20134 "s/'/'\\\\''/g;
20135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20136 ;; #(
20137 *)
20138 # `set' quotes correctly as required by POSIX, so do not add quotes.
20139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20140 ;;
20141 esac |
20142 sort
20143 ) |
20144 sed '
20145 /^ac_cv_env_/b end
20146 t clear
20147 :clear
20148 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20149 t end
20150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20151 :end' >>confcache
20152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20153 if test -w "$cache_file"; then
20154 if test "x$cache_file" != "x/dev/null"; then
20155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20156 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20157 if test ! -f "$cache_file" || test -h "$cache_file"; then
20158 cat confcache >"$cache_file"
20159 else
20160 case $cache_file in #(
20161 */* | ?:*)
20162 mv -f confcache "$cache_file"$$ &&
20163 mv -f "$cache_file"$$ "$cache_file" ;; #(
20164 *)
20165 mv -f confcache "$cache_file" ;;
20166 esac
20167 fi
20168 fi
20169 else
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20171 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20172 fi
20173 fi
20174 rm -f confcache
20175
20176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20177 # Let make expand exec_prefix.
20178 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20179
20180 DEFS=-DHAVE_CONFIG_H
20181
20182 ac_libobjs=
20183 ac_ltlibobjs=
20184 U=
20185 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20186 # 1. Remove the extension, and $U if already installed.
20187 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20188 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20189 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20190 # will be set to the directory where LIBOBJS objects are built.
20191 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20192 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20193 done
20194 LIBOBJS=$ac_libobjs
20195
20196 LTLIBOBJS=$ac_ltlibobjs
20197
20198
20199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20200 printf %s "checking that generated files are newer than configure... " >&6; }
20201 if test -n "$am_sleep_pid"; then
20202 # Hide warnings about reused PIDs.
20203 wait $am_sleep_pid 2>/dev/null
20204 fi
20205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20206 printf "%s\n" "done" >&6; }
20207 if test -n "$EXEEXT"; then
20208 am__EXEEXT_TRUE=
20209 am__EXEEXT_FALSE='#'
20210 else
20211 am__EXEEXT_TRUE='#'
20212 am__EXEEXT_FALSE=
20213 fi
20214
20215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20216 as_fn_error $? "conditional \"AMDEP\" was never defined.
20217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20218 fi
20219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20220 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20222 fi
20223 if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
20224 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined.
20225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20226 fi
20227 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
20228 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
20229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20230 fi
20231 if test -z "${COMPRESSED_PIXMAPS_TRUE}" && test -z "${COMPRESSED_PIXMAPS_FALSE}"; then
20232 as_fn_error $? "conditional \"COMPRESSED_PIXMAPS\" was never defined.
20233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20234 fi
20235 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
20236 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
20237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20238 fi
20239 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
20240 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
20241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20242 fi
20243
20244 : "${CONFIG_STATUS=./config.status}"
20245 ac_write_fail=0
20246 ac_clean_files_save=$ac_clean_files
20247 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20249 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20250 as_write_fail=0
20251 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20252 #! $SHELL
20253 # Generated by $as_me.
20254 # Run this file to recreate the current configuration.
20255 # Compiler output produced by configure, useful for debugging
20256 # configure, is in config.log if it exists.
20257
20258 debug=false
20259 ac_cs_recheck=false
20260 ac_cs_silent=false
20261
20262 SHELL=\${CONFIG_SHELL-$SHELL}
20263 export SHELL
20264 _ASEOF
20265 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20266 ## -------------------- ##
20267 ## M4sh Initialization. ##
20268 ## -------------------- ##
20269
20270 # Be more Bourne compatible
20271 DUALCASE=1; export DUALCASE # for MKS sh
20272 as_nop=:
20273 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20274 then :
20275 emulate sh
20276 NULLCMD=:
20277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20278 # is contrary to our usage. Disable this feature.
20279 alias -g '${1+"$@"}'='"$@"'
20280 setopt NO_GLOB_SUBST
20281 else $as_nop
20282 case `(set -o) 2>/dev/null` in #(
20283 *posix*) :
20284 set -o posix ;; #(
20285 *) :
20286 ;;
20287 esac
20288 fi
20289
20290
20291
20292 # Reset variables that may have inherited troublesome values from
20293 # the environment.
20294
20295 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20296 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20297 # side effect of setting IFS to empty, thus disabling word splitting.)
20298 # Quoting is to prevent editors from complaining about space-tab.
20299 as_nl='
20300 '
20301 export as_nl
20302 IFS=" "" $as_nl"
20303
20304 PS1='$ '
20305 PS2='> '
20306 PS4='+ '
20307
20308 # Ensure predictable behavior from utilities with locale-dependent output.
20309 LC_ALL=C
20310 export LC_ALL
20311 LANGUAGE=C
20312 export LANGUAGE
20313
20314 # We cannot yet rely on "unset" to work, but we need these variables
20315 # to be unset--not just set to an empty or harmless value--now, to
20316 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20317 # also avoids known problems related to "unset" and subshell syntax
20318 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20319 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20320 do eval test \${$as_var+y} \
20321 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20322 done
20323
20324 # Ensure that fds 0, 1, and 2 are open.
20325 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20326 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20327 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20328
20329 # The user is always right.
20330 if ${PATH_SEPARATOR+false} :; then
20331 PATH_SEPARATOR=:
20332 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20333 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20334 PATH_SEPARATOR=';'
20335 }
20336 fi
20337
20338
20339 # Find who we are. Look in the path if we contain no directory separator.
20340 as_myself=
20341 case $0 in #((
20342 *[\\/]* ) as_myself=$0 ;;
20343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20344 for as_dir in $PATH
20345 do
20346 IFS=$as_save_IFS
20347 case $as_dir in #(((
20348 '') as_dir=./ ;;
20349 */) ;;
20350 *) as_dir=$as_dir/ ;;
20351 esac
20352 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20353 done
20354 IFS=$as_save_IFS
20355
20356 ;;
20357 esac
20358 # We did not find ourselves, most probably we were run as `sh COMMAND'
20359 # in which case we are not to be found in the path.
20360 if test "x$as_myself" = x; then
20361 as_myself=$0
20362 fi
20363 if test ! -f "$as_myself"; then
20364 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20365 exit 1
20366 fi
20367
20368
20369
20370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20371 # ----------------------------------------
20372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20374 # script with STATUS, using 1 if that was 0.
20375 as_fn_error ()
20376 {
20377 as_status=$1; test $as_status -eq 0 && as_status=1
20378 if test "$4"; then
20379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20381 fi
20382 printf "%s\n" "$as_me: error: $2" >&2
20383 as_fn_exit $as_status
20384 } # as_fn_error
20385
20386
20387
20388 # as_fn_set_status STATUS
20389 # -----------------------
20390 # Set $? to STATUS, without forking.
20391 as_fn_set_status ()
20392 {
20393 return $1
20394 } # as_fn_set_status
20395
20396 # as_fn_exit STATUS
20397 # -----------------
20398 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20399 as_fn_exit ()
20400 {
20401 set +e
20402 as_fn_set_status $1
20403 exit $1
20404 } # as_fn_exit
20405
20406 # as_fn_unset VAR
20407 # ---------------
20408 # Portably unset VAR.
20409 as_fn_unset ()
20410 {
20411 { eval $1=; unset $1;}
20412 }
20413 as_unset=as_fn_unset
20414
20415 # as_fn_append VAR VALUE
20416 # ----------------------
20417 # Append the text in VALUE to the end of the definition contained in VAR. Take
20418 # advantage of any shell optimizations that allow amortized linear growth over
20419 # repeated appends, instead of the typical quadratic growth present in naive
20420 # implementations.
20421 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20422 then :
20423 eval 'as_fn_append ()
20424 {
20425 eval $1+=\$2
20426 }'
20427 else $as_nop
20428 as_fn_append ()
20429 {
20430 eval $1=\$$1\$2
20431 }
20432 fi # as_fn_append
20433
20434 # as_fn_arith ARG...
20435 # ------------------
20436 # Perform arithmetic evaluation on the ARGs, and store the result in the
20437 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20438 # must be portable across $(()) and expr.
20439 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20440 then :
20441 eval 'as_fn_arith ()
20442 {
20443 as_val=$(( $* ))
20444 }'
20445 else $as_nop
20446 as_fn_arith ()
20447 {
20448 as_val=`expr "$@" || test $? -eq 1`
20449 }
20450 fi # as_fn_arith
20451
20452
20453 if expr a : '\(a\)' >/dev/null 2>&1 &&
20454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20455 as_expr=expr
20456 else
20457 as_expr=false
20458 fi
20459
20460 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20461 as_basename=basename
20462 else
20463 as_basename=false
20464 fi
20465
20466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20467 as_dirname=dirname
20468 else
20469 as_dirname=false
20470 fi
20471
20472 as_me=`$as_basename -- "$0" ||
20473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20474 X"$0" : 'X\(//\)$' \| \
20475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20476 printf "%s\n" X/"$0" |
20477 sed '/^.*\/\([^/][^/]*\)\/*$/{
20478 s//\1/
20479 q
20480 }
20481 /^X\/\(\/\/\)$/{
20482 s//\1/
20483 q
20484 }
20485 /^X\/\(\/\).*/{
20486 s//\1/
20487 q
20488 }
20489 s/.*/./; q'`
20490
20491 # Avoid depending upon Character Ranges.
20492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20495 as_cr_digits='0123456789'
20496 as_cr_alnum=$as_cr_Letters$as_cr_digits
20497
20498
20499 # Determine whether it's possible to make 'echo' print without a newline.
20500 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20501 # for compatibility with existing Makefiles.
20502 ECHO_C= ECHO_N= ECHO_T=
20503 case `echo -n x` in #(((((
20504 -n*)
20505 case `echo 'xy\c'` in
20506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20507 xy) ECHO_C='\c';;
20508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20509 ECHO_T=' ';;
20510 esac;;
20511 *)
20512 ECHO_N='-n';;
20513 esac
20514
20515 # For backward compatibility with old third-party macros, we provide
20516 # the shell variables $as_echo and $as_echo_n. New code should use
20517 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20518 as_echo='printf %s\n'
20519 as_echo_n='printf %s'
20520
20521 rm -f conf$$ conf$$.exe conf$$.file
20522 if test -d conf$$.dir; then
20523 rm -f conf$$.dir/conf$$.file
20524 else
20525 rm -f conf$$.dir
20526 mkdir conf$$.dir 2>/dev/null
20527 fi
20528 if (echo >conf$$.file) 2>/dev/null; then
20529 if ln -s conf$$.file conf$$ 2>/dev/null; then
20530 as_ln_s='ln -s'
20531 # ... but there are two gotchas:
20532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20534 # In both cases, we have to default to `cp -pR'.
20535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20536 as_ln_s='cp -pR'
20537 elif ln conf$$.file conf$$ 2>/dev/null; then
20538 as_ln_s=ln
20539 else
20540 as_ln_s='cp -pR'
20541 fi
20542 else
20543 as_ln_s='cp -pR'
20544 fi
20545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20546 rmdir conf$$.dir 2>/dev/null
20547
20548
20549 # as_fn_mkdir_p
20550 # -------------
20551 # Create "$as_dir" as a directory, including parents if necessary.
20552 as_fn_mkdir_p ()
20553 {
20554
20555 case $as_dir in #(
20556 -*) as_dir=./$as_dir;;
20557 esac
20558 test -d "$as_dir" || eval $as_mkdir_p || {
20559 as_dirs=
20560 while :; do
20561 case $as_dir in #(
20562 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20563 *) as_qdir=$as_dir;;
20564 esac
20565 as_dirs="'$as_qdir' $as_dirs"
20566 as_dir=`$as_dirname -- "$as_dir" ||
20567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20568 X"$as_dir" : 'X\(//\)[^/]' \| \
20569 X"$as_dir" : 'X\(//\)$' \| \
20570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20571 printf "%s\n" X"$as_dir" |
20572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20573 s//\1/
20574 q
20575 }
20576 /^X\(\/\/\)[^/].*/{
20577 s//\1/
20578 q
20579 }
20580 /^X\(\/\/\)$/{
20581 s//\1/
20582 q
20583 }
20584 /^X\(\/\).*/{
20585 s//\1/
20586 q
20587 }
20588 s/.*/./; q'`
20589 test -d "$as_dir" && break
20590 done
20591 test -z "$as_dirs" || eval "mkdir $as_dirs"
20592 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20593
20594
20595 } # as_fn_mkdir_p
20596 if mkdir -p . 2>/dev/null; then
20597 as_mkdir_p='mkdir -p "$as_dir"'
20598 else
20599 test -d ./-p && rmdir ./-p
20600 as_mkdir_p=false
20601 fi
20602
20603
20604 # as_fn_executable_p FILE
20605 # -----------------------
20606 # Test if FILE is an executable regular file.
20607 as_fn_executable_p ()
20608 {
20609 test -f "$1" && test -x "$1"
20610 } # as_fn_executable_p
20611 as_test_x='test -x'
20612 as_executable_p=as_fn_executable_p
20613
20614 # Sed expression to map a string onto a valid CPP name.
20615 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20616
20617 # Sed expression to map a string onto a valid variable name.
20618 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20619
20620
20621 exec 6>&1
20622 ## ----------------------------------- ##
20623 ## Main body of $CONFIG_STATUS script. ##
20624 ## ----------------------------------- ##
20625 _ASEOF
20626 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20627
20628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20629 # Save the log message, to keep $0 and so on meaningful, and to
20630 # report actual input values of CONFIG_FILES etc. instead of their
20631 # values after options handling.
20632 ac_log="
20633 This file was extended by libXpm $as_me 3.5.17, which was
20634 generated by GNU Autoconf 2.71. Invocation command line was
20635
20636 CONFIG_FILES = $CONFIG_FILES
20637 CONFIG_HEADERS = $CONFIG_HEADERS
20638 CONFIG_LINKS = $CONFIG_LINKS
20639 CONFIG_COMMANDS = $CONFIG_COMMANDS
20640 $ $0 $@
20641
20642 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20643 "
20644
20645 _ACEOF
20646
20647 case $ac_config_files in *"
20648 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20649 esac
20650
20651 case $ac_config_headers in *"
20652 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20653 esac
20654
20655
20656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20657 # Files that config.status was made for.
20658 config_files="$ac_config_files"
20659 config_headers="$ac_config_headers"
20660 config_commands="$ac_config_commands"
20661
20662 _ACEOF
20663
20664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20665 ac_cs_usage="\
20666 \`$as_me' instantiates files and other configuration actions
20667 from templates according to the current configuration. Unless the files
20668 and actions are specified as TAGs, all are instantiated by default.
20669
20670 Usage: $0 [OPTION]... [TAG]...
20671
20672 -h, --help print this help, then exit
20673 -V, --version print version number and configuration settings, then exit
20674 --config print configuration, then exit
20675 -q, --quiet, --silent
20676 do not print progress messages
20677 -d, --debug don't remove temporary files
20678 --recheck update $as_me by reconfiguring in the same conditions
20679 --file=FILE[:TEMPLATE]
20680 instantiate the configuration file FILE
20681 --header=FILE[:TEMPLATE]
20682 instantiate the configuration header FILE
20683
20684 Configuration files:
20685 $config_files
20686
20687 Configuration headers:
20688 $config_headers
20689
20690 Configuration commands:
20691 $config_commands
20692
20693 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/>."
20694
20695 _ACEOF
20696 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20697 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20699 ac_cs_config='$ac_cs_config_escaped'
20700 ac_cs_version="\\
20701 libXpm config.status 3.5.17
20702 configured by $0, generated by GNU Autoconf 2.71,
20703 with options \\"\$ac_cs_config\\"
20704
20705 Copyright (C) 2021 Free Software Foundation, Inc.
20706 This config.status script is free software; the Free Software Foundation
20707 gives unlimited permission to copy, distribute and modify it."
20708
20709 ac_pwd='$ac_pwd'
20710 srcdir='$srcdir'
20711 INSTALL='$INSTALL'
20712 MKDIR_P='$MKDIR_P'
20713 AWK='$AWK'
20714 test -n "\$AWK" || AWK=awk
20715 _ACEOF
20716
20717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718 # The default lists apply if the user does not specify any file.
20719 ac_need_defaults=:
20720 while test $# != 0
20721 do
20722 case $1 in
20723 --*=?*)
20724 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20725 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20726 ac_shift=:
20727 ;;
20728 --*=)
20729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20730 ac_optarg=
20731 ac_shift=:
20732 ;;
20733 *)
20734 ac_option=$1
20735 ac_optarg=$2
20736 ac_shift=shift
20737 ;;
20738 esac
20739
20740 case $ac_option in
20741 # Handling of the options.
20742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20743 ac_cs_recheck=: ;;
20744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20745 printf "%s\n" "$ac_cs_version"; exit ;;
20746 --config | --confi | --conf | --con | --co | --c )
20747 printf "%s\n" "$ac_cs_config"; exit ;;
20748 --debug | --debu | --deb | --de | --d | -d )
20749 debug=: ;;
20750 --file | --fil | --fi | --f )
20751 $ac_shift
20752 case $ac_optarg in
20753 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20754 '') as_fn_error $? "missing file argument" ;;
20755 esac
20756 as_fn_append CONFIG_FILES " '$ac_optarg'"
20757 ac_need_defaults=false;;
20758 --header | --heade | --head | --hea )
20759 $ac_shift
20760 case $ac_optarg in
20761 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20762 esac
20763 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20764 ac_need_defaults=false;;
20765 --he | --h)
20766 # Conflict between --help and --header
20767 as_fn_error $? "ambiguous option: \`$1'
20768 Try \`$0 --help' for more information.";;
20769 --help | --hel | -h )
20770 printf "%s\n" "$ac_cs_usage"; exit ;;
20771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20772 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20773 ac_cs_silent=: ;;
20774
20775 # This is an error.
20776 -*) as_fn_error $? "unrecognized option: \`$1'
20777 Try \`$0 --help' for more information." ;;
20778
20779 *) as_fn_append ac_config_targets " $1"
20780 ac_need_defaults=false ;;
20781
20782 esac
20783 shift
20784 done
20785
20786 ac_configure_extra_args=
20787
20788 if $ac_cs_silent; then
20789 exec 6>/dev/null
20790 ac_configure_extra_args="$ac_configure_extra_args --silent"
20791 fi
20792
20793 _ACEOF
20794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20795 if \$ac_cs_recheck; then
20796 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20797 shift
20798 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20799 CONFIG_SHELL='$SHELL'
20800 export CONFIG_SHELL
20801 exec "\$@"
20802 fi
20803
20804 _ACEOF
20805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20806 exec 5>>config.log
20807 {
20808 echo
20809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20810 ## Running $as_me. ##
20811 _ASBOX
20812 printf "%s\n" "$ac_log"
20813 } >&5
20814
20815 _ACEOF
20816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20817 #
20818 # INIT-COMMANDS
20819 #
20820 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20821
20822
20823 # The HP-UX ksh and POSIX shell print the target directory to stdout
20824 # if CDPATH is set.
20825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20826
20827 sed_quote_subst='$sed_quote_subst'
20828 double_quote_subst='$double_quote_subst'
20829 delay_variable_subst='$delay_variable_subst'
20830 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20831 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20832 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20833 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20834 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20835 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20836 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20837 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20838 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20839 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20840 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20841 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20842 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20843 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20844 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20845 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20846 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20847 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20848 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20849 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20850 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20851 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20852 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20853 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20854 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20855 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20856 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20857 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20858 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20859 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20860 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20861 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20862 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20863 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20864 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20865 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20866 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20867 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20868 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20869 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20870 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20871 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20872 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20873 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20874 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20875 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20876 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20877 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20878 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20879 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20880 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20881 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20882 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20883 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20884 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20885 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20886 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20887 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20888 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20889 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20890 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"`'
20891 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20892 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20893 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20894 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20895 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20896 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20897 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20898 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20899 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20900 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20901 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20902 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20903 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20904 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20905 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20906 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20907 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20908 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20909 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20910 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20911 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20912 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20913 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20914 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20915 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20916 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20917 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20918 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20919 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20920 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20921 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20922 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20923 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20924 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20925 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20926 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20927 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20928 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20929 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20930 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20931 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20932 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20933 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20934 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20935 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20936 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20937 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20938 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20939 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20940 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20941 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20942 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20943 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20944 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20945 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20946 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20947 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20948 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20949 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20950 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20951 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20952 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20953 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20954 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20955 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20956 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20957 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20958 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20959 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20960 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20961 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20962 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20963 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20964 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20965 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20966 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20967
20968 LTCC='$LTCC'
20969 LTCFLAGS='$LTCFLAGS'
20970 compiler='$compiler_DEFAULT'
20971
20972 # A function that is used when there is no print builtin or printf.
20973 func_fallback_echo ()
20974 {
20975 eval 'cat <<_LTECHO_EOF
20976 \$1
20977 _LTECHO_EOF'
20978 }
20979
20980 # Quote evaled strings.
20981 for var in SHELL \
20982 ECHO \
20983 PATH_SEPARATOR \
20984 SED \
20985 GREP \
20986 EGREP \
20987 FGREP \
20988 LD \
20989 NM \
20990 LN_S \
20991 lt_SP2NL \
20992 lt_NL2SP \
20993 reload_flag \
20994 FILECMD \
20995 OBJDUMP \
20996 deplibs_check_method \
20997 file_magic_cmd \
20998 file_magic_glob \
20999 want_nocaseglob \
21000 DLLTOOL \
21001 sharedlib_from_linklib_cmd \
21002 AR \
21003 archiver_list_spec \
21004 STRIP \
21005 RANLIB \
21006 CC \
21007 CFLAGS \
21008 compiler \
21009 lt_cv_sys_global_symbol_pipe \
21010 lt_cv_sys_global_symbol_to_cdecl \
21011 lt_cv_sys_global_symbol_to_import \
21012 lt_cv_sys_global_symbol_to_c_name_address \
21013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21014 lt_cv_nm_interface \
21015 nm_file_list_spec \
21016 lt_cv_truncate_bin \
21017 lt_prog_compiler_no_builtin_flag \
21018 lt_prog_compiler_pic \
21019 lt_prog_compiler_wl \
21020 lt_prog_compiler_static \
21021 lt_cv_prog_compiler_c_o \
21022 need_locks \
21023 MANIFEST_TOOL \
21024 DSYMUTIL \
21025 NMEDIT \
21026 LIPO \
21027 OTOOL \
21028 OTOOL64 \
21029 shrext_cmds \
21030 export_dynamic_flag_spec \
21031 whole_archive_flag_spec \
21032 compiler_needs_object \
21033 with_gnu_ld \
21034 allow_undefined_flag \
21035 no_undefined_flag \
21036 hardcode_libdir_flag_spec \
21037 hardcode_libdir_separator \
21038 exclude_expsyms \
21039 include_expsyms \
21040 file_list_spec \
21041 variables_saved_for_relink \
21042 libname_spec \
21043 library_names_spec \
21044 soname_spec \
21045 install_override_mode \
21046 finish_eval \
21047 old_striplib \
21048 striplib; do
21049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21050 *[\\\\\\\`\\"\\\$]*)
21051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21052 ;;
21053 *)
21054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21055 ;;
21056 esac
21057 done
21058
21059 # Double-quote double-evaled strings.
21060 for var in reload_cmds \
21061 old_postinstall_cmds \
21062 old_postuninstall_cmds \
21063 old_archive_cmds \
21064 extract_expsyms_cmds \
21065 old_archive_from_new_cmds \
21066 old_archive_from_expsyms_cmds \
21067 archive_cmds \
21068 archive_expsym_cmds \
21069 module_cmds \
21070 module_expsym_cmds \
21071 export_symbols_cmds \
21072 prelink_cmds \
21073 postlink_cmds \
21074 postinstall_cmds \
21075 postuninstall_cmds \
21076 finish_cmds \
21077 sys_lib_search_path_spec \
21078 configure_time_dlsearch_path \
21079 configure_time_lt_sys_library_path; do
21080 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21081 *[\\\\\\\`\\"\\\$]*)
21082 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21083 ;;
21084 *)
21085 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21086 ;;
21087 esac
21088 done
21089
21090 ac_aux_dir='$ac_aux_dir'
21091
21092 # See if we are running on zsh, and set the options that allow our
21093 # commands through without removal of \ escapes INIT.
21094 if test -n "\${ZSH_VERSION+set}"; then
21095 setopt NO_GLOB_SUBST
21096 fi
21097
21098
21099 PACKAGE='$PACKAGE'
21100 VERSION='$VERSION'
21101 RM='$RM'
21102 ofile='$ofile'
21103
21104
21105
21106
21107 _ACEOF
21108
21109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21110
21111 # Handling of arguments.
21112 for ac_config_target in $ac_config_targets
21113 do
21114 case $ac_config_target in
21115 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21116 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21117 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21119 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21120 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21121 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21122 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21123 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
21124 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
21125 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21126 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
21127
21128 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21129 esac
21130 done
21131
21132
21133 # If the user did not use the arguments to specify the items to instantiate,
21134 # then the envvar interface is used. Set only those that are not.
21135 # We use the long form for the default assignment because of an extremely
21136 # bizarre bug on SunOS 4.1.3.
21137 if $ac_need_defaults; then
21138 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21139 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21140 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21141 fi
21142
21143 # Have a temporary directory for convenience. Make it in the build tree
21144 # simply because there is no reason against having it here, and in addition,
21145 # creating and moving files from /tmp can sometimes cause problems.
21146 # Hook for its removal unless debugging.
21147 # Note that there is a small window in which the directory will not be cleaned:
21148 # after its creation but before its name has been assigned to `$tmp'.
21149 $debug ||
21150 {
21151 tmp= ac_tmp=
21152 trap 'exit_status=$?
21153 : "${ac_tmp:=$tmp}"
21154 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21155 ' 0
21156 trap 'as_fn_exit 1' 1 2 13 15
21157 }
21158 # Create a (secure) tmp directory for tmp files.
21159
21160 {
21161 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21162 test -d "$tmp"
21163 } ||
21164 {
21165 tmp=./conf$$-$RANDOM
21166 (umask 077 && mkdir "$tmp")
21167 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21168 ac_tmp=$tmp
21169
21170 # Set up the scripts for CONFIG_FILES section.
21171 # No need to generate them if there are no CONFIG_FILES.
21172 # This happens for instance with `./config.status config.h'.
21173 if test -n "$CONFIG_FILES"; then
21174
21175
21176 ac_cr=`echo X | tr X '\015'`
21177 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21178 # But we know of no other shell where ac_cr would be empty at this
21179 # point, so we can use a bashism as a fallback.
21180 if test "x$ac_cr" = x; then
21181 eval ac_cr=\$\'\\r\'
21182 fi
21183 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21184 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21185 ac_cs_awk_cr='\\r'
21186 else
21187 ac_cs_awk_cr=$ac_cr
21188 fi
21189
21190 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21191 _ACEOF
21192
21193
21194 {
21195 echo "cat >conf$$subs.awk <<_ACEOF" &&
21196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21197 echo "_ACEOF"
21198 } >conf$$subs.sh ||
21199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21200 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21201 ac_delim='%!_!# '
21202 for ac_last_try in false false false false false :; do
21203 . ./conf$$subs.sh ||
21204 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21205
21206 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21207 if test $ac_delim_n = $ac_delim_num; then
21208 break
21209 elif $ac_last_try; then
21210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21211 else
21212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21213 fi
21214 done
21215 rm -f conf$$subs.sh
21216
21217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21218 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21219 _ACEOF
21220 sed -n '
21221 h
21222 s/^/S["/; s/!.*/"]=/
21223 p
21224 g
21225 s/^[^!]*!//
21226 :repl
21227 t repl
21228 s/'"$ac_delim"'$//
21229 t delim
21230 :nl
21231 h
21232 s/\(.\{148\}\)..*/\1/
21233 t more1
21234 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21235 p
21236 n
21237 b repl
21238 :more1
21239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21240 p
21241 g
21242 s/.\{148\}//
21243 t nl
21244 :delim
21245 h
21246 s/\(.\{148\}\)..*/\1/
21247 t more2
21248 s/["\\]/\\&/g; s/^/"/; s/$/"/
21249 p
21250 b
21251 :more2
21252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21253 p
21254 g
21255 s/.\{148\}//
21256 t delim
21257 ' <conf$$subs.awk | sed '
21258 /^[^""]/{
21259 N
21260 s/\n//
21261 }
21262 ' >>$CONFIG_STATUS || ac_write_fail=1
21263 rm -f conf$$subs.awk
21264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21265 _ACAWK
21266 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21267 for (key in S) S_is_set[key] = 1
21268 FS = ""
21269
21270 }
21271 {
21272 line = $ 0
21273 nfields = split(line, field, "@")
21274 substed = 0
21275 len = length(field[1])
21276 for (i = 2; i < nfields; i++) {
21277 key = field[i]
21278 keylen = length(key)
21279 if (S_is_set[key]) {
21280 value = S[key]
21281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21282 len += length(value) + length(field[++i])
21283 substed = 1
21284 } else
21285 len += 1 + keylen
21286 }
21287
21288 print line
21289 }
21290
21291 _ACAWK
21292 _ACEOF
21293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21294 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21295 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21296 else
21297 cat
21298 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21299 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21300 _ACEOF
21301
21302 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21303 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21304 # trailing colons and then remove the whole line if VPATH becomes empty
21305 # (actually we leave an empty line to preserve line numbers).
21306 if test "x$srcdir" = x.; then
21307 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21308 h
21309 s///
21310 s/^/:/
21311 s/[ ]*$/:/
21312 s/:\$(srcdir):/:/g
21313 s/:\${srcdir}:/:/g
21314 s/:@srcdir@:/:/g
21315 s/^:*//
21316 s/:*$//
21317 x
21318 s/\(=[ ]*\).*/\1/
21319 G
21320 s/\n//
21321 s/^[^=]*=[ ]*$//
21322 }'
21323 fi
21324
21325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21326 fi # test -n "$CONFIG_FILES"
21327
21328 # Set up the scripts for CONFIG_HEADERS section.
21329 # No need to generate them if there are no CONFIG_HEADERS.
21330 # This happens for instance with `./config.status Makefile'.
21331 if test -n "$CONFIG_HEADERS"; then
21332 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21333 BEGIN {
21334 _ACEOF
21335
21336 # Transform confdefs.h into an awk script `defines.awk', embedded as
21337 # here-document in config.status, that substitutes the proper values into
21338 # config.h.in to produce config.h.
21339
21340 # Create a delimiter string that does not exist in confdefs.h, to ease
21341 # handling of long lines.
21342 ac_delim='%!_!# '
21343 for ac_last_try in false false :; do
21344 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21345 if test -z "$ac_tt"; then
21346 break
21347 elif $ac_last_try; then
21348 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21349 else
21350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21351 fi
21352 done
21353
21354 # For the awk script, D is an array of macro values keyed by name,
21355 # likewise P contains macro parameters if any. Preserve backslash
21356 # newline sequences.
21357
21358 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21359 sed -n '
21360 s/.\{148\}/&'"$ac_delim"'/g
21361 t rset
21362 :rset
21363 s/^[ ]*#[ ]*define[ ][ ]*/ /
21364 t def
21365 d
21366 :def
21367 s/\\$//
21368 t bsnl
21369 s/["\\]/\\&/g
21370 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21371 D["\1"]=" \3"/p
21372 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21373 d
21374 :bsnl
21375 s/["\\]/\\&/g
21376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21377 D["\1"]=" \3\\\\\\n"\\/p
21378 t cont
21379 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21380 t cont
21381 d
21382 :cont
21383 n
21384 s/.\{148\}/&'"$ac_delim"'/g
21385 t clear
21386 :clear
21387 s/\\$//
21388 t bsnlc
21389 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21390 d
21391 :bsnlc
21392 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21393 b cont
21394 ' <confdefs.h | sed '
21395 s/'"$ac_delim"'/"\\\
21396 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21397
21398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21399 for (key in D) D_is_set[key] = 1
21400 FS = ""
21401 }
21402 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21403 line = \$ 0
21404 split(line, arg, " ")
21405 if (arg[1] == "#") {
21406 defundef = arg[2]
21407 mac1 = arg[3]
21408 } else {
21409 defundef = substr(arg[1], 2)
21410 mac1 = arg[2]
21411 }
21412 split(mac1, mac2, "(") #)
21413 macro = mac2[1]
21414 prefix = substr(line, 1, index(line, defundef) - 1)
21415 if (D_is_set[macro]) {
21416 # Preserve the white space surrounding the "#".
21417 print prefix "define", macro P[macro] D[macro]
21418 next
21419 } else {
21420 # Replace #undef with comments. This is necessary, for example,
21421 # in the case of _POSIX_SOURCE, which is predefined and required
21422 # on some systems where configure will not decide to define it.
21423 if (defundef == "undef") {
21424 print "/*", prefix defundef, macro, "*/"
21425 next
21426 }
21427 }
21428 }
21429 { print }
21430 _ACAWK
21431 _ACEOF
21432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21433 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21434 fi # test -n "$CONFIG_HEADERS"
21435
21436
21437 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21438 shift
21439 for ac_tag
21440 do
21441 case $ac_tag in
21442 :[FHLC]) ac_mode=$ac_tag; continue;;
21443 esac
21444 case $ac_mode$ac_tag in
21445 :[FHL]*:*);;
21446 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21447 :[FH]-) ac_tag=-:-;;
21448 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21449 esac
21450 ac_save_IFS=$IFS
21451 IFS=:
21452 set x $ac_tag
21453 IFS=$ac_save_IFS
21454 shift
21455 ac_file=$1
21456 shift
21457
21458 case $ac_mode in
21459 :L) ac_source=$1;;
21460 :[FH])
21461 ac_file_inputs=
21462 for ac_f
21463 do
21464 case $ac_f in
21465 -) ac_f="$ac_tmp/stdin";;
21466 *) # Look for the file first in the build tree, then in the source tree
21467 # (if the path is not absolute). The absolute path cannot be DOS-style,
21468 # because $ac_f cannot contain `:'.
21469 test -f "$ac_f" ||
21470 case $ac_f in
21471 [\\/$]*) false;;
21472 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21473 esac ||
21474 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21475 esac
21476 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21477 as_fn_append ac_file_inputs " '$ac_f'"
21478 done
21479
21480 # Let's still pretend it is `configure' which instantiates (i.e., don't
21481 # use $as_me), people would be surprised to read:
21482 # /* config.h. Generated by config.status. */
21483 configure_input='Generated from '`
21484 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21485 `' by configure.'
21486 if test x"$ac_file" != x-; then
21487 configure_input="$ac_file. $configure_input"
21488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21489 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21490 fi
21491 # Neutralize special characters interpreted by sed in replacement strings.
21492 case $configure_input in #(
21493 *\&* | *\|* | *\\* )
21494 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21495 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21496 *) ac_sed_conf_input=$configure_input;;
21497 esac
21498
21499 case $ac_tag in
21500 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21502 esac
21503 ;;
21504 esac
21505
21506 ac_dir=`$as_dirname -- "$ac_file" ||
21507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21508 X"$ac_file" : 'X\(//\)[^/]' \| \
21509 X"$ac_file" : 'X\(//\)$' \| \
21510 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21511 printf "%s\n" X"$ac_file" |
21512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21513 s//\1/
21514 q
21515 }
21516 /^X\(\/\/\)[^/].*/{
21517 s//\1/
21518 q
21519 }
21520 /^X\(\/\/\)$/{
21521 s//\1/
21522 q
21523 }
21524 /^X\(\/\).*/{
21525 s//\1/
21526 q
21527 }
21528 s/.*/./; q'`
21529 as_dir="$ac_dir"; as_fn_mkdir_p
21530 ac_builddir=.
21531
21532 case "$ac_dir" in
21533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21534 *)
21535 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21536 # A ".." for each directory in $ac_dir_suffix.
21537 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21538 case $ac_top_builddir_sub in
21539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21541 esac ;;
21542 esac
21543 ac_abs_top_builddir=$ac_pwd
21544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21545 # for backward compatibility:
21546 ac_top_builddir=$ac_top_build_prefix
21547
21548 case $srcdir in
21549 .) # We are building in place.
21550 ac_srcdir=.
21551 ac_top_srcdir=$ac_top_builddir_sub
21552 ac_abs_top_srcdir=$ac_pwd ;;
21553 [\\/]* | ?:[\\/]* ) # Absolute name.
21554 ac_srcdir=$srcdir$ac_dir_suffix;
21555 ac_top_srcdir=$srcdir
21556 ac_abs_top_srcdir=$srcdir ;;
21557 *) # Relative name.
21558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21559 ac_top_srcdir=$ac_top_build_prefix$srcdir
21560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21561 esac
21562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21563
21564
21565 case $ac_mode in
21566 :F)
21567 #
21568 # CONFIG_FILE
21569 #
21570
21571 case $INSTALL in
21572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21573 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21574 esac
21575 ac_MKDIR_P=$MKDIR_P
21576 case $MKDIR_P in
21577 [\\/$]* | ?:[\\/]* ) ;;
21578 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21579 esac
21580 _ACEOF
21581
21582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21583 # If the template does not know about datarootdir, expand it.
21584 # FIXME: This hack should be removed a few years after 2.60.
21585 ac_datarootdir_hack=; ac_datarootdir_seen=
21586 ac_sed_dataroot='
21587 /datarootdir/ {
21588 p
21589 q
21590 }
21591 /@datadir@/p
21592 /@docdir@/p
21593 /@infodir@/p
21594 /@localedir@/p
21595 /@mandir@/p'
21596 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21597 *datarootdir*) ac_datarootdir_seen=yes;;
21598 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21600 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21601 _ACEOF
21602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21603 ac_datarootdir_hack='
21604 s&@datadir@&$datadir&g
21605 s&@docdir@&$docdir&g
21606 s&@infodir@&$infodir&g
21607 s&@localedir@&$localedir&g
21608 s&@mandir@&$mandir&g
21609 s&\\\${datarootdir}&$datarootdir&g' ;;
21610 esac
21611 _ACEOF
21612
21613 # Neutralize VPATH when `$srcdir' = `.'.
21614 # Shell code in configure.ac might set extrasub.
21615 # FIXME: do we really want to maintain this feature?
21616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21617 ac_sed_extra="$ac_vpsub
21618 $extrasub
21619 _ACEOF
21620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21621 :t
21622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21623 s|@configure_input@|$ac_sed_conf_input|;t t
21624 s&@top_builddir@&$ac_top_builddir_sub&;t t
21625 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21626 s&@srcdir@&$ac_srcdir&;t t
21627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21628 s&@top_srcdir@&$ac_top_srcdir&;t t
21629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21630 s&@builddir@&$ac_builddir&;t t
21631 s&@abs_builddir@&$ac_abs_builddir&;t t
21632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21633 s&@INSTALL@&$ac_INSTALL&;t t
21634 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21635 $ac_datarootdir_hack
21636 "
21637 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21638 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21639
21640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21641 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21643 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21645 which seems to be undefined. Please make sure it is defined" >&5
21646 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21647 which seems to be undefined. Please make sure it is defined" >&2;}
21648
21649 rm -f "$ac_tmp/stdin"
21650 case $ac_file in
21651 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21652 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21653 esac \
21654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21655 ;;
21656 :H)
21657 #
21658 # CONFIG_HEADER
21659 #
21660 if test x"$ac_file" != x-; then
21661 {
21662 printf "%s\n" "/* $configure_input */" >&1 \
21663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21664 } >"$ac_tmp/config.h" \
21665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21666 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21668 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21669 else
21670 rm -f "$ac_file"
21671 mv "$ac_tmp/config.h" "$ac_file" \
21672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21673 fi
21674 else
21675 printf "%s\n" "/* $configure_input */" >&1 \
21676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21677 || as_fn_error $? "could not create -" "$LINENO" 5
21678 fi
21679 # Compute "$ac_file"'s index in $config_headers.
21680 _am_arg="$ac_file"
21681 _am_stamp_count=1
21682 for _am_header in $config_headers :; do
21683 case $_am_header in
21684 $_am_arg | $_am_arg:* )
21685 break ;;
21686 * )
21687 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21688 esac
21689 done
21690 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21691 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21692 X"$_am_arg" : 'X\(//\)[^/]' \| \
21693 X"$_am_arg" : 'X\(//\)$' \| \
21694 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21695 printf "%s\n" X"$_am_arg" |
21696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21697 s//\1/
21698 q
21699 }
21700 /^X\(\/\/\)[^/].*/{
21701 s//\1/
21702 q
21703 }
21704 /^X\(\/\/\)$/{
21705 s//\1/
21706 q
21707 }
21708 /^X\(\/\).*/{
21709 s//\1/
21710 q
21711 }
21712 s/.*/./; q'`/stamp-h$_am_stamp_count
21713 ;;
21714
21715 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21716 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21717 ;;
21718 esac
21719
21720
21721 case $ac_file$ac_mode in
21722 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21723 # Older Autoconf quotes --file arguments for eval, but not when files
21724 # are listed without --file. Let's play safe and only enable the eval
21725 # if we detect the quoting.
21726 # TODO: see whether this extra hack can be removed once we start
21727 # requiring Autoconf 2.70 or later.
21728 case $CONFIG_FILES in #(
21729 *\'*) :
21730 eval set x "$CONFIG_FILES" ;; #(
21731 *) :
21732 set x $CONFIG_FILES ;; #(
21733 *) :
21734 ;;
21735 esac
21736 shift
21737 # Used to flag and report bootstrapping failures.
21738 am_rc=0
21739 for am_mf
21740 do
21741 # Strip MF so we end up with the name of the file.
21742 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21743 # Check whether this is an Automake generated Makefile which includes
21744 # dependency-tracking related rules and includes.
21745 # Grep'ing the whole file directly is not great: AIX grep has a line
21746 # limit of 2048, but all sed's we know have understand at least 4000.
21747 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21748 || continue
21749 am_dirpart=`$as_dirname -- "$am_mf" ||
21750 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21751 X"$am_mf" : 'X\(//\)[^/]' \| \
21752 X"$am_mf" : 'X\(//\)$' \| \
21753 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21754 printf "%s\n" X"$am_mf" |
21755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21756 s//\1/
21757 q
21758 }
21759 /^X\(\/\/\)[^/].*/{
21760 s//\1/
21761 q
21762 }
21763 /^X\(\/\/\)$/{
21764 s//\1/
21765 q
21766 }
21767 /^X\(\/\).*/{
21768 s//\1/
21769 q
21770 }
21771 s/.*/./; q'`
21772 am_filepart=`$as_basename -- "$am_mf" ||
21773 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21774 X"$am_mf" : 'X\(//\)$' \| \
21775 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21776 printf "%s\n" X/"$am_mf" |
21777 sed '/^.*\/\([^/][^/]*\)\/*$/{
21778 s//\1/
21779 q
21780 }
21781 /^X\/\(\/\/\)$/{
21782 s//\1/
21783 q
21784 }
21785 /^X\/\(\/\).*/{
21786 s//\1/
21787 q
21788 }
21789 s/.*/./; q'`
21790 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21791 && sed -e '/# am--include-marker/d' "$am_filepart" \
21792 | $MAKE -f - am--depfiles" >&5
21793 (cd "$am_dirpart" \
21794 && sed -e '/# am--include-marker/d' "$am_filepart" \
21795 | $MAKE -f - am--depfiles) >&5 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } || am_rc=$?
21799 done
21800 if test $am_rc -ne 0; then
21801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21802 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21803 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21804 for automatic dependency tracking. If GNU make was not used, consider
21805 re-running the configure script with MAKE=\"gmake\" (or whatever is
21806 necessary). You can also try re-running configure with the
21807 '--disable-dependency-tracking' option to at least be able to build
21808 the package (albeit without support for automatic dependency tracking).
21809 See \`config.log' for more details" "$LINENO" 5; }
21810 fi
21811 { am_dirpart=; unset am_dirpart;}
21812 { am_filepart=; unset am_filepart;}
21813 { am_mf=; unset am_mf;}
21814 { am_rc=; unset am_rc;}
21815 rm -f conftest-deps.mk
21816 }
21817 ;;
21818 "libtool":C)
21819
21820 # See if we are running on zsh, and set the options that allow our
21821 # commands through without removal of \ escapes.
21822 if test -n "${ZSH_VERSION+set}"; then
21823 setopt NO_GLOB_SUBST
21824 fi
21825
21826 cfgfile=${ofile}T
21827 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21828 $RM "$cfgfile"
21829
21830 cat <<_LT_EOF >> "$cfgfile"
21831 #! $SHELL
21832 # Generated automatically by $as_me ($PACKAGE) $VERSION
21833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21835
21836 # Provide generalized library-building support services.
21837 # Written by Gordon Matzigkeit, 1996
21838
21839 # Copyright (C) 2014 Free Software Foundation, Inc.
21840 # This is free software; see the source for copying conditions. There is NO
21841 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21842
21843 # GNU Libtool is free software; you can redistribute it and/or modify
21844 # it under the terms of the GNU General Public License as published by
21845 # the Free Software Foundation; either version 2 of of the License, or
21846 # (at your option) any later version.
21847 #
21848 # As a special exception to the GNU General Public License, if you
21849 # distribute this file as part of a program or library that is built
21850 # using GNU Libtool, you may include this file under the same
21851 # distribution terms that you use for the rest of that program.
21852 #
21853 # GNU Libtool is distributed in the hope that it will be useful, but
21854 # WITHOUT ANY WARRANTY; without even the implied warranty of
21855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21856 # GNU General Public License for more details.
21857 #
21858 # You should have received a copy of the GNU General Public License
21859 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21860
21861
21862 # The names of the tagged configurations supported by this script.
21863 available_tags=''
21864
21865 # Configured defaults for sys_lib_dlsearch_path munging.
21866 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21867
21868 # ### BEGIN LIBTOOL CONFIG
21869
21870 # Which release of libtool.m4 was used?
21871 macro_version=$macro_version
21872 macro_revision=$macro_revision
21873
21874 # Whether or not to build shared libraries.
21875 build_libtool_libs=$enable_shared
21876
21877 # Whether or not to build static libraries.
21878 build_old_libs=$enable_static
21879
21880 # What type of objects to build.
21881 pic_mode=$pic_mode
21882
21883 # Whether or not to optimize for fast installation.
21884 fast_install=$enable_fast_install
21885
21886 # Shared archive member basename,for filename based shared library versioning on AIX.
21887 shared_archive_member_spec=$shared_archive_member_spec
21888
21889 # Shell to use when invoking shell scripts.
21890 SHELL=$lt_SHELL
21891
21892 # An echo program that protects backslashes.
21893 ECHO=$lt_ECHO
21894
21895 # The PATH separator for the build system.
21896 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21897
21898 # The host system.
21899 host_alias=$host_alias
21900 host=$host
21901 host_os=$host_os
21902
21903 # The build system.
21904 build_alias=$build_alias
21905 build=$build
21906 build_os=$build_os
21907
21908 # A sed program that does not truncate output.
21909 SED=$lt_SED
21910
21911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21912 Xsed="\$SED -e 1s/^X//"
21913
21914 # A grep program that handles long lines.
21915 GREP=$lt_GREP
21916
21917 # An ERE matcher.
21918 EGREP=$lt_EGREP
21919
21920 # A literal string matcher.
21921 FGREP=$lt_FGREP
21922
21923 # A BSD- or MS-compatible name lister.
21924 NM=$lt_NM
21925
21926 # Whether we need soft or hard links.
21927 LN_S=$lt_LN_S
21928
21929 # What is the maximum length of a command?
21930 max_cmd_len=$max_cmd_len
21931
21932 # Object file suffix (normally "o").
21933 objext=$ac_objext
21934
21935 # Executable file suffix (normally "").
21936 exeext=$exeext
21937
21938 # whether the shell understands "unset".
21939 lt_unset=$lt_unset
21940
21941 # turn spaces into newlines.
21942 SP2NL=$lt_lt_SP2NL
21943
21944 # turn newlines into spaces.
21945 NL2SP=$lt_lt_NL2SP
21946
21947 # convert \$build file names to \$host format.
21948 to_host_file_cmd=$lt_cv_to_host_file_cmd
21949
21950 # convert \$build files to toolchain format.
21951 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21952
21953 # A file(cmd) program that detects file types.
21954 FILECMD=$lt_FILECMD
21955
21956 # An object symbol dumper.
21957 OBJDUMP=$lt_OBJDUMP
21958
21959 # Method to check whether dependent libraries are shared objects.
21960 deplibs_check_method=$lt_deplibs_check_method
21961
21962 # Command to use when deplibs_check_method = "file_magic".
21963 file_magic_cmd=$lt_file_magic_cmd
21964
21965 # How to find potential files when deplibs_check_method = "file_magic".
21966 file_magic_glob=$lt_file_magic_glob
21967
21968 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21969 want_nocaseglob=$lt_want_nocaseglob
21970
21971 # DLL creation program.
21972 DLLTOOL=$lt_DLLTOOL
21973
21974 # Command to associate shared and link libraries.
21975 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21976
21977 # The archiver.
21978 AR=$lt_AR
21979
21980 # Flags to create an archive (by configure).
21981 lt_ar_flags=$lt_ar_flags
21982
21983 # Flags to create an archive.
21984 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21985
21986 # How to feed a file listing to the archiver.
21987 archiver_list_spec=$lt_archiver_list_spec
21988
21989 # A symbol stripping program.
21990 STRIP=$lt_STRIP
21991
21992 # Commands used to install an old-style archive.
21993 RANLIB=$lt_RANLIB
21994 old_postinstall_cmds=$lt_old_postinstall_cmds
21995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21996
21997 # Whether to use a lock for old archive extraction.
21998 lock_old_archive_extraction=$lock_old_archive_extraction
21999
22000 # A C compiler.
22001 LTCC=$lt_CC
22002
22003 # LTCC compiler flags.
22004 LTCFLAGS=$lt_CFLAGS
22005
22006 # Take the output of nm and produce a listing of raw symbols and C names.
22007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22008
22009 # Transform the output of nm in a proper C declaration.
22010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22011
22012 # Transform the output of nm into a list of symbols to manually relocate.
22013 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22014
22015 # Transform the output of nm in a C name address pair.
22016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22017
22018 # Transform the output of nm in a C name address pair when lib prefix is needed.
22019 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22020
22021 # The name lister interface.
22022 nm_interface=$lt_lt_cv_nm_interface
22023
22024 # Specify filename containing input files for \$NM.
22025 nm_file_list_spec=$lt_nm_file_list_spec
22026
22027 # The root where to search for dependent libraries,and where our libraries should be installed.
22028 lt_sysroot=$lt_sysroot
22029
22030 # Command to truncate a binary pipe.
22031 lt_truncate_bin=$lt_lt_cv_truncate_bin
22032
22033 # The name of the directory that contains temporary libtool files.
22034 objdir=$objdir
22035
22036 # Used to examine libraries when file_magic_cmd begins with "file".
22037 MAGIC_CMD=$MAGIC_CMD
22038
22039 # Must we lock files when doing compilation?
22040 need_locks=$lt_need_locks
22041
22042 # Manifest tool.
22043 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22044
22045 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22046 DSYMUTIL=$lt_DSYMUTIL
22047
22048 # Tool to change global to local symbols on Mac OS X.
22049 NMEDIT=$lt_NMEDIT
22050
22051 # Tool to manipulate fat objects and archives on Mac OS X.
22052 LIPO=$lt_LIPO
22053
22054 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22055 OTOOL=$lt_OTOOL
22056
22057 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22058 OTOOL64=$lt_OTOOL64
22059
22060 # Old archive suffix (normally "a").
22061 libext=$libext
22062
22063 # Shared library suffix (normally ".so").
22064 shrext_cmds=$lt_shrext_cmds
22065
22066 # The commands to extract the exported symbol list from a shared archive.
22067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22068
22069 # Variables whose values should be saved in libtool wrapper scripts and
22070 # restored at link time.
22071 variables_saved_for_relink=$lt_variables_saved_for_relink
22072
22073 # Do we need the "lib" prefix for modules?
22074 need_lib_prefix=$need_lib_prefix
22075
22076 # Do we need a version for libraries?
22077 need_version=$need_version
22078
22079 # Library versioning type.
22080 version_type=$version_type
22081
22082 # Shared library runtime path variable.
22083 runpath_var=$runpath_var
22084
22085 # Shared library path variable.
22086 shlibpath_var=$shlibpath_var
22087
22088 # Is shlibpath searched before the hard-coded library search path?
22089 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22090
22091 # Format of library name prefix.
22092 libname_spec=$lt_libname_spec
22093
22094 # List of archive names. First name is the real one, the rest are links.
22095 # The last name is the one that the linker finds with -lNAME
22096 library_names_spec=$lt_library_names_spec
22097
22098 # The coded name of the library, if different from the real name.
22099 soname_spec=$lt_soname_spec
22100
22101 # Permission mode override for installation of shared libraries.
22102 install_override_mode=$lt_install_override_mode
22103
22104 # Command to use after installation of a shared archive.
22105 postinstall_cmds=$lt_postinstall_cmds
22106
22107 # Command to use after uninstallation of a shared archive.
22108 postuninstall_cmds=$lt_postuninstall_cmds
22109
22110 # Commands used to finish a libtool library installation in a directory.
22111 finish_cmds=$lt_finish_cmds
22112
22113 # As "finish_cmds", except a single script fragment to be evaled but
22114 # not shown.
22115 finish_eval=$lt_finish_eval
22116
22117 # Whether we should hardcode library paths into libraries.
22118 hardcode_into_libs=$hardcode_into_libs
22119
22120 # Compile-time system search path for libraries.
22121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22122
22123 # Detected run-time system search path for libraries.
22124 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22125
22126 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22127 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22128
22129 # Whether dlopen is supported.
22130 dlopen_support=$enable_dlopen
22131
22132 # Whether dlopen of programs is supported.
22133 dlopen_self=$enable_dlopen_self
22134
22135 # Whether dlopen of statically linked programs is supported.
22136 dlopen_self_static=$enable_dlopen_self_static
22137
22138 # Commands to strip libraries.
22139 old_striplib=$lt_old_striplib
22140 striplib=$lt_striplib
22141
22142
22143 # The linker used to build libraries.
22144 LD=$lt_LD
22145
22146 # How to create reloadable object files.
22147 reload_flag=$lt_reload_flag
22148 reload_cmds=$lt_reload_cmds
22149
22150 # Commands used to build an old-style archive.
22151 old_archive_cmds=$lt_old_archive_cmds
22152
22153 # A language specific compiler.
22154 CC=$lt_compiler
22155
22156 # Is the compiler the GNU compiler?
22157 with_gcc=$GCC
22158
22159 # Compiler flag to turn off builtin functions.
22160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22161
22162 # Additional compiler flags for building library objects.
22163 pic_flag=$lt_lt_prog_compiler_pic
22164
22165 # How to pass a linker flag through the compiler.
22166 wl=$lt_lt_prog_compiler_wl
22167
22168 # Compiler flag to prevent dynamic linking.
22169 link_static_flag=$lt_lt_prog_compiler_static
22170
22171 # Does compiler simultaneously support -c and -o options?
22172 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22173
22174 # Whether or not to add -lc for building shared libraries.
22175 build_libtool_need_lc=$archive_cmds_need_lc
22176
22177 # Whether or not to disallow shared libs when runtime libs are static.
22178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22179
22180 # Compiler flag to allow reflexive dlopens.
22181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22182
22183 # Compiler flag to generate shared objects directly from archives.
22184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22185
22186 # Whether the compiler copes with passing no objects directly.
22187 compiler_needs_object=$lt_compiler_needs_object
22188
22189 # Create an old-style archive from a shared archive.
22190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22191
22192 # Create a temporary old-style archive to link instead of a shared archive.
22193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22194
22195 # Commands used to build a shared archive.
22196 archive_cmds=$lt_archive_cmds
22197 archive_expsym_cmds=$lt_archive_expsym_cmds
22198
22199 # Commands used to build a loadable module if different from building
22200 # a shared archive.
22201 module_cmds=$lt_module_cmds
22202 module_expsym_cmds=$lt_module_expsym_cmds
22203
22204 # Whether we are building with GNU ld or not.
22205 with_gnu_ld=$lt_with_gnu_ld
22206
22207 # Flag that allows shared libraries with undefined symbols to be built.
22208 allow_undefined_flag=$lt_allow_undefined_flag
22209
22210 # Flag that enforces no undefined symbols.
22211 no_undefined_flag=$lt_no_undefined_flag
22212
22213 # Flag to hardcode \$libdir into a binary during linking.
22214 # This must work even if \$libdir does not exist
22215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22216
22217 # Whether we need a single "-rpath" flag with a separated argument.
22218 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22219
22220 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22221 # DIR into the resulting binary.
22222 hardcode_direct=$hardcode_direct
22223
22224 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22225 # DIR into the resulting binary and the resulting library dependency is
22226 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22227 # library is relocated.
22228 hardcode_direct_absolute=$hardcode_direct_absolute
22229
22230 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22231 # into the resulting binary.
22232 hardcode_minus_L=$hardcode_minus_L
22233
22234 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22235 # into the resulting binary.
22236 hardcode_shlibpath_var=$hardcode_shlibpath_var
22237
22238 # Set to "yes" if building a shared library automatically hardcodes DIR
22239 # into the library and all subsequent libraries and executables linked
22240 # against it.
22241 hardcode_automatic=$hardcode_automatic
22242
22243 # Set to yes if linker adds runtime paths of dependent libraries
22244 # to runtime path list.
22245 inherit_rpath=$inherit_rpath
22246
22247 # Whether libtool must link a program against all its dependency libraries.
22248 link_all_deplibs=$link_all_deplibs
22249
22250 # Set to "yes" if exported symbols are required.
22251 always_export_symbols=$always_export_symbols
22252
22253 # The commands to list exported symbols.
22254 export_symbols_cmds=$lt_export_symbols_cmds
22255
22256 # Symbols that should not be listed in the preloaded symbols.
22257 exclude_expsyms=$lt_exclude_expsyms
22258
22259 # Symbols that must always be exported.
22260 include_expsyms=$lt_include_expsyms
22261
22262 # Commands necessary for linking programs (against libraries) with templates.
22263 prelink_cmds=$lt_prelink_cmds
22264
22265 # Commands necessary for finishing linking programs.
22266 postlink_cmds=$lt_postlink_cmds
22267
22268 # Specify filename containing input files.
22269 file_list_spec=$lt_file_list_spec
22270
22271 # How to hardcode a shared library path into an executable.
22272 hardcode_action=$hardcode_action
22273
22274 # ### END LIBTOOL CONFIG
22275
22276 _LT_EOF
22277
22278 cat <<'_LT_EOF' >> "$cfgfile"
22279
22280 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22281
22282 # func_munge_path_list VARIABLE PATH
22283 # -----------------------------------
22284 # VARIABLE is name of variable containing _space_ separated list of
22285 # directories to be munged by the contents of PATH, which is string
22286 # having a format:
22287 # "DIR[:DIR]:"
22288 # string "DIR[ DIR]" will be prepended to VARIABLE
22289 # ":DIR[:DIR]"
22290 # string "DIR[ DIR]" will be appended to VARIABLE
22291 # "DIRP[:DIRP]::[DIRA:]DIRA"
22292 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22293 # "DIRA[ DIRA]" will be appended to VARIABLE
22294 # "DIR[:DIR]"
22295 # VARIABLE will be replaced by "DIR[ DIR]"
22296 func_munge_path_list ()
22297 {
22298 case x$2 in
22299 x)
22300 ;;
22301 *:)
22302 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22303 ;;
22304 x:*)
22305 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22306 ;;
22307 *::*)
22308 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22309 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22310 ;;
22311 *)
22312 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22313 ;;
22314 esac
22315 }
22316
22317
22318 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22319 func_cc_basename ()
22320 {
22321 for cc_temp in $*""; do
22322 case $cc_temp in
22323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22325 \-*) ;;
22326 *) break;;
22327 esac
22328 done
22329 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22330 }
22331
22332
22333 # ### END FUNCTIONS SHARED WITH CONFIGURE
22334
22335 _LT_EOF
22336
22337 case $host_os in
22338 aix3*)
22339 cat <<\_LT_EOF >> "$cfgfile"
22340 # AIX sometimes has problems with the GCC collect2 program. For some
22341 # reason, if we set the COLLECT_NAMES environment variable, the problems
22342 # vanish in a puff of smoke.
22343 if test set != "${COLLECT_NAMES+set}"; then
22344 COLLECT_NAMES=
22345 export COLLECT_NAMES
22346 fi
22347 _LT_EOF
22348 ;;
22349 esac
22350
22351
22352
22353 ltmain=$ac_aux_dir/ltmain.sh
22354
22355
22356 # We use sed instead of cat because bash on DJGPP gets confused if
22357 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22358 # text mode, it properly converts lines to CR/LF. This bash problem
22359 # is reportedly fixed, but why not run on old versions too?
22360 $SED '$q' "$ltmain" >> "$cfgfile" \
22361 || (rm -f "$cfgfile"; exit 1)
22362
22363 mv -f "$cfgfile" "$ofile" ||
22364 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22365 chmod +x "$ofile"
22366
22367 ;;
22368
22369 esac
22370 done # for ac_tag
22371
22372
22373 as_fn_exit 0
22374 _ACEOF
22375 ac_clean_files=$ac_clean_files_save
22376
22377 test $ac_write_fail = 0 ||
22378 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22379
22380
22381 # configure is writing to config.log, and then calls config.status.
22382 # config.status does its own redirection, appending to config.log.
22383 # Unfortunately, on DOS this fails, as config.log is still kept open
22384 # by configure, so config.status won't be able to write to it; its
22385 # output is simply discarded. So we exec the FD to /dev/null,
22386 # effectively closing config.log, so it can be properly (re)opened and
22387 # appended to by config.status. When coming back to configure, we
22388 # need to make the FD available again.
22389 if test "$no_create" != yes; then
22390 ac_cs_success=:
22391 ac_config_status_args=
22392 test "$silent" = yes &&
22393 ac_config_status_args="$ac_config_status_args --quiet"
22394 exec 5>/dev/null
22395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22396 exec 5>>config.log
22397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22398 # would make configure fail if this is the last instruction.
22399 $ac_cs_success || as_fn_exit 1
22400 fi
22401 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22403 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22404 fi
22405
22406
22407