configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libXau 1.0.12.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='libXau'
617 PACKAGE_TARNAME='libXau'
618 PACKAGE_VERSION='1.0.12'
619 PACKAGE_STRING='libXau 1.0.12'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues'
621 PACKAGE_URL=''
622
623 ac_unique_file="Makefile.am"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 MAKE_LINT_LIB_FALSE
662 MAKE_LINT_LIB_TRUE
663 LINTLIB
664 LINT_FALSE
665 LINT_TRUE
666 LINT_FLAGS
667 LINT
668 XAU_LIBS
669 XAU_CFLAGS
670 MAN_SUBSTS
671 XORG_MAN_PAGE
672 ADMIN_MAN_DIR
673 DRIVER_MAN_DIR
674 MISC_MAN_DIR
675 FILE_MAN_DIR
676 LIB_MAN_DIR
677 APP_MAN_DIR
678 ADMIN_MAN_SUFFIX
679 DRIVER_MAN_SUFFIX
680 MISC_MAN_SUFFIX
681 FILE_MAN_SUFFIX
682 LIB_MAN_SUFFIX
683 APP_MAN_SUFFIX
684 INSTALL_CMD
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 CHANGELOG_CMD
689 STRICT_CFLAGS
690 CWARNFLAGS
691 BASE_CFLAGS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 FILECMD
703 LN_S
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 LIBTOOL
721 OBJDUMP
722 DLLTOOL
723 AS
724 am__xargs_n
725 am__rm_f_notfound
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 CSCOPE
731 ETAGS
732 CTAGS
733 am__fastdepCC_FALSE
734 am__fastdepCC_TRUE
735 CCDEPMODE
736 am__nodep
737 AMDEPBACKSLASH
738 AMDEP_FALSE
739 AMDEP_TRUE
740 am__include
741 DEPDIR
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 OBJEXT
766 EXEEXT
767 ac_ct_CC
768 CPPFLAGS
769 LDFLAGS
770 CFLAGS
771 CC
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 runstatedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL
811 am__quote'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_dependency_tracking
816 enable_silent_rules
817 enable_shared
818 enable_static
819 enable_pic
820 with_pic
821 enable_fast_install
822 enable_aix_soname
823 with_aix_soname
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 enable_selective_werror
828 enable_strict_compilation
829 enable_largefile
830 enable_xthreads
831 with_lint
832 enable_lint_library
833 enable_year2038
834 '
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 LT_SYS_LIBRARY_PATH
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 XAU_CFLAGS
848 XAU_LIBS
849 LINT
850 LINT_FLAGS'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 runstatedir='${localstatedir}/run'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
901
902 ac_prev=
903 ac_dashdash=
904 for ac_option
905 do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
912
913 case $ac_option in
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
917 esac
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: '$ac_useropt'"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: '$ac_useropt'"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -runstatedir | --runstatedir | --runstatedi | --runstated \
1141 | --runstate | --runstat | --runsta | --runst | --runs \
1142 | --run | --ru | --r)
1143 ac_prev=runstatedir ;;
1144 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1145 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1146 | --run=* | --ru=* | --r=*)
1147 runstatedir=$ac_optarg ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: '$ac_useropt'"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: '$ac_option'
1245 Try '$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir runstatedir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: '$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 printf "%s\n" X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 'configure' configures libXau 1.0.12 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print 'checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for '--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or '..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, 'make install' will install all the files in
1426 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than '$ac_default_prefix' using '--prefix',
1428 for instance '--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libXau]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of libXau 1.0.12:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-dependency-tracking
1479 do not reject slow dependency extractors
1480 --disable-dependency-tracking
1481 speeds up one-time build
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --enable-aix-soname=aix|svr4|both
1491 shared library versioning (aka "SONAME") variant to
1492 provide on AIX, [default=aix].
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --disable-selective-werror
1495 Turn off selective compiler errors. (default:
1496 enabled)
1497 --enable-strict-compilation
1498 Enable all warnings from compiler and make them
1499 errors (default: disabled)
1500 --disable-largefile omit support for large files
1501 --disable-xthreads Disable libXau support for Multithreading
1502 --enable-lint-library Create lint library (default: disabled)
1503 --enable-year2038 support timestamps after 2038
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1511 --with-lint Use a lint-style source code checker (default:
1512 disabled)
1513
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1522 LT_SYS_LIBRARY_PATH
1523 User-defined run-time library search path.
1524 PKG_CONFIG path to pkg-config utility
1525 PKG_CONFIG_PATH
1526 directories to add to pkg-config's search path
1527 PKG_CONFIG_LIBDIR
1528 path overriding pkg-config's built-in search path
1529 XAU_CFLAGS C compiler flags for XAU, overriding pkg-config
1530 XAU_LIBS linker flags for XAU, overriding pkg-config
1531 LINT Path to a lint-style command
1532 LINT_FLAGS Flags for the lint-style command
1533
1534 Use these variables to override the choices made by 'configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for configure.gnu first; this name is used for a wrapper for
1584 # Metaconfig's "Configure" on case-insensitive file systems.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 libXau configure 1.0.12
1602 generated by GNU Autoconf 2.72
1603
1604 Copyright (C) 2023 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest.beam
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 printf "%s\n" "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext
1641 then :
1642 ac_retval=0
1643 else case e in #(
1644 e) printf "%s\n" "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1 ;;
1648 esac
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 printf %s "checking for $2... " >&6; }
1664 if eval test \${$3+y}
1665 then :
1666 printf %s "(cached) " >&6
1667 else case e in #(
1668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"
1674 then :
1675 eval "$3=yes"
1676 else case e in #(
1677 e) eval "$3=no" ;;
1678 esac
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1681 esac
1682 fi
1683 eval ac_res=\$$3
1684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 printf "%s\n" "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688 } # ac_fn_c_check_header_compile
1689
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1718 }
1719 then :
1720 ac_retval=0
1721 else case e in #(
1722 e) printf "%s\n" "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1 ;;
1726 esac
1727 fi
1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730 # interfere with the next link command; also delete a directory that is
1731 # left behind by Apple's compiler. We do this before executing the actions.
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_link
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 printf %s "checking for $2... " >&6; }
1746 if eval test \${$3+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else case e in #(
1750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1754 #define $2 innocuous_$2
1755
1756 /* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char $2 (void); below. */
1758
1759 #include <limits.h>
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 (void);
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main (void)
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"
1785 then :
1786 eval "$3=yes"
1787 else case e in #(
1788 e) eval "$3=no" ;;
1789 esac
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1792 conftest$ac_exeext conftest.$ac_ext ;;
1793 esac
1794 fi
1795 eval ac_res=\$$3
1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 printf "%s\n" "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_func
1801
1802 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1803 # ------------------------------------------------------------------
1804 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1805 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1806 ac_fn_check_decl ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 as_decl_name=`echo $2|sed 's/ *(.*//'`
1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1811 printf %s "checking whether $as_decl_name is declared... " >&6; }
1812 if eval test \${$3+y}
1813 then :
1814 printf %s "(cached) " >&6
1815 else case e in #(
1816 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1817 eval ac_save_FLAGS=\$$6
1818 as_fn_append $6 " $5"
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 int
1823 main (void)
1824 {
1825 #ifndef $as_decl_name
1826 #ifdef __cplusplus
1827 (void) $as_decl_use;
1828 #else
1829 (void) $as_decl_name;
1830 #endif
1831 #endif
1832
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"
1838 then :
1839 eval "$3=yes"
1840 else case e in #(
1841 e) eval "$3=no" ;;
1842 esac
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1845 eval $6=\$ac_save_FLAGS
1846 ;;
1847 esac
1848 fi
1849 eval ac_res=\$$3
1850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 printf "%s\n" "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_check_decl
1855 ac_configure_args_raw=
1856 for ac_arg
1857 do
1858 case $ac_arg in
1859 *\'*)
1860 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 esac
1862 as_fn_append ac_configure_args_raw " '$ac_arg'"
1863 done
1864
1865 case $ac_configure_args_raw in
1866 *$as_nl*)
1867 ac_safe_unquote= ;;
1868 *)
1869 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1870 ac_unsafe_a="$ac_unsafe_z#~"
1871 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1872 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1873 esac
1874
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1878
1879 It was created by libXau $as_me 1.0.12, which was
1880 generated by GNU Autoconf 2.72. Invocation command line was
1881
1882 $ $0$ac_configure_args_raw
1883
1884 _ACEOF
1885 exec 5>>config.log
1886 {
1887 cat <<_ASUNAME
1888 ## --------- ##
1889 ## Platform. ##
1890 ## --------- ##
1891
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900
1901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908
1909 _ASUNAME
1910
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 case $as_dir in #(((
1916 '') as_dir=./ ;;
1917 */) ;;
1918 *) as_dir=$as_dir/ ;;
1919 esac
1920 printf "%s\n" "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Sanitize IFS.
1991 IFS=" "" $as_nl"
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 printf "%s\n" "## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##"
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 printf "%s\n" "## ----------------- ##
2033 ## Output variables. ##
2034 ## ----------------- ##"
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 printf "%s\n" "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 printf "%s\n" "## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##"
2050 echo
2051 for ac_var in $ac_subst_files
2052 do
2053 eval ac_val=\$$ac_var
2054 case $ac_val in
2055 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 esac
2057 printf "%s\n" "$ac_var='\''$ac_val'\''"
2058 done | sort
2059 echo
2060 fi
2061
2062 if test -s confdefs.h; then
2063 printf "%s\n" "## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##"
2066 echo
2067 cat confdefs.h
2068 echo
2069 fi
2070 test "$ac_signal" != 0 &&
2071 printf "%s\n" "$as_me: caught signal $ac_signal"
2072 printf "%s\n" "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2077 ' 0
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2082
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2085
2086 printf "%s\n" "/* confdefs.h */" > confdefs.h
2087
2088 # Predefined preprocessor variables.
2089
2090 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2095
2096 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2097
2098 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2099
2100 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2101
2102
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 if test -n "$CONFIG_SITE"; then
2106 ac_site_files="$CONFIG_SITE"
2107 elif test "x$prefix" != xNONE; then
2108 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2109 else
2110 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2111 fi
2112
2113 for ac_site_file in $ac_site_files
2114 do
2115 case $ac_site_file in #(
2116 */*) :
2117 ;; #(
2118 *) :
2119 ac_site_file=./$ac_site_file ;;
2120 esac
2121 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2124 sed 's/^/| /' "$ac_site_file" >&5
2125 . "$ac_site_file" \
2126 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2127 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2128 as_fn_error $? "failed to load site script $ac_site_file
2129 See 'config.log' for more details" "$LINENO" 5; }
2130 fi
2131 done
2132
2133 if test -r "$cache_file"; then
2134 # Some versions of bash will fail to source /dev/null (special files
2135 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2136 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2138 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2139 case $cache_file in
2140 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2141 *) . "./$cache_file";;
2142 esac
2143 fi
2144 else
2145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2146 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2147 >$cache_file
2148 fi
2149
2150 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2151 # Test code for whether the C compiler supports C89 (global declarations)
2152 ac_c_conftest_c89_globals='
2153 /* Does the compiler advertise C89 conformance?
2154 Do not test the value of __STDC__, because some compilers set it to 0
2155 while being otherwise adequately conformant. */
2156 #if !defined __STDC__
2157 # error "Compiler does not advertise C89 conformance"
2158 #endif
2159
2160 #include <stddef.h>
2161 #include <stdarg.h>
2162 struct stat;
2163 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2164 struct buf { int x; };
2165 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2166 static char *e (char **p, int i)
2167 {
2168 return p[i];
2169 }
2170 static char *f (char * (*g) (char **, int), char **p, ...)
2171 {
2172 char *s;
2173 va_list v;
2174 va_start (v,p);
2175 s = g (p, va_arg (v,int));
2176 va_end (v);
2177 return s;
2178 }
2179
2180 /* C89 style stringification. */
2181 #define noexpand_stringify(a) #a
2182 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2183
2184 /* C89 style token pasting. Exercises some of the corner cases that
2185 e.g. old MSVC gets wrong, but not very hard. */
2186 #define noexpand_concat(a,b) a##b
2187 #define expand_concat(a,b) noexpand_concat(a,b)
2188 extern int vA;
2189 extern int vbee;
2190 #define aye A
2191 #define bee B
2192 int *pvA = &expand_concat(v,aye);
2193 int *pvbee = &noexpand_concat(v,bee);
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 // See if C++-style comments work.
2228
2229 #include <stdbool.h>
2230 extern int puts (const char *);
2231 extern int printf (const char *, ...);
2232 extern int dprintf (int, const char *, ...);
2233 extern void *malloc (size_t);
2234 extern void free (void *);
2235
2236 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2237 // dprintf is used instead of fprintf to avoid needing to declare
2238 // FILE and stderr.
2239 #define debug(...) dprintf (2, __VA_ARGS__)
2240 #define showlist(...) puts (#__VA_ARGS__)
2241 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2242 static void
2243 test_varargs_macros (void)
2244 {
2245 int x = 1234;
2246 int y = 5678;
2247 debug ("Flag");
2248 debug ("X = %d\n", x);
2249 showlist (The first, second, and third items.);
2250 report (x>y, "x is %d but y is %d", x, y);
2251 }
2252
2253 // Check long long types.
2254 #define BIG64 18446744073709551615ull
2255 #define BIG32 4294967295ul
2256 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2257 #if !BIG_OK
2258 #error "your preprocessor is broken"
2259 #endif
2260 #if BIG_OK
2261 #else
2262 #error "your preprocessor is broken"
2263 #endif
2264 static long long int bignum = -9223372036854775807LL;
2265 static unsigned long long int ubignum = BIG64;
2266
2267 struct incomplete_array
2268 {
2269 int datasize;
2270 double data[];
2271 };
2272
2273 struct named_init {
2274 int number;
2275 const wchar_t *name;
2276 double average;
2277 };
2278
2279 typedef const char *ccp;
2280
2281 static inline int
2282 test_restrict (ccp restrict text)
2283 {
2284 // Iterate through items via the restricted pointer.
2285 // Also check for declarations in for loops.
2286 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2287 continue;
2288 return 0;
2289 }
2290
2291 // Check varargs and va_copy.
2292 static bool
2293 test_varargs (const char *format, ...)
2294 {
2295 va_list args;
2296 va_start (args, format);
2297 va_list args_copy;
2298 va_copy (args_copy, args);
2299
2300 const char *str = "";
2301 int number = 0;
2302 float fnumber = 0;
2303
2304 while (*format)
2305 {
2306 switch (*format++)
2307 {
2308 case '\''s'\'': // string
2309 str = va_arg (args_copy, const char *);
2310 break;
2311 case '\''d'\'': // int
2312 number = va_arg (args_copy, int);
2313 break;
2314 case '\''f'\'': // float
2315 fnumber = va_arg (args_copy, double);
2316 break;
2317 default:
2318 break;
2319 }
2320 }
2321 va_end (args_copy);
2322 va_end (args);
2323
2324 return *str && number && fnumber;
2325 }
2326 '
2327
2328 # Test code for whether the C compiler supports C99 (body of main).
2329 ac_c_conftest_c99_main='
2330 // Check bool.
2331 _Bool success = false;
2332 success |= (argc != 0);
2333
2334 // Check restrict.
2335 if (test_restrict ("String literal") == 0)
2336 success = true;
2337 char *restrict newvar = "Another string";
2338
2339 // Check varargs.
2340 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2341 test_varargs_macros ();
2342
2343 // Check flexible array members.
2344 struct incomplete_array *ia =
2345 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2346 ia->datasize = 10;
2347 for (int i = 0; i < ia->datasize; ++i)
2348 ia->data[i] = i * 1.234;
2349 // Work around memory leak warnings.
2350 free (ia);
2351
2352 // Check named initializers.
2353 struct named_init ni = {
2354 .number = 34,
2355 .name = L"Test wide string",
2356 .average = 543.34343,
2357 };
2358
2359 ni.number = 58;
2360
2361 int dynamic_array[ni.number];
2362 dynamic_array[0] = argv[0][0];
2363 dynamic_array[ni.number - 1] = 543;
2364
2365 // work around unused variable warnings
2366 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2367 || dynamic_array[ni.number - 1] != 543);
2368 '
2369
2370 # Test code for whether the C compiler supports C11 (global declarations)
2371 ac_c_conftest_c11_globals='
2372 /* Does the compiler advertise C11 conformance? */
2373 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2374 # error "Compiler does not advertise C11 conformance"
2375 #endif
2376
2377 // Check _Alignas.
2378 char _Alignas (double) aligned_as_double;
2379 char _Alignas (0) no_special_alignment;
2380 extern char aligned_as_int;
2381 char _Alignas (0) _Alignas (int) aligned_as_int;
2382
2383 // Check _Alignof.
2384 enum
2385 {
2386 int_alignment = _Alignof (int),
2387 int_array_alignment = _Alignof (int[100]),
2388 char_alignment = _Alignof (char)
2389 };
2390 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2391
2392 // Check _Noreturn.
2393 int _Noreturn does_not_return (void) { for (;;) continue; }
2394
2395 // Check _Static_assert.
2396 struct test_static_assert
2397 {
2398 int x;
2399 _Static_assert (sizeof (int) <= sizeof (long int),
2400 "_Static_assert does not work in struct");
2401 long int y;
2402 };
2403
2404 // Check UTF-8 literals.
2405 #define u8 syntax error!
2406 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2407
2408 // Check duplicate typedefs.
2409 typedef long *long_ptr;
2410 typedef long int *long_ptr;
2411 typedef long_ptr long_ptr;
2412
2413 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2414 struct anonymous
2415 {
2416 union {
2417 struct { int i; int j; };
2418 struct { int k; long int l; } w;
2419 };
2420 int m;
2421 } v1;
2422 '
2423
2424 # Test code for whether the C compiler supports C11 (body of main).
2425 ac_c_conftest_c11_main='
2426 _Static_assert ((offsetof (struct anonymous, i)
2427 == offsetof (struct anonymous, w.k)),
2428 "Anonymous union alignment botch");
2429 v1.i = 2;
2430 v1.w.k = 5;
2431 ok |= v1.i != 5;
2432 '
2433
2434 # Test code for whether the C compiler supports C11 (complete).
2435 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2436 ${ac_c_conftest_c99_globals}
2437 ${ac_c_conftest_c11_globals}
2438
2439 int
2440 main (int argc, char **argv)
2441 {
2442 int ok = 0;
2443 ${ac_c_conftest_c89_main}
2444 ${ac_c_conftest_c99_main}
2445 ${ac_c_conftest_c11_main}
2446 return ok;
2447 }
2448 "
2449
2450 # Test code for whether the C compiler supports C99 (complete).
2451 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2452 ${ac_c_conftest_c99_globals}
2453
2454 int
2455 main (int argc, char **argv)
2456 {
2457 int ok = 0;
2458 ${ac_c_conftest_c89_main}
2459 ${ac_c_conftest_c99_main}
2460 return ok;
2461 }
2462 "
2463
2464 # Test code for whether the C compiler supports C89 (complete).
2465 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2466
2467 int
2468 main (int argc, char **argv)
2469 {
2470 int ok = 0;
2471 ${ac_c_conftest_c89_main}
2472 return ok;
2473 }
2474 "
2475
2476 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2477 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2478 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2479 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2480 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2481 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2482 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2483 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2484 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2485 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2486
2487 # Auxiliary files required by this configure script.
2488 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2489
2490 # Locations in which to look for auxiliary files.
2491 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2492
2493 # Search for a directory containing all of the required auxiliary files,
2494 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2495 # If we don't find one directory that contains all the files we need,
2496 # we report the set of missing files from the *first* directory in
2497 # $ac_aux_dir_candidates and give up.
2498 ac_missing_aux_files=""
2499 ac_first_candidate=:
2500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 as_found=false
2503 for as_dir in $ac_aux_dir_candidates
2504 do
2505 IFS=$as_save_IFS
2506 case $as_dir in #(((
2507 '') as_dir=./ ;;
2508 */) ;;
2509 *) as_dir=$as_dir/ ;;
2510 esac
2511 as_found=:
2512
2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2514 ac_aux_dir_found=yes
2515 ac_install_sh=
2516 for ac_aux in $ac_aux_files
2517 do
2518 # As a special case, if "install-sh" is required, that requirement
2519 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2520 # and $ac_install_sh is set appropriately for whichever one is found.
2521 if test x"$ac_aux" = x"install-sh"
2522 then
2523 if test -f "${as_dir}install-sh"; then
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2525 ac_install_sh="${as_dir}install-sh -c"
2526 elif test -f "${as_dir}install.sh"; then
2527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2528 ac_install_sh="${as_dir}install.sh -c"
2529 elif test -f "${as_dir}shtool"; then
2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2531 ac_install_sh="${as_dir}shtool install -c"
2532 else
2533 ac_aux_dir_found=no
2534 if $ac_first_candidate; then
2535 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2536 else
2537 break
2538 fi
2539 fi
2540 else
2541 if test -f "${as_dir}${ac_aux}"; then
2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2543 else
2544 ac_aux_dir_found=no
2545 if $ac_first_candidate; then
2546 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2547 else
2548 break
2549 fi
2550 fi
2551 fi
2552 done
2553 if test "$ac_aux_dir_found" = yes; then
2554 ac_aux_dir="$as_dir"
2555 break
2556 fi
2557 ac_first_candidate=false
2558
2559 as_found=false
2560 done
2561 IFS=$as_save_IFS
2562 if $as_found
2563 then :
2564
2565 else case e in #(
2566 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2567 esac
2568 fi
2569
2570
2571 # These three variables are undocumented and unsupported,
2572 # and are intended to be withdrawn in a future Autoconf release.
2573 # They can cause serious problems if a builder's source tree is in a directory
2574 # whose full name contains unusual characters.
2575 if test -f "${ac_aux_dir}config.guess"; then
2576 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2577 fi
2578 if test -f "${ac_aux_dir}config.sub"; then
2579 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2580 fi
2581 if test -f "$ac_aux_dir/configure"; then
2582 ac_configure="$SHELL ${ac_aux_dir}configure"
2583 fi
2584
2585 # Check that the precious variables saved in the cache have kept the same
2586 # value.
2587 ac_cache_corrupted=false
2588 for ac_var in $ac_precious_vars; do
2589 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590 eval ac_new_set=\$ac_env_${ac_var}_set
2591 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592 eval ac_new_val=\$ac_env_${ac_var}_value
2593 case $ac_old_set,$ac_new_set in
2594 set,)
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2596 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,set)
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2600 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,);;
2603 *)
2604 if test "x$ac_old_val" != "x$ac_new_val"; then
2605 # differences in whitespace do not lead to failure.
2606 ac_old_val_w=`echo x $ac_old_val`
2607 ac_new_val_w=`echo x $ac_new_val`
2608 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2610 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2611 ac_cache_corrupted=:
2612 else
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2614 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2615 eval $ac_var=\$ac_old_val
2616 fi
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2618 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2620 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2621 fi;;
2622 esac
2623 # Pass precious variables to config.status.
2624 if test "$ac_new_set" = set; then
2625 case $ac_new_val in
2626 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2627 *) ac_arg=$ac_var=$ac_new_val ;;
2628 esac
2629 case " $ac_configure_args " in
2630 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2631 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2632 esac
2633 fi
2634 done
2635 if $ac_cache_corrupted; then
2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2637 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2639 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2640 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2641 and start over" "$LINENO" 5
2642 fi
2643 ## -------------------- ##
2644 ## Main body of script. ##
2645 ## -------------------- ##
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652
2653
2654
2655 ac_config_headers="$ac_config_headers config.h"
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669 # Expand $ac_aux_dir to an absolute path.
2670 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2671
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 printf %s "checking for $ac_word... " >&6; }
2682 if test ${ac_cv_prog_CC+y}
2683 then :
2684 printf %s "(cached) " >&6
2685 else case e in #(
2686 e) if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 case $as_dir in #(((
2694 '') as_dir=./ ;;
2695 */) ;;
2696 *) as_dir=$as_dir/ ;;
2697 esac
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi ;;
2709 esac
2710 fi
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714 printf "%s\n" "$CC" >&6; }
2715 else
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 printf "%s\n" "no" >&6; }
2718 fi
2719
2720
2721 fi
2722 if test -z "$ac_cv_prog_CC"; then
2723 ac_ct_CC=$CC
2724 # Extract the first word of "gcc", so it can be a program name with args.
2725 set dummy gcc; ac_word=$2
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 printf %s "checking for $ac_word... " >&6; }
2728 if test ${ac_cv_prog_ac_ct_CC+y}
2729 then :
2730 printf %s "(cached) " >&6
2731 else case e in #(
2732 e) if test -n "$ac_ct_CC"; then
2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 case $as_dir in #(((
2740 '') as_dir=./ ;;
2741 */) ;;
2742 *) as_dir=$as_dir/ ;;
2743 esac
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi ;;
2755 esac
2756 fi
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2760 printf "%s\n" "$ac_ct_CC" >&6; }
2761 else
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 printf "%s\n" "no" >&6; }
2764 fi
2765
2766 if test "x$ac_ct_CC" = x; then
2767 CC=""
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 CC=$ac_ct_CC
2776 fi
2777 else
2778 CC="$ac_cv_prog_CC"
2779 fi
2780
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}cc; ac_word=$2
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 printf %s "checking for $ac_word... " >&6; }
2787 if test ${ac_cv_prog_CC+y}
2788 then :
2789 printf %s "(cached) " >&6
2790 else case e in #(
2791 e) if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 case $as_dir in #(((
2799 '') as_dir=./ ;;
2800 */) ;;
2801 *) as_dir=$as_dir/ ;;
2802 esac
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="${ac_tool_prefix}cc"
2806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi ;;
2814 esac
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 printf "%s\n" "$CC" >&6; }
2820 else
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 printf "%s\n" "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 fi
2828 if test -z "$CC"; then
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc; ac_word=$2
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 printf %s "checking for $ac_word... " >&6; }
2833 if test ${ac_cv_prog_CC+y}
2834 then :
2835 printf %s "(cached) " >&6
2836 else case e in #(
2837 e) if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 ac_prog_rejected=no
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 case $as_dir in #(((
2846 '') as_dir=./ ;;
2847 */) ;;
2848 *) as_dir=$as_dir/ ;;
2849 esac
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853 ac_prog_rejected=yes
2854 continue
2855 fi
2856 ac_cv_prog_CC="cc"
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 if test $ac_prog_rejected = yes; then
2865 # We found a bogon in the path, so make sure we never use it.
2866 set dummy $ac_cv_prog_CC
2867 shift
2868 if test $# != 0; then
2869 # We chose a different compiler from the bogus one.
2870 # However, it has the same basename, so the bogon will be chosen
2871 # first if we set CC to just the basename; use the full file name.
2872 shift
2873 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2874 fi
2875 fi
2876 fi ;;
2877 esac
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 printf "%s\n" "$CC" >&6; }
2883 else
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 printf "%s\n" "no" >&6; }
2886 fi
2887
2888
2889 fi
2890 if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 for ac_prog in cl.exe
2893 do
2894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 printf %s "checking for $ac_word... " >&6; }
2898 if test ${ac_cv_prog_CC+y}
2899 then :
2900 printf %s "(cached) " >&6
2901 else case e in #(
2902 e) if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 case $as_dir in #(((
2910 '') as_dir=./ ;;
2911 */) ;;
2912 *) as_dir=$as_dir/ ;;
2913 esac
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 fi ;;
2925 esac
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 printf "%s\n" "$CC" >&6; }
2931 else
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 printf "%s\n" "no" >&6; }
2934 fi
2935
2936
2937 test -n "$CC" && break
2938 done
2939 fi
2940 if test -z "$CC"; then
2941 ac_ct_CC=$CC
2942 for ac_prog in cl.exe
2943 do
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy $ac_prog; ac_word=$2
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 printf %s "checking for $ac_word... " >&6; }
2948 if test ${ac_cv_prog_ac_ct_CC+y}
2949 then :
2950 printf %s "(cached) " >&6
2951 else case e in #(
2952 e) if test -n "$ac_ct_CC"; then
2953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 case $as_dir in #(((
2960 '') as_dir=./ ;;
2961 */) ;;
2962 *) as_dir=$as_dir/ ;;
2963 esac
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CC="$ac_prog"
2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi ;;
2975 esac
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 printf "%s\n" "$ac_ct_CC" >&6; }
2981 else
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 printf "%s\n" "no" >&6; }
2984 fi
2985
2986
2987 test -n "$ac_ct_CC" && break
2988 done
2989
2990 if test "x$ac_ct_CC" = x; then
2991 CC=""
2992 else
2993 case $cross_compiling:$ac_tool_warned in
2994 yes:)
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
2998 esac
2999 CC=$ac_ct_CC
3000 fi
3001 fi
3002
3003 fi
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}clang; ac_word=$2
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 printf %s "checking for $ac_word... " >&6; }
3010 if test ${ac_cv_prog_CC+y}
3011 then :
3012 printf %s "(cached) " >&6
3013 else case e in #(
3014 e) if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 case $as_dir in #(((
3022 '') as_dir=./ ;;
3023 */) ;;
3024 *) as_dir=$as_dir/ ;;
3025 esac
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_CC="${ac_tool_prefix}clang"
3029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi ;;
3037 esac
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 printf "%s\n" "$CC" >&6; }
3043 else
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
3046 fi
3047
3048
3049 fi
3050 if test -z "$ac_cv_prog_CC"; then
3051 ac_ct_CC=$CC
3052 # Extract the first word of "clang", so it can be a program name with args.
3053 set dummy clang; ac_word=$2
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 printf %s "checking for $ac_word... " >&6; }
3056 if test ${ac_cv_prog_ac_ct_CC+y}
3057 then :
3058 printf %s "(cached) " >&6
3059 else case e in #(
3060 e) if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 case $as_dir in #(((
3068 '') as_dir=./ ;;
3069 */) ;;
3070 *) as_dir=$as_dir/ ;;
3071 esac
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_ac_ct_CC="clang"
3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078 done
3079 done
3080 IFS=$as_save_IFS
3081
3082 fi ;;
3083 esac
3084 fi
3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3088 printf "%s\n" "$ac_ct_CC" >&6; }
3089 else
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 printf "%s\n" "no" >&6; }
3092 fi
3093
3094 if test "x$ac_ct_CC" = x; then
3095 CC=""
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098 yes:)
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101 ac_tool_warned=yes ;;
3102 esac
3103 CC=$ac_ct_CC
3104 fi
3105 else
3106 CC="$ac_cv_prog_CC"
3107 fi
3108
3109 fi
3110
3111
3112 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3113 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3114 as_fn_error $? "no acceptable C compiler found in \$PATH
3115 See 'config.log' for more details" "$LINENO" 5; }
3116
3117 # Provide some information about the compiler.
3118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3119 set X $ac_compile
3120 ac_compiler=$2
3121 for ac_option in --version -v -V -qversion -version; do
3122 { { ac_try="$ac_compiler $ac_option >&5"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 printf "%s\n" "$ac_try_echo"; } >&5
3129 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3130 ac_status=$?
3131 if test -s conftest.err; then
3132 sed '10a\
3133 ... rest of stderr output deleted ...
3134 10q' conftest.err >conftest.er1
3135 cat conftest.er1 >&5
3136 fi
3137 rm -f conftest.er1 conftest.err
3138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139 test $ac_status = 0; }
3140 done
3141
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3144
3145 int
3146 main (void)
3147 {
3148
3149 ;
3150 return 0;
3151 }
3152 _ACEOF
3153 ac_clean_files_save=$ac_clean_files
3154 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3155 # Try to create an executable without -o first, disregard a.out.
3156 # It will help us diagnose broken compilers, and finding out an intuition
3157 # of exeext.
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3159 printf %s "checking whether the C compiler works... " >&6; }
3160 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3161
3162 # The possible output files:
3163 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3164
3165 ac_rmfiles=
3166 for ac_file in $ac_files
3167 do
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3171 esac
3172 done
3173 rm -f $ac_rmfiles
3174
3175 if { { ac_try="$ac_link_default"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 printf "%s\n" "$ac_try_echo"; } >&5
3182 (eval "$ac_link_default") 2>&5
3183 ac_status=$?
3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }
3186 then :
3187 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3188 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3191 # Autoconf.
3192 for ac_file in $ac_files ''
3193 do
3194 test -f "$ac_file" || continue
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3197 ;;
3198 [ab].out )
3199 # We found the default executable, but exeext='' is most
3200 # certainly right.
3201 break;;
3202 *.* )
3203 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3204 then :; else
3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 fi
3207 # We set ac_cv_exeext here because the later test for it is not
3208 # safe: cross compilers may not add the suffix if given an '-o'
3209 # argument, so we may need to know it at that point already.
3210 # Even if this section looks crufty: it has the advantage of
3211 # actually working.
3212 break;;
3213 * )
3214 break;;
3215 esac
3216 done
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219 else case e in #(
3220 e) ac_file='' ;;
3221 esac
3222 fi
3223 if test -z "$ac_file"
3224 then :
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 printf "%s\n" "no" >&6; }
3227 printf "%s\n" "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3231 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3232 as_fn_error 77 "C compiler cannot create executables
3233 See 'config.log' for more details" "$LINENO" 5; }
3234 else case e in #(
3235 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 printf "%s\n" "yes" >&6; } ;;
3237 esac
3238 fi
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3240 printf %s "checking for C compiler default output file name... " >&6; }
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3242 printf "%s\n" "$ac_file" >&6; }
3243 ac_exeext=$ac_cv_exeext
3244
3245 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3246 ac_clean_files=$ac_clean_files_save
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248 printf %s "checking for suffix of executables... " >&6; }
3249 if { { ac_try="$ac_link"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 printf "%s\n" "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
3257 ac_status=$?
3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }
3260 then :
3261 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3262 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3263 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3264 # 'rm'.
3265 for ac_file in conftest.exe conftest conftest.*; do
3266 test -f "$ac_file" || continue
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 break;;
3271 * ) break;;
3272 esac
3273 done
3274 else case e in #(
3275 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3276 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3277 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3278 See 'config.log' for more details" "$LINENO" 5; } ;;
3279 esac
3280 fi
3281 rm -f conftest conftest$ac_cv_exeext
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3283 printf "%s\n" "$ac_cv_exeext" >&6; }
3284
3285 rm -f conftest.$ac_ext
3286 EXEEXT=$ac_cv_exeext
3287 ac_exeext=$EXEEXT
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290 #include <stdio.h>
3291 int
3292 main (void)
3293 {
3294 FILE *f = fopen ("conftest.out", "w");
3295 if (!f)
3296 return 1;
3297 return ferror (f) || fclose (f) != 0;
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 ac_clean_files="$ac_clean_files conftest.out"
3304 # Check that the compiler produces executables we can run. If not, either
3305 # the compiler is broken, or we cross compile.
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3307 printf %s "checking whether we are cross compiling... " >&6; }
3308 if test "$cross_compiling" != yes; then
3309 { { ac_try="$ac_link"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 printf "%s\n" "$ac_try_echo"; } >&5
3316 (eval "$ac_link") 2>&5
3317 ac_status=$?
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3320 if { ac_try='./conftest$ac_cv_exeext'
3321 { { case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 printf "%s\n" "$ac_try_echo"; } >&5
3327 (eval "$ac_try") 2>&5
3328 ac_status=$?
3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; }; then
3331 cross_compiling=no
3332 else
3333 if test "$cross_compiling" = maybe; then
3334 cross_compiling=yes
3335 else
3336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3337 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3338 as_fn_error 77 "cannot run C compiled programs.
3339 If you meant to cross compile, use '--host'.
3340 See 'config.log' for more details" "$LINENO" 5; }
3341 fi
3342 fi
3343 fi
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3345 printf "%s\n" "$cross_compiling" >&6; }
3346
3347 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3348 conftest.o conftest.obj conftest.out
3349 ac_clean_files=$ac_clean_files_save
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3351 printf %s "checking for suffix of object files... " >&6; }
3352 if test ${ac_cv_objext+y}
3353 then :
3354 printf %s "(cached) " >&6
3355 else case e in #(
3356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358
3359 int
3360 main (void)
3361 {
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.o conftest.obj
3368 if { { ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 printf "%s\n" "$ac_try_echo"; } >&5
3375 (eval "$ac_compile") 2>&5
3376 ac_status=$?
3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 then :
3380 for ac_file in conftest.o conftest.obj conftest.*; do
3381 test -f "$ac_file" || continue;
3382 case $ac_file in
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 break;;
3386 esac
3387 done
3388 else case e in #(
3389 e) printf "%s\n" "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3393 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3394 as_fn_error $? "cannot compute suffix of object files: cannot compile
3395 See 'config.log' for more details" "$LINENO" 5; } ;;
3396 esac
3397 fi
3398 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3399 esac
3400 fi
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402 printf "%s\n" "$ac_cv_objext" >&6; }
3403 OBJEXT=$ac_cv_objext
3404 ac_objext=$OBJEXT
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3406 printf %s "checking whether the compiler supports GNU C... " >&6; }
3407 if test ${ac_cv_c_compiler_gnu+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else case e in #(
3411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main (void)
3416 {
3417 #ifndef __GNUC__
3418 choke me
3419 #endif
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"
3426 then :
3427 ac_compiler_gnu=yes
3428 else case e in #(
3429 e) ac_compiler_gnu=no ;;
3430 esac
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 ;;
3435 esac
3436 fi
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440
3441 if test $ac_compiler_gnu = yes; then
3442 GCC=yes
3443 else
3444 GCC=
3445 fi
3446 ac_test_CFLAGS=${CFLAGS+y}
3447 ac_save_CFLAGS=$CFLAGS
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 printf %s "checking whether $CC accepts -g... " >&6; }
3450 if test ${ac_cv_prog_cc_g+y}
3451 then :
3452 printf %s "(cached) " >&6
3453 else case e in #(
3454 e) ac_save_c_werror_flag=$ac_c_werror_flag
3455 ac_c_werror_flag=yes
3456 ac_cv_prog_cc_g=no
3457 CFLAGS="-g"
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main (void)
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 if ac_fn_c_try_compile "$LINENO"
3470 then :
3471 ac_cv_prog_cc_g=yes
3472 else case e in #(
3473 e) CFLAGS=""
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main (void)
3479 {
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"
3486 then :
3487
3488 else case e in #(
3489 e) ac_c_werror_flag=$ac_save_c_werror_flag
3490 CFLAGS="-g"
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493
3494 int
3495 main (void)
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"
3503 then :
3504 ac_cv_prog_cc_g=yes
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3507 esac
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3510 esac
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3514 esac
3515 fi
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3517 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3518 if test $ac_test_CFLAGS; then
3519 CFLAGS=$ac_save_CFLAGS
3520 elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3522 CFLAGS="-g -O2"
3523 else
3524 CFLAGS="-g"
3525 fi
3526 else
3527 if test "$GCC" = yes; then
3528 CFLAGS="-O2"
3529 else
3530 CFLAGS=
3531 fi
3532 fi
3533 ac_prog_cc_stdc=no
3534 if test x$ac_prog_cc_stdc = xno
3535 then :
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3537 printf %s "checking for $CC option to enable C11 features... " >&6; }
3538 if test ${ac_cv_prog_cc_c11+y}
3539 then :
3540 printf %s "(cached) " >&6
3541 else case e in #(
3542 e) ac_cv_prog_cc_c11=no
3543 ac_save_CC=$CC
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 $ac_c_conftest_c11_program
3547 _ACEOF
3548 for ac_arg in '' -std=gnu11
3549 do
3550 CC="$ac_save_CC $ac_arg"
3551 if ac_fn_c_try_compile "$LINENO"
3552 then :
3553 ac_cv_prog_cc_c11=$ac_arg
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.beam
3556 test "x$ac_cv_prog_cc_c11" != "xno" && break
3557 done
3558 rm -f conftest.$ac_ext
3559 CC=$ac_save_CC ;;
3560 esac
3561 fi
3562
3563 if test "x$ac_cv_prog_cc_c11" = xno
3564 then :
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3566 printf "%s\n" "unsupported" >&6; }
3567 else case e in #(
3568 e) if test "x$ac_cv_prog_cc_c11" = x
3569 then :
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571 printf "%s\n" "none needed" >&6; }
3572 else case e in #(
3573 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3574 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3575 CC="$CC $ac_cv_prog_cc_c11" ;;
3576 esac
3577 fi
3578 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3579 ac_prog_cc_stdc=c11 ;;
3580 esac
3581 fi
3582 fi
3583 if test x$ac_prog_cc_stdc = xno
3584 then :
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3586 printf %s "checking for $CC option to enable C99 features... " >&6; }
3587 if test ${ac_cv_prog_cc_c99+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else case e in #(
3591 e) ac_cv_prog_cc_c99=no
3592 ac_save_CC=$CC
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 $ac_c_conftest_c99_program
3596 _ACEOF
3597 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3598 do
3599 CC="$ac_save_CC $ac_arg"
3600 if ac_fn_c_try_compile "$LINENO"
3601 then :
3602 ac_cv_prog_cc_c99=$ac_arg
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.beam
3605 test "x$ac_cv_prog_cc_c99" != "xno" && break
3606 done
3607 rm -f conftest.$ac_ext
3608 CC=$ac_save_CC ;;
3609 esac
3610 fi
3611
3612 if test "x$ac_cv_prog_cc_c99" = xno
3613 then :
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615 printf "%s\n" "unsupported" >&6; }
3616 else case e in #(
3617 e) if test "x$ac_cv_prog_cc_c99" = x
3618 then :
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620 printf "%s\n" "none needed" >&6; }
3621 else case e in #(
3622 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3623 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3624 CC="$CC $ac_cv_prog_cc_c99" ;;
3625 esac
3626 fi
3627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3628 ac_prog_cc_stdc=c99 ;;
3629 esac
3630 fi
3631 fi
3632 if test x$ac_prog_cc_stdc = xno
3633 then :
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3635 printf %s "checking for $CC option to enable C89 features... " >&6; }
3636 if test ${ac_cv_prog_cc_c89+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else case e in #(
3640 e) ac_cv_prog_cc_c89=no
3641 ac_save_CC=$CC
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644 $ac_c_conftest_c89_program
3645 _ACEOF
3646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647 do
3648 CC="$ac_save_CC $ac_arg"
3649 if ac_fn_c_try_compile "$LINENO"
3650 then :
3651 ac_cv_prog_cc_c89=$ac_arg
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext conftest.beam
3654 test "x$ac_cv_prog_cc_c89" != "xno" && break
3655 done
3656 rm -f conftest.$ac_ext
3657 CC=$ac_save_CC ;;
3658 esac
3659 fi
3660
3661 if test "x$ac_cv_prog_cc_c89" = xno
3662 then :
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664 printf "%s\n" "unsupported" >&6; }
3665 else case e in #(
3666 e) if test "x$ac_cv_prog_cc_c89" = x
3667 then :
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669 printf "%s\n" "none needed" >&6; }
3670 else case e in #(
3671 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3673 CC="$CC $ac_cv_prog_cc_c89" ;;
3674 esac
3675 fi
3676 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3677 ac_prog_cc_stdc=c89 ;;
3678 esac
3679 fi
3680 fi
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3695 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3696 if test ${am_cv_prog_cc_c_o+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else case e in #(
3700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main (void)
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 # Make sure it works both with $CC and with simple cc.
3712 # Following AC_PROG_CC_C_O, we do the test twice because some
3713 # compilers refuse to overwrite an existing .o file with -o,
3714 # though they will create one.
3715 am_cv_prog_cc_c_o=yes
3716 for am_i in 1 2; do
3717 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3718 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } \
3722 && test -f conftest2.$ac_objext; then
3723 : OK
3724 else
3725 am_cv_prog_cc_c_o=no
3726 break
3727 fi
3728 done
3729 rm -f core conftest*
3730 unset am_i ;;
3731 esac
3732 fi
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3734 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3735 if test "$am_cv_prog_cc_c_o" != yes; then
3736 # Losing compiler, so override with the script.
3737 # FIXME: It is wrong to rewrite CC.
3738 # But if we don't then we get into trouble of one sort or another.
3739 # A longer-term fix would be to have automake use am__CC in this case,
3740 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3741 CC="$am_aux_dir/compile $CC"
3742 fi
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750
3751 ac_header= ac_cache=
3752 for ac_item in $ac_header_c_list
3753 do
3754 if test $ac_cache; then
3755 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3756 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3757 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3758 fi
3759 ac_header= ac_cache=
3760 elif test $ac_header; then
3761 ac_cache=$ac_item
3762 else
3763 ac_header=$ac_item
3764 fi
3765 done
3766
3767
3768
3769
3770
3771
3772
3773
3774 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3775 then :
3776
3777 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3778
3779 fi
3780
3781
3782
3783
3784
3785
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3787 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3788 if test ${ac_cv_safe_to_define___extensions__+y}
3789 then :
3790 printf %s "(cached) " >&6
3791 else case e in #(
3792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 # define __EXTENSIONS__ 1
3796 $ac_includes_default
3797 int
3798 main (void)
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"
3806 then :
3807 ac_cv_safe_to_define___extensions__=yes
3808 else case e in #(
3809 e) ac_cv_safe_to_define___extensions__=no ;;
3810 esac
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3813 esac
3814 fi
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3816 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3817
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3819 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3820 if test ${ac_cv_should_define__xopen_source+y}
3821 then :
3822 printf %s "(cached) " >&6
3823 else case e in #(
3824 e) ac_cv_should_define__xopen_source=no
3825 if test $ac_cv_header_wchar_h = yes
3826 then :
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829
3830 #include <wchar.h>
3831 mbstate_t x;
3832 int
3833 main (void)
3834 {
3835
3836 ;
3837 return 0;
3838 }
3839 _ACEOF
3840 if ac_fn_c_try_compile "$LINENO"
3841 then :
3842
3843 else case e in #(
3844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846
3847 #define _XOPEN_SOURCE 500
3848 #include <wchar.h>
3849 mbstate_t x;
3850 int
3851 main (void)
3852 {
3853
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 if ac_fn_c_try_compile "$LINENO"
3859 then :
3860 ac_cv_should_define__xopen_source=yes
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3863 esac
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3866 fi ;;
3867 esac
3868 fi
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3870 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3871
3872 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3873
3874 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3875
3876 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3877
3878 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3879
3880 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3881
3882 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3883
3884 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3885
3886 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3887
3888 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3889
3890 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3891
3892 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3893
3894 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3895
3896 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3897
3898 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3899
3900 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3901
3902 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3903
3904 if test $ac_cv_header_minix_config_h = yes
3905 then :
3906 MINIX=yes
3907 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3908
3909 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3910
3911 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3912
3913 else case e in #(
3914 e) MINIX= ;;
3915 esac
3916 fi
3917 if test $ac_cv_safe_to_define___extensions__ = yes
3918 then :
3919 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3920
3921 fi
3922 if test $ac_cv_should_define__xopen_source = yes
3923 then :
3924 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3925
3926 fi
3927
3928
3929 # Initialize Automake
3930 am__api_version='1.17'
3931
3932
3933 # Find a good install program. We prefer a C program (faster),
3934 # so one script is as good as another. But avoid the broken or
3935 # incompatible versions:
3936 # SysV /etc/install, /usr/sbin/install
3937 # SunOS /usr/etc/install
3938 # IRIX /sbin/install
3939 # AIX /bin/install
3940 # AmigaOS /C/install, which installs bootblocks on floppy discs
3941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3944 # OS/2's system install, which has a completely different semantic
3945 # ./install, which can be erroneously created by make from ./install.sh.
3946 # Reject install programs that cannot install multiple files.
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3948 printf %s "checking for a BSD-compatible install... " >&6; }
3949 if test -z "$INSTALL"; then
3950 if test ${ac_cv_path_install+y}
3951 then :
3952 printf %s "(cached) " >&6
3953 else case e in #(
3954 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 case $as_dir in #(((
3959 '') as_dir=./ ;;
3960 */) ;;
3961 *) as_dir=$as_dir/ ;;
3962 esac
3963 # Account for fact that we put trailing slashes in our PATH walk.
3964 case $as_dir in #((
3965 ./ | /[cC]/* | \
3966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3968 /usr/ucb/* ) ;;
3969 *)
3970 # OSF1 and SCO ODT 3.0 have their own names for install.
3971 # Don't use installbsd from OSF since it installs stuff as root
3972 # by default.
3973 for ac_prog in ginstall scoinst install; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3976 if test $ac_prog = install &&
3977 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3978 # AIX install. It has an incompatible calling convention.
3979 :
3980 elif test $ac_prog = install &&
3981 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3982 # program-specific install script used by HP pwplus--don't use.
3983 :
3984 else
3985 rm -rf conftest.one conftest.two conftest.dir
3986 echo one > conftest.one
3987 echo two > conftest.two
3988 mkdir conftest.dir
3989 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3990 test -s conftest.one && test -s conftest.two &&
3991 test -s conftest.dir/conftest.one &&
3992 test -s conftest.dir/conftest.two
3993 then
3994 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3995 break 3
3996 fi
3997 fi
3998 fi
3999 done
4000 done
4001 ;;
4002 esac
4003
4004 done
4005 IFS=$as_save_IFS
4006
4007 rm -rf conftest.one conftest.two conftest.dir
4008 ;;
4009 esac
4010 fi
4011 if test ${ac_cv_path_install+y}; then
4012 INSTALL=$ac_cv_path_install
4013 else
4014 # As a last resort, use the slow shell script. Don't cache a
4015 # value for INSTALL within a source directory, because that will
4016 # break other packages using the cache if that directory is
4017 # removed, or if the value is a relative name.
4018 INSTALL=$ac_install_sh
4019 fi
4020 fi
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4022 printf "%s\n" "$INSTALL" >&6; }
4023
4024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4025 # It thinks the first close brace ends the variable substitution.
4026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4027
4028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4029
4030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4031
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4033 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4034 if test ${am_cv_sleep_fractional_seconds+y}
4035 then :
4036 printf %s "(cached) " >&6
4037 else case e in #(
4038 e) if sleep 0.001 2>/dev/null
4039 then :
4040 am_cv_sleep_fractional_seconds=yes
4041 else case e in #(
4042 e) am_cv_sleep_fractional_seconds=no ;;
4043 esac
4044 fi
4045 ;;
4046 esac
4047 fi
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4049 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4050
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4052 printf %s "checking filesystem timestamp resolution... " >&6; }
4053 if test ${am_cv_filesystem_timestamp_resolution+y}
4054 then :
4055 printf %s "(cached) " >&6
4056 else case e in #(
4057 e) # Default to the worst case.
4058 am_cv_filesystem_timestamp_resolution=2
4059
4060 # Only try to go finer than 1 sec if sleep can do it.
4061 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4062 # - 1 sec is not much of a win compared to 2 sec, and
4063 # - it takes 2 seconds to perform the test whether 1 sec works.
4064 #
4065 # Instead, just use the default 2s on platforms that have 1s resolution,
4066 # accept the extra 1s delay when using $sleep in the Automake tests, in
4067 # exchange for not incurring the 2s delay for running the test for all
4068 # packages.
4069 #
4070 am_try_resolutions=
4071 if test "$am_cv_sleep_fractional_seconds" = yes; then
4072 # Even a millisecond often causes a bunch of false positives,
4073 # so just try a hundredth of a second. The time saved between .001 and
4074 # .01 is not terribly consequential.
4075 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4076 fi
4077
4078 # In order to catch current-generation FAT out, we must *modify* files
4079 # that already exist; the *creation* timestamp is finer. Use names
4080 # that make ls -t sort them differently when they have equal
4081 # timestamps than when they have distinct timestamps, keeping
4082 # in mind that ls -t prints the *newest* file first.
4083 rm -f conftest.ts?
4084 : > conftest.ts1
4085 : > conftest.ts2
4086 : > conftest.ts3
4087
4088 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4089 # clobber the current shell's arguments. (Outer-level square brackets
4090 # are removed by m4; they're present so that m4 does not expand
4091 # <dollar><star>; be careful, easy to get confused.)
4092 if (
4093 set X `ls -t conftest.ts[12]` &&
4094 {
4095 test "$*" != "X conftest.ts1 conftest.ts2" ||
4096 test "$*" != "X conftest.ts2 conftest.ts1";
4097 }
4098 ); then :; else
4099 # If neither matched, then we have a broken ls. This can happen
4100 # if, for instance, CONFIG_SHELL is bash and it inherits a
4101 # broken ls alias from the environment. This has actually
4102 # happened. Such a system could not be considered "sane".
4103 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4105 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4106 as_fn_error $? "ls -t produces unexpected output.
4107 Make sure there is not a broken ls alias in your environment.
4108 See 'config.log' for more details" "$LINENO" 5; }
4109 fi
4110
4111 for am_try_res in $am_try_resolutions; do
4112 # Any one fine-grained sleep might happen to cross the boundary
4113 # between two values of a coarser actual resolution, but if we do
4114 # two fine-grained sleeps in a row, at least one of them will fall
4115 # entirely within a coarse interval.
4116 echo alpha > conftest.ts1
4117 sleep $am_try_res
4118 echo beta > conftest.ts2
4119 sleep $am_try_res
4120 echo gamma > conftest.ts3
4121
4122 # We assume that 'ls -t' will make use of high-resolution
4123 # timestamps if the operating system supports them at all.
4124 if (set X `ls -t conftest.ts?` &&
4125 test "$2" = conftest.ts3 &&
4126 test "$3" = conftest.ts2 &&
4127 test "$4" = conftest.ts1); then
4128 #
4129 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4130 # because we don't need to test make.
4131 make_ok=true
4132 if test $am_try_res != 1; then
4133 # But if we've succeeded so far with a subsecond resolution, we
4134 # have one more thing to check: make. It can happen that
4135 # everything else supports the subsecond mtimes, but make doesn't;
4136 # notably on macOS, which ships make 3.81 from 2006 (the last one
4137 # released under GPLv2). https://bugs.gnu.org/68808
4138 #
4139 # We test $MAKE if it is defined in the environment, else "make".
4140 # It might get overridden later, but our hope is that in practice
4141 # it does not matter: it is the system "make" which is (by far)
4142 # the most likely to be broken, whereas if the user overrides it,
4143 # probably they did so with a better, or at least not worse, make.
4144 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4145 #
4146 # Create a Makefile (real tab character here):
4147 rm -f conftest.mk
4148 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4149 echo ' touch conftest.ts2' >>conftest.mk
4150 #
4151 # Now, running
4152 # touch conftest.ts1; touch conftest.ts2; make
4153 # should touch ts1 because ts2 is newer. This could happen by luck,
4154 # but most often, it will fail if make's support is insufficient. So
4155 # test for several consecutive successes.
4156 #
4157 # (We reuse conftest.ts[12] because we still want to modify existing
4158 # files, not create new ones, per above.)
4159 n=0
4160 make=${MAKE-make}
4161 until test $n -eq 3; do
4162 echo one > conftest.ts1
4163 sleep $am_try_res
4164 echo two > conftest.ts2 # ts2 should now be newer than ts1
4165 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4166 make_ok=false
4167 break # out of $n loop
4168 fi
4169 n=`expr $n + 1`
4170 done
4171 fi
4172 #
4173 if $make_ok; then
4174 # Everything we know to check worked out, so call this resolution good.
4175 am_cv_filesystem_timestamp_resolution=$am_try_res
4176 break # out of $am_try_res loop
4177 fi
4178 # Otherwise, we'll go on to check the next resolution.
4179 fi
4180 done
4181 rm -f conftest.ts?
4182 # (end _am_filesystem_timestamp_resolution)
4183 ;;
4184 esac
4185 fi
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4187 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4188
4189 # This check should not be cached, as it may vary across builds of
4190 # different projects.
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4192 printf %s "checking whether build environment is sane... " >&6; }
4193 # Reject unsafe characters in $srcdir or the absolute working directory
4194 # name. Accept space and tab only in the latter.
4195 am_lf='
4196 '
4197 case `pwd` in
4198 *[\\\"\#\$\&\'\`$am_lf]*)
4199 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4200 esac
4201 case $srcdir in
4202 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4203 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4204 esac
4205
4206 # Do 'set' in a subshell so we don't clobber the current shell's
4207 # arguments. Must try -L first in case configure is actually a
4208 # symlink; some systems play weird games with the mod time of symlinks
4209 # (eg FreeBSD returns the mod time of the symlink's containing
4210 # directory).
4211 am_build_env_is_sane=no
4212 am_has_slept=no
4213 rm -f conftest.file
4214 for am_try in 1 2; do
4215 echo "timestamp, slept: $am_has_slept" > conftest.file
4216 if (
4217 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4218 if test "$*" = "X"; then
4219 # -L didn't work.
4220 set X `ls -t "$srcdir/configure" conftest.file`
4221 fi
4222 test "$2" = conftest.file
4223 ); then
4224 am_build_env_is_sane=yes
4225 break
4226 fi
4227 # Just in case.
4228 sleep "$am_cv_filesystem_timestamp_resolution"
4229 am_has_slept=yes
4230 done
4231
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4233 printf "%s\n" "$am_build_env_is_sane" >&6; }
4234 if test "$am_build_env_is_sane" = no; then
4235 as_fn_error $? "newly created file is older than distributed files!
4236 Check your system clock" "$LINENO" 5
4237 fi
4238
4239 # If we didn't sleep, we still need to ensure time stamps of config.status and
4240 # generated files are strictly newer.
4241 am_sleep_pid=
4242 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4243 then :
4244
4245 else case e in #(
4246 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4247 am_sleep_pid=$!
4248 ;;
4249 esac
4250 fi
4251
4252 rm -f conftest.file
4253
4254 test "$program_prefix" != NONE &&
4255 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4256 # Use a double $ so make ignores it.
4257 test "$program_suffix" != NONE &&
4258 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4259 # Double any \ or $.
4260 # By default was 's,x,x', remove it if useless.
4261 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4262 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4263
4264
4265 if test x"${MISSING+set}" != xset; then
4266 MISSING="\${SHELL} '$am_aux_dir/missing'"
4267 fi
4268 # Use eval to expand $SHELL
4269 if eval "$MISSING --is-lightweight"; then
4270 am_missing_run="$MISSING "
4271 else
4272 am_missing_run=
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4274 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4275 fi
4276
4277 if test x"${install_sh+set}" != xset; then
4278 case $am_aux_dir in
4279 *\ * | *\ *)
4280 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4281 *)
4282 install_sh="\${SHELL} $am_aux_dir/install-sh"
4283 esac
4284 fi
4285
4286 # Installed binaries are usually stripped using 'strip' when the user
4287 # run "make install-strip". However 'strip' might not be the right
4288 # tool to use in cross-compilation environments, therefore Automake
4289 # will honor the 'STRIP' environment variable to overrule this program.
4290 if test "$cross_compiling" != no; then
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}strip; ac_word=$2
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 printf %s "checking for $ac_word... " >&6; }
4296 if test ${ac_cv_prog_STRIP+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else case e in #(
4300 e) if test -n "$STRIP"; then
4301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306 IFS=$as_save_IFS
4307 case $as_dir in #(((
4308 '') as_dir=./ ;;
4309 */) ;;
4310 *) as_dir=$as_dir/ ;;
4311 esac
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318 done
4319 done
4320 IFS=$as_save_IFS
4321
4322 fi ;;
4323 esac
4324 fi
4325 STRIP=$ac_cv_prog_STRIP
4326 if test -n "$STRIP"; then
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4328 printf "%s\n" "$STRIP" >&6; }
4329 else
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 printf "%s\n" "no" >&6; }
4332 fi
4333
4334
4335 fi
4336 if test -z "$ac_cv_prog_STRIP"; then
4337 ac_ct_STRIP=$STRIP
4338 # Extract the first word of "strip", so it can be a program name with args.
4339 set dummy strip; ac_word=$2
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 printf %s "checking for $ac_word... " >&6; }
4342 if test ${ac_cv_prog_ac_ct_STRIP+y}
4343 then :
4344 printf %s "(cached) " >&6
4345 else case e in #(
4346 e) if test -n "$ac_ct_STRIP"; then
4347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 case $as_dir in #(((
4354 '') as_dir=./ ;;
4355 */) ;;
4356 *) as_dir=$as_dir/ ;;
4357 esac
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_ac_ct_STRIP="strip"
4361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi ;;
4369 esac
4370 fi
4371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4372 if test -n "$ac_ct_STRIP"; then
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4374 printf "%s\n" "$ac_ct_STRIP" >&6; }
4375 else
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 printf "%s\n" "no" >&6; }
4378 fi
4379
4380 if test "x$ac_ct_STRIP" = x; then
4381 STRIP=":"
4382 else
4383 case $cross_compiling:$ac_tool_warned in
4384 yes:)
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387 ac_tool_warned=yes ;;
4388 esac
4389 STRIP=$ac_ct_STRIP
4390 fi
4391 else
4392 STRIP="$ac_cv_prog_STRIP"
4393 fi
4394
4395 fi
4396 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4397
4398
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4400 printf %s "checking for a race-free mkdir -p... " >&6; }
4401 if test -z "$MKDIR_P"; then
4402 if test ${ac_cv_path_mkdir+y}
4403 then :
4404 printf %s "(cached) " >&6
4405 else case e in #(
4406 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4408 do
4409 IFS=$as_save_IFS
4410 case $as_dir in #(((
4411 '') as_dir=./ ;;
4412 */) ;;
4413 *) as_dir=$as_dir/ ;;
4414 esac
4415 for ac_prog in mkdir gmkdir; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4418 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4419 'mkdir ('*'coreutils) '* | \
4420 *'BusyBox '* | \
4421 'mkdir (fileutils) '4.1*)
4422 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4423 break 3;;
4424 esac
4425 done
4426 done
4427 done
4428 IFS=$as_save_IFS
4429 ;;
4430 esac
4431 fi
4432
4433 test -d ./--version && rmdir ./--version
4434 if test ${ac_cv_path_mkdir+y}; then
4435 MKDIR_P="$ac_cv_path_mkdir -p"
4436 else
4437 # As a last resort, use plain mkdir -p,
4438 # in the hope it doesn't have the bugs of ancient mkdir.
4439 MKDIR_P='mkdir -p'
4440 fi
4441 fi
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4443 printf "%s\n" "$MKDIR_P" >&6; }
4444
4445 for ac_prog in gawk mawk nawk awk
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 printf %s "checking for $ac_word... " >&6; }
4451 if test ${ac_cv_prog_AWK+y}
4452 then :
4453 printf %s "(cached) " >&6
4454 else case e in #(
4455 e) if test -n "$AWK"; then
4456 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461 IFS=$as_save_IFS
4462 case $as_dir in #(((
4463 '') as_dir=./ ;;
4464 */) ;;
4465 *) as_dir=$as_dir/ ;;
4466 esac
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4469 ac_cv_prog_AWK="$ac_prog"
4470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 fi ;;
4478 esac
4479 fi
4480 AWK=$ac_cv_prog_AWK
4481 if test -n "$AWK"; then
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4483 printf "%s\n" "$AWK" >&6; }
4484 else
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 printf "%s\n" "no" >&6; }
4487 fi
4488
4489
4490 test -n "$AWK" && break
4491 done
4492
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4494 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4495 set x ${MAKE-make}
4496 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4497 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4498 then :
4499 printf %s "(cached) " >&6
4500 else case e in #(
4501 e) cat >conftest.make <<\_ACEOF
4502 SHELL = /bin/sh
4503 all:
4504 @echo '@@@%%%=$(MAKE)=@@@%%%'
4505 _ACEOF
4506 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4508 *@@@%%%=?*=@@@%%%*)
4509 eval ac_cv_prog_make_${ac_make}_set=yes;;
4510 *)
4511 eval ac_cv_prog_make_${ac_make}_set=no;;
4512 esac
4513 rm -f conftest.make ;;
4514 esac
4515 fi
4516 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518 printf "%s\n" "yes" >&6; }
4519 SET_MAKE=
4520 else
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 printf "%s\n" "no" >&6; }
4523 SET_MAKE="MAKE=${MAKE-make}"
4524 fi
4525
4526 rm -rf .tst 2>/dev/null
4527 mkdir .tst 2>/dev/null
4528 if test -d .tst; then
4529 am__leading_dot=.
4530 else
4531 am__leading_dot=_
4532 fi
4533 rmdir .tst 2>/dev/null
4534
4535 DEPDIR="${am__leading_dot}deps"
4536
4537 ac_config_commands="$ac_config_commands depfiles"
4538
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4540 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4541 cat > confinc.mk << 'END'
4542 am__doit:
4543 @echo this is the am__doit target >confinc.out
4544 .PHONY: am__doit
4545 END
4546 am__include="#"
4547 am__quote=
4548 # BSD make does it like this.
4549 echo '.include "confinc.mk" # ignored' > confmf.BSD
4550 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4551 echo 'include confinc.mk # ignored' > confmf.GNU
4552 _am_result=no
4553 for s in GNU BSD; do
4554 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4555 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }
4559 case $?:`cat confinc.out 2>/dev/null` in #(
4560 '0:this is the am__doit target') :
4561 case $s in #(
4562 BSD) :
4563 am__include='.include' am__quote='"' ;; #(
4564 *) :
4565 am__include='include' am__quote='' ;;
4566 esac ;; #(
4567 *) :
4568 ;;
4569 esac
4570 if test "$am__include" != "#"; then
4571 _am_result="yes ($s style)"
4572 break
4573 fi
4574 done
4575 rm -f confinc.* confmf.*
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4577 printf "%s\n" "${_am_result}" >&6; }
4578
4579 # Check whether --enable-dependency-tracking was given.
4580 if test ${enable_dependency_tracking+y}
4581 then :
4582 enableval=$enable_dependency_tracking;
4583 fi
4584
4585 if test "x$enable_dependency_tracking" != xno; then
4586 am_depcomp="$ac_aux_dir/depcomp"
4587 AMDEPBACKSLASH='\'
4588 am__nodep='_no'
4589 fi
4590 if test "x$enable_dependency_tracking" != xno; then
4591 AMDEP_TRUE=
4592 AMDEP_FALSE='#'
4593 else
4594 AMDEP_TRUE='#'
4595 AMDEP_FALSE=
4596 fi
4597
4598
4599 AM_DEFAULT_VERBOSITY=1
4600 # Check whether --enable-silent-rules was given.
4601 if test ${enable_silent_rules+y}
4602 then :
4603 enableval=$enable_silent_rules;
4604 fi
4605
4606 am_make=${MAKE-make}
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4608 printf %s "checking whether $am_make supports nested variables... " >&6; }
4609 if test ${am_cv_make_support_nested_variables+y}
4610 then :
4611 printf %s "(cached) " >&6
4612 else case e in #(
4613 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4614 BAR0=false
4615 BAR1=true
4616 V=1
4617 am__doit:
4618 @$(TRUE)
4619 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4620 am_cv_make_support_nested_variables=yes
4621 else
4622 am_cv_make_support_nested_variables=no
4623 fi ;;
4624 esac
4625 fi
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4627 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4628 AM_BACKSLASH='\'
4629
4630 am__rm_f_notfound=
4631 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4632 then :
4633
4634 else case e in #(
4635 e) am__rm_f_notfound='""' ;;
4636 esac
4637 fi
4638
4639
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4641 printf %s "checking xargs -n works... " >&6; }
4642 if test ${am_cv_xargs_n_works+y}
4643 then :
4644 printf %s "(cached) " >&6
4645 else case e in #(
4646 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4647 3"
4648 then :
4649 am_cv_xargs_n_works=yes
4650 else case e in #(
4651 e) am_cv_xargs_n_works=no ;;
4652 esac
4653 fi ;;
4654 esac
4655 fi
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4657 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4658 if test "$am_cv_xargs_n_works" = yes
4659 then :
4660 am__xargs_n='xargs -n'
4661 else case e in #(
4662 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4663 ;;
4664 esac
4665 fi
4666
4667 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4668 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4669 # is not polluted with repeated "-I."
4670 am__isrc=' -I$(srcdir)'
4671 # test to see if srcdir already configured
4672 if test -f $srcdir/config.status; then
4673 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4674 fi
4675 fi
4676
4677 # test whether we have cygpath
4678 if test -z "$CYGPATH_W"; then
4679 if (cygpath --version) >/dev/null 2>/dev/null; then
4680 CYGPATH_W='cygpath -w'
4681 else
4682 CYGPATH_W=echo
4683 fi
4684 fi
4685
4686
4687 # Define the identity of the package.
4688 PACKAGE='libXau'
4689 VERSION='1.0.12'
4690
4691
4692 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4693
4694
4695 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4696
4697 # Some tools Automake needs.
4698
4699 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4700
4701
4702 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4703
4704
4705 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4706
4707
4708 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4709
4710
4711 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4712
4713 # For better backward compatibility. To be removed once Automake 1.9.x
4714 # dies out for good. For more background, see:
4715 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4716 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4717 mkdir_p='$(MKDIR_P)'
4718
4719 # We need awk for the "check" target (and possibly the TAP driver). The
4720 # system "awk" is bad on some platforms.
4721 # Always define AMTAR for backward compatibility. Yes, it's still used
4722 # in the wild :-( We should find a proper way to deprecate it ...
4723 AMTAR='$${TAR-tar}'
4724
4725
4726 # We'll loop over all known methods to create a tar archive until one works.
4727 _am_tools='gnutar pax cpio none'
4728
4729 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4730
4731
4732
4733
4734
4735 depcc="$CC" am_compiler_list=
4736
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4738 printf %s "checking dependency style of $depcc... " >&6; }
4739 if test ${am_cv_CC_dependencies_compiler_type+y}
4740 then :
4741 printf %s "(cached) " >&6
4742 else case e in #(
4743 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4744 # We make a subdir and do the tests there. Otherwise we can end up
4745 # making bogus files that we don't know about and never remove. For
4746 # instance it was reported that on HP-UX the gcc test will end up
4747 # making a dummy file named 'D' -- because '-MD' means "put the output
4748 # in D".
4749 rm -rf conftest.dir
4750 mkdir conftest.dir
4751 # Copy depcomp to subdir because otherwise we won't find it if we're
4752 # using a relative directory.
4753 cp "$am_depcomp" conftest.dir
4754 cd conftest.dir
4755 # We will build objects and dependencies in a subdirectory because
4756 # it helps to detect inapplicable dependency modes. For instance
4757 # both Tru64's cc and ICC support -MD to output dependencies as a
4758 # side effect of compilation, but ICC will put the dependencies in
4759 # the current directory while Tru64 will put them in the object
4760 # directory.
4761 mkdir sub
4762
4763 am_cv_CC_dependencies_compiler_type=none
4764 if test "$am_compiler_list" = ""; then
4765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4766 fi
4767 am__universal=false
4768 case " $depcc " in #(
4769 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4770 esac
4771
4772 for depmode in $am_compiler_list; do
4773 # Setup a source with many dependencies, because some compilers
4774 # like to wrap large dependency lists on column 80 (with \), and
4775 # we should not choose a depcomp mode which is confused by this.
4776 #
4777 # We need to recreate these files for each test, as the compiler may
4778 # overwrite some of them when testing with obscure command lines.
4779 # This happens at least with the AIX C compiler.
4780 : > sub/conftest.c
4781 for i in 1 2 3 4 5 6; do
4782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4783 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4784 # Solaris 10 /bin/sh.
4785 echo '/* dummy */' > sub/conftst$i.h
4786 done
4787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4788
4789 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4790 # mode. It turns out that the SunPro C++ compiler does not properly
4791 # handle '-M -o', and we need to detect this. Also, some Intel
4792 # versions had trouble with output in subdirs.
4793 am__obj=sub/conftest.${OBJEXT-o}
4794 am__minus_obj="-o $am__obj"
4795 case $depmode in
4796 gcc)
4797 # This depmode causes a compiler race in universal mode.
4798 test "$am__universal" = false || continue
4799 ;;
4800 nosideeffect)
4801 # After this tag, mechanisms are not by side-effect, so they'll
4802 # only be used when explicitly requested.
4803 if test "x$enable_dependency_tracking" = xyes; then
4804 continue
4805 else
4806 break
4807 fi
4808 ;;
4809 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4810 # This compiler won't grok '-c -o', but also, the minuso test has
4811 # not run yet. These depmodes are late enough in the game, and
4812 # so weak that their functioning should not be impacted.
4813 am__obj=conftest.${OBJEXT-o}
4814 am__minus_obj=
4815 ;;
4816 none) break ;;
4817 esac
4818 if depmode=$depmode \
4819 source=sub/conftest.c object=$am__obj \
4820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4822 >/dev/null 2>conftest.err &&
4823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4827 # icc doesn't choke on unknown options, it will just issue warnings
4828 # or remarks (even with -Werror). So we grep stderr for any message
4829 # that says an option was ignored or not supported.
4830 # When given -MP, icc 7.0 and 7.1 complain thus:
4831 # icc: Command line warning: ignoring option '-M'; no argument required
4832 # The diagnosis changed in icc 8.0:
4833 # icc: Command line remark: option '-MP' not supported
4834 if (grep 'ignoring option' conftest.err ||
4835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4836 am_cv_CC_dependencies_compiler_type=$depmode
4837 break
4838 fi
4839 fi
4840 done
4841
4842 cd ..
4843 rm -rf conftest.dir
4844 else
4845 am_cv_CC_dependencies_compiler_type=none
4846 fi
4847 ;;
4848 esac
4849 fi
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4851 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4852 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4853
4854 if
4855 test "x$enable_dependency_tracking" != xno \
4856 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4857 am__fastdepCC_TRUE=
4858 am__fastdepCC_FALSE='#'
4859 else
4860 am__fastdepCC_TRUE='#'
4861 am__fastdepCC_FALSE=
4862 fi
4863
4864
4865 # Variables for tags utilities; see am/tags.am
4866 if test -z "$CTAGS"; then
4867 CTAGS=ctags
4868 fi
4869
4870 if test -z "$ETAGS"; then
4871 ETAGS=etags
4872 fi
4873
4874 if test -z "$CSCOPE"; then
4875 CSCOPE=cscope
4876 fi
4877
4878
4879
4880
4881
4882
4883
4884
4885 # Initialize libtool
4886 case `pwd` in
4887 *\ * | *\ *)
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4889 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4890 esac
4891
4892
4893
4894 macro_version='2.5.4'
4895 macro_revision='2.5.4'
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 ltmain=$ac_aux_dir/ltmain.sh
4911
4912
4913
4914 # Make sure we can run config.sub.
4915 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4916 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4917
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4919 printf %s "checking build system type... " >&6; }
4920 if test ${ac_cv_build+y}
4921 then :
4922 printf %s "(cached) " >&6
4923 else case e in #(
4924 e) ac_build_alias=$build_alias
4925 test "x$ac_build_alias" = x &&
4926 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4927 test "x$ac_build_alias" = x &&
4928 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4929 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4930 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4931 ;;
4932 esac
4933 fi
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4935 printf "%s\n" "$ac_cv_build" >&6; }
4936 case $ac_cv_build in
4937 *-*-*) ;;
4938 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4939 esac
4940 build=$ac_cv_build
4941 ac_save_IFS=$IFS; IFS='-'
4942 set x $ac_cv_build
4943 shift
4944 build_cpu=$1
4945 build_vendor=$2
4946 shift; shift
4947 # Remember, the first character of IFS is used to create $*,
4948 # except with old shells:
4949 build_os=$*
4950 IFS=$ac_save_IFS
4951 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4952
4953
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4955 printf %s "checking host system type... " >&6; }
4956 if test ${ac_cv_host+y}
4957 then :
4958 printf %s "(cached) " >&6
4959 else case e in #(
4960 e) if test "x$host_alias" = x; then
4961 ac_cv_host=$ac_cv_build
4962 else
4963 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4964 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4965 fi
4966 ;;
4967 esac
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4970 printf "%s\n" "$ac_cv_host" >&6; }
4971 case $ac_cv_host in
4972 *-*-*) ;;
4973 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4974 esac
4975 host=$ac_cv_host
4976 ac_save_IFS=$IFS; IFS='-'
4977 set x $ac_cv_host
4978 shift
4979 host_cpu=$1
4980 host_vendor=$2
4981 shift; shift
4982 # Remember, the first character of IFS is used to create $*,
4983 # except with old shells:
4984 host_os=$*
4985 IFS=$ac_save_IFS
4986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4987
4988
4989 # Backslashify metacharacters that are still active within
4990 # double-quoted strings.
4991 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4992
4993 # Same as above, but do not quote variable references.
4994 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4995
4996 # Sed substitution to delay expansion of an escaped shell variable in a
4997 # double_quote_subst'ed string.
4998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4999
5000 # Sed substitution to delay expansion of an escaped single quote.
5001 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5002
5003 # Sed substitution to avoid accidental globbing in evaled expressions
5004 no_glob_subst='s/\*/\\\*/g'
5005
5006 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5009
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5011 printf %s "checking how to print strings... " >&6; }
5012 # Test print first, because it will be a builtin if present.
5013 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5014 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5015 ECHO='print -r --'
5016 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5017 ECHO='printf %s\n'
5018 else
5019 # Use this function as a fallback that always works.
5020 func_fallback_echo ()
5021 {
5022 eval 'cat <<_LTECHO_EOF
5023 $1
5024 _LTECHO_EOF'
5025 }
5026 ECHO='func_fallback_echo'
5027 fi
5028
5029 # func_echo_all arg...
5030 # Invoke $ECHO with all args, space-separated.
5031 func_echo_all ()
5032 {
5033 $ECHO ""
5034 }
5035
5036 case $ECHO in
5037 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5038 printf "%s\n" "printf" >&6; } ;;
5039 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5040 printf "%s\n" "print -r" >&6; } ;;
5041 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5042 printf "%s\n" "cat" >&6; } ;;
5043 esac
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5059 printf %s "checking for a sed that does not truncate output... " >&6; }
5060 if test ${ac_cv_path_SED+y}
5061 then :
5062 printf %s "(cached) " >&6
5063 else case e in #(
5064 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5065 for ac_i in 1 2 3 4 5 6 7; do
5066 ac_script="$ac_script$as_nl$ac_script"
5067 done
5068 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5069 { ac_script=; unset ac_script;}
5070 if test -z "$SED"; then
5071 ac_path_SED_found=false
5072 # Loop through the user's path and test for each of PROGNAME-LIST
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076 IFS=$as_save_IFS
5077 case $as_dir in #(((
5078 '') as_dir=./ ;;
5079 */) ;;
5080 *) as_dir=$as_dir/ ;;
5081 esac
5082 for ac_prog in sed gsed
5083 do
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5086 as_fn_executable_p "$ac_path_SED" || continue
5087 # Check for GNU ac_path_SED and select it if it is found.
5088 # Check for GNU $ac_path_SED
5089 case `"$ac_path_SED" --version 2>&1` in #(
5090 *GNU*)
5091 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5092 #(
5093 *)
5094 ac_count=0
5095 printf %s 0123456789 >"conftest.in"
5096 while :
5097 do
5098 cat "conftest.in" "conftest.in" >"conftest.tmp"
5099 mv "conftest.tmp" "conftest.in"
5100 cp "conftest.in" "conftest.nl"
5101 printf "%s\n" '' >> "conftest.nl"
5102 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5104 as_fn_arith $ac_count + 1 && ac_count=$as_val
5105 if test $ac_count -gt ${ac_path_SED_max-0}; then
5106 # Best one so far, save it but keep looking for a better one
5107 ac_cv_path_SED="$ac_path_SED"
5108 ac_path_SED_max=$ac_count
5109 fi
5110 # 10*(2^10) chars as input seems more than enough
5111 test $ac_count -gt 10 && break
5112 done
5113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5114 esac
5115
5116 $ac_path_SED_found && break 3
5117 done
5118 done
5119 done
5120 IFS=$as_save_IFS
5121 if test -z "$ac_cv_path_SED"; then
5122 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5123 fi
5124 else
5125 ac_cv_path_SED=$SED
5126 fi
5127 ;;
5128 esac
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5131 printf "%s\n" "$ac_cv_path_SED" >&6; }
5132 SED="$ac_cv_path_SED"
5133 rm -f conftest.sed
5134
5135 test -z "$SED" && SED=sed
5136 Xsed="$SED -e 1s/^X//"
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5149 printf %s "checking for grep that handles long lines and -e... " >&6; }
5150 if test ${ac_cv_path_GREP+y}
5151 then :
5152 printf %s "(cached) " >&6
5153 else case e in #(
5154 e) if test -z "$GREP"; then
5155 ac_path_GREP_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5159 do
5160 IFS=$as_save_IFS
5161 case $as_dir in #(((
5162 '') as_dir=./ ;;
5163 */) ;;
5164 *) as_dir=$as_dir/ ;;
5165 esac
5166 for ac_prog in grep ggrep
5167 do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5170 as_fn_executable_p "$ac_path_GREP" || continue
5171 # Check for GNU ac_path_GREP and select it if it is found.
5172 # Check for GNU $ac_path_GREP
5173 case `"$ac_path_GREP" --version 2>&1` in #(
5174 *GNU*)
5175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5176 #(
5177 *)
5178 ac_count=0
5179 printf %s 0123456789 >"conftest.in"
5180 while :
5181 do
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 printf "%s\n" 'GREP' >> "conftest.nl"
5186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_GREP="$ac_path_GREP"
5192 ac_path_GREP_max=$ac_count
5193 fi
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5196 done
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 esac
5199
5200 $ac_path_GREP_found && break 3
5201 done
5202 done
5203 done
5204 IFS=$as_save_IFS
5205 if test -z "$ac_cv_path_GREP"; then
5206 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207 fi
5208 else
5209 ac_cv_path_GREP=$GREP
5210 fi
5211 ;;
5212 esac
5213 fi
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5215 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5216 GREP="$ac_cv_path_GREP"
5217
5218
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5220 printf %s "checking for egrep... " >&6; }
5221 if test ${ac_cv_path_EGREP+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else case e in #(
5225 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5226 then ac_cv_path_EGREP="$GREP -E"
5227 else
5228 if test -z "$EGREP"; then
5229 ac_path_EGREP_found=false
5230 # Loop through the user's path and test for each of PROGNAME-LIST
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5233 do
5234 IFS=$as_save_IFS
5235 case $as_dir in #(((
5236 '') as_dir=./ ;;
5237 */) ;;
5238 *) as_dir=$as_dir/ ;;
5239 esac
5240 for ac_prog in egrep
5241 do
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5244 as_fn_executable_p "$ac_path_EGREP" || continue
5245 # Check for GNU ac_path_EGREP and select it if it is found.
5246 # Check for GNU $ac_path_EGREP
5247 case `"$ac_path_EGREP" --version 2>&1` in #(
5248 *GNU*)
5249 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5250 #(
5251 *)
5252 ac_count=0
5253 printf %s 0123456789 >"conftest.in"
5254 while :
5255 do
5256 cat "conftest.in" "conftest.in" >"conftest.tmp"
5257 mv "conftest.tmp" "conftest.in"
5258 cp "conftest.in" "conftest.nl"
5259 printf "%s\n" 'EGREP' >> "conftest.nl"
5260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5262 as_fn_arith $ac_count + 1 && ac_count=$as_val
5263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5264 # Best one so far, save it but keep looking for a better one
5265 ac_cv_path_EGREP="$ac_path_EGREP"
5266 ac_path_EGREP_max=$ac_count
5267 fi
5268 # 10*(2^10) chars as input seems more than enough
5269 test $ac_count -gt 10 && break
5270 done
5271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5272 esac
5273
5274 $ac_path_EGREP_found && break 3
5275 done
5276 done
5277 done
5278 IFS=$as_save_IFS
5279 if test -z "$ac_cv_path_EGREP"; then
5280 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281 fi
5282 else
5283 ac_cv_path_EGREP=$EGREP
5284 fi
5285
5286 fi ;;
5287 esac
5288 fi
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5290 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5291 EGREP="$ac_cv_path_EGREP"
5292
5293 EGREP_TRADITIONAL=$EGREP
5294 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5295
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5297 printf %s "checking for fgrep... " >&6; }
5298 if test ${ac_cv_path_FGREP+y}
5299 then :
5300 printf %s "(cached) " >&6
5301 else case e in #(
5302 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5303 then ac_cv_path_FGREP="$GREP -F"
5304 else
5305 if test -z "$FGREP"; then
5306 ac_path_FGREP_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5310 do
5311 IFS=$as_save_IFS
5312 case $as_dir in #(((
5313 '') as_dir=./ ;;
5314 */) ;;
5315 *) as_dir=$as_dir/ ;;
5316 esac
5317 for ac_prog in fgrep
5318 do
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5321 as_fn_executable_p "$ac_path_FGREP" || continue
5322 # Check for GNU ac_path_FGREP and select it if it is found.
5323 # Check for GNU $ac_path_FGREP
5324 case `"$ac_path_FGREP" --version 2>&1` in #(
5325 *GNU*)
5326 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5327 #(
5328 *)
5329 ac_count=0
5330 printf %s 0123456789 >"conftest.in"
5331 while :
5332 do
5333 cat "conftest.in" "conftest.in" >"conftest.tmp"
5334 mv "conftest.tmp" "conftest.in"
5335 cp "conftest.in" "conftest.nl"
5336 printf "%s\n" 'FGREP' >> "conftest.nl"
5337 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339 as_fn_arith $ac_count + 1 && ac_count=$as_val
5340 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5341 # Best one so far, save it but keep looking for a better one
5342 ac_cv_path_FGREP="$ac_path_FGREP"
5343 ac_path_FGREP_max=$ac_count
5344 fi
5345 # 10*(2^10) chars as input seems more than enough
5346 test $ac_count -gt 10 && break
5347 done
5348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349 esac
5350
5351 $ac_path_FGREP_found && break 3
5352 done
5353 done
5354 done
5355 IFS=$as_save_IFS
5356 if test -z "$ac_cv_path_FGREP"; then
5357 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5358 fi
5359 else
5360 ac_cv_path_FGREP=$FGREP
5361 fi
5362
5363 fi ;;
5364 esac
5365 fi
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5367 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5368 FGREP="$ac_cv_path_FGREP"
5369
5370
5371 test -z "$GREP" && GREP=grep
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391 # Check whether --with-gnu-ld was given.
5392 if test ${with_gnu_ld+y}
5393 then :
5394 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5395 else case e in #(
5396 e) with_gnu_ld=no ;;
5397 esac
5398 fi
5399
5400 ac_prog=ld
5401 if test yes = "$GCC"; then
5402 # Check if gcc -print-prog-name=ld gives a path.
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5404 printf %s "checking for ld used by $CC... " >&6; }
5405 case $host in
5406 *-*-mingw* | *-*-windows*)
5407 # gcc leaves a trailing carriage return, which upsets mingw
5408 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5409 *)
5410 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5411 esac
5412 case $ac_prog in
5413 # Accept absolute paths.
5414 [\\/]* | ?:[\\/]*)
5415 re_direlt='/[^/][^/]*/\.\./'
5416 # Canonicalize the pathname of ld
5417 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5418 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5419 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5420 done
5421 test -z "$LD" && LD=$ac_prog
5422 ;;
5423 "")
5424 # If it fails, then pretend we aren't using GCC.
5425 ac_prog=ld
5426 ;;
5427 *)
5428 # If it is relative, then search for the first ld in PATH.
5429 with_gnu_ld=unknown
5430 ;;
5431 esac
5432 elif test yes = "$with_gnu_ld"; then
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5434 printf %s "checking for GNU ld... " >&6; }
5435 else
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5437 printf %s "checking for non-GNU ld... " >&6; }
5438 fi
5439 if test ${lt_cv_path_LD+y}
5440 then :
5441 printf %s "(cached) " >&6
5442 else case e in #(
5443 e) if test -z "$LD"; then
5444 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5445 for ac_dir in $PATH; do
5446 IFS=$lt_save_ifs
5447 test -z "$ac_dir" && ac_dir=.
5448 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5449 lt_cv_path_LD=$ac_dir/$ac_prog
5450 # Check to see if the program is GNU ld. I'd rather use --version,
5451 # but apparently some variants of GNU ld only accept -v.
5452 # Break only if it was the GNU/non-GNU ld that we prefer.
5453 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5454 *GNU* | *'with BFD'*)
5455 test no != "$with_gnu_ld" && break
5456 ;;
5457 *)
5458 test yes != "$with_gnu_ld" && break
5459 ;;
5460 esac
5461 fi
5462 done
5463 IFS=$lt_save_ifs
5464 else
5465 lt_cv_path_LD=$LD # Let the user override the test with a path.
5466 fi ;;
5467 esac
5468 fi
5469
5470 LD=$lt_cv_path_LD
5471 if test -n "$LD"; then
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5473 printf "%s\n" "$LD" >&6; }
5474 else
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 printf "%s\n" "no" >&6; }
5477 fi
5478 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5480 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5481 if test ${lt_cv_prog_gnu_ld+y}
5482 then :
5483 printf %s "(cached) " >&6
5484 else case e in #(
5485 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5486 case `$LD -v 2>&1 </dev/null` in
5487 *GNU* | *'with BFD'*)
5488 lt_cv_prog_gnu_ld=yes
5489 ;;
5490 *)
5491 lt_cv_prog_gnu_ld=no
5492 ;;
5493 esac ;;
5494 esac
5495 fi
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5497 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5498 with_gnu_ld=$lt_cv_prog_gnu_ld
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5509 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5510 if test ${lt_cv_path_NM+y}
5511 then :
5512 printf %s "(cached) " >&6
5513 else case e in #(
5514 e) if test -n "$NM"; then
5515 # Let the user override the test.
5516 lt_cv_path_NM=$NM
5517 else
5518 lt_nm_to_check=${ac_tool_prefix}nm
5519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5520 lt_nm_to_check="$lt_nm_to_check nm"
5521 fi
5522 for lt_tmp_nm in $lt_nm_to_check; do
5523 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5525 IFS=$lt_save_ifs
5526 test -z "$ac_dir" && ac_dir=.
5527 tmp_nm=$ac_dir/$lt_tmp_nm
5528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5529 # Check to see if the nm accepts a BSD-compat flag.
5530 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5531 # nm: unknown option "B" ignored
5532 # Tru64's nm complains that /dev/null is an invalid object file
5533 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5534 case $build_os in
5535 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5536 *) lt_bad_file=/dev/null ;;
5537 esac
5538 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5539 *$lt_bad_file* | *'Invalid file or object type'*)
5540 lt_cv_path_NM="$tmp_nm -B"
5541 break 2
5542 ;;
5543 *)
5544 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5545 */dev/null*)
5546 lt_cv_path_NM="$tmp_nm -p"
5547 break 2
5548 ;;
5549 *)
5550 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5551 continue # so that we can try to find one that supports BSD flags
5552 ;;
5553 esac
5554 ;;
5555 esac
5556 fi
5557 done
5558 IFS=$lt_save_ifs
5559 done
5560 : ${lt_cv_path_NM=no}
5561 fi ;;
5562 esac
5563 fi
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5565 printf "%s\n" "$lt_cv_path_NM" >&6; }
5566 if test no != "$lt_cv_path_NM"; then
5567 NM=$lt_cv_path_NM
5568 else
5569 # Didn't find any BSD compatible name lister, look for dumpbin.
5570 if test -n "$DUMPBIN"; then :
5571 # Let the user override the test.
5572 else
5573 if test -n "$ac_tool_prefix"; then
5574 for ac_prog in dumpbin "link -dump"
5575 do
5576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 printf %s "checking for $ac_word... " >&6; }
5580 if test ${ac_cv_prog_DUMPBIN+y}
5581 then :
5582 printf %s "(cached) " >&6
5583 else case e in #(
5584 e) if test -n "$DUMPBIN"; then
5585 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590 IFS=$as_save_IFS
5591 case $as_dir in #(((
5592 '') as_dir=./ ;;
5593 */) ;;
5594 *) as_dir=$as_dir/ ;;
5595 esac
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5600 break 2
5601 fi
5602 done
5603 done
5604 IFS=$as_save_IFS
5605
5606 fi ;;
5607 esac
5608 fi
5609 DUMPBIN=$ac_cv_prog_DUMPBIN
5610 if test -n "$DUMPBIN"; then
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5612 printf "%s\n" "$DUMPBIN" >&6; }
5613 else
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 printf "%s\n" "no" >&6; }
5616 fi
5617
5618
5619 test -n "$DUMPBIN" && break
5620 done
5621 fi
5622 if test -z "$DUMPBIN"; then
5623 ac_ct_DUMPBIN=$DUMPBIN
5624 for ac_prog in dumpbin "link -dump"
5625 do
5626 # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 printf %s "checking for $ac_word... " >&6; }
5630 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5631 then :
5632 printf %s "(cached) " >&6
5633 else case e in #(
5634 e) if test -n "$ac_ct_DUMPBIN"; then
5635 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 case $as_dir in #(((
5642 '') as_dir=./ ;;
5643 */) ;;
5644 *) as_dir=$as_dir/ ;;
5645 esac
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi ;;
5657 esac
5658 fi
5659 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5660 if test -n "$ac_ct_DUMPBIN"; then
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5662 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5663 else
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 printf "%s\n" "no" >&6; }
5666 fi
5667
5668
5669 test -n "$ac_ct_DUMPBIN" && break
5670 done
5671
5672 if test "x$ac_ct_DUMPBIN" = x; then
5673 DUMPBIN=":"
5674 else
5675 case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5678 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679 ac_tool_warned=yes ;;
5680 esac
5681 DUMPBIN=$ac_ct_DUMPBIN
5682 fi
5683 fi
5684
5685 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5686 *COFF*)
5687 DUMPBIN="$DUMPBIN -symbols -headers"
5688 ;;
5689 *)
5690 DUMPBIN=:
5691 ;;
5692 esac
5693 fi
5694
5695 if test : != "$DUMPBIN"; then
5696 NM=$DUMPBIN
5697 fi
5698 fi
5699 test -z "$NM" && NM=nm
5700
5701
5702
5703
5704
5705
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5707 printf %s "checking the name lister ($NM) interface... " >&6; }
5708 if test ${lt_cv_nm_interface+y}
5709 then :
5710 printf %s "(cached) " >&6
5711 else case e in #(
5712 e) lt_cv_nm_interface="BSD nm"
5713 echo "int some_variable = 0;" > conftest.$ac_ext
5714 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5715 (eval "$ac_compile" 2>conftest.err)
5716 cat conftest.err >&5
5717 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5718 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5719 cat conftest.err >&5
5720 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5721 cat conftest.out >&5
5722 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5723 lt_cv_nm_interface="MS dumpbin"
5724 fi
5725 rm -f conftest* ;;
5726 esac
5727 fi
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5729 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5730
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5732 printf %s "checking whether ln -s works... " >&6; }
5733 LN_S=$as_ln_s
5734 if test "$LN_S" = "ln -s"; then
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736 printf "%s\n" "yes" >&6; }
5737 else
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5739 printf "%s\n" "no, using $LN_S" >&6; }
5740 fi
5741
5742 # find the maximum length of command line arguments
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5744 printf %s "checking the maximum length of command line arguments... " >&6; }
5745 if test ${lt_cv_sys_max_cmd_len+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else case e in #(
5749 e) i=0
5750 teststring=ABCD
5751
5752 case $build_os in
5753 msdosdjgpp*)
5754 # On DJGPP, this test can blow up pretty badly due to problems in libc
5755 # (any single argument exceeding 2000 bytes causes a buffer overrun
5756 # during glob expansion). Even if it were fixed, the result of this
5757 # check would be larger than it should be.
5758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5759 ;;
5760
5761 gnu* | ironclad*)
5762 # Under GNU Hurd and Ironclad, this test is not required because there
5763 # is no limit to the length of command line arguments.
5764 # Libtool will interpret -1 as no limit whatsoever
5765 lt_cv_sys_max_cmd_len=-1;
5766 ;;
5767
5768 cygwin* | mingw* | windows* | cegcc*)
5769 # On Win9x/ME, this test blows up -- it succeeds, but takes
5770 # about 5 minutes as the teststring grows exponentially.
5771 # Worse, since 9x/ME are not pre-emptively multitasking,
5772 # you end up with a "frozen" computer, even though with patience
5773 # the test eventually succeeds (with a max line length of 256k).
5774 # Instead, let's just punt: use the minimum linelength reported by
5775 # all of the supported platforms: 8192 (on NT/2K/XP).
5776 lt_cv_sys_max_cmd_len=8192;
5777 ;;
5778
5779 mint*)
5780 # On MiNT this can take a long time and run out of memory.
5781 lt_cv_sys_max_cmd_len=8192;
5782 ;;
5783
5784 amigaos*)
5785 # On AmigaOS with pdksh, this test takes hours, literally.
5786 # So we just punt and use a minimum line length of 8192.
5787 lt_cv_sys_max_cmd_len=8192;
5788 ;;
5789
5790 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5791 # This has been around since 386BSD, at least. Likely further.
5792 if test -x /sbin/sysctl; then
5793 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5794 elif test -x /usr/sbin/sysctl; then
5795 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5796 else
5797 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5798 fi
5799 # And add a safety zone
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802 ;;
5803
5804 interix*)
5805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5806 lt_cv_sys_max_cmd_len=196608
5807 ;;
5808
5809 os2*)
5810 # The test takes a long time on OS/2.
5811 lt_cv_sys_max_cmd_len=8192
5812 ;;
5813
5814 osf*)
5815 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5816 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5817 # nice to cause kernel panics so lets avoid the loop below.
5818 # First set a reasonable default.
5819 lt_cv_sys_max_cmd_len=16384
5820 #
5821 if test -x /sbin/sysconfig; then
5822 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5823 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5824 esac
5825 fi
5826 ;;
5827 sco3.2v5*)
5828 lt_cv_sys_max_cmd_len=102400
5829 ;;
5830 sysv5* | sco5v6* | sysv4.2uw2*)
5831 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5832 if test -n "$kargmax"; then
5833 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5834 else
5835 lt_cv_sys_max_cmd_len=32768
5836 fi
5837 ;;
5838 *)
5839 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5840 if test -n "$lt_cv_sys_max_cmd_len" && \
5841 test undefined != "$lt_cv_sys_max_cmd_len"; then
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844 else
5845 # Make teststring a little bigger before we do anything with it.
5846 # a 1K string should be a reasonable start.
5847 for i in 1 2 3 4 5 6 7 8; do
5848 teststring=$teststring$teststring
5849 done
5850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5851 # If test is not a shell built-in, we'll probably end up computing a
5852 # maximum length that is only half of the actual maximum length, but
5853 # we can't tell.
5854 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5855 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5856 test 17 != "$i" # 1/2 MB should be enough
5857 do
5858 i=`expr $i + 1`
5859 teststring=$teststring$teststring
5860 done
5861 # Only check the string length outside the loop.
5862 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5863 teststring=
5864 # Add a significant safety factor because C++ compilers can tack on
5865 # massive amounts of additional arguments before passing them to the
5866 # linker. It appears as though 1/2 is a usable value.
5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5868 fi
5869 ;;
5870 esac
5871 ;;
5872 esac
5873 fi
5874
5875 if test -n "$lt_cv_sys_max_cmd_len"; then
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5877 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5878 else
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5880 printf "%s\n" "none" >&6; }
5881 fi
5882 max_cmd_len=$lt_cv_sys_max_cmd_len
5883
5884
5885
5886
5887
5888
5889 : ${CP="cp -f"}
5890 : ${MV="mv -f"}
5891 : ${RM="rm -f"}
5892
5893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5894 lt_unset=unset
5895 else
5896 lt_unset=false
5897 fi
5898
5899
5900
5901
5902
5903 # test EBCDIC or ASCII
5904 case `echo X|tr X '\101'` in
5905 A) # ASCII based system
5906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5907 lt_SP2NL='tr \040 \012'
5908 lt_NL2SP='tr \015\012 \040\040'
5909 ;;
5910 *) # EBCDIC based system
5911 lt_SP2NL='tr \100 \n'
5912 lt_NL2SP='tr \r\n \100\100'
5913 ;;
5914 esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5925 printf %s "checking how to convert $build file names to $host format... " >&6; }
5926 if test ${lt_cv_to_host_file_cmd+y}
5927 then :
5928 printf %s "(cached) " >&6
5929 else case e in #(
5930 e) case $host in
5931 *-*-mingw* )
5932 case $build in
5933 *-*-mingw* | *-*-windows* ) # actually msys
5934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5935 ;;
5936 *-*-cygwin* )
5937 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5938 ;;
5939 * ) # otherwise, assume *nix
5940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5941 ;;
5942 esac
5943 ;;
5944 *-*-cygwin* )
5945 case $build in
5946 *-*-mingw* | *-*-windows* ) # actually msys
5947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5948 ;;
5949 *-*-cygwin* )
5950 lt_cv_to_host_file_cmd=func_convert_file_noop
5951 ;;
5952 * ) # otherwise, assume *nix
5953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5954 ;;
5955 esac
5956 ;;
5957 * ) # unhandled hosts (and "normal" native builds)
5958 lt_cv_to_host_file_cmd=func_convert_file_noop
5959 ;;
5960 esac
5961 ;;
5962 esac
5963 fi
5964
5965 to_host_file_cmd=$lt_cv_to_host_file_cmd
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5967 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5968
5969
5970
5971
5972
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5974 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5975 if test ${lt_cv_to_tool_file_cmd+y}
5976 then :
5977 printf %s "(cached) " >&6
5978 else case e in #(
5979 e) #assume ordinary cross tools, or native build.
5980 lt_cv_to_tool_file_cmd=func_convert_file_noop
5981 case $host in
5982 *-*-mingw* | *-*-windows* )
5983 case $build in
5984 *-*-mingw* | *-*-windows* ) # actually msys
5985 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5986 ;;
5987 esac
5988 ;;
5989 esac
5990 ;;
5991 esac
5992 fi
5993
5994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5996 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5997
5998
5999
6000
6001
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6003 printf %s "checking for $LD option to reload object files... " >&6; }
6004 if test ${lt_cv_ld_reload_flag+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else case e in #(
6008 e) lt_cv_ld_reload_flag='-r' ;;
6009 esac
6010 fi
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6012 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6013 reload_flag=$lt_cv_ld_reload_flag
6014 case $reload_flag in
6015 "" | " "*) ;;
6016 *) reload_flag=" $reload_flag" ;;
6017 esac
6018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6019 case $host_os in
6020 cygwin* | mingw* | windows* | pw32* | cegcc*)
6021 if test yes != "$GCC"; then
6022 reload_cmds=false
6023 fi
6024 ;;
6025 darwin*)
6026 if test yes = "$GCC"; then
6027 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6028 else
6029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030 fi
6031 ;;
6032 esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 # Extract the first word of "file", so it can be a program name with args.
6043 set dummy file; ac_word=$2
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 printf %s "checking for $ac_word... " >&6; }
6046 if test ${ac_cv_prog_FILECMD+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else case e in #(
6050 e) if test -n "$FILECMD"; then
6051 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 case $as_dir in #(((
6058 '') as_dir=./ ;;
6059 */) ;;
6060 *) as_dir=$as_dir/ ;;
6061 esac
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_FILECMD="file"
6065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6073 fi ;;
6074 esac
6075 fi
6076 FILECMD=$ac_cv_prog_FILECMD
6077 if test -n "$FILECMD"; then
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6079 printf "%s\n" "$FILECMD" >&6; }
6080 else
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 printf "%s\n" "no" >&6; }
6083 fi
6084
6085
6086
6087
6088
6089
6090
6091
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 printf %s "checking for $ac_word... " >&6; }
6097 if test ${ac_cv_prog_OBJDUMP+y}
6098 then :
6099 printf %s "(cached) " >&6
6100 else case e in #(
6101 e) if test -n "$OBJDUMP"; then
6102 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107 IFS=$as_save_IFS
6108 case $as_dir in #(((
6109 '') as_dir=./ ;;
6110 */) ;;
6111 *) as_dir=$as_dir/ ;;
6112 esac
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi ;;
6124 esac
6125 fi
6126 OBJDUMP=$ac_cv_prog_OBJDUMP
6127 if test -n "$OBJDUMP"; then
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6129 printf "%s\n" "$OBJDUMP" >&6; }
6130 else
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 printf "%s\n" "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$ac_cv_prog_OBJDUMP"; then
6138 ac_ct_OBJDUMP=$OBJDUMP
6139 # Extract the first word of "objdump", so it can be a program name with args.
6140 set dummy objdump; ac_word=$2
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 printf %s "checking for $ac_word... " >&6; }
6143 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6144 then :
6145 printf %s "(cached) " >&6
6146 else case e in #(
6147 e) if test -n "$ac_ct_OBJDUMP"; then
6148 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153 IFS=$as_save_IFS
6154 case $as_dir in #(((
6155 '') as_dir=./ ;;
6156 */) ;;
6157 *) as_dir=$as_dir/ ;;
6158 esac
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi ;;
6170 esac
6171 fi
6172 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6173 if test -n "$ac_ct_OBJDUMP"; then
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6175 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6176 else
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 printf "%s\n" "no" >&6; }
6179 fi
6180
6181 if test "x$ac_ct_OBJDUMP" = x; then
6182 OBJDUMP="false"
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190 OBJDUMP=$ac_ct_OBJDUMP
6191 fi
6192 else
6193 OBJDUMP="$ac_cv_prog_OBJDUMP"
6194 fi
6195
6196 test -z "$OBJDUMP" && OBJDUMP=objdump
6197
6198
6199
6200
6201
6202
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6204 printf %s "checking how to recognize dependent libraries... " >&6; }
6205 if test ${lt_cv_deplibs_check_method+y}
6206 then :
6207 printf %s "(cached) " >&6
6208 else case e in #(
6209 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6210 lt_cv_file_magic_test_file=
6211 lt_cv_deplibs_check_method='unknown'
6212 # Need to set the preceding variable on all platforms that support
6213 # interlibrary dependencies.
6214 # 'none' -- dependencies not supported.
6215 # 'unknown' -- same as none, but documents that we really don't know.
6216 # 'pass_all' -- all dependencies passed with no checks.
6217 # 'file_magic [[regex]]' -- check by looking for files in library path
6218 # that responds to the $file_magic_cmd with a given extended regex.
6219 # If you have 'file' or equivalent on your system and you're not sure
6220 # whether 'pass_all' will *always* work, you probably want this one.
6221
6222 case $host_os in
6223 aix[4-9]*)
6224 lt_cv_deplibs_check_method=pass_all
6225 ;;
6226
6227 beos*)
6228 lt_cv_deplibs_check_method=pass_all
6229 ;;
6230
6231 bsdi[45]*)
6232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6233 lt_cv_file_magic_cmd='$FILECMD -L'
6234 lt_cv_file_magic_test_file=/shlib/libc.so
6235 ;;
6236
6237 cygwin*)
6238 # func_win32_libid is a shell function defined in ltmain.sh
6239 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6240 lt_cv_file_magic_cmd='func_win32_libid'
6241 ;;
6242
6243 mingw* | windows* | pw32*)
6244 # Base MSYS/MinGW do not provide the 'file' command needed by
6245 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6246 # unless we find 'file', for example because we are cross-compiling.
6247 if ( file / ) >/dev/null 2>&1; then
6248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6249 lt_cv_file_magic_cmd='func_win32_libid'
6250 else
6251 # Keep this pattern in sync with the one in func_win32_libid.
6252 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6253 lt_cv_file_magic_cmd='$OBJDUMP -f'
6254 fi
6255 ;;
6256
6257 cegcc*)
6258 # use the weaker test based on 'objdump'. See mingw*.
6259 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6260 lt_cv_file_magic_cmd='$OBJDUMP -f'
6261 ;;
6262
6263 darwin* | rhapsody*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 freebsd* | dragonfly* | midnightbsd*)
6268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6269 case $host_cpu in
6270 i*86 )
6271 # Not sure whether the presence of OpenBSD here was a mistake.
6272 # Let's accept both of them until this is cleared up.
6273 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6274 lt_cv_file_magic_cmd=$FILECMD
6275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6276 ;;
6277 esac
6278 else
6279 lt_cv_deplibs_check_method=pass_all
6280 fi
6281 ;;
6282
6283 haiku*)
6284 lt_cv_deplibs_check_method=pass_all
6285 ;;
6286
6287 hpux10.20* | hpux11*)
6288 lt_cv_file_magic_cmd=$FILECMD
6289 case $host_cpu in
6290 ia64*)
6291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6292 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6293 ;;
6294 hppa*64*)
6295 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]'
6296 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6297 ;;
6298 *)
6299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6300 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6301 ;;
6302 esac
6303 ;;
6304
6305 interix[3-9]*)
6306 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6308 ;;
6309
6310 irix5* | irix6* | nonstopux*)
6311 case $LD in
6312 *-32|*"-32 ") libmagic=32-bit;;
6313 *-n32|*"-n32 ") libmagic=N32;;
6314 *-64|*"-64 ") libmagic=64-bit;;
6315 *) libmagic=never-match;;
6316 esac
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
6319
6320 # This must be glibc/ELF.
6321 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324
6325 *-mlibc)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328
6329 netbsd* | netbsdelf*-gnu)
6330 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6332 else
6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6334 fi
6335 ;;
6336
6337 newos6*)
6338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6339 lt_cv_file_magic_cmd=$FILECMD
6340 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6341 ;;
6342
6343 *nto* | *qnx*)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
6346
6347 openbsd*)
6348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6350 else
6351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6352 fi
6353 ;;
6354
6355 osf3* | osf4* | osf5*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359 rdos*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363 serenity*)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366
6367 solaris*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6372 lt_cv_deplibs_check_method=pass_all
6373 ;;
6374
6375 sysv4 | sysv4.3*)
6376 case $host_vendor in
6377 motorola)
6378 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]'
6379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6380 ;;
6381 ncr)
6382 lt_cv_deplibs_check_method=pass_all
6383 ;;
6384 sequent)
6385 lt_cv_file_magic_cmd='/bin/file'
6386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6387 ;;
6388 sni)
6389 lt_cv_file_magic_cmd='/bin/file'
6390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6391 lt_cv_file_magic_test_file=/lib/libc.so
6392 ;;
6393 siemens)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396 pc)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399 esac
6400 ;;
6401
6402 tpf*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405 os2*)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
6408 esac
6409 ;;
6410 esac
6411 fi
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6413 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6414
6415 file_magic_glob=
6416 want_nocaseglob=no
6417 if test "$build" = "$host"; then
6418 case $host_os in
6419 mingw* | windows* | pw32*)
6420 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6421 want_nocaseglob=yes
6422 else
6423 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6424 fi
6425 ;;
6426 esac
6427 fi
6428
6429 file_magic_cmd=$lt_cv_file_magic_cmd
6430 deplibs_check_method=$lt_cv_deplibs_check_method
6431 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 printf %s "checking for $ac_word... " >&6; }
6459 if test ${ac_cv_prog_DLLTOOL+y}
6460 then :
6461 printf %s "(cached) " >&6
6462 else case e in #(
6463 e) if test -n "$DLLTOOL"; then
6464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 case $as_dir in #(((
6471 '') as_dir=./ ;;
6472 */) ;;
6473 *) as_dir=$as_dir/ ;;
6474 esac
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi ;;
6486 esac
6487 fi
6488 DLLTOOL=$ac_cv_prog_DLLTOOL
6489 if test -n "$DLLTOOL"; then
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6491 printf "%s\n" "$DLLTOOL" >&6; }
6492 else
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 printf "%s\n" "no" >&6; }
6495 fi
6496
6497
6498 fi
6499 if test -z "$ac_cv_prog_DLLTOOL"; then
6500 ac_ct_DLLTOOL=$DLLTOOL
6501 # Extract the first word of "dlltool", so it can be a program name with args.
6502 set dummy dlltool; ac_word=$2
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 printf %s "checking for $ac_word... " >&6; }
6505 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6506 then :
6507 printf %s "(cached) " >&6
6508 else case e in #(
6509 e) if test -n "$ac_ct_DLLTOOL"; then
6510 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515 IFS=$as_save_IFS
6516 case $as_dir in #(((
6517 '') as_dir=./ ;;
6518 */) ;;
6519 *) as_dir=$as_dir/ ;;
6520 esac
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6523 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 fi ;;
6532 esac
6533 fi
6534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6535 if test -n "$ac_ct_DLLTOOL"; then
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6537 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6538 else
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 printf "%s\n" "no" >&6; }
6541 fi
6542
6543 if test "x$ac_ct_DLLTOOL" = x; then
6544 DLLTOOL="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 DLLTOOL=$ac_ct_DLLTOOL
6553 fi
6554 else
6555 DLLTOOL="$ac_cv_prog_DLLTOOL"
6556 fi
6557
6558 test -z "$DLLTOOL" && DLLTOOL=dlltool
6559
6560
6561
6562
6563
6564
6565
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6567 printf %s "checking how to associate runtime and link libraries... " >&6; }
6568 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else case e in #(
6572 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6573
6574 case $host_os in
6575 cygwin* | mingw* | windows* | pw32* | cegcc*)
6576 # two different shell functions defined in ltmain.sh;
6577 # decide which one to use based on capabilities of $DLLTOOL
6578 case `$DLLTOOL --help 2>&1` in
6579 *--identify-strict*)
6580 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6581 ;;
6582 *)
6583 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6584 ;;
6585 esac
6586 ;;
6587 *)
6588 # fallback: assume linklib IS sharedlib
6589 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6590 ;;
6591 esac
6592 ;;
6593 esac
6594 fi
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6596 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6597 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6598 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6599
6600
6601
6602
6603
6604
6605
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 printf %s "checking for $ac_word... " >&6; }
6611 if test ${ac_cv_prog_RANLIB+y}
6612 then :
6613 printf %s "(cached) " >&6
6614 else case e in #(
6615 e) if test -n "$RANLIB"; then
6616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 case $as_dir in #(((
6623 '') as_dir=./ ;;
6624 */) ;;
6625 *) as_dir=$as_dir/ ;;
6626 esac
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi ;;
6638 esac
6639 fi
6640 RANLIB=$ac_cv_prog_RANLIB
6641 if test -n "$RANLIB"; then
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6643 printf "%s\n" "$RANLIB" >&6; }
6644 else
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 printf "%s\n" "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if test -z "$ac_cv_prog_RANLIB"; then
6652 ac_ct_RANLIB=$RANLIB
6653 # Extract the first word of "ranlib", so it can be a program name with args.
6654 set dummy ranlib; ac_word=$2
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 printf %s "checking for $ac_word... " >&6; }
6657 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6658 then :
6659 printf %s "(cached) " >&6
6660 else case e in #(
6661 e) if test -n "$ac_ct_RANLIB"; then
6662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667 IFS=$as_save_IFS
6668 case $as_dir in #(((
6669 '') as_dir=./ ;;
6670 */) ;;
6671 *) as_dir=$as_dir/ ;;
6672 esac
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6675 ac_cv_prog_ac_ct_RANLIB="ranlib"
6676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683 fi ;;
6684 esac
6685 fi
6686 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6687 if test -n "$ac_ct_RANLIB"; then
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6689 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6690 else
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 printf "%s\n" "no" >&6; }
6693 fi
6694
6695 if test "x$ac_ct_RANLIB" = x; then
6696 RANLIB=":"
6697 else
6698 case $cross_compiling:$ac_tool_warned in
6699 yes:)
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702 ac_tool_warned=yes ;;
6703 esac
6704 RANLIB=$ac_ct_RANLIB
6705 fi
6706 else
6707 RANLIB="$ac_cv_prog_RANLIB"
6708 fi
6709
6710 if test -n "$ac_tool_prefix"; then
6711 for ac_prog in ar
6712 do
6713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 printf %s "checking for $ac_word... " >&6; }
6717 if test ${ac_cv_prog_AR+y}
6718 then :
6719 printf %s "(cached) " >&6
6720 else case e in #(
6721 e) if test -n "$AR"; then
6722 ac_cv_prog_AR="$AR" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727 IFS=$as_save_IFS
6728 case $as_dir in #(((
6729 '') as_dir=./ ;;
6730 */) ;;
6731 *) as_dir=$as_dir/ ;;
6732 esac
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi ;;
6744 esac
6745 fi
6746 AR=$ac_cv_prog_AR
6747 if test -n "$AR"; then
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6749 printf "%s\n" "$AR" >&6; }
6750 else
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 printf "%s\n" "no" >&6; }
6753 fi
6754
6755
6756 test -n "$AR" && break
6757 done
6758 fi
6759 if test -z "$AR"; then
6760 ac_ct_AR=$AR
6761 for ac_prog in ar
6762 do
6763 # Extract the first word of "$ac_prog", so it can be a program name with args.
6764 set dummy $ac_prog; ac_word=$2
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 printf %s "checking for $ac_word... " >&6; }
6767 if test ${ac_cv_prog_ac_ct_AR+y}
6768 then :
6769 printf %s "(cached) " >&6
6770 else case e in #(
6771 e) if test -n "$ac_ct_AR"; then
6772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 case $as_dir in #(((
6779 '') as_dir=./ ;;
6780 */) ;;
6781 *) as_dir=$as_dir/ ;;
6782 esac
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_ac_ct_AR="$ac_prog"
6786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi ;;
6794 esac
6795 fi
6796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6797 if test -n "$ac_ct_AR"; then
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6799 printf "%s\n" "$ac_ct_AR" >&6; }
6800 else
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 printf "%s\n" "no" >&6; }
6803 fi
6804
6805
6806 test -n "$ac_ct_AR" && break
6807 done
6808
6809 if test "x$ac_ct_AR" = x; then
6810 AR="false"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818 AR=$ac_ct_AR
6819 fi
6820 fi
6821
6822 : ${AR=ar}
6823
6824
6825
6826
6827
6828
6829 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6830 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6831 # higher priority because that's what people were doing historically (setting
6832 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6833 # variable obsoleted/removed.
6834
6835 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6836 lt_ar_flags=$AR_FLAGS
6837
6838
6839
6840
6841
6842
6843 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6844 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6845
6846
6847
6848
6849
6850
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6852 printf %s "checking for archiver @FILE support... " >&6; }
6853 if test ${lt_cv_ar_at_file+y}
6854 then :
6855 printf %s "(cached) " >&6
6856 else case e in #(
6857 e) lt_cv_ar_at_file=no
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860
6861 int
6862 main (void)
6863 {
6864
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"
6870 then :
6871 echo conftest.$ac_objext > conftest.lst
6872 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6874 (eval $lt_ar_try) 2>&5
6875 ac_status=$?
6876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }
6878 if test 0 -eq "$ac_status"; then
6879 # Ensure the archiver fails upon bogus file names.
6880 rm -f conftest.$ac_objext libconftest.a
6881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6882 (eval $lt_ar_try) 2>&5
6883 ac_status=$?
6884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }
6886 if test 0 -ne "$ac_status"; then
6887 lt_cv_ar_at_file=@
6888 fi
6889 fi
6890 rm -f conftest.* libconftest.a
6891
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6894 ;;
6895 esac
6896 fi
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6898 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6899
6900 if test no = "$lt_cv_ar_at_file"; then
6901 archiver_list_spec=
6902 else
6903 archiver_list_spec=$lt_cv_ar_at_file
6904 fi
6905
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}strip; ac_word=$2
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 printf %s "checking for $ac_word... " >&6; }
6917 if test ${ac_cv_prog_STRIP+y}
6918 then :
6919 printf %s "(cached) " >&6
6920 else case e in #(
6921 e) if test -n "$STRIP"; then
6922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 case $as_dir in #(((
6929 '') as_dir=./ ;;
6930 */) ;;
6931 *) as_dir=$as_dir/ ;;
6932 esac
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943 fi ;;
6944 esac
6945 fi
6946 STRIP=$ac_cv_prog_STRIP
6947 if test -n "$STRIP"; then
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6949 printf "%s\n" "$STRIP" >&6; }
6950 else
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 printf "%s\n" "no" >&6; }
6953 fi
6954
6955
6956 fi
6957 if test -z "$ac_cv_prog_STRIP"; then
6958 ac_ct_STRIP=$STRIP
6959 # Extract the first word of "strip", so it can be a program name with args.
6960 set dummy strip; ac_word=$2
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 printf %s "checking for $ac_word... " >&6; }
6963 if test ${ac_cv_prog_ac_ct_STRIP+y}
6964 then :
6965 printf %s "(cached) " >&6
6966 else case e in #(
6967 e) if test -n "$ac_ct_STRIP"; then
6968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973 IFS=$as_save_IFS
6974 case $as_dir in #(((
6975 '') as_dir=./ ;;
6976 */) ;;
6977 *) as_dir=$as_dir/ ;;
6978 esac
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6981 ac_cv_prog_ac_ct_STRIP="strip"
6982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 fi ;;
6990 esac
6991 fi
6992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6993 if test -n "$ac_ct_STRIP"; then
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6995 printf "%s\n" "$ac_ct_STRIP" >&6; }
6996 else
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 printf "%s\n" "no" >&6; }
6999 fi
7000
7001 if test "x$ac_ct_STRIP" = x; then
7002 STRIP=":"
7003 else
7004 case $cross_compiling:$ac_tool_warned in
7005 yes:)
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008 ac_tool_warned=yes ;;
7009 esac
7010 STRIP=$ac_ct_STRIP
7011 fi
7012 else
7013 STRIP="$ac_cv_prog_STRIP"
7014 fi
7015
7016 test -z "$STRIP" && STRIP=:
7017
7018
7019
7020
7021
7022
7023
7024 test -z "$RANLIB" && RANLIB=:
7025
7026
7027
7028
7029
7030
7031 # Determine commands to create old-style static archives.
7032 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7033 old_postinstall_cmds='chmod 644 $oldlib'
7034 old_postuninstall_cmds=
7035
7036 if test -n "$RANLIB"; then
7037 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7039 fi
7040
7041 case $host_os in
7042 darwin*)
7043 lock_old_archive_extraction=yes ;;
7044 *)
7045 lock_old_archive_extraction=no ;;
7046 esac
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
7080
7081
7082
7083
7084
7085
7086 # If no C compiler was specified, use CC.
7087 LTCC=${LTCC-"$CC"}
7088
7089 # If no C compiler flags were specified, use CFLAGS.
7090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7091
7092 # Allow CC to be a program name with arguments.
7093 compiler=$CC
7094
7095
7096 # Check for command to grab the raw symbol name followed by C symbol from nm.
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7098 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7099 if test ${lt_cv_sys_global_symbol_pipe+y}
7100 then :
7101 printf %s "(cached) " >&6
7102 else case e in #(
7103 e)
7104 # These are sane defaults that work on at least a few old systems.
7105 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7106
7107 # Character class describing NM global symbol codes.
7108 symcode='[BCDEGRST]'
7109
7110 # Regexp to match symbols that can be accessed directly from C.
7111 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7112
7113 # Define system-specific variables.
7114 case $host_os in
7115 aix*)
7116 symcode='[BCDT]'
7117 ;;
7118 cygwin* | mingw* | windows* | pw32* | cegcc*)
7119 symcode='[ABCDGISTW]'
7120 ;;
7121 hpux*)
7122 if test ia64 = "$host_cpu"; then
7123 symcode='[ABCDEGRST]'
7124 fi
7125 ;;
7126 irix* | nonstopux*)
7127 symcode='[BCDEGRST]'
7128 ;;
7129 osf*)
7130 symcode='[BCDEGQRST]'
7131 ;;
7132 solaris*)
7133 symcode='[BCDRT]'
7134 ;;
7135 sco3.2v5*)
7136 symcode='[DT]'
7137 ;;
7138 sysv4.2uw2*)
7139 symcode='[DT]'
7140 ;;
7141 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7142 symcode='[ABDT]'
7143 ;;
7144 sysv4)
7145 symcode='[DFNSTU]'
7146 ;;
7147 esac
7148
7149 # If we're using GNU nm, then use its standard symbol codes.
7150 case `$NM -V 2>&1` in
7151 *GNU* | *'with BFD'*)
7152 symcode='[ABCDGIRSTW]' ;;
7153 esac
7154
7155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7156 # Gets list of data symbols to import.
7157 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7158 # Adjust the below global symbol transforms to fixup imported variables.
7159 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7160 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7161 lt_c_name_lib_hook="\
7162 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7163 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7164 else
7165 # Disable hooks by default.
7166 lt_cv_sys_global_symbol_to_import=
7167 lt_cdecl_hook=
7168 lt_c_name_hook=
7169 lt_c_name_lib_hook=
7170 fi
7171
7172 # Transform an extracted symbol line into a proper C declaration.
7173 # Some systems (esp. on ia64) link data and code symbols differently,
7174 # so use this general approach.
7175 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7176 $lt_cdecl_hook\
7177 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7178 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7179
7180 # Transform an extracted symbol line into symbol name and symbol address
7181 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7182 $lt_c_name_hook\
7183 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7184 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7185
7186 # Transform an extracted symbol line into symbol name with lib prefix and
7187 # symbol address.
7188 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7189 $lt_c_name_lib_hook\
7190 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7191 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7192 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7193
7194 # Handle CRLF in mingw tool chain
7195 opt_cr=
7196 case $build_os in
7197 mingw* | windows*)
7198 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7199 ;;
7200 esac
7201
7202 # Try without a prefix underscore, then with it.
7203 for ac_symprfx in "" "_"; do
7204
7205 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7206 symxfrm="\\1 $ac_symprfx\\2 \\2"
7207
7208 # Write the raw and C identifiers.
7209 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7210 # Fake it for dumpbin and say T for any non-static function,
7211 # D for any global variable and I for any imported variable.
7212 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7213 # which start with @ or ?.
7214 lt_cv_sys_global_symbol_pipe="$AWK '"\
7215 " {last_section=section; section=\$ 3};"\
7216 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7217 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7218 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7219 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7220 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7221 " \$ 0!~/External *\|/{next};"\
7222 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7223 " {if(hide[section]) next};"\
7224 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7225 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7226 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7227 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7228 " ' prfx=^$ac_symprfx"
7229 else
7230 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7231 fi
7232 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7233
7234 # Check to see that the pipe works correctly.
7235 pipe_works=no
7236
7237 rm -f conftest*
7238 cat > conftest.$ac_ext <<_LT_EOF
7239 #ifdef __cplusplus
7240 extern "C" {
7241 #endif
7242 char nm_test_var;
7243 void nm_test_func(void);
7244 void nm_test_func(void){}
7245 #ifdef __cplusplus
7246 }
7247 #endif
7248 int main(void){nm_test_var='a';nm_test_func();return(0);}
7249 _LT_EOF
7250
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 # Now try to grab the symbols.
7257 nlist=conftest.nm
7258 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7259 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7260 # Try sorting and uniquifying the output.
7261 if sort "$nlist" | uniq > "$nlist"T; then
7262 mv -f "$nlist"T "$nlist"
7263 else
7264 rm -f "$nlist"T
7265 fi
7266
7267 # Make sure that we snagged all the symbols we need.
7268 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7269 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7270 cat <<_LT_EOF > conftest.$ac_ext
7271 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7272 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7273 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7274 relocations are performed -- see ld's documentation on pseudo-relocs. */
7275 # define LT_DLSYM_CONST
7276 #elif defined __osf__
7277 /* This system does not cope well with relocations in const data. */
7278 # define LT_DLSYM_CONST
7279 #else
7280 # define LT_DLSYM_CONST const
7281 #endif
7282
7283 #ifdef __cplusplus
7284 extern "C" {
7285 #endif
7286
7287 _LT_EOF
7288 # Now generate the symbol file.
7289 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7290
7291 cat <<_LT_EOF >> conftest.$ac_ext
7292
7293 /* The mapping between symbol names and symbols. */
7294 LT_DLSYM_CONST struct {
7295 const char *name;
7296 void *address;
7297 }
7298 lt__PROGRAM__LTX_preloaded_symbols[] =
7299 {
7300 { "@PROGRAM@", (void *) 0 },
7301 _LT_EOF
7302 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7303 cat <<\_LT_EOF >> conftest.$ac_ext
7304 {0, (void *) 0}
7305 };
7306
7307 /* This works around a problem in FreeBSD linker */
7308 #ifdef FREEBSD_WORKAROUND
7309 static const void *lt_preloaded_setup() {
7310 return lt__PROGRAM__LTX_preloaded_symbols;
7311 }
7312 #endif
7313
7314 #ifdef __cplusplus
7315 }
7316 #endif
7317 _LT_EOF
7318 # Now try linking the two files.
7319 mv conftest.$ac_objext conftstm.$ac_objext
7320 lt_globsym_save_LIBS=$LIBS
7321 lt_globsym_save_CFLAGS=$CFLAGS
7322 LIBS=conftstm.$ac_objext
7323 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7325 (eval $ac_link) 2>&5
7326 ac_status=$?
7327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7329 pipe_works=yes
7330 fi
7331 LIBS=$lt_globsym_save_LIBS
7332 CFLAGS=$lt_globsym_save_CFLAGS
7333 else
7334 echo "cannot find nm_test_func in $nlist" >&5
7335 fi
7336 else
7337 echo "cannot find nm_test_var in $nlist" >&5
7338 fi
7339 else
7340 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7341 fi
7342 else
7343 echo "$progname: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7345 fi
7346 rm -rf conftest* conftst*
7347
7348 # Do not use the global_symbol_pipe unless it works.
7349 if test yes = "$pipe_works"; then
7350 break
7351 else
7352 lt_cv_sys_global_symbol_pipe=
7353 fi
7354 done
7355 ;;
7356 esac
7357 fi
7358
7359 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7360 lt_cv_sys_global_symbol_to_cdecl=
7361 fi
7362 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7364 printf "%s\n" "failed" >&6; }
7365 else
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7367 printf "%s\n" "ok" >&6; }
7368 fi
7369
7370 # Response file support.
7371 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7372 nm_file_list_spec='@'
7373 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7374 nm_file_list_spec='@'
7375 fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7414 printf %s "checking for sysroot... " >&6; }
7415
7416 # Check whether --with-sysroot was given.
7417 if test ${with_sysroot+y}
7418 then :
7419 withval=$with_sysroot;
7420 else case e in #(
7421 e) with_sysroot=no ;;
7422 esac
7423 fi
7424
7425
7426 lt_sysroot=
7427 case $with_sysroot in #(
7428 yes)
7429 if test yes = "$GCC"; then
7430 # Trim trailing / since we'll always append absolute paths and we want
7431 # to avoid //, if only for less confusing output for the user.
7432 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7433 fi
7434 ;; #(
7435 /*)
7436 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7437 ;; #(
7438 no|'')
7439 ;; #(
7440 *)
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7442 printf "%s\n" "$with_sysroot" >&6; }
7443 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7444 ;;
7445 esac
7446
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7448 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7449
7450
7451
7452
7453
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7455 printf %s "checking for a working dd... " >&6; }
7456 if test ${ac_cv_path_lt_DD+y}
7457 then :
7458 printf %s "(cached) " >&6
7459 else case e in #(
7460 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7461 cat conftest.i conftest.i >conftest2.i
7462 : ${lt_DD:=$DD}
7463 if test -z "$lt_DD"; then
7464 ac_path_lt_DD_found=false
7465 # Loop through the user's path and test for each of PROGNAME-LIST
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469 IFS=$as_save_IFS
7470 case $as_dir in #(((
7471 '') as_dir=./ ;;
7472 */) ;;
7473 *) as_dir=$as_dir/ ;;
7474 esac
7475 for ac_prog in dd
7476 do
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7479 as_fn_executable_p "$ac_path_lt_DD" || continue
7480 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7481 cmp -s conftest.i conftest.out \
7482 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7483 fi
7484 $ac_path_lt_DD_found && break 3
7485 done
7486 done
7487 done
7488 IFS=$as_save_IFS
7489 if test -z "$ac_cv_path_lt_DD"; then
7490 :
7491 fi
7492 else
7493 ac_cv_path_lt_DD=$lt_DD
7494 fi
7495
7496 rm -f conftest.i conftest2.i conftest.out ;;
7497 esac
7498 fi
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7500 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7501
7502
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7504 printf %s "checking how to truncate binary pipes... " >&6; }
7505 if test ${lt_cv_truncate_bin+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else case e in #(
7509 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7510 cat conftest.i conftest.i >conftest2.i
7511 lt_cv_truncate_bin=
7512 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7513 cmp -s conftest.i conftest.out \
7514 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7515 fi
7516 rm -f conftest.i conftest2.i conftest.out
7517 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7518 esac
7519 fi
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7521 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7522
7523
7524
7525
7526
7527
7528
7529 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7530 func_cc_basename ()
7531 {
7532 for cc_temp in $*""; do
7533 case $cc_temp in
7534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7536 \-*) ;;
7537 *) break;;
7538 esac
7539 done
7540 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7541 }
7542
7543 # Check whether --enable-libtool-lock was given.
7544 if test ${enable_libtool_lock+y}
7545 then :
7546 enableval=$enable_libtool_lock;
7547 fi
7548
7549 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7550
7551 # Some flags need to be propagated to the compiler or linker for good
7552 # libtool support.
7553 case $host in
7554 ia64-*-hpux*)
7555 # Find out what ABI is being produced by ac_compile, and set mode
7556 # options accordingly.
7557 echo 'int i;' > conftest.$ac_ext
7558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559 (eval $ac_compile) 2>&5
7560 ac_status=$?
7561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562 test $ac_status = 0; }; then
7563 case `$FILECMD conftest.$ac_objext` in
7564 *ELF-32*)
7565 HPUX_IA64_MODE=32
7566 ;;
7567 *ELF-64*)
7568 HPUX_IA64_MODE=64
7569 ;;
7570 esac
7571 fi
7572 rm -rf conftest*
7573 ;;
7574 *-*-irix6*)
7575 # Find out what ABI is being produced by ac_compile, and set linker
7576 # options accordingly.
7577 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7579 (eval $ac_compile) 2>&5
7580 ac_status=$?
7581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582 test $ac_status = 0; }; then
7583 if test yes = "$lt_cv_prog_gnu_ld"; then
7584 case `$FILECMD conftest.$ac_objext` in
7585 *32-bit*)
7586 LD="${LD-ld} -melf32bsmip"
7587 ;;
7588 *N32*)
7589 LD="${LD-ld} -melf32bmipn32"
7590 ;;
7591 *64-bit*)
7592 LD="${LD-ld} -melf64bmip"
7593 ;;
7594 esac
7595 else
7596 case `$FILECMD conftest.$ac_objext` in
7597 *32-bit*)
7598 LD="${LD-ld} -32"
7599 ;;
7600 *N32*)
7601 LD="${LD-ld} -n32"
7602 ;;
7603 *64-bit*)
7604 LD="${LD-ld} -64"
7605 ;;
7606 esac
7607 fi
7608 fi
7609 rm -rf conftest*
7610 ;;
7611
7612 mips64*-*linux*)
7613 # Find out what ABI is being produced by ac_compile, and set linker
7614 # options accordingly.
7615 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7617 (eval $ac_compile) 2>&5
7618 ac_status=$?
7619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620 test $ac_status = 0; }; then
7621 emul=elf
7622 case `$FILECMD conftest.$ac_objext` in
7623 *32-bit*)
7624 emul="${emul}32"
7625 ;;
7626 *64-bit*)
7627 emul="${emul}64"
7628 ;;
7629 esac
7630 case `$FILECMD conftest.$ac_objext` in
7631 *MSB*)
7632 emul="${emul}btsmip"
7633 ;;
7634 *LSB*)
7635 emul="${emul}ltsmip"
7636 ;;
7637 esac
7638 case `$FILECMD conftest.$ac_objext` in
7639 *N32*)
7640 emul="${emul}n32"
7641 ;;
7642 esac
7643 LD="${LD-ld} -m $emul"
7644 fi
7645 rm -rf conftest*
7646 ;;
7647
7648 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7649 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7650 # Find out what ABI is being produced by ac_compile, and set linker
7651 # options accordingly. Note that the listed cases only cover the
7652 # situations where additional linker options are needed (such as when
7653 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7654 # vice versa); the common cases where no linker options are needed do
7655 # not appear in the list.
7656 echo 'int i;' > conftest.$ac_ext
7657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7658 (eval $ac_compile) 2>&5
7659 ac_status=$?
7660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; }; then
7662 case `$FILECMD conftest.o` in
7663 *32-bit*)
7664 case $host in
7665 x86_64-*kfreebsd*-gnu)
7666 LD="${LD-ld} -m elf_i386_fbsd"
7667 ;;
7668 x86_64-*linux*|x86_64-gnu*)
7669 case `$FILECMD conftest.o` in
7670 *x86-64*)
7671 LD="${LD-ld} -m elf32_x86_64"
7672 ;;
7673 *)
7674 LD="${LD-ld} -m elf_i386"
7675 ;;
7676 esac
7677 ;;
7678 powerpc64le-*linux*)
7679 LD="${LD-ld} -m elf32lppclinux"
7680 ;;
7681 powerpc64-*linux*)
7682 LD="${LD-ld} -m elf32ppclinux"
7683 ;;
7684 s390x-*linux*)
7685 LD="${LD-ld} -m elf_s390"
7686 ;;
7687 sparc64-*linux*)
7688 LD="${LD-ld} -m elf32_sparc"
7689 ;;
7690 esac
7691 ;;
7692 *64-bit*)
7693 case $host in
7694 x86_64-*kfreebsd*-gnu)
7695 LD="${LD-ld} -m elf_x86_64_fbsd"
7696 ;;
7697 x86_64-*linux*|x86_64-gnu*)
7698 LD="${LD-ld} -m elf_x86_64"
7699 ;;
7700 powerpcle-*linux*)
7701 LD="${LD-ld} -m elf64lppc"
7702 ;;
7703 powerpc-*linux*)
7704 LD="${LD-ld} -m elf64ppc"
7705 ;;
7706 s390*-*linux*|s390*-*tpf*)
7707 LD="${LD-ld} -m elf64_s390"
7708 ;;
7709 sparc*-*linux*)
7710 LD="${LD-ld} -m elf64_sparc"
7711 ;;
7712 esac
7713 ;;
7714 esac
7715 fi
7716 rm -rf conftest*
7717 ;;
7718
7719 *-*-sco3.2v5*)
7720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7721 SAVE_CFLAGS=$CFLAGS
7722 CFLAGS="$CFLAGS -belf"
7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7724 printf %s "checking whether the C compiler needs -belf... " >&6; }
7725 if test ${lt_cv_cc_needs_belf+y}
7726 then :
7727 printf %s "(cached) " >&6
7728 else case e in #(
7729 e) ac_ext=c
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737
7738 int
7739 main (void)
7740 {
7741
7742 ;
7743 return 0;
7744 }
7745 _ACEOF
7746 if ac_fn_c_try_link "$LINENO"
7747 then :
7748 lt_cv_cc_needs_belf=yes
7749 else case e in #(
7750 e) lt_cv_cc_needs_belf=no ;;
7751 esac
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7754 conftest$ac_exeext conftest.$ac_ext
7755 ac_ext=c
7756 ac_cpp='$CPP $CPPFLAGS'
7757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 ;;
7761 esac
7762 fi
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7764 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7765 if test yes != "$lt_cv_cc_needs_belf"; then
7766 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7767 CFLAGS=$SAVE_CFLAGS
7768 fi
7769 ;;
7770 *-*solaris*)
7771 # Find out what ABI is being produced by ac_compile, and set linker
7772 # options accordingly.
7773 echo 'int i;' > conftest.$ac_ext
7774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7775 (eval $ac_compile) 2>&5
7776 ac_status=$?
7777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7778 test $ac_status = 0; }; then
7779 case `$FILECMD conftest.o` in
7780 *64-bit*)
7781 case $lt_cv_prog_gnu_ld in
7782 yes*)
7783 case $host in
7784 i?86-*-solaris*|x86_64-*-solaris*)
7785 LD="${LD-ld} -m elf_x86_64"
7786 ;;
7787 sparc*-*-solaris*)
7788 LD="${LD-ld} -m elf64_sparc"
7789 ;;
7790 esac
7791 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7792 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7793 LD=${LD-ld}_sol2
7794 fi
7795 ;;
7796 *)
7797 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7798 LD="${LD-ld} -64"
7799 fi
7800 ;;
7801 esac
7802 ;;
7803 esac
7804 fi
7805 rm -rf conftest*
7806 ;;
7807 esac
7808
7809 need_locks=$enable_libtool_lock
7810
7811 if test -n "$ac_tool_prefix"; then
7812 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}mt; ac_word=$2
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 printf %s "checking for $ac_word... " >&6; }
7816 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7817 then :
7818 printf %s "(cached) " >&6
7819 else case e in #(
7820 e) if test -n "$MANIFEST_TOOL"; then
7821 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826 IFS=$as_save_IFS
7827 case $as_dir in #(((
7828 '') as_dir=./ ;;
7829 */) ;;
7830 *) as_dir=$as_dir/ ;;
7831 esac
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 fi ;;
7843 esac
7844 fi
7845 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7846 if test -n "$MANIFEST_TOOL"; then
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7848 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7849 else
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 printf "%s\n" "no" >&6; }
7852 fi
7853
7854
7855 fi
7856 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7857 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7858 # Extract the first word of "mt", so it can be a program name with args.
7859 set dummy mt; ac_word=$2
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 printf %s "checking for $ac_word... " >&6; }
7862 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7863 then :
7864 printf %s "(cached) " >&6
7865 else case e in #(
7866 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7867 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 case $as_dir in #(((
7874 '') as_dir=./ ;;
7875 */) ;;
7876 *) as_dir=$as_dir/ ;;
7877 esac
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi ;;
7889 esac
7890 fi
7891 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7892 if test -n "$ac_ct_MANIFEST_TOOL"; then
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7894 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7895 else
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 printf "%s\n" "no" >&6; }
7898 fi
7899
7900 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7901 MANIFEST_TOOL=":"
7902 else
7903 case $cross_compiling:$ac_tool_warned in
7904 yes:)
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907 ac_tool_warned=yes ;;
7908 esac
7909 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7910 fi
7911 else
7912 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7913 fi
7914
7915 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7917 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7918 if test ${lt_cv_path_manifest_tool+y}
7919 then :
7920 printf %s "(cached) " >&6
7921 else case e in #(
7922 e) lt_cv_path_manifest_tool=no
7923 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7924 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7925 cat conftest.err >&5
7926 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7927 lt_cv_path_manifest_tool=yes
7928 fi
7929 rm -f conftest* ;;
7930 esac
7931 fi
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7933 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7934 if test yes != "$lt_cv_path_manifest_tool"; then
7935 MANIFEST_TOOL=:
7936 fi
7937
7938
7939
7940
7941
7942
7943 case $host_os in
7944 rhapsody* | darwin*)
7945 if test -n "$ac_tool_prefix"; then
7946 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7947 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 printf %s "checking for $ac_word... " >&6; }
7950 if test ${ac_cv_prog_DSYMUTIL+y}
7951 then :
7952 printf %s "(cached) " >&6
7953 else case e in #(
7954 e) if test -n "$DSYMUTIL"; then
7955 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 case $as_dir in #(((
7962 '') as_dir=./ ;;
7963 */) ;;
7964 *) as_dir=$as_dir/ ;;
7965 esac
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976 fi ;;
7977 esac
7978 fi
7979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7980 if test -n "$DSYMUTIL"; then
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7982 printf "%s\n" "$DSYMUTIL" >&6; }
7983 else
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 printf "%s\n" "no" >&6; }
7986 fi
7987
7988
7989 fi
7990 if test -z "$ac_cv_prog_DSYMUTIL"; then
7991 ac_ct_DSYMUTIL=$DSYMUTIL
7992 # Extract the first word of "dsymutil", so it can be a program name with args.
7993 set dummy dsymutil; ac_word=$2
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 printf %s "checking for $ac_word... " >&6; }
7996 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7997 then :
7998 printf %s "(cached) " >&6
7999 else case e in #(
8000 e) if test -n "$ac_ct_DSYMUTIL"; then
8001 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006 IFS=$as_save_IFS
8007 case $as_dir in #(((
8008 '') as_dir=./ ;;
8009 */) ;;
8010 *) as_dir=$as_dir/ ;;
8011 esac
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8016 break 2
8017 fi
8018 done
8019 done
8020 IFS=$as_save_IFS
8021
8022 fi ;;
8023 esac
8024 fi
8025 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8026 if test -n "$ac_ct_DSYMUTIL"; then
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8028 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8029 else
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 printf "%s\n" "no" >&6; }
8032 fi
8033
8034 if test "x$ac_ct_DSYMUTIL" = x; then
8035 DSYMUTIL=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043 DSYMUTIL=$ac_ct_DSYMUTIL
8044 fi
8045 else
8046 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8047 fi
8048
8049 if test -n "$ac_tool_prefix"; then
8050 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8051 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 printf %s "checking for $ac_word... " >&6; }
8054 if test ${ac_cv_prog_NMEDIT+y}
8055 then :
8056 printf %s "(cached) " >&6
8057 else case e in #(
8058 e) if test -n "$NMEDIT"; then
8059 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064 IFS=$as_save_IFS
8065 case $as_dir in #(((
8066 '') as_dir=./ ;;
8067 */) ;;
8068 *) as_dir=$as_dir/ ;;
8069 esac
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8072 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8074 break 2
8075 fi
8076 done
8077 done
8078 IFS=$as_save_IFS
8079
8080 fi ;;
8081 esac
8082 fi
8083 NMEDIT=$ac_cv_prog_NMEDIT
8084 if test -n "$NMEDIT"; then
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8086 printf "%s\n" "$NMEDIT" >&6; }
8087 else
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 printf "%s\n" "no" >&6; }
8090 fi
8091
8092
8093 fi
8094 if test -z "$ac_cv_prog_NMEDIT"; then
8095 ac_ct_NMEDIT=$NMEDIT
8096 # Extract the first word of "nmedit", so it can be a program name with args.
8097 set dummy nmedit; ac_word=$2
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 printf %s "checking for $ac_word... " >&6; }
8100 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8101 then :
8102 printf %s "(cached) " >&6
8103 else case e in #(
8104 e) if test -n "$ac_ct_NMEDIT"; then
8105 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110 IFS=$as_save_IFS
8111 case $as_dir in #(((
8112 '') as_dir=./ ;;
8113 */) ;;
8114 *) as_dir=$as_dir/ ;;
8115 esac
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126 fi ;;
8127 esac
8128 fi
8129 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8130 if test -n "$ac_ct_NMEDIT"; then
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8132 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8133 else
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 printf "%s\n" "no" >&6; }
8136 fi
8137
8138 if test "x$ac_ct_NMEDIT" = x; then
8139 NMEDIT=":"
8140 else
8141 case $cross_compiling:$ac_tool_warned in
8142 yes:)
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8144 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8145 ac_tool_warned=yes ;;
8146 esac
8147 NMEDIT=$ac_ct_NMEDIT
8148 fi
8149 else
8150 NMEDIT="$ac_cv_prog_NMEDIT"
8151 fi
8152
8153 if test -n "$ac_tool_prefix"; then
8154 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8155 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 printf %s "checking for $ac_word... " >&6; }
8158 if test ${ac_cv_prog_LIPO+y}
8159 then :
8160 printf %s "(cached) " >&6
8161 else case e in #(
8162 e) if test -n "$LIPO"; then
8163 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168 IFS=$as_save_IFS
8169 case $as_dir in #(((
8170 '') as_dir=./ ;;
8171 */) ;;
8172 *) as_dir=$as_dir/ ;;
8173 esac
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8183
8184 fi ;;
8185 esac
8186 fi
8187 LIPO=$ac_cv_prog_LIPO
8188 if test -n "$LIPO"; then
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8190 printf "%s\n" "$LIPO" >&6; }
8191 else
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 printf "%s\n" "no" >&6; }
8194 fi
8195
8196
8197 fi
8198 if test -z "$ac_cv_prog_LIPO"; then
8199 ac_ct_LIPO=$LIPO
8200 # Extract the first word of "lipo", so it can be a program name with args.
8201 set dummy lipo; ac_word=$2
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 printf %s "checking for $ac_word... " >&6; }
8204 if test ${ac_cv_prog_ac_ct_LIPO+y}
8205 then :
8206 printf %s "(cached) " >&6
8207 else case e in #(
8208 e) if test -n "$ac_ct_LIPO"; then
8209 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214 IFS=$as_save_IFS
8215 case $as_dir in #(((
8216 '') as_dir=./ ;;
8217 */) ;;
8218 *) as_dir=$as_dir/ ;;
8219 esac
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_LIPO="lipo"
8223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi ;;
8231 esac
8232 fi
8233 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8234 if test -n "$ac_ct_LIPO"; then
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8236 printf "%s\n" "$ac_ct_LIPO" >&6; }
8237 else
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 printf "%s\n" "no" >&6; }
8240 fi
8241
8242 if test "x$ac_ct_LIPO" = x; then
8243 LIPO=":"
8244 else
8245 case $cross_compiling:$ac_tool_warned in
8246 yes:)
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249 ac_tool_warned=yes ;;
8250 esac
8251 LIPO=$ac_ct_LIPO
8252 fi
8253 else
8254 LIPO="$ac_cv_prog_LIPO"
8255 fi
8256
8257 if test -n "$ac_tool_prefix"; then
8258 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}otool; ac_word=$2
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 printf %s "checking for $ac_word... " >&6; }
8262 if test ${ac_cv_prog_OTOOL+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else case e in #(
8266 e) if test -n "$OTOOL"; then
8267 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 case $as_dir in #(((
8274 '') as_dir=./ ;;
8275 */) ;;
8276 *) as_dir=$as_dir/ ;;
8277 esac
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi ;;
8289 esac
8290 fi
8291 OTOOL=$ac_cv_prog_OTOOL
8292 if test -n "$OTOOL"; then
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8294 printf "%s\n" "$OTOOL" >&6; }
8295 else
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 printf "%s\n" "no" >&6; }
8298 fi
8299
8300
8301 fi
8302 if test -z "$ac_cv_prog_OTOOL"; then
8303 ac_ct_OTOOL=$OTOOL
8304 # Extract the first word of "otool", so it can be a program name with args.
8305 set dummy otool; ac_word=$2
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 printf %s "checking for $ac_word... " >&6; }
8308 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else case e in #(
8312 e) if test -n "$ac_ct_OTOOL"; then
8313 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318 IFS=$as_save_IFS
8319 case $as_dir in #(((
8320 '') as_dir=./ ;;
8321 */) ;;
8322 *) as_dir=$as_dir/ ;;
8323 esac
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8326 ac_cv_prog_ac_ct_OTOOL="otool"
8327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334 fi ;;
8335 esac
8336 fi
8337 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8338 if test -n "$ac_ct_OTOOL"; then
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8340 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8341 else
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 printf "%s\n" "no" >&6; }
8344 fi
8345
8346 if test "x$ac_ct_OTOOL" = x; then
8347 OTOOL=":"
8348 else
8349 case $cross_compiling:$ac_tool_warned in
8350 yes:)
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353 ac_tool_warned=yes ;;
8354 esac
8355 OTOOL=$ac_ct_OTOOL
8356 fi
8357 else
8358 OTOOL="$ac_cv_prog_OTOOL"
8359 fi
8360
8361 if test -n "$ac_tool_prefix"; then
8362 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8363 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 printf %s "checking for $ac_word... " >&6; }
8366 if test ${ac_cv_prog_OTOOL64+y}
8367 then :
8368 printf %s "(cached) " >&6
8369 else case e in #(
8370 e) if test -n "$OTOOL64"; then
8371 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 case $as_dir in #(((
8378 '') as_dir=./ ;;
8379 */) ;;
8380 *) as_dir=$as_dir/ ;;
8381 esac
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8384 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8386 break 2
8387 fi
8388 done
8389 done
8390 IFS=$as_save_IFS
8391
8392 fi ;;
8393 esac
8394 fi
8395 OTOOL64=$ac_cv_prog_OTOOL64
8396 if test -n "$OTOOL64"; then
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8398 printf "%s\n" "$OTOOL64" >&6; }
8399 else
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 printf "%s\n" "no" >&6; }
8402 fi
8403
8404
8405 fi
8406 if test -z "$ac_cv_prog_OTOOL64"; then
8407 ac_ct_OTOOL64=$OTOOL64
8408 # Extract the first word of "otool64", so it can be a program name with args.
8409 set dummy otool64; ac_word=$2
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 printf %s "checking for $ac_word... " >&6; }
8412 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8413 then :
8414 printf %s "(cached) " >&6
8415 else case e in #(
8416 e) if test -n "$ac_ct_OTOOL64"; then
8417 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422 IFS=$as_save_IFS
8423 case $as_dir in #(((
8424 '') as_dir=./ ;;
8425 */) ;;
8426 *) as_dir=$as_dir/ ;;
8427 esac
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8430 ac_cv_prog_ac_ct_OTOOL64="otool64"
8431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8432 break 2
8433 fi
8434 done
8435 done
8436 IFS=$as_save_IFS
8437
8438 fi ;;
8439 esac
8440 fi
8441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8442 if test -n "$ac_ct_OTOOL64"; then
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8444 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8445 else
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 printf "%s\n" "no" >&6; }
8448 fi
8449
8450 if test "x$ac_ct_OTOOL64" = x; then
8451 OTOOL64=":"
8452 else
8453 case $cross_compiling:$ac_tool_warned in
8454 yes:)
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8457 ac_tool_warned=yes ;;
8458 esac
8459 OTOOL64=$ac_ct_OTOOL64
8460 fi
8461 else
8462 OTOOL64="$ac_cv_prog_OTOOL64"
8463 fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8492 printf %s "checking for -single_module linker flag... " >&6; }
8493 if test ${lt_cv_apple_cc_single_mod+y}
8494 then :
8495 printf %s "(cached) " >&6
8496 else case e in #(
8497 e) lt_cv_apple_cc_single_mod=no
8498 if test -z "$LT_MULTI_MODULE"; then
8499 # By default we will add the -single_module flag. You can override
8500 # by either setting the environment variable LT_MULTI_MODULE
8501 # non-empty at configure time, or by adding -multi_module to the
8502 # link flags.
8503 rm -rf libconftest.dylib*
8504 echo "int foo(void){return 1;}" > conftest.c
8505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8506 -dynamiclib -Wl,-single_module conftest.c" >&5
8507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8508 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8509 _lt_result=$?
8510 # If there is a non-empty error log, and "single_module"
8511 # appears in it, assume the flag caused a linker warning
8512 if test -s conftest.err && $GREP single_module conftest.err; then
8513 cat conftest.err >&5
8514 # Otherwise, if the output was created with a 0 exit code from
8515 # the compiler, it worked.
8516 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8517 lt_cv_apple_cc_single_mod=yes
8518 else
8519 cat conftest.err >&5
8520 fi
8521 rm -rf libconftest.dylib*
8522 rm -f conftest.*
8523 fi ;;
8524 esac
8525 fi
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8527 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8528
8529 # Feature test to disable chained fixups since it is not
8530 # compatible with '-undefined dynamic_lookup'
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8532 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8533 if test ${lt_cv_support_no_fixup_chains+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else case e in #(
8537 e) save_LDFLAGS=$LDFLAGS
8538 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541
8542 int
8543 main (void)
8544 {
8545
8546 ;
8547 return 0;
8548 }
8549 _ACEOF
8550 if ac_fn_c_try_link "$LINENO"
8551 then :
8552 lt_cv_support_no_fixup_chains=yes
8553 else case e in #(
8554 e) lt_cv_support_no_fixup_chains=no
8555 ;;
8556 esac
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8559 conftest$ac_exeext conftest.$ac_ext
8560 LDFLAGS=$save_LDFLAGS
8561
8562 ;;
8563 esac
8564 fi
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8566 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8567
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8569 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8570 if test ${lt_cv_ld_exported_symbols_list+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else case e in #(
8574 e) lt_cv_ld_exported_symbols_list=no
8575 save_LDFLAGS=$LDFLAGS
8576 echo "_main" > conftest.sym
8577 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580
8581 int
8582 main (void)
8583 {
8584
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_link "$LINENO"
8590 then :
8591 lt_cv_ld_exported_symbols_list=yes
8592 else case e in #(
8593 e) lt_cv_ld_exported_symbols_list=no ;;
8594 esac
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8597 conftest$ac_exeext conftest.$ac_ext
8598 LDFLAGS=$save_LDFLAGS
8599 ;;
8600 esac
8601 fi
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8603 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8604
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8606 printf %s "checking for -force_load linker flag... " >&6; }
8607 if test ${lt_cv_ld_force_load+y}
8608 then :
8609 printf %s "(cached) " >&6
8610 else case e in #(
8611 e) lt_cv_ld_force_load=no
8612 cat > conftest.c << _LT_EOF
8613 int forced_loaded() { return 2;}
8614 _LT_EOF
8615 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8616 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8617 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8618 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8619 echo "$RANLIB libconftest.a" >&5
8620 $RANLIB libconftest.a 2>&5
8621 cat > conftest.c << _LT_EOF
8622 int main(void) { return 0;}
8623 _LT_EOF
8624 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8625 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8626 _lt_result=$?
8627 if test -s conftest.err && $GREP force_load conftest.err; then
8628 cat conftest.err >&5
8629 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8630 lt_cv_ld_force_load=yes
8631 else
8632 cat conftest.err >&5
8633 fi
8634 rm -f conftest.err libconftest.a conftest conftest.c
8635 rm -rf conftest.dSYM
8636 ;;
8637 esac
8638 fi
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8640 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8641 case $host_os in
8642 rhapsody* | darwin1.[012])
8643 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8644 darwin1.*)
8645 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8646 darwin*)
8647 case $MACOSX_DEPLOYMENT_TARGET,$host in
8648 10.[012],*|,*powerpc*-darwin[5-8]*)
8649 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8650 *)
8651 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8652 if test yes = "$lt_cv_support_no_fixup_chains"; then
8653 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8654 fi
8655 ;;
8656 esac
8657 ;;
8658 esac
8659 if test yes = "$lt_cv_apple_cc_single_mod"; then
8660 _lt_dar_single_mod='$single_module'
8661 fi
8662 _lt_dar_needs_single_mod=no
8663 case $host_os in
8664 rhapsody* | darwin1.*)
8665 _lt_dar_needs_single_mod=yes ;;
8666 darwin*)
8667 # When targeting Mac OS X 10.4 (darwin 8) or later,
8668 # -single_module is the default and -multi_module is unsupported.
8669 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8670 # target any OS version that needs -single_module.
8671 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8672 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8673 _lt_dar_needs_single_mod=yes ;;
8674 esac
8675 ;;
8676 esac
8677 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8678 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8679 else
8680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8681 fi
8682 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8683 _lt_dsymutil='~$DSYMUTIL $lib || :'
8684 else
8685 _lt_dsymutil=
8686 fi
8687 ;;
8688 esac
8689
8690 # func_munge_path_list VARIABLE PATH
8691 # -----------------------------------
8692 # VARIABLE is name of variable containing _space_ separated list of
8693 # directories to be munged by the contents of PATH, which is string
8694 # having a format:
8695 # "DIR[:DIR]:"
8696 # string "DIR[ DIR]" will be prepended to VARIABLE
8697 # ":DIR[:DIR]"
8698 # string "DIR[ DIR]" will be appended to VARIABLE
8699 # "DIRP[:DIRP]::[DIRA:]DIRA"
8700 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8701 # "DIRA[ DIRA]" will be appended to VARIABLE
8702 # "DIR[:DIR]"
8703 # VARIABLE will be replaced by "DIR[ DIR]"
8704 func_munge_path_list ()
8705 {
8706 case x$2 in
8707 x)
8708 ;;
8709 *:)
8710 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8711 ;;
8712 x:*)
8713 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8714 ;;
8715 *::*)
8716 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8717 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8718 ;;
8719 *)
8720 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8721 ;;
8722 esac
8723 }
8724
8725 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8726 "
8727 if test "x$ac_cv_header_dlfcn_h" = xyes
8728 then :
8729 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8730
8731 fi
8732
8733
8734
8735
8736
8737 # Set options
8738 enable_win32_dll=yes
8739
8740 case $host in
8741 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
8742 if test -n "$ac_tool_prefix"; then
8743 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8744 set dummy ${ac_tool_prefix}as; ac_word=$2
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746 printf %s "checking for $ac_word... " >&6; }
8747 if test ${ac_cv_prog_AS+y}
8748 then :
8749 printf %s "(cached) " >&6
8750 else case e in #(
8751 e) if test -n "$AS"; then
8752 ac_cv_prog_AS="$AS" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757 IFS=$as_save_IFS
8758 case $as_dir in #(((
8759 '') as_dir=./ ;;
8760 */) ;;
8761 *) as_dir=$as_dir/ ;;
8762 esac
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_AS="${ac_tool_prefix}as"
8766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8767 break 2
8768 fi
8769 done
8770 done
8771 IFS=$as_save_IFS
8772
8773 fi ;;
8774 esac
8775 fi
8776 AS=$ac_cv_prog_AS
8777 if test -n "$AS"; then
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8779 printf "%s\n" "$AS" >&6; }
8780 else
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 printf "%s\n" "no" >&6; }
8783 fi
8784
8785
8786 fi
8787 if test -z "$ac_cv_prog_AS"; then
8788 ac_ct_AS=$AS
8789 # Extract the first word of "as", so it can be a program name with args.
8790 set dummy as; ac_word=$2
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 printf %s "checking for $ac_word... " >&6; }
8793 if test ${ac_cv_prog_ac_ct_AS+y}
8794 then :
8795 printf %s "(cached) " >&6
8796 else case e in #(
8797 e) if test -n "$ac_ct_AS"; then
8798 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8799 else
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8802 do
8803 IFS=$as_save_IFS
8804 case $as_dir in #(((
8805 '') as_dir=./ ;;
8806 */) ;;
8807 *) as_dir=$as_dir/ ;;
8808 esac
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8811 ac_cv_prog_ac_ct_AS="as"
8812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815 done
8816 done
8817 IFS=$as_save_IFS
8818
8819 fi ;;
8820 esac
8821 fi
8822 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8823 if test -n "$ac_ct_AS"; then
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8825 printf "%s\n" "$ac_ct_AS" >&6; }
8826 else
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 printf "%s\n" "no" >&6; }
8829 fi
8830
8831 if test "x$ac_ct_AS" = x; then
8832 AS="false"
8833 else
8834 case $cross_compiling:$ac_tool_warned in
8835 yes:)
8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838 ac_tool_warned=yes ;;
8839 esac
8840 AS=$ac_ct_AS
8841 fi
8842 else
8843 AS="$ac_cv_prog_AS"
8844 fi
8845
8846 if test -n "$ac_tool_prefix"; then
8847 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 printf %s "checking for $ac_word... " >&6; }
8851 if test ${ac_cv_prog_DLLTOOL+y}
8852 then :
8853 printf %s "(cached) " >&6
8854 else case e in #(
8855 e) if test -n "$DLLTOOL"; then
8856 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8860 do
8861 IFS=$as_save_IFS
8862 case $as_dir in #(((
8863 '') as_dir=./ ;;
8864 */) ;;
8865 *) as_dir=$as_dir/ ;;
8866 esac
8867 for ac_exec_ext in '' $ac_executable_extensions; do
8868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8869 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8871 break 2
8872 fi
8873 done
8874 done
8875 IFS=$as_save_IFS
8876
8877 fi ;;
8878 esac
8879 fi
8880 DLLTOOL=$ac_cv_prog_DLLTOOL
8881 if test -n "$DLLTOOL"; then
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8883 printf "%s\n" "$DLLTOOL" >&6; }
8884 else
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 printf "%s\n" "no" >&6; }
8887 fi
8888
8889
8890 fi
8891 if test -z "$ac_cv_prog_DLLTOOL"; then
8892 ac_ct_DLLTOOL=$DLLTOOL
8893 # Extract the first word of "dlltool", so it can be a program name with args.
8894 set dummy dlltool; ac_word=$2
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 printf %s "checking for $ac_word... " >&6; }
8897 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8898 then :
8899 printf %s "(cached) " >&6
8900 else case e in #(
8901 e) if test -n "$ac_ct_DLLTOOL"; then
8902 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907 IFS=$as_save_IFS
8908 case $as_dir in #(((
8909 '') as_dir=./ ;;
8910 */) ;;
8911 *) as_dir=$as_dir/ ;;
8912 esac
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919 done
8920 done
8921 IFS=$as_save_IFS
8922
8923 fi ;;
8924 esac
8925 fi
8926 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8927 if test -n "$ac_ct_DLLTOOL"; then
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8929 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8930 else
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 printf "%s\n" "no" >&6; }
8933 fi
8934
8935 if test "x$ac_ct_DLLTOOL" = x; then
8936 DLLTOOL="false"
8937 else
8938 case $cross_compiling:$ac_tool_warned in
8939 yes:)
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8942 ac_tool_warned=yes ;;
8943 esac
8944 DLLTOOL=$ac_ct_DLLTOOL
8945 fi
8946 else
8947 DLLTOOL="$ac_cv_prog_DLLTOOL"
8948 fi
8949
8950 if test -n "$ac_tool_prefix"; then
8951 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8952 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 printf %s "checking for $ac_word... " >&6; }
8955 if test ${ac_cv_prog_OBJDUMP+y}
8956 then :
8957 printf %s "(cached) " >&6
8958 else case e in #(
8959 e) if test -n "$OBJDUMP"; then
8960 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8964 do
8965 IFS=$as_save_IFS
8966 case $as_dir in #(((
8967 '') as_dir=./ ;;
8968 */) ;;
8969 *) as_dir=$as_dir/ ;;
8970 esac
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8975 break 2
8976 fi
8977 done
8978 done
8979 IFS=$as_save_IFS
8980
8981 fi ;;
8982 esac
8983 fi
8984 OBJDUMP=$ac_cv_prog_OBJDUMP
8985 if test -n "$OBJDUMP"; then
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8987 printf "%s\n" "$OBJDUMP" >&6; }
8988 else
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 printf "%s\n" "no" >&6; }
8991 fi
8992
8993
8994 fi
8995 if test -z "$ac_cv_prog_OBJDUMP"; then
8996 ac_ct_OBJDUMP=$OBJDUMP
8997 # Extract the first word of "objdump", so it can be a program name with args.
8998 set dummy objdump; ac_word=$2
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000 printf %s "checking for $ac_word... " >&6; }
9001 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9002 then :
9003 printf %s "(cached) " >&6
9004 else case e in #(
9005 e) if test -n "$ac_ct_OBJDUMP"; then
9006 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9010 do
9011 IFS=$as_save_IFS
9012 case $as_dir in #(((
9013 '') as_dir=./ ;;
9014 */) ;;
9015 *) as_dir=$as_dir/ ;;
9016 esac
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9019 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9021 break 2
9022 fi
9023 done
9024 done
9025 IFS=$as_save_IFS
9026
9027 fi ;;
9028 esac
9029 fi
9030 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9031 if test -n "$ac_ct_OBJDUMP"; then
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9033 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9034 else
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 printf "%s\n" "no" >&6; }
9037 fi
9038
9039 if test "x$ac_ct_OBJDUMP" = x; then
9040 OBJDUMP="false"
9041 else
9042 case $cross_compiling:$ac_tool_warned in
9043 yes:)
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046 ac_tool_warned=yes ;;
9047 esac
9048 OBJDUMP=$ac_ct_OBJDUMP
9049 fi
9050 else
9051 OBJDUMP="$ac_cv_prog_OBJDUMP"
9052 fi
9053
9054 ;;
9055 esac
9056
9057 test -z "$AS" && AS=as
9058
9059
9060
9061
9062
9063 test -z "$DLLTOOL" && DLLTOOL=dlltool
9064
9065
9066
9067
9068
9069 test -z "$OBJDUMP" && OBJDUMP=objdump
9070
9071
9072
9073
9074
9075
9076
9077 enable_dlopen=no
9078
9079
9080
9081 # Check whether --enable-shared was given.
9082 if test ${enable_shared+y}
9083 then :
9084 enableval=$enable_shared; p=${PACKAGE-default}
9085 case $enableval in
9086 yes) enable_shared=yes ;;
9087 no) enable_shared=no ;;
9088 *)
9089 enable_shared=no
9090 # Look at the argument we got. We use all the common list separators.
9091 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9092 for pkg in $enableval; do
9093 IFS=$lt_save_ifs
9094 if test "X$pkg" = "X$p"; then
9095 enable_shared=yes
9096 fi
9097 done
9098 IFS=$lt_save_ifs
9099 ;;
9100 esac
9101 else case e in #(
9102 e) enable_shared=yes ;;
9103 esac
9104 fi
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 # Check whether --enable-static was given.
9115 if test ${enable_static+y}
9116 then :
9117 enableval=$enable_static; p=${PACKAGE-default}
9118 case $enableval in
9119 yes) enable_static=yes ;;
9120 no) enable_static=no ;;
9121 *)
9122 enable_static=no
9123 # Look at the argument we got. We use all the common list separators.
9124 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9125 for pkg in $enableval; do
9126 IFS=$lt_save_ifs
9127 if test "X$pkg" = "X$p"; then
9128 enable_static=yes
9129 fi
9130 done
9131 IFS=$lt_save_ifs
9132 ;;
9133 esac
9134 else case e in #(
9135 e) enable_static=yes ;;
9136 esac
9137 fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 # Check whether --enable-pic was given.
9148 if test ${enable_pic+y}
9149 then :
9150 enableval=$enable_pic; lt_p=${PACKAGE-default}
9151 case $enableval in
9152 yes|no) pic_mode=$enableval ;;
9153 *)
9154 pic_mode=default
9155 # Look at the argument we got. We use all the common list separators.
9156 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9157 for lt_pkg in $enableval; do
9158 IFS=$lt_save_ifs
9159 if test "X$lt_pkg" = "X$lt_p"; then
9160 pic_mode=yes
9161 fi
9162 done
9163 IFS=$lt_save_ifs
9164 ;;
9165 esac
9166 else case e in #(
9167 e) # Check whether --with-pic was given.
9168 if test ${with_pic+y}
9169 then :
9170 withval=$with_pic; lt_p=${PACKAGE-default}
9171 case $withval in
9172 yes|no) pic_mode=$withval ;;
9173 *)
9174 pic_mode=default
9175 # Look at the argument we got. We use all the common list separators.
9176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9177 for lt_pkg in $withval; do
9178 IFS=$lt_save_ifs
9179 if test "X$lt_pkg" = "X$lt_p"; then
9180 pic_mode=yes
9181 fi
9182 done
9183 IFS=$lt_save_ifs
9184 ;;
9185 esac
9186 else case e in #(
9187 e) pic_mode=default ;;
9188 esac
9189 fi
9190
9191 ;;
9192 esac
9193 fi
9194
9195
9196
9197
9198
9199
9200
9201
9202 # Check whether --enable-fast-install was given.
9203 if test ${enable_fast_install+y}
9204 then :
9205 enableval=$enable_fast_install; p=${PACKAGE-default}
9206 case $enableval in
9207 yes) enable_fast_install=yes ;;
9208 no) enable_fast_install=no ;;
9209 *)
9210 enable_fast_install=no
9211 # Look at the argument we got. We use all the common list separators.
9212 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9213 for pkg in $enableval; do
9214 IFS=$lt_save_ifs
9215 if test "X$pkg" = "X$p"; then
9216 enable_fast_install=yes
9217 fi
9218 done
9219 IFS=$lt_save_ifs
9220 ;;
9221 esac
9222 else case e in #(
9223 e) enable_fast_install=yes ;;
9224 esac
9225 fi
9226
9227
9228
9229
9230
9231
9232
9233
9234 shared_archive_member_spec=
9235 case $host,$enable_shared in
9236 power*-*-aix[5-9]*,yes)
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9238 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9239 # Check whether --enable-aix-soname was given.
9240 if test ${enable_aix_soname+y}
9241 then :
9242 enableval=$enable_aix_soname; case $enableval in
9243 aix|svr4|both)
9244 ;;
9245 *)
9246 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9247 ;;
9248 esac
9249 lt_cv_with_aix_soname=$enable_aix_soname
9250 else case e in #(
9251 e) # Check whether --with-aix-soname was given.
9252 if test ${with_aix_soname+y}
9253 then :
9254 withval=$with_aix_soname; case $withval in
9255 aix|svr4|both)
9256 ;;
9257 *)
9258 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9259 ;;
9260 esac
9261 lt_cv_with_aix_soname=$with_aix_soname
9262 else case e in #(
9263 e) if test ${lt_cv_with_aix_soname+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else case e in #(
9267 e) lt_cv_with_aix_soname=aix ;;
9268 esac
9269 fi
9270 ;;
9271 esac
9272 fi
9273
9274 enable_aix_soname=$lt_cv_with_aix_soname ;;
9275 esac
9276 fi
9277
9278 with_aix_soname=$enable_aix_soname
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9280 printf "%s\n" "$with_aix_soname" >&6; }
9281 if test aix != "$with_aix_soname"; then
9282 # For the AIX way of multilib, we name the shared archive member
9283 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9284 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9285 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9286 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9287 if test 64 = "${OBJECT_MODE-32}"; then
9288 shared_archive_member_spec=shr_64
9289 else
9290 shared_archive_member_spec=shr
9291 fi
9292 fi
9293 ;;
9294 *)
9295 with_aix_soname=aix
9296 ;;
9297 esac
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 # This can be used to rebuild libtool when needed
9309 LIBTOOL_DEPS=$ltmain
9310
9311 # Always use our own libtool.
9312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343 test -z "$LN_S" && LN_S="ln -s"
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 if test -n "${ZSH_VERSION+set}"; then
9359 setopt NO_GLOB_SUBST
9360 fi
9361
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9363 printf %s "checking for objdir... " >&6; }
9364 if test ${lt_cv_objdir+y}
9365 then :
9366 printf %s "(cached) " >&6
9367 else case e in #(
9368 e) rm -f .libs 2>/dev/null
9369 mkdir .libs 2>/dev/null
9370 if test -d .libs; then
9371 lt_cv_objdir=.libs
9372 else
9373 # MS-DOS does not allow filenames that begin with a dot.
9374 lt_cv_objdir=_libs
9375 fi
9376 rmdir .libs 2>/dev/null ;;
9377 esac
9378 fi
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9380 printf "%s\n" "$lt_cv_objdir" >&6; }
9381 objdir=$lt_cv_objdir
9382
9383
9384
9385
9386
9387 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9388
9389
9390
9391
9392 case $host_os in
9393 aix3*)
9394 # AIX sometimes has problems with the GCC collect2 program. For some
9395 # reason, if we set the COLLECT_NAMES environment variable, the problems
9396 # vanish in a puff of smoke.
9397 if test set != "${COLLECT_NAMES+set}"; then
9398 COLLECT_NAMES=
9399 export COLLECT_NAMES
9400 fi
9401 ;;
9402 esac
9403
9404 # Global variables:
9405 ofile=libtool
9406 can_build_shared=yes
9407
9408 # All known linkers require a '.a' archive for static linking (except MSVC and
9409 # ICC, which need '.lib').
9410 libext=a
9411
9412 with_gnu_ld=$lt_cv_prog_gnu_ld
9413
9414 old_CC=$CC
9415 old_CFLAGS=$CFLAGS
9416
9417 # Set sane defaults for various variables
9418 test -z "$CC" && CC=cc
9419 test -z "$LTCC" && LTCC=$CC
9420 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9421 test -z "$LD" && LD=ld
9422 test -z "$ac_objext" && ac_objext=o
9423
9424 func_cc_basename $compiler
9425 cc_basename=$func_cc_basename_result
9426
9427
9428 # Only perform the check for file, if the check method requires it
9429 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9430 case $deplibs_check_method in
9431 file_magic*)
9432 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9434 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9435 if test ${lt_cv_path_MAGIC_CMD+y}
9436 then :
9437 printf %s "(cached) " >&6
9438 else case e in #(
9439 e) case $MAGIC_CMD in
9440 [\\/*] | ?:[\\/]*)
9441 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9442 ;;
9443 *)
9444 lt_save_MAGIC_CMD=$MAGIC_CMD
9445 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9447 for ac_dir in $ac_dummy; do
9448 IFS=$lt_save_ifs
9449 test -z "$ac_dir" && ac_dir=.
9450 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9451 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9452 if test -n "$file_magic_test_file"; then
9453 case $deplibs_check_method in
9454 "file_magic "*)
9455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9458 $EGREP "$file_magic_regex" > /dev/null; then
9459 :
9460 else
9461 cat <<_LT_EOF 1>&2
9462
9463 *** Warning: the command libtool uses to detect shared libraries,
9464 *** $file_magic_cmd, produces output that libtool cannot recognize.
9465 *** The result is that libtool may fail to recognize shared libraries
9466 *** as such. This will affect the creation of libtool libraries that
9467 *** depend on shared libraries, but programs linked with such libtool
9468 *** libraries will work regardless of this problem. Nevertheless, you
9469 *** may want to report the problem to your system manager and/or to
9470 *** bug-libtool@gnu.org
9471
9472 _LT_EOF
9473 fi ;;
9474 esac
9475 fi
9476 break
9477 fi
9478 done
9479 IFS=$lt_save_ifs
9480 MAGIC_CMD=$lt_save_MAGIC_CMD
9481 ;;
9482 esac ;;
9483 esac
9484 fi
9485
9486 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9487 if test -n "$MAGIC_CMD"; then
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9489 printf "%s\n" "$MAGIC_CMD" >&6; }
9490 else
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492 printf "%s\n" "no" >&6; }
9493 fi
9494
9495
9496
9497
9498
9499 if test -z "$lt_cv_path_MAGIC_CMD"; then
9500 if test -n "$ac_tool_prefix"; then
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9502 printf %s "checking for file... " >&6; }
9503 if test ${lt_cv_path_MAGIC_CMD+y}
9504 then :
9505 printf %s "(cached) " >&6
9506 else case e in #(
9507 e) case $MAGIC_CMD in
9508 [\\/*] | ?:[\\/]*)
9509 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9510 ;;
9511 *)
9512 lt_save_MAGIC_CMD=$MAGIC_CMD
9513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9515 for ac_dir in $ac_dummy; do
9516 IFS=$lt_save_ifs
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f "$ac_dir/file"; then
9519 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9520 if test -n "$file_magic_test_file"; then
9521 case $deplibs_check_method in
9522 "file_magic "*)
9523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9524 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9526 $EGREP "$file_magic_regex" > /dev/null; then
9527 :
9528 else
9529 cat <<_LT_EOF 1>&2
9530
9531 *** Warning: the command libtool uses to detect shared libraries,
9532 *** $file_magic_cmd, produces output that libtool cannot recognize.
9533 *** The result is that libtool may fail to recognize shared libraries
9534 *** as such. This will affect the creation of libtool libraries that
9535 *** depend on shared libraries, but programs linked with such libtool
9536 *** libraries will work regardless of this problem. Nevertheless, you
9537 *** may want to report the problem to your system manager and/or to
9538 *** bug-libtool@gnu.org
9539
9540 _LT_EOF
9541 fi ;;
9542 esac
9543 fi
9544 break
9545 fi
9546 done
9547 IFS=$lt_save_ifs
9548 MAGIC_CMD=$lt_save_MAGIC_CMD
9549 ;;
9550 esac ;;
9551 esac
9552 fi
9553
9554 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9555 if test -n "$MAGIC_CMD"; then
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9557 printf "%s\n" "$MAGIC_CMD" >&6; }
9558 else
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 printf "%s\n" "no" >&6; }
9561 fi
9562
9563
9564 else
9565 MAGIC_CMD=:
9566 fi
9567 fi
9568
9569 fi
9570 ;;
9571 esac
9572
9573 # Use C for the default configuration in the libtool script
9574
9575 lt_save_CC=$CC
9576 ac_ext=c
9577 ac_cpp='$CPP $CPPFLAGS'
9578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9581
9582
9583 # Source file extension for C test sources.
9584 ac_ext=c
9585
9586 # Object file extension for compiled C test sources.
9587 objext=o
9588 objext=$objext
9589
9590 # Code to be used in simple compile tests
9591 lt_simple_compile_test_code="int some_variable = 0;"
9592
9593 # Code to be used in simple link tests
9594 lt_simple_link_test_code='int main(void){return(0);}'
9595
9596
9597
9598
9599
9600
9601
9602 # If no C compiler was specified, use CC.
9603 LTCC=${LTCC-"$CC"}
9604
9605 # If no C compiler flags were specified, use CFLAGS.
9606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9607
9608 # Allow CC to be a program name with arguments.
9609 compiler=$CC
9610
9611 # Save the default compiler, since it gets overwritten when the other
9612 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9613 compiler_DEFAULT=$CC
9614
9615 # save warnings/boilerplate of simple test code
9616 ac_outfile=conftest.$ac_objext
9617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9619 _lt_compiler_boilerplate=`cat conftest.err`
9620 $RM conftest*
9621
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625 _lt_linker_boilerplate=`cat conftest.err`
9626 $RM -r conftest*
9627
9628
9629 ## CAVEAT EMPTOR:
9630 ## There is no encapsulation within the following macros, do not change
9631 ## the running order or otherwise move them around unless you know exactly
9632 ## what you are doing...
9633 if test -n "$compiler"; then
9634
9635 lt_prog_compiler_no_builtin_flag=
9636
9637 if test yes = "$GCC"; then
9638 case $cc_basename in
9639 nvcc*)
9640 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9641 *)
9642 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9643 esac
9644
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9646 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9647 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9648 then :
9649 printf %s "(cached) " >&6
9650 else case e in #(
9651 e) lt_cv_prog_compiler_rtti_exceptions=no
9652 ac_outfile=conftest.$ac_objext
9653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9655 # Insert the option either (1) after the last *FLAGS variable, or
9656 # (2) before a word containing "conftest.", or (3) at the end.
9657 # Note that $ac_compile itself does not contain backslashes and begins
9658 # with a dollar sign (not a hyphen), so the echo should work correctly.
9659 # The option is referenced via a variable to avoid confusing sed.
9660 lt_compile=`echo "$ac_compile" | $SED \
9661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663 -e 's:$: $lt_compiler_flag:'`
9664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665 (eval "$lt_compile" 2>conftest.err)
9666 ac_status=$?
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 if (exit $ac_status) && test -s "$ac_outfile"; then
9670 # The compiler can only warn and ignore the option if not recognized
9671 # So say no if there are warnings other than the usual output.
9672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_rtti_exceptions=yes
9676 fi
9677 fi
9678 $RM conftest*
9679 ;;
9680 esac
9681 fi
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9683 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9684
9685 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9687 else
9688 :
9689 fi
9690
9691 fi
9692
9693
9694
9695
9696
9697
9698 lt_prog_compiler_wl=
9699 lt_prog_compiler_pic=
9700 lt_prog_compiler_static=
9701
9702
9703 if test yes = "$GCC"; then
9704 lt_prog_compiler_wl='-Wl,'
9705 lt_prog_compiler_static='-static'
9706
9707 case $host_os in
9708 aix*)
9709 # All AIX code is PIC.
9710 if test ia64 = "$host_cpu"; then
9711 # AIX 5 now supports IA64 processor
9712 lt_prog_compiler_static='-Bstatic'
9713 fi
9714 lt_prog_compiler_pic='-fPIC'
9715 ;;
9716
9717 amigaos*)
9718 case $host_cpu in
9719 powerpc)
9720 # see comment about AmigaOS4 .so support
9721 lt_prog_compiler_pic='-fPIC'
9722 ;;
9723 m68k)
9724 # FIXME: we need at least 68020 code to build shared libraries, but
9725 # adding the '-m68020' flag to GCC prevents building anything better,
9726 # like '-m68040'.
9727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9728 ;;
9729 esac
9730 ;;
9731
9732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9733 # PIC is the default for these OSes.
9734 ;;
9735
9736 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9737 # This hack is so that the source file can tell whether it is being
9738 # built for inclusion in a dll (and should export symbols for example).
9739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9740 # (--disable-auto-import) libraries
9741 lt_prog_compiler_pic='-DDLL_EXPORT'
9742 case $host_os in
9743 os2*)
9744 lt_prog_compiler_static='$wl-static'
9745 ;;
9746 esac
9747 ;;
9748
9749 darwin* | rhapsody*)
9750 # PIC is the default on this platform
9751 # Common symbols not allowed in MH_DYLIB files
9752 lt_prog_compiler_pic='-fno-common'
9753 ;;
9754
9755 haiku*)
9756 # PIC is the default for Haiku.
9757 # The "-static" flag exists, but is broken.
9758 lt_prog_compiler_static=
9759 ;;
9760
9761 hpux*)
9762 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9763 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9764 # sets the default TLS model and affects inlining.
9765 case $host_cpu in
9766 hppa*64*)
9767 # +Z the default
9768 ;;
9769 *)
9770 lt_prog_compiler_pic='-fPIC'
9771 ;;
9772 esac
9773 ;;
9774
9775 interix[3-9]*)
9776 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9777 # Instead, we relocate shared libraries at runtime.
9778 ;;
9779
9780 msdosdjgpp*)
9781 # Just because we use GCC doesn't mean we suddenly get shared libraries
9782 # on systems that don't support them.
9783 lt_prog_compiler_can_build_shared=no
9784 enable_shared=no
9785 ;;
9786
9787 *nto* | *qnx*)
9788 # QNX uses GNU C++, but need to define -shared option too, otherwise
9789 # it will coredump.
9790 lt_prog_compiler_pic='-fPIC -shared'
9791 ;;
9792
9793 sysv4*MP*)
9794 if test -d /usr/nec; then
9795 lt_prog_compiler_pic=-Kconform_pic
9796 fi
9797 ;;
9798
9799 *)
9800 lt_prog_compiler_pic='-fPIC'
9801 ;;
9802 esac
9803
9804 case $cc_basename in
9805 nvcc*) # Cuda Compiler Driver 2.2
9806 lt_prog_compiler_wl='-Xlinker '
9807 if test -n "$lt_prog_compiler_pic"; then
9808 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9809 fi
9810 ;;
9811 esac
9812 else
9813 # PORTME Check for flag to pass linker flags through the system compiler.
9814 case $host_os in
9815 aix*)
9816 lt_prog_compiler_wl='-Wl,'
9817 if test ia64 = "$host_cpu"; then
9818 # AIX 5 now supports IA64 processor
9819 lt_prog_compiler_static='-Bstatic'
9820 else
9821 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9822 fi
9823 ;;
9824
9825 darwin* | rhapsody*)
9826 # PIC is the default on this platform
9827 # Common symbols not allowed in MH_DYLIB files
9828 lt_prog_compiler_pic='-fno-common'
9829 case $cc_basename in
9830 nagfor*)
9831 # NAG Fortran compiler
9832 lt_prog_compiler_wl='-Wl,-Wl,,'
9833 lt_prog_compiler_pic='-PIC'
9834 lt_prog_compiler_static='-Bstatic'
9835 ;;
9836 esac
9837 ;;
9838
9839 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9840 # This hack is so that the source file can tell whether it is being
9841 # built for inclusion in a dll (and should export symbols for example).
9842 lt_prog_compiler_pic='-DDLL_EXPORT'
9843 case $host_os in
9844 os2*)
9845 lt_prog_compiler_static='$wl-static'
9846 ;;
9847 esac
9848 ;;
9849
9850 hpux9* | hpux10* | hpux11*)
9851 lt_prog_compiler_wl='-Wl,'
9852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9853 # not for PA HP-UX.
9854 case $host_cpu in
9855 hppa*64*|ia64*)
9856 # +Z the default
9857 ;;
9858 *)
9859 lt_prog_compiler_pic='+Z'
9860 ;;
9861 esac
9862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9863 lt_prog_compiler_static='$wl-a ${wl}archive'
9864 ;;
9865
9866 irix5* | irix6* | nonstopux*)
9867 lt_prog_compiler_wl='-Wl,'
9868 # PIC (with -KPIC) is the default.
9869 lt_prog_compiler_static='-non_shared'
9870 ;;
9871
9872 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9873 case $cc_basename in
9874 # old Intel for x86_64, which still supported -KPIC.
9875 ecc*)
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='-KPIC'
9878 lt_prog_compiler_static='-static'
9879 ;;
9880 *flang* | ftn | f18* | f95*)
9881 # Flang compiler.
9882 lt_prog_compiler_wl='-Wl,'
9883 lt_prog_compiler_pic='-fPIC'
9884 lt_prog_compiler_static='-static'
9885 ;;
9886 # icc used to be incompatible with GCC.
9887 # ICC 10 doesn't accept -KPIC any more.
9888 icc* | ifort*)
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_pic='-fPIC'
9891 lt_prog_compiler_static='-static'
9892 ;;
9893 # Lahey Fortran 8.1.
9894 lf95*)
9895 lt_prog_compiler_wl='-Wl,'
9896 lt_prog_compiler_pic='--shared'
9897 lt_prog_compiler_static='--static'
9898 ;;
9899 nagfor*)
9900 # NAG Fortran compiler
9901 lt_prog_compiler_wl='-Wl,-Wl,,'
9902 lt_prog_compiler_pic='-PIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 ;;
9905 tcc*)
9906 # Fabrice Bellard et al's Tiny C Compiler
9907 lt_prog_compiler_wl='-Wl,'
9908 lt_prog_compiler_pic='-fPIC'
9909 lt_prog_compiler_static='-static'
9910 ;;
9911 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9912 # Portland Group compilers (*not* the Pentium gcc compiler,
9913 # which looks to be a dead project)
9914 lt_prog_compiler_wl='-Wl,'
9915 lt_prog_compiler_pic='-fpic'
9916 lt_prog_compiler_static='-Bstatic'
9917 ;;
9918 ccc*)
9919 lt_prog_compiler_wl='-Wl,'
9920 # All Alpha code is PIC.
9921 lt_prog_compiler_static='-non_shared'
9922 ;;
9923 xl* | bgxl* | bgf* | mpixl*)
9924 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9925 lt_prog_compiler_wl='-Wl,'
9926 lt_prog_compiler_pic='-qpic'
9927 lt_prog_compiler_static='-qstaticlink'
9928 ;;
9929 *)
9930 case `$CC -V 2>&1 | $SED 5q` in
9931 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9932 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9933 lt_prog_compiler_pic='-KPIC'
9934 lt_prog_compiler_static='-Bstatic'
9935 lt_prog_compiler_wl=''
9936 ;;
9937 *Sun\ F* | *Sun*Fortran*)
9938 lt_prog_compiler_pic='-KPIC'
9939 lt_prog_compiler_static='-Bstatic'
9940 lt_prog_compiler_wl='-Qoption ld '
9941 ;;
9942 *Sun\ C*)
9943 # Sun C 5.9
9944 lt_prog_compiler_pic='-KPIC'
9945 lt_prog_compiler_static='-Bstatic'
9946 lt_prog_compiler_wl='-Wl,'
9947 ;;
9948 *Intel*\ [CF]*Compiler*)
9949 lt_prog_compiler_wl='-Wl,'
9950 lt_prog_compiler_pic='-fPIC'
9951 lt_prog_compiler_static='-static'
9952 ;;
9953 *Portland\ Group*)
9954 lt_prog_compiler_wl='-Wl,'
9955 lt_prog_compiler_pic='-fpic'
9956 lt_prog_compiler_static='-Bstatic'
9957 ;;
9958 esac
9959 ;;
9960 esac
9961 ;;
9962
9963 newsos6)
9964 lt_prog_compiler_pic='-KPIC'
9965 lt_prog_compiler_static='-Bstatic'
9966 ;;
9967
9968 *-mlibc)
9969 lt_prog_compiler_wl='-Wl,'
9970 lt_prog_compiler_pic='-fPIC'
9971 lt_prog_compiler_static='-static'
9972 ;;
9973
9974 *nto* | *qnx*)
9975 # QNX uses GNU C++, but need to define -shared option too, otherwise
9976 # it will coredump.
9977 lt_prog_compiler_pic='-fPIC -shared'
9978 ;;
9979
9980 osf3* | osf4* | osf5*)
9981 lt_prog_compiler_wl='-Wl,'
9982 # All OSF/1 code is PIC.
9983 lt_prog_compiler_static='-non_shared'
9984 ;;
9985
9986 rdos*)
9987 lt_prog_compiler_static='-non_shared'
9988 ;;
9989
9990 serenity*)
9991 ;;
9992
9993 solaris*)
9994 lt_prog_compiler_pic='-KPIC'
9995 lt_prog_compiler_static='-Bstatic'
9996 case $cc_basename in
9997 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9998 lt_prog_compiler_wl='-Qoption ld ';;
9999 *)
10000 lt_prog_compiler_wl='-Wl,';;
10001 esac
10002 ;;
10003
10004 sunos4*)
10005 lt_prog_compiler_wl='-Qoption ld '
10006 lt_prog_compiler_pic='-PIC'
10007 lt_prog_compiler_static='-Bstatic'
10008 ;;
10009
10010 sysv4 | sysv4.2uw2* | sysv4.3*)
10011 lt_prog_compiler_wl='-Wl,'
10012 lt_prog_compiler_pic='-KPIC'
10013 lt_prog_compiler_static='-Bstatic'
10014 ;;
10015
10016 sysv4*MP*)
10017 if test -d /usr/nec; then
10018 lt_prog_compiler_pic='-Kconform_pic'
10019 lt_prog_compiler_static='-Bstatic'
10020 fi
10021 ;;
10022
10023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10024 lt_prog_compiler_wl='-Wl,'
10025 lt_prog_compiler_pic='-KPIC'
10026 lt_prog_compiler_static='-Bstatic'
10027 ;;
10028
10029 unicos*)
10030 lt_prog_compiler_wl='-Wl,'
10031 lt_prog_compiler_can_build_shared=no
10032 ;;
10033
10034 uts4*)
10035 lt_prog_compiler_pic='-pic'
10036 lt_prog_compiler_static='-Bstatic'
10037 ;;
10038
10039 *)
10040 lt_prog_compiler_can_build_shared=no
10041 ;;
10042 esac
10043 fi
10044
10045 case $host_os in
10046 # For platforms that do not support PIC, -DPIC is meaningless:
10047 *djgpp*)
10048 lt_prog_compiler_pic=
10049 ;;
10050 *)
10051 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10052 ;;
10053 esac
10054
10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10056 printf %s "checking for $compiler option to produce PIC... " >&6; }
10057 if test ${lt_cv_prog_compiler_pic+y}
10058 then :
10059 printf %s "(cached) " >&6
10060 else case e in #(
10061 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10062 esac
10063 fi
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10065 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10066 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10067
10068 #
10069 # Check to make sure the PIC flag actually works.
10070 #
10071 if test -n "$lt_prog_compiler_pic"; then
10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10073 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10074 if test ${lt_cv_prog_compiler_pic_works+y}
10075 then :
10076 printf %s "(cached) " >&6
10077 else case e in #(
10078 e) lt_cv_prog_compiler_pic_works=no
10079 ac_outfile=conftest.$ac_objext
10080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10081 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10082 # Insert the option either (1) after the last *FLAGS variable, or
10083 # (2) before a word containing "conftest.", or (3) at the end.
10084 # Note that $ac_compile itself does not contain backslashes and begins
10085 # with a dollar sign (not a hyphen), so the echo should work correctly.
10086 # The option is referenced via a variable to avoid confusing sed.
10087 lt_compile=`echo "$ac_compile" | $SED \
10088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10090 -e 's:$: $lt_compiler_flag:'`
10091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10092 (eval "$lt_compile" 2>conftest.err)
10093 ac_status=$?
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 if (exit $ac_status) && test -s "$ac_outfile"; then
10097 # The compiler can only warn and ignore the option if not recognized
10098 # So say no if there are warnings other than the usual output.
10099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10102 lt_cv_prog_compiler_pic_works=yes
10103 fi
10104 fi
10105 $RM conftest*
10106 ;;
10107 esac
10108 fi
10109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10110 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10111
10112 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10113 case $lt_prog_compiler_pic in
10114 "" | " "*) ;;
10115 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10116 esac
10117 else
10118 lt_prog_compiler_pic=
10119 lt_prog_compiler_can_build_shared=no
10120 fi
10121
10122 fi
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134 #
10135 # Check to make sure the static flag actually works.
10136 #
10137 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10139 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10140 if test ${lt_cv_prog_compiler_static_works+y}
10141 then :
10142 printf %s "(cached) " >&6
10143 else case e in #(
10144 e) lt_cv_prog_compiler_static_works=no
10145 save_LDFLAGS=$LDFLAGS
10146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10149 # The linker can only warn and ignore the option if not recognized
10150 # So say no if there are warnings
10151 if test -s conftest.err; then
10152 # Append any errors to the config.log.
10153 cat conftest.err 1>&5
10154 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10156 if diff conftest.exp conftest.er2 >/dev/null; then
10157 lt_cv_prog_compiler_static_works=yes
10158 fi
10159 else
10160 lt_cv_prog_compiler_static_works=yes
10161 fi
10162 fi
10163 $RM -r conftest*
10164 LDFLAGS=$save_LDFLAGS
10165 ;;
10166 esac
10167 fi
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10169 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10170
10171 if test yes = "$lt_cv_prog_compiler_static_works"; then
10172 :
10173 else
10174 lt_prog_compiler_static=
10175 fi
10176
10177
10178
10179
10180
10181
10182
10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10184 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10185 if test ${lt_cv_prog_compiler_c_o+y}
10186 then :
10187 printf %s "(cached) " >&6
10188 else case e in #(
10189 e) lt_cv_prog_compiler_c_o=no
10190 $RM -r conftest 2>/dev/null
10191 mkdir conftest
10192 cd conftest
10193 mkdir out
10194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195
10196 lt_compiler_flag="-o out/conftest2.$ac_objext"
10197 # Insert the option either (1) after the last *FLAGS variable, or
10198 # (2) before a word containing "conftest.", or (3) at the end.
10199 # Note that $ac_compile itself does not contain backslashes and begins
10200 # with a dollar sign (not a hyphen), so the echo should work correctly.
10201 lt_compile=`echo "$ac_compile" | $SED \
10202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10204 -e 's:$: $lt_compiler_flag:'`
10205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10206 (eval "$lt_compile" 2>out/conftest.err)
10207 ac_status=$?
10208 cat out/conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10211 then
10212 # The compiler can only warn and ignore the option if not recognized
10213 # So say no if there are warnings
10214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10217 lt_cv_prog_compiler_c_o=yes
10218 fi
10219 fi
10220 chmod u+w . 2>&5
10221 $RM conftest*
10222 # SGI C++ compiler will create directory out/ii_files/ for
10223 # template instantiation
10224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10225 $RM out/* && rmdir out
10226 cd ..
10227 $RM -r conftest
10228 $RM conftest*
10229 ;;
10230 esac
10231 fi
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10233 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10234
10235
10236
10237
10238
10239
10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10241 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10242 if test ${lt_cv_prog_compiler_c_o+y}
10243 then :
10244 printf %s "(cached) " >&6
10245 else case e in #(
10246 e) lt_cv_prog_compiler_c_o=no
10247 $RM -r conftest 2>/dev/null
10248 mkdir conftest
10249 cd conftest
10250 mkdir out
10251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10252
10253 lt_compiler_flag="-o out/conftest2.$ac_objext"
10254 # Insert the option either (1) after the last *FLAGS variable, or
10255 # (2) before a word containing "conftest.", or (3) at the end.
10256 # Note that $ac_compile itself does not contain backslashes and begins
10257 # with a dollar sign (not a hyphen), so the echo should work correctly.
10258 lt_compile=`echo "$ac_compile" | $SED \
10259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10261 -e 's:$: $lt_compiler_flag:'`
10262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10263 (eval "$lt_compile" 2>out/conftest.err)
10264 ac_status=$?
10265 cat out/conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10268 then
10269 # The compiler can only warn and ignore the option if not recognized
10270 # So say no if there are warnings
10271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10274 lt_cv_prog_compiler_c_o=yes
10275 fi
10276 fi
10277 chmod u+w . 2>&5
10278 $RM conftest*
10279 # SGI C++ compiler will create directory out/ii_files/ for
10280 # template instantiation
10281 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10282 $RM out/* && rmdir out
10283 cd ..
10284 $RM -r conftest
10285 $RM conftest*
10286 ;;
10287 esac
10288 fi
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10290 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10291
10292
10293
10294
10295 hard_links=nottested
10296 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10297 # do not overwrite the value of need_locks provided by the user
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10299 printf %s "checking if we can lock with hard links... " >&6; }
10300 hard_links=yes
10301 $RM conftest*
10302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10303 touch conftest.a
10304 ln conftest.a conftest.b 2>&5 || hard_links=no
10305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10307 printf "%s\n" "$hard_links" >&6; }
10308 if test no = "$hard_links"; then
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10310 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10311 need_locks=warn
10312 fi
10313 else
10314 need_locks=no
10315 fi
10316
10317
10318
10319
10320
10321
10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10323 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10324
10325 runpath_var=
10326 allow_undefined_flag=
10327 always_export_symbols=no
10328 archive_cmds=
10329 archive_expsym_cmds=
10330 compiler_needs_object=no
10331 enable_shared_with_static_runtimes=no
10332 export_dynamic_flag_spec=
10333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10334 hardcode_automatic=no
10335 hardcode_direct=no
10336 hardcode_direct_absolute=no
10337 hardcode_libdir_flag_spec=
10338 hardcode_libdir_separator=
10339 hardcode_minus_L=no
10340 hardcode_shlibpath_var=unsupported
10341 inherit_rpath=no
10342 link_all_deplibs=unknown
10343 module_cmds=
10344 module_expsym_cmds=
10345 old_archive_from_new_cmds=
10346 old_archive_from_expsyms_cmds=
10347 thread_safe_flag_spec=
10348 whole_archive_flag_spec=
10349 # include_expsyms should be a list of space-separated symbols to be *always*
10350 # included in the symbol list
10351 include_expsyms=
10352 # exclude_expsyms can be an extended regexp of symbols to exclude
10353 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10354 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10355 # as well as any symbol that contains 'd'.
10356 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10357 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10358 # platforms (ab)use it in PIC code, but their linkers get confused if
10359 # the symbol is explicitly referenced. Since portable code cannot
10360 # rely on this symbol name, it's probably fine to never include it in
10361 # preloaded symbol tables.
10362 # Exclude shared library initialization/finalization symbols.
10363 extract_expsyms_cmds=
10364
10365 case $host_os in
10366 cygwin* | mingw* | windows* | pw32* | cegcc*)
10367 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10368 # When not using gcc, we currently assume that we are using
10369 # Microsoft Visual C++ or Intel C++ Compiler.
10370 if test yes != "$GCC"; then
10371 with_gnu_ld=no
10372 fi
10373 ;;
10374 interix*)
10375 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10376 with_gnu_ld=yes
10377 ;;
10378 esac
10379
10380 ld_shlibs=yes
10381
10382 # On some targets, GNU ld is compatible enough with the native linker
10383 # that we're better off using the native interface for both.
10384 lt_use_gnu_ld_interface=no
10385 if test yes = "$with_gnu_ld"; then
10386 case $host_os in
10387 aix*)
10388 # The AIX port of GNU ld has always aspired to compatibility
10389 # with the native linker. However, as the warning in the GNU ld
10390 # block says, versions before 2.19.5* couldn't really create working
10391 # shared libraries, regardless of the interface used.
10392 case `$LD -v 2>&1` in
10393 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10394 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10395 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10396 *)
10397 lt_use_gnu_ld_interface=yes
10398 ;;
10399 esac
10400 ;;
10401 *)
10402 lt_use_gnu_ld_interface=yes
10403 ;;
10404 esac
10405 fi
10406
10407 if test yes = "$lt_use_gnu_ld_interface"; then
10408 # If archive_cmds runs LD, not CC, wlarc should be empty
10409 wlarc='$wl'
10410
10411 # Set some defaults for GNU ld with shared library support. These
10412 # are reset later if shared libraries are not supported. Putting them
10413 # here allows them to be overridden if necessary.
10414 runpath_var=LD_RUN_PATH
10415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10416 export_dynamic_flag_spec='$wl--export-dynamic'
10417 # ancient GNU ld didn't support --whole-archive et. al.
10418 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10419 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10420 else
10421 whole_archive_flag_spec=
10422 fi
10423 supports_anon_versioning=no
10424 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10425 *GNU\ gold*) supports_anon_versioning=yes ;;
10426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10429 *\ 2.11.*) ;; # other 2.11 versions
10430 *) supports_anon_versioning=yes ;;
10431 esac
10432
10433 # See if GNU ld supports shared libraries.
10434 case $host_os in
10435 aix[3-9]*)
10436 # On AIX/PPC, the GNU linker is very broken
10437 if test ia64 != "$host_cpu"; then
10438 ld_shlibs=no
10439 cat <<_LT_EOF 1>&2
10440
10441 *** Warning: the GNU linker, at least up to release 2.19, is reported
10442 *** to be unable to reliably create shared libraries on AIX.
10443 *** Therefore, libtool is disabling shared libraries support. If you
10444 *** really care for shared libraries, you may want to install binutils
10445 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10446 *** You will then need to restart the configuration process.
10447
10448 _LT_EOF
10449 fi
10450 ;;
10451
10452 amigaos*)
10453 case $host_cpu in
10454 powerpc)
10455 # see comment about AmigaOS4 .so support
10456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10457 archive_expsym_cmds=''
10458 ;;
10459 m68k)
10460 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)'
10461 hardcode_libdir_flag_spec='-L$libdir'
10462 hardcode_minus_L=yes
10463 ;;
10464 esac
10465 ;;
10466
10467 beos*)
10468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10469 allow_undefined_flag=unsupported
10470 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10471 # support --undefined. This deserves some investigation. FIXME
10472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10473 else
10474 ld_shlibs=no
10475 fi
10476 ;;
10477
10478 cygwin* | mingw* | windows* | pw32* | cegcc*)
10479 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10480 # as there is no search path for DLLs.
10481 hardcode_libdir_flag_spec='-L$libdir'
10482 export_dynamic_flag_spec='$wl--export-all-symbols'
10483 allow_undefined_flag=unsupported
10484 always_export_symbols=no
10485 enable_shared_with_static_runtimes=yes
10486 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'
10487 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10488 file_list_spec='@'
10489
10490 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10492 # If the export-symbols file already is a .def file, use it as
10493 # is; otherwise, prepend EXPORTS...
10494 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10495 cp $export_symbols $output_objdir/$soname.def;
10496 else
10497 echo EXPORTS > $output_objdir/$soname.def;
10498 cat $export_symbols >> $output_objdir/$soname.def;
10499 fi~
10500 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10501 else
10502 ld_shlibs=no
10503 fi
10504 ;;
10505
10506 haiku*)
10507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10508 link_all_deplibs=no
10509 ;;
10510
10511 os2*)
10512 hardcode_libdir_flag_spec='-L$libdir'
10513 hardcode_minus_L=yes
10514 allow_undefined_flag=unsupported
10515 shrext_cmds=.dll
10516 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10519 $ECHO EXPORTS >> $output_objdir/$libname.def~
10520 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10521 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10522 emximp -o $lib $output_objdir/$libname.def'
10523 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10524 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10525 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10526 $ECHO EXPORTS >> $output_objdir/$libname.def~
10527 prefix_cmds="$SED"~
10528 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10529 prefix_cmds="$prefix_cmds -e 1d";
10530 fi~
10531 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10532 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10534 emximp -o $lib $output_objdir/$libname.def'
10535 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10536 enable_shared_with_static_runtimes=yes
10537 file_list_spec='@'
10538 ;;
10539
10540 interix[3-9]*)
10541 hardcode_direct=no
10542 hardcode_shlibpath_var=no
10543 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10544 export_dynamic_flag_spec='$wl-E'
10545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10546 # Instead, shared libraries are loaded at an image base (0x10000000 by
10547 # default) and relocated if they conflict, which is a slow very memory
10548 # consuming and fragmenting process. To avoid this, we pick a random,
10549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10550 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10552 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'
10553 ;;
10554
10555 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10556 tmp_diet=no
10557 if test linux-dietlibc = "$host_os"; then
10558 case $cc_basename in
10559 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10560 esac
10561 fi
10562 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10563 && test no = "$tmp_diet"
10564 then
10565 tmp_addflag=' $pic_flag'
10566 tmp_sharedflag='-shared'
10567 case $cc_basename,$host_cpu in
10568 pgcc*) # Portland Group C compiler
10569 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'
10570 tmp_addflag=' $pic_flag'
10571 ;;
10572 pgf77* | pgf90* | pgf95* | pgfortran*)
10573 # Portland Group f77 and f90 compilers
10574 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'
10575 tmp_addflag=' $pic_flag -Mnomain' ;;
10576 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10577 tmp_addflag=' -i_dynamic' ;;
10578 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10579 tmp_addflag=' -i_dynamic -nofor_main' ;;
10580 ifc* | ifort*) # Intel Fortran compiler
10581 tmp_addflag=' -nofor_main' ;;
10582 lf95*) # Lahey Fortran 8.1
10583 whole_archive_flag_spec=
10584 tmp_sharedflag='--shared' ;;
10585 nagfor*) # NAGFOR 5.3
10586 tmp_sharedflag='-Wl,-shared' ;;
10587 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10588 tmp_sharedflag='-qmkshrobj'
10589 tmp_addflag= ;;
10590 nvcc*) # Cuda Compiler Driver 2.2
10591 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'
10592 compiler_needs_object=yes
10593 ;;
10594 esac
10595 case `$CC -V 2>&1 | $SED 5q` in
10596 *Sun\ C*) # Sun C 5.9
10597 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'
10598 compiler_needs_object=yes
10599 tmp_sharedflag='-G' ;;
10600 *Sun\ F*) # Sun Fortran 8.3
10601 tmp_sharedflag='-G' ;;
10602 esac
10603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10604
10605 if test yes = "$supports_anon_versioning"; then
10606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10607 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10608 echo "local: *; };" >> $output_objdir/$libname.ver~
10609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10610 fi
10611
10612 case $cc_basename in
10613 tcc*)
10614 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10615 export_dynamic_flag_spec='-rdynamic'
10616 ;;
10617 xlf* | bgf* | bgxlf* | mpixlf*)
10618 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10619 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10621 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10622 if test yes = "$supports_anon_versioning"; then
10623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10624 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10625 echo "local: *; };" >> $output_objdir/$libname.ver~
10626 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10627 fi
10628 ;;
10629 esac
10630 else
10631 ld_shlibs=no
10632 fi
10633 ;;
10634
10635 *-mlibc)
10636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10637 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10638 ;;
10639
10640 netbsd* | netbsdelf*-gnu)
10641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10642 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10643 wlarc=
10644 else
10645 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10646 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10647 fi
10648 ;;
10649
10650 solaris*)
10651 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10652 ld_shlibs=no
10653 cat <<_LT_EOF 1>&2
10654
10655 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10656 *** create shared libraries on Solaris systems. Therefore, libtool
10657 *** is disabling shared libraries support. We urge you to upgrade GNU
10658 *** binutils to release 2.9.1 or newer. Another option is to modify
10659 *** your PATH or compiler configuration so that the native linker is
10660 *** used, and then restart.
10661
10662 _LT_EOF
10663 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10666 else
10667 ld_shlibs=no
10668 fi
10669 ;;
10670
10671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10672 case `$LD -v 2>&1` in
10673 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10674 ld_shlibs=no
10675 cat <<_LT_EOF 1>&2
10676
10677 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10678 *** reliably create shared libraries on SCO systems. Therefore, libtool
10679 *** is disabling shared libraries support. We urge you to upgrade GNU
10680 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10681 *** your PATH or compiler configuration so that the native linker is
10682 *** used, and then restart.
10683
10684 _LT_EOF
10685 ;;
10686 *)
10687 # For security reasons, it is highly recommended that you always
10688 # use absolute paths for naming shared libraries, and exclude the
10689 # DT_RUNPATH tag from executables and libraries. But doing so
10690 # requires that you compile everything twice, which is a pain.
10691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10695 else
10696 ld_shlibs=no
10697 fi
10698 ;;
10699 esac
10700 ;;
10701
10702 sunos4*)
10703 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10704 wlarc=
10705 hardcode_direct=yes
10706 hardcode_shlibpath_var=no
10707 ;;
10708
10709 *)
10710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10712 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10713 else
10714 ld_shlibs=no
10715 fi
10716 ;;
10717 esac
10718
10719 if test no = "$ld_shlibs"; then
10720 runpath_var=
10721 hardcode_libdir_flag_spec=
10722 export_dynamic_flag_spec=
10723 whole_archive_flag_spec=
10724 fi
10725 else
10726 # PORTME fill in a description of your system's linker (not GNU ld)
10727 case $host_os in
10728 aix3*)
10729 allow_undefined_flag=unsupported
10730 always_export_symbols=yes
10731 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'
10732 # Note: this linker hardcodes the directories in LIBPATH if there
10733 # are no directories specified by -L.
10734 hardcode_minus_L=yes
10735 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10736 # Neither direct hardcoding nor static linking is supported with a
10737 # broken collect2.
10738 hardcode_direct=unsupported
10739 fi
10740 ;;
10741
10742 aix[4-9]*)
10743 if test ia64 = "$host_cpu"; then
10744 # On IA64, the linker does run time linking by default, so we don't
10745 # have to do anything special.
10746 aix_use_runtimelinking=no
10747 exp_sym_flag='-Bexport'
10748 no_entry_flag=
10749 else
10750 # If we're using GNU nm, then we don't want the "-C" option.
10751 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10752 # Without the "-l" option, or with the "-B" option, AIX nm treats
10753 # weak defined symbols like other global defined symbols, whereas
10754 # GNU nm marks them as "W".
10755 # While the 'weak' keyword is ignored in the Export File, we need
10756 # it in the Import File for the 'aix-soname' feature, so we have
10757 # to replace the "-B" option with "-P" for AIX nm.
10758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10759 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'
10760 else
10761 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'
10762 fi
10763 aix_use_runtimelinking=no
10764
10765 # Test if we are trying to use run time linking or normal
10766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10767 # have runtime linking enabled, and use it for executables.
10768 # For shared libraries, we enable/disable runtime linking
10769 # depending on the kind of the shared library created -
10770 # when "with_aix_soname,aix_use_runtimelinking" is:
10771 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10772 # "aix,yes" lib.so shared, rtl:yes, for executables
10773 # lib.a static archive
10774 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10775 # lib.a(lib.so.V) shared, rtl:no, for executables
10776 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10777 # lib.a(lib.so.V) shared, rtl:no
10778 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10779 # lib.a static archive
10780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10781 for ld_flag in $LDFLAGS; do
10782 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10783 aix_use_runtimelinking=yes
10784 break
10785 fi
10786 done
10787 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10788 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10789 # so we don't have lib.a shared libs to link our executables.
10790 # We have to force runtime linking in this case.
10791 aix_use_runtimelinking=yes
10792 LDFLAGS="$LDFLAGS -Wl,-brtl"
10793 fi
10794 ;;
10795 esac
10796
10797 exp_sym_flag='-bexport'
10798 no_entry_flag='-bnoentry'
10799 fi
10800
10801 # When large executables or shared objects are built, AIX ld can
10802 # have problems creating the table of contents. If linking a library
10803 # or program results in "error TOC overflow" add -mminimal-toc to
10804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10806
10807 archive_cmds=''
10808 hardcode_direct=yes
10809 hardcode_direct_absolute=yes
10810 hardcode_libdir_separator=':'
10811 link_all_deplibs=yes
10812 file_list_spec='$wl-f,'
10813 case $with_aix_soname,$aix_use_runtimelinking in
10814 aix,*) ;; # traditional, no import file
10815 svr4,* | *,yes) # use import file
10816 # The Import File defines what to hardcode.
10817 hardcode_direct=no
10818 hardcode_direct_absolute=no
10819 ;;
10820 esac
10821
10822 if test yes = "$GCC"; then
10823 case $host_os in aix4.[012]|aix4.[012].*)
10824 # We only want to do this on AIX 4.2 and lower, the check
10825 # below for broken collect2 doesn't work under 4.3+
10826 collect2name=`$CC -print-prog-name=collect2`
10827 if test -f "$collect2name" &&
10828 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10829 then
10830 # We have reworked collect2
10831 :
10832 else
10833 # We have old collect2
10834 hardcode_direct=unsupported
10835 # It fails to find uninstalled libraries when the uninstalled
10836 # path is not listed in the libpath. Setting hardcode_minus_L
10837 # to unsupported forces relinking
10838 hardcode_minus_L=yes
10839 hardcode_libdir_flag_spec='-L$libdir'
10840 hardcode_libdir_separator=
10841 fi
10842 ;;
10843 esac
10844 shared_flag='-shared'
10845 if test yes = "$aix_use_runtimelinking"; then
10846 shared_flag="$shared_flag "'$wl-G'
10847 fi
10848 # Need to ensure runtime linking is disabled for the traditional
10849 # shared library, or the linker may eventually find shared libraries
10850 # /with/ Import File - we do not want to mix them.
10851 shared_flag_aix='-shared'
10852 shared_flag_svr4='-shared $wl-G'
10853 else
10854 # not using gcc
10855 if test ia64 = "$host_cpu"; then
10856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10857 # chokes on -Wl,-G. The following line is correct:
10858 shared_flag='-G'
10859 else
10860 if test yes = "$aix_use_runtimelinking"; then
10861 shared_flag='$wl-G'
10862 else
10863 shared_flag='$wl-bM:SRE'
10864 fi
10865 shared_flag_aix='$wl-bM:SRE'
10866 shared_flag_svr4='$wl-G'
10867 fi
10868 fi
10869
10870 export_dynamic_flag_spec='$wl-bexpall'
10871 # It seems that -bexpall does not export symbols beginning with
10872 # underscore (_), so it is better to generate a list of symbols to export.
10873 always_export_symbols=yes
10874 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10875 # Warning - without using the other runtime loading flags (-brtl),
10876 # -berok will link without error, but may produce a broken library.
10877 allow_undefined_flag='-berok'
10878 # Determine the default libpath from the value encoded in an
10879 # empty executable.
10880 if test set = "${lt_cv_aix_libpath+set}"; then
10881 aix_libpath=$lt_cv_aix_libpath
10882 else
10883 if test ${lt_cv_aix_libpath_+y}
10884 then :
10885 printf %s "(cached) " >&6
10886 else case e in #(
10887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889
10890 int
10891 main (void)
10892 {
10893
10894 ;
10895 return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"
10899 then :
10900
10901 lt_aix_libpath_sed='
10902 /Import File Strings/,/^$/ {
10903 /^0/ {
10904 s/^0 *\([^ ]*\) *$/\1/
10905 p
10906 }
10907 }'
10908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10909 # Check for a 64-bit object if we didn't find anything.
10910 if test -z "$lt_cv_aix_libpath_"; then
10911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10912 fi
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10915 conftest$ac_exeext conftest.$ac_ext
10916 if test -z "$lt_cv_aix_libpath_"; then
10917 lt_cv_aix_libpath_=/usr/lib:/lib
10918 fi
10919 ;;
10920 esac
10921 fi
10922
10923 aix_libpath=$lt_cv_aix_libpath_
10924 fi
10925
10926 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10927 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
10928 else
10929 if test ia64 = "$host_cpu"; then
10930 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10931 allow_undefined_flag="-z nodefs"
10932 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"
10933 else
10934 # Determine the default libpath from the value encoded in an
10935 # empty executable.
10936 if test set = "${lt_cv_aix_libpath+set}"; then
10937 aix_libpath=$lt_cv_aix_libpath
10938 else
10939 if test ${lt_cv_aix_libpath_+y}
10940 then :
10941 printf %s "(cached) " >&6
10942 else case e in #(
10943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945
10946 int
10947 main (void)
10948 {
10949
10950 ;
10951 return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"
10955 then :
10956
10957 lt_aix_libpath_sed='
10958 /Import File Strings/,/^$/ {
10959 /^0/ {
10960 s/^0 *\([^ ]*\) *$/\1/
10961 p
10962 }
10963 }'
10964 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10965 # Check for a 64-bit object if we didn't find anything.
10966 if test -z "$lt_cv_aix_libpath_"; then
10967 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10968 fi
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10971 conftest$ac_exeext conftest.$ac_ext
10972 if test -z "$lt_cv_aix_libpath_"; then
10973 lt_cv_aix_libpath_=/usr/lib:/lib
10974 fi
10975 ;;
10976 esac
10977 fi
10978
10979 aix_libpath=$lt_cv_aix_libpath_
10980 fi
10981
10982 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10983 # Warning - without using the other run time loading flags,
10984 # -berok will link without error, but may produce a broken library.
10985 no_undefined_flag=' $wl-bernotok'
10986 allow_undefined_flag=' $wl-berok'
10987 if test yes = "$with_gnu_ld"; then
10988 # We only use this code for GNU lds that support --whole-archive.
10989 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10990 else
10991 # Exported symbols can be pulled into shared objects from archives
10992 whole_archive_flag_spec='$convenience'
10993 fi
10994 archive_cmds_need_lc=yes
10995 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10996 # -brtl affects multiple linker settings, -berok does not and is overridden later
10997 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10998 if test svr4 != "$with_aix_soname"; then
10999 # This is similar to how AIX traditionally builds its shared libraries.
11000 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'
11001 fi
11002 if test aix != "$with_aix_soname"; then
11003 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'
11004 else
11005 # used by -dlpreopen to get the symbols
11006 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11007 fi
11008 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11009 fi
11010 fi
11011 ;;
11012
11013 amigaos*)
11014 case $host_cpu in
11015 powerpc)
11016 # see comment about AmigaOS4 .so support
11017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11018 archive_expsym_cmds=''
11019 ;;
11020 m68k)
11021 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)'
11022 hardcode_libdir_flag_spec='-L$libdir'
11023 hardcode_minus_L=yes
11024 ;;
11025 esac
11026 ;;
11027
11028 bsdi[45]*)
11029 export_dynamic_flag_spec=-rdynamic
11030 ;;
11031
11032 cygwin* | mingw* | windows* | pw32* | cegcc*)
11033 # When not using gcc, we currently assume that we are using
11034 # Microsoft Visual C++ or Intel C++ Compiler.
11035 # hardcode_libdir_flag_spec is actually meaningless, as there is
11036 # no search path for DLLs.
11037 case $cc_basename in
11038 cl* | icl*)
11039 # Native MSVC or ICC
11040 hardcode_libdir_flag_spec=' '
11041 allow_undefined_flag=unsupported
11042 always_export_symbols=yes
11043 file_list_spec='@'
11044 # Tell ltmain to make .lib files, not .a files.
11045 libext=lib
11046 # Tell ltmain to make .dll files, not .so files.
11047 shrext_cmds=.dll
11048 # FIXME: Setting linknames here is a bad hack.
11049 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11050 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11051 cp "$export_symbols" "$output_objdir/$soname.def";
11052 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11053 else
11054 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11055 fi~
11056 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11057 linknames='
11058 # The linker will not automatically build a static lib if we build a DLL.
11059 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11060 enable_shared_with_static_runtimes=yes
11061 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11063 # Don't use ranlib
11064 old_postinstall_cmds='chmod 644 $oldlib'
11065 postlink_cmds='lt_outputfile="@OUTPUT@"~
11066 lt_tool_outputfile="@TOOL_OUTPUT@"~
11067 case $lt_outputfile in
11068 *.exe|*.EXE) ;;
11069 *)
11070 lt_outputfile=$lt_outputfile.exe
11071 lt_tool_outputfile=$lt_tool_outputfile.exe
11072 ;;
11073 esac~
11074 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11075 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11076 $RM "$lt_outputfile.manifest";
11077 fi'
11078 ;;
11079 *)
11080 # Assume MSVC and ICC wrapper
11081 hardcode_libdir_flag_spec=' '
11082 allow_undefined_flag=unsupported
11083 # Tell ltmain to make .lib files, not .a files.
11084 libext=lib
11085 # Tell ltmain to make .dll files, not .so files.
11086 shrext_cmds=.dll
11087 # FIXME: Setting linknames here is a bad hack.
11088 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11089 # The linker will automatically build a .lib file if we build a DLL.
11090 old_archive_from_new_cmds='true'
11091 # FIXME: Should let the user specify the lib program.
11092 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11093 enable_shared_with_static_runtimes=yes
11094 ;;
11095 esac
11096 ;;
11097
11098 darwin* | rhapsody*)
11099
11100
11101 archive_cmds_need_lc=no
11102 hardcode_direct=no
11103 hardcode_automatic=yes
11104 hardcode_shlibpath_var=unsupported
11105 if test yes = "$lt_cv_ld_force_load"; then
11106 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\"`'
11107
11108 else
11109 whole_archive_flag_spec=''
11110 fi
11111 link_all_deplibs=yes
11112 allow_undefined_flag=$_lt_dar_allow_undefined
11113 case $cc_basename in
11114 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11115 *) _lt_dar_can_shared=$GCC ;;
11116 esac
11117 if test yes = "$_lt_dar_can_shared"; then
11118 output_verbose_link_cmd=func_echo_all
11119 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11120 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11121 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"
11122 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"
11123
11124 else
11125 ld_shlibs=no
11126 fi
11127
11128 ;;
11129
11130 dgux*)
11131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132 hardcode_libdir_flag_spec='-L$libdir'
11133 hardcode_shlibpath_var=no
11134 ;;
11135
11136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11137 # support. Future versions do this automatically, but an explicit c++rt0.o
11138 # does not break anything, and helps significantly (at the cost of a little
11139 # extra space).
11140 freebsd2.2*)
11141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11142 hardcode_libdir_flag_spec='-R$libdir'
11143 hardcode_direct=yes
11144 hardcode_shlibpath_var=no
11145 ;;
11146
11147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11148 freebsd2.*)
11149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11150 hardcode_direct=yes
11151 hardcode_minus_L=yes
11152 hardcode_shlibpath_var=no
11153 ;;
11154
11155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11156 freebsd* | dragonfly* | midnightbsd*)
11157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11158 hardcode_libdir_flag_spec='-R$libdir'
11159 hardcode_direct=yes
11160 hardcode_shlibpath_var=no
11161 ;;
11162
11163 hpux9*)
11164 if test yes = "$GCC"; then
11165 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'
11166 else
11167 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'
11168 fi
11169 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11170 hardcode_libdir_separator=:
11171 hardcode_direct=yes
11172
11173 # hardcode_minus_L: Not really in the search PATH,
11174 # but as the default location of the library.
11175 hardcode_minus_L=yes
11176 export_dynamic_flag_spec='$wl-E'
11177 ;;
11178
11179 hpux10*)
11180 if test yes,no = "$GCC,$with_gnu_ld"; then
11181 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11182 else
11183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11184 fi
11185 if test no = "$with_gnu_ld"; then
11186 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11187 hardcode_libdir_separator=:
11188 hardcode_direct=yes
11189 hardcode_direct_absolute=yes
11190 export_dynamic_flag_spec='$wl-E'
11191 # hardcode_minus_L: Not really in the search PATH,
11192 # but as the default location of the library.
11193 hardcode_minus_L=yes
11194 fi
11195 ;;
11196
11197 hpux11*)
11198 if test yes,no = "$GCC,$with_gnu_ld"; then
11199 case $host_cpu in
11200 hppa*64*)
11201 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11202 ;;
11203 ia64*)
11204 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11205 ;;
11206 *)
11207 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11208 ;;
11209 esac
11210 else
11211 case $host_cpu in
11212 hppa*64*)
11213 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11214 ;;
11215 ia64*)
11216 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11217 ;;
11218 *)
11219
11220 # Older versions of the 11.00 compiler do not understand -b yet
11221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11223 printf %s "checking if $CC understands -b... " >&6; }
11224 if test ${lt_cv_prog_compiler__b+y}
11225 then :
11226 printf %s "(cached) " >&6
11227 else case e in #(
11228 e) lt_cv_prog_compiler__b=no
11229 save_LDFLAGS=$LDFLAGS
11230 LDFLAGS="$LDFLAGS -b"
11231 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11233 # The linker can only warn and ignore the option if not recognized
11234 # So say no if there are warnings
11235 if test -s conftest.err; then
11236 # Append any errors to the config.log.
11237 cat conftest.err 1>&5
11238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11240 if diff conftest.exp conftest.er2 >/dev/null; then
11241 lt_cv_prog_compiler__b=yes
11242 fi
11243 else
11244 lt_cv_prog_compiler__b=yes
11245 fi
11246 fi
11247 $RM -r conftest*
11248 LDFLAGS=$save_LDFLAGS
11249 ;;
11250 esac
11251 fi
11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11253 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11254
11255 if test yes = "$lt_cv_prog_compiler__b"; then
11256 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11257 else
11258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11259 fi
11260
11261 ;;
11262 esac
11263 fi
11264 if test no = "$with_gnu_ld"; then
11265 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11266 hardcode_libdir_separator=:
11267
11268 case $host_cpu in
11269 hppa*64*|ia64*)
11270 hardcode_direct=no
11271 hardcode_shlibpath_var=no
11272 ;;
11273 *)
11274 hardcode_direct=yes
11275 hardcode_direct_absolute=yes
11276 export_dynamic_flag_spec='$wl-E'
11277
11278 # hardcode_minus_L: Not really in the search PATH,
11279 # but as the default location of the library.
11280 hardcode_minus_L=yes
11281 ;;
11282 esac
11283 fi
11284 ;;
11285
11286 irix5* | irix6* | nonstopux*)
11287 if test yes = "$GCC"; then
11288 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'
11289 # Try to use the -exported_symbol ld option, if it does not
11290 # work, assume that -exports_file does not work either and
11291 # implicitly export all symbols.
11292 # This should be the same for all languages, so no per-tag cache variable.
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11294 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11295 if test ${lt_cv_irix_exported_symbol+y}
11296 then :
11297 printf %s "(cached) " >&6
11298 else case e in #(
11299 e) save_LDFLAGS=$LDFLAGS
11300 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 int foo (void) { return 0; }
11304 _ACEOF
11305 if ac_fn_c_try_link "$LINENO"
11306 then :
11307 lt_cv_irix_exported_symbol=yes
11308 else case e in #(
11309 e) lt_cv_irix_exported_symbol=no ;;
11310 esac
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11313 conftest$ac_exeext conftest.$ac_ext
11314 LDFLAGS=$save_LDFLAGS ;;
11315 esac
11316 fi
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11318 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11319 if test yes = "$lt_cv_irix_exported_symbol"; then
11320 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'
11321 fi
11322 else
11323 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'
11324 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'
11325 fi
11326 archive_cmds_need_lc='no'
11327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11328 hardcode_libdir_separator=:
11329 inherit_rpath=yes
11330 link_all_deplibs=yes
11331 ;;
11332
11333 linux*)
11334 case $cc_basename in
11335 tcc*)
11336 # Fabrice Bellard et al's Tiny C Compiler
11337 ld_shlibs=yes
11338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11339 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11340 ;;
11341 esac
11342 ;;
11343
11344 *-mlibc)
11345 ;;
11346
11347 netbsd* | netbsdelf*-gnu)
11348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11350 else
11351 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11352 fi
11353 hardcode_libdir_flag_spec='-R$libdir'
11354 hardcode_direct=yes
11355 hardcode_shlibpath_var=no
11356 ;;
11357
11358 newsos6)
11359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360 hardcode_direct=yes
11361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11362 hardcode_libdir_separator=:
11363 hardcode_shlibpath_var=no
11364 ;;
11365
11366 *nto* | *qnx*)
11367 ;;
11368
11369 openbsd*)
11370 if test -f /usr/libexec/ld.so; then
11371 hardcode_direct=yes
11372 hardcode_shlibpath_var=no
11373 hardcode_direct_absolute=yes
11374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11376 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11377 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11378 export_dynamic_flag_spec='$wl-E'
11379 else
11380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11381 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11382 fi
11383 else
11384 ld_shlibs=no
11385 fi
11386 ;;
11387
11388 os2*)
11389 hardcode_libdir_flag_spec='-L$libdir'
11390 hardcode_minus_L=yes
11391 allow_undefined_flag=unsupported
11392 shrext_cmds=.dll
11393 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11396 $ECHO EXPORTS >> $output_objdir/$libname.def~
11397 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11399 emximp -o $lib $output_objdir/$libname.def'
11400 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11401 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11402 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11403 $ECHO EXPORTS >> $output_objdir/$libname.def~
11404 prefix_cmds="$SED"~
11405 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11406 prefix_cmds="$prefix_cmds -e 1d";
11407 fi~
11408 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11409 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11411 emximp -o $lib $output_objdir/$libname.def'
11412 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11413 enable_shared_with_static_runtimes=yes
11414 file_list_spec='@'
11415 ;;
11416
11417 osf3*)
11418 if test yes = "$GCC"; then
11419 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11420 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'
11421 else
11422 allow_undefined_flag=' -expect_unresolved \*'
11423 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'
11424 fi
11425 archive_cmds_need_lc='no'
11426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11427 hardcode_libdir_separator=:
11428 ;;
11429
11430 osf4* | osf5*) # as osf3* with the addition of -msym flag
11431 if test yes = "$GCC"; then
11432 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11433 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'
11434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11435 else
11436 allow_undefined_flag=' -expect_unresolved \*'
11437 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'
11438 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~
11439 $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'
11440
11441 # Both c and cxx compiler support -rpath directly
11442 hardcode_libdir_flag_spec='-rpath $libdir'
11443 fi
11444 archive_cmds_need_lc='no'
11445 hardcode_libdir_separator=:
11446 ;;
11447
11448 serenity*)
11449 ;;
11450
11451 solaris*)
11452 no_undefined_flag=' -z defs'
11453 if test yes = "$GCC"; then
11454 wlarc='$wl'
11455 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11456 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11457 $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'
11458 else
11459 case `$CC -V 2>&1` in
11460 *"Compilers 5.0"*)
11461 wlarc=''
11462 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11463 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11464 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11465 ;;
11466 *)
11467 wlarc='$wl'
11468 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11470 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11471 ;;
11472 esac
11473 fi
11474 hardcode_libdir_flag_spec='-R$libdir'
11475 hardcode_shlibpath_var=no
11476 case $host_os in
11477 solaris2.[0-5] | solaris2.[0-5].*) ;;
11478 *)
11479 # The compiler driver will combine and reorder linker options,
11480 # but understands '-z linker_flag'. GCC discards it without '$wl',
11481 # but is careful enough not to reorder.
11482 # Supported since Solaris 2.6 (maybe 2.5.1?)
11483 if test yes = "$GCC"; then
11484 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11485 else
11486 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11487 fi
11488 ;;
11489 esac
11490 link_all_deplibs=yes
11491 ;;
11492
11493 sunos4*)
11494 if test sequent = "$host_vendor"; then
11495 # Use $CC to link under sequent, because it throws in some extra .o
11496 # files that make .init and .fini sections work.
11497 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11498 else
11499 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11500 fi
11501 hardcode_libdir_flag_spec='-L$libdir'
11502 hardcode_direct=yes
11503 hardcode_minus_L=yes
11504 hardcode_shlibpath_var=no
11505 ;;
11506
11507 sysv4)
11508 case $host_vendor in
11509 sni)
11510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511 hardcode_direct=yes # is this really true???
11512 ;;
11513 siemens)
11514 ## LD is ld it makes a PLAMLIB
11515 ## CC just makes a GrossModule.
11516 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11517 reload_cmds='$CC -r -o $output$reload_objs'
11518 hardcode_direct=no
11519 ;;
11520 motorola)
11521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11523 ;;
11524 esac
11525 runpath_var='LD_RUN_PATH'
11526 hardcode_shlibpath_var=no
11527 ;;
11528
11529 sysv4.3*)
11530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531 hardcode_shlibpath_var=no
11532 export_dynamic_flag_spec='-Bexport'
11533 ;;
11534
11535 sysv4*MP*)
11536 if test -d /usr/nec; then
11537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538 hardcode_shlibpath_var=no
11539 runpath_var=LD_RUN_PATH
11540 hardcode_runpath_var=yes
11541 ld_shlibs=yes
11542 fi
11543 ;;
11544
11545 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11546 no_undefined_flag='$wl-z,text'
11547 archive_cmds_need_lc=no
11548 hardcode_shlibpath_var=no
11549 runpath_var='LD_RUN_PATH'
11550
11551 if test yes = "$GCC"; then
11552 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11553 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11554 else
11555 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11557 fi
11558 ;;
11559
11560 sysv5* | sco3.2v5* | sco5v6*)
11561 # Note: We CANNOT use -z defs as we might desire, because we do not
11562 # link with -lc, and that would cause any symbols used from libc to
11563 # always be unresolved, which means just about no library would
11564 # ever link correctly. If we're not using GNU ld we use -z text
11565 # though, which does catch some bad symbols but isn't as heavy-handed
11566 # as -z defs.
11567 no_undefined_flag='$wl-z,text'
11568 allow_undefined_flag='$wl-z,nodefs'
11569 archive_cmds_need_lc=no
11570 hardcode_shlibpath_var=no
11571 hardcode_libdir_flag_spec='$wl-R,$libdir'
11572 hardcode_libdir_separator=':'
11573 link_all_deplibs=yes
11574 export_dynamic_flag_spec='$wl-Bexport'
11575 runpath_var='LD_RUN_PATH'
11576
11577 if test yes = "$GCC"; then
11578 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11579 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580 else
11581 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11582 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583 fi
11584 ;;
11585
11586 uts4*)
11587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11588 hardcode_libdir_flag_spec='-L$libdir'
11589 hardcode_shlibpath_var=no
11590 ;;
11591
11592 *)
11593 ld_shlibs=no
11594 ;;
11595 esac
11596
11597 if test sni = "$host_vendor"; then
11598 case $host in
11599 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11600 export_dynamic_flag_spec='$wl-Blargedynsym'
11601 ;;
11602 esac
11603 fi
11604 fi
11605
11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11607 printf "%s\n" "$ld_shlibs" >&6; }
11608 test no = "$ld_shlibs" && can_build_shared=no
11609
11610 with_gnu_ld=$with_gnu_ld
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626 #
11627 # Do we need to explicitly link libc?
11628 #
11629 case "x$archive_cmds_need_lc" in
11630 x|xyes)
11631 # Assume -lc should be added
11632 archive_cmds_need_lc=yes
11633
11634 if test yes,yes = "$GCC,$enable_shared"; then
11635 case $archive_cmds in
11636 *'~'*)
11637 # FIXME: we may have to deal with multi-command sequences.
11638 ;;
11639 '$CC '*)
11640 # Test whether the compiler implicitly links with -lc since on some
11641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11642 # to ld, don't add -lc before -lgcc.
11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11644 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11645 if test ${lt_cv_archive_cmds_need_lc+y}
11646 then :
11647 printf %s "(cached) " >&6
11648 else case e in #(
11649 e) $RM conftest*
11650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11651
11652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11653 (eval $ac_compile) 2>&5
11654 ac_status=$?
11655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11656 test $ac_status = 0; } 2>conftest.err; then
11657 soname=conftest
11658 lib=conftest
11659 libobjs=conftest.$ac_objext
11660 deplibs=
11661 wl=$lt_prog_compiler_wl
11662 pic_flag=$lt_prog_compiler_pic
11663 compiler_flags=-v
11664 linker_flags=-v
11665 verstring=
11666 output_objdir=.
11667 libname=conftest
11668 lt_save_allow_undefined_flag=$allow_undefined_flag
11669 allow_undefined_flag=
11670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11671 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11672 ac_status=$?
11673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674 test $ac_status = 0; }
11675 then
11676 lt_cv_archive_cmds_need_lc=no
11677 else
11678 lt_cv_archive_cmds_need_lc=yes
11679 fi
11680 allow_undefined_flag=$lt_save_allow_undefined_flag
11681 else
11682 cat conftest.err 1>&5
11683 fi
11684 $RM conftest*
11685 ;;
11686 esac
11687 fi
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11689 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11690 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11691 ;;
11692 esac
11693 fi
11694 ;;
11695 esac
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11849 printf %s "checking dynamic linker characteristics... " >&6; }
11850
11851 if test yes = "$GCC"; then
11852 case $host_os in
11853 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11854 *) lt_awk_arg='/^libraries:/' ;;
11855 esac
11856 case $host_os in
11857 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11858 *) lt_sed_strip_eq='s|=/|/|g' ;;
11859 esac
11860 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11861 case $lt_search_path_spec in
11862 *\;*)
11863 # if the path contains ";" then we assume it to be the separator
11864 # otherwise default to the standard path separator (i.e. ":") - it is
11865 # assumed that no part of a normal pathname contains ";" but that should
11866 # okay in the real world where ";" in dirpaths is itself problematic.
11867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11868 ;;
11869 *)
11870 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11871 ;;
11872 esac
11873 # Ok, now we have the path, separated by spaces, we can step through it
11874 # and add multilib dir if necessary...
11875 lt_tmp_lt_search_path_spec=
11876 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11877 # ...but if some path component already ends with the multilib dir we assume
11878 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11879 case "$lt_multi_os_dir; $lt_search_path_spec " in
11880 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11881 lt_multi_os_dir=
11882 ;;
11883 esac
11884 for lt_sys_path in $lt_search_path_spec; do
11885 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11887 elif test -n "$lt_multi_os_dir"; then
11888 test -d "$lt_sys_path" && \
11889 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11890 fi
11891 done
11892 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11893 BEGIN {RS = " "; FS = "/|\n";} {
11894 lt_foo = "";
11895 lt_count = 0;
11896 for (lt_i = NF; lt_i > 0; lt_i--) {
11897 if ($lt_i != "" && $lt_i != ".") {
11898 if ($lt_i == "..") {
11899 lt_count++;
11900 } else {
11901 if (lt_count == 0) {
11902 lt_foo = "/" $lt_i lt_foo;
11903 } else {
11904 lt_count--;
11905 }
11906 }
11907 }
11908 }
11909 if (lt_foo != "") { lt_freq[lt_foo]++; }
11910 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11911 }'`
11912 # AWK program above erroneously prepends '/' to C:/dos/paths
11913 # for these hosts.
11914 case $host_os in
11915 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11916 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11917 esac
11918 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11919 else
11920 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11921 fi
11922 library_names_spec=
11923 libname_spec='lib$name'
11924 soname_spec=
11925 shrext_cmds=.so
11926 postinstall_cmds=
11927 postuninstall_cmds=
11928 finish_cmds=
11929 finish_eval=
11930 shlibpath_var=
11931 shlibpath_overrides_runpath=unknown
11932 version_type=none
11933 dynamic_linker="$host_os ld.so"
11934 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11935 need_lib_prefix=unknown
11936 hardcode_into_libs=no
11937
11938 # when you set need_version to no, make sure it does not cause -set_version
11939 # flags to be left without arguments
11940 need_version=unknown
11941
11942
11943
11944 case $host_os in
11945 aix3*)
11946 version_type=linux # correct to gnu/linux during the next big refactor
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11948 shlibpath_var=LIBPATH
11949
11950 # AIX 3 has no versioning support, so we append a major version to the name.
11951 soname_spec='$libname$release$shared_ext$major'
11952 ;;
11953
11954 aix[4-9]*)
11955 version_type=linux # correct to gnu/linux during the next big refactor
11956 need_lib_prefix=no
11957 need_version=no
11958 hardcode_into_libs=yes
11959 if test ia64 = "$host_cpu"; then
11960 # AIX 5 supports IA64
11961 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 else
11964 # With GCC up to 2.95.x, collect2 would create an import file
11965 # for dependence libraries. The import file would start with
11966 # the line '#! .'. This would cause the generated library to
11967 # depend on '.', always an invalid library. This was fixed in
11968 # development snapshots of GCC prior to 3.0.
11969 case $host_os in
11970 aix4 | aix4.[01] | aix4.[01].*)
11971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11972 echo ' yes '
11973 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11974 :
11975 else
11976 can_build_shared=no
11977 fi
11978 ;;
11979 esac
11980 # Using Import Files as archive members, it is possible to support
11981 # filename-based versioning of shared library archives on AIX. While
11982 # this would work for both with and without runtime linking, it will
11983 # prevent static linking of such archives. So we do filename-based
11984 # shared library versioning with .so extension only, which is used
11985 # when both runtime linking and shared linking is enabled.
11986 # Unfortunately, runtime linking may impact performance, so we do
11987 # not want this to be the default eventually. Also, we use the
11988 # versioned .so libs for executables only if there is the -brtl
11989 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11990 # To allow for filename-based versioning support, we need to create
11991 # libNAME.so.V as an archive file, containing:
11992 # *) an Import File, referring to the versioned filename of the
11993 # archive as well as the shared archive member, telling the
11994 # bitwidth (32 or 64) of that shared object, and providing the
11995 # list of exported symbols of that shared object, eventually
11996 # decorated with the 'weak' keyword
11997 # *) the shared object with the F_LOADONLY flag set, to really avoid
11998 # it being seen by the linker.
11999 # At run time we better use the real file rather than another symlink,
12000 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12001
12002 case $with_aix_soname,$aix_use_runtimelinking in
12003 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12004 # soname into executable. Probably we can add versioning support to
12005 # collect2, so additional links can be useful in future.
12006 aix,yes) # traditional libtool
12007 dynamic_linker='AIX unversionable lib.so'
12008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12009 # instead of lib<name>.a to let people know that these are not
12010 # typical AIX shared libraries.
12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012 ;;
12013 aix,no) # traditional AIX only
12014 dynamic_linker='AIX lib.a(lib.so.V)'
12015 # We preserve .a as extension for shared libraries through AIX4.2
12016 # and later when we are not doing run time linking.
12017 library_names_spec='$libname$release.a $libname.a'
12018 soname_spec='$libname$release$shared_ext$major'
12019 ;;
12020 svr4,*) # full svr4 only
12021 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12022 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12023 # We do not specify a path in Import Files, so LIBPATH fires.
12024 shlibpath_overrides_runpath=yes
12025 ;;
12026 *,yes) # both, prefer svr4
12027 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12028 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12029 # unpreferred sharedlib libNAME.a needs extra handling
12030 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"'
12031 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"'
12032 # We do not specify a path in Import Files, so LIBPATH fires.
12033 shlibpath_overrides_runpath=yes
12034 ;;
12035 *,no) # both, prefer aix
12036 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12037 library_names_spec='$libname$release.a $libname.a'
12038 soname_spec='$libname$release$shared_ext$major'
12039 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12040 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)'
12041 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"'
12042 ;;
12043 esac
12044 shlibpath_var=LIBPATH
12045 fi
12046 ;;
12047
12048 amigaos*)
12049 case $host_cpu in
12050 powerpc)
12051 # Since July 2007 AmigaOS4 officially supports .so libraries.
12052 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054 ;;
12055 m68k)
12056 library_names_spec='$libname.ixlibrary $libname.a'
12057 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12058 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'
12059 ;;
12060 esac
12061 ;;
12062
12063 beos*)
12064 library_names_spec='$libname$shared_ext'
12065 dynamic_linker="$host_os ld.so"
12066 shlibpath_var=LIBRARY_PATH
12067 ;;
12068
12069 bsdi[45]*)
12070 version_type=linux # correct to gnu/linux during the next big refactor
12071 need_version=no
12072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12073 soname_spec='$libname$release$shared_ext$major'
12074 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12077 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12078 # the default ld.so.conf also contains /usr/contrib/lib and
12079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12080 # libtool to hard-code these into programs
12081 ;;
12082
12083 cygwin* | mingw* | windows* | pw32* | cegcc*)
12084 version_type=windows
12085 shrext_cmds=.dll
12086 need_version=no
12087 need_lib_prefix=no
12088
12089 case $GCC,$cc_basename in
12090 yes,*)
12091 # gcc
12092 library_names_spec='$libname.dll.a'
12093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12094 # If user builds GCC with multilib enabled,
12095 # it should just install on $(libdir)
12096 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12097 if test xyes = x"$multilib"; then
12098 postinstall_cmds='base_file=`basename \$file`~
12099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12100 dldir=$destdir/`dirname \$dlpath`~
12101 $install_prog $dir/$dlname $destdir/$dlname~
12102 chmod a+x $destdir/$dlname~
12103 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12104 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12105 fi'
12106 else
12107 postinstall_cmds='base_file=`basename \$file`~
12108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12109 dldir=$destdir/`dirname \$dlpath`~
12110 test -d \$dldir || mkdir -p \$dldir~
12111 $install_prog $dir/$dlname \$dldir/$dlname~
12112 chmod a+x \$dldir/$dlname~
12113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12115 fi'
12116 fi
12117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12118 dlpath=$dir/\$dldll~
12119 $RM \$dlpath'
12120 shlibpath_overrides_runpath=yes
12121
12122 case $host_os in
12123 cygwin*)
12124 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12125 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12126
12127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12128 ;;
12129 mingw* | windows* | cegcc*)
12130 # MinGW DLLs use traditional 'lib' prefix
12131 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12132 ;;
12133 pw32*)
12134 # pw32 DLLs use 'pw' prefix rather than 'lib'
12135 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12136 ;;
12137 esac
12138 dynamic_linker='Win32 ld.exe'
12139 ;;
12140
12141 *,cl* | *,icl*)
12142 # Native MSVC or ICC
12143 libname_spec='$name'
12144 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12145 library_names_spec='$libname.dll.lib'
12146
12147 case $build_os in
12148 mingw* | windows*)
12149 sys_lib_search_path_spec=
12150 lt_save_ifs=$IFS
12151 IFS=';'
12152 for lt_path in $LIB
12153 do
12154 IFS=$lt_save_ifs
12155 # Let DOS variable expansion print the short 8.3 style file name.
12156 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12157 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12158 done
12159 IFS=$lt_save_ifs
12160 # Convert to MSYS style.
12161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12162 ;;
12163 cygwin*)
12164 # Convert to unix form, then to dos form, then back to unix form
12165 # but this time dos style (no spaces!) so that the unix form looks
12166 # like /cygdrive/c/PROGRA~1:/cygdr...
12167 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12168 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12169 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12170 ;;
12171 *)
12172 sys_lib_search_path_spec=$LIB
12173 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12174 # It is most probably a Windows format PATH.
12175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12176 else
12177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12178 fi
12179 # FIXME: find the short name or the path components, as spaces are
12180 # common. (e.g. "Program Files" -> "PROGRA~1")
12181 ;;
12182 esac
12183
12184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12185 postinstall_cmds='base_file=`basename \$file`~
12186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12187 dldir=$destdir/`dirname \$dlpath`~
12188 test -d \$dldir || mkdir -p \$dldir~
12189 $install_prog $dir/$dlname \$dldir/$dlname'
12190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12191 dlpath=$dir/\$dldll~
12192 $RM \$dlpath'
12193 shlibpath_overrides_runpath=yes
12194 dynamic_linker='Win32 link.exe'
12195 ;;
12196
12197 *)
12198 # Assume MSVC and ICC wrapper
12199 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12200 dynamic_linker='Win32 ld.exe'
12201 ;;
12202 esac
12203 # FIXME: first we should search . and the directory the executable is in
12204 shlibpath_var=PATH
12205 ;;
12206
12207 darwin* | rhapsody*)
12208 dynamic_linker="$host_os dyld"
12209 version_type=darwin
12210 need_lib_prefix=no
12211 need_version=no
12212 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12213 soname_spec='$libname$release$major$shared_ext'
12214 shlibpath_overrides_runpath=yes
12215 shlibpath_var=DYLD_LIBRARY_PATH
12216 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12217
12218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12220 ;;
12221
12222 dgux*)
12223 version_type=linux # correct to gnu/linux during the next big refactor
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 shlibpath_var=LD_LIBRARY_PATH
12229 ;;
12230
12231 freebsd* | dragonfly* | midnightbsd*)
12232 # DragonFly does not have aout. When/if they implement a new
12233 # versioning mechanism, adjust this.
12234 if test -x /usr/bin/objformat; then
12235 objformat=`/usr/bin/objformat`
12236 else
12237 case $host_os in
12238 freebsd[23].*) objformat=aout ;;
12239 *) objformat=elf ;;
12240 esac
12241 fi
12242 version_type=freebsd-$objformat
12243 case $version_type in
12244 freebsd-elf*)
12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246 soname_spec='$libname$release$shared_ext$major'
12247 need_version=no
12248 need_lib_prefix=no
12249 ;;
12250 freebsd-*)
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12252 need_version=yes
12253 ;;
12254 esac
12255 case $host_cpu in
12256 powerpc64)
12257 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12258 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261 int test_pointer_size[sizeof (void *) - 5];
12262
12263 _ACEOF
12264 if ac_fn_c_try_compile "$LINENO"
12265 then :
12266 shlibpath_var=LD_LIBRARY_PATH
12267 else case e in #(
12268 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12269 esac
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12272 ;;
12273 *)
12274 shlibpath_var=LD_LIBRARY_PATH
12275 ;;
12276 esac
12277 case $host_os in
12278 freebsd2.*)
12279 shlibpath_overrides_runpath=yes
12280 ;;
12281 freebsd3.[01]* | freebsdelf3.[01]*)
12282 shlibpath_overrides_runpath=yes
12283 hardcode_into_libs=yes
12284 ;;
12285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12287 shlibpath_overrides_runpath=no
12288 hardcode_into_libs=yes
12289 ;;
12290 *) # from 4.6 on, and DragonFly
12291 shlibpath_overrides_runpath=yes
12292 hardcode_into_libs=yes
12293 ;;
12294 esac
12295 ;;
12296
12297 haiku*)
12298 version_type=linux # correct to gnu/linux during the next big refactor
12299 need_lib_prefix=no
12300 need_version=no
12301 dynamic_linker="$host_os runtime_loader"
12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12303 soname_spec='$libname$release$shared_ext$major'
12304 shlibpath_var=LIBRARY_PATH
12305 shlibpath_overrides_runpath=no
12306 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12307 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12308 hardcode_into_libs=no
12309 ;;
12310
12311 hpux9* | hpux10* | hpux11*)
12312 # Give a soname corresponding to the major version so that dld.sl refuses to
12313 # link against other versions.
12314 version_type=sunos
12315 need_lib_prefix=no
12316 need_version=no
12317 case $host_cpu in
12318 ia64*)
12319 shrext_cmds='.so'
12320 hardcode_into_libs=yes
12321 dynamic_linker="$host_os dld.so"
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12325 soname_spec='$libname$release$shared_ext$major'
12326 if test 32 = "$HPUX_IA64_MODE"; then
12327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12328 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12329 else
12330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12331 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12332 fi
12333 ;;
12334 hppa*64*)
12335 shrext_cmds='.sl'
12336 hardcode_into_libs=yes
12337 dynamic_linker="$host_os dld.sl"
12338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341 soname_spec='$libname$release$shared_ext$major'
12342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12344 ;;
12345 *)
12346 shrext_cmds='.sl'
12347 dynamic_linker="$host_os dld.sl"
12348 shlibpath_var=SHLIB_PATH
12349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12351 soname_spec='$libname$release$shared_ext$major'
12352 ;;
12353 esac
12354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12355 postinstall_cmds='chmod 555 $lib'
12356 # or fails outright, so override atomically:
12357 install_override_mode=555
12358 ;;
12359
12360 interix[3-9]*)
12361 version_type=linux # correct to gnu/linux during the next big refactor
12362 need_lib_prefix=no
12363 need_version=no
12364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12365 soname_spec='$libname$release$shared_ext$major'
12366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 shlibpath_overrides_runpath=no
12369 hardcode_into_libs=yes
12370 ;;
12371
12372 irix5* | irix6* | nonstopux*)
12373 case $host_os in
12374 nonstopux*) version_type=nonstopux ;;
12375 *)
12376 if test yes = "$lt_cv_prog_gnu_ld"; then
12377 version_type=linux # correct to gnu/linux during the next big refactor
12378 else
12379 version_type=irix
12380 fi ;;
12381 esac
12382 need_lib_prefix=no
12383 need_version=no
12384 soname_spec='$libname$release$shared_ext$major'
12385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12386 case $host_os in
12387 irix5* | nonstopux*)
12388 libsuff= shlibsuff=
12389 ;;
12390 *)
12391 case $LD in # libtool.m4 will add one of these switches to LD
12392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12393 libsuff= shlibsuff= libmagic=32-bit;;
12394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12395 libsuff=32 shlibsuff=N32 libmagic=N32;;
12396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12398 *) libsuff= shlibsuff= libmagic=never-match;;
12399 esac
12400 ;;
12401 esac
12402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12403 shlibpath_overrides_runpath=no
12404 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12405 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12406 hardcode_into_libs=yes
12407 ;;
12408
12409 # No shared lib support for Linux oldld, aout, or coff.
12410 linux*oldld* | linux*aout* | linux*coff*)
12411 dynamic_linker=no
12412 ;;
12413
12414 linux*android*)
12415 version_type=none # Android doesn't support versioned libraries.
12416 need_lib_prefix=no
12417 need_version=no
12418 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12419 soname_spec='$libname$release$shared_ext'
12420 finish_cmds=
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=yes
12423
12424 # This implies no fast_install, which is unacceptable.
12425 # Some rework will be needed to allow for fast_install
12426 # before this can be enabled.
12427 hardcode_into_libs=yes
12428
12429 dynamic_linker='Android linker'
12430 # -rpath works at least for libraries that are not overridden by
12431 # libraries installed in system locations.
12432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12433 ;;
12434
12435 # This must be glibc/ELF.
12436 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12437 version_type=linux # correct to gnu/linux during the next big refactor
12438 need_lib_prefix=no
12439 need_version=no
12440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12441 soname_spec='$libname$release$shared_ext$major'
12442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath=no
12445
12446 # Some binutils ld are patched to set DT_RUNPATH
12447 if test ${lt_cv_shlibpath_overrides_runpath+y}
12448 then :
12449 printf %s "(cached) " >&6
12450 else case e in #(
12451 e) lt_cv_shlibpath_overrides_runpath=no
12452 save_LDFLAGS=$LDFLAGS
12453 save_libdir=$libdir
12454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458
12459 int
12460 main (void)
12461 {
12462
12463 ;
12464 return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"
12468 then :
12469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12470 then :
12471 lt_cv_shlibpath_overrides_runpath=yes
12472 fi
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LDFLAGS=$save_LDFLAGS
12477 libdir=$save_libdir
12478 ;;
12479 esac
12480 fi
12481
12482 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12483
12484 # This implies no fast_install, which is unacceptable.
12485 # Some rework will be needed to allow for fast_install
12486 # before this can be enabled.
12487 hardcode_into_libs=yes
12488
12489 # Ideally, we could use ldconfig to report *all* directories which are
12490 # searched for libraries, however this is still not possible. Aside from not
12491 # being certain /sbin/ldconfig is available, command
12492 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12493 # even though it is searched at run-time. Try to do the best guess by
12494 # appending ld.so.conf contents (and includes) to the search path.
12495 if test -f /etc/ld.so.conf; then
12496 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' ' '`
12497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12498 fi
12499
12500 # We used to test for /lib/ld.so.1 and disable shared libraries on
12501 # powerpc, because MkLinux only supported shared libraries with the
12502 # GNU dynamic linker. Since this was broken with cross compilers,
12503 # most powerpc-linux boxes support dynamic linking these days and
12504 # people can always --disable-shared, the test was removed, and we
12505 # assume the GNU/Linux dynamic linker is in use.
12506 dynamic_linker='GNU/Linux ld.so'
12507 ;;
12508
12509 netbsdelf*-gnu)
12510 version_type=linux
12511 need_lib_prefix=no
12512 need_version=no
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514 soname_spec='$libname$release$shared_ext$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=no
12517 hardcode_into_libs=yes
12518 dynamic_linker='NetBSD ld.elf_so'
12519 ;;
12520
12521 netbsd*)
12522 version_type=sunos
12523 need_lib_prefix=no
12524 need_version=no
12525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12526 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12528 dynamic_linker='NetBSD (a.out) ld.so'
12529 else
12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531 soname_spec='$libname$release$shared_ext$major'
12532 dynamic_linker='NetBSD ld.elf_so'
12533 fi
12534 shlibpath_var=LD_LIBRARY_PATH
12535 shlibpath_overrides_runpath=yes
12536 hardcode_into_libs=yes
12537 ;;
12538
12539 *-mlibc)
12540 version_type=linux # correct to gnu/linux during the next big refactor
12541 need_lib_prefix=no
12542 need_version=no
12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12544 soname_spec='$libname$release$shared_ext$major'
12545 dynamic_linker='mlibc ld.so'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 shlibpath_overrides_runpath=no
12548 hardcode_into_libs=yes
12549 ;;
12550
12551 newsos6)
12552 version_type=linux # correct to gnu/linux during the next big refactor
12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=yes
12556 ;;
12557
12558 *nto* | *qnx*)
12559 version_type=qnx
12560 need_lib_prefix=no
12561 need_version=no
12562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12563 soname_spec='$libname$release$shared_ext$major'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 shlibpath_overrides_runpath=no
12566 hardcode_into_libs=yes
12567 dynamic_linker='ldqnx.so'
12568 ;;
12569
12570 openbsd*)
12571 version_type=sunos
12572 sys_lib_dlsearch_path_spec=/usr/lib
12573 need_lib_prefix=no
12574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12575 need_version=no
12576 else
12577 need_version=yes
12578 fi
12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 shlibpath_overrides_runpath=yes
12583 ;;
12584
12585 os2*)
12586 libname_spec='$name'
12587 version_type=windows
12588 shrext_cmds=.dll
12589 need_version=no
12590 need_lib_prefix=no
12591 # OS/2 can only load a DLL with a base name of 8 characters or less.
12592 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12593 v=$($ECHO $release$versuffix | tr -d .-);
12594 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12595 $ECHO $n$v`$shared_ext'
12596 library_names_spec='${libname}_dll.$libext'
12597 dynamic_linker='OS/2 ld.exe'
12598 shlibpath_var=BEGINLIBPATH
12599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12601 postinstall_cmds='base_file=`basename \$file`~
12602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12603 dldir=$destdir/`dirname \$dlpath`~
12604 test -d \$dldir || mkdir -p \$dldir~
12605 $install_prog $dir/$dlname \$dldir/$dlname~
12606 chmod a+x \$dldir/$dlname~
12607 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12608 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12609 fi'
12610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12611 dlpath=$dir/\$dldll~
12612 $RM \$dlpath'
12613 ;;
12614
12615 osf3* | osf4* | osf5*)
12616 version_type=osf
12617 need_lib_prefix=no
12618 need_version=no
12619 soname_spec='$libname$release$shared_ext$major'
12620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12621 shlibpath_var=LD_LIBRARY_PATH
12622 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12624 ;;
12625
12626 rdos*)
12627 dynamic_linker=no
12628 ;;
12629
12630 serenity*)
12631 version_type=linux # correct to gnu/linux during the next big refactor
12632 need_lib_prefix=no
12633 need_version=no
12634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12635 soname_spec='$libname$release$shared_ext$major'
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=no
12638 dynamic_linker='SerenityOS LibELF'
12639 ;;
12640
12641 solaris*)
12642 version_type=linux # correct to gnu/linux during the next big refactor
12643 need_lib_prefix=no
12644 need_version=no
12645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12646 soname_spec='$libname$release$shared_ext$major'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 shlibpath_overrides_runpath=yes
12649 hardcode_into_libs=yes
12650 # ldd complains unless libraries are executable
12651 postinstall_cmds='chmod +x $lib'
12652 ;;
12653
12654 sunos4*)
12655 version_type=sunos
12656 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12657 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12658 shlibpath_var=LD_LIBRARY_PATH
12659 shlibpath_overrides_runpath=yes
12660 if test yes = "$with_gnu_ld"; then
12661 need_lib_prefix=no
12662 fi
12663 need_version=yes
12664 ;;
12665
12666 sysv4 | sysv4.3*)
12667 version_type=linux # correct to gnu/linux during the next big refactor
12668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12669 soname_spec='$libname$release$shared_ext$major'
12670 shlibpath_var=LD_LIBRARY_PATH
12671 case $host_vendor in
12672 sni)
12673 shlibpath_overrides_runpath=no
12674 need_lib_prefix=no
12675 runpath_var=LD_RUN_PATH
12676 ;;
12677 siemens)
12678 need_lib_prefix=no
12679 ;;
12680 motorola)
12681 need_lib_prefix=no
12682 need_version=no
12683 shlibpath_overrides_runpath=no
12684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12685 ;;
12686 esac
12687 ;;
12688
12689 sysv4*MP*)
12690 if test -d /usr/nec; then
12691 version_type=linux # correct to gnu/linux during the next big refactor
12692 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12693 soname_spec='$libname$shared_ext.$major'
12694 shlibpath_var=LD_LIBRARY_PATH
12695 fi
12696 ;;
12697
12698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12699 version_type=sco
12700 need_lib_prefix=no
12701 need_version=no
12702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12703 soname_spec='$libname$release$shared_ext$major'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 shlibpath_overrides_runpath=yes
12706 hardcode_into_libs=yes
12707 if test yes = "$with_gnu_ld"; then
12708 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12709 else
12710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12711 case $host_os in
12712 sco3.2v5*)
12713 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12714 ;;
12715 esac
12716 fi
12717 sys_lib_dlsearch_path_spec='/usr/lib'
12718 ;;
12719
12720 tpf*)
12721 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12722 version_type=linux # correct to gnu/linux during the next big refactor
12723 need_lib_prefix=no
12724 need_version=no
12725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 shlibpath_overrides_runpath=no
12728 hardcode_into_libs=yes
12729 ;;
12730
12731 uts4*)
12732 version_type=linux # correct to gnu/linux during the next big refactor
12733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12734 soname_spec='$libname$release$shared_ext$major'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 ;;
12737
12738 emscripten*)
12739 version_type=none
12740 need_lib_prefix=no
12741 need_version=no
12742 library_names_spec='$libname$release$shared_ext'
12743 soname_spec='$libname$release$shared_ext'
12744 finish_cmds=
12745 dynamic_linker="Emscripten linker"
12746 lt_prog_compiler_wl=
12747 lt_prog_compiler_pic=
12748 lt_prog_compiler_static=
12749
12750
12751 if test yes = "$GCC"; then
12752 lt_prog_compiler_wl='-Wl,'
12753 lt_prog_compiler_static='-static'
12754
12755 case $host_os in
12756 aix*)
12757 # All AIX code is PIC.
12758 if test ia64 = "$host_cpu"; then
12759 # AIX 5 now supports IA64 processor
12760 lt_prog_compiler_static='-Bstatic'
12761 fi
12762 lt_prog_compiler_pic='-fPIC'
12763 ;;
12764
12765 amigaos*)
12766 case $host_cpu in
12767 powerpc)
12768 # see comment about AmigaOS4 .so support
12769 lt_prog_compiler_pic='-fPIC'
12770 ;;
12771 m68k)
12772 # FIXME: we need at least 68020 code to build shared libraries, but
12773 # adding the '-m68020' flag to GCC prevents building anything better,
12774 # like '-m68040'.
12775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12776 ;;
12777 esac
12778 ;;
12779
12780 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12781 # PIC is the default for these OSes.
12782 ;;
12783
12784 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12785 # This hack is so that the source file can tell whether it is being
12786 # built for inclusion in a dll (and should export symbols for example).
12787 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12788 # (--disable-auto-import) libraries
12789 lt_prog_compiler_pic='-DDLL_EXPORT'
12790 case $host_os in
12791 os2*)
12792 lt_prog_compiler_static='$wl-static'
12793 ;;
12794 esac
12795 ;;
12796
12797 darwin* | rhapsody*)
12798 # PIC is the default on this platform
12799 # Common symbols not allowed in MH_DYLIB files
12800 lt_prog_compiler_pic='-fno-common'
12801 ;;
12802
12803 haiku*)
12804 # PIC is the default for Haiku.
12805 # The "-static" flag exists, but is broken.
12806 lt_prog_compiler_static=
12807 ;;
12808
12809 hpux*)
12810 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12811 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12812 # sets the default TLS model and affects inlining.
12813 case $host_cpu in
12814 hppa*64*)
12815 # +Z the default
12816 ;;
12817 *)
12818 lt_prog_compiler_pic='-fPIC'
12819 ;;
12820 esac
12821 ;;
12822
12823 interix[3-9]*)
12824 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12825 # Instead, we relocate shared libraries at runtime.
12826 ;;
12827
12828 msdosdjgpp*)
12829 # Just because we use GCC doesn't mean we suddenly get shared libraries
12830 # on systems that don't support them.
12831 lt_prog_compiler_can_build_shared=no
12832 enable_shared=no
12833 ;;
12834
12835 *nto* | *qnx*)
12836 # QNX uses GNU C++, but need to define -shared option too, otherwise
12837 # it will coredump.
12838 lt_prog_compiler_pic='-fPIC -shared'
12839 ;;
12840
12841 sysv4*MP*)
12842 if test -d /usr/nec; then
12843 lt_prog_compiler_pic=-Kconform_pic
12844 fi
12845 ;;
12846
12847 *)
12848 lt_prog_compiler_pic='-fPIC'
12849 ;;
12850 esac
12851
12852 case $cc_basename in
12853 nvcc*) # Cuda Compiler Driver 2.2
12854 lt_prog_compiler_wl='-Xlinker '
12855 if test -n "$lt_prog_compiler_pic"; then
12856 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12857 fi
12858 ;;
12859 esac
12860 else
12861 # PORTME Check for flag to pass linker flags through the system compiler.
12862 case $host_os in
12863 aix*)
12864 lt_prog_compiler_wl='-Wl,'
12865 if test ia64 = "$host_cpu"; then
12866 # AIX 5 now supports IA64 processor
12867 lt_prog_compiler_static='-Bstatic'
12868 else
12869 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12870 fi
12871 ;;
12872
12873 darwin* | rhapsody*)
12874 # PIC is the default on this platform
12875 # Common symbols not allowed in MH_DYLIB files
12876 lt_prog_compiler_pic='-fno-common'
12877 case $cc_basename in
12878 nagfor*)
12879 # NAG Fortran compiler
12880 lt_prog_compiler_wl='-Wl,-Wl,,'
12881 lt_prog_compiler_pic='-PIC'
12882 lt_prog_compiler_static='-Bstatic'
12883 ;;
12884 esac
12885 ;;
12886
12887 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12888 # This hack is so that the source file can tell whether it is being
12889 # built for inclusion in a dll (and should export symbols for example).
12890 lt_prog_compiler_pic='-DDLL_EXPORT'
12891 case $host_os in
12892 os2*)
12893 lt_prog_compiler_static='$wl-static'
12894 ;;
12895 esac
12896 ;;
12897
12898 hpux9* | hpux10* | hpux11*)
12899 lt_prog_compiler_wl='-Wl,'
12900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12901 # not for PA HP-UX.
12902 case $host_cpu in
12903 hppa*64*|ia64*)
12904 # +Z the default
12905 ;;
12906 *)
12907 lt_prog_compiler_pic='+Z'
12908 ;;
12909 esac
12910 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12911 lt_prog_compiler_static='$wl-a ${wl}archive'
12912 ;;
12913
12914 irix5* | irix6* | nonstopux*)
12915 lt_prog_compiler_wl='-Wl,'
12916 # PIC (with -KPIC) is the default.
12917 lt_prog_compiler_static='-non_shared'
12918 ;;
12919
12920 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12921 case $cc_basename in
12922 # old Intel for x86_64, which still supported -KPIC.
12923 ecc*)
12924 lt_prog_compiler_wl='-Wl,'
12925 lt_prog_compiler_pic='-KPIC'
12926 lt_prog_compiler_static='-static'
12927 ;;
12928 *flang* | ftn | f18* | f95*)
12929 # Flang compiler.
12930 lt_prog_compiler_wl='-Wl,'
12931 lt_prog_compiler_pic='-fPIC'
12932 lt_prog_compiler_static='-static'
12933 ;;
12934 # icc used to be incompatible with GCC.
12935 # ICC 10 doesn't accept -KPIC any more.
12936 icc* | ifort*)
12937 lt_prog_compiler_wl='-Wl,'
12938 lt_prog_compiler_pic='-fPIC'
12939 lt_prog_compiler_static='-static'
12940 ;;
12941 # Lahey Fortran 8.1.
12942 lf95*)
12943 lt_prog_compiler_wl='-Wl,'
12944 lt_prog_compiler_pic='--shared'
12945 lt_prog_compiler_static='--static'
12946 ;;
12947 nagfor*)
12948 # NAG Fortran compiler
12949 lt_prog_compiler_wl='-Wl,-Wl,,'
12950 lt_prog_compiler_pic='-PIC'
12951 lt_prog_compiler_static='-Bstatic'
12952 ;;
12953 tcc*)
12954 # Fabrice Bellard et al's Tiny C Compiler
12955 lt_prog_compiler_wl='-Wl,'
12956 lt_prog_compiler_pic='-fPIC'
12957 lt_prog_compiler_static='-static'
12958 ;;
12959 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12960 # Portland Group compilers (*not* the Pentium gcc compiler,
12961 # which looks to be a dead project)
12962 lt_prog_compiler_wl='-Wl,'
12963 lt_prog_compiler_pic='-fpic'
12964 lt_prog_compiler_static='-Bstatic'
12965 ;;
12966 ccc*)
12967 lt_prog_compiler_wl='-Wl,'
12968 # All Alpha code is PIC.
12969 lt_prog_compiler_static='-non_shared'
12970 ;;
12971 xl* | bgxl* | bgf* | mpixl*)
12972 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12973 lt_prog_compiler_wl='-Wl,'
12974 lt_prog_compiler_pic='-qpic'
12975 lt_prog_compiler_static='-qstaticlink'
12976 ;;
12977 *)
12978 case `$CC -V 2>&1 | $SED 5q` in
12979 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12980 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12981 lt_prog_compiler_pic='-KPIC'
12982 lt_prog_compiler_static='-Bstatic'
12983 lt_prog_compiler_wl=''
12984 ;;
12985 *Sun\ F* | *Sun*Fortran*)
12986 lt_prog_compiler_pic='-KPIC'
12987 lt_prog_compiler_static='-Bstatic'
12988 lt_prog_compiler_wl='-Qoption ld '
12989 ;;
12990 *Sun\ C*)
12991 # Sun C 5.9
12992 lt_prog_compiler_pic='-KPIC'
12993 lt_prog_compiler_static='-Bstatic'
12994 lt_prog_compiler_wl='-Wl,'
12995 ;;
12996 *Intel*\ [CF]*Compiler*)
12997 lt_prog_compiler_wl='-Wl,'
12998 lt_prog_compiler_pic='-fPIC'
12999 lt_prog_compiler_static='-static'
13000 ;;
13001 *Portland\ Group*)
13002 lt_prog_compiler_wl='-Wl,'
13003 lt_prog_compiler_pic='-fpic'
13004 lt_prog_compiler_static='-Bstatic'
13005 ;;
13006 esac
13007 ;;
13008 esac
13009 ;;
13010
13011 newsos6)
13012 lt_prog_compiler_pic='-KPIC'
13013 lt_prog_compiler_static='-Bstatic'
13014 ;;
13015
13016 *-mlibc)
13017 lt_prog_compiler_wl='-Wl,'
13018 lt_prog_compiler_pic='-fPIC'
13019 lt_prog_compiler_static='-static'
13020 ;;
13021
13022 *nto* | *qnx*)
13023 # QNX uses GNU C++, but need to define -shared option too, otherwise
13024 # it will coredump.
13025 lt_prog_compiler_pic='-fPIC -shared'
13026 ;;
13027
13028 osf3* | osf4* | osf5*)
13029 lt_prog_compiler_wl='-Wl,'
13030 # All OSF/1 code is PIC.
13031 lt_prog_compiler_static='-non_shared'
13032 ;;
13033
13034 rdos*)
13035 lt_prog_compiler_static='-non_shared'
13036 ;;
13037
13038 serenity*)
13039 ;;
13040
13041 solaris*)
13042 lt_prog_compiler_pic='-KPIC'
13043 lt_prog_compiler_static='-Bstatic'
13044 case $cc_basename in
13045 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13046 lt_prog_compiler_wl='-Qoption ld ';;
13047 *)
13048 lt_prog_compiler_wl='-Wl,';;
13049 esac
13050 ;;
13051
13052 sunos4*)
13053 lt_prog_compiler_wl='-Qoption ld '
13054 lt_prog_compiler_pic='-PIC'
13055 lt_prog_compiler_static='-Bstatic'
13056 ;;
13057
13058 sysv4 | sysv4.2uw2* | sysv4.3*)
13059 lt_prog_compiler_wl='-Wl,'
13060 lt_prog_compiler_pic='-KPIC'
13061 lt_prog_compiler_static='-Bstatic'
13062 ;;
13063
13064 sysv4*MP*)
13065 if test -d /usr/nec; then
13066 lt_prog_compiler_pic='-Kconform_pic'
13067 lt_prog_compiler_static='-Bstatic'
13068 fi
13069 ;;
13070
13071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13072 lt_prog_compiler_wl='-Wl,'
13073 lt_prog_compiler_pic='-KPIC'
13074 lt_prog_compiler_static='-Bstatic'
13075 ;;
13076
13077 unicos*)
13078 lt_prog_compiler_wl='-Wl,'
13079 lt_prog_compiler_can_build_shared=no
13080 ;;
13081
13082 uts4*)
13083 lt_prog_compiler_pic='-pic'
13084 lt_prog_compiler_static='-Bstatic'
13085 ;;
13086
13087 *)
13088 lt_prog_compiler_can_build_shared=no
13089 ;;
13090 esac
13091 fi
13092
13093 case $host_os in
13094 # For platforms that do not support PIC, -DPIC is meaningless:
13095 *djgpp*)
13096 lt_prog_compiler_pic=
13097 ;;
13098 *)
13099 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13100 ;;
13101 esac
13102
13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13104 printf %s "checking for $compiler option to produce PIC... " >&6; }
13105 if test ${lt_cv_prog_compiler_pic+y}
13106 then :
13107 printf %s "(cached) " >&6
13108 else case e in #(
13109 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13110 esac
13111 fi
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13113 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13114 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13115
13116 #
13117 # Check to make sure the PIC flag actually works.
13118 #
13119 if test -n "$lt_prog_compiler_pic"; then
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13121 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13122 if test ${lt_cv_prog_compiler_pic_works+y}
13123 then :
13124 printf %s "(cached) " >&6
13125 else case e in #(
13126 e) lt_cv_prog_compiler_pic_works=no
13127 ac_outfile=conftest.$ac_objext
13128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13129 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13130 # Insert the option either (1) after the last *FLAGS variable, or
13131 # (2) before a word containing "conftest.", or (3) at the end.
13132 # Note that $ac_compile itself does not contain backslashes and begins
13133 # with a dollar sign (not a hyphen), so the echo should work correctly.
13134 # The option is referenced via a variable to avoid confusing sed.
13135 lt_compile=`echo "$ac_compile" | $SED \
13136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138 -e 's:$: $lt_compiler_flag:'`
13139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13140 (eval "$lt_compile" 2>conftest.err)
13141 ac_status=$?
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 if (exit $ac_status) && test -s "$ac_outfile"; then
13145 # The compiler can only warn and ignore the option if not recognized
13146 # So say no if there are warnings other than the usual output.
13147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13150 lt_cv_prog_compiler_pic_works=yes
13151 fi
13152 fi
13153 $RM conftest*
13154 ;;
13155 esac
13156 fi
13157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13158 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13159
13160 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13161 case $lt_prog_compiler_pic in
13162 "" | " "*) ;;
13163 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13164 esac
13165 else
13166 lt_prog_compiler_pic=
13167 lt_prog_compiler_can_build_shared=no
13168 fi
13169
13170 fi
13171
13172
13173
13174
13175
13176 #
13177 # Check to make sure the static flag actually works.
13178 #
13179 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13181 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13182 if test ${lt_cv_prog_compiler_static_works+y}
13183 then :
13184 printf %s "(cached) " >&6
13185 else case e in #(
13186 e) lt_cv_prog_compiler_static_works=no
13187 save_LDFLAGS=$LDFLAGS
13188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13189 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13191 # The linker can only warn and ignore the option if not recognized
13192 # So say no if there are warnings
13193 if test -s conftest.err; then
13194 # Append any errors to the config.log.
13195 cat conftest.err 1>&5
13196 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13198 if diff conftest.exp conftest.er2 >/dev/null; then
13199 lt_cv_prog_compiler_static_works=yes
13200 fi
13201 else
13202 lt_cv_prog_compiler_static_works=yes
13203 fi
13204 fi
13205 $RM -r conftest*
13206 LDFLAGS=$save_LDFLAGS
13207 ;;
13208 esac
13209 fi
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13211 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13212
13213 if test yes = "$lt_cv_prog_compiler_static_works"; then
13214 :
13215 else
13216 lt_prog_compiler_static=
13217 fi
13218
13219
13220
13221 ='-fPIC'
13222 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13223 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13224 archive_cmds_need_lc=no
13225 no_undefined_flag=
13226 ;;
13227
13228 *)
13229 dynamic_linker=no
13230 ;;
13231 esac
13232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13233 printf "%s\n" "$dynamic_linker" >&6; }
13234 test no = "$dynamic_linker" && can_build_shared=no
13235
13236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13237 if test yes = "$GCC"; then
13238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13239 fi
13240
13241 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13242 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13243 fi
13244
13245 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13246 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13247 fi
13248
13249 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13250 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13251
13252 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13253 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13254
13255 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13256 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13355 printf %s "checking how to hardcode library paths into programs... " >&6; }
13356 hardcode_action=
13357 if test -n "$hardcode_libdir_flag_spec" ||
13358 test -n "$runpath_var" ||
13359 test yes = "$hardcode_automatic"; then
13360
13361 # We can hardcode non-existent directories.
13362 if test no != "$hardcode_direct" &&
13363 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13364 # have to relink, otherwise we might link with an installed library
13365 # when we should be linking with a yet-to-be-installed one
13366 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13367 test no != "$hardcode_minus_L"; then
13368 # Linking always hardcodes the temporary library directory.
13369 hardcode_action=relink
13370 else
13371 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13372 hardcode_action=immediate
13373 fi
13374 else
13375 # We cannot hardcode anything, or else we can only hardcode existing
13376 # directories.
13377 hardcode_action=unsupported
13378 fi
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13380 printf "%s\n" "$hardcode_action" >&6; }
13381
13382 if test relink = "$hardcode_action" ||
13383 test yes = "$inherit_rpath"; then
13384 # Fast installation is not supported
13385 enable_fast_install=no
13386 elif test yes = "$shlibpath_overrides_runpath" ||
13387 test no = "$enable_shared"; then
13388 # Fast installation is not necessary
13389 enable_fast_install=needless
13390 fi
13391
13392
13393
13394
13395
13396
13397 if test yes != "$enable_dlopen"; then
13398 enable_dlopen=unknown
13399 enable_dlopen_self=unknown
13400 enable_dlopen_self_static=unknown
13401 else
13402 lt_cv_dlopen=no
13403 lt_cv_dlopen_libs=
13404
13405 case $host_os in
13406 beos*)
13407 lt_cv_dlopen=load_add_on
13408 lt_cv_dlopen_libs=
13409 lt_cv_dlopen_self=yes
13410 ;;
13411
13412 mingw* | windows* | pw32* | cegcc*)
13413 lt_cv_dlopen=LoadLibrary
13414 lt_cv_dlopen_libs=
13415 ;;
13416
13417 cygwin*)
13418 lt_cv_dlopen=dlopen
13419 lt_cv_dlopen_libs=
13420 ;;
13421
13422 darwin*)
13423 # if libdl is installed we need to link against it
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13425 printf %s "checking for dlopen in -ldl... " >&6; }
13426 if test ${ac_cv_lib_dl_dlopen+y}
13427 then :
13428 printf %s "(cached) " >&6
13429 else case e in #(
13430 e) ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-ldl $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply.
13438 The 'extern "C"' is for builds by C++ compilers;
13439 although this is not generally supported in C code supporting it here
13440 has little cost and some practical benefit (sr 110532). */
13441 #ifdef __cplusplus
13442 extern "C"
13443 #endif
13444 char dlopen (void);
13445 int
13446 main (void)
13447 {
13448 return dlopen ();
13449 ;
13450 return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_link "$LINENO"
13454 then :
13455 ac_cv_lib_dl_dlopen=yes
13456 else case e in #(
13457 e) ac_cv_lib_dl_dlopen=no ;;
13458 esac
13459 fi
13460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13461 conftest$ac_exeext conftest.$ac_ext
13462 LIBS=$ac_check_lib_save_LIBS ;;
13463 esac
13464 fi
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13466 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13467 if test "x$ac_cv_lib_dl_dlopen" = xyes
13468 then :
13469 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13470 else case e in #(
13471 e)
13472 lt_cv_dlopen=dyld
13473 lt_cv_dlopen_libs=
13474 lt_cv_dlopen_self=yes
13475 ;;
13476 esac
13477 fi
13478
13479 ;;
13480
13481 tpf*)
13482 # Don't try to run any link tests for TPF. We know it's impossible
13483 # because TPF is a cross-compiler, and we know how we open DSOs.
13484 lt_cv_dlopen=dlopen
13485 lt_cv_dlopen_libs=
13486 lt_cv_dlopen_self=no
13487 ;;
13488
13489 *)
13490 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13491 if test "x$ac_cv_func_shl_load" = xyes
13492 then :
13493 lt_cv_dlopen=shl_load
13494 else case e in #(
13495 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13496 printf %s "checking for shl_load in -ldld... " >&6; }
13497 if test ${ac_cv_lib_dld_shl_load+y}
13498 then :
13499 printf %s "(cached) " >&6
13500 else case e in #(
13501 e) ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-ldld $LIBS"
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply.
13509 The 'extern "C"' is for builds by C++ compilers;
13510 although this is not generally supported in C code supporting it here
13511 has little cost and some practical benefit (sr 110532). */
13512 #ifdef __cplusplus
13513 extern "C"
13514 #endif
13515 char shl_load (void);
13516 int
13517 main (void)
13518 {
13519 return shl_load ();
13520 ;
13521 return 0;
13522 }
13523 _ACEOF
13524 if ac_fn_c_try_link "$LINENO"
13525 then :
13526 ac_cv_lib_dld_shl_load=yes
13527 else case e in #(
13528 e) ac_cv_lib_dld_shl_load=no ;;
13529 esac
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS ;;
13534 esac
13535 fi
13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13537 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13538 if test "x$ac_cv_lib_dld_shl_load" = xyes
13539 then :
13540 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13541 else case e in #(
13542 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13543 if test "x$ac_cv_func_dlopen" = xyes
13544 then :
13545 lt_cv_dlopen=dlopen
13546 else case e in #(
13547 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13548 printf %s "checking for dlopen in -ldl... " >&6; }
13549 if test ${ac_cv_lib_dl_dlopen+y}
13550 then :
13551 printf %s "(cached) " >&6
13552 else case e in #(
13553 e) ac_check_lib_save_LIBS=$LIBS
13554 LIBS="-ldl $LIBS"
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557
13558 /* Override any GCC internal prototype to avoid an error.
13559 Use char because int might match the return type of a GCC
13560 builtin and then its argument prototype would still apply.
13561 The 'extern "C"' is for builds by C++ compilers;
13562 although this is not generally supported in C code supporting it here
13563 has little cost and some practical benefit (sr 110532). */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char dlopen (void);
13568 int
13569 main (void)
13570 {
13571 return dlopen ();
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"
13577 then :
13578 ac_cv_lib_dl_dlopen=yes
13579 else case e in #(
13580 e) ac_cv_lib_dl_dlopen=no ;;
13581 esac
13582 fi
13583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13584 conftest$ac_exeext conftest.$ac_ext
13585 LIBS=$ac_check_lib_save_LIBS ;;
13586 esac
13587 fi
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13589 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13590 if test "x$ac_cv_lib_dl_dlopen" = xyes
13591 then :
13592 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13593 else case e in #(
13594 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13595 printf %s "checking for dlopen in -lsvld... " >&6; }
13596 if test ${ac_cv_lib_svld_dlopen+y}
13597 then :
13598 printf %s "(cached) " >&6
13599 else case e in #(
13600 e) ac_check_lib_save_LIBS=$LIBS
13601 LIBS="-lsvld $LIBS"
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604
13605 /* Override any GCC internal prototype to avoid an error.
13606 Use char because int might match the return type of a GCC
13607 builtin and then its argument prototype would still apply.
13608 The 'extern "C"' is for builds by C++ compilers;
13609 although this is not generally supported in C code supporting it here
13610 has little cost and some practical benefit (sr 110532). */
13611 #ifdef __cplusplus
13612 extern "C"
13613 #endif
13614 char dlopen (void);
13615 int
13616 main (void)
13617 {
13618 return dlopen ();
13619 ;
13620 return 0;
13621 }
13622 _ACEOF
13623 if ac_fn_c_try_link "$LINENO"
13624 then :
13625 ac_cv_lib_svld_dlopen=yes
13626 else case e in #(
13627 e) ac_cv_lib_svld_dlopen=no ;;
13628 esac
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13631 conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS ;;
13633 esac
13634 fi
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13636 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13637 if test "x$ac_cv_lib_svld_dlopen" = xyes
13638 then :
13639 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13640 else case e in #(
13641 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13642 printf %s "checking for dld_link in -ldld... " >&6; }
13643 if test ${ac_cv_lib_dld_dld_link+y}
13644 then :
13645 printf %s "(cached) " >&6
13646 else case e in #(
13647 e) ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-ldld $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply.
13655 The 'extern "C"' is for builds by C++ compilers;
13656 although this is not generally supported in C code supporting it here
13657 has little cost and some practical benefit (sr 110532). */
13658 #ifdef __cplusplus
13659 extern "C"
13660 #endif
13661 char dld_link (void);
13662 int
13663 main (void)
13664 {
13665 return dld_link ();
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"
13671 then :
13672 ac_cv_lib_dld_dld_link=yes
13673 else case e in #(
13674 e) ac_cv_lib_dld_dld_link=no ;;
13675 esac
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13678 conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS ;;
13680 esac
13681 fi
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13683 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13684 if test "x$ac_cv_lib_dld_dld_link" = xyes
13685 then :
13686 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13687 fi
13688
13689 ;;
13690 esac
13691 fi
13692
13693 ;;
13694 esac
13695 fi
13696
13697 ;;
13698 esac
13699 fi
13700
13701 ;;
13702 esac
13703 fi
13704
13705 ;;
13706 esac
13707 fi
13708
13709 ;;
13710 esac
13711
13712 if test no = "$lt_cv_dlopen"; then
13713 enable_dlopen=no
13714 else
13715 enable_dlopen=yes
13716 fi
13717
13718 case $lt_cv_dlopen in
13719 dlopen)
13720 save_CPPFLAGS=$CPPFLAGS
13721 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13722
13723 save_LDFLAGS=$LDFLAGS
13724 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13725
13726 save_LIBS=$LIBS
13727 LIBS="$lt_cv_dlopen_libs $LIBS"
13728
13729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13730 printf %s "checking whether a program can dlopen itself... " >&6; }
13731 if test ${lt_cv_dlopen_self+y}
13732 then :
13733 printf %s "(cached) " >&6
13734 else case e in #(
13735 e) if test yes = "$cross_compiling"; then :
13736 lt_cv_dlopen_self=cross
13737 else
13738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13739 lt_status=$lt_dlunknown
13740 cat > conftest.$ac_ext <<_LT_EOF
13741 #line $LINENO "configure"
13742 #include "confdefs.h"
13743
13744 #if HAVE_DLFCN_H
13745 #include <dlfcn.h>
13746 #endif
13747
13748 #include <stdio.h>
13749
13750 #ifdef RTLD_GLOBAL
13751 # define LT_DLGLOBAL RTLD_GLOBAL
13752 #else
13753 # ifdef DL_GLOBAL
13754 # define LT_DLGLOBAL DL_GLOBAL
13755 # else
13756 # define LT_DLGLOBAL 0
13757 # endif
13758 #endif
13759
13760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13761 find out it does not work in some platform. */
13762 #ifndef LT_DLLAZY_OR_NOW
13763 # ifdef RTLD_LAZY
13764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13765 # else
13766 # ifdef DL_LAZY
13767 # define LT_DLLAZY_OR_NOW DL_LAZY
13768 # else
13769 # ifdef RTLD_NOW
13770 # define LT_DLLAZY_OR_NOW RTLD_NOW
13771 # else
13772 # ifdef DL_NOW
13773 # define LT_DLLAZY_OR_NOW DL_NOW
13774 # else
13775 # define LT_DLLAZY_OR_NOW 0
13776 # endif
13777 # endif
13778 # endif
13779 # endif
13780 #endif
13781
13782 /* When -fvisibility=hidden is used, assume the code has been annotated
13783 correspondingly for the symbols needed. */
13784 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13785 int fnord (void) __attribute__((visibility("default")));
13786 #endif
13787
13788 int fnord (void) { return 42; }
13789 int main (void)
13790 {
13791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13792 int status = $lt_dlunknown;
13793
13794 if (self)
13795 {
13796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13797 else
13798 {
13799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13800 else puts (dlerror ());
13801 }
13802 /* dlclose (self); */
13803 }
13804 else
13805 puts (dlerror ());
13806
13807 return status;
13808 }
13809 _LT_EOF
13810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13811 (eval $ac_link) 2>&5
13812 ac_status=$?
13813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13814 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13815 (./conftest; exit; ) >&5 2>/dev/null
13816 lt_status=$?
13817 case x$lt_status in
13818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13820 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13821 esac
13822 else :
13823 # compilation failed
13824 lt_cv_dlopen_self=no
13825 fi
13826 fi
13827 rm -fr conftest*
13828
13829 ;;
13830 esac
13831 fi
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13833 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13834
13835 if test yes = "$lt_cv_dlopen_self"; then
13836 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13838 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13839 if test ${lt_cv_dlopen_self_static+y}
13840 then :
13841 printf %s "(cached) " >&6
13842 else case e in #(
13843 e) if test yes = "$cross_compiling"; then :
13844 lt_cv_dlopen_self_static=cross
13845 else
13846 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13847 lt_status=$lt_dlunknown
13848 cat > conftest.$ac_ext <<_LT_EOF
13849 #line $LINENO "configure"
13850 #include "confdefs.h"
13851
13852 #if HAVE_DLFCN_H
13853 #include <dlfcn.h>
13854 #endif
13855
13856 #include <stdio.h>
13857
13858 #ifdef RTLD_GLOBAL
13859 # define LT_DLGLOBAL RTLD_GLOBAL
13860 #else
13861 # ifdef DL_GLOBAL
13862 # define LT_DLGLOBAL DL_GLOBAL
13863 # else
13864 # define LT_DLGLOBAL 0
13865 # endif
13866 #endif
13867
13868 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13869 find out it does not work in some platform. */
13870 #ifndef LT_DLLAZY_OR_NOW
13871 # ifdef RTLD_LAZY
13872 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13873 # else
13874 # ifdef DL_LAZY
13875 # define LT_DLLAZY_OR_NOW DL_LAZY
13876 # else
13877 # ifdef RTLD_NOW
13878 # define LT_DLLAZY_OR_NOW RTLD_NOW
13879 # else
13880 # ifdef DL_NOW
13881 # define LT_DLLAZY_OR_NOW DL_NOW
13882 # else
13883 # define LT_DLLAZY_OR_NOW 0
13884 # endif
13885 # endif
13886 # endif
13887 # endif
13888 #endif
13889
13890 /* When -fvisibility=hidden is used, assume the code has been annotated
13891 correspondingly for the symbols needed. */
13892 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13893 int fnord (void) __attribute__((visibility("default")));
13894 #endif
13895
13896 int fnord (void) { return 42; }
13897 int main (void)
13898 {
13899 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13900 int status = $lt_dlunknown;
13901
13902 if (self)
13903 {
13904 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13905 else
13906 {
13907 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13908 else puts (dlerror ());
13909 }
13910 /* dlclose (self); */
13911 }
13912 else
13913 puts (dlerror ());
13914
13915 return status;
13916 }
13917 _LT_EOF
13918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13919 (eval $ac_link) 2>&5
13920 ac_status=$?
13921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13923 (./conftest; exit; ) >&5 2>/dev/null
13924 lt_status=$?
13925 case x$lt_status in
13926 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13927 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13928 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13929 esac
13930 else :
13931 # compilation failed
13932 lt_cv_dlopen_self_static=no
13933 fi
13934 fi
13935 rm -fr conftest*
13936
13937 ;;
13938 esac
13939 fi
13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13941 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13942 fi
13943
13944 CPPFLAGS=$save_CPPFLAGS
13945 LDFLAGS=$save_LDFLAGS
13946 LIBS=$save_LIBS
13947 ;;
13948 esac
13949
13950 case $lt_cv_dlopen_self in
13951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13952 *) enable_dlopen_self=unknown ;;
13953 esac
13954
13955 case $lt_cv_dlopen_self_static in
13956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13957 *) enable_dlopen_self_static=unknown ;;
13958 esac
13959 fi
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977 striplib=
13978 old_striplib=
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13980 printf %s "checking whether stripping libraries is possible... " >&6; }
13981 if test -z "$STRIP"; then
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983 printf "%s\n" "no" >&6; }
13984 else
13985 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13986 old_striplib="$STRIP --strip-debug"
13987 striplib="$STRIP --strip-unneeded"
13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13989 printf "%s\n" "yes" >&6; }
13990 else
13991 case $host_os in
13992 darwin*)
13993 # FIXME - insert some real tests, host_os isn't really good enough
13994 striplib="$STRIP -x"
13995 old_striplib="$STRIP -S"
13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13997 printf "%s\n" "yes" >&6; }
13998 ;;
13999 freebsd*)
14000 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14001 old_striplib="$STRIP --strip-debug"
14002 striplib="$STRIP --strip-unneeded"
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14004 printf "%s\n" "yes" >&6; }
14005 else
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 printf "%s\n" "no" >&6; }
14008 fi
14009 ;;
14010 *)
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 printf "%s\n" "no" >&6; }
14013 ;;
14014 esac
14015 fi
14016 fi
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029 # Report what library types will actually be built
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14031 printf %s "checking if libtool supports shared libraries... " >&6; }
14032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14033 printf "%s\n" "$can_build_shared" >&6; }
14034
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14036 printf %s "checking whether to build shared libraries... " >&6; }
14037 test no = "$can_build_shared" && enable_shared=no
14038
14039 # On AIX, shared libraries and static libraries use the same namespace, and
14040 # are all built from PIC.
14041 case $host_os in
14042 aix3*)
14043 test yes = "$enable_shared" && enable_static=no
14044 if test -n "$RANLIB"; then
14045 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14046 postinstall_cmds='$RANLIB $lib'
14047 fi
14048 ;;
14049
14050 aix[4-9]*)
14051 if test ia64 != "$host_cpu"; then
14052 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14053 yes,aix,yes) ;; # shared object as lib.so file only
14054 yes,svr4,*) ;; # shared object as lib.so archive member only
14055 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14056 esac
14057 fi
14058 ;;
14059 esac
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14061 printf "%s\n" "$enable_shared" >&6; }
14062
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14064 printf %s "checking whether to build static libraries... " >&6; }
14065 # Make sure either enable_shared or enable_static is yes.
14066 test yes = "$enable_shared" || enable_static=yes
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14068 printf "%s\n" "$enable_static" >&6; }
14069
14070
14071
14072
14073 fi
14074 ac_ext=c
14075 ac_cpp='$CPP $CPPFLAGS'
14076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14079
14080 CC=$lt_save_CC
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096 ac_config_commands="$ac_config_commands libtool"
14097
14098
14099
14100
14101 # Only expand once:
14102
14103
14104
14105 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14118 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14119 if test ${ac_cv_c_undeclared_builtin_options+y}
14120 then :
14121 printf %s "(cached) " >&6
14122 else case e in #(
14123 e) ac_save_CFLAGS=$CFLAGS
14124 ac_cv_c_undeclared_builtin_options='cannot detect'
14125 for ac_arg in '' -fno-builtin; do
14126 CFLAGS="$ac_save_CFLAGS $ac_arg"
14127 # This test program should *not* compile successfully.
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130
14131 int
14132 main (void)
14133 {
14134 (void) strchr;
14135 ;
14136 return 0;
14137 }
14138 _ACEOF
14139 if ac_fn_c_try_compile "$LINENO"
14140 then :
14141
14142 else case e in #(
14143 e) # This test program should compile successfully.
14144 # No library function is consistently available on
14145 # freestanding implementations, so test against a dummy
14146 # declaration. Include always-available headers on the
14147 # off chance that they somehow elicit warnings.
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 #include <float.h>
14151 #include <limits.h>
14152 #include <stdarg.h>
14153 #include <stddef.h>
14154 extern void ac_decl (int, char *);
14155
14156 int
14157 main (void)
14158 {
14159 (void) ac_decl (0, (char *) 0);
14160 (void) ac_decl;
14161
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_compile "$LINENO"
14167 then :
14168 if test x"$ac_arg" = x
14169 then :
14170 ac_cv_c_undeclared_builtin_options='none needed'
14171 else case e in #(
14172 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
14173 esac
14174 fi
14175 break
14176 fi
14177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14178 esac
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14181 done
14182 CFLAGS=$ac_save_CFLAGS
14183 ;;
14184 esac
14185 fi
14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14187 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14188 case $ac_cv_c_undeclared_builtin_options in #(
14189 'cannot detect') :
14190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14191 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14192 as_fn_error $? "cannot make $CC report undeclared builtins
14193 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14194 'none needed') :
14195 ac_c_undeclared_builtin_options='' ;; #(
14196 *) :
14197 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14198 esac
14199
14200
14201
14202
14203
14204 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14205 if test "x$ac_cv_have_decl___clang__" = xyes
14206 then :
14207 CLANGCC="yes"
14208 else case e in #(
14209 e) CLANGCC="no" ;;
14210 esac
14211 fi
14212 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14213 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
14214 then :
14215 INTELCC="yes"
14216 else case e in #(
14217 e) INTELCC="no" ;;
14218 esac
14219 fi
14220 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14221 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
14222 then :
14223 SUNCC="yes"
14224 else case e in #(
14225 e) SUNCC="no" ;;
14226 esac
14227 fi
14228
14229
14230
14231
14232
14233
14234
14235
14236 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14237 if test -n "$ac_tool_prefix"; then
14238 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14239 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241 printf %s "checking for $ac_word... " >&6; }
14242 if test ${ac_cv_path_PKG_CONFIG+y}
14243 then :
14244 printf %s "(cached) " >&6
14245 else case e in #(
14246 e) case $PKG_CONFIG in
14247 [\\/]* | ?:[\\/]*)
14248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14249 ;;
14250 *)
14251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252 for as_dir in $PATH
14253 do
14254 IFS=$as_save_IFS
14255 case $as_dir in #(((
14256 '') as_dir=./ ;;
14257 */) ;;
14258 *) as_dir=$as_dir/ ;;
14259 esac
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14262 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14264 break 2
14265 fi
14266 done
14267 done
14268 IFS=$as_save_IFS
14269
14270 ;;
14271 esac ;;
14272 esac
14273 fi
14274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14275 if test -n "$PKG_CONFIG"; then
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14277 printf "%s\n" "$PKG_CONFIG" >&6; }
14278 else
14279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 printf "%s\n" "no" >&6; }
14281 fi
14282
14283
14284 fi
14285 if test -z "$ac_cv_path_PKG_CONFIG"; then
14286 ac_pt_PKG_CONFIG=$PKG_CONFIG
14287 # Extract the first word of "pkg-config", so it can be a program name with args.
14288 set dummy pkg-config; ac_word=$2
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290 printf %s "checking for $ac_word... " >&6; }
14291 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14292 then :
14293 printf %s "(cached) " >&6
14294 else case e in #(
14295 e) case $ac_pt_PKG_CONFIG in
14296 [\\/]* | ?:[\\/]*)
14297 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14298 ;;
14299 *)
14300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301 for as_dir in $PATH
14302 do
14303 IFS=$as_save_IFS
14304 case $as_dir in #(((
14305 '') as_dir=./ ;;
14306 */) ;;
14307 *) as_dir=$as_dir/ ;;
14308 esac
14309 for ac_exec_ext in '' $ac_executable_extensions; do
14310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14311 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14313 break 2
14314 fi
14315 done
14316 done
14317 IFS=$as_save_IFS
14318
14319 ;;
14320 esac ;;
14321 esac
14322 fi
14323 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14324 if test -n "$ac_pt_PKG_CONFIG"; then
14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14326 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14327 else
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 printf "%s\n" "no" >&6; }
14330 fi
14331
14332 if test "x$ac_pt_PKG_CONFIG" = x; then
14333 PKG_CONFIG=""
14334 else
14335 case $cross_compiling:$ac_tool_warned in
14336 yes:)
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14339 ac_tool_warned=yes ;;
14340 esac
14341 PKG_CONFIG=$ac_pt_PKG_CONFIG
14342 fi
14343 else
14344 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14345 fi
14346
14347 fi
14348 if test -n "$PKG_CONFIG"; then
14349 _pkg_min_version=0.9.0
14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14351 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14352 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14354 printf "%s\n" "yes" >&6; }
14355 else
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 printf "%s\n" "no" >&6; }
14358 PKG_CONFIG=""
14359 fi
14360 fi
14361
14362
14363
14364
14365
14366 # Check whether --enable-selective-werror was given.
14367 if test ${enable_selective_werror+y}
14368 then :
14369 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14370 else case e in #(
14371 e) SELECTIVE_WERROR=yes ;;
14372 esac
14373 fi
14374
14375
14376
14377
14378
14379 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14380 if test "x$SUNCC" = "xyes"; then
14381 BASE_CFLAGS="-v"
14382 else
14383 BASE_CFLAGS=""
14384 fi
14385
14386 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400 xorg_testset_save_CFLAGS="$CFLAGS"
14401
14402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14405 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14406 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14407 then :
14408 printf %s "(cached) " >&6
14409 else case e in #(
14410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 int i;
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"
14415 then :
14416 xorg_cv_cc_flag_unknown_warning_option=yes
14417 else case e in #(
14418 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14419 esac
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14422 esac
14423 fi
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427 CFLAGS="$xorg_testset_save_CFLAGS"
14428 fi
14429
14430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433 fi
14434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14438 then :
14439 printf %s "(cached) " >&6
14440 else case e in #(
14441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 int i;
14444 _ACEOF
14445 if ac_fn_c_try_compile "$LINENO"
14446 then :
14447 xorg_cv_cc_flag_unused_command_line_argument=yes
14448 else case e in #(
14449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14450 esac
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14453 esac
14454 fi
14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14458 CFLAGS="$xorg_testset_save_CFLAGS"
14459 fi
14460
14461 found="no"
14462
14463 if test $found = "no" ; then
14464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14466 fi
14467
14468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14470 fi
14471
14472 CFLAGS="$CFLAGS -Wall"
14473
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14475 printf %s "checking if $CC supports -Wall... " >&6; }
14476 cacheid=xorg_cv_cc_flag__Wall
14477 if eval test \${$cacheid+y}
14478 then :
14479 printf %s "(cached) " >&6
14480 else case e in #(
14481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 int i;
14484 int
14485 main (void)
14486 {
14487
14488 ;
14489 return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_link "$LINENO"
14493 then :
14494 eval $cacheid=yes
14495 else case e in #(
14496 e) eval $cacheid=no ;;
14497 esac
14498 fi
14499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14500 conftest$ac_exeext conftest.$ac_ext ;;
14501 esac
14502 fi
14503
14504
14505 CFLAGS="$xorg_testset_save_CFLAGS"
14506
14507 eval supported=\$$cacheid
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14509 printf "%s\n" "$supported" >&6; }
14510 if test "$supported" = "yes" ; then
14511 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14512 found="yes"
14513 fi
14514 fi
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530 xorg_testset_save_CFLAGS="$CFLAGS"
14531
14532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14536 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14537 then :
14538 printf %s "(cached) " >&6
14539 else case e in #(
14540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 int i;
14543 _ACEOF
14544 if ac_fn_c_try_compile "$LINENO"
14545 then :
14546 xorg_cv_cc_flag_unknown_warning_option=yes
14547 else case e in #(
14548 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14549 esac
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14552 esac
14553 fi
14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14557 CFLAGS="$xorg_testset_save_CFLAGS"
14558 fi
14559
14560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14563 fi
14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14568 then :
14569 printf %s "(cached) " >&6
14570 else case e in #(
14571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 int i;
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"
14576 then :
14577 xorg_cv_cc_flag_unused_command_line_argument=yes
14578 else case e in #(
14579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14580 esac
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14583 esac
14584 fi
14585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14586 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14588 CFLAGS="$xorg_testset_save_CFLAGS"
14589 fi
14590
14591 found="no"
14592
14593 if test $found = "no" ; then
14594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14596 fi
14597
14598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14600 fi
14601
14602 CFLAGS="$CFLAGS -Wpointer-arith"
14603
14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14605 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14606 cacheid=xorg_cv_cc_flag__Wpointer_arith
14607 if eval test \${$cacheid+y}
14608 then :
14609 printf %s "(cached) " >&6
14610 else case e in #(
14611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 int i;
14614 int
14615 main (void)
14616 {
14617
14618 ;
14619 return 0;
14620 }
14621 _ACEOF
14622 if ac_fn_c_try_link "$LINENO"
14623 then :
14624 eval $cacheid=yes
14625 else case e in #(
14626 e) eval $cacheid=no ;;
14627 esac
14628 fi
14629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14630 conftest$ac_exeext conftest.$ac_ext ;;
14631 esac
14632 fi
14633
14634
14635 CFLAGS="$xorg_testset_save_CFLAGS"
14636
14637 eval supported=\$$cacheid
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14639 printf "%s\n" "$supported" >&6; }
14640 if test "$supported" = "yes" ; then
14641 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14642 found="yes"
14643 fi
14644 fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660 xorg_testset_save_CFLAGS="$CFLAGS"
14661
14662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14666 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14667 then :
14668 printf %s "(cached) " >&6
14669 else case e in #(
14670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 int i;
14673 _ACEOF
14674 if ac_fn_c_try_compile "$LINENO"
14675 then :
14676 xorg_cv_cc_flag_unknown_warning_option=yes
14677 else case e in #(
14678 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14679 esac
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14682 esac
14683 fi
14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14687 CFLAGS="$xorg_testset_save_CFLAGS"
14688 fi
14689
14690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693 fi
14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14698 then :
14699 printf %s "(cached) " >&6
14700 else case e in #(
14701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703 int i;
14704 _ACEOF
14705 if ac_fn_c_try_compile "$LINENO"
14706 then :
14707 xorg_cv_cc_flag_unused_command_line_argument=yes
14708 else case e in #(
14709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14710 esac
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14713 esac
14714 fi
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14718 CFLAGS="$xorg_testset_save_CFLAGS"
14719 fi
14720
14721 found="no"
14722
14723 if test $found = "no" ; then
14724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726 fi
14727
14728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730 fi
14731
14732 CFLAGS="$CFLAGS -Wmissing-declarations"
14733
14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14735 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14736 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14737 if eval test \${$cacheid+y}
14738 then :
14739 printf %s "(cached) " >&6
14740 else case e in #(
14741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 int i;
14744 int
14745 main (void)
14746 {
14747
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_link "$LINENO"
14753 then :
14754 eval $cacheid=yes
14755 else case e in #(
14756 e) eval $cacheid=no ;;
14757 esac
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14760 conftest$ac_exeext conftest.$ac_ext ;;
14761 esac
14762 fi
14763
14764
14765 CFLAGS="$xorg_testset_save_CFLAGS"
14766
14767 eval supported=\$$cacheid
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14769 printf "%s\n" "$supported" >&6; }
14770 if test "$supported" = "yes" ; then
14771 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14772 found="yes"
14773 fi
14774 fi
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790 xorg_testset_save_CFLAGS="$CFLAGS"
14791
14792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14796 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14797 then :
14798 printf %s "(cached) " >&6
14799 else case e in #(
14800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 int i;
14803 _ACEOF
14804 if ac_fn_c_try_compile "$LINENO"
14805 then :
14806 xorg_cv_cc_flag_unknown_warning_option=yes
14807 else case e in #(
14808 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14809 esac
14810 fi
14811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14812 esac
14813 fi
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14818 fi
14819
14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14823 fi
14824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14828 then :
14829 printf %s "(cached) " >&6
14830 else case e in #(
14831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 int i;
14834 _ACEOF
14835 if ac_fn_c_try_compile "$LINENO"
14836 then :
14837 xorg_cv_cc_flag_unused_command_line_argument=yes
14838 else case e in #(
14839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14840 esac
14841 fi
14842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14843 esac
14844 fi
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14848 CFLAGS="$xorg_testset_save_CFLAGS"
14849 fi
14850
14851 found="no"
14852
14853 if test $found = "no" ; then
14854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14856 fi
14857
14858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14860 fi
14861
14862 CFLAGS="$CFLAGS -Wformat=2"
14863
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14865 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14866 cacheid=xorg_cv_cc_flag__Wformat_2
14867 if eval test \${$cacheid+y}
14868 then :
14869 printf %s "(cached) " >&6
14870 else case e in #(
14871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 int i;
14874 int
14875 main (void)
14876 {
14877
14878 ;
14879 return 0;
14880 }
14881 _ACEOF
14882 if ac_fn_c_try_link "$LINENO"
14883 then :
14884 eval $cacheid=yes
14885 else case e in #(
14886 e) eval $cacheid=no ;;
14887 esac
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14890 conftest$ac_exeext conftest.$ac_ext ;;
14891 esac
14892 fi
14893
14894
14895 CFLAGS="$xorg_testset_save_CFLAGS"
14896
14897 eval supported=\$$cacheid
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14899 printf "%s\n" "$supported" >&6; }
14900 if test "$supported" = "yes" ; then
14901 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14902 found="yes"
14903 fi
14904 fi
14905
14906 if test $found = "no" ; then
14907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14909 fi
14910
14911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14913 fi
14914
14915 CFLAGS="$CFLAGS -Wformat"
14916
14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14918 printf %s "checking if $CC supports -Wformat... " >&6; }
14919 cacheid=xorg_cv_cc_flag__Wformat
14920 if eval test \${$cacheid+y}
14921 then :
14922 printf %s "(cached) " >&6
14923 else case e in #(
14924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 int i;
14927 int
14928 main (void)
14929 {
14930
14931 ;
14932 return 0;
14933 }
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"
14936 then :
14937 eval $cacheid=yes
14938 else case e in #(
14939 e) eval $cacheid=no ;;
14940 esac
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14943 conftest$ac_exeext conftest.$ac_ext ;;
14944 esac
14945 fi
14946
14947
14948 CFLAGS="$xorg_testset_save_CFLAGS"
14949
14950 eval supported=\$$cacheid
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14952 printf "%s\n" "$supported" >&6; }
14953 if test "$supported" = "yes" ; then
14954 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14955 found="yes"
14956 fi
14957 fi
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975 xorg_testset_save_CFLAGS="$CFLAGS"
14976
14977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14980 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14981 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14982 then :
14983 printf %s "(cached) " >&6
14984 else case e in #(
14985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 int i;
14988 _ACEOF
14989 if ac_fn_c_try_compile "$LINENO"
14990 then :
14991 xorg_cv_cc_flag_unknown_warning_option=yes
14992 else case e in #(
14993 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14994 esac
14995 fi
14996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14997 esac
14998 fi
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15000 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15002 CFLAGS="$xorg_testset_save_CFLAGS"
15003 fi
15004
15005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15008 fi
15009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15011 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15012 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15013 then :
15014 printf %s "(cached) " >&6
15015 else case e in #(
15016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15018 int i;
15019 _ACEOF
15020 if ac_fn_c_try_compile "$LINENO"
15021 then :
15022 xorg_cv_cc_flag_unused_command_line_argument=yes
15023 else case e in #(
15024 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15025 esac
15026 fi
15027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15028 esac
15029 fi
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15031 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15033 CFLAGS="$xorg_testset_save_CFLAGS"
15034 fi
15035
15036 found="no"
15037
15038 if test $found = "no" ; then
15039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15041 fi
15042
15043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15045 fi
15046
15047 CFLAGS="$CFLAGS -Wstrict-prototypes"
15048
15049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
15050 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
15051 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
15052 if eval test \${$cacheid+y}
15053 then :
15054 printf %s "(cached) " >&6
15055 else case e in #(
15056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 int i;
15059 int
15060 main (void)
15061 {
15062
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_link "$LINENO"
15068 then :
15069 eval $cacheid=yes
15070 else case e in #(
15071 e) eval $cacheid=no ;;
15072 esac
15073 fi
15074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15075 conftest$ac_exeext conftest.$ac_ext ;;
15076 esac
15077 fi
15078
15079
15080 CFLAGS="$xorg_testset_save_CFLAGS"
15081
15082 eval supported=\$$cacheid
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15084 printf "%s\n" "$supported" >&6; }
15085 if test "$supported" = "yes" ; then
15086 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
15087 found="yes"
15088 fi
15089 fi
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105 xorg_testset_save_CFLAGS="$CFLAGS"
15106
15107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15111 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15112 then :
15113 printf %s "(cached) " >&6
15114 else case e in #(
15115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 int i;
15118 _ACEOF
15119 if ac_fn_c_try_compile "$LINENO"
15120 then :
15121 xorg_cv_cc_flag_unknown_warning_option=yes
15122 else case e in #(
15123 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15124 esac
15125 fi
15126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15127 esac
15128 fi
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15130 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15132 CFLAGS="$xorg_testset_save_CFLAGS"
15133 fi
15134
15135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15138 fi
15139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15141 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15142 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15143 then :
15144 printf %s "(cached) " >&6
15145 else case e in #(
15146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 int i;
15149 _ACEOF
15150 if ac_fn_c_try_compile "$LINENO"
15151 then :
15152 xorg_cv_cc_flag_unused_command_line_argument=yes
15153 else case e in #(
15154 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15155 esac
15156 fi
15157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15158 esac
15159 fi
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15163 CFLAGS="$xorg_testset_save_CFLAGS"
15164 fi
15165
15166 found="no"
15167
15168 if test $found = "no" ; then
15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15171 fi
15172
15173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15175 fi
15176
15177 CFLAGS="$CFLAGS -Wmissing-prototypes"
15178
15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
15180 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
15181 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
15182 if eval test \${$cacheid+y}
15183 then :
15184 printf %s "(cached) " >&6
15185 else case e in #(
15186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 int i;
15189 int
15190 main (void)
15191 {
15192
15193 ;
15194 return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"
15198 then :
15199 eval $cacheid=yes
15200 else case e in #(
15201 e) eval $cacheid=no ;;
15202 esac
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15205 conftest$ac_exeext conftest.$ac_ext ;;
15206 esac
15207 fi
15208
15209
15210 CFLAGS="$xorg_testset_save_CFLAGS"
15211
15212 eval supported=\$$cacheid
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15214 printf "%s\n" "$supported" >&6; }
15215 if test "$supported" = "yes" ; then
15216 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
15217 found="yes"
15218 fi
15219 fi
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235 xorg_testset_save_CFLAGS="$CFLAGS"
15236
15237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15241 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15242 then :
15243 printf %s "(cached) " >&6
15244 else case e in #(
15245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 int i;
15248 _ACEOF
15249 if ac_fn_c_try_compile "$LINENO"
15250 then :
15251 xorg_cv_cc_flag_unknown_warning_option=yes
15252 else case e in #(
15253 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15254 esac
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15257 esac
15258 fi
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15260 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15262 CFLAGS="$xorg_testset_save_CFLAGS"
15263 fi
15264
15265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268 fi
15269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15271 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15272 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15273 then :
15274 printf %s "(cached) " >&6
15275 else case e in #(
15276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278 int i;
15279 _ACEOF
15280 if ac_fn_c_try_compile "$LINENO"
15281 then :
15282 xorg_cv_cc_flag_unused_command_line_argument=yes
15283 else case e in #(
15284 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15285 esac
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15288 esac
15289 fi
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15291 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15293 CFLAGS="$xorg_testset_save_CFLAGS"
15294 fi
15295
15296 found="no"
15297
15298 if test $found = "no" ; then
15299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15301 fi
15302
15303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15305 fi
15306
15307 CFLAGS="$CFLAGS -Wnested-externs"
15308
15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
15310 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
15311 cacheid=xorg_cv_cc_flag__Wnested_externs
15312 if eval test \${$cacheid+y}
15313 then :
15314 printf %s "(cached) " >&6
15315 else case e in #(
15316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 int i;
15319 int
15320 main (void)
15321 {
15322
15323 ;
15324 return 0;
15325 }
15326 _ACEOF
15327 if ac_fn_c_try_link "$LINENO"
15328 then :
15329 eval $cacheid=yes
15330 else case e in #(
15331 e) eval $cacheid=no ;;
15332 esac
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15335 conftest$ac_exeext conftest.$ac_ext ;;
15336 esac
15337 fi
15338
15339
15340 CFLAGS="$xorg_testset_save_CFLAGS"
15341
15342 eval supported=\$$cacheid
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15344 printf "%s\n" "$supported" >&6; }
15345 if test "$supported" = "yes" ; then
15346 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15347 found="yes"
15348 fi
15349 fi
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365 xorg_testset_save_CFLAGS="$CFLAGS"
15366
15367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15372 then :
15373 printf %s "(cached) " >&6
15374 else case e in #(
15375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 int i;
15378 _ACEOF
15379 if ac_fn_c_try_compile "$LINENO"
15380 then :
15381 xorg_cv_cc_flag_unknown_warning_option=yes
15382 else case e in #(
15383 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15384 esac
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15387 esac
15388 fi
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15390 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15392 CFLAGS="$xorg_testset_save_CFLAGS"
15393 fi
15394
15395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398 fi
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15401 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15402 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15403 then :
15404 printf %s "(cached) " >&6
15405 else case e in #(
15406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 int i;
15409 _ACEOF
15410 if ac_fn_c_try_compile "$LINENO"
15411 then :
15412 xorg_cv_cc_flag_unused_command_line_argument=yes
15413 else case e in #(
15414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15415 esac
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15418 esac
15419 fi
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15423 CFLAGS="$xorg_testset_save_CFLAGS"
15424 fi
15425
15426 found="no"
15427
15428 if test $found = "no" ; then
15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431 fi
15432
15433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15435 fi
15436
15437 CFLAGS="$CFLAGS -Wbad-function-cast"
15438
15439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15440 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15441 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15442 if eval test \${$cacheid+y}
15443 then :
15444 printf %s "(cached) " >&6
15445 else case e in #(
15446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 int i;
15449 int
15450 main (void)
15451 {
15452
15453 ;
15454 return 0;
15455 }
15456 _ACEOF
15457 if ac_fn_c_try_link "$LINENO"
15458 then :
15459 eval $cacheid=yes
15460 else case e in #(
15461 e) eval $cacheid=no ;;
15462 esac
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15465 conftest$ac_exeext conftest.$ac_ext ;;
15466 esac
15467 fi
15468
15469
15470 CFLAGS="$xorg_testset_save_CFLAGS"
15471
15472 eval supported=\$$cacheid
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474 printf "%s\n" "$supported" >&6; }
15475 if test "$supported" = "yes" ; then
15476 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15477 found="yes"
15478 fi
15479 fi
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495 xorg_testset_save_CFLAGS="$CFLAGS"
15496
15497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15500 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15501 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15502 then :
15503 printf %s "(cached) " >&6
15504 else case e in #(
15505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507 int i;
15508 _ACEOF
15509 if ac_fn_c_try_compile "$LINENO"
15510 then :
15511 xorg_cv_cc_flag_unknown_warning_option=yes
15512 else case e in #(
15513 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15514 esac
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15517 esac
15518 fi
15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15522 CFLAGS="$xorg_testset_save_CFLAGS"
15523 fi
15524
15525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 fi
15529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15533 then :
15534 printf %s "(cached) " >&6
15535 else case e in #(
15536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 int i;
15539 _ACEOF
15540 if ac_fn_c_try_compile "$LINENO"
15541 then :
15542 xorg_cv_cc_flag_unused_command_line_argument=yes
15543 else case e in #(
15544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15545 esac
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15548 esac
15549 fi
15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15553 CFLAGS="$xorg_testset_save_CFLAGS"
15554 fi
15555
15556 found="no"
15557
15558 if test $found = "no" ; then
15559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15561 fi
15562
15563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565 fi
15566
15567 CFLAGS="$CFLAGS -Wold-style-definition"
15568
15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15570 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15571 cacheid=xorg_cv_cc_flag__Wold_style_definition
15572 if eval test \${$cacheid+y}
15573 then :
15574 printf %s "(cached) " >&6
15575 else case e in #(
15576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 int i;
15579 int
15580 main (void)
15581 {
15582
15583 ;
15584 return 0;
15585 }
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"
15588 then :
15589 eval $cacheid=yes
15590 else case e in #(
15591 e) eval $cacheid=no ;;
15592 esac
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15595 conftest$ac_exeext conftest.$ac_ext ;;
15596 esac
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 -Wold-style-definition"
15607 found="yes"
15608 fi
15609 fi
15610
15611 if test $found = "no" ; then
15612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15614 fi
15615
15616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15618 fi
15619
15620 CFLAGS="$CFLAGS -fd"
15621
15622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15623 printf %s "checking if $CC supports -fd... " >&6; }
15624 cacheid=xorg_cv_cc_flag__fd
15625 if eval test \${$cacheid+y}
15626 then :
15627 printf %s "(cached) " >&6
15628 else case e in #(
15629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630 /* end confdefs.h. */
15631 int i;
15632 int
15633 main (void)
15634 {
15635
15636 ;
15637 return 0;
15638 }
15639 _ACEOF
15640 if ac_fn_c_try_link "$LINENO"
15641 then :
15642 eval $cacheid=yes
15643 else case e in #(
15644 e) eval $cacheid=no ;;
15645 esac
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15648 conftest$ac_exeext conftest.$ac_ext ;;
15649 esac
15650 fi
15651
15652
15653 CFLAGS="$xorg_testset_save_CFLAGS"
15654
15655 eval supported=\$$cacheid
15656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15657 printf "%s\n" "$supported" >&6; }
15658 if test "$supported" = "yes" ; then
15659 BASE_CFLAGS="$BASE_CFLAGS -fd"
15660 found="yes"
15661 fi
15662 fi
15663
15664
15665
15666
15667
15668 # This chunk adds additional warnings that could catch undesired effects.
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682 xorg_testset_save_CFLAGS="$CFLAGS"
15683
15684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15688 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15689 then :
15690 printf %s "(cached) " >&6
15691 else case e in #(
15692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15694 int i;
15695 _ACEOF
15696 if ac_fn_c_try_compile "$LINENO"
15697 then :
15698 xorg_cv_cc_flag_unknown_warning_option=yes
15699 else case e in #(
15700 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15701 esac
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15704 esac
15705 fi
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15709 CFLAGS="$xorg_testset_save_CFLAGS"
15710 fi
15711
15712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15715 fi
15716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15720 then :
15721 printf %s "(cached) " >&6
15722 else case e in #(
15723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 int i;
15726 _ACEOF
15727 if ac_fn_c_try_compile "$LINENO"
15728 then :
15729 xorg_cv_cc_flag_unused_command_line_argument=yes
15730 else case e in #(
15731 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15732 esac
15733 fi
15734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15735 esac
15736 fi
15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15738 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15740 CFLAGS="$xorg_testset_save_CFLAGS"
15741 fi
15742
15743 found="no"
15744
15745 if test $found = "no" ; then
15746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15748 fi
15749
15750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15752 fi
15753
15754 CFLAGS="$CFLAGS -Wunused"
15755
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15757 printf %s "checking if $CC supports -Wunused... " >&6; }
15758 cacheid=xorg_cv_cc_flag__Wunused
15759 if eval test \${$cacheid+y}
15760 then :
15761 printf %s "(cached) " >&6
15762 else case e in #(
15763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 int i;
15766 int
15767 main (void)
15768 {
15769
15770 ;
15771 return 0;
15772 }
15773 _ACEOF
15774 if ac_fn_c_try_link "$LINENO"
15775 then :
15776 eval $cacheid=yes
15777 else case e in #(
15778 e) eval $cacheid=no ;;
15779 esac
15780 fi
15781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15782 conftest$ac_exeext conftest.$ac_ext ;;
15783 esac
15784 fi
15785
15786
15787 CFLAGS="$xorg_testset_save_CFLAGS"
15788
15789 eval supported=\$$cacheid
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15791 printf "%s\n" "$supported" >&6; }
15792 if test "$supported" = "yes" ; then
15793 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15794 found="yes"
15795 fi
15796 fi
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812 xorg_testset_save_CFLAGS="$CFLAGS"
15813
15814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15819 then :
15820 printf %s "(cached) " >&6
15821 else case e in #(
15822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 int i;
15825 _ACEOF
15826 if ac_fn_c_try_compile "$LINENO"
15827 then :
15828 xorg_cv_cc_flag_unknown_warning_option=yes
15829 else case e in #(
15830 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15831 esac
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15834 esac
15835 fi
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15839 CFLAGS="$xorg_testset_save_CFLAGS"
15840 fi
15841
15842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 fi
15846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15850 then :
15851 printf %s "(cached) " >&6
15852 else case e in #(
15853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 int i;
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"
15858 then :
15859 xorg_cv_cc_flag_unused_command_line_argument=yes
15860 else case e in #(
15861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15862 esac
15863 fi
15864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15865 esac
15866 fi
15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15870 CFLAGS="$xorg_testset_save_CFLAGS"
15871 fi
15872
15873 found="no"
15874
15875 if test $found = "no" ; then
15876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15878 fi
15879
15880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15882 fi
15883
15884 CFLAGS="$CFLAGS -Wuninitialized"
15885
15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15887 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15888 cacheid=xorg_cv_cc_flag__Wuninitialized
15889 if eval test \${$cacheid+y}
15890 then :
15891 printf %s "(cached) " >&6
15892 else case e in #(
15893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15895 int i;
15896 int
15897 main (void)
15898 {
15899
15900 ;
15901 return 0;
15902 }
15903 _ACEOF
15904 if ac_fn_c_try_link "$LINENO"
15905 then :
15906 eval $cacheid=yes
15907 else case e in #(
15908 e) eval $cacheid=no ;;
15909 esac
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15912 conftest$ac_exeext conftest.$ac_ext ;;
15913 esac
15914 fi
15915
15916
15917 CFLAGS="$xorg_testset_save_CFLAGS"
15918
15919 eval supported=\$$cacheid
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15921 printf "%s\n" "$supported" >&6; }
15922 if test "$supported" = "yes" ; then
15923 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15924 found="yes"
15925 fi
15926 fi
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942 xorg_testset_save_CFLAGS="$CFLAGS"
15943
15944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15948 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15949 then :
15950 printf %s "(cached) " >&6
15951 else case e in #(
15952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 int i;
15955 _ACEOF
15956 if ac_fn_c_try_compile "$LINENO"
15957 then :
15958 xorg_cv_cc_flag_unknown_warning_option=yes
15959 else case e in #(
15960 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15961 esac
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15964 esac
15965 fi
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15969 CFLAGS="$xorg_testset_save_CFLAGS"
15970 fi
15971
15972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15975 fi
15976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15980 then :
15981 printf %s "(cached) " >&6
15982 else case e in #(
15983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 int i;
15986 _ACEOF
15987 if ac_fn_c_try_compile "$LINENO"
15988 then :
15989 xorg_cv_cc_flag_unused_command_line_argument=yes
15990 else case e in #(
15991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15992 esac
15993 fi
15994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15995 esac
15996 fi
15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16000 CFLAGS="$xorg_testset_save_CFLAGS"
16001 fi
16002
16003 found="no"
16004
16005 if test $found = "no" ; then
16006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16008 fi
16009
16010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16012 fi
16013
16014 CFLAGS="$CFLAGS -Wshadow"
16015
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
16017 printf %s "checking if $CC supports -Wshadow... " >&6; }
16018 cacheid=xorg_cv_cc_flag__Wshadow
16019 if eval test \${$cacheid+y}
16020 then :
16021 printf %s "(cached) " >&6
16022 else case e in #(
16023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 int i;
16026 int
16027 main (void)
16028 {
16029
16030 ;
16031 return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"
16035 then :
16036 eval $cacheid=yes
16037 else case e in #(
16038 e) eval $cacheid=no ;;
16039 esac
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16042 conftest$ac_exeext conftest.$ac_ext ;;
16043 esac
16044 fi
16045
16046
16047 CFLAGS="$xorg_testset_save_CFLAGS"
16048
16049 eval supported=\$$cacheid
16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16051 printf "%s\n" "$supported" >&6; }
16052 if test "$supported" = "yes" ; then
16053 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
16054 found="yes"
16055 fi
16056 fi
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072 xorg_testset_save_CFLAGS="$CFLAGS"
16073
16074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16078 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16079 then :
16080 printf %s "(cached) " >&6
16081 else case e in #(
16082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 int i;
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"
16087 then :
16088 xorg_cv_cc_flag_unknown_warning_option=yes
16089 else case e in #(
16090 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16091 esac
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16094 esac
16095 fi
16096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099 CFLAGS="$xorg_testset_save_CFLAGS"
16100 fi
16101
16102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105 fi
16106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16110 then :
16111 printf %s "(cached) " >&6
16112 else case e in #(
16113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 int i;
16116 _ACEOF
16117 if ac_fn_c_try_compile "$LINENO"
16118 then :
16119 xorg_cv_cc_flag_unused_command_line_argument=yes
16120 else case e in #(
16121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16122 esac
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16125 esac
16126 fi
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16130 CFLAGS="$xorg_testset_save_CFLAGS"
16131 fi
16132
16133 found="no"
16134
16135 if test $found = "no" ; then
16136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16138 fi
16139
16140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16142 fi
16143
16144 CFLAGS="$CFLAGS -Wmissing-noreturn"
16145
16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
16147 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
16148 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
16149 if eval test \${$cacheid+y}
16150 then :
16151 printf %s "(cached) " >&6
16152 else case e in #(
16153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 int i;
16156 int
16157 main (void)
16158 {
16159
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_link "$LINENO"
16165 then :
16166 eval $cacheid=yes
16167 else case e in #(
16168 e) eval $cacheid=no ;;
16169 esac
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16172 conftest$ac_exeext conftest.$ac_ext ;;
16173 esac
16174 fi
16175
16176
16177 CFLAGS="$xorg_testset_save_CFLAGS"
16178
16179 eval supported=\$$cacheid
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16181 printf "%s\n" "$supported" >&6; }
16182 if test "$supported" = "yes" ; then
16183 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
16184 found="yes"
16185 fi
16186 fi
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202 xorg_testset_save_CFLAGS="$CFLAGS"
16203
16204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16208 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16209 then :
16210 printf %s "(cached) " >&6
16211 else case e in #(
16212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16214 int i;
16215 _ACEOF
16216 if ac_fn_c_try_compile "$LINENO"
16217 then :
16218 xorg_cv_cc_flag_unknown_warning_option=yes
16219 else case e in #(
16220 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16221 esac
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16224 esac
16225 fi
16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16227 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16229 CFLAGS="$xorg_testset_save_CFLAGS"
16230 fi
16231
16232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16235 fi
16236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16240 then :
16241 printf %s "(cached) " >&6
16242 else case e in #(
16243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16245 int i;
16246 _ACEOF
16247 if ac_fn_c_try_compile "$LINENO"
16248 then :
16249 xorg_cv_cc_flag_unused_command_line_argument=yes
16250 else case e in #(
16251 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16252 esac
16253 fi
16254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16255 esac
16256 fi
16257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16258 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16260 CFLAGS="$xorg_testset_save_CFLAGS"
16261 fi
16262
16263 found="no"
16264
16265 if test $found = "no" ; then
16266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16268 fi
16269
16270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16272 fi
16273
16274 CFLAGS="$CFLAGS -Wmissing-format-attribute"
16275
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
16277 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
16278 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
16279 if eval test \${$cacheid+y}
16280 then :
16281 printf %s "(cached) " >&6
16282 else case e in #(
16283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 int i;
16286 int
16287 main (void)
16288 {
16289
16290 ;
16291 return 0;
16292 }
16293 _ACEOF
16294 if ac_fn_c_try_link "$LINENO"
16295 then :
16296 eval $cacheid=yes
16297 else case e in #(
16298 e) eval $cacheid=no ;;
16299 esac
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16302 conftest$ac_exeext conftest.$ac_ext ;;
16303 esac
16304 fi
16305
16306
16307 CFLAGS="$xorg_testset_save_CFLAGS"
16308
16309 eval supported=\$$cacheid
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16311 printf "%s\n" "$supported" >&6; }
16312 if test "$supported" = "yes" ; then
16313 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
16314 found="yes"
16315 fi
16316 fi
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332 xorg_testset_save_CFLAGS="$CFLAGS"
16333
16334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16338 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16339 then :
16340 printf %s "(cached) " >&6
16341 else case e in #(
16342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16344 int i;
16345 _ACEOF
16346 if ac_fn_c_try_compile "$LINENO"
16347 then :
16348 xorg_cv_cc_flag_unknown_warning_option=yes
16349 else case e in #(
16350 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16351 esac
16352 fi
16353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16354 esac
16355 fi
16356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16359 CFLAGS="$xorg_testset_save_CFLAGS"
16360 fi
16361
16362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16365 fi
16366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16370 then :
16371 printf %s "(cached) " >&6
16372 else case e in #(
16373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h. */
16375 int i;
16376 _ACEOF
16377 if ac_fn_c_try_compile "$LINENO"
16378 then :
16379 xorg_cv_cc_flag_unused_command_line_argument=yes
16380 else case e in #(
16381 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16382 esac
16383 fi
16384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16385 esac
16386 fi
16387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16388 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16390 CFLAGS="$xorg_testset_save_CFLAGS"
16391 fi
16392
16393 found="no"
16394
16395 if test $found = "no" ; then
16396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16398 fi
16399
16400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16402 fi
16403
16404 CFLAGS="$CFLAGS -Wredundant-decls"
16405
16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16407 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16408 cacheid=xorg_cv_cc_flag__Wredundant_decls
16409 if eval test \${$cacheid+y}
16410 then :
16411 printf %s "(cached) " >&6
16412 else case e in #(
16413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 int i;
16416 int
16417 main (void)
16418 {
16419
16420 ;
16421 return 0;
16422 }
16423 _ACEOF
16424 if ac_fn_c_try_link "$LINENO"
16425 then :
16426 eval $cacheid=yes
16427 else case e in #(
16428 e) eval $cacheid=no ;;
16429 esac
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16432 conftest$ac_exeext conftest.$ac_ext ;;
16433 esac
16434 fi
16435
16436
16437 CFLAGS="$xorg_testset_save_CFLAGS"
16438
16439 eval supported=\$$cacheid
16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16441 printf "%s\n" "$supported" >&6; }
16442 if test "$supported" = "yes" ; then
16443 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16444 found="yes"
16445 fi
16446 fi
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462 xorg_testset_save_CFLAGS="$CFLAGS"
16463
16464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16468 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16469 then :
16470 printf %s "(cached) " >&6
16471 else case e in #(
16472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 int i;
16475 _ACEOF
16476 if ac_fn_c_try_compile "$LINENO"
16477 then :
16478 xorg_cv_cc_flag_unknown_warning_option=yes
16479 else case e in #(
16480 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16481 esac
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16484 esac
16485 fi
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16489 CFLAGS="$xorg_testset_save_CFLAGS"
16490 fi
16491
16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16495 fi
16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16500 then :
16501 printf %s "(cached) " >&6
16502 else case e in #(
16503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 int i;
16506 _ACEOF
16507 if ac_fn_c_try_compile "$LINENO"
16508 then :
16509 xorg_cv_cc_flag_unused_command_line_argument=yes
16510 else case e in #(
16511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16512 esac
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16515 esac
16516 fi
16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16520 CFLAGS="$xorg_testset_save_CFLAGS"
16521 fi
16522
16523 found="no"
16524
16525 if test $found = "no" ; then
16526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16528 fi
16529
16530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532 fi
16533
16534 CFLAGS="$CFLAGS -Wlogical-op"
16535
16536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16537 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16538 cacheid=xorg_cv_cc_flag__Wlogical_op
16539 if eval test \${$cacheid+y}
16540 then :
16541 printf %s "(cached) " >&6
16542 else case e in #(
16543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545 int i;
16546 int
16547 main (void)
16548 {
16549
16550 ;
16551 return 0;
16552 }
16553 _ACEOF
16554 if ac_fn_c_try_link "$LINENO"
16555 then :
16556 eval $cacheid=yes
16557 else case e in #(
16558 e) eval $cacheid=no ;;
16559 esac
16560 fi
16561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16562 conftest$ac_exeext conftest.$ac_ext ;;
16563 esac
16564 fi
16565
16566
16567 CFLAGS="$xorg_testset_save_CFLAGS"
16568
16569 eval supported=\$$cacheid
16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16571 printf "%s\n" "$supported" >&6; }
16572 if test "$supported" = "yes" ; then
16573 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16574 found="yes"
16575 fi
16576 fi
16577
16578
16579
16580 # These are currently disabled because they are noisy. They will be enabled
16581 # in the future once the codebase is sufficiently modernized to silence
16582 # them. For now, I don't want them to drown out the other warnings.
16583 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16584 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16585 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16586
16587 # Turn some warnings into errors, so we don't accidentally get successful builds
16588 # when there are problems that should be fixed.
16589
16590 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604 xorg_testset_save_CFLAGS="$CFLAGS"
16605
16606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16610 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16611 then :
16612 printf %s "(cached) " >&6
16613 else case e in #(
16614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616 int i;
16617 _ACEOF
16618 if ac_fn_c_try_compile "$LINENO"
16619 then :
16620 xorg_cv_cc_flag_unknown_warning_option=yes
16621 else case e in #(
16622 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16623 esac
16624 fi
16625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16626 esac
16627 fi
16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16629 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16631 CFLAGS="$xorg_testset_save_CFLAGS"
16632 fi
16633
16634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637 fi
16638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16640 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16641 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16642 then :
16643 printf %s "(cached) " >&6
16644 else case e in #(
16645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 int i;
16648 _ACEOF
16649 if ac_fn_c_try_compile "$LINENO"
16650 then :
16651 xorg_cv_cc_flag_unused_command_line_argument=yes
16652 else case e in #(
16653 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16654 esac
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16657 esac
16658 fi
16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16662 CFLAGS="$xorg_testset_save_CFLAGS"
16663 fi
16664
16665 found="no"
16666
16667 if test $found = "no" ; then
16668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16670 fi
16671
16672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16674 fi
16675
16676 CFLAGS="$CFLAGS -Werror=implicit"
16677
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16679 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16680 cacheid=xorg_cv_cc_flag__Werror_implicit
16681 if eval test \${$cacheid+y}
16682 then :
16683 printf %s "(cached) " >&6
16684 else case e in #(
16685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16687 int i;
16688 int
16689 main (void)
16690 {
16691
16692 ;
16693 return 0;
16694 }
16695 _ACEOF
16696 if ac_fn_c_try_link "$LINENO"
16697 then :
16698 eval $cacheid=yes
16699 else case e in #(
16700 e) eval $cacheid=no ;;
16701 esac
16702 fi
16703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16704 conftest$ac_exeext conftest.$ac_ext ;;
16705 esac
16706 fi
16707
16708
16709 CFLAGS="$xorg_testset_save_CFLAGS"
16710
16711 eval supported=\$$cacheid
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16713 printf "%s\n" "$supported" >&6; }
16714 if test "$supported" = "yes" ; then
16715 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16716 found="yes"
16717 fi
16718 fi
16719
16720 if test $found = "no" ; then
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 fi
16724
16725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16727 fi
16728
16729 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16730
16731 { 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
16732 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16733 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16734 if eval test \${$cacheid+y}
16735 then :
16736 printf %s "(cached) " >&6
16737 else case e in #(
16738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 int i;
16741 int
16742 main (void)
16743 {
16744
16745 ;
16746 return 0;
16747 }
16748 _ACEOF
16749 if ac_fn_c_try_link "$LINENO"
16750 then :
16751 eval $cacheid=yes
16752 else case e in #(
16753 e) eval $cacheid=no ;;
16754 esac
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16757 conftest$ac_exeext conftest.$ac_ext ;;
16758 esac
16759 fi
16760
16761
16762 CFLAGS="$xorg_testset_save_CFLAGS"
16763
16764 eval supported=\$$cacheid
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766 printf "%s\n" "$supported" >&6; }
16767 if test "$supported" = "yes" ; then
16768 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16769 found="yes"
16770 fi
16771 fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787 xorg_testset_save_CFLAGS="$CFLAGS"
16788
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16794 then :
16795 printf %s "(cached) " >&6
16796 else case e in #(
16797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798 /* end confdefs.h. */
16799 int i;
16800 _ACEOF
16801 if ac_fn_c_try_compile "$LINENO"
16802 then :
16803 xorg_cv_cc_flag_unknown_warning_option=yes
16804 else case e in #(
16805 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16806 esac
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16809 esac
16810 fi
16811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16812 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16814 CFLAGS="$xorg_testset_save_CFLAGS"
16815 fi
16816
16817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16820 fi
16821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16823 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16824 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16825 then :
16826 printf %s "(cached) " >&6
16827 else case e in #(
16828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16830 int i;
16831 _ACEOF
16832 if ac_fn_c_try_compile "$LINENO"
16833 then :
16834 xorg_cv_cc_flag_unused_command_line_argument=yes
16835 else case e in #(
16836 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16837 esac
16838 fi
16839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16840 esac
16841 fi
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16845 CFLAGS="$xorg_testset_save_CFLAGS"
16846 fi
16847
16848 found="no"
16849
16850 if test $found = "no" ; then
16851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16853 fi
16854
16855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16857 fi
16858
16859 CFLAGS="$CFLAGS -Werror=nonnull"
16860
16861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16862 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16863 cacheid=xorg_cv_cc_flag__Werror_nonnull
16864 if eval test \${$cacheid+y}
16865 then :
16866 printf %s "(cached) " >&6
16867 else case e in #(
16868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 int i;
16871 int
16872 main (void)
16873 {
16874
16875 ;
16876 return 0;
16877 }
16878 _ACEOF
16879 if ac_fn_c_try_link "$LINENO"
16880 then :
16881 eval $cacheid=yes
16882 else case e in #(
16883 e) eval $cacheid=no ;;
16884 esac
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16887 conftest$ac_exeext conftest.$ac_ext ;;
16888 esac
16889 fi
16890
16891
16892 CFLAGS="$xorg_testset_save_CFLAGS"
16893
16894 eval supported=\$$cacheid
16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16896 printf "%s\n" "$supported" >&6; }
16897 if test "$supported" = "yes" ; then
16898 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16899 found="yes"
16900 fi
16901 fi
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917 xorg_testset_save_CFLAGS="$CFLAGS"
16918
16919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16923 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16924 then :
16925 printf %s "(cached) " >&6
16926 else case e in #(
16927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 int i;
16930 _ACEOF
16931 if ac_fn_c_try_compile "$LINENO"
16932 then :
16933 xorg_cv_cc_flag_unknown_warning_option=yes
16934 else case e in #(
16935 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16936 esac
16937 fi
16938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16939 esac
16940 fi
16941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16944 CFLAGS="$xorg_testset_save_CFLAGS"
16945 fi
16946
16947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950 fi
16951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16955 then :
16956 printf %s "(cached) " >&6
16957 else case e in #(
16958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 int i;
16961 _ACEOF
16962 if ac_fn_c_try_compile "$LINENO"
16963 then :
16964 xorg_cv_cc_flag_unused_command_line_argument=yes
16965 else case e in #(
16966 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16967 esac
16968 fi
16969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16970 esac
16971 fi
16972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16973 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16975 CFLAGS="$xorg_testset_save_CFLAGS"
16976 fi
16977
16978 found="no"
16979
16980 if test $found = "no" ; then
16981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16983 fi
16984
16985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16987 fi
16988
16989 CFLAGS="$CFLAGS -Werror=init-self"
16990
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16992 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16993 cacheid=xorg_cv_cc_flag__Werror_init_self
16994 if eval test \${$cacheid+y}
16995 then :
16996 printf %s "(cached) " >&6
16997 else case e in #(
16998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 int i;
17001 int
17002 main (void)
17003 {
17004
17005 ;
17006 return 0;
17007 }
17008 _ACEOF
17009 if ac_fn_c_try_link "$LINENO"
17010 then :
17011 eval $cacheid=yes
17012 else case e in #(
17013 e) eval $cacheid=no ;;
17014 esac
17015 fi
17016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17017 conftest$ac_exeext conftest.$ac_ext ;;
17018 esac
17019 fi
17020
17021
17022 CFLAGS="$xorg_testset_save_CFLAGS"
17023
17024 eval supported=\$$cacheid
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17026 printf "%s\n" "$supported" >&6; }
17027 if test "$supported" = "yes" ; then
17028 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
17029 found="yes"
17030 fi
17031 fi
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047 xorg_testset_save_CFLAGS="$CFLAGS"
17048
17049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17052 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17053 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17054 then :
17055 printf %s "(cached) " >&6
17056 else case e in #(
17057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17059 int i;
17060 _ACEOF
17061 if ac_fn_c_try_compile "$LINENO"
17062 then :
17063 xorg_cv_cc_flag_unknown_warning_option=yes
17064 else case e in #(
17065 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17066 esac
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17069 esac
17070 fi
17071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074 CFLAGS="$xorg_testset_save_CFLAGS"
17075 fi
17076
17077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080 fi
17081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17085 then :
17086 printf %s "(cached) " >&6
17087 else case e in #(
17088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 int i;
17091 _ACEOF
17092 if ac_fn_c_try_compile "$LINENO"
17093 then :
17094 xorg_cv_cc_flag_unused_command_line_argument=yes
17095 else case e in #(
17096 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17097 esac
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17100 esac
17101 fi
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17103 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17105 CFLAGS="$xorg_testset_save_CFLAGS"
17106 fi
17107
17108 found="no"
17109
17110 if test $found = "no" ; then
17111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113 fi
17114
17115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17117 fi
17118
17119 CFLAGS="$CFLAGS -Werror=main"
17120
17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
17122 printf %s "checking if $CC supports -Werror=main... " >&6; }
17123 cacheid=xorg_cv_cc_flag__Werror_main
17124 if eval test \${$cacheid+y}
17125 then :
17126 printf %s "(cached) " >&6
17127 else case e in #(
17128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 int i;
17131 int
17132 main (void)
17133 {
17134
17135 ;
17136 return 0;
17137 }
17138 _ACEOF
17139 if ac_fn_c_try_link "$LINENO"
17140 then :
17141 eval $cacheid=yes
17142 else case e in #(
17143 e) eval $cacheid=no ;;
17144 esac
17145 fi
17146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17147 conftest$ac_exeext conftest.$ac_ext ;;
17148 esac
17149 fi
17150
17151
17152 CFLAGS="$xorg_testset_save_CFLAGS"
17153
17154 eval supported=\$$cacheid
17155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17156 printf "%s\n" "$supported" >&6; }
17157 if test "$supported" = "yes" ; then
17158 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
17159 found="yes"
17160 fi
17161 fi
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177 xorg_testset_save_CFLAGS="$CFLAGS"
17178
17179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17183 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17184 then :
17185 printf %s "(cached) " >&6
17186 else case e in #(
17187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 int i;
17190 _ACEOF
17191 if ac_fn_c_try_compile "$LINENO"
17192 then :
17193 xorg_cv_cc_flag_unknown_warning_option=yes
17194 else case e in #(
17195 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17196 esac
17197 fi
17198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17199 esac
17200 fi
17201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17202 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17204 CFLAGS="$xorg_testset_save_CFLAGS"
17205 fi
17206
17207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210 fi
17211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17215 then :
17216 printf %s "(cached) " >&6
17217 else case e in #(
17218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"
17223 then :
17224 xorg_cv_cc_flag_unused_command_line_argument=yes
17225 else case e in #(
17226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17227 esac
17228 fi
17229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17230 esac
17231 fi
17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17235 CFLAGS="$xorg_testset_save_CFLAGS"
17236 fi
17237
17238 found="no"
17239
17240 if test $found = "no" ; then
17241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243 fi
17244
17245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247 fi
17248
17249 CFLAGS="$CFLAGS -Werror=missing-braces"
17250
17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
17252 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
17253 cacheid=xorg_cv_cc_flag__Werror_missing_braces
17254 if eval test \${$cacheid+y}
17255 then :
17256 printf %s "(cached) " >&6
17257 else case e in #(
17258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260 int i;
17261 int
17262 main (void)
17263 {
17264
17265 ;
17266 return 0;
17267 }
17268 _ACEOF
17269 if ac_fn_c_try_link "$LINENO"
17270 then :
17271 eval $cacheid=yes
17272 else case e in #(
17273 e) eval $cacheid=no ;;
17274 esac
17275 fi
17276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17277 conftest$ac_exeext conftest.$ac_ext ;;
17278 esac
17279 fi
17280
17281
17282 CFLAGS="$xorg_testset_save_CFLAGS"
17283
17284 eval supported=\$$cacheid
17285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17286 printf "%s\n" "$supported" >&6; }
17287 if test "$supported" = "yes" ; then
17288 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
17289 found="yes"
17290 fi
17291 fi
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307 xorg_testset_save_CFLAGS="$CFLAGS"
17308
17309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17313 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17314 then :
17315 printf %s "(cached) " >&6
17316 else case e in #(
17317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h. */
17319 int i;
17320 _ACEOF
17321 if ac_fn_c_try_compile "$LINENO"
17322 then :
17323 xorg_cv_cc_flag_unknown_warning_option=yes
17324 else case e in #(
17325 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17326 esac
17327 fi
17328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17329 esac
17330 fi
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17334 CFLAGS="$xorg_testset_save_CFLAGS"
17335 fi
17336
17337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17340 fi
17341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17345 then :
17346 printf %s "(cached) " >&6
17347 else case e in #(
17348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 int i;
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"
17353 then :
17354 xorg_cv_cc_flag_unused_command_line_argument=yes
17355 else case e in #(
17356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17357 esac
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17360 esac
17361 fi
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17365 CFLAGS="$xorg_testset_save_CFLAGS"
17366 fi
17367
17368 found="no"
17369
17370 if test $found = "no" ; then
17371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373 fi
17374
17375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377 fi
17378
17379 CFLAGS="$CFLAGS -Werror=sequence-point"
17380
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17382 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17383 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17384 if eval test \${$cacheid+y}
17385 then :
17386 printf %s "(cached) " >&6
17387 else case e in #(
17388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17390 int i;
17391 int
17392 main (void)
17393 {
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"
17400 then :
17401 eval $cacheid=yes
17402 else case e in #(
17403 e) eval $cacheid=no ;;
17404 esac
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17407 conftest$ac_exeext conftest.$ac_ext ;;
17408 esac
17409 fi
17410
17411
17412 CFLAGS="$xorg_testset_save_CFLAGS"
17413
17414 eval supported=\$$cacheid
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17416 printf "%s\n" "$supported" >&6; }
17417 if test "$supported" = "yes" ; then
17418 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17419 found="yes"
17420 fi
17421 fi
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437 xorg_testset_save_CFLAGS="$CFLAGS"
17438
17439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17444 then :
17445 printf %s "(cached) " >&6
17446 else case e in #(
17447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17449 int i;
17450 _ACEOF
17451 if ac_fn_c_try_compile "$LINENO"
17452 then :
17453 xorg_cv_cc_flag_unknown_warning_option=yes
17454 else case e in #(
17455 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17456 esac
17457 fi
17458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17459 esac
17460 fi
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17464 CFLAGS="$xorg_testset_save_CFLAGS"
17465 fi
17466
17467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17470 fi
17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17475 then :
17476 printf %s "(cached) " >&6
17477 else case e in #(
17478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 int i;
17481 _ACEOF
17482 if ac_fn_c_try_compile "$LINENO"
17483 then :
17484 xorg_cv_cc_flag_unused_command_line_argument=yes
17485 else case e in #(
17486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17487 esac
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17490 esac
17491 fi
17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17495 CFLAGS="$xorg_testset_save_CFLAGS"
17496 fi
17497
17498 found="no"
17499
17500 if test $found = "no" ; then
17501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17503 fi
17504
17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17507 fi
17508
17509 CFLAGS="$CFLAGS -Werror=return-type"
17510
17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17512 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17513 cacheid=xorg_cv_cc_flag__Werror_return_type
17514 if eval test \${$cacheid+y}
17515 then :
17516 printf %s "(cached) " >&6
17517 else case e in #(
17518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17520 int i;
17521 int
17522 main (void)
17523 {
17524
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"
17530 then :
17531 eval $cacheid=yes
17532 else case e in #(
17533 e) eval $cacheid=no ;;
17534 esac
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17537 conftest$ac_exeext conftest.$ac_ext ;;
17538 esac
17539 fi
17540
17541
17542 CFLAGS="$xorg_testset_save_CFLAGS"
17543
17544 eval supported=\$$cacheid
17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17546 printf "%s\n" "$supported" >&6; }
17547 if test "$supported" = "yes" ; then
17548 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17549 found="yes"
17550 fi
17551 fi
17552
17553 if test $found = "no" ; then
17554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556 fi
17557
17558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17560 fi
17561
17562 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17563
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17565 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17566 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17567 if eval test \${$cacheid+y}
17568 then :
17569 printf %s "(cached) " >&6
17570 else case e in #(
17571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h. */
17573 int i;
17574 int
17575 main (void)
17576 {
17577
17578 ;
17579 return 0;
17580 }
17581 _ACEOF
17582 if ac_fn_c_try_link "$LINENO"
17583 then :
17584 eval $cacheid=yes
17585 else case e in #(
17586 e) eval $cacheid=no ;;
17587 esac
17588 fi
17589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17590 conftest$ac_exeext conftest.$ac_ext ;;
17591 esac
17592 fi
17593
17594
17595 CFLAGS="$xorg_testset_save_CFLAGS"
17596
17597 eval supported=\$$cacheid
17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17599 printf "%s\n" "$supported" >&6; }
17600 if test "$supported" = "yes" ; then
17601 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17602 found="yes"
17603 fi
17604 fi
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620 xorg_testset_save_CFLAGS="$CFLAGS"
17621
17622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17625 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17626 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17627 then :
17628 printf %s "(cached) " >&6
17629 else case e in #(
17630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632 int i;
17633 _ACEOF
17634 if ac_fn_c_try_compile "$LINENO"
17635 then :
17636 xorg_cv_cc_flag_unknown_warning_option=yes
17637 else case e in #(
17638 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17639 esac
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17642 esac
17643 fi
17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17645 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17647 CFLAGS="$xorg_testset_save_CFLAGS"
17648 fi
17649
17650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17653 fi
17654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17656 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17657 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17658 then :
17659 printf %s "(cached) " >&6
17660 else case e in #(
17661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h. */
17663 int i;
17664 _ACEOF
17665 if ac_fn_c_try_compile "$LINENO"
17666 then :
17667 xorg_cv_cc_flag_unused_command_line_argument=yes
17668 else case e in #(
17669 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17670 esac
17671 fi
17672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17673 esac
17674 fi
17675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17676 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17678 CFLAGS="$xorg_testset_save_CFLAGS"
17679 fi
17680
17681 found="no"
17682
17683 if test $found = "no" ; then
17684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17686 fi
17687
17688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17690 fi
17691
17692 CFLAGS="$CFLAGS -Werror=trigraphs"
17693
17694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17695 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17696 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17697 if eval test \${$cacheid+y}
17698 then :
17699 printf %s "(cached) " >&6
17700 else case e in #(
17701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17703 int i;
17704 int
17705 main (void)
17706 {
17707
17708 ;
17709 return 0;
17710 }
17711 _ACEOF
17712 if ac_fn_c_try_link "$LINENO"
17713 then :
17714 eval $cacheid=yes
17715 else case e in #(
17716 e) eval $cacheid=no ;;
17717 esac
17718 fi
17719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17720 conftest$ac_exeext conftest.$ac_ext ;;
17721 esac
17722 fi
17723
17724
17725 CFLAGS="$xorg_testset_save_CFLAGS"
17726
17727 eval supported=\$$cacheid
17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17729 printf "%s\n" "$supported" >&6; }
17730 if test "$supported" = "yes" ; then
17731 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17732 found="yes"
17733 fi
17734 fi
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750 xorg_testset_save_CFLAGS="$CFLAGS"
17751
17752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17755 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17756 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17757 then :
17758 printf %s "(cached) " >&6
17759 else case e in #(
17760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762 int i;
17763 _ACEOF
17764 if ac_fn_c_try_compile "$LINENO"
17765 then :
17766 xorg_cv_cc_flag_unknown_warning_option=yes
17767 else case e in #(
17768 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17769 esac
17770 fi
17771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17772 esac
17773 fi
17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17775 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17777 CFLAGS="$xorg_testset_save_CFLAGS"
17778 fi
17779
17780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17783 fi
17784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17786 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17787 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17788 then :
17789 printf %s "(cached) " >&6
17790 else case e in #(
17791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17793 int i;
17794 _ACEOF
17795 if ac_fn_c_try_compile "$LINENO"
17796 then :
17797 xorg_cv_cc_flag_unused_command_line_argument=yes
17798 else case e in #(
17799 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17800 esac
17801 fi
17802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17803 esac
17804 fi
17805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17806 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17808 CFLAGS="$xorg_testset_save_CFLAGS"
17809 fi
17810
17811 found="no"
17812
17813 if test $found = "no" ; then
17814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17816 fi
17817
17818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17820 fi
17821
17822 CFLAGS="$CFLAGS -Werror=array-bounds"
17823
17824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17825 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17826 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17827 if eval test \${$cacheid+y}
17828 then :
17829 printf %s "(cached) " >&6
17830 else case e in #(
17831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h. */
17833 int i;
17834 int
17835 main (void)
17836 {
17837
17838 ;
17839 return 0;
17840 }
17841 _ACEOF
17842 if ac_fn_c_try_link "$LINENO"
17843 then :
17844 eval $cacheid=yes
17845 else case e in #(
17846 e) eval $cacheid=no ;;
17847 esac
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17850 conftest$ac_exeext conftest.$ac_ext ;;
17851 esac
17852 fi
17853
17854
17855 CFLAGS="$xorg_testset_save_CFLAGS"
17856
17857 eval supported=\$$cacheid
17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17859 printf "%s\n" "$supported" >&6; }
17860 if test "$supported" = "yes" ; then
17861 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17862 found="yes"
17863 fi
17864 fi
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880 xorg_testset_save_CFLAGS="$CFLAGS"
17881
17882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17885 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17886 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17887 then :
17888 printf %s "(cached) " >&6
17889 else case e in #(
17890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892 int i;
17893 _ACEOF
17894 if ac_fn_c_try_compile "$LINENO"
17895 then :
17896 xorg_cv_cc_flag_unknown_warning_option=yes
17897 else case e in #(
17898 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17899 esac
17900 fi
17901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17902 esac
17903 fi
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17907 CFLAGS="$xorg_testset_save_CFLAGS"
17908 fi
17909
17910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17913 fi
17914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17918 then :
17919 printf %s "(cached) " >&6
17920 else case e in #(
17921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17923 int i;
17924 _ACEOF
17925 if ac_fn_c_try_compile "$LINENO"
17926 then :
17927 xorg_cv_cc_flag_unused_command_line_argument=yes
17928 else case e in #(
17929 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17930 esac
17931 fi
17932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17933 esac
17934 fi
17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17936 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17938 CFLAGS="$xorg_testset_save_CFLAGS"
17939 fi
17940
17941 found="no"
17942
17943 if test $found = "no" ; then
17944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17946 fi
17947
17948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17950 fi
17951
17952 CFLAGS="$CFLAGS -Werror=write-strings"
17953
17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17955 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17956 cacheid=xorg_cv_cc_flag__Werror_write_strings
17957 if eval test \${$cacheid+y}
17958 then :
17959 printf %s "(cached) " >&6
17960 else case e in #(
17961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962 /* end confdefs.h. */
17963 int i;
17964 int
17965 main (void)
17966 {
17967
17968 ;
17969 return 0;
17970 }
17971 _ACEOF
17972 if ac_fn_c_try_link "$LINENO"
17973 then :
17974 eval $cacheid=yes
17975 else case e in #(
17976 e) eval $cacheid=no ;;
17977 esac
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17980 conftest$ac_exeext conftest.$ac_ext ;;
17981 esac
17982 fi
17983
17984
17985 CFLAGS="$xorg_testset_save_CFLAGS"
17986
17987 eval supported=\$$cacheid
17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17989 printf "%s\n" "$supported" >&6; }
17990 if test "$supported" = "yes" ; then
17991 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17992 found="yes"
17993 fi
17994 fi
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010 xorg_testset_save_CFLAGS="$CFLAGS"
18011
18012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18015 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18016 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18017 then :
18018 printf %s "(cached) " >&6
18019 else case e in #(
18020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 int i;
18023 _ACEOF
18024 if ac_fn_c_try_compile "$LINENO"
18025 then :
18026 xorg_cv_cc_flag_unknown_warning_option=yes
18027 else case e in #(
18028 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18029 esac
18030 fi
18031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18032 esac
18033 fi
18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18035 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18037 CFLAGS="$xorg_testset_save_CFLAGS"
18038 fi
18039
18040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18043 fi
18044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18046 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18047 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18048 then :
18049 printf %s "(cached) " >&6
18050 else case e in #(
18051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18053 int i;
18054 _ACEOF
18055 if ac_fn_c_try_compile "$LINENO"
18056 then :
18057 xorg_cv_cc_flag_unused_command_line_argument=yes
18058 else case e in #(
18059 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18060 esac
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18063 esac
18064 fi
18065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18066 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18068 CFLAGS="$xorg_testset_save_CFLAGS"
18069 fi
18070
18071 found="no"
18072
18073 if test $found = "no" ; then
18074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18076 fi
18077
18078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18080 fi
18081
18082 CFLAGS="$CFLAGS -Werror=address"
18083
18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
18085 printf %s "checking if $CC supports -Werror=address... " >&6; }
18086 cacheid=xorg_cv_cc_flag__Werror_address
18087 if eval test \${$cacheid+y}
18088 then :
18089 printf %s "(cached) " >&6
18090 else case e in #(
18091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18093 int i;
18094 int
18095 main (void)
18096 {
18097
18098 ;
18099 return 0;
18100 }
18101 _ACEOF
18102 if ac_fn_c_try_link "$LINENO"
18103 then :
18104 eval $cacheid=yes
18105 else case e in #(
18106 e) eval $cacheid=no ;;
18107 esac
18108 fi
18109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18110 conftest$ac_exeext conftest.$ac_ext ;;
18111 esac
18112 fi
18113
18114
18115 CFLAGS="$xorg_testset_save_CFLAGS"
18116
18117 eval supported=\$$cacheid
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18119 printf "%s\n" "$supported" >&6; }
18120 if test "$supported" = "yes" ; then
18121 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
18122 found="yes"
18123 fi
18124 fi
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140 xorg_testset_save_CFLAGS="$CFLAGS"
18141
18142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18145 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18146 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18147 then :
18148 printf %s "(cached) " >&6
18149 else case e in #(
18150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18152 int i;
18153 _ACEOF
18154 if ac_fn_c_try_compile "$LINENO"
18155 then :
18156 xorg_cv_cc_flag_unknown_warning_option=yes
18157 else case e in #(
18158 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18159 esac
18160 fi
18161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18162 esac
18163 fi
18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18165 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18167 CFLAGS="$xorg_testset_save_CFLAGS"
18168 fi
18169
18170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18173 fi
18174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18178 then :
18179 printf %s "(cached) " >&6
18180 else case e in #(
18181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18183 int i;
18184 _ACEOF
18185 if ac_fn_c_try_compile "$LINENO"
18186 then :
18187 xorg_cv_cc_flag_unused_command_line_argument=yes
18188 else case e in #(
18189 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18190 esac
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18193 esac
18194 fi
18195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18196 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18198 CFLAGS="$xorg_testset_save_CFLAGS"
18199 fi
18200
18201 found="no"
18202
18203 if test $found = "no" ; then
18204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18206 fi
18207
18208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18210 fi
18211
18212 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
18213
18214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
18215 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
18216 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
18217 if eval test \${$cacheid+y}
18218 then :
18219 printf %s "(cached) " >&6
18220 else case e in #(
18221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18223 int i;
18224 int
18225 main (void)
18226 {
18227
18228 ;
18229 return 0;
18230 }
18231 _ACEOF
18232 if ac_fn_c_try_link "$LINENO"
18233 then :
18234 eval $cacheid=yes
18235 else case e in #(
18236 e) eval $cacheid=no ;;
18237 esac
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18240 conftest$ac_exeext conftest.$ac_ext ;;
18241 esac
18242 fi
18243
18244
18245 CFLAGS="$xorg_testset_save_CFLAGS"
18246
18247 eval supported=\$$cacheid
18248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18249 printf "%s\n" "$supported" >&6; }
18250 if test "$supported" = "yes" ; then
18251 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
18252 found="yes"
18253 fi
18254 fi
18255
18256 if test $found = "no" ; then
18257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18259 fi
18260
18261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18263 fi
18264
18265 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18266
18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
18268 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
18269 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
18270 if eval test \${$cacheid+y}
18271 then :
18272 printf %s "(cached) " >&6
18273 else case e in #(
18274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18276 int i;
18277 int
18278 main (void)
18279 {
18280
18281 ;
18282 return 0;
18283 }
18284 _ACEOF
18285 if ac_fn_c_try_link "$LINENO"
18286 then :
18287 eval $cacheid=yes
18288 else case e in #(
18289 e) eval $cacheid=no ;;
18290 esac
18291 fi
18292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18293 conftest$ac_exeext conftest.$ac_ext ;;
18294 esac
18295 fi
18296
18297
18298 CFLAGS="$xorg_testset_save_CFLAGS"
18299
18300 eval supported=\$$cacheid
18301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18302 printf "%s\n" "$supported" >&6; }
18303 if test "$supported" = "yes" ; then
18304 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18305 found="yes"
18306 fi
18307 fi
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323 xorg_testset_save_CFLAGS="$CFLAGS"
18324
18325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18328 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18329 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18330 then :
18331 printf %s "(cached) " >&6
18332 else case e in #(
18333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18335 int i;
18336 _ACEOF
18337 if ac_fn_c_try_compile "$LINENO"
18338 then :
18339 xorg_cv_cc_flag_unknown_warning_option=yes
18340 else case e in #(
18341 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18342 esac
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18345 esac
18346 fi
18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18348 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18350 CFLAGS="$xorg_testset_save_CFLAGS"
18351 fi
18352
18353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18356 fi
18357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18359 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18360 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18361 then :
18362 printf %s "(cached) " >&6
18363 else case e in #(
18364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18366 int i;
18367 _ACEOF
18368 if ac_fn_c_try_compile "$LINENO"
18369 then :
18370 xorg_cv_cc_flag_unused_command_line_argument=yes
18371 else case e in #(
18372 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18373 esac
18374 fi
18375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18376 esac
18377 fi
18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18379 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18381 CFLAGS="$xorg_testset_save_CFLAGS"
18382 fi
18383
18384 found="no"
18385
18386 if test $found = "no" ; then
18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389 fi
18390
18391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18393 fi
18394
18395 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18396
18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18398 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18399 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18400 if eval test \${$cacheid+y}
18401 then :
18402 printf %s "(cached) " >&6
18403 else case e in #(
18404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 int i;
18407 int
18408 main (void)
18409 {
18410
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 if ac_fn_c_try_link "$LINENO"
18416 then :
18417 eval $cacheid=yes
18418 else case e in #(
18419 e) eval $cacheid=no ;;
18420 esac
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18423 conftest$ac_exeext conftest.$ac_ext ;;
18424 esac
18425 fi
18426
18427
18428 CFLAGS="$xorg_testset_save_CFLAGS"
18429
18430 eval supported=\$$cacheid
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18432 printf "%s\n" "$supported" >&6; }
18433 if test "$supported" = "yes" ; then
18434 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18435 found="yes"
18436 fi
18437 fi
18438
18439 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18440 else
18441 { 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
18442 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;}
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456 xorg_testset_save_CFLAGS="$CFLAGS"
18457
18458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18462 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18463 then :
18464 printf %s "(cached) " >&6
18465 else case e in #(
18466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18468 int i;
18469 _ACEOF
18470 if ac_fn_c_try_compile "$LINENO"
18471 then :
18472 xorg_cv_cc_flag_unknown_warning_option=yes
18473 else case e in #(
18474 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18475 esac
18476 fi
18477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18478 esac
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 case e in #(
18497 e) 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 case e in #(
18505 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18506 esac
18507 fi
18508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18509 esac
18510 fi
18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18512 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18514 CFLAGS="$xorg_testset_save_CFLAGS"
18515 fi
18516
18517 found="no"
18518
18519 if test $found = "no" ; then
18520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18522 fi
18523
18524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18526 fi
18527
18528 CFLAGS="$CFLAGS -Wimplicit"
18529
18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18531 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18532 cacheid=xorg_cv_cc_flag__Wimplicit
18533 if eval test \${$cacheid+y}
18534 then :
18535 printf %s "(cached) " >&6
18536 else case e in #(
18537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18539 int i;
18540 int
18541 main (void)
18542 {
18543
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_link "$LINENO"
18549 then :
18550 eval $cacheid=yes
18551 else case e in #(
18552 e) eval $cacheid=no ;;
18553 esac
18554 fi
18555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18556 conftest$ac_exeext conftest.$ac_ext ;;
18557 esac
18558 fi
18559
18560
18561 CFLAGS="$xorg_testset_save_CFLAGS"
18562
18563 eval supported=\$$cacheid
18564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18565 printf "%s\n" "$supported" >&6; }
18566 if test "$supported" = "yes" ; then
18567 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18568 found="yes"
18569 fi
18570 fi
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586 xorg_testset_save_CFLAGS="$CFLAGS"
18587
18588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18591 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18592 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18593 then :
18594 printf %s "(cached) " >&6
18595 else case e in #(
18596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598 int i;
18599 _ACEOF
18600 if ac_fn_c_try_compile "$LINENO"
18601 then :
18602 xorg_cv_cc_flag_unknown_warning_option=yes
18603 else case e in #(
18604 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18605 esac
18606 fi
18607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18608 esac
18609 fi
18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18613 CFLAGS="$xorg_testset_save_CFLAGS"
18614 fi
18615
18616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18619 fi
18620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18624 then :
18625 printf %s "(cached) " >&6
18626 else case e in #(
18627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18629 int i;
18630 _ACEOF
18631 if ac_fn_c_try_compile "$LINENO"
18632 then :
18633 xorg_cv_cc_flag_unused_command_line_argument=yes
18634 else case e in #(
18635 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18636 esac
18637 fi
18638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18639 esac
18640 fi
18641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18644 CFLAGS="$xorg_testset_save_CFLAGS"
18645 fi
18646
18647 found="no"
18648
18649 if test $found = "no" ; then
18650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18652 fi
18653
18654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18656 fi
18657
18658 CFLAGS="$CFLAGS -Wnonnull"
18659
18660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18661 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18662 cacheid=xorg_cv_cc_flag__Wnonnull
18663 if eval test \${$cacheid+y}
18664 then :
18665 printf %s "(cached) " >&6
18666 else case e in #(
18667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18669 int i;
18670 int
18671 main (void)
18672 {
18673
18674 ;
18675 return 0;
18676 }
18677 _ACEOF
18678 if ac_fn_c_try_link "$LINENO"
18679 then :
18680 eval $cacheid=yes
18681 else case e in #(
18682 e) eval $cacheid=no ;;
18683 esac
18684 fi
18685 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18686 conftest$ac_exeext conftest.$ac_ext ;;
18687 esac
18688 fi
18689
18690
18691 CFLAGS="$xorg_testset_save_CFLAGS"
18692
18693 eval supported=\$$cacheid
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18695 printf "%s\n" "$supported" >&6; }
18696 if test "$supported" = "yes" ; then
18697 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18698 found="yes"
18699 fi
18700 fi
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716 xorg_testset_save_CFLAGS="$CFLAGS"
18717
18718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18722 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18723 then :
18724 printf %s "(cached) " >&6
18725 else case e in #(
18726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728 int i;
18729 _ACEOF
18730 if ac_fn_c_try_compile "$LINENO"
18731 then :
18732 xorg_cv_cc_flag_unknown_warning_option=yes
18733 else case e in #(
18734 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18735 esac
18736 fi
18737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18738 esac
18739 fi
18740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18743 CFLAGS="$xorg_testset_save_CFLAGS"
18744 fi
18745
18746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18749 fi
18750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18754 then :
18755 printf %s "(cached) " >&6
18756 else case e in #(
18757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18759 int i;
18760 _ACEOF
18761 if ac_fn_c_try_compile "$LINENO"
18762 then :
18763 xorg_cv_cc_flag_unused_command_line_argument=yes
18764 else case e in #(
18765 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18766 esac
18767 fi
18768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18769 esac
18770 fi
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18772 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18774 CFLAGS="$xorg_testset_save_CFLAGS"
18775 fi
18776
18777 found="no"
18778
18779 if test $found = "no" ; then
18780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18782 fi
18783
18784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18786 fi
18787
18788 CFLAGS="$CFLAGS -Winit-self"
18789
18790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18791 printf %s "checking if $CC supports -Winit-self... " >&6; }
18792 cacheid=xorg_cv_cc_flag__Winit_self
18793 if eval test \${$cacheid+y}
18794 then :
18795 printf %s "(cached) " >&6
18796 else case e in #(
18797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798 /* end confdefs.h. */
18799 int i;
18800 int
18801 main (void)
18802 {
18803
18804 ;
18805 return 0;
18806 }
18807 _ACEOF
18808 if ac_fn_c_try_link "$LINENO"
18809 then :
18810 eval $cacheid=yes
18811 else case e in #(
18812 e) eval $cacheid=no ;;
18813 esac
18814 fi
18815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18816 conftest$ac_exeext conftest.$ac_ext ;;
18817 esac
18818 fi
18819
18820
18821 CFLAGS="$xorg_testset_save_CFLAGS"
18822
18823 eval supported=\$$cacheid
18824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18825 printf "%s\n" "$supported" >&6; }
18826 if test "$supported" = "yes" ; then
18827 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18828 found="yes"
18829 fi
18830 fi
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846 xorg_testset_save_CFLAGS="$CFLAGS"
18847
18848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18851 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18852 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18853 then :
18854 printf %s "(cached) " >&6
18855 else case e in #(
18856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857 /* end confdefs.h. */
18858 int i;
18859 _ACEOF
18860 if ac_fn_c_try_compile "$LINENO"
18861 then :
18862 xorg_cv_cc_flag_unknown_warning_option=yes
18863 else case e in #(
18864 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18865 esac
18866 fi
18867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18868 esac
18869 fi
18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18871 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18873 CFLAGS="$xorg_testset_save_CFLAGS"
18874 fi
18875
18876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18879 fi
18880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18882 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18883 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18884 then :
18885 printf %s "(cached) " >&6
18886 else case e in #(
18887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18889 int i;
18890 _ACEOF
18891 if ac_fn_c_try_compile "$LINENO"
18892 then :
18893 xorg_cv_cc_flag_unused_command_line_argument=yes
18894 else case e in #(
18895 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18896 esac
18897 fi
18898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18899 esac
18900 fi
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18904 CFLAGS="$xorg_testset_save_CFLAGS"
18905 fi
18906
18907 found="no"
18908
18909 if test $found = "no" ; then
18910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18912 fi
18913
18914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18916 fi
18917
18918 CFLAGS="$CFLAGS -Wmain"
18919
18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18921 printf %s "checking if $CC supports -Wmain... " >&6; }
18922 cacheid=xorg_cv_cc_flag__Wmain
18923 if eval test \${$cacheid+y}
18924 then :
18925 printf %s "(cached) " >&6
18926 else case e in #(
18927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18929 int i;
18930 int
18931 main (void)
18932 {
18933
18934 ;
18935 return 0;
18936 }
18937 _ACEOF
18938 if ac_fn_c_try_link "$LINENO"
18939 then :
18940 eval $cacheid=yes
18941 else case e in #(
18942 e) eval $cacheid=no ;;
18943 esac
18944 fi
18945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18946 conftest$ac_exeext conftest.$ac_ext ;;
18947 esac
18948 fi
18949
18950
18951 CFLAGS="$xorg_testset_save_CFLAGS"
18952
18953 eval supported=\$$cacheid
18954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18955 printf "%s\n" "$supported" >&6; }
18956 if test "$supported" = "yes" ; then
18957 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18958 found="yes"
18959 fi
18960 fi
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976 xorg_testset_save_CFLAGS="$CFLAGS"
18977
18978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18981 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18982 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18983 then :
18984 printf %s "(cached) " >&6
18985 else case e in #(
18986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h. */
18988 int i;
18989 _ACEOF
18990 if ac_fn_c_try_compile "$LINENO"
18991 then :
18992 xorg_cv_cc_flag_unknown_warning_option=yes
18993 else case e in #(
18994 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18995 esac
18996 fi
18997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18998 esac
18999 fi
19000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19001 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19003 CFLAGS="$xorg_testset_save_CFLAGS"
19004 fi
19005
19006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19009 fi
19010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19012 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19013 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19014 then :
19015 printf %s "(cached) " >&6
19016 else case e in #(
19017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19019 int i;
19020 _ACEOF
19021 if ac_fn_c_try_compile "$LINENO"
19022 then :
19023 xorg_cv_cc_flag_unused_command_line_argument=yes
19024 else case e in #(
19025 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19026 esac
19027 fi
19028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19029 esac
19030 fi
19031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19032 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19034 CFLAGS="$xorg_testset_save_CFLAGS"
19035 fi
19036
19037 found="no"
19038
19039 if test $found = "no" ; then
19040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19042 fi
19043
19044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19046 fi
19047
19048 CFLAGS="$CFLAGS -Wmissing-braces"
19049
19050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
19051 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
19052 cacheid=xorg_cv_cc_flag__Wmissing_braces
19053 if eval test \${$cacheid+y}
19054 then :
19055 printf %s "(cached) " >&6
19056 else case e in #(
19057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19059 int i;
19060 int
19061 main (void)
19062 {
19063
19064 ;
19065 return 0;
19066 }
19067 _ACEOF
19068 if ac_fn_c_try_link "$LINENO"
19069 then :
19070 eval $cacheid=yes
19071 else case e in #(
19072 e) eval $cacheid=no ;;
19073 esac
19074 fi
19075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19076 conftest$ac_exeext conftest.$ac_ext ;;
19077 esac
19078 fi
19079
19080
19081 CFLAGS="$xorg_testset_save_CFLAGS"
19082
19083 eval supported=\$$cacheid
19084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19085 printf "%s\n" "$supported" >&6; }
19086 if test "$supported" = "yes" ; then
19087 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
19088 found="yes"
19089 fi
19090 fi
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106 xorg_testset_save_CFLAGS="$CFLAGS"
19107
19108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19113 then :
19114 printf %s "(cached) " >&6
19115 else case e in #(
19116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118 int i;
19119 _ACEOF
19120 if ac_fn_c_try_compile "$LINENO"
19121 then :
19122 xorg_cv_cc_flag_unknown_warning_option=yes
19123 else case e in #(
19124 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19125 esac
19126 fi
19127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19128 esac
19129 fi
19130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19133 CFLAGS="$xorg_testset_save_CFLAGS"
19134 fi
19135
19136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19139 fi
19140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19144 then :
19145 printf %s "(cached) " >&6
19146 else case e in #(
19147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h. */
19149 int i;
19150 _ACEOF
19151 if ac_fn_c_try_compile "$LINENO"
19152 then :
19153 xorg_cv_cc_flag_unused_command_line_argument=yes
19154 else case e in #(
19155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19156 esac
19157 fi
19158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19159 esac
19160 fi
19161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19164 CFLAGS="$xorg_testset_save_CFLAGS"
19165 fi
19166
19167 found="no"
19168
19169 if test $found = "no" ; then
19170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19172 fi
19173
19174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19176 fi
19177
19178 CFLAGS="$CFLAGS -Wsequence-point"
19179
19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
19181 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
19182 cacheid=xorg_cv_cc_flag__Wsequence_point
19183 if eval test \${$cacheid+y}
19184 then :
19185 printf %s "(cached) " >&6
19186 else case e in #(
19187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19189 int i;
19190 int
19191 main (void)
19192 {
19193
19194 ;
19195 return 0;
19196 }
19197 _ACEOF
19198 if ac_fn_c_try_link "$LINENO"
19199 then :
19200 eval $cacheid=yes
19201 else case e in #(
19202 e) eval $cacheid=no ;;
19203 esac
19204 fi
19205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19206 conftest$ac_exeext conftest.$ac_ext ;;
19207 esac
19208 fi
19209
19210
19211 CFLAGS="$xorg_testset_save_CFLAGS"
19212
19213 eval supported=\$$cacheid
19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19215 printf "%s\n" "$supported" >&6; }
19216 if test "$supported" = "yes" ; then
19217 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
19218 found="yes"
19219 fi
19220 fi
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236 xorg_testset_save_CFLAGS="$CFLAGS"
19237
19238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19242 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19243 then :
19244 printf %s "(cached) " >&6
19245 else case e in #(
19246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19248 int i;
19249 _ACEOF
19250 if ac_fn_c_try_compile "$LINENO"
19251 then :
19252 xorg_cv_cc_flag_unknown_warning_option=yes
19253 else case e in #(
19254 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19255 esac
19256 fi
19257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19258 esac
19259 fi
19260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19263 CFLAGS="$xorg_testset_save_CFLAGS"
19264 fi
19265
19266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19269 fi
19270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19274 then :
19275 printf %s "(cached) " >&6
19276 else case e in #(
19277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19279 int i;
19280 _ACEOF
19281 if ac_fn_c_try_compile "$LINENO"
19282 then :
19283 xorg_cv_cc_flag_unused_command_line_argument=yes
19284 else case e in #(
19285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19286 esac
19287 fi
19288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19289 esac
19290 fi
19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19292 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19294 CFLAGS="$xorg_testset_save_CFLAGS"
19295 fi
19296
19297 found="no"
19298
19299 if test $found = "no" ; then
19300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19302 fi
19303
19304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19306 fi
19307
19308 CFLAGS="$CFLAGS -Wreturn-type"
19309
19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
19311 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
19312 cacheid=xorg_cv_cc_flag__Wreturn_type
19313 if eval test \${$cacheid+y}
19314 then :
19315 printf %s "(cached) " >&6
19316 else case e in #(
19317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318 /* end confdefs.h. */
19319 int i;
19320 int
19321 main (void)
19322 {
19323
19324 ;
19325 return 0;
19326 }
19327 _ACEOF
19328 if ac_fn_c_try_link "$LINENO"
19329 then :
19330 eval $cacheid=yes
19331 else case e in #(
19332 e) eval $cacheid=no ;;
19333 esac
19334 fi
19335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19336 conftest$ac_exeext conftest.$ac_ext ;;
19337 esac
19338 fi
19339
19340
19341 CFLAGS="$xorg_testset_save_CFLAGS"
19342
19343 eval supported=\$$cacheid
19344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19345 printf "%s\n" "$supported" >&6; }
19346 if test "$supported" = "yes" ; then
19347 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19348 found="yes"
19349 fi
19350 fi
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366 xorg_testset_save_CFLAGS="$CFLAGS"
19367
19368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19372 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19373 then :
19374 printf %s "(cached) " >&6
19375 else case e in #(
19376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378 int i;
19379 _ACEOF
19380 if ac_fn_c_try_compile "$LINENO"
19381 then :
19382 xorg_cv_cc_flag_unknown_warning_option=yes
19383 else case e in #(
19384 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19385 esac
19386 fi
19387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19388 esac
19389 fi
19390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19391 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19393 CFLAGS="$xorg_testset_save_CFLAGS"
19394 fi
19395
19396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19399 fi
19400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19404 then :
19405 printf %s "(cached) " >&6
19406 else case e in #(
19407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19409 int i;
19410 _ACEOF
19411 if ac_fn_c_try_compile "$LINENO"
19412 then :
19413 xorg_cv_cc_flag_unused_command_line_argument=yes
19414 else case e in #(
19415 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19416 esac
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19419 esac
19420 fi
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19424 CFLAGS="$xorg_testset_save_CFLAGS"
19425 fi
19426
19427 found="no"
19428
19429 if test $found = "no" ; then
19430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19432 fi
19433
19434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19436 fi
19437
19438 CFLAGS="$CFLAGS -Wtrigraphs"
19439
19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19441 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19442 cacheid=xorg_cv_cc_flag__Wtrigraphs
19443 if eval test \${$cacheid+y}
19444 then :
19445 printf %s "(cached) " >&6
19446 else case e in #(
19447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448 /* end confdefs.h. */
19449 int i;
19450 int
19451 main (void)
19452 {
19453
19454 ;
19455 return 0;
19456 }
19457 _ACEOF
19458 if ac_fn_c_try_link "$LINENO"
19459 then :
19460 eval $cacheid=yes
19461 else case e in #(
19462 e) eval $cacheid=no ;;
19463 esac
19464 fi
19465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19466 conftest$ac_exeext conftest.$ac_ext ;;
19467 esac
19468 fi
19469
19470
19471 CFLAGS="$xorg_testset_save_CFLAGS"
19472
19473 eval supported=\$$cacheid
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19475 printf "%s\n" "$supported" >&6; }
19476 if test "$supported" = "yes" ; then
19477 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19478 found="yes"
19479 fi
19480 fi
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496 xorg_testset_save_CFLAGS="$CFLAGS"
19497
19498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19502 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19503 then :
19504 printf %s "(cached) " >&6
19505 else case e in #(
19506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 int i;
19509 _ACEOF
19510 if ac_fn_c_try_compile "$LINENO"
19511 then :
19512 xorg_cv_cc_flag_unknown_warning_option=yes
19513 else case e in #(
19514 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19515 esac
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19518 esac
19519 fi
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19521 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19523 CFLAGS="$xorg_testset_save_CFLAGS"
19524 fi
19525
19526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19529 fi
19530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19532 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19533 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19534 then :
19535 printf %s "(cached) " >&6
19536 else case e in #(
19537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h. */
19539 int i;
19540 _ACEOF
19541 if ac_fn_c_try_compile "$LINENO"
19542 then :
19543 xorg_cv_cc_flag_unused_command_line_argument=yes
19544 else case e in #(
19545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19546 esac
19547 fi
19548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19549 esac
19550 fi
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19554 CFLAGS="$xorg_testset_save_CFLAGS"
19555 fi
19556
19557 found="no"
19558
19559 if test $found = "no" ; then
19560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19562 fi
19563
19564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19566 fi
19567
19568 CFLAGS="$CFLAGS -Warray-bounds"
19569
19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19571 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19572 cacheid=xorg_cv_cc_flag__Warray_bounds
19573 if eval test \${$cacheid+y}
19574 then :
19575 printf %s "(cached) " >&6
19576 else case e in #(
19577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h. */
19579 int i;
19580 int
19581 main (void)
19582 {
19583
19584 ;
19585 return 0;
19586 }
19587 _ACEOF
19588 if ac_fn_c_try_link "$LINENO"
19589 then :
19590 eval $cacheid=yes
19591 else case e in #(
19592 e) eval $cacheid=no ;;
19593 esac
19594 fi
19595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19596 conftest$ac_exeext conftest.$ac_ext ;;
19597 esac
19598 fi
19599
19600
19601 CFLAGS="$xorg_testset_save_CFLAGS"
19602
19603 eval supported=\$$cacheid
19604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19605 printf "%s\n" "$supported" >&6; }
19606 if test "$supported" = "yes" ; then
19607 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19608 found="yes"
19609 fi
19610 fi
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626 xorg_testset_save_CFLAGS="$CFLAGS"
19627
19628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19632 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19633 then :
19634 printf %s "(cached) " >&6
19635 else case e in #(
19636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19638 int i;
19639 _ACEOF
19640 if ac_fn_c_try_compile "$LINENO"
19641 then :
19642 xorg_cv_cc_flag_unknown_warning_option=yes
19643 else case e in #(
19644 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19645 esac
19646 fi
19647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19648 esac
19649 fi
19650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19651 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19653 CFLAGS="$xorg_testset_save_CFLAGS"
19654 fi
19655
19656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19659 fi
19660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19662 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19663 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19664 then :
19665 printf %s "(cached) " >&6
19666 else case e in #(
19667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19668 /* end confdefs.h. */
19669 int i;
19670 _ACEOF
19671 if ac_fn_c_try_compile "$LINENO"
19672 then :
19673 xorg_cv_cc_flag_unused_command_line_argument=yes
19674 else case e in #(
19675 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19676 esac
19677 fi
19678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19679 esac
19680 fi
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19682 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19684 CFLAGS="$xorg_testset_save_CFLAGS"
19685 fi
19686
19687 found="no"
19688
19689 if test $found = "no" ; then
19690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19692 fi
19693
19694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19696 fi
19697
19698 CFLAGS="$CFLAGS -Wwrite-strings"
19699
19700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19701 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19702 cacheid=xorg_cv_cc_flag__Wwrite_strings
19703 if eval test \${$cacheid+y}
19704 then :
19705 printf %s "(cached) " >&6
19706 else case e in #(
19707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19709 int i;
19710 int
19711 main (void)
19712 {
19713
19714 ;
19715 return 0;
19716 }
19717 _ACEOF
19718 if ac_fn_c_try_link "$LINENO"
19719 then :
19720 eval $cacheid=yes
19721 else case e in #(
19722 e) eval $cacheid=no ;;
19723 esac
19724 fi
19725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19726 conftest$ac_exeext conftest.$ac_ext ;;
19727 esac
19728 fi
19729
19730
19731 CFLAGS="$xorg_testset_save_CFLAGS"
19732
19733 eval supported=\$$cacheid
19734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19735 printf "%s\n" "$supported" >&6; }
19736 if test "$supported" = "yes" ; then
19737 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19738 found="yes"
19739 fi
19740 fi
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756 xorg_testset_save_CFLAGS="$CFLAGS"
19757
19758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19762 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19763 then :
19764 printf %s "(cached) " >&6
19765 else case e in #(
19766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767 /* end confdefs.h. */
19768 int i;
19769 _ACEOF
19770 if ac_fn_c_try_compile "$LINENO"
19771 then :
19772 xorg_cv_cc_flag_unknown_warning_option=yes
19773 else case e in #(
19774 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19775 esac
19776 fi
19777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19778 esac
19779 fi
19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19783 CFLAGS="$xorg_testset_save_CFLAGS"
19784 fi
19785
19786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19789 fi
19790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19794 then :
19795 printf %s "(cached) " >&6
19796 else case e in #(
19797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19799 int i;
19800 _ACEOF
19801 if ac_fn_c_try_compile "$LINENO"
19802 then :
19803 xorg_cv_cc_flag_unused_command_line_argument=yes
19804 else case e in #(
19805 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19806 esac
19807 fi
19808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19809 esac
19810 fi
19811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19814 CFLAGS="$xorg_testset_save_CFLAGS"
19815 fi
19816
19817 found="no"
19818
19819 if test $found = "no" ; then
19820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19822 fi
19823
19824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19826 fi
19827
19828 CFLAGS="$CFLAGS -Waddress"
19829
19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19831 printf %s "checking if $CC supports -Waddress... " >&6; }
19832 cacheid=xorg_cv_cc_flag__Waddress
19833 if eval test \${$cacheid+y}
19834 then :
19835 printf %s "(cached) " >&6
19836 else case e in #(
19837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 int i;
19840 int
19841 main (void)
19842 {
19843
19844 ;
19845 return 0;
19846 }
19847 _ACEOF
19848 if ac_fn_c_try_link "$LINENO"
19849 then :
19850 eval $cacheid=yes
19851 else case e in #(
19852 e) eval $cacheid=no ;;
19853 esac
19854 fi
19855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19856 conftest$ac_exeext conftest.$ac_ext ;;
19857 esac
19858 fi
19859
19860
19861 CFLAGS="$xorg_testset_save_CFLAGS"
19862
19863 eval supported=\$$cacheid
19864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19865 printf "%s\n" "$supported" >&6; }
19866 if test "$supported" = "yes" ; then
19867 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19868 found="yes"
19869 fi
19870 fi
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886 xorg_testset_save_CFLAGS="$CFLAGS"
19887
19888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19891 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19892 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19893 then :
19894 printf %s "(cached) " >&6
19895 else case e in #(
19896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h. */
19898 int i;
19899 _ACEOF
19900 if ac_fn_c_try_compile "$LINENO"
19901 then :
19902 xorg_cv_cc_flag_unknown_warning_option=yes
19903 else case e in #(
19904 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19905 esac
19906 fi
19907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19908 esac
19909 fi
19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19911 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19913 CFLAGS="$xorg_testset_save_CFLAGS"
19914 fi
19915
19916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19919 fi
19920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19922 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19923 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19924 then :
19925 printf %s "(cached) " >&6
19926 else case e in #(
19927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19929 int i;
19930 _ACEOF
19931 if ac_fn_c_try_compile "$LINENO"
19932 then :
19933 xorg_cv_cc_flag_unused_command_line_argument=yes
19934 else case e in #(
19935 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19936 esac
19937 fi
19938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19939 esac
19940 fi
19941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19944 CFLAGS="$xorg_testset_save_CFLAGS"
19945 fi
19946
19947 found="no"
19948
19949 if test $found = "no" ; then
19950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19952 fi
19953
19954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19956 fi
19957
19958 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19959
19960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19961 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19962 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19963 if eval test \${$cacheid+y}
19964 then :
19965 printf %s "(cached) " >&6
19966 else case e in #(
19967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19969 int i;
19970 int
19971 main (void)
19972 {
19973
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 if ac_fn_c_try_link "$LINENO"
19979 then :
19980 eval $cacheid=yes
19981 else case e in #(
19982 e) eval $cacheid=no ;;
19983 esac
19984 fi
19985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19986 conftest$ac_exeext conftest.$ac_ext ;;
19987 esac
19988 fi
19989
19990
19991 CFLAGS="$xorg_testset_save_CFLAGS"
19992
19993 eval supported=\$$cacheid
19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19995 printf "%s\n" "$supported" >&6; }
19996 if test "$supported" = "yes" ; then
19997 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19998 found="yes"
19999 fi
20000 fi
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016 xorg_testset_save_CFLAGS="$CFLAGS"
20017
20018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20021 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20022 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20023 then :
20024 printf %s "(cached) " >&6
20025 else case e in #(
20026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028 int i;
20029 _ACEOF
20030 if ac_fn_c_try_compile "$LINENO"
20031 then :
20032 xorg_cv_cc_flag_unknown_warning_option=yes
20033 else case e in #(
20034 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20035 esac
20036 fi
20037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20038 esac
20039 fi
20040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20041 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20043 CFLAGS="$xorg_testset_save_CFLAGS"
20044 fi
20045
20046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20049 fi
20050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20052 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20053 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20054 then :
20055 printf %s "(cached) " >&6
20056 else case e in #(
20057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20059 int i;
20060 _ACEOF
20061 if ac_fn_c_try_compile "$LINENO"
20062 then :
20063 xorg_cv_cc_flag_unused_command_line_argument=yes
20064 else case e in #(
20065 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20066 esac
20067 fi
20068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20069 esac
20070 fi
20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20072 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20074 CFLAGS="$xorg_testset_save_CFLAGS"
20075 fi
20076
20077 found="no"
20078
20079 if test $found = "no" ; then
20080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20082 fi
20083
20084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20086 fi
20087
20088 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
20089
20090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
20091 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
20092 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
20093 if eval test \${$cacheid+y}
20094 then :
20095 printf %s "(cached) " >&6
20096 else case e in #(
20097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20099 int i;
20100 int
20101 main (void)
20102 {
20103
20104 ;
20105 return 0;
20106 }
20107 _ACEOF
20108 if ac_fn_c_try_link "$LINENO"
20109 then :
20110 eval $cacheid=yes
20111 else case e in #(
20112 e) eval $cacheid=no ;;
20113 esac
20114 fi
20115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20116 conftest$ac_exeext conftest.$ac_ext ;;
20117 esac
20118 fi
20119
20120
20121 CFLAGS="$xorg_testset_save_CFLAGS"
20122
20123 eval supported=\$$cacheid
20124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20125 printf "%s\n" "$supported" >&6; }
20126 if test "$supported" = "yes" ; then
20127 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
20128 found="yes"
20129 fi
20130 fi
20131
20132
20133 fi
20134
20135
20136
20137
20138
20139
20140
20141 CWARNFLAGS="$BASE_CFLAGS"
20142 if test "x$GCC" = xyes ; then
20143 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
20144 fi
20145
20146
20147
20148
20149
20150
20151
20152
20153 # Check whether --enable-strict-compilation was given.
20154 if test ${enable_strict_compilation+y}
20155 then :
20156 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20157 else case e in #(
20158 e) STRICT_COMPILE=no ;;
20159 esac
20160 fi
20161
20162
20163
20164
20165
20166
20167 STRICT_CFLAGS=""
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181 xorg_testset_save_CFLAGS="$CFLAGS"
20182
20183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20188 then :
20189 printf %s "(cached) " >&6
20190 else case e in #(
20191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20192 /* end confdefs.h. */
20193 int i;
20194 _ACEOF
20195 if ac_fn_c_try_compile "$LINENO"
20196 then :
20197 xorg_cv_cc_flag_unknown_warning_option=yes
20198 else case e in #(
20199 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20200 esac
20201 fi
20202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20203 esac
20204 fi
20205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20208 CFLAGS="$xorg_testset_save_CFLAGS"
20209 fi
20210
20211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20214 fi
20215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20219 then :
20220 printf %s "(cached) " >&6
20221 else case e in #(
20222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223 /* end confdefs.h. */
20224 int i;
20225 _ACEOF
20226 if ac_fn_c_try_compile "$LINENO"
20227 then :
20228 xorg_cv_cc_flag_unused_command_line_argument=yes
20229 else case e in #(
20230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20231 esac
20232 fi
20233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20234 esac
20235 fi
20236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20239 CFLAGS="$xorg_testset_save_CFLAGS"
20240 fi
20241
20242 found="no"
20243
20244 if test $found = "no" ; then
20245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20247 fi
20248
20249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20251 fi
20252
20253 CFLAGS="$CFLAGS -pedantic"
20254
20255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
20256 printf %s "checking if $CC supports -pedantic... " >&6; }
20257 cacheid=xorg_cv_cc_flag__pedantic
20258 if eval test \${$cacheid+y}
20259 then :
20260 printf %s "(cached) " >&6
20261 else case e in #(
20262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20264 int i;
20265 int
20266 main (void)
20267 {
20268
20269 ;
20270 return 0;
20271 }
20272 _ACEOF
20273 if ac_fn_c_try_link "$LINENO"
20274 then :
20275 eval $cacheid=yes
20276 else case e in #(
20277 e) eval $cacheid=no ;;
20278 esac
20279 fi
20280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20281 conftest$ac_exeext conftest.$ac_ext ;;
20282 esac
20283 fi
20284
20285
20286 CFLAGS="$xorg_testset_save_CFLAGS"
20287
20288 eval supported=\$$cacheid
20289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20290 printf "%s\n" "$supported" >&6; }
20291 if test "$supported" = "yes" ; then
20292 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
20293 found="yes"
20294 fi
20295 fi
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311 xorg_testset_save_CFLAGS="$CFLAGS"
20312
20313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20318 then :
20319 printf %s "(cached) " >&6
20320 else case e in #(
20321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h. */
20323 int i;
20324 _ACEOF
20325 if ac_fn_c_try_compile "$LINENO"
20326 then :
20327 xorg_cv_cc_flag_unknown_warning_option=yes
20328 else case e in #(
20329 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20330 esac
20331 fi
20332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20333 esac
20334 fi
20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20338 CFLAGS="$xorg_testset_save_CFLAGS"
20339 fi
20340
20341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20344 fi
20345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20349 then :
20350 printf %s "(cached) " >&6
20351 else case e in #(
20352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20354 int i;
20355 _ACEOF
20356 if ac_fn_c_try_compile "$LINENO"
20357 then :
20358 xorg_cv_cc_flag_unused_command_line_argument=yes
20359 else case e in #(
20360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20361 esac
20362 fi
20363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20364 esac
20365 fi
20366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20369 CFLAGS="$xorg_testset_save_CFLAGS"
20370 fi
20371
20372 found="no"
20373
20374 if test $found = "no" ; then
20375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20377 fi
20378
20379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20381 fi
20382
20383 CFLAGS="$CFLAGS -Werror"
20384
20385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20386 printf %s "checking if $CC supports -Werror... " >&6; }
20387 cacheid=xorg_cv_cc_flag__Werror
20388 if eval test \${$cacheid+y}
20389 then :
20390 printf %s "(cached) " >&6
20391 else case e in #(
20392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393 /* end confdefs.h. */
20394 int i;
20395 int
20396 main (void)
20397 {
20398
20399 ;
20400 return 0;
20401 }
20402 _ACEOF
20403 if ac_fn_c_try_link "$LINENO"
20404 then :
20405 eval $cacheid=yes
20406 else case e in #(
20407 e) eval $cacheid=no ;;
20408 esac
20409 fi
20410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20411 conftest$ac_exeext conftest.$ac_ext ;;
20412 esac
20413 fi
20414
20415
20416 CFLAGS="$xorg_testset_save_CFLAGS"
20417
20418 eval supported=\$$cacheid
20419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20420 printf "%s\n" "$supported" >&6; }
20421 if test "$supported" = "yes" ; then
20422 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20423 found="yes"
20424 fi
20425 fi
20426
20427 if test $found = "no" ; then
20428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20430 fi
20431
20432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20434 fi
20435
20436 CFLAGS="$CFLAGS -errwarn"
20437
20438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20439 printf %s "checking if $CC supports -errwarn... " >&6; }
20440 cacheid=xorg_cv_cc_flag__errwarn
20441 if eval test \${$cacheid+y}
20442 then :
20443 printf %s "(cached) " >&6
20444 else case e in #(
20445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446 /* end confdefs.h. */
20447 int i;
20448 int
20449 main (void)
20450 {
20451
20452 ;
20453 return 0;
20454 }
20455 _ACEOF
20456 if ac_fn_c_try_link "$LINENO"
20457 then :
20458 eval $cacheid=yes
20459 else case e in #(
20460 e) eval $cacheid=no ;;
20461 esac
20462 fi
20463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20464 conftest$ac_exeext conftest.$ac_ext ;;
20465 esac
20466 fi
20467
20468
20469 CFLAGS="$xorg_testset_save_CFLAGS"
20470
20471 eval supported=\$$cacheid
20472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20473 printf "%s\n" "$supported" >&6; }
20474 if test "$supported" = "yes" ; then
20475 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20476 found="yes"
20477 fi
20478 fi
20479
20480
20481
20482 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20483 # activate it with -Werror, so we add it here explicitly.
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497 xorg_testset_save_CFLAGS="$CFLAGS"
20498
20499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20502 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20503 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20504 then :
20505 printf %s "(cached) " >&6
20506 else case e in #(
20507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20509 int i;
20510 _ACEOF
20511 if ac_fn_c_try_compile "$LINENO"
20512 then :
20513 xorg_cv_cc_flag_unknown_warning_option=yes
20514 else case e in #(
20515 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20516 esac
20517 fi
20518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20519 esac
20520 fi
20521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20524 CFLAGS="$xorg_testset_save_CFLAGS"
20525 fi
20526
20527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20530 fi
20531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20535 then :
20536 printf %s "(cached) " >&6
20537 else case e in #(
20538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539 /* end confdefs.h. */
20540 int i;
20541 _ACEOF
20542 if ac_fn_c_try_compile "$LINENO"
20543 then :
20544 xorg_cv_cc_flag_unused_command_line_argument=yes
20545 else case e in #(
20546 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20547 esac
20548 fi
20549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20550 esac
20551 fi
20552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20555 CFLAGS="$xorg_testset_save_CFLAGS"
20556 fi
20557
20558 found="no"
20559
20560 if test $found = "no" ; then
20561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20563 fi
20564
20565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20567 fi
20568
20569 CFLAGS="$CFLAGS -Werror=attributes"
20570
20571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20572 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20573 cacheid=xorg_cv_cc_flag__Werror_attributes
20574 if eval test \${$cacheid+y}
20575 then :
20576 printf %s "(cached) " >&6
20577 else case e in #(
20578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20580 int i;
20581 int
20582 main (void)
20583 {
20584
20585 ;
20586 return 0;
20587 }
20588 _ACEOF
20589 if ac_fn_c_try_link "$LINENO"
20590 then :
20591 eval $cacheid=yes
20592 else case e in #(
20593 e) eval $cacheid=no ;;
20594 esac
20595 fi
20596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20597 conftest$ac_exeext conftest.$ac_ext ;;
20598 esac
20599 fi
20600
20601
20602 CFLAGS="$xorg_testset_save_CFLAGS"
20603
20604 eval supported=\$$cacheid
20605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20606 printf "%s\n" "$supported" >&6; }
20607 if test "$supported" = "yes" ; then
20608 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20609 found="yes"
20610 fi
20611 fi
20612
20613
20614
20615 if test "x$STRICT_COMPILE" = "xyes"; then
20616 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20617 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20618 fi
20619
20620
20621
20622
20623
20624
20625
20626
20627 cat >>confdefs.h <<_ACEOF
20628 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20629 _ACEOF
20630
20631 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20632 if test "x$PVM" = "x"; then
20633 PVM="0"
20634 fi
20635
20636 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20637
20638 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20639 if test "x$PVP" = "x"; then
20640 PVP="0"
20641 fi
20642
20643 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20644
20645
20646
20647 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20648 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20649 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20650 touch \$(top_srcdir)/ChangeLog; \
20651 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20652
20653
20654
20655
20656 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20657 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20658 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20659 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20660 touch \$(top_srcdir)/INSTALL; \
20661 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20662
20663
20664
20665
20666
20667
20668 case $host_os in
20669 solaris*)
20670 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20671 # check for a man page file found in later versions that use
20672 # traditional section numbers instead
20673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20674 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20675 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20676 then :
20677 printf %s "(cached) " >&6
20678 else case e in #(
20679 e) test "$cross_compiling" = yes &&
20680 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20681 if test -r "/usr/share/man/man7/attributes.7"; then
20682 ac_cv_file__usr_share_man_man7_attributes_7=yes
20683 else
20684 ac_cv_file__usr_share_man_man7_attributes_7=no
20685 fi ;;
20686 esac
20687 fi
20688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20689 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20690 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20691 then :
20692 SYSV_MAN_SECTIONS=false
20693 else case e in #(
20694 e) SYSV_MAN_SECTIONS=true ;;
20695 esac
20696 fi
20697
20698 ;;
20699 *) SYSV_MAN_SECTIONS=false ;;
20700 esac
20701
20702 if test x$APP_MAN_SUFFIX = x ; then
20703 APP_MAN_SUFFIX=1
20704 fi
20705 if test x$APP_MAN_DIR = x ; then
20706 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20707 fi
20708
20709 if test x$LIB_MAN_SUFFIX = x ; then
20710 LIB_MAN_SUFFIX=3
20711 fi
20712 if test x$LIB_MAN_DIR = x ; then
20713 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20714 fi
20715
20716 if test x$FILE_MAN_SUFFIX = x ; then
20717 case $SYSV_MAN_SECTIONS in
20718 true) FILE_MAN_SUFFIX=4 ;;
20719 *) FILE_MAN_SUFFIX=5 ;;
20720 esac
20721 fi
20722 if test x$FILE_MAN_DIR = x ; then
20723 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20724 fi
20725
20726 if test x$MISC_MAN_SUFFIX = x ; then
20727 case $SYSV_MAN_SECTIONS in
20728 true) MISC_MAN_SUFFIX=5 ;;
20729 *) MISC_MAN_SUFFIX=7 ;;
20730 esac
20731 fi
20732 if test x$MISC_MAN_DIR = x ; then
20733 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20734 fi
20735
20736 if test x$DRIVER_MAN_SUFFIX = x ; then
20737 case $SYSV_MAN_SECTIONS in
20738 true) DRIVER_MAN_SUFFIX=7 ;;
20739 *) DRIVER_MAN_SUFFIX=4 ;;
20740 esac
20741 fi
20742 if test x$DRIVER_MAN_DIR = x ; then
20743 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20744 fi
20745
20746 if test x$ADMIN_MAN_SUFFIX = x ; then
20747 case $SYSV_MAN_SECTIONS in
20748 true) ADMIN_MAN_SUFFIX=1m ;;
20749 *) ADMIN_MAN_SUFFIX=8 ;;
20750 esac
20751 fi
20752 if test x$ADMIN_MAN_DIR = x ; then
20753 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20754 fi
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770 XORG_MAN_PAGE="X Version 11"
20771
20772 MAN_SUBSTS="\
20773 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20774 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20775 -e 's|__xservername__|Xorg|g' \
20776 -e 's|__xconfigfile__|xorg.conf|g' \
20777 -e 's|__projectroot__|\$(prefix)|g' \
20778 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20779 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20780 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20781 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20782 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20783 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20784 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20785
20786
20787
20788
20789 AM_DEFAULT_VERBOSITY=0
20790
20791
20792
20793 # Checks for programs.
20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20795 printf %s "checking whether ln -s works... " >&6; }
20796 LN_S=$as_ln_s
20797 if test "$LN_S" = "ln -s"; then
20798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20799 printf "%s\n" "yes" >&6; }
20800 else
20801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20802 printf "%s\n" "no, using $LN_S" >&6; }
20803 fi
20804
20805
20806 # Checks for library functions.
20807 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20808 if test "x$ac_cv_func_explicit_bzero" = xyes
20809 then :
20810 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20811
20812 fi
20813 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
20814 if test "x$ac_cv_func_explicit_memset" = xyes
20815 then :
20816 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
20817
20818 fi
20819 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
20820 if test "x$ac_cv_func_pathconf" = xyes
20821 then :
20822 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
20823
20824 fi
20825
20826
20827 # Obtain compiler/linker options for dependencies
20828
20829 pkg_failed=no
20830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
20831 printf %s "checking for XAU... " >&6; }
20832
20833 if test -n "$XAU_CFLAGS"; then
20834 pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
20835 elif test -n "$PKG_CONFIG"; then
20836 if test -n "$PKG_CONFIG" && \
20837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20838 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20839 ac_status=$?
20840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20841 test $ac_status = 0; }; then
20842 pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20843 test "x$?" != "x0" && pkg_failed=yes
20844 else
20845 pkg_failed=yes
20846 fi
20847 else
20848 pkg_failed=untried
20849 fi
20850 if test -n "$XAU_LIBS"; then
20851 pkg_cv_XAU_LIBS="$XAU_LIBS"
20852 elif test -n "$PKG_CONFIG"; then
20853 if test -n "$PKG_CONFIG" && \
20854 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20855 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20856 ac_status=$?
20857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20858 test $ac_status = 0; }; then
20859 pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20860 test "x$?" != "x0" && pkg_failed=yes
20861 else
20862 pkg_failed=yes
20863 fi
20864 else
20865 pkg_failed=untried
20866 fi
20867
20868
20869
20870 if test $pkg_failed = yes; then
20871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20872 printf "%s\n" "no" >&6; }
20873
20874 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20875 _pkg_short_errors_supported=yes
20876 else
20877 _pkg_short_errors_supported=no
20878 fi
20879 if test $_pkg_short_errors_supported = yes; then
20880 XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
20881 else
20882 XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
20883 fi
20884 # Put the nasty error message in config.log where it belongs
20885 echo "$XAU_PKG_ERRORS" >&5
20886
20887 as_fn_error $? "Package requirements (xproto) were not met:
20888
20889 $XAU_PKG_ERRORS
20890
20891 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20892 installed software in a non-standard prefix.
20893
20894 Alternatively, you may set the environment variables XAU_CFLAGS
20895 and XAU_LIBS to avoid the need to call pkg-config.
20896 See the pkg-config man page for more details." "$LINENO" 5
20897 elif test $pkg_failed = untried; then
20898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20899 printf "%s\n" "no" >&6; }
20900 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20901 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20902 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20903 is in your PATH or set the PKG_CONFIG environment variable to the full
20904 path to pkg-config.
20905
20906 Alternatively, you may set the environment variables XAU_CFLAGS
20907 and XAU_LIBS to avoid the need to call pkg-config.
20908 See the pkg-config man page for more details.
20909
20910 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20911 See 'config.log' for more details" "$LINENO" 5; }
20912 else
20913 XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
20914 XAU_LIBS=$pkg_cv_XAU_LIBS
20915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20916 printf "%s\n" "yes" >&6; }
20917
20918 fi
20919
20920 # Checks for typedefs, structures, and compiler characteristics.
20921 # Check whether --enable-largefile was given.
20922 if test ${enable_largefile+y}
20923 then :
20924 enableval=$enable_largefile;
20925 fi
20926 if test "$enable_largefile,$enable_year2038" != no,no
20927 then :
20928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20929 printf %s "checking for $CC option to enable large file support... " >&6; }
20930 if test ${ac_cv_sys_largefile_opts+y}
20931 then :
20932 printf %s "(cached) " >&6
20933 else case e in #(
20934 e) ac_save_CC="$CC"
20935 ac_opt_found=no
20936 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20937 if test x"$ac_opt" != x"none needed"
20938 then :
20939 CC="$ac_save_CC $ac_opt"
20940 fi
20941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20943 #include <sys/types.h>
20944 #ifndef FTYPE
20945 # define FTYPE off_t
20946 #endif
20947 /* Check that FTYPE can represent 2**63 - 1 correctly.
20948 We can't simply define LARGE_FTYPE to be 9223372036854775807,
20949 since some C++ compilers masquerading as C compilers
20950 incorrectly reject 9223372036854775807. */
20951 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20952 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20953 && LARGE_FTYPE % 2147483647 == 1)
20954 ? 1 : -1];
20955 int
20956 main (void)
20957 {
20958
20959 ;
20960 return 0;
20961 }
20962 _ACEOF
20963 if ac_fn_c_try_compile "$LINENO"
20964 then :
20965 if test x"$ac_opt" = x"none needed"
20966 then :
20967 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20968 CC="$CC -DFTYPE=ino_t"
20969 if ac_fn_c_try_compile "$LINENO"
20970 then :
20971
20972 else case e in #(
20973 e) CC="$CC -D_FILE_OFFSET_BITS=64"
20974 if ac_fn_c_try_compile "$LINENO"
20975 then :
20976 ac_opt='-D_FILE_OFFSET_BITS=64'
20977 fi
20978 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20979 esac
20980 fi
20981 rm -f core conftest.err conftest.$ac_objext conftest.beam
20982 fi
20983 ac_cv_sys_largefile_opts=$ac_opt
20984 ac_opt_found=yes
20985 fi
20986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20987 test $ac_opt_found = no || break
20988 done
20989 CC="$ac_save_CC"
20990
20991 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20992 esac
20993 fi
20994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20995 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20996
20997 ac_have_largefile=yes
20998 case $ac_cv_sys_largefile_opts in #(
20999 "none needed") :
21000 ;; #(
21001 "supported through gnulib") :
21002 ;; #(
21003 "support not detected") :
21004 ac_have_largefile=no ;; #(
21005 "-D_FILE_OFFSET_BITS=64") :
21006
21007 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
21008 ;; #(
21009 "-D_LARGE_FILES=1") :
21010
21011 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
21012 ;; #(
21013 "-n32") :
21014 CC="$CC -n32" ;; #(
21015 *) :
21016 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
21017 esac
21018
21019 if test "$enable_year2038" != no
21020 then :
21021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
21022 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
21023 if test ${ac_cv_sys_year2038_opts+y}
21024 then :
21025 printf %s "(cached) " >&6
21026 else case e in #(
21027 e) ac_save_CPPFLAGS="$CPPFLAGS"
21028 ac_opt_found=no
21029 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
21030 if test x"$ac_opt" != x"none needed"
21031 then :
21032 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
21033 fi
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h. */
21036
21037 #include <time.h>
21038 /* Check that time_t can represent 2**32 - 1 correctly. */
21039 #define LARGE_TIME_T \\
21040 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
21041 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
21042 && LARGE_TIME_T % 65537 == 0)
21043 ? 1 : -1];
21044
21045 int
21046 main (void)
21047 {
21048
21049 ;
21050 return 0;
21051 }
21052 _ACEOF
21053 if ac_fn_c_try_compile "$LINENO"
21054 then :
21055 ac_cv_sys_year2038_opts="$ac_opt"
21056 ac_opt_found=yes
21057 fi
21058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21059 test $ac_opt_found = no || break
21060 done
21061 CPPFLAGS="$ac_save_CPPFLAGS"
21062 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
21063 esac
21064 fi
21065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
21066 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
21067
21068 ac_have_year2038=yes
21069 case $ac_cv_sys_year2038_opts in #(
21070 "none needed") :
21071 ;; #(
21072 "support not detected") :
21073 ac_have_year2038=no ;; #(
21074 "-D_TIME_BITS=64") :
21075
21076 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
21077 ;; #(
21078 "-D__MINGW_USE_VC2005_COMPAT") :
21079
21080 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
21081 ;; #(
21082 "-U_USE_32_BIT_TIME_T"*) :
21083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21084 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21085 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
21086 will stop working after mid-January 2038. Remove
21087 _USE_32BIT_TIME_T from the compiler flags.
21088 See 'config.log' for more details" "$LINENO" 5; } ;; #(
21089 *) :
21090 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
21091 esac
21092
21093 fi
21094
21095 fi
21096
21097 # Check whether --enable-xthreads was given.
21098 if test ${enable_xthreads+y}
21099 then :
21100 enableval=$enable_xthreads; xthreads=$enableval
21101 else case e in #(
21102 e) xthreads=yes ;;
21103 esac
21104 fi
21105
21106
21107 if test "x$xthreads" = "xyes" ; then
21108
21109 printf "%s\n" "#define XTHREADS 1" >>confdefs.h
21110
21111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5
21112 printf %s "checking for gethostbyname_r in -lc... " >&6; }
21113 if test ${ac_cv_lib_c_gethostbyname_r+y}
21114 then :
21115 printf %s "(cached) " >&6
21116 else case e in #(
21117 e) ac_check_lib_save_LIBS=$LIBS
21118 LIBS="-lc $LIBS"
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21121
21122 /* Override any GCC internal prototype to avoid an error.
21123 Use char because int might match the return type of a GCC
21124 builtin and then its argument prototype would still apply.
21125 The 'extern "C"' is for builds by C++ compilers;
21126 although this is not generally supported in C code supporting it here
21127 has little cost and some practical benefit (sr 110532). */
21128 #ifdef __cplusplus
21129 extern "C"
21130 #endif
21131 char gethostbyname_r (void);
21132 int
21133 main (void)
21134 {
21135 return gethostbyname_r ();
21136 ;
21137 return 0;
21138 }
21139 _ACEOF
21140 if ac_fn_c_try_link "$LINENO"
21141 then :
21142 ac_cv_lib_c_gethostbyname_r=yes
21143 else case e in #(
21144 e) ac_cv_lib_c_gethostbyname_r=no ;;
21145 esac
21146 fi
21147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21148 conftest$ac_exeext conftest.$ac_ext
21149 LIBS=$ac_check_lib_save_LIBS ;;
21150 esac
21151 fi
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5
21153 printf "%s\n" "$ac_cv_lib_c_gethostbyname_r" >&6; }
21154 if test "x$ac_cv_lib_c_gethostbyname_r" = xyes
21155 then :
21156 mtsafe=yes
21157 fi
21158
21159 if test "x$mtsafe" = "x" ; then
21160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
21161 printf %s "checking for gethostbyname_r in -lnsl... " >&6; }
21162 if test ${ac_cv_lib_nsl_gethostbyname_r+y}
21163 then :
21164 printf %s "(cached) " >&6
21165 else case e in #(
21166 e) ac_check_lib_save_LIBS=$LIBS
21167 LIBS="-lnsl $LIBS"
21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h. */
21170
21171 /* Override any GCC internal prototype to avoid an error.
21172 Use char because int might match the return type of a GCC
21173 builtin and then its argument prototype would still apply.
21174 The 'extern "C"' is for builds by C++ compilers;
21175 although this is not generally supported in C code supporting it here
21176 has little cost and some practical benefit (sr 110532). */
21177 #ifdef __cplusplus
21178 extern "C"
21179 #endif
21180 char gethostbyname_r (void);
21181 int
21182 main (void)
21183 {
21184 return gethostbyname_r ();
21185 ;
21186 return 0;
21187 }
21188 _ACEOF
21189 if ac_fn_c_try_link "$LINENO"
21190 then :
21191 ac_cv_lib_nsl_gethostbyname_r=yes
21192 else case e in #(
21193 e) ac_cv_lib_nsl_gethostbyname_r=no ;;
21194 esac
21195 fi
21196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21197 conftest$ac_exeext conftest.$ac_ext
21198 LIBS=$ac_check_lib_save_LIBS ;;
21199 esac
21200 fi
21201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
21202 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
21203 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes
21204 then :
21205 mtsafe=yes
21206 fi
21207
21208 fi
21209 if test "x$mtsafe" = "xyes" ; then
21210
21211 printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
21212
21213 fi
21214
21215 # XXX incomplete, please fill this in
21216 case $host_os in
21217 solaris*)
21218 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
21219 esac
21220 XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
21221 fi
21222
21223 # Allow checking code with lint, sparse, etc.
21224
21225
21226
21227
21228
21229 # Check whether --with-lint was given.
21230 if test ${with_lint+y}
21231 then :
21232 withval=$with_lint; use_lint=$withval
21233 else case e in #(
21234 e) use_lint=no ;;
21235 esac
21236 fi
21237
21238
21239 # Obtain platform specific info like program name and options
21240 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
21241 case $host_os in
21242 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21243 lint_name=splint
21244 lint_options="-badflag"
21245 ;;
21246 *freebsd* | *netbsd*)
21247 lint_name=lint
21248 lint_options="-u -b"
21249 ;;
21250 *solaris*)
21251 lint_name=lint
21252 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21253 ;;
21254 esac
21255
21256 # Test for the presence of the program (either guessed by the code or spelled out by the user)
21257 if test "x$use_lint" = x"yes" ; then
21258 # Extract the first word of "$lint_name", so it can be a program name with args.
21259 set dummy $lint_name; ac_word=$2
21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21261 printf %s "checking for $ac_word... " >&6; }
21262 if test ${ac_cv_path_LINT+y}
21263 then :
21264 printf %s "(cached) " >&6
21265 else case e in #(
21266 e) case $LINT in
21267 [\\/]* | ?:[\\/]*)
21268 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21269 ;;
21270 *)
21271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21272 for as_dir in $PATH
21273 do
21274 IFS=$as_save_IFS
21275 case $as_dir in #(((
21276 '') as_dir=./ ;;
21277 */) ;;
21278 *) as_dir=$as_dir/ ;;
21279 esac
21280 for ac_exec_ext in '' $ac_executable_extensions; do
21281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21282 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
21283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21284 break 2
21285 fi
21286 done
21287 done
21288 IFS=$as_save_IFS
21289
21290 ;;
21291 esac ;;
21292 esac
21293 fi
21294 LINT=$ac_cv_path_LINT
21295 if test -n "$LINT"; then
21296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21297 printf "%s\n" "$LINT" >&6; }
21298 else
21299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21300 printf "%s\n" "no" >&6; }
21301 fi
21302
21303
21304 if test "x$LINT" = "x"; then
21305 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21306 fi
21307 elif test "x$use_lint" = x"no" ; then
21308 if test "x$LINT" != "x"; then
21309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21310 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21311 fi
21312 else
21313 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21314 fi
21315
21316 # User supplied flags override default flags
21317 if test "x$LINT_FLAGS" != "x"; then
21318 lint_options=$LINT_FLAGS
21319 fi
21320
21321 LINT_FLAGS=$lint_options
21322
21323 if test "x$LINT" != x; then
21324 LINT_TRUE=
21325 LINT_FALSE='#'
21326 else
21327 LINT_TRUE='#'
21328 LINT_FALSE=
21329 fi
21330
21331
21332
21333
21334
21335 # Check whether --enable-lint-library was given.
21336 if test ${enable_lint_library+y}
21337 then :
21338 enableval=$enable_lint_library; make_lint_lib=$enableval
21339 else case e in #(
21340 e) make_lint_lib=no ;;
21341 esac
21342 fi
21343
21344
21345 if test "x$make_lint_lib" = x"yes" ; then
21346 LINTLIB=llib-lXau.ln
21347 if test "x$LINT" = "x"; then
21348 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21349 fi
21350 elif test "x$make_lint_lib" != x"no" ; then
21351 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21352 fi
21353
21354
21355 if test x$make_lint_lib != xno; then
21356 MAKE_LINT_LIB_TRUE=
21357 MAKE_LINT_LIB_FALSE='#'
21358 else
21359 MAKE_LINT_LIB_TRUE='#'
21360 MAKE_LINT_LIB_FALSE=
21361 fi
21362
21363
21364
21365 LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
21366
21367 ac_config_files="$ac_config_files Makefile man/Makefile xau.pc"
21368
21369 cat >confcache <<\_ACEOF
21370 # This file is a shell script that caches the results of configure
21371 # tests run on this system so they can be shared between configure
21372 # scripts and configure runs, see configure's option --config-cache.
21373 # It is not useful on other systems. If it contains results you don't
21374 # want to keep, you may remove or edit it.
21375 #
21376 # config.status only pays attention to the cache file if you give it
21377 # the --recheck option to rerun configure.
21378 #
21379 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21380 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21381 # following values.
21382
21383 _ACEOF
21384
21385 # The following way of writing the cache mishandles newlines in values,
21386 # but we know of no workaround that is simple, portable, and efficient.
21387 # So, we kill variables containing newlines.
21388 # Ultrix sh set writes to stderr and can't be redirected directly,
21389 # and sets the high bit in the cache file unless we assign to the vars.
21390 (
21391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21392 eval ac_val=\$$ac_var
21393 case $ac_val in #(
21394 *${as_nl}*)
21395 case $ac_var in #(
21396 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21397 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21398 esac
21399 case $ac_var in #(
21400 _ | IFS | as_nl) ;; #(
21401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21402 *) { eval $ac_var=; unset $ac_var;} ;;
21403 esac ;;
21404 esac
21405 done
21406
21407 (set) 2>&1 |
21408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21409 *${as_nl}ac_space=\ *)
21410 # 'set' does not quote correctly, so add quotes: double-quote
21411 # substitution turns \\\\ into \\, and sed turns \\ into \.
21412 sed -n \
21413 "s/'/'\\\\''/g;
21414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21415 ;; #(
21416 *)
21417 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21419 ;;
21420 esac |
21421 sort
21422 ) |
21423 sed '
21424 /^ac_cv_env_/b end
21425 t clear
21426 :clear
21427 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21428 t end
21429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21430 :end' >>confcache
21431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21432 if test -w "$cache_file"; then
21433 if test "x$cache_file" != "x/dev/null"; then
21434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21435 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21436 if test ! -f "$cache_file" || test -h "$cache_file"; then
21437 cat confcache >"$cache_file"
21438 else
21439 case $cache_file in #(
21440 */* | ?:*)
21441 mv -f confcache "$cache_file"$$ &&
21442 mv -f "$cache_file"$$ "$cache_file" ;; #(
21443 *)
21444 mv -f confcache "$cache_file" ;;
21445 esac
21446 fi
21447 fi
21448 else
21449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21450 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21451 fi
21452 fi
21453 rm -f confcache
21454
21455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21456 # Let make expand exec_prefix.
21457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21458
21459 DEFS=-DHAVE_CONFIG_H
21460
21461 ac_libobjs=
21462 ac_ltlibobjs=
21463 U=
21464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21465 # 1. Remove the extension, and $U if already installed.
21466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21467 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21469 # will be set to the directory where LIBOBJS objects are built.
21470 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21471 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21472 done
21473 LIBOBJS=$ac_libobjs
21474
21475 LTLIBOBJS=$ac_ltlibobjs
21476
21477
21478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21479 printf %s "checking that generated files are newer than configure... " >&6; }
21480 if test -n "$am_sleep_pid"; then
21481 # Hide warnings about reused PIDs.
21482 wait $am_sleep_pid 2>/dev/null
21483 fi
21484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21485 printf "%s\n" "done" >&6; }
21486 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21487 as_fn_error $? "conditional \"AMDEP\" was never defined.
21488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21489 fi
21490 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21491 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21493 fi
21494 case $enable_silent_rules in # (((
21495 yes) AM_DEFAULT_VERBOSITY=0;;
21496 no) AM_DEFAULT_VERBOSITY=1;;
21497 esac
21498 if test $am_cv_make_support_nested_variables = yes; then
21499 AM_V='$(V)'
21500 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21501 else
21502 AM_V=$AM_DEFAULT_VERBOSITY
21503 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21504 fi
21505
21506 if test -n "$EXEEXT"; then
21507 am__EXEEXT_TRUE=
21508 am__EXEEXT_FALSE='#'
21509 else
21510 am__EXEEXT_TRUE='#'
21511 am__EXEEXT_FALSE=
21512 fi
21513
21514 # Check whether --enable-year2038 was given.
21515 if test ${enable_year2038+y}
21516 then :
21517 enableval=$enable_year2038;
21518 fi
21519
21520 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21521 as_fn_error $? "conditional \"LINT\" was never defined.
21522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21523 fi
21524 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21525 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21527 fi
21528
21529 : "${CONFIG_STATUS=./config.status}"
21530 ac_write_fail=0
21531 ac_clean_files_save=$ac_clean_files
21532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21534 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21535 as_write_fail=0
21536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21537 #! $SHELL
21538 # Generated by $as_me.
21539 # Run this file to recreate the current configuration.
21540 # Compiler output produced by configure, useful for debugging
21541 # configure, is in config.log if it exists.
21542
21543 debug=false
21544 ac_cs_recheck=false
21545 ac_cs_silent=false
21546
21547 SHELL=\${CONFIG_SHELL-$SHELL}
21548 export SHELL
21549 _ASEOF
21550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21551 ## -------------------- ##
21552 ## M4sh Initialization. ##
21553 ## -------------------- ##
21554
21555 # Be more Bourne compatible
21556 DUALCASE=1; export DUALCASE # for MKS sh
21557 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21558 then :
21559 emulate sh
21560 NULLCMD=:
21561 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21562 # is contrary to our usage. Disable this feature.
21563 alias -g '${1+"$@"}'='"$@"'
21564 setopt NO_GLOB_SUBST
21565 else case e in #(
21566 e) case `(set -o) 2>/dev/null` in #(
21567 *posix*) :
21568 set -o posix ;; #(
21569 *) :
21570 ;;
21571 esac ;;
21572 esac
21573 fi
21574
21575
21576
21577 # Reset variables that may have inherited troublesome values from
21578 # the environment.
21579
21580 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21581 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21582 # side effect of setting IFS to empty, thus disabling word splitting.)
21583 # Quoting is to prevent editors from complaining about space-tab.
21584 as_nl='
21585 '
21586 export as_nl
21587 IFS=" "" $as_nl"
21588
21589 PS1='$ '
21590 PS2='> '
21591 PS4='+ '
21592
21593 # Ensure predictable behavior from utilities with locale-dependent output.
21594 LC_ALL=C
21595 export LC_ALL
21596 LANGUAGE=C
21597 export LANGUAGE
21598
21599 # We cannot yet rely on "unset" to work, but we need these variables
21600 # to be unset--not just set to an empty or harmless value--now, to
21601 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21602 # also avoids known problems related to "unset" and subshell syntax
21603 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21604 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21605 do eval test \${$as_var+y} \
21606 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21607 done
21608
21609 # Ensure that fds 0, 1, and 2 are open.
21610 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21611 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21612 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21613
21614 # The user is always right.
21615 if ${PATH_SEPARATOR+false} :; then
21616 PATH_SEPARATOR=:
21617 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21618 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21619 PATH_SEPARATOR=';'
21620 }
21621 fi
21622
21623
21624 # Find who we are. Look in the path if we contain no directory separator.
21625 as_myself=
21626 case $0 in #((
21627 *[\\/]* ) as_myself=$0 ;;
21628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629 for as_dir in $PATH
21630 do
21631 IFS=$as_save_IFS
21632 case $as_dir in #(((
21633 '') as_dir=./ ;;
21634 */) ;;
21635 *) as_dir=$as_dir/ ;;
21636 esac
21637 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21638 done
21639 IFS=$as_save_IFS
21640
21641 ;;
21642 esac
21643 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21644 # in which case we are not to be found in the path.
21645 if test "x$as_myself" = x; then
21646 as_myself=$0
21647 fi
21648 if test ! -f "$as_myself"; then
21649 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21650 exit 1
21651 fi
21652
21653
21654
21655 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21656 # ----------------------------------------
21657 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21658 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21659 # script with STATUS, using 1 if that was 0.
21660 as_fn_error ()
21661 {
21662 as_status=$1; test $as_status -eq 0 && as_status=1
21663 if test "$4"; then
21664 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21666 fi
21667 printf "%s\n" "$as_me: error: $2" >&2
21668 as_fn_exit $as_status
21669 } # as_fn_error
21670
21671
21672 # as_fn_set_status STATUS
21673 # -----------------------
21674 # Set $? to STATUS, without forking.
21675 as_fn_set_status ()
21676 {
21677 return $1
21678 } # as_fn_set_status
21679
21680 # as_fn_exit STATUS
21681 # -----------------
21682 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21683 as_fn_exit ()
21684 {
21685 set +e
21686 as_fn_set_status $1
21687 exit $1
21688 } # as_fn_exit
21689
21690 # as_fn_unset VAR
21691 # ---------------
21692 # Portably unset VAR.
21693 as_fn_unset ()
21694 {
21695 { eval $1=; unset $1;}
21696 }
21697 as_unset=as_fn_unset
21698
21699 # as_fn_append VAR VALUE
21700 # ----------------------
21701 # Append the text in VALUE to the end of the definition contained in VAR. Take
21702 # advantage of any shell optimizations that allow amortized linear growth over
21703 # repeated appends, instead of the typical quadratic growth present in naive
21704 # implementations.
21705 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21706 then :
21707 eval 'as_fn_append ()
21708 {
21709 eval $1+=\$2
21710 }'
21711 else case e in #(
21712 e) as_fn_append ()
21713 {
21714 eval $1=\$$1\$2
21715 } ;;
21716 esac
21717 fi # as_fn_append
21718
21719 # as_fn_arith ARG...
21720 # ------------------
21721 # Perform arithmetic evaluation on the ARGs, and store the result in the
21722 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21723 # must be portable across $(()) and expr.
21724 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21725 then :
21726 eval 'as_fn_arith ()
21727 {
21728 as_val=$(( $* ))
21729 }'
21730 else case e in #(
21731 e) as_fn_arith ()
21732 {
21733 as_val=`expr "$@" || test $? -eq 1`
21734 } ;;
21735 esac
21736 fi # as_fn_arith
21737
21738
21739 if expr a : '\(a\)' >/dev/null 2>&1 &&
21740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21741 as_expr=expr
21742 else
21743 as_expr=false
21744 fi
21745
21746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21747 as_basename=basename
21748 else
21749 as_basename=false
21750 fi
21751
21752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21753 as_dirname=dirname
21754 else
21755 as_dirname=false
21756 fi
21757
21758 as_me=`$as_basename -- "$0" ||
21759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21760 X"$0" : 'X\(//\)$' \| \
21761 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21762 printf "%s\n" X/"$0" |
21763 sed '/^.*\/\([^/][^/]*\)\/*$/{
21764 s//\1/
21765 q
21766 }
21767 /^X\/\(\/\/\)$/{
21768 s//\1/
21769 q
21770 }
21771 /^X\/\(\/\).*/{
21772 s//\1/
21773 q
21774 }
21775 s/.*/./; q'`
21776
21777 # Avoid depending upon Character Ranges.
21778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21781 as_cr_digits='0123456789'
21782 as_cr_alnum=$as_cr_Letters$as_cr_digits
21783
21784
21785 # Determine whether it's possible to make 'echo' print without a newline.
21786 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21787 # for compatibility with existing Makefiles.
21788 ECHO_C= ECHO_N= ECHO_T=
21789 case `echo -n x` in #(((((
21790 -n*)
21791 case `echo 'xy\c'` in
21792 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21793 xy) ECHO_C='\c';;
21794 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21795 ECHO_T=' ';;
21796 esac;;
21797 *)
21798 ECHO_N='-n';;
21799 esac
21800
21801 # For backward compatibility with old third-party macros, we provide
21802 # the shell variables $as_echo and $as_echo_n. New code should use
21803 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21804 as_echo='printf %s\n'
21805 as_echo_n='printf %s'
21806
21807 rm -f conf$$ conf$$.exe conf$$.file
21808 if test -d conf$$.dir; then
21809 rm -f conf$$.dir/conf$$.file
21810 else
21811 rm -f conf$$.dir
21812 mkdir conf$$.dir 2>/dev/null
21813 fi
21814 if (echo >conf$$.file) 2>/dev/null; then
21815 if ln -s conf$$.file conf$$ 2>/dev/null; then
21816 as_ln_s='ln -s'
21817 # ... but there are two gotchas:
21818 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21819 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21820 # In both cases, we have to default to 'cp -pR'.
21821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21822 as_ln_s='cp -pR'
21823 elif ln conf$$.file conf$$ 2>/dev/null; then
21824 as_ln_s=ln
21825 else
21826 as_ln_s='cp -pR'
21827 fi
21828 else
21829 as_ln_s='cp -pR'
21830 fi
21831 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21832 rmdir conf$$.dir 2>/dev/null
21833
21834
21835 # as_fn_mkdir_p
21836 # -------------
21837 # Create "$as_dir" as a directory, including parents if necessary.
21838 as_fn_mkdir_p ()
21839 {
21840
21841 case $as_dir in #(
21842 -*) as_dir=./$as_dir;;
21843 esac
21844 test -d "$as_dir" || eval $as_mkdir_p || {
21845 as_dirs=
21846 while :; do
21847 case $as_dir in #(
21848 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21849 *) as_qdir=$as_dir;;
21850 esac
21851 as_dirs="'$as_qdir' $as_dirs"
21852 as_dir=`$as_dirname -- "$as_dir" ||
21853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21854 X"$as_dir" : 'X\(//\)[^/]' \| \
21855 X"$as_dir" : 'X\(//\)$' \| \
21856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21857 printf "%s\n" X"$as_dir" |
21858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21859 s//\1/
21860 q
21861 }
21862 /^X\(\/\/\)[^/].*/{
21863 s//\1/
21864 q
21865 }
21866 /^X\(\/\/\)$/{
21867 s//\1/
21868 q
21869 }
21870 /^X\(\/\).*/{
21871 s//\1/
21872 q
21873 }
21874 s/.*/./; q'`
21875 test -d "$as_dir" && break
21876 done
21877 test -z "$as_dirs" || eval "mkdir $as_dirs"
21878 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21879
21880
21881 } # as_fn_mkdir_p
21882 if mkdir -p . 2>/dev/null; then
21883 as_mkdir_p='mkdir -p "$as_dir"'
21884 else
21885 test -d ./-p && rmdir ./-p
21886 as_mkdir_p=false
21887 fi
21888
21889
21890 # as_fn_executable_p FILE
21891 # -----------------------
21892 # Test if FILE is an executable regular file.
21893 as_fn_executable_p ()
21894 {
21895 test -f "$1" && test -x "$1"
21896 } # as_fn_executable_p
21897 as_test_x='test -x'
21898 as_executable_p=as_fn_executable_p
21899
21900 # Sed expression to map a string onto a valid CPP name.
21901 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21902 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21903
21904 # Sed expression to map a string onto a valid variable name.
21905 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21906 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21907
21908
21909 exec 6>&1
21910 ## ----------------------------------- ##
21911 ## Main body of $CONFIG_STATUS script. ##
21912 ## ----------------------------------- ##
21913 _ASEOF
21914 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21915
21916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21917 # Save the log message, to keep $0 and so on meaningful, and to
21918 # report actual input values of CONFIG_FILES etc. instead of their
21919 # values after options handling.
21920 ac_log="
21921 This file was extended by libXau $as_me 1.0.12, which was
21922 generated by GNU Autoconf 2.72. Invocation command line was
21923
21924 CONFIG_FILES = $CONFIG_FILES
21925 CONFIG_HEADERS = $CONFIG_HEADERS
21926 CONFIG_LINKS = $CONFIG_LINKS
21927 CONFIG_COMMANDS = $CONFIG_COMMANDS
21928 $ $0 $@
21929
21930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21931 "
21932
21933 _ACEOF
21934
21935 case $ac_config_files in *"
21936 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21937 esac
21938
21939 case $ac_config_headers in *"
21940 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21941 esac
21942
21943
21944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21945 # Files that config.status was made for.
21946 config_files="$ac_config_files"
21947 config_headers="$ac_config_headers"
21948 config_commands="$ac_config_commands"
21949
21950 _ACEOF
21951
21952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21953 ac_cs_usage="\
21954 '$as_me' instantiates files and other configuration actions
21955 from templates according to the current configuration. Unless the files
21956 and actions are specified as TAGs, all are instantiated by default.
21957
21958 Usage: $0 [OPTION]... [TAG]...
21959
21960 -h, --help print this help, then exit
21961 -V, --version print version number and configuration settings, then exit
21962 --config print configuration, then exit
21963 -q, --quiet, --silent
21964 do not print progress messages
21965 -d, --debug don't remove temporary files
21966 --recheck update $as_me by reconfiguring in the same conditions
21967 --file=FILE[:TEMPLATE]
21968 instantiate the configuration file FILE
21969 --header=FILE[:TEMPLATE]
21970 instantiate the configuration header FILE
21971
21972 Configuration files:
21973 $config_files
21974
21975 Configuration headers:
21976 $config_headers
21977
21978 Configuration commands:
21979 $config_commands
21980
21981 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>."
21982
21983 _ACEOF
21984 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21985 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21987 ac_cs_config='$ac_cs_config_escaped'
21988 ac_cs_version="\\
21989 libXau config.status 1.0.12
21990 configured by $0, generated by GNU Autoconf 2.72,
21991 with options \\"\$ac_cs_config\\"
21992
21993 Copyright (C) 2023 Free Software Foundation, Inc.
21994 This config.status script is free software; the Free Software Foundation
21995 gives unlimited permission to copy, distribute and modify it."
21996
21997 ac_pwd='$ac_pwd'
21998 srcdir='$srcdir'
21999 INSTALL='$INSTALL'
22000 MKDIR_P='$MKDIR_P'
22001 AWK='$AWK'
22002 test -n "\$AWK" || AWK=awk
22003 _ACEOF
22004
22005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22006 # The default lists apply if the user does not specify any file.
22007 ac_need_defaults=:
22008 while test $# != 0
22009 do
22010 case $1 in
22011 --*=?*)
22012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22013 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22014 ac_shift=:
22015 ;;
22016 --*=)
22017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22018 ac_optarg=
22019 ac_shift=:
22020 ;;
22021 *)
22022 ac_option=$1
22023 ac_optarg=$2
22024 ac_shift=shift
22025 ;;
22026 esac
22027
22028 case $ac_option in
22029 # Handling of the options.
22030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22031 ac_cs_recheck=: ;;
22032 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22033 printf "%s\n" "$ac_cs_version"; exit ;;
22034 --config | --confi | --conf | --con | --co | --c )
22035 printf "%s\n" "$ac_cs_config"; exit ;;
22036 --debug | --debu | --deb | --de | --d | -d )
22037 debug=: ;;
22038 --file | --fil | --fi | --f )
22039 $ac_shift
22040 case $ac_optarg in
22041 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22042 '') as_fn_error $? "missing file argument" ;;
22043 esac
22044 as_fn_append CONFIG_FILES " '$ac_optarg'"
22045 ac_need_defaults=false;;
22046 --header | --heade | --head | --hea )
22047 $ac_shift
22048 case $ac_optarg in
22049 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22050 esac
22051 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22052 ac_need_defaults=false;;
22053 --he | --h)
22054 # Conflict between --help and --header
22055 as_fn_error $? "ambiguous option: '$1'
22056 Try '$0 --help' for more information.";;
22057 --help | --hel | -h )
22058 printf "%s\n" "$ac_cs_usage"; exit ;;
22059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22060 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22061 ac_cs_silent=: ;;
22062
22063 # This is an error.
22064 -*) as_fn_error $? "unrecognized option: '$1'
22065 Try '$0 --help' for more information." ;;
22066
22067 *) as_fn_append ac_config_targets " $1"
22068 ac_need_defaults=false ;;
22069
22070 esac
22071 shift
22072 done
22073
22074 ac_configure_extra_args=
22075
22076 if $ac_cs_silent; then
22077 exec 6>/dev/null
22078 ac_configure_extra_args="$ac_configure_extra_args --silent"
22079 fi
22080
22081 _ACEOF
22082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22083 if \$ac_cs_recheck; then
22084 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22085 shift
22086 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22087 CONFIG_SHELL='$SHELL'
22088 export CONFIG_SHELL
22089 exec "\$@"
22090 fi
22091
22092 _ACEOF
22093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094 exec 5>>config.log
22095 {
22096 echo
22097 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22098 ## Running $as_me. ##
22099 _ASBOX
22100 printf "%s\n" "$ac_log"
22101 } >&5
22102
22103 _ACEOF
22104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22105 #
22106 # INIT-COMMANDS
22107 #
22108 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22109
22110
22111 # The HP-UX ksh and POSIX shell print the target directory to stdout
22112 # if CDPATH is set.
22113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22114
22115 sed_quote_subst='$sed_quote_subst'
22116 double_quote_subst='$double_quote_subst'
22117 delay_variable_subst='$delay_variable_subst'
22118 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22119 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22120 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22121 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22122 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22123 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22124 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22125 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22126 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22127 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22128 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22129 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22130 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22131 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22132 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22133 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22134 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22135 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22136 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22137 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22138 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22139 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22140 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22141 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22142 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22143 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22144 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22145 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22146 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22147 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22148 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22149 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22150 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22151 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22152 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22153 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22154 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22155 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22156 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22157 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22158 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22159 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22160 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22161 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22162 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22163 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22164 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22165 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22166 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22167 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22168 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22169 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22170 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22171 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22172 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22173 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22174 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22175 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22176 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22177 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22178 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22179 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"`'
22180 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22181 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22182 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22183 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22184 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22185 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22186 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22187 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22188 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22189 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22190 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22191 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22192 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22193 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22194 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22195 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22196 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22197 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22198 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22199 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22200 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22201 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22202 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22203 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22204 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22205 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22206 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22207 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22208 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22209 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22210 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22211 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22212 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22213 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22214 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22215 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22216 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22217 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22218 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22219 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22220 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22221 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22222 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22223 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22224 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22225 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22226 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22227 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22228 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22229 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22230 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22231 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22232 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22233 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22234 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22235 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22236 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22237 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22238 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22239 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22240 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22241 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22242 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22243 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22244 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22245 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22246 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22247 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22248 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22249 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22250 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22251 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22252 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22253 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22254 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22255 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22256
22257 LTCC='$LTCC'
22258 LTCFLAGS='$LTCFLAGS'
22259 compiler='$compiler_DEFAULT'
22260
22261 # A function that is used when there is no print builtin or printf.
22262 func_fallback_echo ()
22263 {
22264 eval 'cat <<_LTECHO_EOF
22265 \$1
22266 _LTECHO_EOF'
22267 }
22268
22269 # Quote evaled strings.
22270 for var in AS \
22271 DLLTOOL \
22272 OBJDUMP \
22273 SHELL \
22274 ECHO \
22275 PATH_SEPARATOR \
22276 SED \
22277 GREP \
22278 EGREP \
22279 FGREP \
22280 LD \
22281 NM \
22282 LN_S \
22283 lt_SP2NL \
22284 lt_NL2SP \
22285 reload_flag \
22286 FILECMD \
22287 deplibs_check_method \
22288 file_magic_cmd \
22289 file_magic_glob \
22290 want_nocaseglob \
22291 sharedlib_from_linklib_cmd \
22292 AR \
22293 archiver_list_spec \
22294 STRIP \
22295 RANLIB \
22296 CC \
22297 CFLAGS \
22298 compiler \
22299 lt_cv_sys_global_symbol_pipe \
22300 lt_cv_sys_global_symbol_to_cdecl \
22301 lt_cv_sys_global_symbol_to_import \
22302 lt_cv_sys_global_symbol_to_c_name_address \
22303 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22304 lt_cv_nm_interface \
22305 nm_file_list_spec \
22306 lt_cv_truncate_bin \
22307 lt_prog_compiler_no_builtin_flag \
22308 lt_prog_compiler_pic \
22309 lt_prog_compiler_wl \
22310 lt_prog_compiler_static \
22311 lt_cv_prog_compiler_c_o \
22312 need_locks \
22313 MANIFEST_TOOL \
22314 DSYMUTIL \
22315 NMEDIT \
22316 LIPO \
22317 OTOOL \
22318 OTOOL64 \
22319 shrext_cmds \
22320 export_dynamic_flag_spec \
22321 whole_archive_flag_spec \
22322 compiler_needs_object \
22323 with_gnu_ld \
22324 allow_undefined_flag \
22325 no_undefined_flag \
22326 hardcode_libdir_flag_spec \
22327 hardcode_libdir_separator \
22328 exclude_expsyms \
22329 include_expsyms \
22330 file_list_spec \
22331 variables_saved_for_relink \
22332 libname_spec \
22333 library_names_spec \
22334 soname_spec \
22335 install_override_mode \
22336 finish_eval \
22337 old_striplib \
22338 striplib; do
22339 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22340 *[\\\\\\\`\\"\\\$]*)
22341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22342 ;;
22343 *)
22344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22345 ;;
22346 esac
22347 done
22348
22349 # Double-quote double-evaled strings.
22350 for var in reload_cmds \
22351 old_postinstall_cmds \
22352 old_postuninstall_cmds \
22353 old_archive_cmds \
22354 extract_expsyms_cmds \
22355 old_archive_from_new_cmds \
22356 old_archive_from_expsyms_cmds \
22357 archive_cmds \
22358 archive_expsym_cmds \
22359 module_cmds \
22360 module_expsym_cmds \
22361 export_symbols_cmds \
22362 prelink_cmds \
22363 postlink_cmds \
22364 postinstall_cmds \
22365 postuninstall_cmds \
22366 finish_cmds \
22367 sys_lib_search_path_spec \
22368 configure_time_dlsearch_path \
22369 configure_time_lt_sys_library_path; do
22370 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22371 *[\\\\\\\`\\"\\\$]*)
22372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22373 ;;
22374 *)
22375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22376 ;;
22377 esac
22378 done
22379
22380 ac_aux_dir='$ac_aux_dir'
22381
22382 # See if we are running on zsh, and set the options that allow our
22383 # commands through without removal of \ escapes INIT.
22384 if test -n "\${ZSH_VERSION+set}"; then
22385 setopt NO_GLOB_SUBST
22386 fi
22387
22388
22389 PACKAGE='$PACKAGE'
22390 VERSION='$VERSION'
22391 RM='$RM'
22392 ofile='$ofile'
22393
22394
22395
22396
22397 _ACEOF
22398
22399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22400
22401 # Handling of arguments.
22402 for ac_config_target in $ac_config_targets
22403 do
22404 case $ac_config_target in
22405 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22406 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22407 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22409 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22410 "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
22411
22412 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22413 esac
22414 done
22415
22416
22417 # If the user did not use the arguments to specify the items to instantiate,
22418 # then the envvar interface is used. Set only those that are not.
22419 # We use the long form for the default assignment because of an extremely
22420 # bizarre bug on SunOS 4.1.3.
22421 if $ac_need_defaults; then
22422 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22423 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22424 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22425 fi
22426
22427 # Have a temporary directory for convenience. Make it in the build tree
22428 # simply because there is no reason against having it here, and in addition,
22429 # creating and moving files from /tmp can sometimes cause problems.
22430 # Hook for its removal unless debugging.
22431 # Note that there is a small window in which the directory will not be cleaned:
22432 # after its creation but before its name has been assigned to '$tmp'.
22433 $debug ||
22434 {
22435 tmp= ac_tmp=
22436 trap 'exit_status=$?
22437 : "${ac_tmp:=$tmp}"
22438 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22439 ' 0
22440 trap 'as_fn_exit 1' 1 2 13 15
22441 }
22442 # Create a (secure) tmp directory for tmp files.
22443
22444 {
22445 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22446 test -d "$tmp"
22447 } ||
22448 {
22449 tmp=./conf$$-$RANDOM
22450 (umask 077 && mkdir "$tmp")
22451 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22452 ac_tmp=$tmp
22453
22454 # Set up the scripts for CONFIG_FILES section.
22455 # No need to generate them if there are no CONFIG_FILES.
22456 # This happens for instance with './config.status config.h'.
22457 if test -n "$CONFIG_FILES"; then
22458
22459
22460 ac_cr=`echo X | tr X '\015'`
22461 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22462 # But we know of no other shell where ac_cr would be empty at this
22463 # point, so we can use a bashism as a fallback.
22464 if test "x$ac_cr" = x; then
22465 eval ac_cr=\$\'\\r\'
22466 fi
22467 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22469 ac_cs_awk_cr='\\r'
22470 else
22471 ac_cs_awk_cr=$ac_cr
22472 fi
22473
22474 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22475 _ACEOF
22476
22477
22478 {
22479 echo "cat >conf$$subs.awk <<_ACEOF" &&
22480 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22481 echo "_ACEOF"
22482 } >conf$$subs.sh ||
22483 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22484 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22485 ac_delim='%!_!# '
22486 for ac_last_try in false false false false false :; do
22487 . ./conf$$subs.sh ||
22488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22489
22490 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22491 if test $ac_delim_n = $ac_delim_num; then
22492 break
22493 elif $ac_last_try; then
22494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22495 else
22496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22497 fi
22498 done
22499 rm -f conf$$subs.sh
22500
22501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22502 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22503 _ACEOF
22504 sed -n '
22505 h
22506 s/^/S["/; s/!.*/"]=/
22507 p
22508 g
22509 s/^[^!]*!//
22510 :repl
22511 t repl
22512 s/'"$ac_delim"'$//
22513 t delim
22514 :nl
22515 h
22516 s/\(.\{148\}\)..*/\1/
22517 t more1
22518 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22519 p
22520 n
22521 b repl
22522 :more1
22523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22524 p
22525 g
22526 s/.\{148\}//
22527 t nl
22528 :delim
22529 h
22530 s/\(.\{148\}\)..*/\1/
22531 t more2
22532 s/["\\]/\\&/g; s/^/"/; s/$/"/
22533 p
22534 b
22535 :more2
22536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22537 p
22538 g
22539 s/.\{148\}//
22540 t delim
22541 ' <conf$$subs.awk | sed '
22542 /^[^""]/{
22543 N
22544 s/\n//
22545 }
22546 ' >>$CONFIG_STATUS || ac_write_fail=1
22547 rm -f conf$$subs.awk
22548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22549 _ACAWK
22550 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22551 for (key in S) S_is_set[key] = 1
22552 FS = ""
22553
22554 }
22555 {
22556 line = $ 0
22557 nfields = split(line, field, "@")
22558 substed = 0
22559 len = length(field[1])
22560 for (i = 2; i < nfields; i++) {
22561 key = field[i]
22562 keylen = length(key)
22563 if (S_is_set[key]) {
22564 value = S[key]
22565 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22566 len += length(value) + length(field[++i])
22567 substed = 1
22568 } else
22569 len += 1 + keylen
22570 }
22571
22572 print line
22573 }
22574
22575 _ACAWK
22576 _ACEOF
22577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22578 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22579 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22580 else
22581 cat
22582 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22583 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22584 _ACEOF
22585
22586 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22587 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22588 # trailing colons and then remove the whole line if VPATH becomes empty
22589 # (actually we leave an empty line to preserve line numbers).
22590 if test "x$srcdir" = x.; then
22591 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22592 h
22593 s///
22594 s/^/:/
22595 s/[ ]*$/:/
22596 s/:\$(srcdir):/:/g
22597 s/:\${srcdir}:/:/g
22598 s/:@srcdir@:/:/g
22599 s/^:*//
22600 s/:*$//
22601 x
22602 s/\(=[ ]*\).*/\1/
22603 G
22604 s/\n//
22605 s/^[^=]*=[ ]*$//
22606 }'
22607 fi
22608
22609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22610 fi # test -n "$CONFIG_FILES"
22611
22612 # Set up the scripts for CONFIG_HEADERS section.
22613 # No need to generate them if there are no CONFIG_HEADERS.
22614 # This happens for instance with './config.status Makefile'.
22615 if test -n "$CONFIG_HEADERS"; then
22616 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22617 BEGIN {
22618 _ACEOF
22619
22620 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22621 # here-document in config.status, that substitutes the proper values into
22622 # config.h.in to produce config.h.
22623
22624 # Create a delimiter string that does not exist in confdefs.h, to ease
22625 # handling of long lines.
22626 ac_delim='%!_!# '
22627 for ac_last_try in false false :; do
22628 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22629 if test -z "$ac_tt"; then
22630 break
22631 elif $ac_last_try; then
22632 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22633 else
22634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22635 fi
22636 done
22637
22638 # For the awk script, D is an array of macro values keyed by name,
22639 # likewise P contains macro parameters if any. Preserve backslash
22640 # newline sequences.
22641
22642 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22643 sed -n '
22644 s/.\{148\}/&'"$ac_delim"'/g
22645 t rset
22646 :rset
22647 s/^[ ]*#[ ]*define[ ][ ]*/ /
22648 t def
22649 d
22650 :def
22651 s/\\$//
22652 t bsnl
22653 s/["\\]/\\&/g
22654 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22655 D["\1"]=" \3"/p
22656 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22657 d
22658 :bsnl
22659 s/["\\]/\\&/g
22660 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22661 D["\1"]=" \3\\\\\\n"\\/p
22662 t cont
22663 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22664 t cont
22665 d
22666 :cont
22667 n
22668 s/.\{148\}/&'"$ac_delim"'/g
22669 t clear
22670 :clear
22671 s/\\$//
22672 t bsnlc
22673 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22674 d
22675 :bsnlc
22676 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22677 b cont
22678 ' <confdefs.h | sed '
22679 s/'"$ac_delim"'/"\\\
22680 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22681
22682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22683 for (key in D) D_is_set[key] = 1
22684 FS = ""
22685 }
22686 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22687 line = \$ 0
22688 split(line, arg, " ")
22689 if (arg[1] == "#") {
22690 defundef = arg[2]
22691 mac1 = arg[3]
22692 } else {
22693 defundef = substr(arg[1], 2)
22694 mac1 = arg[2]
22695 }
22696 split(mac1, mac2, "(") #)
22697 macro = mac2[1]
22698 prefix = substr(line, 1, index(line, defundef) - 1)
22699 if (D_is_set[macro]) {
22700 # Preserve the white space surrounding the "#".
22701 print prefix "define", macro P[macro] D[macro]
22702 next
22703 } else {
22704 # Replace #undef with comments. This is necessary, for example,
22705 # in the case of _POSIX_SOURCE, which is predefined and required
22706 # on some systems where configure will not decide to define it.
22707 if (defundef == "undef") {
22708 print "/*", prefix defundef, macro, "*/"
22709 next
22710 }
22711 }
22712 }
22713 { print }
22714 _ACAWK
22715 _ACEOF
22716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22717 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22718 fi # test -n "$CONFIG_HEADERS"
22719
22720
22721 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22722 shift
22723 for ac_tag
22724 do
22725 case $ac_tag in
22726 :[FHLC]) ac_mode=$ac_tag; continue;;
22727 esac
22728 case $ac_mode$ac_tag in
22729 :[FHL]*:*);;
22730 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22731 :[FH]-) ac_tag=-:-;;
22732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22733 esac
22734 ac_save_IFS=$IFS
22735 IFS=:
22736 set x $ac_tag
22737 IFS=$ac_save_IFS
22738 shift
22739 ac_file=$1
22740 shift
22741
22742 case $ac_mode in
22743 :L) ac_source=$1;;
22744 :[FH])
22745 ac_file_inputs=
22746 for ac_f
22747 do
22748 case $ac_f in
22749 -) ac_f="$ac_tmp/stdin";;
22750 *) # Look for the file first in the build tree, then in the source tree
22751 # (if the path is not absolute). The absolute path cannot be DOS-style,
22752 # because $ac_f cannot contain ':'.
22753 test -f "$ac_f" ||
22754 case $ac_f in
22755 [\\/$]*) false;;
22756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22757 esac ||
22758 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22759 esac
22760 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22761 as_fn_append ac_file_inputs " '$ac_f'"
22762 done
22763
22764 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22765 # use $as_me), people would be surprised to read:
22766 # /* config.h. Generated by config.status. */
22767 configure_input='Generated from '`
22768 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22769 `' by configure.'
22770 if test x"$ac_file" != x-; then
22771 configure_input="$ac_file. $configure_input"
22772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22773 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22774 fi
22775 # Neutralize special characters interpreted by sed in replacement strings.
22776 case $configure_input in #(
22777 *\&* | *\|* | *\\* )
22778 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22779 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22780 *) ac_sed_conf_input=$configure_input;;
22781 esac
22782
22783 case $ac_tag in
22784 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22786 esac
22787 ;;
22788 esac
22789
22790 ac_dir=`$as_dirname -- "$ac_file" ||
22791 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22792 X"$ac_file" : 'X\(//\)[^/]' \| \
22793 X"$ac_file" : 'X\(//\)$' \| \
22794 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22795 printf "%s\n" X"$ac_file" |
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22797 s//\1/
22798 q
22799 }
22800 /^X\(\/\/\)[^/].*/{
22801 s//\1/
22802 q
22803 }
22804 /^X\(\/\/\)$/{
22805 s//\1/
22806 q
22807 }
22808 /^X\(\/\).*/{
22809 s//\1/
22810 q
22811 }
22812 s/.*/./; q'`
22813 as_dir="$ac_dir"; as_fn_mkdir_p
22814 ac_builddir=.
22815
22816 case "$ac_dir" in
22817 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22818 *)
22819 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22820 # A ".." for each directory in $ac_dir_suffix.
22821 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22822 case $ac_top_builddir_sub in
22823 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22824 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22825 esac ;;
22826 esac
22827 ac_abs_top_builddir=$ac_pwd
22828 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22829 # for backward compatibility:
22830 ac_top_builddir=$ac_top_build_prefix
22831
22832 case $srcdir in
22833 .) # We are building in place.
22834 ac_srcdir=.
22835 ac_top_srcdir=$ac_top_builddir_sub
22836 ac_abs_top_srcdir=$ac_pwd ;;
22837 [\\/]* | ?:[\\/]* ) # Absolute name.
22838 ac_srcdir=$srcdir$ac_dir_suffix;
22839 ac_top_srcdir=$srcdir
22840 ac_abs_top_srcdir=$srcdir ;;
22841 *) # Relative name.
22842 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22843 ac_top_srcdir=$ac_top_build_prefix$srcdir
22844 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22845 esac
22846 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22847
22848
22849 case $ac_mode in
22850 :F)
22851 #
22852 # CONFIG_FILE
22853 #
22854
22855 case $INSTALL in
22856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22857 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22858 esac
22859 ac_MKDIR_P=$MKDIR_P
22860 case $MKDIR_P in
22861 [\\/$]* | ?:[\\/]* ) ;;
22862 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22863 esac
22864 _ACEOF
22865
22866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22867 # If the template does not know about datarootdir, expand it.
22868 # FIXME: This hack should be removed a few years after 2.60.
22869 ac_datarootdir_hack=; ac_datarootdir_seen=
22870 ac_sed_dataroot='
22871 /datarootdir/ {
22872 p
22873 q
22874 }
22875 /@datadir@/p
22876 /@docdir@/p
22877 /@infodir@/p
22878 /@localedir@/p
22879 /@mandir@/p'
22880 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22881 *datarootdir*) ac_datarootdir_seen=yes;;
22882 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22884 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22885 _ACEOF
22886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22887 ac_datarootdir_hack='
22888 s&@datadir@&$datadir&g
22889 s&@docdir@&$docdir&g
22890 s&@infodir@&$infodir&g
22891 s&@localedir@&$localedir&g
22892 s&@mandir@&$mandir&g
22893 s&\\\${datarootdir}&$datarootdir&g' ;;
22894 esac
22895 _ACEOF
22896
22897 # Neutralize VPATH when '$srcdir' = '.'.
22898 # Shell code in configure.ac might set extrasub.
22899 # FIXME: do we really want to maintain this feature?
22900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22901 ac_sed_extra="$ac_vpsub
22902 $extrasub
22903 _ACEOF
22904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22905 :t
22906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22907 s|@configure_input@|$ac_sed_conf_input|;t t
22908 s&@top_builddir@&$ac_top_builddir_sub&;t t
22909 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22910 s&@srcdir@&$ac_srcdir&;t t
22911 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22912 s&@top_srcdir@&$ac_top_srcdir&;t t
22913 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22914 s&@builddir@&$ac_builddir&;t t
22915 s&@abs_builddir@&$ac_abs_builddir&;t t
22916 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22917 s&@INSTALL@&$ac_INSTALL&;t t
22918 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22919 $ac_datarootdir_hack
22920 "
22921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22922 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22923
22924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22925 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22927 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22929 which seems to be undefined. Please make sure it is defined" >&5
22930 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22931 which seems to be undefined. Please make sure it is defined" >&2;}
22932
22933 rm -f "$ac_tmp/stdin"
22934 case $ac_file in
22935 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22936 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22937 esac \
22938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22939 ;;
22940 :H)
22941 #
22942 # CONFIG_HEADER
22943 #
22944 if test x"$ac_file" != x-; then
22945 {
22946 printf "%s\n" "/* $configure_input */" >&1 \
22947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22948 } >"$ac_tmp/config.h" \
22949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22950 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22952 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22953 else
22954 rm -f "$ac_file"
22955 mv "$ac_tmp/config.h" "$ac_file" \
22956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22957 fi
22958 else
22959 printf "%s\n" "/* $configure_input */" >&1 \
22960 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22961 || as_fn_error $? "could not create -" "$LINENO" 5
22962 fi
22963 # Compute "$ac_file"'s index in $config_headers.
22964 _am_arg="$ac_file"
22965 _am_stamp_count=1
22966 for _am_header in $config_headers :; do
22967 case $_am_header in
22968 $_am_arg | $_am_arg:* )
22969 break ;;
22970 * )
22971 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22972 esac
22973 done
22974 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22975 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22976 X"$_am_arg" : 'X\(//\)[^/]' \| \
22977 X"$_am_arg" : 'X\(//\)$' \| \
22978 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22979 printf "%s\n" X"$_am_arg" |
22980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22981 s//\1/
22982 q
22983 }
22984 /^X\(\/\/\)[^/].*/{
22985 s//\1/
22986 q
22987 }
22988 /^X\(\/\/\)$/{
22989 s//\1/
22990 q
22991 }
22992 /^X\(\/\).*/{
22993 s//\1/
22994 q
22995 }
22996 s/.*/./; q'`/stamp-h$_am_stamp_count
22997 ;;
22998
22999 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23000 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23001 ;;
23002 esac
23003
23004
23005 case $ac_file$ac_mode in
23006 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23007 # Older Autoconf quotes --file arguments for eval, but not when files
23008 # are listed without --file. Let's play safe and only enable the eval
23009 # if we detect the quoting.
23010 # TODO: see whether this extra hack can be removed once we start
23011 # requiring Autoconf 2.70 or later.
23012 case $CONFIG_FILES in #(
23013 *\'*) :
23014 eval set x "$CONFIG_FILES" ;; #(
23015 *) :
23016 set x $CONFIG_FILES ;; #(
23017 *) :
23018 ;;
23019 esac
23020 shift
23021 # Used to flag and report bootstrapping failures.
23022 am_rc=0
23023 for am_mf
23024 do
23025 # Strip MF so we end up with the name of the file.
23026 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23027 # Check whether this is an Automake generated Makefile which includes
23028 # dependency-tracking related rules and includes.
23029 # Grep'ing the whole file directly is not great: AIX grep has a line
23030 # limit of 2048, but all sed's we know have understand at least 4000.
23031 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23032 || continue
23033 am_dirpart=`$as_dirname -- "$am_mf" ||
23034 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23035 X"$am_mf" : 'X\(//\)[^/]' \| \
23036 X"$am_mf" : 'X\(//\)$' \| \
23037 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23038 printf "%s\n" X"$am_mf" |
23039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23040 s//\1/
23041 q
23042 }
23043 /^X\(\/\/\)[^/].*/{
23044 s//\1/
23045 q
23046 }
23047 /^X\(\/\/\)$/{
23048 s//\1/
23049 q
23050 }
23051 /^X\(\/\).*/{
23052 s//\1/
23053 q
23054 }
23055 s/.*/./; q'`
23056 am_filepart=`$as_basename -- "$am_mf" ||
23057 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23058 X"$am_mf" : 'X\(//\)$' \| \
23059 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23060 printf "%s\n" X/"$am_mf" |
23061 sed '/^.*\/\([^/][^/]*\)\/*$/{
23062 s//\1/
23063 q
23064 }
23065 /^X\/\(\/\/\)$/{
23066 s//\1/
23067 q
23068 }
23069 /^X\/\(\/\).*/{
23070 s//\1/
23071 q
23072 }
23073 s/.*/./; q'`
23074 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23075 && sed -e '/# am--include-marker/d' "$am_filepart" \
23076 | $MAKE -f - am--depfiles" >&5
23077 (cd "$am_dirpart" \
23078 && sed -e '/# am--include-marker/d' "$am_filepart" \
23079 | $MAKE -f - am--depfiles) >&5 2>&5
23080 ac_status=$?
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } || am_rc=$?
23083 done
23084 if test $am_rc -ne 0; then
23085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23086 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23087 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23088 for automatic dependency tracking. If GNU make was not used, consider
23089 re-running the configure script with MAKE=\"gmake\" (or whatever is
23090 necessary). You can also try re-running configure with the
23091 '--disable-dependency-tracking' option to at least be able to build
23092 the package (albeit without support for automatic dependency tracking).
23093 See 'config.log' for more details" "$LINENO" 5; }
23094 fi
23095 { am_dirpart=; unset am_dirpart;}
23096 { am_filepart=; unset am_filepart;}
23097 { am_mf=; unset am_mf;}
23098 { am_rc=; unset am_rc;}
23099 rm -f conftest-deps.mk
23100 }
23101 ;;
23102 "libtool":C)
23103
23104 # See if we are running on zsh, and set the options that allow our
23105 # commands through without removal of \ escapes.
23106 if test -n "${ZSH_VERSION+set}"; then
23107 setopt NO_GLOB_SUBST
23108 fi
23109
23110 cfgfile=${ofile}T
23111 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23112 $RM "$cfgfile"
23113
23114 cat <<_LT_EOF >> "$cfgfile"
23115 #! $SHELL
23116 # Generated automatically by $as_me ($PACKAGE) $VERSION
23117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23118
23119 # Provide generalized library-building support services.
23120 # Written by Gordon Matzigkeit, 1996
23121
23122 # Copyright (C) 2024 Free Software Foundation, Inc.
23123 # This is free software; see the source for copying conditions. There is NO
23124 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23125
23126 # GNU Libtool is free software; you can redistribute it and/or modify
23127 # it under the terms of the GNU General Public License as published by
23128 # the Free Software Foundation; either version 2 of the License, or
23129 # (at your option) any later version.
23130 #
23131 # As a special exception to the GNU General Public License, if you
23132 # distribute this file as part of a program or library that is built
23133 # using GNU Libtool, you may include this file under the same
23134 # distribution terms that you use for the rest of that program.
23135 #
23136 # GNU Libtool is distributed in the hope that it will be useful, but
23137 # WITHOUT ANY WARRANTY; without even the implied warranty of
23138 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23139 # GNU General Public License for more details.
23140 #
23141 # You should have received a copy of the GNU General Public License
23142 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23143
23144
23145 # The names of the tagged configurations supported by this script.
23146 available_tags=''
23147
23148 # Configured defaults for sys_lib_dlsearch_path munging.
23149 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23150
23151 # ### BEGIN LIBTOOL CONFIG
23152
23153 # Which release of libtool.m4 was used?
23154 macro_version=$macro_version
23155 macro_revision=$macro_revision
23156
23157 # Assembler program.
23158 AS=$lt_AS
23159
23160 # DLL creation program.
23161 DLLTOOL=$lt_DLLTOOL
23162
23163 # Object dumper program.
23164 OBJDUMP=$lt_OBJDUMP
23165
23166 # Whether or not to build shared libraries.
23167 build_libtool_libs=$enable_shared
23168
23169 # Whether or not to build static libraries.
23170 build_old_libs=$enable_static
23171
23172 # What type of objects to build.
23173 pic_mode=$pic_mode
23174
23175 # Whether or not to optimize for fast installation.
23176 fast_install=$enable_fast_install
23177
23178 # Shared archive member basename,for filename based shared library versioning on AIX.
23179 shared_archive_member_spec=$shared_archive_member_spec
23180
23181 # Shell to use when invoking shell scripts.
23182 SHELL=$lt_SHELL
23183
23184 # An echo program that protects backslashes.
23185 ECHO=$lt_ECHO
23186
23187 # The PATH separator for the build system.
23188 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23189
23190 # The host system.
23191 host_alias=$host_alias
23192 host=$host
23193 host_os=$host_os
23194
23195 # The build system.
23196 build_alias=$build_alias
23197 build=$build
23198 build_os=$build_os
23199
23200 # A sed program that does not truncate output.
23201 SED=$lt_SED
23202
23203 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23204 Xsed="\$SED -e 1s/^X//"
23205
23206 # A grep program that handles long lines.
23207 GREP=$lt_GREP
23208
23209 # An ERE matcher.
23210 EGREP=$lt_EGREP
23211
23212 # A literal string matcher.
23213 FGREP=$lt_FGREP
23214
23215 # A BSD- or MS-compatible name lister.
23216 NM=$lt_NM
23217
23218 # Whether we need soft or hard links.
23219 LN_S=$lt_LN_S
23220
23221 # What is the maximum length of a command?
23222 max_cmd_len=$max_cmd_len
23223
23224 # Object file suffix (normally "o").
23225 objext=$ac_objext
23226
23227 # Executable file suffix (normally "").
23228 exeext=$exeext
23229
23230 # whether the shell understands "unset".
23231 lt_unset=$lt_unset
23232
23233 # turn spaces into newlines.
23234 SP2NL=$lt_lt_SP2NL
23235
23236 # turn newlines into spaces.
23237 NL2SP=$lt_lt_NL2SP
23238
23239 # convert \$build file names to \$host format.
23240 to_host_file_cmd=$lt_cv_to_host_file_cmd
23241
23242 # convert \$build files to toolchain format.
23243 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23244
23245 # A file(cmd) program that detects file types.
23246 FILECMD=$lt_FILECMD
23247
23248 # Method to check whether dependent libraries are shared objects.
23249 deplibs_check_method=$lt_deplibs_check_method
23250
23251 # Command to use when deplibs_check_method = "file_magic".
23252 file_magic_cmd=$lt_file_magic_cmd
23253
23254 # How to find potential files when deplibs_check_method = "file_magic".
23255 file_magic_glob=$lt_file_magic_glob
23256
23257 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23258 want_nocaseglob=$lt_want_nocaseglob
23259
23260 # Command to associate shared and link libraries.
23261 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23262
23263 # The archiver.
23264 AR=$lt_AR
23265
23266 # Flags to create an archive (by configure).
23267 lt_ar_flags=$lt_ar_flags
23268
23269 # Flags to create an archive.
23270 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23271
23272 # How to feed a file listing to the archiver.
23273 archiver_list_spec=$lt_archiver_list_spec
23274
23275 # A symbol stripping program.
23276 STRIP=$lt_STRIP
23277
23278 # Commands used to install an old-style archive.
23279 RANLIB=$lt_RANLIB
23280 old_postinstall_cmds=$lt_old_postinstall_cmds
23281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23282
23283 # Whether to use a lock for old archive extraction.
23284 lock_old_archive_extraction=$lock_old_archive_extraction
23285
23286 # A C compiler.
23287 LTCC=$lt_CC
23288
23289 # LTCC compiler flags.
23290 LTCFLAGS=$lt_CFLAGS
23291
23292 # Take the output of nm and produce a listing of raw symbols and C names.
23293 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23294
23295 # Transform the output of nm in a proper C declaration.
23296 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23297
23298 # Transform the output of nm into a list of symbols to manually relocate.
23299 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23300
23301 # Transform the output of nm in a C name address pair.
23302 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23303
23304 # Transform the output of nm in a C name address pair when lib prefix is needed.
23305 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23306
23307 # The name lister interface.
23308 nm_interface=$lt_lt_cv_nm_interface
23309
23310 # Specify filename containing input files for \$NM.
23311 nm_file_list_spec=$lt_nm_file_list_spec
23312
23313 # The root where to search for dependent libraries,and where our libraries should be installed.
23314 lt_sysroot=$lt_sysroot
23315
23316 # Command to truncate a binary pipe.
23317 lt_truncate_bin=$lt_lt_cv_truncate_bin
23318
23319 # The name of the directory that contains temporary libtool files.
23320 objdir=$objdir
23321
23322 # Used to examine libraries when file_magic_cmd begins with "file".
23323 MAGIC_CMD=$MAGIC_CMD
23324
23325 # Must we lock files when doing compilation?
23326 need_locks=$lt_need_locks
23327
23328 # Manifest tool.
23329 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23330
23331 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23332 DSYMUTIL=$lt_DSYMUTIL
23333
23334 # Tool to change global to local symbols on Mac OS X.
23335 NMEDIT=$lt_NMEDIT
23336
23337 # Tool to manipulate fat objects and archives on Mac OS X.
23338 LIPO=$lt_LIPO
23339
23340 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23341 OTOOL=$lt_OTOOL
23342
23343 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23344 OTOOL64=$lt_OTOOL64
23345
23346 # Old archive suffix (normally "a").
23347 libext=$libext
23348
23349 # Shared library suffix (normally ".so").
23350 shrext_cmds=$lt_shrext_cmds
23351
23352 # The commands to extract the exported symbol list from a shared archive.
23353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23354
23355 # Variables whose values should be saved in libtool wrapper scripts and
23356 # restored at link time.
23357 variables_saved_for_relink=$lt_variables_saved_for_relink
23358
23359 # Do we need the "lib" prefix for modules?
23360 need_lib_prefix=$need_lib_prefix
23361
23362 # Do we need a version for libraries?
23363 need_version=$need_version
23364
23365 # Library versioning type.
23366 version_type=$version_type
23367
23368 # Shared library runtime path variable.
23369 runpath_var=$runpath_var
23370
23371 # Shared library path variable.
23372 shlibpath_var=$shlibpath_var
23373
23374 # Is shlibpath searched before the hard-coded library search path?
23375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23376
23377 # Format of library name prefix.
23378 libname_spec=$lt_libname_spec
23379
23380 # List of archive names. First name is the real one, the rest are links.
23381 # The last name is the one that the linker finds with -lNAME
23382 library_names_spec=$lt_library_names_spec
23383
23384 # The coded name of the library, if different from the real name.
23385 soname_spec=$lt_soname_spec
23386
23387 # Permission mode override for installation of shared libraries.
23388 install_override_mode=$lt_install_override_mode
23389
23390 # Command to use after installation of a shared archive.
23391 postinstall_cmds=$lt_postinstall_cmds
23392
23393 # Command to use after uninstallation of a shared archive.
23394 postuninstall_cmds=$lt_postuninstall_cmds
23395
23396 # Commands used to finish a libtool library installation in a directory.
23397 finish_cmds=$lt_finish_cmds
23398
23399 # As "finish_cmds", except a single script fragment to be evaled but
23400 # not shown.
23401 finish_eval=$lt_finish_eval
23402
23403 # Whether we should hardcode library paths into libraries.
23404 hardcode_into_libs=$hardcode_into_libs
23405
23406 # Compile-time system search path for libraries.
23407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23408
23409 # Detected run-time system search path for libraries.
23410 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23411
23412 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23413 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23414
23415 # Whether dlopen is supported.
23416 dlopen_support=$enable_dlopen
23417
23418 # Whether dlopen of programs is supported.
23419 dlopen_self=$enable_dlopen_self
23420
23421 # Whether dlopen of statically linked programs is supported.
23422 dlopen_self_static=$enable_dlopen_self_static
23423
23424 # Commands to strip libraries.
23425 old_striplib=$lt_old_striplib
23426 striplib=$lt_striplib
23427
23428
23429 # The linker used to build libraries.
23430 LD=$lt_LD
23431
23432 # How to create reloadable object files.
23433 reload_flag=$lt_reload_flag
23434 reload_cmds=$lt_reload_cmds
23435
23436 # Commands used to build an old-style archive.
23437 old_archive_cmds=$lt_old_archive_cmds
23438
23439 # A language specific compiler.
23440 CC=$lt_compiler
23441
23442 # Is the compiler the GNU compiler?
23443 with_gcc=$GCC
23444
23445 # Compiler flag to turn off builtin functions.
23446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23447
23448 # Additional compiler flags for building library objects.
23449 pic_flag=$lt_lt_prog_compiler_pic
23450
23451 # How to pass a linker flag through the compiler.
23452 wl=$lt_lt_prog_compiler_wl
23453
23454 # Compiler flag to prevent dynamic linking.
23455 link_static_flag=$lt_lt_prog_compiler_static
23456
23457 # Does compiler simultaneously support -c and -o options?
23458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23459
23460 # Whether or not to add -lc for building shared libraries.
23461 build_libtool_need_lc=$archive_cmds_need_lc
23462
23463 # Whether or not to disallow shared libs when runtime libs are static.
23464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23465
23466 # Compiler flag to allow reflexive dlopens.
23467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23468
23469 # Compiler flag to generate shared objects directly from archives.
23470 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23471
23472 # Whether the compiler copes with passing no objects directly.
23473 compiler_needs_object=$lt_compiler_needs_object
23474
23475 # Create an old-style archive from a shared archive.
23476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23477
23478 # Create a temporary old-style archive to link instead of a shared archive.
23479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23480
23481 # Commands used to build a shared archive.
23482 archive_cmds=$lt_archive_cmds
23483 archive_expsym_cmds=$lt_archive_expsym_cmds
23484
23485 # Commands used to build a loadable module if different from building
23486 # a shared archive.
23487 module_cmds=$lt_module_cmds
23488 module_expsym_cmds=$lt_module_expsym_cmds
23489
23490 # Whether we are building with GNU ld or not.
23491 with_gnu_ld=$lt_with_gnu_ld
23492
23493 # Flag that allows shared libraries with undefined symbols to be built.
23494 allow_undefined_flag=$lt_allow_undefined_flag
23495
23496 # Flag that enforces no undefined symbols.
23497 no_undefined_flag=$lt_no_undefined_flag
23498
23499 # Flag to hardcode \$libdir into a binary during linking.
23500 # This must work even if \$libdir does not exist
23501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23502
23503 # Whether we need a single "-rpath" flag with a separated argument.
23504 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23505
23506 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23507 # DIR into the resulting binary.
23508 hardcode_direct=$hardcode_direct
23509
23510 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23511 # DIR into the resulting binary and the resulting library dependency is
23512 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23513 # library is relocated.
23514 hardcode_direct_absolute=$hardcode_direct_absolute
23515
23516 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23517 # into the resulting binary.
23518 hardcode_minus_L=$hardcode_minus_L
23519
23520 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23521 # into the resulting binary.
23522 hardcode_shlibpath_var=$hardcode_shlibpath_var
23523
23524 # Set to "yes" if building a shared library automatically hardcodes DIR
23525 # into the library and all subsequent libraries and executables linked
23526 # against it.
23527 hardcode_automatic=$hardcode_automatic
23528
23529 # Set to yes if linker adds runtime paths of dependent libraries
23530 # to runtime path list.
23531 inherit_rpath=$inherit_rpath
23532
23533 # Whether libtool must link a program against all its dependency libraries.
23534 link_all_deplibs=$link_all_deplibs
23535
23536 # Set to "yes" if exported symbols are required.
23537 always_export_symbols=$always_export_symbols
23538
23539 # The commands to list exported symbols.
23540 export_symbols_cmds=$lt_export_symbols_cmds
23541
23542 # Symbols that should not be listed in the preloaded symbols.
23543 exclude_expsyms=$lt_exclude_expsyms
23544
23545 # Symbols that must always be exported.
23546 include_expsyms=$lt_include_expsyms
23547
23548 # Commands necessary for linking programs (against libraries) with templates.
23549 prelink_cmds=$lt_prelink_cmds
23550
23551 # Commands necessary for finishing linking programs.
23552 postlink_cmds=$lt_postlink_cmds
23553
23554 # Specify filename containing input files.
23555 file_list_spec=$lt_file_list_spec
23556
23557 # How to hardcode a shared library path into an executable.
23558 hardcode_action=$hardcode_action
23559
23560 # ### END LIBTOOL CONFIG
23561
23562 _LT_EOF
23563
23564 cat <<'_LT_EOF' >> "$cfgfile"
23565
23566 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23567
23568 # func_munge_path_list VARIABLE PATH
23569 # -----------------------------------
23570 # VARIABLE is name of variable containing _space_ separated list of
23571 # directories to be munged by the contents of PATH, which is string
23572 # having a format:
23573 # "DIR[:DIR]:"
23574 # string "DIR[ DIR]" will be prepended to VARIABLE
23575 # ":DIR[:DIR]"
23576 # string "DIR[ DIR]" will be appended to VARIABLE
23577 # "DIRP[:DIRP]::[DIRA:]DIRA"
23578 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23579 # "DIRA[ DIRA]" will be appended to VARIABLE
23580 # "DIR[:DIR]"
23581 # VARIABLE will be replaced by "DIR[ DIR]"
23582 func_munge_path_list ()
23583 {
23584 case x$2 in
23585 x)
23586 ;;
23587 *:)
23588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23589 ;;
23590 x:*)
23591 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23592 ;;
23593 *::*)
23594 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23595 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23596 ;;
23597 *)
23598 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23599 ;;
23600 esac
23601 }
23602
23603
23604 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23605 func_cc_basename ()
23606 {
23607 for cc_temp in $*""; do
23608 case $cc_temp in
23609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23611 \-*) ;;
23612 *) break;;
23613 esac
23614 done
23615 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23616 }
23617
23618
23619 # ### END FUNCTIONS SHARED WITH CONFIGURE
23620
23621 _LT_EOF
23622
23623 case $host_os in
23624 aix3*)
23625 cat <<\_LT_EOF >> "$cfgfile"
23626 # AIX sometimes has problems with the GCC collect2 program. For some
23627 # reason, if we set the COLLECT_NAMES environment variable, the problems
23628 # vanish in a puff of smoke.
23629 if test set != "${COLLECT_NAMES+set}"; then
23630 COLLECT_NAMES=
23631 export COLLECT_NAMES
23632 fi
23633 _LT_EOF
23634 ;;
23635 esac
23636
23637
23638
23639 ltmain=$ac_aux_dir/ltmain.sh
23640
23641
23642 # We use sed instead of cat because bash on DJGPP gets confused if
23643 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23644 # text mode, it properly converts lines to CR/LF. This bash problem
23645 # is reportedly fixed, but why not run on old versions too?
23646 $SED '$q' "$ltmain" >> "$cfgfile" \
23647 || (rm -f "$cfgfile"; exit 1)
23648
23649 mv -f "$cfgfile" "$ofile" ||
23650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23651 chmod +x "$ofile"
23652
23653 ;;
23654
23655 esac
23656 done # for ac_tag
23657
23658
23659 as_fn_exit 0
23660 _ACEOF
23661 ac_clean_files=$ac_clean_files_save
23662
23663 test $ac_write_fail = 0 ||
23664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23665
23666
23667 # configure is writing to config.log, and then calls config.status.
23668 # config.status does its own redirection, appending to config.log.
23669 # Unfortunately, on DOS this fails, as config.log is still kept open
23670 # by configure, so config.status won't be able to write to it; its
23671 # output is simply discarded. So we exec the FD to /dev/null,
23672 # effectively closing config.log, so it can be properly (re)opened and
23673 # appended to by config.status. When coming back to configure, we
23674 # need to make the FD available again.
23675 if test "$no_create" != yes; then
23676 ac_cs_success=:
23677 ac_config_status_args=
23678 test "$silent" = yes &&
23679 ac_config_status_args="$ac_config_status_args --quiet"
23680 exec 5>/dev/null
23681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23682 exec 5>>config.log
23683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23684 # would make configure fail if this is the last instruction.
23685 $ac_cs_success || as_fn_exit 1
23686 fi
23687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23689 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23690 fi
23691
23692
23693